diff --git a/CHANGELOG.md b/CHANGELOG.md index 5064c81478..891a9310b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) +## 65.49.1 - 2023-09-12 +### Added +- Support for SQL tuning sets in Database Management service +- Support for announcement chaining in Announcements service +- Support for automatic promotion of hosts in Stack Monitoring service +- Support for face detection in AI Vision service +- Support for change parameters on list character sets operation in Database Management service +- Support for displaying software sources attached to a managed instance group in OS Management service + + ## 65.49.0 - 2023-09-05 ### Added - Support for queue channels in the Queue Service diff --git a/aivision/analyze_image_result.go b/aivision/analyze_image_result.go index bc15362aa9..3546e0d816 100644 --- a/aivision/analyze_image_result.go +++ b/aivision/analyze_image_result.go @@ -29,6 +29,9 @@ type AnalyzeImageResult struct { ImageText *ImageText `mandatory:"false" json:"imageText"` + // The detected faces. + DetectedFaces []Face `mandatory:"false" json:"detectedFaces"` + // The image classification model version. ImageClassificationModelVersion *string `mandatory:"false" json:"imageClassificationModelVersion"` @@ -38,6 +41,9 @@ type AnalyzeImageResult struct { // The text detection model version. TextDetectionModelVersion *string `mandatory:"false" json:"textDetectionModelVersion"` + // The face detection model version. + FaceDetectionModelVersion *string `mandatory:"false" json:"faceDetectionModelVersion"` + // The errors encountered during image analysis. Errors []ProcessingError `mandatory:"false" json:"errors"` } diff --git a/aivision/cancel_document_job_request_response.go b/aivision/cancel_document_job_request_response.go index 2399d9c788..ff4e98e772 100644 --- a/aivision/cancel_document_job_request_response.go +++ b/aivision/cancel_document_job_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CancelDocumentJob.go.html to see an example of how to use CancelDocumentJobRequest. type CancelDocumentJobRequest struct { - // Document job id. + // The document job ID. DocumentJobId *string `mandatory:"true" contributesTo:"path" name:"documentJobId"` // For optimistic concurrency control. In the PUT or DELETE call diff --git a/aivision/cancel_image_job_request_response.go b/aivision/cancel_image_job_request_response.go index b118bdd816..6c81888071 100644 --- a/aivision/cancel_image_job_request_response.go +++ b/aivision/cancel_image_job_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/CancelImageJob.go.html to see an example of how to use CancelImageJobRequest. type CancelImageJobRequest struct { - // Image job id. + // The image job ID. ImageJobId *string `mandatory:"true" contributesTo:"path" name:"imageJobId"` // For optimistic concurrency control. In the PUT or DELETE call diff --git a/aivision/data_science_labeling_dataset.go b/aivision/data_science_labeling_dataset.go index bd29e44b6b..e0ca1636a9 100644 --- a/aivision/data_science_labeling_dataset.go +++ b/aivision/data_science_labeling_dataset.go @@ -20,7 +20,7 @@ import ( type DataScienceLabelingDataset struct { // OCID of the Data Labeling dataset. - DatasetId *string `mandatory:"false" json:"datasetId"` + DatasetId *string `mandatory:"true" json:"datasetId"` } func (m DataScienceLabelingDataset) String() string { diff --git a/aivision/face.go b/aivision/face.go new file mode 100644 index 0000000000..45da2e71c5 --- /dev/null +++ b/aivision/face.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Face The detected face. +type Face struct { + + // The confidence score, between 0 and 1. + Confidence *float32 `mandatory:"true" json:"confidence"` + + BoundingPolygon *BoundingPolygon `mandatory:"true" json:"boundingPolygon"` + + // The quality score of the face detected, between 0 and 1. + QualityScore *float32 `mandatory:"true" json:"qualityScore"` + + // A point of interest within a face. + Landmarks []Landmark `mandatory:"false" json:"landmarks"` +} + +func (m Face) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Face) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/aivision/face_detection_feature.go b/aivision/face_detection_feature.go new file mode 100644 index 0000000000..32d937b7e1 --- /dev/null +++ b/aivision/face_detection_feature.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FaceDetectionFeature The face detection parameters. +type FaceDetectionFeature struct { + + // The maximum number of results to return. + MaxResults *int `mandatory:"false" json:"maxResults"` + + // Whether or not return face landmarks. + ShouldReturnLandmarks *bool `mandatory:"false" json:"shouldReturnLandmarks"` +} + +func (m FaceDetectionFeature) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FaceDetectionFeature) 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 FaceDetectionFeature) MarshalJSON() (buff []byte, e error) { + type MarshalTypeFaceDetectionFeature FaceDetectionFeature + s := struct { + DiscriminatorParam string `json:"featureType"` + MarshalTypeFaceDetectionFeature + }{ + "FACE_DETECTION", + (MarshalTypeFaceDetectionFeature)(m), + } + + return json.Marshal(&s) +} diff --git a/aivision/get_document_job_request_response.go b/aivision/get_document_job_request_response.go index d09f25b99b..b90d6aa542 100644 --- a/aivision/get_document_job_request_response.go +++ b/aivision/get_document_job_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetDocumentJob.go.html to see an example of how to use GetDocumentJobRequest. type GetDocumentJobRequest struct { - // Document job id. + // The document job ID. DocumentJobId *string `mandatory:"true" contributesTo:"path" name:"documentJobId"` // The client request ID for tracing. diff --git a/aivision/get_image_job_request_response.go b/aivision/get_image_job_request_response.go index 4a517c8f3f..285bef0379 100644 --- a/aivision/get_image_job_request_response.go +++ b/aivision/get_image_job_request_response.go @@ -18,7 +18,7 @@ import ( // Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/aivision/GetImageJob.go.html to see an example of how to use GetImageJobRequest. type GetImageJobRequest struct { - // Image job id. + // The image job ID. ImageJobId *string `mandatory:"true" contributesTo:"path" name:"imageJobId"` // The client request ID for tracing. diff --git a/aivision/image_feature.go b/aivision/image_feature.go index 1efc0e859e..dd9a556818 100644 --- a/aivision/image_feature.go +++ b/aivision/image_feature.go @@ -54,6 +54,10 @@ func (m *imagefeature) UnmarshalPolymorphicJSON(data []byte) (interface{}, error mm := ImageTextDetectionFeature{} err = json.Unmarshal(data, &mm) return mm, err + case "FACE_DETECTION": + mm := FaceDetectionFeature{} + err = json.Unmarshal(data, &mm) + return mm, err case "OBJECT_DETECTION": mm := ImageObjectDetectionFeature{} err = json.Unmarshal(data, &mm) @@ -92,18 +96,21 @@ const ( ImageFeatureFeatureTypeImageClassification ImageFeatureFeatureTypeEnum = "IMAGE_CLASSIFICATION" ImageFeatureFeatureTypeObjectDetection ImageFeatureFeatureTypeEnum = "OBJECT_DETECTION" ImageFeatureFeatureTypeTextDetection ImageFeatureFeatureTypeEnum = "TEXT_DETECTION" + ImageFeatureFeatureTypeFaceDetection ImageFeatureFeatureTypeEnum = "FACE_DETECTION" ) var mappingImageFeatureFeatureTypeEnum = map[string]ImageFeatureFeatureTypeEnum{ "IMAGE_CLASSIFICATION": ImageFeatureFeatureTypeImageClassification, "OBJECT_DETECTION": ImageFeatureFeatureTypeObjectDetection, "TEXT_DETECTION": ImageFeatureFeatureTypeTextDetection, + "FACE_DETECTION": ImageFeatureFeatureTypeFaceDetection, } var mappingImageFeatureFeatureTypeEnumLowerCase = map[string]ImageFeatureFeatureTypeEnum{ "image_classification": ImageFeatureFeatureTypeImageClassification, "object_detection": ImageFeatureFeatureTypeObjectDetection, "text_detection": ImageFeatureFeatureTypeTextDetection, + "face_detection": ImageFeatureFeatureTypeFaceDetection, } // GetImageFeatureFeatureTypeEnumValues Enumerates the set of values for ImageFeatureFeatureTypeEnum @@ -121,6 +128,7 @@ func GetImageFeatureFeatureTypeEnumStringValues() []string { "IMAGE_CLASSIFICATION", "OBJECT_DETECTION", "TEXT_DETECTION", + "FACE_DETECTION", } } diff --git a/aivision/landmark.go b/aivision/landmark.go new file mode 100644 index 0000000000..54d873f435 --- /dev/null +++ b/aivision/landmark.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. + +// Vision API +// +// Using Vision, you can upload images to detect and classify objects in them. If you have lots of images, you can process them in batch using asynchronous API endpoints. Vision's features are thematically split between Document AI for document-centric images, and Image Analysis for object and scene-based images. Pretrained models and custom models are supported. +// + +package aivision + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Landmark The landmark on the face. +type Landmark struct { + + // The face landmark type + Type LandmarkTypeEnum `mandatory:"true" json:"type"` + + // The X-axis normalized coordinate. + X *float32 `mandatory:"true" json:"x"` + + // The Y-axis normalized coordinate. + Y *float32 `mandatory:"true" json:"y"` +} + +func (m Landmark) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Landmark) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLandmarkTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetLandmarkTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LandmarkTypeEnum Enum with underlying type: string +type LandmarkTypeEnum string + +// Set of constants representing the allowable values for LandmarkTypeEnum +const ( + LandmarkTypeLeftEye LandmarkTypeEnum = "LEFT_EYE" + LandmarkTypeRightEye LandmarkTypeEnum = "RIGHT_EYE" + LandmarkTypeNoseTip LandmarkTypeEnum = "NOSE_TIP" + LandmarkTypeLeftEdgeOfMouth LandmarkTypeEnum = "LEFT_EDGE_OF_MOUTH" + LandmarkTypeRightEdgeOfMouth LandmarkTypeEnum = "RIGHT_EDGE_OF_MOUTH" +) + +var mappingLandmarkTypeEnum = map[string]LandmarkTypeEnum{ + "LEFT_EYE": LandmarkTypeLeftEye, + "RIGHT_EYE": LandmarkTypeRightEye, + "NOSE_TIP": LandmarkTypeNoseTip, + "LEFT_EDGE_OF_MOUTH": LandmarkTypeLeftEdgeOfMouth, + "RIGHT_EDGE_OF_MOUTH": LandmarkTypeRightEdgeOfMouth, +} + +var mappingLandmarkTypeEnumLowerCase = map[string]LandmarkTypeEnum{ + "left_eye": LandmarkTypeLeftEye, + "right_eye": LandmarkTypeRightEye, + "nose_tip": LandmarkTypeNoseTip, + "left_edge_of_mouth": LandmarkTypeLeftEdgeOfMouth, + "right_edge_of_mouth": LandmarkTypeRightEdgeOfMouth, +} + +// GetLandmarkTypeEnumValues Enumerates the set of values for LandmarkTypeEnum +func GetLandmarkTypeEnumValues() []LandmarkTypeEnum { + values := make([]LandmarkTypeEnum, 0) + for _, v := range mappingLandmarkTypeEnum { + values = append(values, v) + } + return values +} + +// GetLandmarkTypeEnumStringValues Enumerates the set of values in String for LandmarkTypeEnum +func GetLandmarkTypeEnumStringValues() []string { + return []string{ + "LEFT_EYE", + "RIGHT_EYE", + "NOSE_TIP", + "LEFT_EDGE_OF_MOUTH", + "RIGHT_EDGE_OF_MOUTH", + } +} + +// GetMappingLandmarkTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLandmarkTypeEnum(val string) (LandmarkTypeEnum, bool) { + enum, ok := mappingLandmarkTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/aivision/object_storage_dataset.go b/aivision/object_storage_dataset.go index 3dd954be70..b64b237fe8 100644 --- a/aivision/object_storage_dataset.go +++ b/aivision/object_storage_dataset.go @@ -20,13 +20,13 @@ import ( type ObjectStorageDataset struct { // The namespace name of the Object Storage bucket that contains the input data file. - NamespaceName *string `mandatory:"false" json:"namespaceName"` + NamespaceName *string `mandatory:"true" json:"namespaceName"` // The name of the Object Storage bucket that contains the input data file. - BucketName *string `mandatory:"false" json:"bucketName"` + BucketName *string `mandatory:"true" json:"bucketName"` // The object name of the input data file. - ObjectName *string `mandatory:"false" json:"objectName"` + ObjectName *string `mandatory:"true" json:"objectName"` } func (m ObjectStorageDataset) String() string { diff --git a/announcementsservice/announcement.go b/announcementsservice/announcement.go index 82ebd98d87..0542437525 100644 --- a/announcementsservice/announcement.go +++ b/announcementsservice/announcement.go @@ -65,6 +65,9 @@ type Announcement struct { // The name of the environment that this announcement pertains to. EnvironmentName *string `mandatory:"false" json:"environmentName"` + // The sequence of connected announcements, or announcement chain, that this announcement belongs to. Related announcements share the same chain ID. + ChainId *string `mandatory:"false" json:"chainId"` + // A detailed explanation of the event, expressed by using Markdown language. Avoid entering // confidential information. Description *string `mandatory:"false" json:"description"` @@ -185,6 +188,11 @@ func (m Announcement) GetPlatformType() BaseAnnouncementPlatformTypeEnum { return m.PlatformType } +//GetChainId returns ChainId +func (m Announcement) GetChainId() *string { + return m.ChainId +} + func (m Announcement) String() string { return common.PointerString(m) } diff --git a/announcementsservice/announcement_subscription.go b/announcementsservice/announcement_subscription.go index 35d4237add..1b446de591 100644 --- a/announcementsservice/announcement_subscription.go +++ b/announcementsservice/announcement_subscription.go @@ -56,10 +56,10 @@ type AnnouncementSubscription struct { // A list of filter groups for the announcement subscription. A filter group is a combination of multiple filters applied to announcements for matching purposes. FilterGroups map[string]FilterGroup `mandatory:"false" json:"filterGroups"` - // (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR. + // (For announcement subscriptions with SaaS configured as the platform type or Oracle Fusion Applications as the service, or both, only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the x-obmcs-human-language format. For example fr-FR. PreferredLanguage *string `mandatory:"false" json:"preferredLanguage"` - // The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles. + // The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles PreferredTimeZone *string `mandatory:"false" json:"preferredTimeZone"` // Usage of system tag keys. These predefined keys are scoped to namespaces. diff --git a/announcementsservice/announcement_summary.go b/announcementsservice/announcement_summary.go index c70fdee89a..9ff9790b7a 100644 --- a/announcementsservice/announcement_summary.go +++ b/announcementsservice/announcement_summary.go @@ -65,6 +65,9 @@ type AnnouncementSummary struct { // The name of the environment that this announcement pertains to. EnvironmentName *string `mandatory:"false" json:"environmentName"` + // The sequence of connected announcements, or announcement chain, that this announcement belongs to. Related announcements share the same chain ID. + ChainId *string `mandatory:"false" json:"chainId"` + // The type of a time associated with an initial time value. If the `timeOneTitle` attribute is present, then the `timeOneTitle` attribute contains a label of `timeOneType` in English. // Example: `START_TIME` TimeOneType BaseAnnouncementTimeOneTypeEnum `mandatory:"false" json:"timeOneType,omitempty"` @@ -173,6 +176,11 @@ func (m AnnouncementSummary) GetPlatformType() BaseAnnouncementPlatformTypeEnum return m.PlatformType } +//GetChainId returns ChainId +func (m AnnouncementSummary) GetChainId() *string { + return m.ChainId +} + func (m AnnouncementSummary) String() string { return common.PointerString(m) } diff --git a/announcementsservice/announcements_preferences.go b/announcementsservice/announcements_preferences.go index 482cb91bda..23edd44b9d 100644 --- a/announcementsservice/announcements_preferences.go +++ b/announcementsservice/announcements_preferences.go @@ -36,7 +36,7 @@ type AnnouncementsPreferences struct { // When the preferences were last updated. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles. + // The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles PreferredTimeZone *string `mandatory:"false" json:"preferredTimeZone"` // The string representing the user's preference regarding receiving announcements by email. diff --git a/announcementsservice/announcements_preferences_summary.go b/announcementsservice/announcements_preferences_summary.go index 133829811f..8951795173 100644 --- a/announcementsservice/announcements_preferences_summary.go +++ b/announcementsservice/announcements_preferences_summary.go @@ -36,7 +36,7 @@ type AnnouncementsPreferencesSummary struct { // When the preferences were last updated. TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - // The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles. + // The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles PreferredTimeZone *string `mandatory:"false" json:"preferredTimeZone"` // The string representing the user's preference regarding receiving announcements by email. diff --git a/announcementsservice/base_announcement.go b/announcementsservice/base_announcement.go index 5d8bed61e8..f8c51807a6 100644 --- a/announcementsservice/base_announcement.go +++ b/announcementsservice/base_announcement.go @@ -81,6 +81,9 @@ type BaseAnnouncement interface { // The platform type that this announcement pertains to. GetPlatformType() BaseAnnouncementPlatformTypeEnum + + // The sequence of connected announcements, or announcement chain, that this announcement belongs to. Related announcements share the same chain ID. + GetChainId() *string } type baseannouncement struct { @@ -95,6 +98,7 @@ type baseannouncement struct { TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` EnvironmentName *string `mandatory:"false" json:"environmentName"` PlatformType BaseAnnouncementPlatformTypeEnum `mandatory:"false" json:"platformType,omitempty"` + ChainId *string `mandatory:"false" json:"chainId"` Id *string `mandatory:"true" json:"id"` ReferenceTicketNumber *string `mandatory:"true" json:"referenceTicketNumber"` Summary *string `mandatory:"true" json:"summary"` @@ -135,6 +139,7 @@ func (m *baseannouncement) UnmarshalJSON(data []byte) error { m.TimeUpdated = s.Model.TimeUpdated m.EnvironmentName = s.Model.EnvironmentName m.PlatformType = s.Model.PlatformType + m.ChainId = s.Model.ChainId m.Type = s.Model.Type return err @@ -213,6 +218,11 @@ func (m baseannouncement) GetPlatformType() BaseAnnouncementPlatformTypeEnum { return m.PlatformType } +// GetChainId returns ChainId +func (m baseannouncement) GetChainId() *string { + return m.ChainId +} + // GetId returns Id func (m baseannouncement) GetId() *string { return m.Id diff --git a/announcementsservice/base_announcements_preferences.go b/announcementsservice/base_announcements_preferences.go index 7d6ee5cba7..bbfb5e46e6 100644 --- a/announcementsservice/base_announcements_preferences.go +++ b/announcementsservice/base_announcements_preferences.go @@ -39,7 +39,7 @@ type BaseAnnouncementsPreferences interface { // The string representing the user's preference regarding receiving announcements by email. GetPreferenceType() BaseCreateAnnouncementsPreferencesDetailsPreferenceTypeEnum - // The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles. + // The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles GetPreferredTimeZone() *string } diff --git a/announcementsservice/base_create_announcements_preferences_details.go b/announcementsservice/base_create_announcements_preferences_details.go index 621e9c2110..41bbe1b831 100644 --- a/announcementsservice/base_create_announcements_preferences_details.go +++ b/announcementsservice/base_create_announcements_preferences_details.go @@ -30,7 +30,7 @@ type BaseCreateAnnouncementsPreferencesDetails interface { // root compartment OCID.) GetCompartmentId() *string - // The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles. + // The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles GetPreferredTimeZone() *string } diff --git a/announcementsservice/create_announcement_subscription_details.go b/announcementsservice/create_announcement_subscription_details.go index 0ac97c509b..400fe3dc28 100644 --- a/announcementsservice/create_announcement_subscription_details.go +++ b/announcementsservice/create_announcement_subscription_details.go @@ -33,10 +33,10 @@ type CreateAnnouncementSubscriptionDetails struct { // A list of filter groups for the announcement subscription. A filter group combines one or more filters that the Announcements service applies to announcements for matching purposes. FilterGroups map[string]FilterGroupDetails `mandatory:"false" json:"filterGroups"` - // (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR. + // (For announcement subscriptions with SaaS configured as the platform type or Oracle Fusion Applications as the service, or both, only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the x-obmcs-human-language format. For example fr-FR. PreferredLanguage *string `mandatory:"false" json:"preferredLanguage"` - // The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles. + // The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles PreferredTimeZone *string `mandatory:"false" json:"preferredTimeZone"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. diff --git a/announcementsservice/create_announcements_preferences_details.go b/announcementsservice/create_announcements_preferences_details.go index 3d7a131cb1..cb2e59224b 100644 --- a/announcementsservice/create_announcements_preferences_details.go +++ b/announcementsservice/create_announcements_preferences_details.go @@ -27,7 +27,7 @@ type CreateAnnouncementsPreferencesDetails struct { // root compartment OCID.) CompartmentId *string `mandatory:"false" json:"compartmentId"` - // The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles. + // The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles PreferredTimeZone *string `mandatory:"false" json:"preferredTimeZone"` // The string representing the user's preference, whether to opt in to only required announcements, to opt in to all announcements, including informational announcements, or to opt out of all announcements. diff --git a/announcementsservice/filter.go b/announcementsservice/filter.go index f8442ce9f7..e65e356041 100644 --- a/announcementsservice/filter.go +++ b/announcementsservice/filter.go @@ -15,10 +15,10 @@ import ( "strings" ) -// Filter Criteria that the Announcements service uses to match announcements in order to provide only desired, matching announcements. +// Filter Criteria that the Announcements service uses to match announcements so it can provide only desired announcements to subscribers. type Filter struct { - // The type of filter. + // The type of filter. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually. Type FilterTypeEnum `mandatory:"true" json:"type"` // The value of the filter. diff --git a/announcementsservice/filter_group.go b/announcementsservice/filter_group.go index 63e606b643..46546336c6 100644 --- a/announcementsservice/filter_group.go +++ b/announcementsservice/filter_group.go @@ -21,7 +21,7 @@ type FilterGroup struct { // The name of the group. The name must be unique and it cannot be changed. Avoid entering confidential information. Name *string `mandatory:"true" json:"name"` - // A list of filters against which the Announcements service matches announcements. You cannot have more than one of any given filter type within a filter group. You also cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. + // A list of filters against which the Announcements service matches announcements. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually. Filters []Filter `mandatory:"true" json:"filters"` } diff --git a/announcementsservice/filter_group_details.go b/announcementsservice/filter_group_details.go index 49677399a0..5246de9b1c 100644 --- a/announcementsservice/filter_group_details.go +++ b/announcementsservice/filter_group_details.go @@ -18,7 +18,7 @@ import ( // FilterGroupDetails The details of a group of filters to match announcements against. A filter group combines one or more individual filters. type FilterGroupDetails struct { - // A list of filters against which the Announcements service matches announcements. You cannot have more than one of any given filter type within a filter group. + // A list of filters against which the Announcements service matches announcements. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually. Filters []Filter `mandatory:"true" json:"filters"` } diff --git a/announcementsservice/list_announcements_request_response.go b/announcementsservice/list_announcements_request_response.go index d90d2f351e..c9eae53dcf 100644 --- a/announcementsservice/list_announcements_request_response.go +++ b/announcementsservice/list_announcements_request_response.go @@ -60,6 +60,12 @@ type ListAnnouncementsRequest struct { // Exclude The type of announcement. ExcludeAnnouncementTypes []string `contributesTo:"query" name:"excludeAnnouncementTypes" collectionFormat:"multi"` + // A filter to display only the latest announcement in a chain. + ShouldShowOnlyLatestInChain *bool `mandatory:"false" contributesTo:"query" name:"shouldShowOnlyLatestInChain"` + + // A filter to return only announcements belonging to the specified announcement chain ID. + ChainId *string `mandatory:"false" contributesTo:"query" name:"chainId"` + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about // a particular request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` diff --git a/announcementsservice/update_announcement_subscription_details.go b/announcementsservice/update_announcement_subscription_details.go index df9644b49f..e20bb91571 100644 --- a/announcementsservice/update_announcement_subscription_details.go +++ b/announcementsservice/update_announcement_subscription_details.go @@ -27,10 +27,10 @@ type UpdateAnnouncementSubscriptionDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Notifications service topic that is the target for publishing announcements that match the configured announcement subscription. The caller of the operation needs the ONS_TOPIC_PUBLISH permission for the targeted Notifications service topic. For more information about Notifications permissions, see Details for Notifications (https://docs.cloud.oracle.com/Content/Identity/policyreference/notificationpolicyreference.htm). OnsTopicId *string `mandatory:"false" json:"onsTopicId"` - // (For announcement subscriptions with Oracle Fusion Applications configured as the service only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the language tag format (x-obmcs-human-language). For example fr-FR. + // (For announcement subscriptions with SaaS configured as the platform type or Oracle Fusion Applications as the service, or both, only) The language in which the user prefers to receive emailed announcements. Specify the preference with a value that uses the x-obmcs-human-language format. For example fr-FR. PreferredLanguage *string `mandatory:"false" json:"preferredLanguage"` - // The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles. + // The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles PreferredTimeZone *string `mandatory:"false" json:"preferredTimeZone"` // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. diff --git a/announcementsservice/update_announcements_preferences_details.go b/announcementsservice/update_announcements_preferences_details.go index 589851dd01..129eb816f0 100644 --- a/announcementsservice/update_announcements_preferences_details.go +++ b/announcementsservice/update_announcements_preferences_details.go @@ -27,7 +27,7 @@ type UpdateAnnouncementsPreferencesDetails struct { // root compartment OCID.) CompartmentId *string `mandatory:"false" json:"compartmentId"` - // The time zone that the user prefers for announcement time stamps. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example America/Los_Angeles. + // The time zone in which the user prefers to receive announcements. Specify the preference with a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). For example - America/Los_Angeles PreferredTimeZone *string `mandatory:"false" json:"preferredTimeZone"` // The string representing the user's preference, whether to opt in to only required announcements, to opt in to all announcements, including informational announcements, or to opt out of all announcements. diff --git a/announcementsservice/update_filter_group_details.go b/announcementsservice/update_filter_group_details.go index b64639f2c8..f459cebd91 100644 --- a/announcementsservice/update_filter_group_details.go +++ b/announcementsservice/update_filter_group_details.go @@ -18,7 +18,7 @@ import ( // UpdateFilterGroupDetails The details for updating a filter group in an announcement subscription. type UpdateFilterGroupDetails struct { - // A list of filters against which the Announcements service will match announcements. You cannot have more than one of any given filter type within a filter group. + // A list of filters against which the Announcements service will match announcements. You cannot combine the RESOURCE_ID filter with any other type of filter within a given filter group. For filter types that support multiple values, specify the values individually. Filters []Filter `mandatory:"true" json:"filters"` } diff --git a/common/errors.go b/common/errors.go index 24dfc4f4cd..96d61f1c48 100644 --- a/common/errors.go +++ b/common/errors.go @@ -5,11 +5,13 @@ package common import ( "encoding/json" + "errors" "fmt" "io/ioutil" "net" "net/http" "strings" + "syscall" "github.com/sony/gobreaker" ) @@ -266,9 +268,14 @@ func IsNetworkError(err error) bool { return false } - if r, ok := err.(net.Error); ok && (r.Temporary() || r.Timeout()) || strings.Contains(err.Error(), "net/http: HTTP/1.x transport connection broken") { + if errors.Is(err, syscall.ECONNRESET) { return true } + + if r, ok := err.(net.Error); ok && (r.Timeout() || strings.Contains(err.Error(), "net/http: HTTP/1.x transport connection broken")) { + return true + } + return false } diff --git a/common/errors_test.go b/common/errors_test.go index 8a614a8b52..ae3a025df5 100644 --- a/common/errors_test.go +++ b/common/errors_test.go @@ -7,12 +7,15 @@ import ( "bytes" "fmt" "io/ioutil" + "log" "net" "net/http" "net/url" + "os" "strings" "syscall" "testing" + "time" "github.com/stretchr/testify/assert" ) @@ -123,3 +126,50 @@ func TestNetworkErrors(t *testing.T) { assert.Equal(t, valid, true) } + +func TestConnectionReset(t *testing.T) { + go server() + + time.Sleep(3 * time.Second) // wait for server to run + + conn, err := net.Dial("tcp", "localhost:8080") + if err != nil { + log.Fatal("client", err) + } + + if _, err := conn.Write([]byte("ab")); err != nil { + log.Printf("client: %v", err) + } + + time.Sleep(1 * time.Second) // wait for close on the server side + + data := make([]byte, 1) + + _, resetErr := conn.Read(data) + + success := IsNetworkError(resetErr) + + assert.Equal(t, success, true) + +} + +func server() { + listener, err := net.Listen("tcp", ":8080") + if err != nil { + log.Fatal(err) + } + + defer listener.Close() + + conn, err := listener.Accept() + if err != nil { + log.Fatal("server", err) + os.Exit(1) + } + data := make([]byte, 1) + if _, err := conn.Read(data); err != nil { + log.Fatal("server", err) + } + + conn.Close() +} diff --git a/common/version.go b/common/version.go index ea1c3fc546..78fa1fec4c 100644 --- a/common/version.go +++ b/common/version.go @@ -13,7 +13,7 @@ import ( const ( major = "65" minor = "49" - patch = "0" + patch = "1" tag = "" ) diff --git a/database/autonomous_database.go b/database/autonomous_database.go index 4a5884bb26..a18766150f 100644 --- a/database/autonomous_database.go +++ b/database/autonomous_database.go @@ -96,8 +96,8 @@ type AutonomousDatabase struct { // The compute model of the Autonomous Database. This is required if using the `computeCount` parameter. If using `cpuCoreCount` then it is an error to specify `computeModel` to a non-null value. ComputeModel AutonomousDatabaseComputeModelEnum `mandatory:"false" json:"computeModel,omitempty"` - // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is on Shared or Dedicated infrastructure. - // For an Autonomous Database on Shared infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. + // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. + // For an Autonomous Database Serverless instance, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. ComputeCount *float32 `mandatory:"false" json:"computeCount"` // Retention period, in days, for long-term backups @@ -108,9 +108,9 @@ type AutonomousDatabase struct { // The number of OCPU cores to be made available to the database. // The following points apply: - // - For Autonomous Databases on dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Databasese on shared Exadata infrastructure.) + // - For Autonomous Databases on Dedicated Exadata Infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Database Serverless instances.) // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to Autonomous Databases on both shared and dedicated Exadata infrastructure. - // For Autonomous Databases on dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + // For Autonomous Databases on Dedicated Exadata Infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbde/index.html) for shape details. // **Note:** This parameter cannot be used with the `cpuCoreCount` parameter. OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` @@ -149,10 +149,10 @@ type AutonomousDatabase struct { ConnectionUrls *AutonomousDatabaseConnectionUrls `mandatory:"false" json:"connectionUrls"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel AutonomousDatabaseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` @@ -215,12 +215,12 @@ type AutonomousDatabase struct { // This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer platform. IsAccessControlEnabled *bool `mandatory:"false" json:"isAccessControlEnabled"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -231,12 +231,12 @@ type AutonomousDatabase struct { // It's value would be `FALSE` if Autonomous Database is Data Guard enabled and Access Control is enabled and if the Autonomous Database uses different IP access control list (ACL) for standby compared to primary. ArePrimaryWhitelistedIpsUsed *bool `mandatory:"false" json:"arePrimaryWhitelistedIpsUsed"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -337,13 +337,13 @@ type AutonomousDatabase struct { // The date and time that Autonomous Data Guard was enabled for an Autonomous Database where the standby was provisioned in the same region as the primary database. TimeLocalDataGuardEnabled *common.SDKTime `mandatory:"false" json:"timeLocalDataGuardEnabled"` - // The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Databases on shared Exadata infrastructure, Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Data Guard association, and cannot be performed when the database using the "primary" role is operating in a remote Data Guard standby region. + // The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database Serverless, Autonomous Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Autonomous Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Autonomous Data Guard association, and cannot be performed when the database using the primary role is operating in a remote Autonomous Data Guard standby region. DataguardRegionType AutonomousDatabaseDataguardRegionTypeEnum `mandatory:"false" json:"dataguardRegionType,omitempty"` // The date and time the Autonomous Data Guard role was switched for the Autonomous Database. For databases that have standbys in both the primary Data Guard region and a remote Data Guard standby region, this is the latest timestamp of either the database using the "primary" role in the primary Data Guard region, or database located in the remote Data Guard standby region. TimeDataGuardRoleChanged *common.SDKTime `mandatory:"false" json:"timeDataGuardRoleChanged"` - // The list of OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of standby databases located in Autonomous Data Guard remote regions that are associated with the source database. Note that for shared Exadata infrastructure, standby databases located in the same region as the source primary database do not have OCIDs. + // The list of OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of standby databases located in Autonomous Data Guard remote regions that are associated with the source database. Note that for Autonomous Database Serverless instances, standby databases located in the same region as the source primary database do not have OCIDs. PeerDbIds []string `mandatory:"false" json:"peerDbIds"` // Specifies if the Autonomous Database requires mTLS connections. @@ -352,7 +352,7 @@ type AutonomousDatabase struct { // - CreateAutonomousDatabase // - GetAutonomousDatabase // - UpdateAutonomousDatabase - // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Databases on shared Exadata infrastructure. + // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Database Serverless. // Does this impact me? If you use or maintain custom scripts or Terraform scripts referencing the CreateAutonomousDatabase, GetAutonomousDatabase, or UpdateAutonomousDatabase APIs, you want to check, and possibly modify, the scripts for the changed default value of the attribute. Should you choose not to leave your scripts unchanged, the API calls containing this attribute will continue to work, but the default value will switch from true to false. // How do I make this change? Using either OCI SDKs or command line tools, update your custom scripts to explicitly set the isMTLSConnectionRequired attribute to true. IsMtlsConnectionRequired *bool `mandatory:"false" json:"isMtlsConnectionRequired"` @@ -363,8 +363,8 @@ type AutonomousDatabase struct { // The time and date as an RFC3339 formatted string, e.g., 2022-01-01T12:00:00.000Z, to set the limit for a refreshable clone to be reconnected to its source database. TimeUntilReconnectCloneEnabled *common.SDKTime `mandatory:"false" json:"timeUntilReconnectCloneEnabled"` - // The maintenance schedule type of the Autonomous Database on shared Exadata infrastructure. The EARLY maintenance schedule of this Autonomous Database - // follows a schedule that applies patches prior to the REGULAR schedule.The REGULAR maintenance schedule of this Autonomous Database follows the normal cycle. + // The maintenance schedule type of the Autonomous Database Serverless. An EARLY maintenance schedule + // follows a schedule applying patches prior to the REGULAR schedule. A REGULAR maintenance schedule follows the normal cycle AutonomousMaintenanceScheduleType AutonomousDatabaseAutonomousMaintenanceScheduleTypeEnum `mandatory:"false" json:"autonomousMaintenanceScheduleType,omitempty"` // The list of scheduled operations. @@ -391,12 +391,12 @@ type AutonomousDatabase struct { // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, isLocalDataGuardEnabled, or isFreeTier. DbToolsDetails []DatabaseTool `mandatory:"false" json:"dbToolsDetails"` - // Indicates the local disaster recovery (DR) type of the Shared Autonomous Database. + // Indicates the local disaster recovery (DR) type of the Autonomous Database Serverless instance. // Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. // Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. LocalDisasterRecoveryType DisasterRecoveryConfigurationDisasterRecoveryTypeEnum `mandatory:"false" json:"localDisasterRecoveryType,omitempty"` - // The disaster recovery (DR) region type of the Autonomous Database. For Shared Autonomous Databases, DR associations have designated primary and standby regions. These region types do not change when the database changes roles. The standby region in DR associations can be the same region as the primary region, or they can be in a remote regions. Some database administration operations may be available only in the primary region of the DR association, and cannot be performed when the database using the primary role is operating in a remote region. + // The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database Serverless instances, DR associations have designated primary and standby regions. These region types do not change when the database changes roles. The standby region in DR associations can be the same region as the primary region, or they can be in a remote regions. Some database administration operations may be available only in the primary region of the DR association, and cannot be performed when the database using the primary role is operating in a remote region. DisasterRecoveryRegionType AutonomousDatabaseDisasterRecoveryRegionTypeEnum `mandatory:"false" json:"disasterRecoveryRegionType,omitempty"` // The date and time the Disaster Recovery role was switched for the standby Autonomous Database. diff --git a/database/autonomous_database_summary.go b/database/autonomous_database_summary.go index 474733d6f6..acc2568af7 100644 --- a/database/autonomous_database_summary.go +++ b/database/autonomous_database_summary.go @@ -97,8 +97,8 @@ type AutonomousDatabaseSummary struct { // The compute model of the Autonomous Database. This is required if using the `computeCount` parameter. If using `cpuCoreCount` then it is an error to specify `computeModel` to a non-null value. ComputeModel AutonomousDatabaseSummaryComputeModelEnum `mandatory:"false" json:"computeModel,omitempty"` - // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is on Shared or Dedicated infrastructure. - // For an Autonomous Database on Shared infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. + // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. + // For an Autonomous Database Serverless instance, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. ComputeCount *float32 `mandatory:"false" json:"computeCount"` // Retention period, in days, for long-term backups @@ -109,9 +109,9 @@ type AutonomousDatabaseSummary struct { // The number of OCPU cores to be made available to the database. // The following points apply: - // - For Autonomous Databases on dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Databasese on shared Exadata infrastructure.) + // - For Autonomous Databases on Dedicated Exadata Infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Database Serverless instances.) // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to Autonomous Databases on both shared and dedicated Exadata infrastructure. - // For Autonomous Databases on dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + // For Autonomous Databases on Dedicated Exadata Infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbde/index.html) for shape details. // **Note:** This parameter cannot be used with the `cpuCoreCount` parameter. OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` @@ -150,10 +150,10 @@ type AutonomousDatabaseSummary struct { ConnectionUrls *AutonomousDatabaseConnectionUrls `mandatory:"false" json:"connectionUrls"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel AutonomousDatabaseSummaryLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` @@ -216,12 +216,12 @@ type AutonomousDatabaseSummary struct { // This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer platform. IsAccessControlEnabled *bool `mandatory:"false" json:"isAccessControlEnabled"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -232,12 +232,12 @@ type AutonomousDatabaseSummary struct { // It's value would be `FALSE` if Autonomous Database is Data Guard enabled and Access Control is enabled and if the Autonomous Database uses different IP access control list (ACL) for standby compared to primary. ArePrimaryWhitelistedIpsUsed *bool `mandatory:"false" json:"arePrimaryWhitelistedIpsUsed"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -338,13 +338,13 @@ type AutonomousDatabaseSummary struct { // The date and time that Autonomous Data Guard was enabled for an Autonomous Database where the standby was provisioned in the same region as the primary database. TimeLocalDataGuardEnabled *common.SDKTime `mandatory:"false" json:"timeLocalDataGuardEnabled"` - // The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Databases on shared Exadata infrastructure, Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Data Guard association, and cannot be performed when the database using the "primary" role is operating in a remote Data Guard standby region. + // The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database Serverless, Autonomous Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Autonomous Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Autonomous Data Guard association, and cannot be performed when the database using the primary role is operating in a remote Autonomous Data Guard standby region. DataguardRegionType AutonomousDatabaseSummaryDataguardRegionTypeEnum `mandatory:"false" json:"dataguardRegionType,omitempty"` // The date and time the Autonomous Data Guard role was switched for the Autonomous Database. For databases that have standbys in both the primary Data Guard region and a remote Data Guard standby region, this is the latest timestamp of either the database using the "primary" role in the primary Data Guard region, or database located in the remote Data Guard standby region. TimeDataGuardRoleChanged *common.SDKTime `mandatory:"false" json:"timeDataGuardRoleChanged"` - // The list of OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of standby databases located in Autonomous Data Guard remote regions that are associated with the source database. Note that for shared Exadata infrastructure, standby databases located in the same region as the source primary database do not have OCIDs. + // The list of OCIDs (https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of standby databases located in Autonomous Data Guard remote regions that are associated with the source database. Note that for Autonomous Database Serverless instances, standby databases located in the same region as the source primary database do not have OCIDs. PeerDbIds []string `mandatory:"false" json:"peerDbIds"` // Specifies if the Autonomous Database requires mTLS connections. @@ -353,7 +353,7 @@ type AutonomousDatabaseSummary struct { // - CreateAutonomousDatabase // - GetAutonomousDatabase // - UpdateAutonomousDatabase - // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Databases on shared Exadata infrastructure. + // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Database Serverless. // Does this impact me? If you use or maintain custom scripts or Terraform scripts referencing the CreateAutonomousDatabase, GetAutonomousDatabase, or UpdateAutonomousDatabase APIs, you want to check, and possibly modify, the scripts for the changed default value of the attribute. Should you choose not to leave your scripts unchanged, the API calls containing this attribute will continue to work, but the default value will switch from true to false. // How do I make this change? Using either OCI SDKs or command line tools, update your custom scripts to explicitly set the isMTLSConnectionRequired attribute to true. IsMtlsConnectionRequired *bool `mandatory:"false" json:"isMtlsConnectionRequired"` @@ -364,8 +364,8 @@ type AutonomousDatabaseSummary struct { // The time and date as an RFC3339 formatted string, e.g., 2022-01-01T12:00:00.000Z, to set the limit for a refreshable clone to be reconnected to its source database. TimeUntilReconnectCloneEnabled *common.SDKTime `mandatory:"false" json:"timeUntilReconnectCloneEnabled"` - // The maintenance schedule type of the Autonomous Database on shared Exadata infrastructure. The EARLY maintenance schedule of this Autonomous Database - // follows a schedule that applies patches prior to the REGULAR schedule.The REGULAR maintenance schedule of this Autonomous Database follows the normal cycle. + // The maintenance schedule type of the Autonomous Database Serverless. An EARLY maintenance schedule + // follows a schedule applying patches prior to the REGULAR schedule. A REGULAR maintenance schedule follows the normal cycle AutonomousMaintenanceScheduleType AutonomousDatabaseSummaryAutonomousMaintenanceScheduleTypeEnum `mandatory:"false" json:"autonomousMaintenanceScheduleType,omitempty"` // The list of scheduled operations. @@ -392,12 +392,12 @@ type AutonomousDatabaseSummary struct { // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, isLocalDataGuardEnabled, or isFreeTier. DbToolsDetails []DatabaseTool `mandatory:"false" json:"dbToolsDetails"` - // Indicates the local disaster recovery (DR) type of the Shared Autonomous Database. + // Indicates the local disaster recovery (DR) type of the Autonomous Database Serverless instance. // Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. // Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. LocalDisasterRecoveryType DisasterRecoveryConfigurationDisasterRecoveryTypeEnum `mandatory:"false" json:"localDisasterRecoveryType,omitempty"` - // The disaster recovery (DR) region type of the Autonomous Database. For Shared Autonomous Databases, DR associations have designated primary and standby regions. These region types do not change when the database changes roles. The standby region in DR associations can be the same region as the primary region, or they can be in a remote regions. Some database administration operations may be available only in the primary region of the DR association, and cannot be performed when the database using the primary role is operating in a remote region. + // The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database Serverless instances, DR associations have designated primary and standby regions. These region types do not change when the database changes roles. The standby region in DR associations can be the same region as the primary region, or they can be in a remote regions. Some database administration operations may be available only in the primary region of the DR association, and cannot be performed when the database using the primary role is operating in a remote region. DisasterRecoveryRegionType AutonomousDatabaseSummaryDisasterRecoveryRegionTypeEnum `mandatory:"false" json:"disasterRecoveryRegionType,omitempty"` // The date and time the Disaster Recovery role was switched for the standby Autonomous Database. diff --git a/database/autonomous_db_preview_version_summary.go b/database/autonomous_db_preview_version_summary.go index 79547a769a..a523078af0 100644 --- a/database/autonomous_db_preview_version_summary.go +++ b/database/autonomous_db_preview_version_summary.go @@ -15,7 +15,7 @@ import ( "strings" ) -// AutonomousDbPreviewVersionSummary The Autonomous Database preview version. Note that preview version software is only available for databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html). +// AutonomousDbPreviewVersionSummary The Autonomous Database preview version. Note that preview version software is only available for Autonomous Database Serverless instances (https://docs.oracle.com/en/cloud/paas/autonomous-database/shared/index.html). type AutonomousDbPreviewVersionSummary struct { // A valid Autonomous Database preview version. diff --git a/database/change_disaster_recovery_configuration_details.go b/database/change_disaster_recovery_configuration_details.go index 0a8ae23052..a9f3164c24 100644 --- a/database/change_disaster_recovery_configuration_details.go +++ b/database/change_disaster_recovery_configuration_details.go @@ -15,10 +15,10 @@ import ( "strings" ) -// ChangeDisasterRecoveryConfigurationDetails Details to update the cross-region Disaster Recovery (DR) details of the Standby Autonomous Database on shared Exadata infrastructure. +// ChangeDisasterRecoveryConfigurationDetails Details to update the cross-region disaster recovery (DR) details of the standby Autonomous Database Serverless instance. type ChangeDisasterRecoveryConfigurationDetails struct { - // Indicates the disaster recovery (DR) type of the Shared Autonomous Database. + // Indicates the disaster recovery (DR) type of the Autonomous Database Serverless instance. // Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. // Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. DisasterRecoveryType ChangeDisasterRecoveryConfigurationDetailsDisasterRecoveryTypeEnum `mandatory:"false" json:"disasterRecoveryType,omitempty"` diff --git a/database/change_disaster_recovery_configuration_request_response.go b/database/change_disaster_recovery_configuration_request_response.go index 55e99899c3..dd111e930d 100644 --- a/database/change_disaster_recovery_configuration_request_response.go +++ b/database/change_disaster_recovery_configuration_request_response.go @@ -21,7 +21,7 @@ type ChangeDisasterRecoveryConfigurationRequest struct { // The database OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). AutonomousDatabaseId *string `mandatory:"true" contributesTo:"path" name:"autonomousDatabaseId"` - // Request to update the cross-region disaster recovery (DR) details of the standby Shared Autonomous Database. + // Request to update the cross-region disaster recovery (DR) details of the standby Autonomous Database Serverless database. ChangeDisasterRecoveryConfigurationDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` diff --git a/database/cloud_autonomous_vm_cluster.go b/database/cloud_autonomous_vm_cluster.go index 33fec4efc7..5373b6ddb2 100644 --- a/database/cloud_autonomous_vm_cluster.go +++ b/database/cloud_autonomous_vm_cluster.go @@ -103,10 +103,10 @@ type CloudAutonomousVmCluster struct { // The memory allocated in GBs. MemorySizeInGBs *int `mandatory:"false" json:"memorySizeInGBs"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel CloudAutonomousVmClusterLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` diff --git a/database/cloud_autonomous_vm_cluster_summary.go b/database/cloud_autonomous_vm_cluster_summary.go index 73c2498e3a..4ef0ce83c8 100644 --- a/database/cloud_autonomous_vm_cluster_summary.go +++ b/database/cloud_autonomous_vm_cluster_summary.go @@ -103,10 +103,10 @@ type CloudAutonomousVmClusterSummary struct { // The memory allocated in GBs. MemorySizeInGBs *int `mandatory:"false" json:"memorySizeInGBs"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel CloudAutonomousVmClusterSummaryLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` diff --git a/database/create_autonomous_database_base.go b/database/create_autonomous_database_base.go index f708d6b92a..f4f7dc0dd9 100644 --- a/database/create_autonomous_database_base.go +++ b/database/create_autonomous_database_base.go @@ -27,12 +27,12 @@ type CreateAutonomousDatabaseBase interface { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment of the Autonomous Database. GetCompartmentId() *string - // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database on shared infrastructure as as returned by List Autonomous Database Character Sets (https://docs.cloud.oracle.com/autonomousDatabaseCharacterSets) + // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database Serverless instance as as returned by List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) // For an Autonomous Database on dedicated infrastructure, the allowed values are: // AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSC5601, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P1, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS GetCharacterSet() *string - // The character set for the Autonomous Database. The default is AL32UTF8. Use ListAutonomousDatabaseCharacterSets to list the allowed values for an Autonomous Database on shared Exadata infrastructure. + // The character set for the Autonomous Database. The default is AL32UTF8. Use List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) to list the allowed values for an Autonomous Database Serverless instance. // For an Autonomous Database on dedicated Exadata infrastructure, the allowed values are: // AL16UTF16 or UTF8. GetNcharacterSet() *string @@ -50,13 +50,13 @@ type CreateAutonomousDatabaseBase interface { // The compute model of the Autonomous Database. This is required if using the `computeCount` parameter. If using `cpuCoreCount` then it is an error to specify `computeModel` to a non-null value. GetComputeModel() CreateAutonomousDatabaseBaseComputeModelEnum - // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is on Shared or Dedicated infrastructure. For an Autonomous Database on Shared infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. + // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. GetComputeCount() *float32 // The number of OCPU cores to be made available to the database. // The following points apply: - // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Databasese on shared Exadata infrastructure.) - // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to Autonomous Databases on both shared and dedicated Exadata infrastructure. + // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Database Serverless instances.) + // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. // For Autonomous Databases on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. // **Note:** This parameter cannot be used with the `cpuCoreCount` parameter. GetOcpuCount() *float32 @@ -90,20 +90,21 @@ type CreateAutonomousDatabaseBase interface { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). GetVaultId() *string - // **Important** The `adminPassword` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // This cannot be used in conjunction with with OCI vault secrets (secretId). GetAdminPassword() *string // The user-friendly name for the Autonomous Database. The name does not have to be unique. GetDisplayName() *string - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. GetLicenseModel() CreateAutonomousDatabaseBaseLicenseModelEnum - // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html). + // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for Autonomous Database Serverless instances (https://docs.oracle.com/en/cloud/paas/autonomous-database/shared/index.html). GetIsPreviewVersionWithServiceTermsAccepted() *bool // Indicates if auto scaling is enabled for the Autonomous Database OCPU core count. The default value is `FALSE`. @@ -126,12 +127,12 @@ type CreateAutonomousDatabaseBase interface { // This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer platform. GetIsAccessControlEnabled() *bool - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -142,12 +143,12 @@ type CreateAutonomousDatabaseBase interface { // It's value would be `FALSE` if Autonomous Database is Data Guard enabled and Access Control is enabled and if the Autonomous Database uses different IP access control list (ACL) for standby compared to primary. GetArePrimaryWhitelistedIpsUsed() *bool - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -202,13 +203,13 @@ type CreateAutonomousDatabaseBase interface { // - CreateAutonomousDatabase // - GetAutonomousDatabase // - UpdateAutonomousDatabase - // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Databases on shared Exadata infrastructure. + // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Database Serverless. // Does this impact me? If you use or maintain custom scripts or Terraform scripts referencing the CreateAutonomousDatabase, GetAutonomousDatabase, or UpdateAutonomousDatabase APIs, you want to check, and possibly modify, the scripts for the changed default value of the attribute. Should you choose not to leave your scripts unchanged, the API calls containing this attribute will continue to work, but the default value will switch from true to false. // How do I make this change? Using either OCI SDKs or command line tools, update your custom scripts to explicitly set the isMTLSConnectionRequired attribute to true. GetIsMtlsConnectionRequired() *bool - // The maintenance schedule type of the Autonomous Database on shared Exadata infrastructure. The EARLY maintenance schedule of this Autonomous Database - // follows a schedule that applies patches prior to the REGULAR schedule.The REGULAR maintenance schedule of this Autonomous Database follows the normal cycle. + // The maintenance schedule type of the Autonomous Database Serverless. An EARLY maintenance schedule + // follows a schedule applying patches prior to the REGULAR schedule. A REGULAR maintenance schedule follows the normal cycle GetAutonomousMaintenanceScheduleType() CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum // The list of scheduled operations. @@ -229,6 +230,7 @@ type CreateAutonomousDatabaseBase interface { GetDbToolsDetails() []DatabaseTool // The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. + // This cannot be used in conjunction with adminPassword. GetSecretId() *string // The version of the vault secret. If no version is specified, the latest version will be used. diff --git a/database/create_autonomous_database_clone_details.go b/database/create_autonomous_database_clone_details.go index 1d7d630516..4e03cc8e91 100644 --- a/database/create_autonomous_database_clone_details.go +++ b/database/create_autonomous_database_clone_details.go @@ -25,12 +25,12 @@ type CreateAutonomousDatabaseCloneDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database that you will clone to create a new Autonomous Database. SourceId *string `mandatory:"true" json:"sourceId"` - // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database on shared infrastructure as as returned by List Autonomous Database Character Sets (https://docs.cloud.oracle.com/autonomousDatabaseCharacterSets) + // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database Serverless instance as as returned by List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) // For an Autonomous Database on dedicated infrastructure, the allowed values are: // AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSC5601, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P1, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS CharacterSet *string `mandatory:"false" json:"characterSet"` - // The character set for the Autonomous Database. The default is AL32UTF8. Use ListAutonomousDatabaseCharacterSets to list the allowed values for an Autonomous Database on shared Exadata infrastructure. + // The character set for the Autonomous Database. The default is AL32UTF8. Use List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) to list the allowed values for an Autonomous Database Serverless instance. // For an Autonomous Database on dedicated Exadata infrastructure, the allowed values are: // AL16UTF16 or UTF8. NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` @@ -45,13 +45,13 @@ type CreateAutonomousDatabaseCloneDetails struct { // Retention period, in days, for long-term backups BackupRetentionPeriodInDays *int `mandatory:"false" json:"backupRetentionPeriodInDays"` - // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is on Shared or Dedicated infrastructure. For an Autonomous Database on Shared infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. + // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. ComputeCount *float32 `mandatory:"false" json:"computeCount"` // The number of OCPU cores to be made available to the database. // The following points apply: - // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Databasese on shared Exadata infrastructure.) - // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to Autonomous Databases on both shared and dedicated Exadata infrastructure. + // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Database Serverless instances.) + // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. // For Autonomous Databases on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. // **Note:** This parameter cannot be used with the `cpuCoreCount` parameter. OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` @@ -77,13 +77,14 @@ type CreateAutonomousDatabaseCloneDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). VaultId *string `mandatory:"false" json:"vaultId"` - // **Important** The `adminPassword` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` // The user-friendly name for the Autonomous Database. The name does not have to be unique. DisplayName *string `mandatory:"false" json:"displayName"` - // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html). + // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for Autonomous Database Serverless instances (https://docs.oracle.com/en/cloud/paas/autonomous-database/shared/index.html). IsPreviewVersionWithServiceTermsAccepted *bool `mandatory:"false" json:"isPreviewVersionWithServiceTermsAccepted"` // Indicates if auto scaling is enabled for the Autonomous Database OCPU core count. The default value is `FALSE`. @@ -106,12 +107,12 @@ type CreateAutonomousDatabaseCloneDetails struct { // This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer platform. IsAccessControlEnabled *bool `mandatory:"false" json:"isAccessControlEnabled"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -122,12 +123,12 @@ type CreateAutonomousDatabaseCloneDetails struct { // It's value would be `FALSE` if Autonomous Database is Data Guard enabled and Access Control is enabled and if the Autonomous Database uses different IP access control list (ACL) for standby compared to primary. ArePrimaryWhitelistedIpsUsed *bool `mandatory:"false" json:"arePrimaryWhitelistedIpsUsed"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -182,7 +183,7 @@ type CreateAutonomousDatabaseCloneDetails struct { // - CreateAutonomousDatabase // - GetAutonomousDatabase // - UpdateAutonomousDatabase - // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Databases on shared Exadata infrastructure. + // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Database Serverless. // Does this impact me? If you use or maintain custom scripts or Terraform scripts referencing the CreateAutonomousDatabase, GetAutonomousDatabase, or UpdateAutonomousDatabase APIs, you want to check, and possibly modify, the scripts for the changed default value of the attribute. Should you choose not to leave your scripts unchanged, the API calls containing this attribute will continue to work, but the default value will switch from true to false. // How do I make this change? Using either OCI SDKs or command line tools, update your custom scripts to explicitly set the isMTLSConnectionRequired attribute to true. IsMtlsConnectionRequired *bool `mandatory:"false" json:"isMtlsConnectionRequired"` @@ -202,6 +203,7 @@ type CreateAutonomousDatabaseCloneDetails struct { DbToolsDetails []DatabaseTool `mandatory:"false" json:"dbToolsDetails"` // The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. + // This cannot be used in conjunction with adminPassword. SecretId *string `mandatory:"false" json:"secretId"` // The version of the vault secret. If no version is specified, the latest version will be used. @@ -224,15 +226,15 @@ type CreateAutonomousDatabaseCloneDetails struct { // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `mandatory:"false" json:"dbWorkload,omitempty"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` - // The maintenance schedule type of the Autonomous Database on shared Exadata infrastructure. The EARLY maintenance schedule of this Autonomous Database - // follows a schedule that applies patches prior to the REGULAR schedule.The REGULAR maintenance schedule of this Autonomous Database follows the normal cycle. + // The maintenance schedule type of the Autonomous Database Serverless. An EARLY maintenance schedule + // follows a schedule applying patches prior to the REGULAR schedule. A REGULAR maintenance schedule follows the normal cycle AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `mandatory:"false" json:"autonomousMaintenanceScheduleType,omitempty"` } diff --git a/database/create_autonomous_database_details.go b/database/create_autonomous_database_details.go index d4276c9d89..5ec20109ba 100644 --- a/database/create_autonomous_database_details.go +++ b/database/create_autonomous_database_details.go @@ -22,12 +22,12 @@ type CreateAutonomousDatabaseDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment of the Autonomous Database. CompartmentId *string `mandatory:"true" json:"compartmentId"` - // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database on shared infrastructure as as returned by List Autonomous Database Character Sets (https://docs.cloud.oracle.com/autonomousDatabaseCharacterSets) + // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database Serverless instance as as returned by List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) // For an Autonomous Database on dedicated infrastructure, the allowed values are: // AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSC5601, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P1, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS CharacterSet *string `mandatory:"false" json:"characterSet"` - // The character set for the Autonomous Database. The default is AL32UTF8. Use ListAutonomousDatabaseCharacterSets to list the allowed values for an Autonomous Database on shared Exadata infrastructure. + // The character set for the Autonomous Database. The default is AL32UTF8. Use List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) to list the allowed values for an Autonomous Database Serverless instance. // For an Autonomous Database on dedicated Exadata infrastructure, the allowed values are: // AL16UTF16 or UTF8. NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` @@ -42,13 +42,13 @@ type CreateAutonomousDatabaseDetails struct { // Retention period, in days, for long-term backups BackupRetentionPeriodInDays *int `mandatory:"false" json:"backupRetentionPeriodInDays"` - // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is on Shared or Dedicated infrastructure. For an Autonomous Database on Shared infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. + // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. ComputeCount *float32 `mandatory:"false" json:"computeCount"` // The number of OCPU cores to be made available to the database. // The following points apply: - // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Databasese on shared Exadata infrastructure.) - // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to Autonomous Databases on both shared and dedicated Exadata infrastructure. + // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Database Serverless instances.) + // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. // For Autonomous Databases on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. // **Note:** This parameter cannot be used with the `cpuCoreCount` parameter. OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` @@ -74,13 +74,14 @@ type CreateAutonomousDatabaseDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). VaultId *string `mandatory:"false" json:"vaultId"` - // **Important** The `adminPassword` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` // The user-friendly name for the Autonomous Database. The name does not have to be unique. DisplayName *string `mandatory:"false" json:"displayName"` - // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html). + // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for Autonomous Database Serverless instances (https://docs.oracle.com/en/cloud/paas/autonomous-database/shared/index.html). IsPreviewVersionWithServiceTermsAccepted *bool `mandatory:"false" json:"isPreviewVersionWithServiceTermsAccepted"` // Indicates if auto scaling is enabled for the Autonomous Database OCPU core count. The default value is `FALSE`. @@ -103,12 +104,12 @@ type CreateAutonomousDatabaseDetails struct { // This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer platform. IsAccessControlEnabled *bool `mandatory:"false" json:"isAccessControlEnabled"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -119,12 +120,12 @@ type CreateAutonomousDatabaseDetails struct { // It's value would be `FALSE` if Autonomous Database is Data Guard enabled and Access Control is enabled and if the Autonomous Database uses different IP access control list (ACL) for standby compared to primary. ArePrimaryWhitelistedIpsUsed *bool `mandatory:"false" json:"arePrimaryWhitelistedIpsUsed"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -179,7 +180,7 @@ type CreateAutonomousDatabaseDetails struct { // - CreateAutonomousDatabase // - GetAutonomousDatabase // - UpdateAutonomousDatabase - // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Databases on shared Exadata infrastructure. + // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Database Serverless. // Does this impact me? If you use or maintain custom scripts or Terraform scripts referencing the CreateAutonomousDatabase, GetAutonomousDatabase, or UpdateAutonomousDatabase APIs, you want to check, and possibly modify, the scripts for the changed default value of the attribute. Should you choose not to leave your scripts unchanged, the API calls containing this attribute will continue to work, but the default value will switch from true to false. // How do I make this change? Using either OCI SDKs or command line tools, update your custom scripts to explicitly set the isMTLSConnectionRequired attribute to true. IsMtlsConnectionRequired *bool `mandatory:"false" json:"isMtlsConnectionRequired"` @@ -199,6 +200,7 @@ type CreateAutonomousDatabaseDetails struct { DbToolsDetails []DatabaseTool `mandatory:"false" json:"dbToolsDetails"` // The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. + // This cannot be used in conjunction with adminPassword. SecretId *string `mandatory:"false" json:"secretId"` // The version of the vault secret. If no version is specified, the latest version will be used. @@ -218,15 +220,15 @@ type CreateAutonomousDatabaseDetails struct { // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `mandatory:"false" json:"dbWorkload,omitempty"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` - // The maintenance schedule type of the Autonomous Database on shared Exadata infrastructure. The EARLY maintenance schedule of this Autonomous Database - // follows a schedule that applies patches prior to the REGULAR schedule.The REGULAR maintenance schedule of this Autonomous Database follows the normal cycle. + // The maintenance schedule type of the Autonomous Database Serverless. An EARLY maintenance schedule + // follows a schedule applying patches prior to the REGULAR schedule. A REGULAR maintenance schedule follows the normal cycle AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `mandatory:"false" json:"autonomousMaintenanceScheduleType,omitempty"` } diff --git a/database/create_autonomous_database_from_backup_details.go b/database/create_autonomous_database_from_backup_details.go index 084a1cdab2..8a6cdcd896 100644 --- a/database/create_autonomous_database_from_backup_details.go +++ b/database/create_autonomous_database_from_backup_details.go @@ -25,12 +25,12 @@ type CreateAutonomousDatabaseFromBackupDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database Backup that you will clone to create a new Autonomous Database. AutonomousDatabaseBackupId *string `mandatory:"true" json:"autonomousDatabaseBackupId"` - // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database on shared infrastructure as as returned by List Autonomous Database Character Sets (https://docs.cloud.oracle.com/autonomousDatabaseCharacterSets) + // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database Serverless instance as as returned by List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) // For an Autonomous Database on dedicated infrastructure, the allowed values are: // AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSC5601, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P1, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS CharacterSet *string `mandatory:"false" json:"characterSet"` - // The character set for the Autonomous Database. The default is AL32UTF8. Use ListAutonomousDatabaseCharacterSets to list the allowed values for an Autonomous Database on shared Exadata infrastructure. + // The character set for the Autonomous Database. The default is AL32UTF8. Use List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) to list the allowed values for an Autonomous Database Serverless instance. // For an Autonomous Database on dedicated Exadata infrastructure, the allowed values are: // AL16UTF16 or UTF8. NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` @@ -45,13 +45,13 @@ type CreateAutonomousDatabaseFromBackupDetails struct { // Retention period, in days, for long-term backups BackupRetentionPeriodInDays *int `mandatory:"false" json:"backupRetentionPeriodInDays"` - // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is on Shared or Dedicated infrastructure. For an Autonomous Database on Shared infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. + // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. ComputeCount *float32 `mandatory:"false" json:"computeCount"` // The number of OCPU cores to be made available to the database. // The following points apply: - // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Databasese on shared Exadata infrastructure.) - // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to Autonomous Databases on both shared and dedicated Exadata infrastructure. + // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Database Serverless instances.) + // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. // For Autonomous Databases on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. // **Note:** This parameter cannot be used with the `cpuCoreCount` parameter. OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` @@ -77,13 +77,14 @@ type CreateAutonomousDatabaseFromBackupDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). VaultId *string `mandatory:"false" json:"vaultId"` - // **Important** The `adminPassword` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` // The user-friendly name for the Autonomous Database. The name does not have to be unique. DisplayName *string `mandatory:"false" json:"displayName"` - // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html). + // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for Autonomous Database Serverless instances (https://docs.oracle.com/en/cloud/paas/autonomous-database/shared/index.html). IsPreviewVersionWithServiceTermsAccepted *bool `mandatory:"false" json:"isPreviewVersionWithServiceTermsAccepted"` // Indicates if auto scaling is enabled for the Autonomous Database OCPU core count. The default value is `FALSE`. @@ -106,12 +107,12 @@ type CreateAutonomousDatabaseFromBackupDetails struct { // This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer platform. IsAccessControlEnabled *bool `mandatory:"false" json:"isAccessControlEnabled"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -122,12 +123,12 @@ type CreateAutonomousDatabaseFromBackupDetails struct { // It's value would be `FALSE` if Autonomous Database is Data Guard enabled and Access Control is enabled and if the Autonomous Database uses different IP access control list (ACL) for standby compared to primary. ArePrimaryWhitelistedIpsUsed *bool `mandatory:"false" json:"arePrimaryWhitelistedIpsUsed"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -182,7 +183,7 @@ type CreateAutonomousDatabaseFromBackupDetails struct { // - CreateAutonomousDatabase // - GetAutonomousDatabase // - UpdateAutonomousDatabase - // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Databases on shared Exadata infrastructure. + // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Database Serverless. // Does this impact me? If you use or maintain custom scripts or Terraform scripts referencing the CreateAutonomousDatabase, GetAutonomousDatabase, or UpdateAutonomousDatabase APIs, you want to check, and possibly modify, the scripts for the changed default value of the attribute. Should you choose not to leave your scripts unchanged, the API calls containing this attribute will continue to work, but the default value will switch from true to false. // How do I make this change? Using either OCI SDKs or command line tools, update your custom scripts to explicitly set the isMTLSConnectionRequired attribute to true. IsMtlsConnectionRequired *bool `mandatory:"false" json:"isMtlsConnectionRequired"` @@ -202,6 +203,7 @@ type CreateAutonomousDatabaseFromBackupDetails struct { DbToolsDetails []DatabaseTool `mandatory:"false" json:"dbToolsDetails"` // The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. + // This cannot be used in conjunction with adminPassword. SecretId *string `mandatory:"false" json:"secretId"` // The version of the vault secret. If no version is specified, the latest version will be used. @@ -224,15 +226,15 @@ type CreateAutonomousDatabaseFromBackupDetails struct { // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `mandatory:"false" json:"dbWorkload,omitempty"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` - // The maintenance schedule type of the Autonomous Database on shared Exadata infrastructure. The EARLY maintenance schedule of this Autonomous Database - // follows a schedule that applies patches prior to the REGULAR schedule.The REGULAR maintenance schedule of this Autonomous Database follows the normal cycle. + // The maintenance schedule type of the Autonomous Database Serverless. An EARLY maintenance schedule + // follows a schedule applying patches prior to the REGULAR schedule. A REGULAR maintenance schedule follows the normal cycle AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `mandatory:"false" json:"autonomousMaintenanceScheduleType,omitempty"` } diff --git a/database/create_autonomous_database_from_backup_timestamp_details.go b/database/create_autonomous_database_from_backup_timestamp_details.go index aee8e24309..88a6c7e387 100644 --- a/database/create_autonomous_database_from_backup_timestamp_details.go +++ b/database/create_autonomous_database_from_backup_timestamp_details.go @@ -25,12 +25,12 @@ type CreateAutonomousDatabaseFromBackupTimestampDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database that you will clone to create a new Autonomous Database. AutonomousDatabaseId *string `mandatory:"true" json:"autonomousDatabaseId"` - // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database on shared infrastructure as as returned by List Autonomous Database Character Sets (https://docs.cloud.oracle.com/autonomousDatabaseCharacterSets) + // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database Serverless instance as as returned by List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) // For an Autonomous Database on dedicated infrastructure, the allowed values are: // AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSC5601, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P1, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS CharacterSet *string `mandatory:"false" json:"characterSet"` - // The character set for the Autonomous Database. The default is AL32UTF8. Use ListAutonomousDatabaseCharacterSets to list the allowed values for an Autonomous Database on shared Exadata infrastructure. + // The character set for the Autonomous Database. The default is AL32UTF8. Use List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) to list the allowed values for an Autonomous Database Serverless instance. // For an Autonomous Database on dedicated Exadata infrastructure, the allowed values are: // AL16UTF16 or UTF8. NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` @@ -45,13 +45,13 @@ type CreateAutonomousDatabaseFromBackupTimestampDetails struct { // Retention period, in days, for long-term backups BackupRetentionPeriodInDays *int `mandatory:"false" json:"backupRetentionPeriodInDays"` - // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is on Shared or Dedicated infrastructure. For an Autonomous Database on Shared infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. + // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. ComputeCount *float32 `mandatory:"false" json:"computeCount"` // The number of OCPU cores to be made available to the database. // The following points apply: - // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Databasese on shared Exadata infrastructure.) - // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to Autonomous Databases on both shared and dedicated Exadata infrastructure. + // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Database Serverless instances.) + // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. // For Autonomous Databases on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. // **Note:** This parameter cannot be used with the `cpuCoreCount` parameter. OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` @@ -77,13 +77,14 @@ type CreateAutonomousDatabaseFromBackupTimestampDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). VaultId *string `mandatory:"false" json:"vaultId"` - // **Important** The `adminPassword` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` // The user-friendly name for the Autonomous Database. The name does not have to be unique. DisplayName *string `mandatory:"false" json:"displayName"` - // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html). + // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for Autonomous Database Serverless instances (https://docs.oracle.com/en/cloud/paas/autonomous-database/shared/index.html). IsPreviewVersionWithServiceTermsAccepted *bool `mandatory:"false" json:"isPreviewVersionWithServiceTermsAccepted"` // Indicates if auto scaling is enabled for the Autonomous Database OCPU core count. The default value is `FALSE`. @@ -106,12 +107,12 @@ type CreateAutonomousDatabaseFromBackupTimestampDetails struct { // This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer platform. IsAccessControlEnabled *bool `mandatory:"false" json:"isAccessControlEnabled"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -122,12 +123,12 @@ type CreateAutonomousDatabaseFromBackupTimestampDetails struct { // It's value would be `FALSE` if Autonomous Database is Data Guard enabled and Access Control is enabled and if the Autonomous Database uses different IP access control list (ACL) for standby compared to primary. ArePrimaryWhitelistedIpsUsed *bool `mandatory:"false" json:"arePrimaryWhitelistedIpsUsed"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -182,7 +183,7 @@ type CreateAutonomousDatabaseFromBackupTimestampDetails struct { // - CreateAutonomousDatabase // - GetAutonomousDatabase // - UpdateAutonomousDatabase - // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Databases on shared Exadata infrastructure. + // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Database Serverless. // Does this impact me? If you use or maintain custom scripts or Terraform scripts referencing the CreateAutonomousDatabase, GetAutonomousDatabase, or UpdateAutonomousDatabase APIs, you want to check, and possibly modify, the scripts for the changed default value of the attribute. Should you choose not to leave your scripts unchanged, the API calls containing this attribute will continue to work, but the default value will switch from true to false. // How do I make this change? Using either OCI SDKs or command line tools, update your custom scripts to explicitly set the isMTLSConnectionRequired attribute to true. IsMtlsConnectionRequired *bool `mandatory:"false" json:"isMtlsConnectionRequired"` @@ -202,6 +203,7 @@ type CreateAutonomousDatabaseFromBackupTimestampDetails struct { DbToolsDetails []DatabaseTool `mandatory:"false" json:"dbToolsDetails"` // The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. + // This cannot be used in conjunction with adminPassword. SecretId *string `mandatory:"false" json:"secretId"` // The version of the vault secret. If no version is specified, the latest version will be used. @@ -230,15 +232,15 @@ type CreateAutonomousDatabaseFromBackupTimestampDetails struct { // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `mandatory:"false" json:"dbWorkload,omitempty"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` - // The maintenance schedule type of the Autonomous Database on shared Exadata infrastructure. The EARLY maintenance schedule of this Autonomous Database - // follows a schedule that applies patches prior to the REGULAR schedule.The REGULAR maintenance schedule of this Autonomous Database follows the normal cycle. + // The maintenance schedule type of the Autonomous Database Serverless. An EARLY maintenance schedule + // follows a schedule applying patches prior to the REGULAR schedule. A REGULAR maintenance schedule follows the normal cycle AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `mandatory:"false" json:"autonomousMaintenanceScheduleType,omitempty"` } diff --git a/database/create_cloud_autonomous_vm_cluster_details.go b/database/create_cloud_autonomous_vm_cluster_details.go index 9321f58cc6..56ebe25ec8 100644 --- a/database/create_cloud_autonomous_vm_cluster_details.go +++ b/database/create_cloud_autonomous_vm_cluster_details.go @@ -65,10 +65,10 @@ type CreateCloudAutonomousVmClusterDetails struct { // The SCAN Listener Non TLS port. Default is 1521. ScanListenerPortNonTls *int `mandatory:"false" json:"scanListenerPortNonTls"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel CreateCloudAutonomousVmClusterDetailsLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` diff --git a/database/create_cross_region_autonomous_database_data_guard_details.go b/database/create_cross_region_autonomous_database_data_guard_details.go index a8e53cfee8..c0c8a983e0 100644 --- a/database/create_cross_region_autonomous_database_data_guard_details.go +++ b/database/create_cross_region_autonomous_database_data_guard_details.go @@ -67,12 +67,12 @@ type CreateCrossRegionAutonomousDatabaseDataGuardDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database that will be used to create a new standby database for the Data Guard association. SourceId *string `mandatory:"true" json:"sourceId"` - // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database on shared infrastructure as as returned by List Autonomous Database Character Sets (https://docs.cloud.oracle.com/autonomousDatabaseCharacterSets) + // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database Serverless instance as as returned by List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) // For an Autonomous Database on dedicated infrastructure, the allowed values are: // AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSC5601, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P1, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS CharacterSet *string `mandatory:"false" json:"characterSet"` - // The character set for the Autonomous Database. The default is AL32UTF8. Use ListAutonomousDatabaseCharacterSets to list the allowed values for an Autonomous Database on shared Exadata infrastructure. + // The character set for the Autonomous Database. The default is AL32UTF8. Use List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) to list the allowed values for an Autonomous Database Serverless instance. // For an Autonomous Database on dedicated Exadata infrastructure, the allowed values are: // AL16UTF16 or UTF8. NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` @@ -87,13 +87,13 @@ type CreateCrossRegionAutonomousDatabaseDataGuardDetails struct { // Retention period, in days, for long-term backups BackupRetentionPeriodInDays *int `mandatory:"false" json:"backupRetentionPeriodInDays"` - // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is on Shared or Dedicated infrastructure. For an Autonomous Database on Shared infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. + // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. ComputeCount *float32 `mandatory:"false" json:"computeCount"` // The number of OCPU cores to be made available to the database. // The following points apply: - // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Databasese on shared Exadata infrastructure.) - // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to Autonomous Databases on both shared and dedicated Exadata infrastructure. + // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Database Serverless instances.) + // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. // For Autonomous Databases on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. // **Note:** This parameter cannot be used with the `cpuCoreCount` parameter. OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` @@ -119,13 +119,14 @@ type CreateCrossRegionAutonomousDatabaseDataGuardDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). VaultId *string `mandatory:"false" json:"vaultId"` - // **Important** The `adminPassword` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` // The user-friendly name for the Autonomous Database. The name does not have to be unique. DisplayName *string `mandatory:"false" json:"displayName"` - // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html). + // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for Autonomous Database Serverless instances (https://docs.oracle.com/en/cloud/paas/autonomous-database/shared/index.html). IsPreviewVersionWithServiceTermsAccepted *bool `mandatory:"false" json:"isPreviewVersionWithServiceTermsAccepted"` // Indicates if auto scaling is enabled for the Autonomous Database OCPU core count. The default value is `FALSE`. @@ -148,12 +149,12 @@ type CreateCrossRegionAutonomousDatabaseDataGuardDetails struct { // This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer platform. IsAccessControlEnabled *bool `mandatory:"false" json:"isAccessControlEnabled"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -164,12 +165,12 @@ type CreateCrossRegionAutonomousDatabaseDataGuardDetails struct { // It's value would be `FALSE` if Autonomous Database is Data Guard enabled and Access Control is enabled and if the Autonomous Database uses different IP access control list (ACL) for standby compared to primary. ArePrimaryWhitelistedIpsUsed *bool `mandatory:"false" json:"arePrimaryWhitelistedIpsUsed"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -224,7 +225,7 @@ type CreateCrossRegionAutonomousDatabaseDataGuardDetails struct { // - CreateAutonomousDatabase // - GetAutonomousDatabase // - UpdateAutonomousDatabase - // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Databases on shared Exadata infrastructure. + // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Database Serverless. // Does this impact me? If you use or maintain custom scripts or Terraform scripts referencing the CreateAutonomousDatabase, GetAutonomousDatabase, or UpdateAutonomousDatabase APIs, you want to check, and possibly modify, the scripts for the changed default value of the attribute. Should you choose not to leave your scripts unchanged, the API calls containing this attribute will continue to work, but the default value will switch from true to false. // How do I make this change? Using either OCI SDKs or command line tools, update your custom scripts to explicitly set the isMTLSConnectionRequired attribute to true. IsMtlsConnectionRequired *bool `mandatory:"false" json:"isMtlsConnectionRequired"` @@ -244,6 +245,7 @@ type CreateCrossRegionAutonomousDatabaseDataGuardDetails struct { DbToolsDetails []DatabaseTool `mandatory:"false" json:"dbToolsDetails"` // The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. + // This cannot be used in conjunction with adminPassword. SecretId *string `mandatory:"false" json:"secretId"` // The version of the vault secret. If no version is specified, the latest version will be used. @@ -263,15 +265,15 @@ type CreateCrossRegionAutonomousDatabaseDataGuardDetails struct { // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `mandatory:"false" json:"dbWorkload,omitempty"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` - // The maintenance schedule type of the Autonomous Database on shared Exadata infrastructure. The EARLY maintenance schedule of this Autonomous Database - // follows a schedule that applies patches prior to the REGULAR schedule.The REGULAR maintenance schedule of this Autonomous Database follows the normal cycle. + // The maintenance schedule type of the Autonomous Database Serverless. An EARLY maintenance schedule + // follows a schedule applying patches prior to the REGULAR schedule. A REGULAR maintenance schedule follows the normal cycle AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `mandatory:"false" json:"autonomousMaintenanceScheduleType,omitempty"` } diff --git a/database/create_cross_region_disaster_recovery_details.go b/database/create_cross_region_disaster_recovery_details.go index 61a1b04e32..ab3b706e8d 100644 --- a/database/create_cross_region_disaster_recovery_details.go +++ b/database/create_cross_region_disaster_recovery_details.go @@ -65,12 +65,12 @@ type CreateCrossRegionDisasterRecoveryDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database that will be used to create a new standby database for the DR association. SourceId *string `mandatory:"true" json:"sourceId"` - // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database on shared infrastructure as as returned by List Autonomous Database Character Sets (https://docs.cloud.oracle.com/autonomousDatabaseCharacterSets) + // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database Serverless instance as as returned by List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) // For an Autonomous Database on dedicated infrastructure, the allowed values are: // AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSC5601, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P1, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS CharacterSet *string `mandatory:"false" json:"characterSet"` - // The character set for the Autonomous Database. The default is AL32UTF8. Use ListAutonomousDatabaseCharacterSets to list the allowed values for an Autonomous Database on shared Exadata infrastructure. + // The character set for the Autonomous Database. The default is AL32UTF8. Use List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) to list the allowed values for an Autonomous Database Serverless instance. // For an Autonomous Database on dedicated Exadata infrastructure, the allowed values are: // AL16UTF16 or UTF8. NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` @@ -85,13 +85,13 @@ type CreateCrossRegionDisasterRecoveryDetails struct { // Retention period, in days, for long-term backups BackupRetentionPeriodInDays *int `mandatory:"false" json:"backupRetentionPeriodInDays"` - // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is on Shared or Dedicated infrastructure. For an Autonomous Database on Shared infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. + // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. ComputeCount *float32 `mandatory:"false" json:"computeCount"` // The number of OCPU cores to be made available to the database. // The following points apply: - // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Databasese on shared Exadata infrastructure.) - // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to Autonomous Databases on both shared and dedicated Exadata infrastructure. + // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Database Serverless instances.) + // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. // For Autonomous Databases on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. // **Note:** This parameter cannot be used with the `cpuCoreCount` parameter. OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` @@ -117,13 +117,14 @@ type CreateCrossRegionDisasterRecoveryDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). VaultId *string `mandatory:"false" json:"vaultId"` - // **Important** The `adminPassword` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` // The user-friendly name for the Autonomous Database. The name does not have to be unique. DisplayName *string `mandatory:"false" json:"displayName"` - // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html). + // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for Autonomous Database Serverless instances (https://docs.oracle.com/en/cloud/paas/autonomous-database/shared/index.html). IsPreviewVersionWithServiceTermsAccepted *bool `mandatory:"false" json:"isPreviewVersionWithServiceTermsAccepted"` // Indicates if auto scaling is enabled for the Autonomous Database OCPU core count. The default value is `FALSE`. @@ -146,12 +147,12 @@ type CreateCrossRegionDisasterRecoveryDetails struct { // This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer platform. IsAccessControlEnabled *bool `mandatory:"false" json:"isAccessControlEnabled"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -162,12 +163,12 @@ type CreateCrossRegionDisasterRecoveryDetails struct { // It's value would be `FALSE` if Autonomous Database is Data Guard enabled and Access Control is enabled and if the Autonomous Database uses different IP access control list (ACL) for standby compared to primary. ArePrimaryWhitelistedIpsUsed *bool `mandatory:"false" json:"arePrimaryWhitelistedIpsUsed"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -222,7 +223,7 @@ type CreateCrossRegionDisasterRecoveryDetails struct { // - CreateAutonomousDatabase // - GetAutonomousDatabase // - UpdateAutonomousDatabase - // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Databases on shared Exadata infrastructure. + // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Database Serverless. // Does this impact me? If you use or maintain custom scripts or Terraform scripts referencing the CreateAutonomousDatabase, GetAutonomousDatabase, or UpdateAutonomousDatabase APIs, you want to check, and possibly modify, the scripts for the changed default value of the attribute. Should you choose not to leave your scripts unchanged, the API calls containing this attribute will continue to work, but the default value will switch from true to false. // How do I make this change? Using either OCI SDKs or command line tools, update your custom scripts to explicitly set the isMTLSConnectionRequired attribute to true. IsMtlsConnectionRequired *bool `mandatory:"false" json:"isMtlsConnectionRequired"` @@ -242,6 +243,7 @@ type CreateCrossRegionDisasterRecoveryDetails struct { DbToolsDetails []DatabaseTool `mandatory:"false" json:"dbToolsDetails"` // The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. + // This cannot be used in conjunction with adminPassword. SecretId *string `mandatory:"false" json:"secretId"` // The version of the vault secret. If no version is specified, the latest version will be used. @@ -261,18 +263,18 @@ type CreateCrossRegionDisasterRecoveryDetails struct { // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `mandatory:"false" json:"dbWorkload,omitempty"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` - // The maintenance schedule type of the Autonomous Database on shared Exadata infrastructure. The EARLY maintenance schedule of this Autonomous Database - // follows a schedule that applies patches prior to the REGULAR schedule.The REGULAR maintenance schedule of this Autonomous Database follows the normal cycle. + // The maintenance schedule type of the Autonomous Database Serverless. An EARLY maintenance schedule + // follows a schedule applying patches prior to the REGULAR schedule. A REGULAR maintenance schedule follows the normal cycle AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `mandatory:"false" json:"autonomousMaintenanceScheduleType,omitempty"` - // Indicates the cross-region disaster recovery (DR) type of the standby Shared Autonomous Database. + // Indicates the cross-region disaster recovery (DR) type of the standby Autonomous Database Serverless instance. // Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. // Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. RemoteDisasterRecoveryType DisasterRecoveryConfigurationDisasterRecoveryTypeEnum `mandatory:"true" json:"remoteDisasterRecoveryType"` diff --git a/database/create_refreshable_autonomous_database_clone_details.go b/database/create_refreshable_autonomous_database_clone_details.go index a37f2ed200..bee5e5ff34 100644 --- a/database/create_refreshable_autonomous_database_clone_details.go +++ b/database/create_refreshable_autonomous_database_clone_details.go @@ -25,12 +25,12 @@ type CreateRefreshableAutonomousDatabaseCloneDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source Autonomous Database that you will clone to create a new Autonomous Database. SourceId *string `mandatory:"true" json:"sourceId"` - // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database on shared infrastructure as as returned by List Autonomous Database Character Sets (https://docs.cloud.oracle.com/autonomousDatabaseCharacterSets) + // The character set for the autonomous database. The default is AL32UTF8. Allowed values for an Autonomous Database Serverless instance as as returned by List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) // For an Autonomous Database on dedicated infrastructure, the allowed values are: // AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSC5601, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P1, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS CharacterSet *string `mandatory:"false" json:"characterSet"` - // The character set for the Autonomous Database. The default is AL32UTF8. Use ListAutonomousDatabaseCharacterSets to list the allowed values for an Autonomous Database on shared Exadata infrastructure. + // The character set for the Autonomous Database. The default is AL32UTF8. Use List Autonomous Database Character Sets (https://docs.oracle.com/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html) to list the allowed values for an Autonomous Database Serverless instance. // For an Autonomous Database on dedicated Exadata infrastructure, the allowed values are: // AL16UTF16 or UTF8. NcharacterSet *string `mandatory:"false" json:"ncharacterSet"` @@ -45,13 +45,13 @@ type CreateRefreshableAutonomousDatabaseCloneDetails struct { // Retention period, in days, for long-term backups BackupRetentionPeriodInDays *int `mandatory:"false" json:"backupRetentionPeriodInDays"` - // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is on Shared or Dedicated infrastructure. For an Autonomous Database on Shared infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. + // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure, the 'ECPU' compute model requires values in multiples of two. Required when using the `computeModel` parameter. When using `cpuCoreCount` parameter, it is an error to specify computeCount to a non-null value. ComputeCount *float32 `mandatory:"false" json:"computeCount"` // The number of OCPU cores to be made available to the database. // The following points apply: - // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Databasese on shared Exadata infrastructure.) - // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to Autonomous Databases on both shared and dedicated Exadata infrastructure. + // - For Autonomous Databases on Dedicated Exadata infrastructure, to provision less than 1 core, enter a fractional value in an increment of 0.1. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. (Note that fractional OCPU values are not supported for Autonomous Database Serverless instances.) + // - To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available for the infrastructure shape. For example, you can provision 2 cores or 3 cores, but not 2.5 cores. This applies to an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. // For Autonomous Databases on Dedicated Exadata infrastructure, the maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. // **Note:** This parameter cannot be used with the `cpuCoreCount` parameter. OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` @@ -77,13 +77,14 @@ type CreateRefreshableAutonomousDatabaseCloneDetails struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Oracle Cloud Infrastructure vault (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts). VaultId *string `mandatory:"false" json:"vaultId"` - // **Important** The `adminPassword` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // **Important** The `adminPassword` or `secretId` must be specified for all Autonomous Databases except for refreshable clones. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. + // This cannot be used in conjunction with with OCI vault secrets (secretId). AdminPassword *string `mandatory:"false" json:"adminPassword"` // The user-friendly name for the Autonomous Database. The name does not have to be unique. DisplayName *string `mandatory:"false" json:"displayName"` - // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html). + // If set to `TRUE`, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for Autonomous Database Serverless instances (https://docs.oracle.com/en/cloud/paas/autonomous-database/shared/index.html). IsPreviewVersionWithServiceTermsAccepted *bool `mandatory:"false" json:"isPreviewVersionWithServiceTermsAccepted"` // Indicates if auto scaling is enabled for the Autonomous Database OCPU core count. The default value is `FALSE`. @@ -106,12 +107,12 @@ type CreateRefreshableAutonomousDatabaseCloneDetails struct { // This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer platform. IsAccessControlEnabled *bool `mandatory:"false" json:"isAccessControlEnabled"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -122,12 +123,12 @@ type CreateRefreshableAutonomousDatabaseCloneDetails struct { // It's value would be `FALSE` if Autonomous Database is Data Guard enabled and Access Control is enabled and if the Autonomous Database uses different IP access control list (ACL) for standby compared to primary. ArePrimaryWhitelistedIpsUsed *bool `mandatory:"false" json:"arePrimaryWhitelistedIpsUsed"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -182,7 +183,7 @@ type CreateRefreshableAutonomousDatabaseCloneDetails struct { // - CreateAutonomousDatabase // - GetAutonomousDatabase // - UpdateAutonomousDatabase - // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Databases on shared Exadata infrastructure. + // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Database Serverless. // Does this impact me? If you use or maintain custom scripts or Terraform scripts referencing the CreateAutonomousDatabase, GetAutonomousDatabase, or UpdateAutonomousDatabase APIs, you want to check, and possibly modify, the scripts for the changed default value of the attribute. Should you choose not to leave your scripts unchanged, the API calls containing this attribute will continue to work, but the default value will switch from true to false. // How do I make this change? Using either OCI SDKs or command line tools, update your custom scripts to explicitly set the isMTLSConnectionRequired attribute to true. IsMtlsConnectionRequired *bool `mandatory:"false" json:"isMtlsConnectionRequired"` @@ -202,6 +203,7 @@ type CreateRefreshableAutonomousDatabaseCloneDetails struct { DbToolsDetails []DatabaseTool `mandatory:"false" json:"dbToolsDetails"` // The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. + // This cannot be used in conjunction with adminPassword. SecretId *string `mandatory:"false" json:"secretId"` // The version of the vault secret. If no version is specified, the latest version will be used. @@ -224,15 +226,15 @@ type CreateRefreshableAutonomousDatabaseCloneDetails struct { // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. DbWorkload CreateAutonomousDatabaseBaseDbWorkloadEnum `mandatory:"false" json:"dbWorkload,omitempty"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel CreateAutonomousDatabaseBaseLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` - // The maintenance schedule type of the Autonomous Database on shared Exadata infrastructure. The EARLY maintenance schedule of this Autonomous Database - // follows a schedule that applies patches prior to the REGULAR schedule.The REGULAR maintenance schedule of this Autonomous Database follows the normal cycle. + // The maintenance schedule type of the Autonomous Database Serverless. An EARLY maintenance schedule + // follows a schedule applying patches prior to the REGULAR schedule. A REGULAR maintenance schedule follows the normal cycle AutonomousMaintenanceScheduleType CreateAutonomousDatabaseBaseAutonomousMaintenanceScheduleTypeEnum `mandatory:"false" json:"autonomousMaintenanceScheduleType,omitempty"` } diff --git a/database/database_client.go b/database/database_client.go index 63a246b51b..d2033ae09a 100644 --- a/database/database_client.go +++ b/database/database_client.go @@ -1221,7 +1221,7 @@ func (client DatabaseClient) changeDbSystemCompartment(ctx context.Context, requ return response, err } -// ChangeDisasterRecoveryConfiguration This operation updates the cross-region disaster recovery (DR) details of the standby Shared Autonomous Database, and must be run on the standby side. +// ChangeDisasterRecoveryConfiguration This operation updates the cross-region disaster recovery (DR) details of the standby Autonomous Database Serverless database, and must be run on the standby side. // // See also // @@ -11208,7 +11208,7 @@ func (client DatabaseClient) listAutonomousDatabases(ctx context.Context, reques } // ListAutonomousDbPreviewVersions Gets a list of supported Autonomous Database versions. Note that preview version software is only available for -// databases with shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html). +// Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) databases. // // See also // diff --git a/database/database_connection_string_profile.go b/database/database_connection_string_profile.go index 0f235149c3..101ed32e03 100644 --- a/database/database_connection_string_profile.go +++ b/database/database_connection_string_profile.go @@ -34,7 +34,7 @@ type DatabaseConnectionStringProfile struct { SessionMode DatabaseConnectionStringProfileSessionModeEnum `mandatory:"true" json:"sessionMode"` // Specifies whether the connection string is using the long (`LONG`), Easy Connect (`EZCONNECT`), or Easy Connect Plus (`EZCONNECTPLUS`) format. - // Autonomous Databases on shared Exadata infrastructure always use the long format. + // Autonomous Database Serverless instances always use the long format. SyntaxFormat DatabaseConnectionStringProfileSyntaxFormatEnum `mandatory:"true" json:"syntaxFormat"` // Consumer group used by the connection. diff --git a/database/disaster_recovery_configuration.go b/database/disaster_recovery_configuration.go index 9d302e9415..612f5490bb 100644 --- a/database/disaster_recovery_configuration.go +++ b/database/disaster_recovery_configuration.go @@ -18,7 +18,7 @@ import ( // DisasterRecoveryConfiguration Configurations of a Disaster Recovery. type DisasterRecoveryConfiguration struct { - // Indicates the disaster recovery (DR) type of the Shared Autonomous Database. + // Indicates the disaster recovery (DR) type of the Autonomous Database Serverless instance. // Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. // Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. DisasterRecoveryType DisasterRecoveryConfigurationDisasterRecoveryTypeEnum `mandatory:"false" json:"disasterRecoveryType,omitempty"` diff --git a/database/generate_autonomous_database_wallet_details.go b/database/generate_autonomous_database_wallet_details.go index f6410acdfa..7612381494 100644 --- a/database/generate_autonomous_database_wallet_details.go +++ b/database/generate_autonomous_database_wallet_details.go @@ -22,7 +22,7 @@ type GenerateAutonomousDatabaseWalletDetails struct { Password *string `mandatory:"true" json:"password"` // The type of wallet to generate. - // **Shared Exadata infrastructure usage:** + // **Serverless instance usage:** // * `SINGLE` - used to generate a wallet for a single database // * `ALL` - used to generate wallet for all databases in the region // **Dedicated Exadata infrastructure usage:** Value must be `NULL` if attribute is used. diff --git a/database/list_autonomous_database_character_sets_request_response.go b/database/list_autonomous_database_character_sets_request_response.go index a539dc376b..20cade8a4c 100644 --- a/database/list_autonomous_database_character_sets_request_response.go +++ b/database/list_autonomous_database_character_sets_request_response.go @@ -21,9 +21,12 @@ type ListAutonomousDatabaseCharacterSetsRequest struct { // Unique identifier for the request. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - // Specifies whether this request is for Autonomous Database on Shared infrastructure. By default, this request will be for Autonomous Database on Dedicated Exadata Infrastructure. + // Specifies whether this request is for an Autonomous Database Serverless instance. By default, this request will be for Autonomous Database on Dedicated Exadata Infrastructure. IsShared *bool `mandatory:"false" contributesTo:"query" name:"isShared"` + // Specifies if the request is for an Autonomous Database Dedicated instance. The default request is for an Autonomous Database Dedicated instance. + IsDedicated *bool `mandatory:"false" contributesTo:"query" name:"isDedicated"` + // Specifies whether this request pertains to database character sets or national character sets. CharacterSetType ListAutonomousDatabaseCharacterSetsCharacterSetTypeEnum `mandatory:"false" contributesTo:"query" name:"characterSetType" omitEmpty:"true"` diff --git a/database/maintenance_run.go b/database/maintenance_run.go index e32cc75410..4bc9d7909e 100644 --- a/database/maintenance_run.go +++ b/database/maintenance_run.go @@ -27,7 +27,7 @@ type MaintenanceRun struct { // The user-friendly name for the maintenance run. DisplayName *string `mandatory:"true" json:"displayName"` - // The current state of the maintenance run. For Autonomous Database on shared Exadata infrastructure, valid states are IN_PROGRESS, SUCCEEDED and FAILED. + // The current state of the maintenance run. For Autonomous Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED. LifecycleState MaintenanceRunLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The date and time the maintenance run is scheduled to occur. diff --git a/database/maintenance_run_summary.go b/database/maintenance_run_summary.go index 8b6a954684..5dd2a43f22 100644 --- a/database/maintenance_run_summary.go +++ b/database/maintenance_run_summary.go @@ -27,7 +27,7 @@ type MaintenanceRunSummary struct { // The user-friendly name for the maintenance run. DisplayName *string `mandatory:"true" json:"displayName"` - // The current state of the maintenance run. For Autonomous Database on shared Exadata infrastructure, valid states are IN_PROGRESS, SUCCEEDED and FAILED. + // The current state of the maintenance run. For Autonomous Database Serverless instances, valid states are IN_PROGRESS, SUCCEEDED, and FAILED. LifecycleState MaintenanceRunSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` // The date and time the maintenance run is scheduled to occur. diff --git a/database/update.go b/database/update.go index 514478b9e9..de70aa0e09 100644 --- a/database/update.go +++ b/database/update.go @@ -33,7 +33,7 @@ type Update struct { // The version of the maintenance update package. Version *string `mandatory:"true" json:"version"` - // The update action. + // The previous update action performed. LastAction UpdateLastActionEnum `mandatory:"false" json:"lastAction,omitempty"` // The possible actions performed by the update operation on the infrastructure components. diff --git a/database/update_autonomous_database_details.go b/database/update_autonomous_database_details.go index 390afe545c..870c0953e9 100644 --- a/database/update_autonomous_database_details.go +++ b/database/update_autonomous_database_details.go @@ -45,13 +45,13 @@ type UpdateAutonomousDatabaseDetails struct { LongTermBackupSchedule *LongTermBackUpScheduleDetails `mandatory:"false" json:"longTermBackupSchedule"` - // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is on Shared or Dedicated Exadata Infrastructure. For an Autonomous Database on Shared Exadata Infrastructure, the ECPU compute model requires values in multiples of two. Required when using the computeModel parameter. When using the cpuCoreCount parameter, computeCount must be null. + // The compute amount available to the database. Minimum and maximum values depend on the compute model and whether the database is an Autonomous Database Serverless instance or an Autonomous Database on Dedicated Exadata Infrastructure. For an Autonomous Database Serverless instance, the ECPU compute model requires values in multiples of two. Required when using the computeModel parameter. When using the cpuCoreCount parameter, computeCount must be null. // This cannot be updated in parallel with any of the following: licenseModel, databaseEdition, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. ComputeCount *float32 `mandatory:"false" json:"computeCount"` // The number of OCPU cores to be made available to the Autonomous Database. - // For databases on dedicated Exadata infrastructure, you can specify a fractional value for this parameter. Fractional values are not supported for Autonomous Database on shared Exadata infrastructure. - // To provision less than 1 core, enter a fractional value in an increment of 0.1. To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available to the infrastructure shape. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. Likewise, you can provision 2 cores or 3 cores, but not 2.5 cores. The maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + // For Autonomous Databases on Dedicated Exadata Infrastructure, you can specify a fractional value for this parameter. Fractional values are not supported for Autonomous Database Serverless instances. + // To provision less than 1 core, enter a fractional value in an increment of 0.1. To provision 1 or more cores, you must enter an integer between 1 and the maximum number of cores available to the infrastructure shape. For example, you can provision 0.3 or 0.4 cores, but not 0.35 cores. Likewise, you can provision 2 cores or 3 cores, but not 2.5 cores. The maximum number of cores is determined by the infrastructure shape. See Characteristics of Infrastructure Shapes (https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbde/index.html) for shape details. // **Note:** This parameter cannot be used with the `cpuCoreCount` parameter. OcpuCount *float32 `mandatory:"false" json:"ocpuCount"` @@ -74,12 +74,13 @@ type UpdateAutonomousDatabaseDetails struct { IsFreeTier *bool `mandatory:"false" json:"isFreeTier"` // The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing. It must be different from the last four passwords and it must not be a password used within the last 24 hours. + // This cannot be used in conjunction with with OCI vault secrets (secretId). // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, whitelistedIps, openMode, permissionLevel, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, or isFreeTier. AdminPassword *string `mandatory:"false" json:"adminPassword"` // New name for this Autonomous Database. - // For databases using dedicated Exadata infrastructure, the name must begin with an alphabetic character, and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. - // For databases using shared Exadata infrastructure, the name must begin with an alphabetic character, and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy. + // For Autonomous Databases on Dedicated Exadata Infrastructure, the name must begin with an alphabetic character, and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. + // For Autonomous Database Serverless instances, the name must begin with an alphabetic character, and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails. DbName *string `mandatory:"false" json:"dbName"` @@ -100,10 +101,10 @@ type UpdateAutonomousDatabaseDetails struct { // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. DbWorkload UpdateAutonomousDatabaseDetailsDbWorkloadEnum `mandatory:"false" json:"dbWorkload,omitempty"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel UpdateAutonomousDatabaseDetailsLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` @@ -115,12 +116,12 @@ type UpdateAutonomousDatabaseDetails struct { // This property is applicable only to Autonomous Databases on the Exadata Cloud@Customer platform. IsAccessControlEnabled *bool `mandatory:"false" json:"isAccessControlEnabled"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. @@ -131,18 +132,18 @@ type UpdateAutonomousDatabaseDetails struct { // `FALSE` if the Autonomous Database has Data Guard and Access Control enabled, and the Autonomous Database uses a different IP access control list (ACL) for standby compared to primary. ArePrimaryWhitelistedIpsUsed *bool `mandatory:"false" json:"arePrimaryWhitelistedIpsUsed"` - // The client IP access control list (ACL). This feature is available for autonomous databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. + // The client IP access control list (ACL). This feature is available for Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) and on Exadata Cloud@Customer. // Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. - // For shared Exadata infrastructure, this is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID. + // For Autonomous Database Serverless, this is an array of CIDR (classless inter-domain routing) notations for a subnet or VCN OCID (virtual cloud network Oracle Cloud ID). // Use a semicolon (;) as a deliminator between the VCN-specific subnets or IPs. // Example: `["1.1.1.1","1.1.1.0/24","ocid1.vcn.oc1.sea.","ocid1.vcn.oc1.sea.;1.1.1.1","ocid1.vcn.oc1.sea.;1.1.0.0/16"]` - // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR (Classless Inter-Domain Routing) notations. + // For Exadata Cloud@Customer, this is an array of IP addresses or CIDR notations. // Example: `["1.1.1.1","1.1.1.0/24","1.1.2.25"]` // For an update operation, if you want to delete all the IPs in the ACL, use an array with a single empty string entry. // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, adminPassword, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, isLocalDataGuardEnabled, or isFreeTier. StandbyWhitelistedIps []string `mandatory:"false" json:"standbyWhitelistedIps"` - // Indicates whether auto scaling is enabled for the Autonomous Database OCPU core count. Setting to `TRUE` enables auto scaling. Setting to `FALSE` disables auto scaling. The default value is true. Auto scaling is available for databases on shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) only. + // Indicates whether auto scaling is enabled for the Autonomous Database OCPU core count. Setting to `TRUE` enables auto scaling. Setting to `FALSE` disables auto scaling. The default value is true. Auto scaling is only available for Autonomous Database Serverless instances (https://docs.oracle.com/en/cloud/paas/autonomous-database/shared/index.html). IsAutoScalingEnabled *bool `mandatory:"false" json:"isAutoScalingEnabled"` // Indicates if the Autonomous Database is a refreshable clone. @@ -154,15 +155,15 @@ type UpdateAutonomousDatabaseDetails struct { // Indicates whether the Autonomous Database has a local (in-region) standby database. Not applicable when creating a cross-region Autonomous Data Guard associations, or to // Autonomous Databases using dedicated Exadata infrastructure or Exadata Cloud@Customer infrastructure. - // To create a local standby, set to `TRUE`. To delete a local standby, set to `FALSE`. For more information on using Autonomous Data Guard on shared Exadata infrastructure (local and cross-region) , see About Standby Databases (https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/autonomous-data-guard-about.html#GUID-045AD017-8120-4BDC-AF58-7430FFE28D2B) - // To enable cross-region Autonomous Data Guard on shared Exadata infrastructure, see CreateCrossRegionAutonomousDatabaseDataGuardDetails. + // To create a local standby, set to `TRUE`. To delete a local standby, set to `FALSE`. For more information on using Autonomous Data Guard on an Autonomous Database Serverless instance (local and cross-region) , see About Standby Databases (https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/autonomous-data-guard-about.html#GUID-045AD017-8120-4BDC-AF58-7430FFE28D2B) + // To enable cross-region Autonomous Data Guard on an Autonomous Database Serverless instance, see Enable Autonomous Data Guard (https://docs-uat.us.oracle.com/en/cloud/paas/autonomous-database/adbsa/autonomous-data-guard-update-type.html#GUID-967ED737-4A05-4D6E-A7CA-C3F21ACF9BF0). // This cannot be updated in parallel with any of the following: isMTLSRequired, dbWorkload, dbVersion, isRefreshable, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. IsLocalDataGuardEnabled *bool `mandatory:"false" json:"isLocalDataGuardEnabled"` // ** Deprecated. ** Indicates whether the Autonomous Database has a local (in-region) standby database. Not applicable when creating a cross-region Autonomous Data Guard associations, or to // Autonomous Databases using dedicated Exadata infrastructure or Exadata Cloud@Customer infrastructure. - // To create a local standby, set to `TRUE`. To delete a local standby, set to `FALSE`. For more information on using Autonomous Data Guard on shared Exadata infrastructure (local and cross-region) , see About Standby Databases (https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/autonomous-data-guard-about.html#GUID-045AD017-8120-4BDC-AF58-7430FFE28D2B) - // To enable cross-region Autonomous Data Guard on shared Exadata infrastructure, see CreateCrossRegionAutonomousDatabaseDataGuardDetails. + // To create a local standby, set to `TRUE`. To delete a local standby, set to `FALSE`. For more information on using Autonomous Data Guard on an Autonomous Database Serverless instance (local and cross-region) , see About Standby Databases (https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/autonomous-data-guard-about.html#GUID-045AD017-8120-4BDC-AF58-7430FFE28D2B) + // To enable cross-region Autonomous Data Guard on an Autonomous Database Serverless instance, see Enable Autonomous Data Guard (https://docs-uat.us.oracle.com/en/cloud/paas/autonomous-database/adbsa/autonomous-data-guard-update-type.html#GUID-967ED737-4A05-4D6E-A7CA-C3F21ACF9BF0). // To delete a cross-region standby database, provide the `peerDbId` for the standby database in a remote region, and set `isDataGuardEnabled` to `FALSE`. IsDataGuardEnabled *bool `mandatory:"false" json:"isDataGuardEnabled"` @@ -213,7 +214,7 @@ type UpdateAutonomousDatabaseDetails struct { // - CreateAutonomousDatabase // - GetAutonomousDatabase // - UpdateAutonomousDatabase - // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Databases on shared Exadata infrastructure. + // Details: Prior to the July 1, 2023 change, the isMTLSConnectionRequired attribute default value was true. This applies to Autonomous Database Serverless. // Does this impact me? If you use or maintain custom scripts or Terraform scripts referencing the CreateAutonomousDatabase, GetAutonomousDatabase, or UpdateAutonomousDatabase APIs, you want to check, and possibly modify, the scripts for the changed default value of the attribute. Should you choose not to leave your scripts unchanged, the API calls containing this attribute will continue to work, but the default value will switch from true to false. // How do I make this change? Using either OCI SDKs or command line tools, update your custom scripts to explicitly set the isMTLSConnectionRequired attribute to true. IsMtlsConnectionRequired *bool `mandatory:"false" json:"isMtlsConnectionRequired"` @@ -236,7 +237,7 @@ type UpdateAutonomousDatabaseDetails struct { // This cannot be updated in parallel with any of the following: licenseModel, dbEdition, cpuCoreCount, computeCount, computeModel, whitelistedIps, isMTLSConnectionRequired, openMode, permissionLevel, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, isRefreshable, dbName, scheduledOperations, isLocalDataGuardEnabled, or isFreeTier. DbToolsDetails []DatabaseTool `mandatory:"false" json:"dbToolsDetails"` - // The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. + // The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. This cannot be used in conjunction with adminPassword. SecretId *string `mandatory:"false" json:"secretId"` // The version of the vault secret. If no version is specified, the latest version will be used. diff --git a/database/update_cloud_autonomous_vm_cluster_details.go b/database/update_cloud_autonomous_vm_cluster_details.go index f1bf09e845..0124585984 100644 --- a/database/update_cloud_autonomous_vm_cluster_details.go +++ b/database/update_cloud_autonomous_vm_cluster_details.go @@ -26,10 +26,10 @@ type UpdateCloudAutonomousVmClusterDetails struct { MaintenanceWindowDetails *MaintenanceWindow `mandatory:"false" json:"maintenanceWindowDetails"` - // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle PaaS and IaaS services in the cloud. - // License Included allows you to subscribe to new Oracle Database software licenses and the Database service. - // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null because the attribute is already set at the - // Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), if a value is not specified, the system will supply the value of `BRING_YOUR_OWN_LICENSE`. + // The Oracle license model that applies to the Oracle Autonomous Database. Bring your own license (BYOL) allows you to apply your current on-premises Oracle software licenses to equivalent, highly automated Oracle services in the cloud. + // License Included allows you to subscribe to new Oracle Database software licenses and the Oracle Database service. + // Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), this attribute must be null. It is already set at the + // Autonomous Exadata Infrastructure level. When provisioning an Autonomous Database Serverless (https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html) database, if a value is not specified, the system defaults the value to `BRING_YOUR_OWN_LICENSE`. // This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, maxCpuCoreCount, dataStorageSizeInTBs, adminPassword, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. LicenseModel UpdateCloudAutonomousVmClusterDetailsLicenseModelEnum `mandatory:"false" json:"licenseModel,omitempty"` diff --git a/database/update_summary.go b/database/update_summary.go index f5644c19bb..d9ebc3b62d 100644 --- a/database/update_summary.go +++ b/database/update_summary.go @@ -36,7 +36,7 @@ type UpdateSummary struct { // The version of the maintenance update package. Version *string `mandatory:"true" json:"version"` - // The update action. + // The previous update action performed. LastAction UpdateSummaryLastActionEnum `mandatory:"false" json:"lastAction,omitempty"` // The possible actions performed by the update operation on the infrastructure components. diff --git a/databasemanagement/create_sql_tuning_set_details.go b/databasemanagement/create_sql_tuning_set_details.go new file mode 100644 index 0000000000..b2882a2359 --- /dev/null +++ b/databasemanagement/create_sql_tuning_set_details.go @@ -0,0 +1,88 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateSqlTuningSetDetails Create an empty Sql tuning sets. +type CreateSqlTuningSetDetails struct { + CredentialDetails SqlTuningSetAdminCredentialDetails `mandatory:"true" json:"credentialDetails"` + + // A unique Sql tuning set name. + Name *string `mandatory:"true" json:"name"` + + // Owner of the Sql tuning set. + Owner *string `mandatory:"false" json:"owner"` + + // The description of the Sql tuning set. + Description *string `mandatory:"false" json:"description"` + + // Flag to indicate whether to create the Sql tuning set or just display the plsql used to create Sql tuning set. + ShowSqlOnly *int `mandatory:"false" json:"showSqlOnly"` +} + +func (m CreateSqlTuningSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateSqlTuningSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateSqlTuningSetDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + Owner *string `json:"owner"` + Description *string `json:"description"` + ShowSqlOnly *int `json:"showSqlOnly"` + CredentialDetails sqltuningsetadmincredentialdetails `json:"credentialDetails"` + Name *string `json:"name"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Owner = model.Owner + + m.Description = model.Description + + m.ShowSqlOnly = model.ShowSqlOnly + + nn, e = model.CredentialDetails.UnmarshalPolymorphicJSON(model.CredentialDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.CredentialDetails = nn.(SqlTuningSetAdminCredentialDetails) + } else { + m.CredentialDetails = nil + } + + m.Name = model.Name + + return +} diff --git a/databasemanagement/create_sql_tuning_set_request_response.go b/databasemanagement/create_sql_tuning_set_request_response.go new file mode 100644 index 0000000000..d99b55102e --- /dev/null +++ b/databasemanagement/create_sql_tuning_set_request_response.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. + +package databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateSqlTuningSetRequest wrapper for the CreateSqlTuningSet operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/CreateSqlTuningSet.go.html to see an example of how to use CreateSqlTuningSetRequest. +type CreateSqlTuningSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + ManagedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseId"` + + // The details required to create a Sql tuning set. + CreateSqlTuningSetDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateSqlTuningSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateSqlTuningSetRequest) 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 CreateSqlTuningSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateSqlTuningSetRequest) 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 CreateSqlTuningSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateSqlTuningSetResponse wrapper for the CreateSqlTuningSet operation +type CreateSqlTuningSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SqlTuningSet instance + SqlTuningSet `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateSqlTuningSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateSqlTuningSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/databasemanagement/databasemanagement_perfhub_client.go b/databasemanagement/databasemanagement_perfhub_client.go new file mode 100644 index 0000000000..027207e479 --- /dev/null +++ b/databasemanagement/databasemanagement_perfhub_client.go @@ -0,0 +1,151 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +// PerfhubClient a client for Perfhub +type PerfhubClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewPerfhubClientWithConfigurationProvider Creates a new default Perfhub client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewPerfhubClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client PerfhubClient, err error) { + if enabled := common.CheckForEnabledServices("databasemanagement"); !enabled { + return client, fmt.Errorf("the Alloy configuration disabled this service, this behavior is controlled by OciSdkEnabledServicesMap variables. Please check if your local alloy_config file configured the service you're targeting or contact the cloud provider on the availability of this service") + } + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newPerfhubClientFromBaseClient(baseClient, provider) +} + +// NewPerfhubClientWithOboToken Creates a new default Perfhub client with the given configuration provider. +// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer +// +// as well as reading the region +func NewPerfhubClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client PerfhubClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newPerfhubClientFromBaseClient(baseClient, configProvider) +} + +func newPerfhubClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client PerfhubClient, err error) { + // Perfhub service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("Perfhub")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = PerfhubClient{BaseClient: baseClient} + client.BasePath = "20201101" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *PerfhubClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("databasemanagement", "https://dbmgmt.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *PerfhubClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *PerfhubClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// ModifySnapshotSettings Modifies the snapshot settings for the specified Database. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/ModifySnapshotSettings.go.html to see an example of how to use ModifySnapshotSettings API. +func (client PerfhubClient) ModifySnapshotSettings(ctx context.Context, request ModifySnapshotSettingsRequest) (response ModifySnapshotSettingsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.modifySnapshotSettings, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ModifySnapshotSettingsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ModifySnapshotSettingsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ModifySnapshotSettingsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ModifySnapshotSettingsResponse") + } + return +} + +// modifySnapshotSettings implements the OCIOperation interface (enables retrying operations) +func (client PerfhubClient) modifySnapshotSettings(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/managedDatabases/{managedDatabaseId}/actions/modifySnapshotSettings", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ModifySnapshotSettingsResponse + 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/database-management/20201101/ManagedDatabase/ModifySnapshotSettings" + err = common.PostProcessServiceError(err, "Perfhub", "ModifySnapshotSettings", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/databasemanagement/databasemanagement_sqltuning_client.go b/databasemanagement/databasemanagement_sqltuning_client.go index a4ceefee56..2fc2b08620 100644 --- a/databasemanagement/databasemanagement_sqltuning_client.go +++ b/databasemanagement/databasemanagement_sqltuning_client.go @@ -155,6 +155,132 @@ func (client SqlTuningClient) cloneSqlTuningTask(ctx context.Context, request co return response, err } +// CreateSqlTuningSet Creates an empty Sql tuning set within the Managed Database specified by managedDatabaseId. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/CreateSqlTuningSet.go.html to see an example of how to use CreateSqlTuningSet API. +// A default retry strategy applies to this operation CreateSqlTuningSet() +func (client SqlTuningClient) CreateSqlTuningSet(ctx context.Context, request CreateSqlTuningSetRequest) (response CreateSqlTuningSetResponse, 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.createSqlTuningSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateSqlTuningSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateSqlTuningSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateSqlTuningSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateSqlTuningSetResponse") + } + return +} + +// createSqlTuningSet implements the OCIOperation interface (enables retrying operations) +func (client SqlTuningClient) createSqlTuningSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateSqlTuningSetResponse + 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/database-management/20201101/SqlTuningSet/CreateSqlTuningSet" + err = common.PostProcessServiceError(err, "SqlTuning", "CreateSqlTuningSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DropSqlTuningSet Drops the Sql tuning set specified by sqlTuningSet within the Managed Database specified by managedDatabaseId. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/DropSqlTuningSet.go.html to see an example of how to use DropSqlTuningSet API. +// A default retry strategy applies to this operation DropSqlTuningSet() +func (client SqlTuningClient) DropSqlTuningSet(ctx context.Context, request DropSqlTuningSetRequest) (response DropSqlTuningSetResponse, 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.dropSqlTuningSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DropSqlTuningSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DropSqlTuningSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DropSqlTuningSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DropSqlTuningSetResponse") + } + return +} + +// dropSqlTuningSet implements the OCIOperation interface (enables retrying operations) +func (client SqlTuningClient) dropSqlTuningSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets/{sqlTuningSetId}/actions/dropSqlTuningSet", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DropSqlTuningSetResponse + 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/database-management/20201101/SqlTuningSet/DropSqlTuningSet" + err = common.PostProcessServiceError(err, "SqlTuning", "DropSqlTuningSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DropSqlTuningTask Drops a SQL tuning task and its related results from the database. // // See also @@ -217,6 +343,133 @@ func (client SqlTuningClient) dropSqlTuningTask(ctx context.Context, request com return response, err } +// DropSqlsInSqlTuningSet Deletes the Sqls in the specified Sql tuning set that matches the filter criteria provided in the basicFilter. +// If basicFilter criteria is not provided, then entire Sqls in the Sql tuning set is deleted. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/DropSqlsInSqlTuningSet.go.html to see an example of how to use DropSqlsInSqlTuningSet API. +// A default retry strategy applies to this operation DropSqlsInSqlTuningSet() +func (client SqlTuningClient) DropSqlsInSqlTuningSet(ctx context.Context, request DropSqlsInSqlTuningSetRequest) (response DropSqlsInSqlTuningSetResponse, 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.dropSqlsInSqlTuningSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DropSqlsInSqlTuningSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DropSqlsInSqlTuningSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DropSqlsInSqlTuningSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DropSqlsInSqlTuningSetResponse") + } + return +} + +// dropSqlsInSqlTuningSet implements the OCIOperation interface (enables retrying operations) +func (client SqlTuningClient) dropSqlsInSqlTuningSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets/{sqlTuningSetId}/actions/dropSqlsInSqlTuningSet", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DropSqlsInSqlTuningSetResponse + 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/database-management/20201101/SqlTuningSet/DropSqlsInSqlTuningSet" + err = common.PostProcessServiceError(err, "SqlTuning", "DropSqlsInSqlTuningSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// FetchSqlTuningSet Fetch the details of Sql statements in the Sql tuning set specified by name, owner and optional filter parameters. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/FetchSqlTuningSet.go.html to see an example of how to use FetchSqlTuningSet API. +// A default retry strategy applies to this operation FetchSqlTuningSet() +func (client SqlTuningClient) FetchSqlTuningSet(ctx context.Context, request FetchSqlTuningSetRequest) (response FetchSqlTuningSetResponse, 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.fetchSqlTuningSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = FetchSqlTuningSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = FetchSqlTuningSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(FetchSqlTuningSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into FetchSqlTuningSetResponse") + } + return +} + +// fetchSqlTuningSet implements the OCIOperation interface (enables retrying operations) +func (client SqlTuningClient) fetchSqlTuningSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets/{sqlTuningSetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response FetchSqlTuningSetResponse + 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/database-management/20201101/SqlTuningSet/FetchSqlTuningSet" + err = common.PostProcessServiceError(err, "SqlTuning", "FetchSqlTuningSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // GetExecutionPlanStatsComparision Retrieves a comparison of the existing SQL execution plan and a new plan. // A SQL tuning task may suggest a new execution plan for a SQL, // and this API retrieves the comparison report of the statistics of the two plans. @@ -619,6 +872,132 @@ func (client SqlTuningClient) listSqlTuningSets(ctx context.Context, request com return response, err } +// LoadSqlTuningSet Load Sql statements into the Sql tuning set specified by name and optional filter parameters within the Managed Database specified by managedDatabaseId. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/LoadSqlTuningSet.go.html to see an example of how to use LoadSqlTuningSet API. +// A default retry strategy applies to this operation LoadSqlTuningSet() +func (client SqlTuningClient) LoadSqlTuningSet(ctx context.Context, request LoadSqlTuningSetRequest) (response LoadSqlTuningSetResponse, 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.loadSqlTuningSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = LoadSqlTuningSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = LoadSqlTuningSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(LoadSqlTuningSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into LoadSqlTuningSetResponse") + } + return +} + +// loadSqlTuningSet implements the OCIOperation interface (enables retrying operations) +func (client SqlTuningClient) loadSqlTuningSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets/{sqlTuningSetId}/actions/loadSqlTuningSet", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response LoadSqlTuningSetResponse + 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/database-management/20201101/SqlTuningSet/LoadSqlTuningSet" + err = common.PostProcessServiceError(err, "SqlTuning", "LoadSqlTuningSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// SaveSqlTuningSetAs Saves the specified list of Sqls statements into another new Sql tuning set or loads into an existing Sql tuning set'. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/SaveSqlTuningSetAs.go.html to see an example of how to use SaveSqlTuningSetAs API. +// A default retry strategy applies to this operation SaveSqlTuningSetAs() +func (client SqlTuningClient) SaveSqlTuningSetAs(ctx context.Context, request SaveSqlTuningSetAsRequest) (response SaveSqlTuningSetAsResponse, 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.saveSqlTuningSetAs, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = SaveSqlTuningSetAsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = SaveSqlTuningSetAsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(SaveSqlTuningSetAsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into SaveSqlTuningSetAsResponse") + } + return +} + +// saveSqlTuningSetAs implements the OCIOperation interface (enables retrying operations) +func (client SqlTuningClient) saveSqlTuningSetAs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets/{sqlTuningSetId}/actions/saveAs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response SaveSqlTuningSetAsResponse + 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/database-management/20201101/SqlTuningSet/SaveSqlTuningSetAs" + err = common.PostProcessServiceError(err, "SqlTuning", "SaveSqlTuningSetAs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // StartSqlTuningTask Starts a SQL tuning task for a given set of SQL statements from the active session history top SQL statements. // // See also @@ -680,3 +1059,66 @@ func (client SqlTuningClient) startSqlTuningTask(ctx context.Context, request co err = common.UnmarshalResponse(httpResponse, &response) return response, err } + +// ValidateBasicFilter Executes a SQL query to check whether user entered basic filter criteria is valid or not. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/ValidateBasicFilter.go.html to see an example of how to use ValidateBasicFilter API. +// A default retry strategy applies to this operation ValidateBasicFilter() +func (client SqlTuningClient) ValidateBasicFilter(ctx context.Context, request ValidateBasicFilterRequest) (response ValidateBasicFilterResponse, 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.validateBasicFilter, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ValidateBasicFilterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ValidateBasicFilterResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ValidateBasicFilterResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ValidateBasicFilterResponse") + } + return +} + +// validateBasicFilter implements the OCIOperation interface (enables retrying operations) +func (client SqlTuningClient) validateBasicFilter(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets/{sqlTuningSetId}/actions/validateBasicFilter", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ValidateBasicFilterResponse + 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/database-management/20201101/SqlTuningSet/ValidateBasicFilter" + err = common.PostProcessServiceError(err, "SqlTuning", "ValidateBasicFilter", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/databasemanagement/drop_sql_tuning_set_details.go b/databasemanagement/drop_sql_tuning_set_details.go new file mode 100644 index 0000000000..3d68961189 --- /dev/null +++ b/databasemanagement/drop_sql_tuning_set_details.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DropSqlTuningSetDetails The details required to drop a Sql tuning set. +type DropSqlTuningSetDetails struct { + CredentialDetails SqlTuningSetAdminCredentialDetails `mandatory:"true" json:"credentialDetails"` + + // A unique Sql tuning set name. + Name *string `mandatory:"true" json:"name"` + + // Owner of the Sql tuning set. + Owner *string `mandatory:"false" json:"owner"` + + // Flag to indicate whether to drop the Sql tuning set or just display the plsql used to drop Sql tuning set. + ShowSqlOnly *int `mandatory:"false" json:"showSqlOnly"` +} + +func (m DropSqlTuningSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DropSqlTuningSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *DropSqlTuningSetDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + Owner *string `json:"owner"` + ShowSqlOnly *int `json:"showSqlOnly"` + CredentialDetails sqltuningsetadmincredentialdetails `json:"credentialDetails"` + Name *string `json:"name"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Owner = model.Owner + + m.ShowSqlOnly = model.ShowSqlOnly + + nn, e = model.CredentialDetails.UnmarshalPolymorphicJSON(model.CredentialDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.CredentialDetails = nn.(SqlTuningSetAdminCredentialDetails) + } else { + m.CredentialDetails = nil + } + + m.Name = model.Name + + return +} diff --git a/databasemanagement/drop_sql_tuning_set_request_response.go b/databasemanagement/drop_sql_tuning_set_request_response.go new file mode 100644 index 0000000000..c9b5123f30 --- /dev/null +++ b/databasemanagement/drop_sql_tuning_set_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DropSqlTuningSetRequest wrapper for the DropSqlTuningSet operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/DropSqlTuningSet.go.html to see an example of how to use DropSqlTuningSetRequest. +type DropSqlTuningSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + ManagedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseId"` + + // The unique identifier of the Sql tuning set. This is not OCID. + SqlTuningSetId *int `mandatory:"true" contributesTo:"path" name:"sqlTuningSetId"` + + // The details required to drop a Sql tuning set. + DropSqlTuningSetDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DropSqlTuningSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DropSqlTuningSetRequest) 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 DropSqlTuningSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DropSqlTuningSetRequest) 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 DropSqlTuningSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DropSqlTuningSetResponse wrapper for the DropSqlTuningSet operation +type DropSqlTuningSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SqlTuningSetAdminActionStatus instance + SqlTuningSetAdminActionStatus `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DropSqlTuningSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DropSqlTuningSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/databasemanagement/drop_sqls_in_sql_tuning_set_details.go b/databasemanagement/drop_sqls_in_sql_tuning_set_details.go new file mode 100644 index 0000000000..2802adf8df --- /dev/null +++ b/databasemanagement/drop_sqls_in_sql_tuning_set_details.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DropSqlsInSqlTuningSetDetails Drops the selected list of Sql statements from the current Sql tuning set. +// The basicFilter parameter specifies the Sql predicate to filter the Sql from the Sql tuning set defined on attributes of the SQLSET_ROW. +// If a valid filter criteria is specified, then, Sql statements matching this filter criteria will be deleted from the current Sql tuning set. +// If filter criteria is not specified, then, all Sql statements will be deleted from the current Sql tuning set. +type DropSqlsInSqlTuningSetDetails struct { + CredentialDetails SqlTuningSetAdminCredentialDetails `mandatory:"true" json:"credentialDetails"` + + // The name of the Sql tuning set. + Name *string `mandatory:"true" json:"name"` + + // Flag to indicate whether to drop the Sql statements or just display the plsql used to drop the Sql statements. + ShowSqlOnly *int `mandatory:"false" json:"showSqlOnly"` + + // The owner of the Sql tuning set. + Owner *string `mandatory:"false" json:"owner"` + + // Specifies the Sql predicate to filter the Sql from the Sql tuning set defined on attributes of the SQLSET_ROW. + // User could use any combination of the following columns with appropriate values as Sql predicate + // Refer to the documentation https://docs.oracle.com/en/database/oracle/oracle-database/18/arpls/DBMS_SQLTUNE.html#GUID-1F4AFB03-7B29-46FC-B3F2-CB01EC36326C + BasicFilter *string `mandatory:"false" json:"basicFilter"` +} + +func (m DropSqlsInSqlTuningSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DropSqlsInSqlTuningSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *DropSqlsInSqlTuningSetDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + ShowSqlOnly *int `json:"showSqlOnly"` + Owner *string `json:"owner"` + BasicFilter *string `json:"basicFilter"` + CredentialDetails sqltuningsetadmincredentialdetails `json:"credentialDetails"` + Name *string `json:"name"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.ShowSqlOnly = model.ShowSqlOnly + + m.Owner = model.Owner + + m.BasicFilter = model.BasicFilter + + nn, e = model.CredentialDetails.UnmarshalPolymorphicJSON(model.CredentialDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.CredentialDetails = nn.(SqlTuningSetAdminCredentialDetails) + } else { + m.CredentialDetails = nil + } + + m.Name = model.Name + + return +} diff --git a/databasemanagement/drop_sqls_in_sql_tuning_set_request_response.go b/databasemanagement/drop_sqls_in_sql_tuning_set_request_response.go new file mode 100644 index 0000000000..884c2acdc4 --- /dev/null +++ b/databasemanagement/drop_sqls_in_sql_tuning_set_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DropSqlsInSqlTuningSetRequest wrapper for the DropSqlsInSqlTuningSet operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/DropSqlsInSqlTuningSet.go.html to see an example of how to use DropSqlsInSqlTuningSetRequest. +type DropSqlsInSqlTuningSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + ManagedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseId"` + + // The unique identifier of the Sql tuning set. This is not OCID. + SqlTuningSetId *int `mandatory:"true" contributesTo:"path" name:"sqlTuningSetId"` + + // Drops the selected list of Sql statements from the current Sql tuning set. + DropSqlsInSqlTuningSetDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DropSqlsInSqlTuningSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DropSqlsInSqlTuningSetRequest) 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 DropSqlsInSqlTuningSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DropSqlsInSqlTuningSetRequest) 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 DropSqlsInSqlTuningSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DropSqlsInSqlTuningSetResponse wrapper for the DropSqlsInSqlTuningSet operation +type DropSqlsInSqlTuningSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SqlTuningSetAdminActionStatus instance + SqlTuningSetAdminActionStatus `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DropSqlsInSqlTuningSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DropSqlsInSqlTuningSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/databasemanagement/external_asm_instance.go b/databasemanagement/external_asm_instance.go index a1b8b4142d..0c2a769692 100644 --- a/databasemanagement/external_asm_instance.go +++ b/databasemanagement/external_asm_instance.go @@ -90,6 +90,7 @@ const ( ExternalAsmInstanceLifecycleStateUpdating ExternalAsmInstanceLifecycleStateEnum = "UPDATING" ExternalAsmInstanceLifecycleStateDeleting ExternalAsmInstanceLifecycleStateEnum = "DELETING" ExternalAsmInstanceLifecycleStateDeleted ExternalAsmInstanceLifecycleStateEnum = "DELETED" + ExternalAsmInstanceLifecycleStateFailed ExternalAsmInstanceLifecycleStateEnum = "FAILED" ) var mappingExternalAsmInstanceLifecycleStateEnum = map[string]ExternalAsmInstanceLifecycleStateEnum{ @@ -99,6 +100,7 @@ var mappingExternalAsmInstanceLifecycleStateEnum = map[string]ExternalAsmInstanc "UPDATING": ExternalAsmInstanceLifecycleStateUpdating, "DELETING": ExternalAsmInstanceLifecycleStateDeleting, "DELETED": ExternalAsmInstanceLifecycleStateDeleted, + "FAILED": ExternalAsmInstanceLifecycleStateFailed, } var mappingExternalAsmInstanceLifecycleStateEnumLowerCase = map[string]ExternalAsmInstanceLifecycleStateEnum{ @@ -108,6 +110,7 @@ var mappingExternalAsmInstanceLifecycleStateEnumLowerCase = map[string]ExternalA "updating": ExternalAsmInstanceLifecycleStateUpdating, "deleting": ExternalAsmInstanceLifecycleStateDeleting, "deleted": ExternalAsmInstanceLifecycleStateDeleted, + "failed": ExternalAsmInstanceLifecycleStateFailed, } // GetExternalAsmInstanceLifecycleStateEnumValues Enumerates the set of values for ExternalAsmInstanceLifecycleStateEnum @@ -128,6 +131,7 @@ func GetExternalAsmInstanceLifecycleStateEnumStringValues() []string { "UPDATING", "DELETING", "DELETED", + "FAILED", } } diff --git a/databasemanagement/fetch_sql_tuning_set_details.go b/databasemanagement/fetch_sql_tuning_set_details.go new file mode 100644 index 0000000000..d7dcd41e71 --- /dev/null +++ b/databasemanagement/fetch_sql_tuning_set_details.go @@ -0,0 +1,175 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FetchSqlTuningSetDetails The details required to fetch the Sql tuning set details. +type FetchSqlTuningSetDetails struct { + CredentialDetails SqlTuningSetAdminCredentialDetails `mandatory:"true" json:"credentialDetails"` + + // The owner of the Sql tuning set. + Owner *string `mandatory:"true" json:"owner"` + + // The name of the Sql tuning set. + Name *string `mandatory:"true" json:"name"` + + // Specifies the Sql predicate to filter the Sql from the Sql tuning set defined on attributes of the SQLSET_ROW. + // User could use any combination of the following columns with appropriate values as Sql predicate + // Refer to the documentation https://docs.oracle.com/en/database/oracle/oracle-database/18/arpls/DBMS_SQLTUNE.html#GUID-1F4AFB03-7B29-46FC-B3F2-CB01EC36326C + BasicFilter *string `mandatory:"false" json:"basicFilter"` + + // Specifies that the filter must include recursive Sql in the Sql tuning set. + RecursiveSql FetchSqlTuningSetDetailsRecursiveSqlEnum `mandatory:"false" json:"recursiveSql,omitempty"` + + // Specifies a filter that picks the top n% according to the supplied ranking measure. + // Note that this parameter applies only if one ranking measure is supplied. + ResultPercentage *float64 `mandatory:"false" json:"resultPercentage"` + + // The top limit Sql from the filtered source, ranked by the ranking measure. + ResultLimit *int `mandatory:"false" json:"resultLimit"` + + // Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + RankingMeasure1 RankingMeasureEnum `mandatory:"false" json:"rankingMeasure1,omitempty"` + + // Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + RankingMeasure2 RankingMeasureEnum `mandatory:"false" json:"rankingMeasure2,omitempty"` + + // Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + RankingMeasure3 RankingMeasureEnum `mandatory:"false" json:"rankingMeasure3,omitempty"` +} + +func (m FetchSqlTuningSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FetchSqlTuningSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingFetchSqlTuningSetDetailsRecursiveSqlEnum(string(m.RecursiveSql)); !ok && m.RecursiveSql != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecursiveSql: %s. Supported values are: %s.", m.RecursiveSql, strings.Join(GetFetchSqlTuningSetDetailsRecursiveSqlEnumStringValues(), ","))) + } + if _, ok := GetMappingRankingMeasureEnum(string(m.RankingMeasure1)); !ok && m.RankingMeasure1 != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RankingMeasure1: %s. Supported values are: %s.", m.RankingMeasure1, strings.Join(GetRankingMeasureEnumStringValues(), ","))) + } + if _, ok := GetMappingRankingMeasureEnum(string(m.RankingMeasure2)); !ok && m.RankingMeasure2 != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RankingMeasure2: %s. Supported values are: %s.", m.RankingMeasure2, strings.Join(GetRankingMeasureEnumStringValues(), ","))) + } + if _, ok := GetMappingRankingMeasureEnum(string(m.RankingMeasure3)); !ok && m.RankingMeasure3 != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RankingMeasure3: %s. Supported values are: %s.", m.RankingMeasure3, strings.Join(GetRankingMeasureEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *FetchSqlTuningSetDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + BasicFilter *string `json:"basicFilter"` + RecursiveSql FetchSqlTuningSetDetailsRecursiveSqlEnum `json:"recursiveSql"` + ResultPercentage *float64 `json:"resultPercentage"` + ResultLimit *int `json:"resultLimit"` + RankingMeasure1 RankingMeasureEnum `json:"rankingMeasure1"` + RankingMeasure2 RankingMeasureEnum `json:"rankingMeasure2"` + RankingMeasure3 RankingMeasureEnum `json:"rankingMeasure3"` + CredentialDetails sqltuningsetadmincredentialdetails `json:"credentialDetails"` + Owner *string `json:"owner"` + Name *string `json:"name"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.BasicFilter = model.BasicFilter + + m.RecursiveSql = model.RecursiveSql + + m.ResultPercentage = model.ResultPercentage + + m.ResultLimit = model.ResultLimit + + m.RankingMeasure1 = model.RankingMeasure1 + + m.RankingMeasure2 = model.RankingMeasure2 + + m.RankingMeasure3 = model.RankingMeasure3 + + nn, e = model.CredentialDetails.UnmarshalPolymorphicJSON(model.CredentialDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.CredentialDetails = nn.(SqlTuningSetAdminCredentialDetails) + } else { + m.CredentialDetails = nil + } + + m.Owner = model.Owner + + m.Name = model.Name + + return +} + +// FetchSqlTuningSetDetailsRecursiveSqlEnum Enum with underlying type: string +type FetchSqlTuningSetDetailsRecursiveSqlEnum string + +// Set of constants representing the allowable values for FetchSqlTuningSetDetailsRecursiveSqlEnum +const ( + FetchSqlTuningSetDetailsRecursiveSqlHasRecursiveSql FetchSqlTuningSetDetailsRecursiveSqlEnum = "HAS_RECURSIVE_SQL" + FetchSqlTuningSetDetailsRecursiveSqlNoRecursiveSql FetchSqlTuningSetDetailsRecursiveSqlEnum = "NO_RECURSIVE_SQL" +) + +var mappingFetchSqlTuningSetDetailsRecursiveSqlEnum = map[string]FetchSqlTuningSetDetailsRecursiveSqlEnum{ + "HAS_RECURSIVE_SQL": FetchSqlTuningSetDetailsRecursiveSqlHasRecursiveSql, + "NO_RECURSIVE_SQL": FetchSqlTuningSetDetailsRecursiveSqlNoRecursiveSql, +} + +var mappingFetchSqlTuningSetDetailsRecursiveSqlEnumLowerCase = map[string]FetchSqlTuningSetDetailsRecursiveSqlEnum{ + "has_recursive_sql": FetchSqlTuningSetDetailsRecursiveSqlHasRecursiveSql, + "no_recursive_sql": FetchSqlTuningSetDetailsRecursiveSqlNoRecursiveSql, +} + +// GetFetchSqlTuningSetDetailsRecursiveSqlEnumValues Enumerates the set of values for FetchSqlTuningSetDetailsRecursiveSqlEnum +func GetFetchSqlTuningSetDetailsRecursiveSqlEnumValues() []FetchSqlTuningSetDetailsRecursiveSqlEnum { + values := make([]FetchSqlTuningSetDetailsRecursiveSqlEnum, 0) + for _, v := range mappingFetchSqlTuningSetDetailsRecursiveSqlEnum { + values = append(values, v) + } + return values +} + +// GetFetchSqlTuningSetDetailsRecursiveSqlEnumStringValues Enumerates the set of values in String for FetchSqlTuningSetDetailsRecursiveSqlEnum +func GetFetchSqlTuningSetDetailsRecursiveSqlEnumStringValues() []string { + return []string{ + "HAS_RECURSIVE_SQL", + "NO_RECURSIVE_SQL", + } +} + +// GetMappingFetchSqlTuningSetDetailsRecursiveSqlEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFetchSqlTuningSetDetailsRecursiveSqlEnum(val string) (FetchSqlTuningSetDetailsRecursiveSqlEnum, bool) { + enum, ok := mappingFetchSqlTuningSetDetailsRecursiveSqlEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/databasemanagement/fetch_sql_tuning_set_request_response.go b/databasemanagement/fetch_sql_tuning_set_request_response.go new file mode 100644 index 0000000000..05b3a8eb55 --- /dev/null +++ b/databasemanagement/fetch_sql_tuning_set_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// FetchSqlTuningSetRequest wrapper for the FetchSqlTuningSet operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/FetchSqlTuningSet.go.html to see an example of how to use FetchSqlTuningSetRequest. +type FetchSqlTuningSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + ManagedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseId"` + + // The unique identifier of the Sql tuning set. This is not OCID. + SqlTuningSetId *int `mandatory:"true" contributesTo:"path" name:"sqlTuningSetId"` + + // The details required to fetch the Sql tuning set details. + FetchSqlTuningSetDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request FetchSqlTuningSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request FetchSqlTuningSetRequest) 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 FetchSqlTuningSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request FetchSqlTuningSetRequest) 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 FetchSqlTuningSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// FetchSqlTuningSetResponse wrapper for the FetchSqlTuningSet operation +type FetchSqlTuningSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SqlTuningSet instance + SqlTuningSet `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response FetchSqlTuningSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response FetchSqlTuningSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/databasemanagement/load_sql_tuning_set_details.go b/databasemanagement/load_sql_tuning_set_details.go new file mode 100644 index 0000000000..4544352f04 --- /dev/null +++ b/databasemanagement/load_sql_tuning_set_details.go @@ -0,0 +1,628 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LoadSqlTuningSetDetails The details required to load the Sql statements into the Sql tuning set. +type LoadSqlTuningSetDetails struct { + CredentialDetails SqlTuningSetAdminCredentialDetails `mandatory:"true" json:"credentialDetails"` + + // The name of the Sql tuning set. + Name *string `mandatory:"true" json:"name"` + + // Specifies the loading method into the Sql tuning set. + LoadType LoadSqlTuningSetDetailsLoadTypeEnum `mandatory:"true" json:"loadType"` + + // Flag to indicate whether to create the Sql tuning set or just display the plsql used to create Sql tuning set. + ShowSqlOnly *int `mandatory:"false" json:"showSqlOnly"` + + // The owner of the Sql tuning set. + Owner *string `mandatory:"false" json:"owner"` + + // Specifies the Sql predicate to filter the Sql from the Sql tuning set defined on attributes of the SQLSET_ROW. + // User could use any combination of the following columns with appropriate values as Sql predicate + // Refer to the documentation https://docs.oracle.com/en/database/oracle/oracle-database/18/arpls/DBMS_SQLTUNE.html#GUID-1F4AFB03-7B29-46FC-B3F2-CB01EC36326C + BasicFilter *string `mandatory:"false" json:"basicFilter"` + + // Specifies that the filter must include recursive Sql in the Sql tuning set. + RecursiveSql LoadSqlTuningSetDetailsRecursiveSqlEnum `mandatory:"false" json:"recursiveSql,omitempty"` + + // Specifies a filter that picks the top n% according to the supplied ranking measure. + // Note that this parameter applies only if one ranking measure is supplied. + ResultPercentage *float64 `mandatory:"false" json:"resultPercentage"` + + // The top limit Sql from the filtered source, ranked by the ranking measure. + ResultLimit *int `mandatory:"false" json:"resultLimit"` + + // Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + RankingMeasure1 RankingMeasureEnum `mandatory:"false" json:"rankingMeasure1,omitempty"` + + // Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + RankingMeasure2 RankingMeasureEnum `mandatory:"false" json:"rankingMeasure2,omitempty"` + + // Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + RankingMeasure3 RankingMeasureEnum `mandatory:"false" json:"rankingMeasure3,omitempty"` + + // Defines the total amount of time, in seconds, to execute. + TotalTimeLimit *int `mandatory:"false" json:"totalTimeLimit"` + + // Defines the amount of time, in seconds, to pause between sampling. + RepeatInterval *int `mandatory:"false" json:"repeatInterval"` + + // Specifies whether to insert new statements, update existing statements, or both. + CaptureOption LoadSqlTuningSetDetailsCaptureOptionEnum `mandatory:"false" json:"captureOption,omitempty"` + + // Specifies the capture mode. Note that this parameter is applicable only for UPDATE and MERGE capture options. + // Capture mode can take one of the following values + // - MODE_REPLACE_OLD_STATS + // Replaces statistics when the number of executions is greater than the number stored in the Sql tuning set + // - MODE_ACCUMULATE_STATS + // Adds new values to current values for Sql that is already stored. + // Note that this mode detects if a statement has been aged out, so the final value for a statistics is the sum of the statistics of all cursors that statement existed under. + CaptureMode LoadSqlTuningSetDetailsCaptureModeEnum `mandatory:"false" json:"captureMode,omitempty"` + + // Specifies the list of Sql statement attributes to return in the result. + // Note that this parameter cannot be made an enum since custom value can take a list of comma separated attribute names. + // Attribute list can take one of the following values. + // TYPICAL - Specifies BASIC plus Sql plan (without row source statistics) and without object reference list (default). + // BASIC - Specifies all attributes (such as execution statistics and binds) except the plans. The execution context is always part of the result. + // ALL - Specifies all attributes. + // CUSTOM - Comma-separated list of the following attribute names. + // - EXECUTION_STATISTICS + // - BIND_LIST + // - OBJECT_LIST + // - SQL_PLAN + // - SQL_PLAN_STATISTICS + // Usage examples: + // 1. "attributeList": "TYPICAL" + // 2. "attributeList": "ALL" + // 3. "attributeList": "EXECUTION_STATISTICS,OBJECT_LIST,SQL_PLAN" + AttributeList *string `mandatory:"false" json:"attributeList"` + + // Specifies which statements are loaded into the Sql tuning set. + // The possible values are. + // - INSERT (default) + // Adds only new statements. + // - UPDATE + // Updates existing the Sql statements and ignores any new statements. + // - MERGE + // Inserts new statements and updates the information of the existing ones. + LoadOption LoadSqlTuningSetDetailsLoadOptionEnum `mandatory:"false" json:"loadOption,omitempty"` + + // Specifies how existing Sql statements are updated. + // This parameter is applicable only if load_option is specified with UPDATE or MERGE as an option. + // Update option can take one of the following values. + // REPLACE (default) - Updates the statement using the new statistics, bind list, object list, and so on. + // ACCUMULATE - Combines attributes when possible (for example, statistics such as elapsed_time), otherwise replaces the existing values (for example, module and action) with the provided values. + // Following Sql statement attributes can be accumulated. + // elapsed_time + // buffer_gets + // direct_writes + // disk_reads + // row_processed + // fetches + // executions + // end_of_fetch_count + // stat_period + // active_stat_period + UpdateOption LoadSqlTuningSetDetailsUpdateOptionEnum `mandatory:"false" json:"updateOption,omitempty"` + + // Specifies the list of Sql statement attributes to update during a merge or update. + // Note that this parameter cannot be made an enum since custom value can take a list of comma separated attribute names. + // Update attributes can take one of the following values. + // NULL (default) - Specifies the content of the input cursor except the execution context. On other terms, it is equivalent to ALL without execution contexts such as module and action. + // BASIC - Specifies statistics and binds only. + // TYPICAL - Specifies BASIC with Sql plans (without row source statistics) and without an object reference list. + // ALL - Specifies all attributes, including the execution context attributes such as module and action. + // CUSTOM - List of comma separated attribute names to update + // EXECUTION_CONTEXT + // EXECUTION_STATISTICS + // SQL_BINDS + // SQL_PLAN + // SQL_PLAN_STATISTICS (similar to SQL_PLAN with added row source statistics) + // Usage examples: + // 1. "updateAttributes": "TYPICAL" + // 2. "updateAttributes": "BASIC" + // 3. "updateAttributes": "EXECUTION_STATISTICS,SQL_PLAN_STATISTICS,SQL_PLAN" + // 4. "updateAttributes": "EXECUTION_STATISTICS,SQL_PLAN" + UpdateAttributes *string `mandatory:"false" json:"updateAttributes"` + + // Specifies when to perform the update. + // The procedure only performs the update when the specified condition is satisfied. + // The condition can refer to either the data source or destination. + // The condition must use the following prefixes to refer to attributes from the source or the destination: + // OLD — Refers to statement attributes from the SQL tuning set (destination). + // NEW — Refers to statement attributes from the input statements (source). + // NULL — No updates are performed. + UpdateCondition LoadSqlTuningSetDetailsUpdateConditionEnum `mandatory:"false" json:"updateCondition,omitempty"` + + // Specifies whether to update attributes when the new value is NULL. + // If TRUE, then the procedure does not update an attribute when the new value is NULL. + // That is, do not override with NULL values unless intentional. + // Possible values - true or false + IsIgnoreNull *bool `mandatory:"false" json:"isIgnoreNull"` + + // Specifies whether to commit statements after DML. + // If a value is provided, then the load commits after each specified number of statements is inserted. + // If NULL is provided, then the load commits only once, at the end of the operation. + CommitRows *int `mandatory:"false" json:"commitRows"` + + // Defines the beginning AWR snapshot (non-inclusive). + BeginSnapshot *int64 `mandatory:"false" json:"beginSnapshot"` + + // Defines the ending AWR snapshot (inclusive). + EndSnapshot *int64 `mandatory:"false" json:"endSnapshot"` + + // Specifies the name of the AWR baseline period. + // When loading the sql statements from AWR, following inputs has to be provided: + // beginSnapshot and endSnapshot + // OR + // baselineName + BaselineName *string `mandatory:"false" json:"baselineName"` +} + +func (m LoadSqlTuningSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LoadSqlTuningSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLoadSqlTuningSetDetailsLoadTypeEnum(string(m.LoadType)); !ok && m.LoadType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LoadType: %s. Supported values are: %s.", m.LoadType, strings.Join(GetLoadSqlTuningSetDetailsLoadTypeEnumStringValues(), ","))) + } + + if _, ok := GetMappingLoadSqlTuningSetDetailsRecursiveSqlEnum(string(m.RecursiveSql)); !ok && m.RecursiveSql != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecursiveSql: %s. Supported values are: %s.", m.RecursiveSql, strings.Join(GetLoadSqlTuningSetDetailsRecursiveSqlEnumStringValues(), ","))) + } + if _, ok := GetMappingRankingMeasureEnum(string(m.RankingMeasure1)); !ok && m.RankingMeasure1 != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RankingMeasure1: %s. Supported values are: %s.", m.RankingMeasure1, strings.Join(GetRankingMeasureEnumStringValues(), ","))) + } + if _, ok := GetMappingRankingMeasureEnum(string(m.RankingMeasure2)); !ok && m.RankingMeasure2 != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RankingMeasure2: %s. Supported values are: %s.", m.RankingMeasure2, strings.Join(GetRankingMeasureEnumStringValues(), ","))) + } + if _, ok := GetMappingRankingMeasureEnum(string(m.RankingMeasure3)); !ok && m.RankingMeasure3 != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RankingMeasure3: %s. Supported values are: %s.", m.RankingMeasure3, strings.Join(GetRankingMeasureEnumStringValues(), ","))) + } + if _, ok := GetMappingLoadSqlTuningSetDetailsCaptureOptionEnum(string(m.CaptureOption)); !ok && m.CaptureOption != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CaptureOption: %s. Supported values are: %s.", m.CaptureOption, strings.Join(GetLoadSqlTuningSetDetailsCaptureOptionEnumStringValues(), ","))) + } + if _, ok := GetMappingLoadSqlTuningSetDetailsCaptureModeEnum(string(m.CaptureMode)); !ok && m.CaptureMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CaptureMode: %s. Supported values are: %s.", m.CaptureMode, strings.Join(GetLoadSqlTuningSetDetailsCaptureModeEnumStringValues(), ","))) + } + if _, ok := GetMappingLoadSqlTuningSetDetailsLoadOptionEnum(string(m.LoadOption)); !ok && m.LoadOption != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LoadOption: %s. Supported values are: %s.", m.LoadOption, strings.Join(GetLoadSqlTuningSetDetailsLoadOptionEnumStringValues(), ","))) + } + if _, ok := GetMappingLoadSqlTuningSetDetailsUpdateOptionEnum(string(m.UpdateOption)); !ok && m.UpdateOption != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateOption: %s. Supported values are: %s.", m.UpdateOption, strings.Join(GetLoadSqlTuningSetDetailsUpdateOptionEnumStringValues(), ","))) + } + if _, ok := GetMappingLoadSqlTuningSetDetailsUpdateConditionEnum(string(m.UpdateCondition)); !ok && m.UpdateCondition != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateCondition: %s. Supported values are: %s.", m.UpdateCondition, strings.Join(GetLoadSqlTuningSetDetailsUpdateConditionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *LoadSqlTuningSetDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + ShowSqlOnly *int `json:"showSqlOnly"` + Owner *string `json:"owner"` + BasicFilter *string `json:"basicFilter"` + RecursiveSql LoadSqlTuningSetDetailsRecursiveSqlEnum `json:"recursiveSql"` + ResultPercentage *float64 `json:"resultPercentage"` + ResultLimit *int `json:"resultLimit"` + RankingMeasure1 RankingMeasureEnum `json:"rankingMeasure1"` + RankingMeasure2 RankingMeasureEnum `json:"rankingMeasure2"` + RankingMeasure3 RankingMeasureEnum `json:"rankingMeasure3"` + TotalTimeLimit *int `json:"totalTimeLimit"` + RepeatInterval *int `json:"repeatInterval"` + CaptureOption LoadSqlTuningSetDetailsCaptureOptionEnum `json:"captureOption"` + CaptureMode LoadSqlTuningSetDetailsCaptureModeEnum `json:"captureMode"` + AttributeList *string `json:"attributeList"` + LoadOption LoadSqlTuningSetDetailsLoadOptionEnum `json:"loadOption"` + UpdateOption LoadSqlTuningSetDetailsUpdateOptionEnum `json:"updateOption"` + UpdateAttributes *string `json:"updateAttributes"` + UpdateCondition LoadSqlTuningSetDetailsUpdateConditionEnum `json:"updateCondition"` + IsIgnoreNull *bool `json:"isIgnoreNull"` + CommitRows *int `json:"commitRows"` + BeginSnapshot *int64 `json:"beginSnapshot"` + EndSnapshot *int64 `json:"endSnapshot"` + BaselineName *string `json:"baselineName"` + CredentialDetails sqltuningsetadmincredentialdetails `json:"credentialDetails"` + Name *string `json:"name"` + LoadType LoadSqlTuningSetDetailsLoadTypeEnum `json:"loadType"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.ShowSqlOnly = model.ShowSqlOnly + + m.Owner = model.Owner + + m.BasicFilter = model.BasicFilter + + m.RecursiveSql = model.RecursiveSql + + m.ResultPercentage = model.ResultPercentage + + m.ResultLimit = model.ResultLimit + + m.RankingMeasure1 = model.RankingMeasure1 + + m.RankingMeasure2 = model.RankingMeasure2 + + m.RankingMeasure3 = model.RankingMeasure3 + + m.TotalTimeLimit = model.TotalTimeLimit + + m.RepeatInterval = model.RepeatInterval + + m.CaptureOption = model.CaptureOption + + m.CaptureMode = model.CaptureMode + + m.AttributeList = model.AttributeList + + m.LoadOption = model.LoadOption + + m.UpdateOption = model.UpdateOption + + m.UpdateAttributes = model.UpdateAttributes + + m.UpdateCondition = model.UpdateCondition + + m.IsIgnoreNull = model.IsIgnoreNull + + m.CommitRows = model.CommitRows + + m.BeginSnapshot = model.BeginSnapshot + + m.EndSnapshot = model.EndSnapshot + + m.BaselineName = model.BaselineName + + nn, e = model.CredentialDetails.UnmarshalPolymorphicJSON(model.CredentialDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.CredentialDetails = nn.(SqlTuningSetAdminCredentialDetails) + } else { + m.CredentialDetails = nil + } + + m.Name = model.Name + + m.LoadType = model.LoadType + + return +} + +// LoadSqlTuningSetDetailsLoadTypeEnum Enum with underlying type: string +type LoadSqlTuningSetDetailsLoadTypeEnum string + +// Set of constants representing the allowable values for LoadSqlTuningSetDetailsLoadTypeEnum +const ( + LoadSqlTuningSetDetailsLoadTypeIncrementalCursorCache LoadSqlTuningSetDetailsLoadTypeEnum = "INCREMENTAL_CURSOR_CACHE" + LoadSqlTuningSetDetailsLoadTypeCurrentCursorCache LoadSqlTuningSetDetailsLoadTypeEnum = "CURRENT_CURSOR_CACHE" + LoadSqlTuningSetDetailsLoadTypeAwr LoadSqlTuningSetDetailsLoadTypeEnum = "AWR" +) + +var mappingLoadSqlTuningSetDetailsLoadTypeEnum = map[string]LoadSqlTuningSetDetailsLoadTypeEnum{ + "INCREMENTAL_CURSOR_CACHE": LoadSqlTuningSetDetailsLoadTypeIncrementalCursorCache, + "CURRENT_CURSOR_CACHE": LoadSqlTuningSetDetailsLoadTypeCurrentCursorCache, + "AWR": LoadSqlTuningSetDetailsLoadTypeAwr, +} + +var mappingLoadSqlTuningSetDetailsLoadTypeEnumLowerCase = map[string]LoadSqlTuningSetDetailsLoadTypeEnum{ + "incremental_cursor_cache": LoadSqlTuningSetDetailsLoadTypeIncrementalCursorCache, + "current_cursor_cache": LoadSqlTuningSetDetailsLoadTypeCurrentCursorCache, + "awr": LoadSqlTuningSetDetailsLoadTypeAwr, +} + +// GetLoadSqlTuningSetDetailsLoadTypeEnumValues Enumerates the set of values for LoadSqlTuningSetDetailsLoadTypeEnum +func GetLoadSqlTuningSetDetailsLoadTypeEnumValues() []LoadSqlTuningSetDetailsLoadTypeEnum { + values := make([]LoadSqlTuningSetDetailsLoadTypeEnum, 0) + for _, v := range mappingLoadSqlTuningSetDetailsLoadTypeEnum { + values = append(values, v) + } + return values +} + +// GetLoadSqlTuningSetDetailsLoadTypeEnumStringValues Enumerates the set of values in String for LoadSqlTuningSetDetailsLoadTypeEnum +func GetLoadSqlTuningSetDetailsLoadTypeEnumStringValues() []string { + return []string{ + "INCREMENTAL_CURSOR_CACHE", + "CURRENT_CURSOR_CACHE", + "AWR", + } +} + +// GetMappingLoadSqlTuningSetDetailsLoadTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLoadSqlTuningSetDetailsLoadTypeEnum(val string) (LoadSqlTuningSetDetailsLoadTypeEnum, bool) { + enum, ok := mappingLoadSqlTuningSetDetailsLoadTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LoadSqlTuningSetDetailsRecursiveSqlEnum Enum with underlying type: string +type LoadSqlTuningSetDetailsRecursiveSqlEnum string + +// Set of constants representing the allowable values for LoadSqlTuningSetDetailsRecursiveSqlEnum +const ( + LoadSqlTuningSetDetailsRecursiveSqlHasRecursiveSql LoadSqlTuningSetDetailsRecursiveSqlEnum = "HAS_RECURSIVE_SQL" + LoadSqlTuningSetDetailsRecursiveSqlNoRecursiveSql LoadSqlTuningSetDetailsRecursiveSqlEnum = "NO_RECURSIVE_SQL" +) + +var mappingLoadSqlTuningSetDetailsRecursiveSqlEnum = map[string]LoadSqlTuningSetDetailsRecursiveSqlEnum{ + "HAS_RECURSIVE_SQL": LoadSqlTuningSetDetailsRecursiveSqlHasRecursiveSql, + "NO_RECURSIVE_SQL": LoadSqlTuningSetDetailsRecursiveSqlNoRecursiveSql, +} + +var mappingLoadSqlTuningSetDetailsRecursiveSqlEnumLowerCase = map[string]LoadSqlTuningSetDetailsRecursiveSqlEnum{ + "has_recursive_sql": LoadSqlTuningSetDetailsRecursiveSqlHasRecursiveSql, + "no_recursive_sql": LoadSqlTuningSetDetailsRecursiveSqlNoRecursiveSql, +} + +// GetLoadSqlTuningSetDetailsRecursiveSqlEnumValues Enumerates the set of values for LoadSqlTuningSetDetailsRecursiveSqlEnum +func GetLoadSqlTuningSetDetailsRecursiveSqlEnumValues() []LoadSqlTuningSetDetailsRecursiveSqlEnum { + values := make([]LoadSqlTuningSetDetailsRecursiveSqlEnum, 0) + for _, v := range mappingLoadSqlTuningSetDetailsRecursiveSqlEnum { + values = append(values, v) + } + return values +} + +// GetLoadSqlTuningSetDetailsRecursiveSqlEnumStringValues Enumerates the set of values in String for LoadSqlTuningSetDetailsRecursiveSqlEnum +func GetLoadSqlTuningSetDetailsRecursiveSqlEnumStringValues() []string { + return []string{ + "HAS_RECURSIVE_SQL", + "NO_RECURSIVE_SQL", + } +} + +// GetMappingLoadSqlTuningSetDetailsRecursiveSqlEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLoadSqlTuningSetDetailsRecursiveSqlEnum(val string) (LoadSqlTuningSetDetailsRecursiveSqlEnum, bool) { + enum, ok := mappingLoadSqlTuningSetDetailsRecursiveSqlEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LoadSqlTuningSetDetailsCaptureOptionEnum Enum with underlying type: string +type LoadSqlTuningSetDetailsCaptureOptionEnum string + +// Set of constants representing the allowable values for LoadSqlTuningSetDetailsCaptureOptionEnum +const ( + LoadSqlTuningSetDetailsCaptureOptionInsert LoadSqlTuningSetDetailsCaptureOptionEnum = "INSERT" + LoadSqlTuningSetDetailsCaptureOptionUpdate LoadSqlTuningSetDetailsCaptureOptionEnum = "UPDATE" + LoadSqlTuningSetDetailsCaptureOptionMerge LoadSqlTuningSetDetailsCaptureOptionEnum = "MERGE" +) + +var mappingLoadSqlTuningSetDetailsCaptureOptionEnum = map[string]LoadSqlTuningSetDetailsCaptureOptionEnum{ + "INSERT": LoadSqlTuningSetDetailsCaptureOptionInsert, + "UPDATE": LoadSqlTuningSetDetailsCaptureOptionUpdate, + "MERGE": LoadSqlTuningSetDetailsCaptureOptionMerge, +} + +var mappingLoadSqlTuningSetDetailsCaptureOptionEnumLowerCase = map[string]LoadSqlTuningSetDetailsCaptureOptionEnum{ + "insert": LoadSqlTuningSetDetailsCaptureOptionInsert, + "update": LoadSqlTuningSetDetailsCaptureOptionUpdate, + "merge": LoadSqlTuningSetDetailsCaptureOptionMerge, +} + +// GetLoadSqlTuningSetDetailsCaptureOptionEnumValues Enumerates the set of values for LoadSqlTuningSetDetailsCaptureOptionEnum +func GetLoadSqlTuningSetDetailsCaptureOptionEnumValues() []LoadSqlTuningSetDetailsCaptureOptionEnum { + values := make([]LoadSqlTuningSetDetailsCaptureOptionEnum, 0) + for _, v := range mappingLoadSqlTuningSetDetailsCaptureOptionEnum { + values = append(values, v) + } + return values +} + +// GetLoadSqlTuningSetDetailsCaptureOptionEnumStringValues Enumerates the set of values in String for LoadSqlTuningSetDetailsCaptureOptionEnum +func GetLoadSqlTuningSetDetailsCaptureOptionEnumStringValues() []string { + return []string{ + "INSERT", + "UPDATE", + "MERGE", + } +} + +// GetMappingLoadSqlTuningSetDetailsCaptureOptionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLoadSqlTuningSetDetailsCaptureOptionEnum(val string) (LoadSqlTuningSetDetailsCaptureOptionEnum, bool) { + enum, ok := mappingLoadSqlTuningSetDetailsCaptureOptionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LoadSqlTuningSetDetailsCaptureModeEnum Enum with underlying type: string +type LoadSqlTuningSetDetailsCaptureModeEnum string + +// Set of constants representing the allowable values for LoadSqlTuningSetDetailsCaptureModeEnum +const ( + LoadSqlTuningSetDetailsCaptureModeReplaceOldStats LoadSqlTuningSetDetailsCaptureModeEnum = "MODE_REPLACE_OLD_STATS" + LoadSqlTuningSetDetailsCaptureModeAccumulateStats LoadSqlTuningSetDetailsCaptureModeEnum = "MODE_ACCUMULATE_STATS" +) + +var mappingLoadSqlTuningSetDetailsCaptureModeEnum = map[string]LoadSqlTuningSetDetailsCaptureModeEnum{ + "MODE_REPLACE_OLD_STATS": LoadSqlTuningSetDetailsCaptureModeReplaceOldStats, + "MODE_ACCUMULATE_STATS": LoadSqlTuningSetDetailsCaptureModeAccumulateStats, +} + +var mappingLoadSqlTuningSetDetailsCaptureModeEnumLowerCase = map[string]LoadSqlTuningSetDetailsCaptureModeEnum{ + "mode_replace_old_stats": LoadSqlTuningSetDetailsCaptureModeReplaceOldStats, + "mode_accumulate_stats": LoadSqlTuningSetDetailsCaptureModeAccumulateStats, +} + +// GetLoadSqlTuningSetDetailsCaptureModeEnumValues Enumerates the set of values for LoadSqlTuningSetDetailsCaptureModeEnum +func GetLoadSqlTuningSetDetailsCaptureModeEnumValues() []LoadSqlTuningSetDetailsCaptureModeEnum { + values := make([]LoadSqlTuningSetDetailsCaptureModeEnum, 0) + for _, v := range mappingLoadSqlTuningSetDetailsCaptureModeEnum { + values = append(values, v) + } + return values +} + +// GetLoadSqlTuningSetDetailsCaptureModeEnumStringValues Enumerates the set of values in String for LoadSqlTuningSetDetailsCaptureModeEnum +func GetLoadSqlTuningSetDetailsCaptureModeEnumStringValues() []string { + return []string{ + "MODE_REPLACE_OLD_STATS", + "MODE_ACCUMULATE_STATS", + } +} + +// GetMappingLoadSqlTuningSetDetailsCaptureModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLoadSqlTuningSetDetailsCaptureModeEnum(val string) (LoadSqlTuningSetDetailsCaptureModeEnum, bool) { + enum, ok := mappingLoadSqlTuningSetDetailsCaptureModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LoadSqlTuningSetDetailsLoadOptionEnum Enum with underlying type: string +type LoadSqlTuningSetDetailsLoadOptionEnum string + +// Set of constants representing the allowable values for LoadSqlTuningSetDetailsLoadOptionEnum +const ( + LoadSqlTuningSetDetailsLoadOptionInsert LoadSqlTuningSetDetailsLoadOptionEnum = "INSERT" + LoadSqlTuningSetDetailsLoadOptionUpdate LoadSqlTuningSetDetailsLoadOptionEnum = "UPDATE" + LoadSqlTuningSetDetailsLoadOptionMerge LoadSqlTuningSetDetailsLoadOptionEnum = "MERGE" +) + +var mappingLoadSqlTuningSetDetailsLoadOptionEnum = map[string]LoadSqlTuningSetDetailsLoadOptionEnum{ + "INSERT": LoadSqlTuningSetDetailsLoadOptionInsert, + "UPDATE": LoadSqlTuningSetDetailsLoadOptionUpdate, + "MERGE": LoadSqlTuningSetDetailsLoadOptionMerge, +} + +var mappingLoadSqlTuningSetDetailsLoadOptionEnumLowerCase = map[string]LoadSqlTuningSetDetailsLoadOptionEnum{ + "insert": LoadSqlTuningSetDetailsLoadOptionInsert, + "update": LoadSqlTuningSetDetailsLoadOptionUpdate, + "merge": LoadSqlTuningSetDetailsLoadOptionMerge, +} + +// GetLoadSqlTuningSetDetailsLoadOptionEnumValues Enumerates the set of values for LoadSqlTuningSetDetailsLoadOptionEnum +func GetLoadSqlTuningSetDetailsLoadOptionEnumValues() []LoadSqlTuningSetDetailsLoadOptionEnum { + values := make([]LoadSqlTuningSetDetailsLoadOptionEnum, 0) + for _, v := range mappingLoadSqlTuningSetDetailsLoadOptionEnum { + values = append(values, v) + } + return values +} + +// GetLoadSqlTuningSetDetailsLoadOptionEnumStringValues Enumerates the set of values in String for LoadSqlTuningSetDetailsLoadOptionEnum +func GetLoadSqlTuningSetDetailsLoadOptionEnumStringValues() []string { + return []string{ + "INSERT", + "UPDATE", + "MERGE", + } +} + +// GetMappingLoadSqlTuningSetDetailsLoadOptionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLoadSqlTuningSetDetailsLoadOptionEnum(val string) (LoadSqlTuningSetDetailsLoadOptionEnum, bool) { + enum, ok := mappingLoadSqlTuningSetDetailsLoadOptionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LoadSqlTuningSetDetailsUpdateOptionEnum Enum with underlying type: string +type LoadSqlTuningSetDetailsUpdateOptionEnum string + +// Set of constants representing the allowable values for LoadSqlTuningSetDetailsUpdateOptionEnum +const ( + LoadSqlTuningSetDetailsUpdateOptionReplace LoadSqlTuningSetDetailsUpdateOptionEnum = "REPLACE" + LoadSqlTuningSetDetailsUpdateOptionAccumulate LoadSqlTuningSetDetailsUpdateOptionEnum = "ACCUMULATE" +) + +var mappingLoadSqlTuningSetDetailsUpdateOptionEnum = map[string]LoadSqlTuningSetDetailsUpdateOptionEnum{ + "REPLACE": LoadSqlTuningSetDetailsUpdateOptionReplace, + "ACCUMULATE": LoadSqlTuningSetDetailsUpdateOptionAccumulate, +} + +var mappingLoadSqlTuningSetDetailsUpdateOptionEnumLowerCase = map[string]LoadSqlTuningSetDetailsUpdateOptionEnum{ + "replace": LoadSqlTuningSetDetailsUpdateOptionReplace, + "accumulate": LoadSqlTuningSetDetailsUpdateOptionAccumulate, +} + +// GetLoadSqlTuningSetDetailsUpdateOptionEnumValues Enumerates the set of values for LoadSqlTuningSetDetailsUpdateOptionEnum +func GetLoadSqlTuningSetDetailsUpdateOptionEnumValues() []LoadSqlTuningSetDetailsUpdateOptionEnum { + values := make([]LoadSqlTuningSetDetailsUpdateOptionEnum, 0) + for _, v := range mappingLoadSqlTuningSetDetailsUpdateOptionEnum { + values = append(values, v) + } + return values +} + +// GetLoadSqlTuningSetDetailsUpdateOptionEnumStringValues Enumerates the set of values in String for LoadSqlTuningSetDetailsUpdateOptionEnum +func GetLoadSqlTuningSetDetailsUpdateOptionEnumStringValues() []string { + return []string{ + "REPLACE", + "ACCUMULATE", + } +} + +// GetMappingLoadSqlTuningSetDetailsUpdateOptionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLoadSqlTuningSetDetailsUpdateOptionEnum(val string) (LoadSqlTuningSetDetailsUpdateOptionEnum, bool) { + enum, ok := mappingLoadSqlTuningSetDetailsUpdateOptionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LoadSqlTuningSetDetailsUpdateConditionEnum Enum with underlying type: string +type LoadSqlTuningSetDetailsUpdateConditionEnum string + +// Set of constants representing the allowable values for LoadSqlTuningSetDetailsUpdateConditionEnum +const ( + LoadSqlTuningSetDetailsUpdateConditionOld LoadSqlTuningSetDetailsUpdateConditionEnum = "OLD" + LoadSqlTuningSetDetailsUpdateConditionNew LoadSqlTuningSetDetailsUpdateConditionEnum = "NEW" +) + +var mappingLoadSqlTuningSetDetailsUpdateConditionEnum = map[string]LoadSqlTuningSetDetailsUpdateConditionEnum{ + "OLD": LoadSqlTuningSetDetailsUpdateConditionOld, + "NEW": LoadSqlTuningSetDetailsUpdateConditionNew, +} + +var mappingLoadSqlTuningSetDetailsUpdateConditionEnumLowerCase = map[string]LoadSqlTuningSetDetailsUpdateConditionEnum{ + "old": LoadSqlTuningSetDetailsUpdateConditionOld, + "new": LoadSqlTuningSetDetailsUpdateConditionNew, +} + +// GetLoadSqlTuningSetDetailsUpdateConditionEnumValues Enumerates the set of values for LoadSqlTuningSetDetailsUpdateConditionEnum +func GetLoadSqlTuningSetDetailsUpdateConditionEnumValues() []LoadSqlTuningSetDetailsUpdateConditionEnum { + values := make([]LoadSqlTuningSetDetailsUpdateConditionEnum, 0) + for _, v := range mappingLoadSqlTuningSetDetailsUpdateConditionEnum { + values = append(values, v) + } + return values +} + +// GetLoadSqlTuningSetDetailsUpdateConditionEnumStringValues Enumerates the set of values in String for LoadSqlTuningSetDetailsUpdateConditionEnum +func GetLoadSqlTuningSetDetailsUpdateConditionEnumStringValues() []string { + return []string{ + "OLD", + "NEW", + } +} + +// GetMappingLoadSqlTuningSetDetailsUpdateConditionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLoadSqlTuningSetDetailsUpdateConditionEnum(val string) (LoadSqlTuningSetDetailsUpdateConditionEnum, bool) { + enum, ok := mappingLoadSqlTuningSetDetailsUpdateConditionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/databasemanagement/load_sql_tuning_set_request_response.go b/databasemanagement/load_sql_tuning_set_request_response.go new file mode 100644 index 0000000000..77bd53edda --- /dev/null +++ b/databasemanagement/load_sql_tuning_set_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// LoadSqlTuningSetRequest wrapper for the LoadSqlTuningSet operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/LoadSqlTuningSet.go.html to see an example of how to use LoadSqlTuningSetRequest. +type LoadSqlTuningSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + ManagedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseId"` + + // The unique identifier of the Sql tuning set. This is not OCID. + SqlTuningSetId *int `mandatory:"true" contributesTo:"path" name:"sqlTuningSetId"` + + // The details required to load Sql statements into the Sql tuning set. + LoadSqlTuningSetDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request LoadSqlTuningSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request LoadSqlTuningSetRequest) 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 LoadSqlTuningSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request LoadSqlTuningSetRequest) 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 LoadSqlTuningSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LoadSqlTuningSetResponse wrapper for the LoadSqlTuningSet operation +type LoadSqlTuningSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SqlTuningSetAdminActionStatus instance + SqlTuningSetAdminActionStatus `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response LoadSqlTuningSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response LoadSqlTuningSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/databasemanagement/modify_snapshot_settings_details.go b/databasemanagement/modify_snapshot_settings_details.go new file mode 100644 index 0000000000..7e16420c3e --- /dev/null +++ b/databasemanagement/modify_snapshot_settings_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. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ModifySnapshotSettingsDetails Details to modify the AWR snapshot settings for a database. +type ModifySnapshotSettingsDetails struct { + + // The retention time in minutes. Acceptable values are 0, 1440 to 52596000 (inclusive), and null. + Retention *int `mandatory:"false" json:"retention"` + + // The interval time in minutes. Acceptable values are 0, 10 to 527040 (inclusive), and null. + Interval *int `mandatory:"false" json:"interval"` +} + +func (m ModifySnapshotSettingsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ModifySnapshotSettingsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/databasemanagement/modify_snapshot_settings_request_response.go b/databasemanagement/modify_snapshot_settings_request_response.go new file mode 100644 index 0000000000..09dd3d2059 --- /dev/null +++ b/databasemanagement/modify_snapshot_settings_request_response.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ModifySnapshotSettingsRequest wrapper for the ModifySnapshotSettings operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/ModifySnapshotSettings.go.html to see an example of how to use ModifySnapshotSettingsRequest. +type ModifySnapshotSettingsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + ManagedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseId"` + + // Request to modify snapshot settings for a Database. + ModifySnapshotSettingsDetails `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 ModifySnapshotSettingsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ModifySnapshotSettingsRequest) 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 ModifySnapshotSettingsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ModifySnapshotSettingsRequest) 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 ModifySnapshotSettingsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ModifySnapshotSettingsResponse wrapper for the ModifySnapshotSettings operation +type ModifySnapshotSettingsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ModifySnapshotSettingsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ModifySnapshotSettingsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/databasemanagement/ranking_measure.go b/databasemanagement/ranking_measure.go new file mode 100644 index 0000000000..0f947836bd --- /dev/null +++ b/databasemanagement/ranking_measure.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "strings" +) + +// RankingMeasureEnum Enum with underlying type: string +type RankingMeasureEnum string + +// Set of constants representing the allowable values for RankingMeasureEnum +const ( + RankingMeasureElapsedTime RankingMeasureEnum = "ELAPSED_TIME" + RankingMeasureCpuTime RankingMeasureEnum = "CPU_TIME" + RankingMeasureOptimizerCost RankingMeasureEnum = "OPTIMIZER_COST" + RankingMeasureBufferGets RankingMeasureEnum = "BUFFER_GETS" + RankingMeasureDiskReads RankingMeasureEnum = "DISK_READS" + RankingMeasureDirectWrites RankingMeasureEnum = "DIRECT_WRITES" +) + +var mappingRankingMeasureEnum = map[string]RankingMeasureEnum{ + "ELAPSED_TIME": RankingMeasureElapsedTime, + "CPU_TIME": RankingMeasureCpuTime, + "OPTIMIZER_COST": RankingMeasureOptimizerCost, + "BUFFER_GETS": RankingMeasureBufferGets, + "DISK_READS": RankingMeasureDiskReads, + "DIRECT_WRITES": RankingMeasureDirectWrites, +} + +var mappingRankingMeasureEnumLowerCase = map[string]RankingMeasureEnum{ + "elapsed_time": RankingMeasureElapsedTime, + "cpu_time": RankingMeasureCpuTime, + "optimizer_cost": RankingMeasureOptimizerCost, + "buffer_gets": RankingMeasureBufferGets, + "disk_reads": RankingMeasureDiskReads, + "direct_writes": RankingMeasureDirectWrites, +} + +// GetRankingMeasureEnumValues Enumerates the set of values for RankingMeasureEnum +func GetRankingMeasureEnumValues() []RankingMeasureEnum { + values := make([]RankingMeasureEnum, 0) + for _, v := range mappingRankingMeasureEnum { + values = append(values, v) + } + return values +} + +// GetRankingMeasureEnumStringValues Enumerates the set of values in String for RankingMeasureEnum +func GetRankingMeasureEnumStringValues() []string { + return []string{ + "ELAPSED_TIME", + "CPU_TIME", + "OPTIMIZER_COST", + "BUFFER_GETS", + "DISK_READS", + "DIRECT_WRITES", + } +} + +// GetMappingRankingMeasureEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRankingMeasureEnum(val string) (RankingMeasureEnum, bool) { + enum, ok := mappingRankingMeasureEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/databasemanagement/save_sql_tuning_set_as_details.go b/databasemanagement/save_sql_tuning_set_as_details.go new file mode 100644 index 0000000000..1bbac544b4 --- /dev/null +++ b/databasemanagement/save_sql_tuning_set_as_details.go @@ -0,0 +1,535 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SaveSqlTuningSetAsDetails Save current list of Sql statements into another Sql tuning set. +type SaveSqlTuningSetAsDetails struct { + CredentialDetails SqlTuningSetAdminCredentialDetails `mandatory:"true" json:"credentialDetails"` + + // The name of the Sql tuning set. + Name *string `mandatory:"true" json:"name"` + + // The name of the destination Sql tuning set. + DestinationSqlTuningSetName *string `mandatory:"true" json:"destinationSqlTuningSetName"` + + // Specifies whether to create a new Sql tuning set or not. + // Possible values + // 1 - Create a new Sql tuning set + // 0 - Do not create a new Sql tuning set + CreateNew *int `mandatory:"true" json:"createNew"` + + // Flag to indicate whether to save the Sql tuning set or just display the plsql used to save Sql tuning set. + ShowSqlOnly *int `mandatory:"false" json:"showSqlOnly"` + + // The owner of the Sql tuning set. + Owner *string `mandatory:"false" json:"owner"` + + // The description for the destination Sql tuning set. + DestinationSqlTuningSetDescription *string `mandatory:"false" json:"destinationSqlTuningSetDescription"` + + // Owner of the destination Sql tuning set. + DestinationSqlTuningSetOwner *string `mandatory:"false" json:"destinationSqlTuningSetOwner"` + + // Specifies the Sql predicate to filter the Sql from the Sql tuning set defined on attributes of the SQLSET_ROW. + // User could use any combination of the following columns with appropriate values as Sql predicate + // Refer to the documentation https://docs.oracle.com/en/database/oracle/oracle-database/18/arpls/DBMS_SQLTUNE.html#GUID-1F4AFB03-7B29-46FC-B3F2-CB01EC36326C + BasicFilter *string `mandatory:"false" json:"basicFilter"` + + // Specifies the plan filter. + // This parameter enables you to select a single plan when a statement has multiple plans. + // Refer to the documentation https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_SQLSET.html#GUID-9D995019-91AB-4B1E-9EAF-031050789B21 + PlanFilter SaveSqlTuningSetAsDetailsPlanFilterEnum `mandatory:"false" json:"planFilter,omitempty"` + + // Specifies that the filter must include recursive Sql in the Sql tuning set. + RecursiveSql SaveSqlTuningSetAsDetailsRecursiveSqlEnum `mandatory:"false" json:"recursiveSql,omitempty"` + + // Specifies a filter that picks the top n% according to the supplied ranking measure. + // Note that this parameter applies only if one ranking measure is supplied. + ResultPercentage *float64 `mandatory:"false" json:"resultPercentage"` + + // The top limit Sql from the filtered source, ranked by the ranking measure. + ResultLimit *int `mandatory:"false" json:"resultLimit"` + + // Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + RankingMeasure1 RankingMeasureEnum `mandatory:"false" json:"rankingMeasure1,omitempty"` + + // Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + RankingMeasure2 RankingMeasureEnum `mandatory:"false" json:"rankingMeasure2,omitempty"` + + // Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + RankingMeasure3 RankingMeasureEnum `mandatory:"false" json:"rankingMeasure3,omitempty"` + + // Specifies the list of Sql statement attributes to return in the result. + // Note that this parameter cannot be made an enum since custom value can take a list of comma separated attribute names. + // Attribute list can take one of the following values. + // TYPICAL - Specifies BASIC plus Sql plan (without row source statistics) and without object reference list (default). + // BASIC - Specifies all attributes (such as execution statistics and binds) except the plans. The execution context is always part of the result. + // ALL - Specifies all attributes. + // CUSTOM - Comma-separated list of the following attribute names. + // - EXECUTION_STATISTICS + // - BIND_LIST + // - OBJECT_LIST + // - SQL_PLAN + // - SQL_PLAN_STATISTICS + // Usage examples: + // 1. "attributeList": "TYPICAL" + // 2. "attributeList": "ALL" + // 3. "attributeList": "EXECUTION_STATISTICS,OBJECT_LIST,SQL_PLAN" + AttributeList *string `mandatory:"false" json:"attributeList"` + + // Specifies which statements are loaded into the Sql tuning set. + // The possible values are. + // - INSERT (default) + // Adds only new statements. + // - UPDATE + // Updates existing the Sql statements and ignores any new statements. + // - MERGE + // Inserts new statements and updates the information of the existing ones. + LoadOption SaveSqlTuningSetAsDetailsLoadOptionEnum `mandatory:"false" json:"loadOption,omitempty"` + + // Specifies how existing Sql statements are updated. + // This parameter is applicable only if load_option is specified with UPDATE or MERGE as an option. + // Update option can take one of the following values. + // REPLACE (default) - Updates the statement using the new statistics, bind list, object list, and so on. + // ACCUMULATE - Combines attributes when possible (for example, statistics such as elapsed_time), otherwise replaces the existing values (for example, module and action) with the provided values. + // Following Sql statement attributes can be accumulated. + // elapsed_time + // buffer_gets + // direct_writes + // disk_reads + // row_processed + // fetches + // executions + // end_of_fetch_count + // stat_period + // active_stat_period + UpdateOption SaveSqlTuningSetAsDetailsUpdateOptionEnum `mandatory:"false" json:"updateOption,omitempty"` + + // Specifies when to perform the update. + // The procedure only performs the update when the specified condition is satisfied. + // The condition can refer to either the data source or destination. + // The condition must use the following prefixes to refer to attributes from the source or the destination: + // OLD — Refers to statement attributes from the SQL tuning set (destination). + // NEW — Refers to statement attributes from the input statements (source). + // NULL — No updates are performed. + UpdateCondition SaveSqlTuningSetAsDetailsUpdateConditionEnum `mandatory:"false" json:"updateCondition,omitempty"` + + // Specifies the list of Sql statement attributes to update during a merge or update. + // Note that this parameter cannot be made an enum since custom value can take a list of comma separated attribute names. + // Update attributes can take one of the following values. + // NULL (default) - Specifies the content of the input cursor except the execution context. On other terms, it is equivalent to ALL without execution contexts such as module and action. + // BASIC - Specifies statistics and binds only. + // TYPICAL - Specifies BASIC with Sql plans (without row source statistics) and without an object reference list. + // ALL - Specifies all attributes, including the execution context attributes such as module and action. + // CUSTOM - List of comma separated attribute names to update + // EXECUTION_CONTEXT + // EXECUTION_STATISTICS + // SQL_BINDS + // SQL_PLAN + // SQL_PLAN_STATISTICS (similar to SQL_PLAN with added row source statistics) + // Usage examples: + // 1. "updateAttributes": "TYPICAL" + // 2. "updateAttributes": "BASIC" + // 3. "updateAttributes": "EXECUTION_STATISTICS,SQL_PLAN_STATISTICS,SQL_PLAN" + // 4. "updateAttributes": "EXECUTION_STATISTICS,SQL_PLAN" + UpdateAttributes *string `mandatory:"false" json:"updateAttributes"` + + // Specifies whether to update attributes when the new value is NULL. + // If TRUE, then the procedure does not update an attribute when the new value is NULL. + // That is, do not override with NULL values unless intentional. + // Possible values - true or false + IsIgnoreNull *bool `mandatory:"false" json:"isIgnoreNull"` + + // Specifies whether to commit statements after DML. + // If a value is provided, then the load commits after each specified number of statements is inserted. + // If NULL is provided, then the load commits only once, at the end of the operation. + CommitRows *int `mandatory:"false" json:"commitRows"` +} + +func (m SaveSqlTuningSetAsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SaveSqlTuningSetAsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingSaveSqlTuningSetAsDetailsPlanFilterEnum(string(m.PlanFilter)); !ok && m.PlanFilter != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PlanFilter: %s. Supported values are: %s.", m.PlanFilter, strings.Join(GetSaveSqlTuningSetAsDetailsPlanFilterEnumStringValues(), ","))) + } + if _, ok := GetMappingSaveSqlTuningSetAsDetailsRecursiveSqlEnum(string(m.RecursiveSql)); !ok && m.RecursiveSql != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecursiveSql: %s. Supported values are: %s.", m.RecursiveSql, strings.Join(GetSaveSqlTuningSetAsDetailsRecursiveSqlEnumStringValues(), ","))) + } + if _, ok := GetMappingRankingMeasureEnum(string(m.RankingMeasure1)); !ok && m.RankingMeasure1 != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RankingMeasure1: %s. Supported values are: %s.", m.RankingMeasure1, strings.Join(GetRankingMeasureEnumStringValues(), ","))) + } + if _, ok := GetMappingRankingMeasureEnum(string(m.RankingMeasure2)); !ok && m.RankingMeasure2 != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RankingMeasure2: %s. Supported values are: %s.", m.RankingMeasure2, strings.Join(GetRankingMeasureEnumStringValues(), ","))) + } + if _, ok := GetMappingRankingMeasureEnum(string(m.RankingMeasure3)); !ok && m.RankingMeasure3 != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RankingMeasure3: %s. Supported values are: %s.", m.RankingMeasure3, strings.Join(GetRankingMeasureEnumStringValues(), ","))) + } + if _, ok := GetMappingSaveSqlTuningSetAsDetailsLoadOptionEnum(string(m.LoadOption)); !ok && m.LoadOption != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LoadOption: %s. Supported values are: %s.", m.LoadOption, strings.Join(GetSaveSqlTuningSetAsDetailsLoadOptionEnumStringValues(), ","))) + } + if _, ok := GetMappingSaveSqlTuningSetAsDetailsUpdateOptionEnum(string(m.UpdateOption)); !ok && m.UpdateOption != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateOption: %s. Supported values are: %s.", m.UpdateOption, strings.Join(GetSaveSqlTuningSetAsDetailsUpdateOptionEnumStringValues(), ","))) + } + if _, ok := GetMappingSaveSqlTuningSetAsDetailsUpdateConditionEnum(string(m.UpdateCondition)); !ok && m.UpdateCondition != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UpdateCondition: %s. Supported values are: %s.", m.UpdateCondition, strings.Join(GetSaveSqlTuningSetAsDetailsUpdateConditionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *SaveSqlTuningSetAsDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + ShowSqlOnly *int `json:"showSqlOnly"` + Owner *string `json:"owner"` + DestinationSqlTuningSetDescription *string `json:"destinationSqlTuningSetDescription"` + DestinationSqlTuningSetOwner *string `json:"destinationSqlTuningSetOwner"` + BasicFilter *string `json:"basicFilter"` + PlanFilter SaveSqlTuningSetAsDetailsPlanFilterEnum `json:"planFilter"` + RecursiveSql SaveSqlTuningSetAsDetailsRecursiveSqlEnum `json:"recursiveSql"` + ResultPercentage *float64 `json:"resultPercentage"` + ResultLimit *int `json:"resultLimit"` + RankingMeasure1 RankingMeasureEnum `json:"rankingMeasure1"` + RankingMeasure2 RankingMeasureEnum `json:"rankingMeasure2"` + RankingMeasure3 RankingMeasureEnum `json:"rankingMeasure3"` + AttributeList *string `json:"attributeList"` + LoadOption SaveSqlTuningSetAsDetailsLoadOptionEnum `json:"loadOption"` + UpdateOption SaveSqlTuningSetAsDetailsUpdateOptionEnum `json:"updateOption"` + UpdateCondition SaveSqlTuningSetAsDetailsUpdateConditionEnum `json:"updateCondition"` + UpdateAttributes *string `json:"updateAttributes"` + IsIgnoreNull *bool `json:"isIgnoreNull"` + CommitRows *int `json:"commitRows"` + CredentialDetails sqltuningsetadmincredentialdetails `json:"credentialDetails"` + Name *string `json:"name"` + DestinationSqlTuningSetName *string `json:"destinationSqlTuningSetName"` + CreateNew *int `json:"createNew"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.ShowSqlOnly = model.ShowSqlOnly + + m.Owner = model.Owner + + m.DestinationSqlTuningSetDescription = model.DestinationSqlTuningSetDescription + + m.DestinationSqlTuningSetOwner = model.DestinationSqlTuningSetOwner + + m.BasicFilter = model.BasicFilter + + m.PlanFilter = model.PlanFilter + + m.RecursiveSql = model.RecursiveSql + + m.ResultPercentage = model.ResultPercentage + + m.ResultLimit = model.ResultLimit + + m.RankingMeasure1 = model.RankingMeasure1 + + m.RankingMeasure2 = model.RankingMeasure2 + + m.RankingMeasure3 = model.RankingMeasure3 + + m.AttributeList = model.AttributeList + + m.LoadOption = model.LoadOption + + m.UpdateOption = model.UpdateOption + + m.UpdateCondition = model.UpdateCondition + + m.UpdateAttributes = model.UpdateAttributes + + m.IsIgnoreNull = model.IsIgnoreNull + + m.CommitRows = model.CommitRows + + nn, e = model.CredentialDetails.UnmarshalPolymorphicJSON(model.CredentialDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.CredentialDetails = nn.(SqlTuningSetAdminCredentialDetails) + } else { + m.CredentialDetails = nil + } + + m.Name = model.Name + + m.DestinationSqlTuningSetName = model.DestinationSqlTuningSetName + + m.CreateNew = model.CreateNew + + return +} + +// SaveSqlTuningSetAsDetailsPlanFilterEnum Enum with underlying type: string +type SaveSqlTuningSetAsDetailsPlanFilterEnum string + +// Set of constants representing the allowable values for SaveSqlTuningSetAsDetailsPlanFilterEnum +const ( + SaveSqlTuningSetAsDetailsPlanFilterLastGenerated SaveSqlTuningSetAsDetailsPlanFilterEnum = "LAST_GENERATED" + SaveSqlTuningSetAsDetailsPlanFilterFirstGenerated SaveSqlTuningSetAsDetailsPlanFilterEnum = "FIRST_GENERATED" + SaveSqlTuningSetAsDetailsPlanFilterLastLoaded SaveSqlTuningSetAsDetailsPlanFilterEnum = "LAST_LOADED" + SaveSqlTuningSetAsDetailsPlanFilterFirstLoaded SaveSqlTuningSetAsDetailsPlanFilterEnum = "FIRST_LOADED" + SaveSqlTuningSetAsDetailsPlanFilterMaxElapsedTime SaveSqlTuningSetAsDetailsPlanFilterEnum = "MAX_ELAPSED_TIME" + SaveSqlTuningSetAsDetailsPlanFilterMaxBufferGets SaveSqlTuningSetAsDetailsPlanFilterEnum = "MAX_BUFFER_GETS" + SaveSqlTuningSetAsDetailsPlanFilterMaxDiskReads SaveSqlTuningSetAsDetailsPlanFilterEnum = "MAX_DISK_READS" + SaveSqlTuningSetAsDetailsPlanFilterMaxDirectWrites SaveSqlTuningSetAsDetailsPlanFilterEnum = "MAX_DIRECT_WRITES" + SaveSqlTuningSetAsDetailsPlanFilterMaxOptimizerCost SaveSqlTuningSetAsDetailsPlanFilterEnum = "MAX_OPTIMIZER_COST" +) + +var mappingSaveSqlTuningSetAsDetailsPlanFilterEnum = map[string]SaveSqlTuningSetAsDetailsPlanFilterEnum{ + "LAST_GENERATED": SaveSqlTuningSetAsDetailsPlanFilterLastGenerated, + "FIRST_GENERATED": SaveSqlTuningSetAsDetailsPlanFilterFirstGenerated, + "LAST_LOADED": SaveSqlTuningSetAsDetailsPlanFilterLastLoaded, + "FIRST_LOADED": SaveSqlTuningSetAsDetailsPlanFilterFirstLoaded, + "MAX_ELAPSED_TIME": SaveSqlTuningSetAsDetailsPlanFilterMaxElapsedTime, + "MAX_BUFFER_GETS": SaveSqlTuningSetAsDetailsPlanFilterMaxBufferGets, + "MAX_DISK_READS": SaveSqlTuningSetAsDetailsPlanFilterMaxDiskReads, + "MAX_DIRECT_WRITES": SaveSqlTuningSetAsDetailsPlanFilterMaxDirectWrites, + "MAX_OPTIMIZER_COST": SaveSqlTuningSetAsDetailsPlanFilterMaxOptimizerCost, +} + +var mappingSaveSqlTuningSetAsDetailsPlanFilterEnumLowerCase = map[string]SaveSqlTuningSetAsDetailsPlanFilterEnum{ + "last_generated": SaveSqlTuningSetAsDetailsPlanFilterLastGenerated, + "first_generated": SaveSqlTuningSetAsDetailsPlanFilterFirstGenerated, + "last_loaded": SaveSqlTuningSetAsDetailsPlanFilterLastLoaded, + "first_loaded": SaveSqlTuningSetAsDetailsPlanFilterFirstLoaded, + "max_elapsed_time": SaveSqlTuningSetAsDetailsPlanFilterMaxElapsedTime, + "max_buffer_gets": SaveSqlTuningSetAsDetailsPlanFilterMaxBufferGets, + "max_disk_reads": SaveSqlTuningSetAsDetailsPlanFilterMaxDiskReads, + "max_direct_writes": SaveSqlTuningSetAsDetailsPlanFilterMaxDirectWrites, + "max_optimizer_cost": SaveSqlTuningSetAsDetailsPlanFilterMaxOptimizerCost, +} + +// GetSaveSqlTuningSetAsDetailsPlanFilterEnumValues Enumerates the set of values for SaveSqlTuningSetAsDetailsPlanFilterEnum +func GetSaveSqlTuningSetAsDetailsPlanFilterEnumValues() []SaveSqlTuningSetAsDetailsPlanFilterEnum { + values := make([]SaveSqlTuningSetAsDetailsPlanFilterEnum, 0) + for _, v := range mappingSaveSqlTuningSetAsDetailsPlanFilterEnum { + values = append(values, v) + } + return values +} + +// GetSaveSqlTuningSetAsDetailsPlanFilterEnumStringValues Enumerates the set of values in String for SaveSqlTuningSetAsDetailsPlanFilterEnum +func GetSaveSqlTuningSetAsDetailsPlanFilterEnumStringValues() []string { + return []string{ + "LAST_GENERATED", + "FIRST_GENERATED", + "LAST_LOADED", + "FIRST_LOADED", + "MAX_ELAPSED_TIME", + "MAX_BUFFER_GETS", + "MAX_DISK_READS", + "MAX_DIRECT_WRITES", + "MAX_OPTIMIZER_COST", + } +} + +// GetMappingSaveSqlTuningSetAsDetailsPlanFilterEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSaveSqlTuningSetAsDetailsPlanFilterEnum(val string) (SaveSqlTuningSetAsDetailsPlanFilterEnum, bool) { + enum, ok := mappingSaveSqlTuningSetAsDetailsPlanFilterEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SaveSqlTuningSetAsDetailsRecursiveSqlEnum Enum with underlying type: string +type SaveSqlTuningSetAsDetailsRecursiveSqlEnum string + +// Set of constants representing the allowable values for SaveSqlTuningSetAsDetailsRecursiveSqlEnum +const ( + SaveSqlTuningSetAsDetailsRecursiveSqlHasRecursiveSql SaveSqlTuningSetAsDetailsRecursiveSqlEnum = "HAS_RECURSIVE_SQL" + SaveSqlTuningSetAsDetailsRecursiveSqlNoRecursiveSql SaveSqlTuningSetAsDetailsRecursiveSqlEnum = "NO_RECURSIVE_SQL" +) + +var mappingSaveSqlTuningSetAsDetailsRecursiveSqlEnum = map[string]SaveSqlTuningSetAsDetailsRecursiveSqlEnum{ + "HAS_RECURSIVE_SQL": SaveSqlTuningSetAsDetailsRecursiveSqlHasRecursiveSql, + "NO_RECURSIVE_SQL": SaveSqlTuningSetAsDetailsRecursiveSqlNoRecursiveSql, +} + +var mappingSaveSqlTuningSetAsDetailsRecursiveSqlEnumLowerCase = map[string]SaveSqlTuningSetAsDetailsRecursiveSqlEnum{ + "has_recursive_sql": SaveSqlTuningSetAsDetailsRecursiveSqlHasRecursiveSql, + "no_recursive_sql": SaveSqlTuningSetAsDetailsRecursiveSqlNoRecursiveSql, +} + +// GetSaveSqlTuningSetAsDetailsRecursiveSqlEnumValues Enumerates the set of values for SaveSqlTuningSetAsDetailsRecursiveSqlEnum +func GetSaveSqlTuningSetAsDetailsRecursiveSqlEnumValues() []SaveSqlTuningSetAsDetailsRecursiveSqlEnum { + values := make([]SaveSqlTuningSetAsDetailsRecursiveSqlEnum, 0) + for _, v := range mappingSaveSqlTuningSetAsDetailsRecursiveSqlEnum { + values = append(values, v) + } + return values +} + +// GetSaveSqlTuningSetAsDetailsRecursiveSqlEnumStringValues Enumerates the set of values in String for SaveSqlTuningSetAsDetailsRecursiveSqlEnum +func GetSaveSqlTuningSetAsDetailsRecursiveSqlEnumStringValues() []string { + return []string{ + "HAS_RECURSIVE_SQL", + "NO_RECURSIVE_SQL", + } +} + +// GetMappingSaveSqlTuningSetAsDetailsRecursiveSqlEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSaveSqlTuningSetAsDetailsRecursiveSqlEnum(val string) (SaveSqlTuningSetAsDetailsRecursiveSqlEnum, bool) { + enum, ok := mappingSaveSqlTuningSetAsDetailsRecursiveSqlEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SaveSqlTuningSetAsDetailsLoadOptionEnum Enum with underlying type: string +type SaveSqlTuningSetAsDetailsLoadOptionEnum string + +// Set of constants representing the allowable values for SaveSqlTuningSetAsDetailsLoadOptionEnum +const ( + SaveSqlTuningSetAsDetailsLoadOptionInsert SaveSqlTuningSetAsDetailsLoadOptionEnum = "INSERT" + SaveSqlTuningSetAsDetailsLoadOptionUpdate SaveSqlTuningSetAsDetailsLoadOptionEnum = "UPDATE" + SaveSqlTuningSetAsDetailsLoadOptionMerge SaveSqlTuningSetAsDetailsLoadOptionEnum = "MERGE" +) + +var mappingSaveSqlTuningSetAsDetailsLoadOptionEnum = map[string]SaveSqlTuningSetAsDetailsLoadOptionEnum{ + "INSERT": SaveSqlTuningSetAsDetailsLoadOptionInsert, + "UPDATE": SaveSqlTuningSetAsDetailsLoadOptionUpdate, + "MERGE": SaveSqlTuningSetAsDetailsLoadOptionMerge, +} + +var mappingSaveSqlTuningSetAsDetailsLoadOptionEnumLowerCase = map[string]SaveSqlTuningSetAsDetailsLoadOptionEnum{ + "insert": SaveSqlTuningSetAsDetailsLoadOptionInsert, + "update": SaveSqlTuningSetAsDetailsLoadOptionUpdate, + "merge": SaveSqlTuningSetAsDetailsLoadOptionMerge, +} + +// GetSaveSqlTuningSetAsDetailsLoadOptionEnumValues Enumerates the set of values for SaveSqlTuningSetAsDetailsLoadOptionEnum +func GetSaveSqlTuningSetAsDetailsLoadOptionEnumValues() []SaveSqlTuningSetAsDetailsLoadOptionEnum { + values := make([]SaveSqlTuningSetAsDetailsLoadOptionEnum, 0) + for _, v := range mappingSaveSqlTuningSetAsDetailsLoadOptionEnum { + values = append(values, v) + } + return values +} + +// GetSaveSqlTuningSetAsDetailsLoadOptionEnumStringValues Enumerates the set of values in String for SaveSqlTuningSetAsDetailsLoadOptionEnum +func GetSaveSqlTuningSetAsDetailsLoadOptionEnumStringValues() []string { + return []string{ + "INSERT", + "UPDATE", + "MERGE", + } +} + +// GetMappingSaveSqlTuningSetAsDetailsLoadOptionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSaveSqlTuningSetAsDetailsLoadOptionEnum(val string) (SaveSqlTuningSetAsDetailsLoadOptionEnum, bool) { + enum, ok := mappingSaveSqlTuningSetAsDetailsLoadOptionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SaveSqlTuningSetAsDetailsUpdateOptionEnum Enum with underlying type: string +type SaveSqlTuningSetAsDetailsUpdateOptionEnum string + +// Set of constants representing the allowable values for SaveSqlTuningSetAsDetailsUpdateOptionEnum +const ( + SaveSqlTuningSetAsDetailsUpdateOptionReplace SaveSqlTuningSetAsDetailsUpdateOptionEnum = "REPLACE" + SaveSqlTuningSetAsDetailsUpdateOptionAccumulate SaveSqlTuningSetAsDetailsUpdateOptionEnum = "ACCUMULATE" +) + +var mappingSaveSqlTuningSetAsDetailsUpdateOptionEnum = map[string]SaveSqlTuningSetAsDetailsUpdateOptionEnum{ + "REPLACE": SaveSqlTuningSetAsDetailsUpdateOptionReplace, + "ACCUMULATE": SaveSqlTuningSetAsDetailsUpdateOptionAccumulate, +} + +var mappingSaveSqlTuningSetAsDetailsUpdateOptionEnumLowerCase = map[string]SaveSqlTuningSetAsDetailsUpdateOptionEnum{ + "replace": SaveSqlTuningSetAsDetailsUpdateOptionReplace, + "accumulate": SaveSqlTuningSetAsDetailsUpdateOptionAccumulate, +} + +// GetSaveSqlTuningSetAsDetailsUpdateOptionEnumValues Enumerates the set of values for SaveSqlTuningSetAsDetailsUpdateOptionEnum +func GetSaveSqlTuningSetAsDetailsUpdateOptionEnumValues() []SaveSqlTuningSetAsDetailsUpdateOptionEnum { + values := make([]SaveSqlTuningSetAsDetailsUpdateOptionEnum, 0) + for _, v := range mappingSaveSqlTuningSetAsDetailsUpdateOptionEnum { + values = append(values, v) + } + return values +} + +// GetSaveSqlTuningSetAsDetailsUpdateOptionEnumStringValues Enumerates the set of values in String for SaveSqlTuningSetAsDetailsUpdateOptionEnum +func GetSaveSqlTuningSetAsDetailsUpdateOptionEnumStringValues() []string { + return []string{ + "REPLACE", + "ACCUMULATE", + } +} + +// GetMappingSaveSqlTuningSetAsDetailsUpdateOptionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSaveSqlTuningSetAsDetailsUpdateOptionEnum(val string) (SaveSqlTuningSetAsDetailsUpdateOptionEnum, bool) { + enum, ok := mappingSaveSqlTuningSetAsDetailsUpdateOptionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SaveSqlTuningSetAsDetailsUpdateConditionEnum Enum with underlying type: string +type SaveSqlTuningSetAsDetailsUpdateConditionEnum string + +// Set of constants representing the allowable values for SaveSqlTuningSetAsDetailsUpdateConditionEnum +const ( + SaveSqlTuningSetAsDetailsUpdateConditionOld SaveSqlTuningSetAsDetailsUpdateConditionEnum = "OLD" + SaveSqlTuningSetAsDetailsUpdateConditionNew SaveSqlTuningSetAsDetailsUpdateConditionEnum = "NEW" +) + +var mappingSaveSqlTuningSetAsDetailsUpdateConditionEnum = map[string]SaveSqlTuningSetAsDetailsUpdateConditionEnum{ + "OLD": SaveSqlTuningSetAsDetailsUpdateConditionOld, + "NEW": SaveSqlTuningSetAsDetailsUpdateConditionNew, +} + +var mappingSaveSqlTuningSetAsDetailsUpdateConditionEnumLowerCase = map[string]SaveSqlTuningSetAsDetailsUpdateConditionEnum{ + "old": SaveSqlTuningSetAsDetailsUpdateConditionOld, + "new": SaveSqlTuningSetAsDetailsUpdateConditionNew, +} + +// GetSaveSqlTuningSetAsDetailsUpdateConditionEnumValues Enumerates the set of values for SaveSqlTuningSetAsDetailsUpdateConditionEnum +func GetSaveSqlTuningSetAsDetailsUpdateConditionEnumValues() []SaveSqlTuningSetAsDetailsUpdateConditionEnum { + values := make([]SaveSqlTuningSetAsDetailsUpdateConditionEnum, 0) + for _, v := range mappingSaveSqlTuningSetAsDetailsUpdateConditionEnum { + values = append(values, v) + } + return values +} + +// GetSaveSqlTuningSetAsDetailsUpdateConditionEnumStringValues Enumerates the set of values in String for SaveSqlTuningSetAsDetailsUpdateConditionEnum +func GetSaveSqlTuningSetAsDetailsUpdateConditionEnumStringValues() []string { + return []string{ + "OLD", + "NEW", + } +} + +// GetMappingSaveSqlTuningSetAsDetailsUpdateConditionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSaveSqlTuningSetAsDetailsUpdateConditionEnum(val string) (SaveSqlTuningSetAsDetailsUpdateConditionEnum, bool) { + enum, ok := mappingSaveSqlTuningSetAsDetailsUpdateConditionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/databasemanagement/save_sql_tuning_set_as_request_response.go b/databasemanagement/save_sql_tuning_set_as_request_response.go new file mode 100644 index 0000000000..29b35faa7b --- /dev/null +++ b/databasemanagement/save_sql_tuning_set_as_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// SaveSqlTuningSetAsRequest wrapper for the SaveSqlTuningSetAs operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/SaveSqlTuningSetAs.go.html to see an example of how to use SaveSqlTuningSetAsRequest. +type SaveSqlTuningSetAsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + ManagedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseId"` + + // The unique identifier of the Sql tuning set. This is not OCID. + SqlTuningSetId *int `mandatory:"true" contributesTo:"path" name:"sqlTuningSetId"` + + // The details required to save a Sql tuning set into another Sql tuning set. + SaveSqlTuningSetAsDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request SaveSqlTuningSetAsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request SaveSqlTuningSetAsRequest) 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 SaveSqlTuningSetAsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request SaveSqlTuningSetAsRequest) 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 SaveSqlTuningSetAsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SaveSqlTuningSetAsResponse wrapper for the SaveSqlTuningSetAs operation +type SaveSqlTuningSetAsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SqlTuningSetAdminActionStatus instance + SqlTuningSetAdminActionStatus `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response SaveSqlTuningSetAsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response SaveSqlTuningSetAsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/databasemanagement/sql_in_sql_tuning_set.go b/databasemanagement/sql_in_sql_tuning_set.go new file mode 100644 index 0000000000..80f9bb8a00 --- /dev/null +++ b/databasemanagement/sql_in_sql_tuning_set.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SqlInSqlTuningSet Sql information in the Sql tuning set. +type SqlInSqlTuningSet struct { + + // The unique Sql identifier. + SqlId *string `mandatory:"true" json:"sqlId"` + + // Plan hash value of the Sql statement. + PlanHashValue *int64 `mandatory:"true" json:"planHashValue"` + + // Sql text. + SqlText *string `mandatory:"false" json:"sqlText"` + + // The unique container database identifier. + ContainerDatabaseId *int64 `mandatory:"false" json:"containerDatabaseId"` + + // The schema name of the Sql. + Schema *string `mandatory:"false" json:"schema"` + + // The module of the Sql. + Module *string `mandatory:"false" json:"module"` + + // A list of the Sqls associated with the Sql tuning set. + Metrics []SqlMetrics `mandatory:"false" json:"metrics"` +} + +func (m SqlInSqlTuningSet) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SqlInSqlTuningSet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/databasemanagement/sql_metrics.go b/databasemanagement/sql_metrics.go new file mode 100644 index 0000000000..f052dc493a --- /dev/null +++ b/databasemanagement/sql_metrics.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. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SqlMetrics Metrics of the Sql in the Sql tuning set. +type SqlMetrics struct { + + // Total CPU time consumed by the Sql. + CpuTime *int64 `mandatory:"false" json:"cpuTime"` + + // Elapsed time of the Sql. + ElapsedTime *int64 `mandatory:"false" json:"elapsedTime"` + + // Sum total number of buffer gets. + BufferGets *int64 `mandatory:"false" json:"bufferGets"` + + // Sum total number of disk reads. + DiskReads *int64 `mandatory:"false" json:"diskReads"` + + // Sum total number of direct path writes. + DirectWrites *int64 `mandatory:"false" json:"directWrites"` + + // Total executions of this SQL statement. + Executions *int64 `mandatory:"false" json:"executions"` +} + +func (m SqlMetrics) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SqlMetrics) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/databasemanagement/sql_tuning_set.go b/databasemanagement/sql_tuning_set.go new file mode 100644 index 0000000000..228d312324 --- /dev/null +++ b/databasemanagement/sql_tuning_set.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SqlTuningSet Details of the Sql tuning set. +type SqlTuningSet struct { + + // The owner of the Sql tuning set. + Owner *string `mandatory:"true" json:"owner"` + + // The name of the Sql tuning set. + Name *string `mandatory:"true" json:"name"` + + // The unique Sql tuning set identifier. + Id *int `mandatory:"false" json:"id"` + + // Number of statements in the Sql tuning set + StatementCount *int `mandatory:"false" json:"statementCount"` + + // The created time of the Sql tuning set. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The description of the Sql tuning set. + Description *string `mandatory:"false" json:"description"` + + // Last modified time of the Sql tuning set. + TimeLastModified *common.SDKTime `mandatory:"false" json:"timeLastModified"` + + // Current status of the Sql tuning set. + Status SqlTuningSetStatusTypesEnum `mandatory:"false" json:"status,omitempty"` + + // Name of the Sql tuning set scheduler job. + ScheduledJobName *string `mandatory:"false" json:"scheduledJobName"` + + // Latest execution error of the plsql that was submitted as a scheduler job. + ErrorMessage *string `mandatory:"false" json:"errorMessage"` + + // In OCI database management, there is a limit to fetch only 2000 rows. + // This flag indicates whether all Sql statements of this Sql tuning set matching the filter criteria are fetched or not. + // Possible values are 'Yes' or 'No' + // - Yes - All Sql statements matching the filter criteria are fetched. + // - No - There are more Sql statements matching the fitler criteria. + // User should fine tune the filter criteria to narrow down the result set. + AllSqlStatementsFetched *string `mandatory:"false" json:"allSqlStatementsFetched"` + + // A list of the Sqls associated with the Sql tuning set. + SqlList []SqlInSqlTuningSet `mandatory:"false" json:"sqlList"` +} + +func (m SqlTuningSet) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SqlTuningSet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingSqlTuningSetStatusTypesEnum(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(GetSqlTuningSetStatusTypesEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/databasemanagement/sql_tuning_set_admin_action_status.go b/databasemanagement/sql_tuning_set_admin_action_status.go new file mode 100644 index 0000000000..c232a04548 --- /dev/null +++ b/databasemanagement/sql_tuning_set_admin_action_status.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. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SqlTuningSetAdminActionStatus The status of a Sql tuning set admin action. +type SqlTuningSetAdminActionStatus struct { + + // The status of a Sql tuning set admin action. + Status SqlTuningSetAdminActionStatusStatusEnum `mandatory:"true" json:"status"` + + // The success message of the Sql tuning set admin action. The success message is "null" if the admin action is non successful. + SuccessMessage *string `mandatory:"false" json:"successMessage"` + + // The error code that denotes failure if the Sql tuning set admin action is not successful. The error code is "null" if the admin action is successful. + ErrorCode *int `mandatory:"false" json:"errorCode"` + + // The error message that indicates the reason for failure if the Sql tuning set admin action is not successful. The error message is "null" if the admin action is successful. + ErrorMessage *string `mandatory:"false" json:"errorMessage"` + + // Flag to indicate whether to create the Sql tuning set or just display the plsql used for the selected user action. + ShowSqlOnly *int `mandatory:"false" json:"showSqlOnly"` + + // When showSqlOnly is set to 1, this attribute displays the plsql generated for the selected user action. + // When showSqlOnly is set to 0, this attribute will not be returned. + SqlStatement *string `mandatory:"false" json:"sqlStatement"` +} + +func (m SqlTuningSetAdminActionStatus) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SqlTuningSetAdminActionStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSqlTuningSetAdminActionStatusStatusEnum(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(GetSqlTuningSetAdminActionStatusStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SqlTuningSetAdminActionStatusStatusEnum Enum with underlying type: string +type SqlTuningSetAdminActionStatusStatusEnum string + +// Set of constants representing the allowable values for SqlTuningSetAdminActionStatusStatusEnum +const ( + SqlTuningSetAdminActionStatusStatusSucceeded SqlTuningSetAdminActionStatusStatusEnum = "SUCCEEDED" + SqlTuningSetAdminActionStatusStatusFailed SqlTuningSetAdminActionStatusStatusEnum = "FAILED" +) + +var mappingSqlTuningSetAdminActionStatusStatusEnum = map[string]SqlTuningSetAdminActionStatusStatusEnum{ + "SUCCEEDED": SqlTuningSetAdminActionStatusStatusSucceeded, + "FAILED": SqlTuningSetAdminActionStatusStatusFailed, +} + +var mappingSqlTuningSetAdminActionStatusStatusEnumLowerCase = map[string]SqlTuningSetAdminActionStatusStatusEnum{ + "succeeded": SqlTuningSetAdminActionStatusStatusSucceeded, + "failed": SqlTuningSetAdminActionStatusStatusFailed, +} + +// GetSqlTuningSetAdminActionStatusStatusEnumValues Enumerates the set of values for SqlTuningSetAdminActionStatusStatusEnum +func GetSqlTuningSetAdminActionStatusStatusEnumValues() []SqlTuningSetAdminActionStatusStatusEnum { + values := make([]SqlTuningSetAdminActionStatusStatusEnum, 0) + for _, v := range mappingSqlTuningSetAdminActionStatusStatusEnum { + values = append(values, v) + } + return values +} + +// GetSqlTuningSetAdminActionStatusStatusEnumStringValues Enumerates the set of values in String for SqlTuningSetAdminActionStatusStatusEnum +func GetSqlTuningSetAdminActionStatusStatusEnumStringValues() []string { + return []string{ + "SUCCEEDED", + "FAILED", + } +} + +// GetMappingSqlTuningSetAdminActionStatusStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSqlTuningSetAdminActionStatusStatusEnum(val string) (SqlTuningSetAdminActionStatusStatusEnum, bool) { + enum, ok := mappingSqlTuningSetAdminActionStatusStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/databasemanagement/sql_tuning_set_admin_credential_details.go b/databasemanagement/sql_tuning_set_admin_credential_details.go new file mode 100644 index 0000000000..0d6fad5f8a --- /dev/null +++ b/databasemanagement/sql_tuning_set_admin_credential_details.go @@ -0,0 +1,190 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SqlTuningSetAdminCredentialDetails The credential to connect to the database to perform Sql tuning set administration tasks. +type SqlTuningSetAdminCredentialDetails interface { + + // The user to connect to the database. + GetUsername() *string + + // The role of the database user. + GetRole() SqlTuningSetAdminCredentialDetailsRoleEnum +} + +type sqltuningsetadmincredentialdetails struct { + JsonData []byte + Username *string `mandatory:"true" json:"username"` + Role SqlTuningSetAdminCredentialDetailsRoleEnum `mandatory:"true" json:"role"` + SqlTuningSetAdminCredentialType string `json:"sqlTuningSetAdminCredentialType"` +} + +// UnmarshalJSON unmarshals json +func (m *sqltuningsetadmincredentialdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalersqltuningsetadmincredentialdetails sqltuningsetadmincredentialdetails + s := struct { + Model Unmarshalersqltuningsetadmincredentialdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Username = s.Model.Username + m.Role = s.Model.Role + m.SqlTuningSetAdminCredentialType = s.Model.SqlTuningSetAdminCredentialType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *sqltuningsetadmincredentialdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.SqlTuningSetAdminCredentialType { + case "PASSWORD": + mm := SqlTuningSetAdminPasswordCredentialDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "SECRET": + mm := SqlTuningSetAdminSecretCredentialDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for SqlTuningSetAdminCredentialDetails: %s.", m.SqlTuningSetAdminCredentialType) + return *m, nil + } +} + +// GetUsername returns Username +func (m sqltuningsetadmincredentialdetails) GetUsername() *string { + return m.Username +} + +// GetRole returns Role +func (m sqltuningsetadmincredentialdetails) GetRole() SqlTuningSetAdminCredentialDetailsRoleEnum { + return m.Role +} + +func (m sqltuningsetadmincredentialdetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m sqltuningsetadmincredentialdetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSqlTuningSetAdminCredentialDetailsRoleEnum(string(m.Role)); !ok && m.Role != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Role: %s. Supported values are: %s.", m.Role, strings.Join(GetSqlTuningSetAdminCredentialDetailsRoleEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SqlTuningSetAdminCredentialDetailsRoleEnum Enum with underlying type: string +type SqlTuningSetAdminCredentialDetailsRoleEnum string + +// Set of constants representing the allowable values for SqlTuningSetAdminCredentialDetailsRoleEnum +const ( + SqlTuningSetAdminCredentialDetailsRoleNormal SqlTuningSetAdminCredentialDetailsRoleEnum = "NORMAL" + SqlTuningSetAdminCredentialDetailsRoleSysdba SqlTuningSetAdminCredentialDetailsRoleEnum = "SYSDBA" +) + +var mappingSqlTuningSetAdminCredentialDetailsRoleEnum = map[string]SqlTuningSetAdminCredentialDetailsRoleEnum{ + "NORMAL": SqlTuningSetAdminCredentialDetailsRoleNormal, + "SYSDBA": SqlTuningSetAdminCredentialDetailsRoleSysdba, +} + +var mappingSqlTuningSetAdminCredentialDetailsRoleEnumLowerCase = map[string]SqlTuningSetAdminCredentialDetailsRoleEnum{ + "normal": SqlTuningSetAdminCredentialDetailsRoleNormal, + "sysdba": SqlTuningSetAdminCredentialDetailsRoleSysdba, +} + +// GetSqlTuningSetAdminCredentialDetailsRoleEnumValues Enumerates the set of values for SqlTuningSetAdminCredentialDetailsRoleEnum +func GetSqlTuningSetAdminCredentialDetailsRoleEnumValues() []SqlTuningSetAdminCredentialDetailsRoleEnum { + values := make([]SqlTuningSetAdminCredentialDetailsRoleEnum, 0) + for _, v := range mappingSqlTuningSetAdminCredentialDetailsRoleEnum { + values = append(values, v) + } + return values +} + +// GetSqlTuningSetAdminCredentialDetailsRoleEnumStringValues Enumerates the set of values in String for SqlTuningSetAdminCredentialDetailsRoleEnum +func GetSqlTuningSetAdminCredentialDetailsRoleEnumStringValues() []string { + return []string{ + "NORMAL", + "SYSDBA", + } +} + +// GetMappingSqlTuningSetAdminCredentialDetailsRoleEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSqlTuningSetAdminCredentialDetailsRoleEnum(val string) (SqlTuningSetAdminCredentialDetailsRoleEnum, bool) { + enum, ok := mappingSqlTuningSetAdminCredentialDetailsRoleEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum Enum with underlying type: string +type SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum string + +// Set of constants representing the allowable values for SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum +const ( + SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeSecret SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum = "SECRET" + SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypePassword SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum = "PASSWORD" +) + +var mappingSqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum = map[string]SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum{ + "SECRET": SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeSecret, + "PASSWORD": SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypePassword, +} + +var mappingSqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnumLowerCase = map[string]SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum{ + "secret": SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeSecret, + "password": SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypePassword, +} + +// GetSqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnumValues Enumerates the set of values for SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum +func GetSqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnumValues() []SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum { + values := make([]SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum, 0) + for _, v := range mappingSqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum { + values = append(values, v) + } + return values +} + +// GetSqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnumStringValues Enumerates the set of values in String for SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum +func GetSqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnumStringValues() []string { + return []string{ + "SECRET", + "PASSWORD", + } +} + +// GetMappingSqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum(val string) (SqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnum, bool) { + enum, ok := mappingSqlTuningSetAdminCredentialDetailsSqlTuningSetAdminCredentialTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/databasemanagement/sql_tuning_set_admin_password_credential_details.go b/databasemanagement/sql_tuning_set_admin_password_credential_details.go new file mode 100644 index 0000000000..6ce5834663 --- /dev/null +++ b/databasemanagement/sql_tuning_set_admin_password_credential_details.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SqlTuningSetAdminPasswordCredentialDetails User provides a password to be used to connect to the database. +type SqlTuningSetAdminPasswordCredentialDetails struct { + + // The user to connect to the database. + Username *string `mandatory:"true" json:"username"` + + // The database user's password encoded using BASE64 scheme. + Password *string `mandatory:"true" json:"password"` + + // The role of the database user. + Role SqlTuningSetAdminCredentialDetailsRoleEnum `mandatory:"true" json:"role"` +} + +//GetUsername returns Username +func (m SqlTuningSetAdminPasswordCredentialDetails) GetUsername() *string { + return m.Username +} + +//GetRole returns Role +func (m SqlTuningSetAdminPasswordCredentialDetails) GetRole() SqlTuningSetAdminCredentialDetailsRoleEnum { + return m.Role +} + +func (m SqlTuningSetAdminPasswordCredentialDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SqlTuningSetAdminPasswordCredentialDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingSqlTuningSetAdminCredentialDetailsRoleEnum(string(m.Role)); !ok && m.Role != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Role: %s. Supported values are: %s.", m.Role, strings.Join(GetSqlTuningSetAdminCredentialDetailsRoleEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m SqlTuningSetAdminPasswordCredentialDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeSqlTuningSetAdminPasswordCredentialDetails SqlTuningSetAdminPasswordCredentialDetails + s := struct { + DiscriminatorParam string `json:"sqlTuningSetAdminCredentialType"` + MarshalTypeSqlTuningSetAdminPasswordCredentialDetails + }{ + "PASSWORD", + (MarshalTypeSqlTuningSetAdminPasswordCredentialDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/databasemanagement/sql_tuning_set_admin_secret_credential_details.go b/databasemanagement/sql_tuning_set_admin_secret_credential_details.go new file mode 100644 index 0000000000..072c240ff1 --- /dev/null +++ b/databasemanagement/sql_tuning_set_admin_secret_credential_details.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SqlTuningSetAdminSecretCredentialDetails User provides a secret OCID, which will be used to retrieve the password to connect to the database. +type SqlTuningSetAdminSecretCredentialDetails struct { + + // The user to connect to the database. + Username *string `mandatory:"true" json:"username"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Secret + // where the database password is stored. + SecretId *string `mandatory:"true" json:"secretId"` + + // The role of the database user. + Role SqlTuningSetAdminCredentialDetailsRoleEnum `mandatory:"true" json:"role"` +} + +//GetUsername returns Username +func (m SqlTuningSetAdminSecretCredentialDetails) GetUsername() *string { + return m.Username +} + +//GetRole returns Role +func (m SqlTuningSetAdminSecretCredentialDetails) GetRole() SqlTuningSetAdminCredentialDetailsRoleEnum { + return m.Role +} + +func (m SqlTuningSetAdminSecretCredentialDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SqlTuningSetAdminSecretCredentialDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingSqlTuningSetAdminCredentialDetailsRoleEnum(string(m.Role)); !ok && m.Role != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Role: %s. Supported values are: %s.", m.Role, strings.Join(GetSqlTuningSetAdminCredentialDetailsRoleEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m SqlTuningSetAdminSecretCredentialDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeSqlTuningSetAdminSecretCredentialDetails SqlTuningSetAdminSecretCredentialDetails + s := struct { + DiscriminatorParam string `json:"sqlTuningSetAdminCredentialType"` + MarshalTypeSqlTuningSetAdminSecretCredentialDetails + }{ + "SECRET", + (MarshalTypeSqlTuningSetAdminSecretCredentialDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/databasemanagement/sql_tuning_set_status_types.go b/databasemanagement/sql_tuning_set_status_types.go new file mode 100644 index 0000000000..4d2736dbaa --- /dev/null +++ b/databasemanagement/sql_tuning_set_status_types.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "strings" +) + +// SqlTuningSetStatusTypesEnum Enum with underlying type: string +type SqlTuningSetStatusTypesEnum string + +// Set of constants representing the allowable values for SqlTuningSetStatusTypesEnum +const ( + SqlTuningSetStatusTypesDisabled SqlTuningSetStatusTypesEnum = "DISABLED" + SqlTuningSetStatusTypesRetryScheduled SqlTuningSetStatusTypesEnum = "RETRY_SCHEDULED" + SqlTuningSetStatusTypesScheduled SqlTuningSetStatusTypesEnum = "SCHEDULED" + SqlTuningSetStatusTypesBlocked SqlTuningSetStatusTypesEnum = "BLOCKED" + SqlTuningSetStatusTypesRunning SqlTuningSetStatusTypesEnum = "RUNNING" + SqlTuningSetStatusTypesCompleted SqlTuningSetStatusTypesEnum = "COMPLETED" + SqlTuningSetStatusTypesBroken SqlTuningSetStatusTypesEnum = "BROKEN" + SqlTuningSetStatusTypesFailed SqlTuningSetStatusTypesEnum = "FAILED" + SqlTuningSetStatusTypesRemote SqlTuningSetStatusTypesEnum = "REMOTE" + SqlTuningSetStatusTypesResourceUnavailable SqlTuningSetStatusTypesEnum = "RESOURCE_UNAVAILABLE" + SqlTuningSetStatusTypesSucceeded SqlTuningSetStatusTypesEnum = "SUCCEEDED" + SqlTuningSetStatusTypesChainStalled SqlTuningSetStatusTypesEnum = "CHAIN_STALLED" +) + +var mappingSqlTuningSetStatusTypesEnum = map[string]SqlTuningSetStatusTypesEnum{ + "DISABLED": SqlTuningSetStatusTypesDisabled, + "RETRY_SCHEDULED": SqlTuningSetStatusTypesRetryScheduled, + "SCHEDULED": SqlTuningSetStatusTypesScheduled, + "BLOCKED": SqlTuningSetStatusTypesBlocked, + "RUNNING": SqlTuningSetStatusTypesRunning, + "COMPLETED": SqlTuningSetStatusTypesCompleted, + "BROKEN": SqlTuningSetStatusTypesBroken, + "FAILED": SqlTuningSetStatusTypesFailed, + "REMOTE": SqlTuningSetStatusTypesRemote, + "RESOURCE_UNAVAILABLE": SqlTuningSetStatusTypesResourceUnavailable, + "SUCCEEDED": SqlTuningSetStatusTypesSucceeded, + "CHAIN_STALLED": SqlTuningSetStatusTypesChainStalled, +} + +var mappingSqlTuningSetStatusTypesEnumLowerCase = map[string]SqlTuningSetStatusTypesEnum{ + "disabled": SqlTuningSetStatusTypesDisabled, + "retry_scheduled": SqlTuningSetStatusTypesRetryScheduled, + "scheduled": SqlTuningSetStatusTypesScheduled, + "blocked": SqlTuningSetStatusTypesBlocked, + "running": SqlTuningSetStatusTypesRunning, + "completed": SqlTuningSetStatusTypesCompleted, + "broken": SqlTuningSetStatusTypesBroken, + "failed": SqlTuningSetStatusTypesFailed, + "remote": SqlTuningSetStatusTypesRemote, + "resource_unavailable": SqlTuningSetStatusTypesResourceUnavailable, + "succeeded": SqlTuningSetStatusTypesSucceeded, + "chain_stalled": SqlTuningSetStatusTypesChainStalled, +} + +// GetSqlTuningSetStatusTypesEnumValues Enumerates the set of values for SqlTuningSetStatusTypesEnum +func GetSqlTuningSetStatusTypesEnumValues() []SqlTuningSetStatusTypesEnum { + values := make([]SqlTuningSetStatusTypesEnum, 0) + for _, v := range mappingSqlTuningSetStatusTypesEnum { + values = append(values, v) + } + return values +} + +// GetSqlTuningSetStatusTypesEnumStringValues Enumerates the set of values in String for SqlTuningSetStatusTypesEnum +func GetSqlTuningSetStatusTypesEnumStringValues() []string { + return []string{ + "DISABLED", + "RETRY_SCHEDULED", + "SCHEDULED", + "BLOCKED", + "RUNNING", + "COMPLETED", + "BROKEN", + "FAILED", + "REMOTE", + "RESOURCE_UNAVAILABLE", + "SUCCEEDED", + "CHAIN_STALLED", + } +} + +// GetMappingSqlTuningSetStatusTypesEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSqlTuningSetStatusTypesEnum(val string) (SqlTuningSetStatusTypesEnum, bool) { + enum, ok := mappingSqlTuningSetStatusTypesEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/databasemanagement/sql_tuning_set_summary.go b/databasemanagement/sql_tuning_set_summary.go index 3e094f9bf5..108a02b756 100644 --- a/databasemanagement/sql_tuning_set_summary.go +++ b/databasemanagement/sql_tuning_set_summary.go @@ -31,6 +31,24 @@ type SqlTuningSetSummary struct { // The number of SQL statements in the SQL tuning set. StatementCounts *int `mandatory:"false" json:"statementCounts"` + + // The unique Sql tuning set identifier. This is not OCID. + Id *int `mandatory:"false" json:"id"` + + // The created time of the Sql tuning set. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Last modified time of the Sql tuning set. + TimeLastModified *common.SDKTime `mandatory:"false" json:"timeLastModified"` + + // Current status of the Sql tuning set. + Status SqlTuningSetStatusTypesEnum `mandatory:"false" json:"status,omitempty"` + + // Name of the Sql tuning set scheduler job. + ScheduledJobName *string `mandatory:"false" json:"scheduledJobName"` + + // Latest execution error of the plsql that was submitted as a scheduler job. + ErrorMessage *string `mandatory:"false" json:"errorMessage"` } func (m SqlTuningSetSummary) String() string { @@ -43,6 +61,9 @@ func (m SqlTuningSetSummary) String() string { func (m SqlTuningSetSummary) ValidateEnumValue() (bool, error) { errMessage := []string{} + if _, ok := GetMappingSqlTuningSetStatusTypesEnum(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(GetSqlTuningSetStatusTypesEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/databasemanagement/update_external_db_system_macs_connector_details.go b/databasemanagement/update_external_db_system_macs_connector_details.go index 6c4a322925..69311fd221 100644 --- a/databasemanagement/update_external_db_system_macs_connector_details.go +++ b/databasemanagement/update_external_db_system_macs_connector_details.go @@ -21,7 +21,7 @@ import ( // UpdateExternalDbSystemMacsConnectorDetails The details for updating the external Management Agent Cloud Service (MACS) (https://docs.cloud.oracle.com/iaas/management-agents/index.html) // connector used to connect to an external DB system component. type UpdateExternalDbSystemMacsConnectorDetails struct { - ConnectionInfo ExternalDbSystemConnectionInfo `mandatory:"true" json:"connectionInfo"` + ConnectionInfo ExternalDbSystemConnectionInfo `mandatory:"false" json:"connectionInfo"` } func (m UpdateExternalDbSystemMacsConnectorDetails) String() string { diff --git a/databasemanagement/validate_basic_filter_details.go b/databasemanagement/validate_basic_filter_details.go new file mode 100644 index 0000000000..896f023a5b --- /dev/null +++ b/databasemanagement/validate_basic_filter_details.go @@ -0,0 +1,84 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Database Management API +// +// Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics +// for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and +// running a SQL job on a Managed Database or Managed Database Group. +// + +package databasemanagement + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ValidateBasicFilterDetails Validate the basic filter criteria provided by the user. +type ValidateBasicFilterDetails struct { + CredentialDetails SqlTuningSetAdminCredentialDetails `mandatory:"true" json:"credentialDetails"` + + // The owner of the Sql tuning set. + Owner *string `mandatory:"true" json:"owner"` + + // The name of the Sql tuning set. + Name *string `mandatory:"true" json:"name"` + + // Specifies the Sql predicate to filter the Sql from the Sql tuning set defined on attributes of the SQLSET_ROW. + // User could use any combination of the following columns with appropriate values as Sql predicate + // Refer to the documentation https://docs.oracle.com/en/database/oracle/oracle-database/18/arpls/DBMS_SQLTUNE.html#GUID-1F4AFB03-7B29-46FC-B3F2-CB01EC36326C + BasicFilter *string `mandatory:"true" json:"basicFilter"` +} + +func (m ValidateBasicFilterDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ValidateBasicFilterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *ValidateBasicFilterDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + CredentialDetails sqltuningsetadmincredentialdetails `json:"credentialDetails"` + Owner *string `json:"owner"` + Name *string `json:"name"` + BasicFilter *string `json:"basicFilter"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + nn, e = model.CredentialDetails.UnmarshalPolymorphicJSON(model.CredentialDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.CredentialDetails = nn.(SqlTuningSetAdminCredentialDetails) + } else { + m.CredentialDetails = nil + } + + m.Owner = model.Owner + + m.Name = model.Name + + m.BasicFilter = model.BasicFilter + + return +} diff --git a/databasemanagement/validate_basic_filter_request_response.go b/databasemanagement/validate_basic_filter_request_response.go new file mode 100644 index 0000000000..d3d21dfa5c --- /dev/null +++ b/databasemanagement/validate_basic_filter_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 databasemanagement + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ValidateBasicFilterRequest wrapper for the ValidateBasicFilter operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/databasemanagement/ValidateBasicFilter.go.html to see an example of how to use ValidateBasicFilterRequest. +type ValidateBasicFilterRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + ManagedDatabaseId *string `mandatory:"true" contributesTo:"path" name:"managedDatabaseId"` + + // The unique identifier of the Sql tuning set. This is not OCID. + SqlTuningSetId *int `mandatory:"true" contributesTo:"path" name:"sqlTuningSetId"` + + // Validate the basic filter criteria provided by the user. + ValidateBasicFilterDetails `contributesTo:"body"` + + // The client request ID for tracing. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ValidateBasicFilterRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ValidateBasicFilterRequest) 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 ValidateBasicFilterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ValidateBasicFilterRequest) 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 ValidateBasicFilterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ValidateBasicFilterResponse wrapper for the ValidateBasicFilter operation +type ValidateBasicFilterResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SqlTuningSetAdminActionStatus instance + SqlTuningSetAdminActionStatus `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ValidateBasicFilterResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ValidateBasicFilterResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/databasemanagement/work_request_resource_action_type.go b/databasemanagement/work_request_resource_action_type.go index c586e4273a..fe981cfe33 100644 --- a/databasemanagement/work_request_resource_action_type.go +++ b/databasemanagement/work_request_resource_action_type.go @@ -26,6 +26,7 @@ const ( WorkRequestResourceActionTypeInProgress WorkRequestResourceActionTypeEnum = "IN_PROGRESS" WorkRequestResourceActionTypeRelated WorkRequestResourceActionTypeEnum = "RELATED" WorkRequestResourceActionTypeFailed WorkRequestResourceActionTypeEnum = "FAILED" + WorkRequestResourceActionTypeAccepted WorkRequestResourceActionTypeEnum = "ACCEPTED" WorkRequestResourceActionTypeEnabled WorkRequestResourceActionTypeEnum = "ENABLED" WorkRequestResourceActionTypeDisabled WorkRequestResourceActionTypeEnum = "DISABLED" ) @@ -37,6 +38,7 @@ var mappingWorkRequestResourceActionTypeEnum = map[string]WorkRequestResourceAct "IN_PROGRESS": WorkRequestResourceActionTypeInProgress, "RELATED": WorkRequestResourceActionTypeRelated, "FAILED": WorkRequestResourceActionTypeFailed, + "ACCEPTED": WorkRequestResourceActionTypeAccepted, "ENABLED": WorkRequestResourceActionTypeEnabled, "DISABLED": WorkRequestResourceActionTypeDisabled, } @@ -48,6 +50,7 @@ var mappingWorkRequestResourceActionTypeEnumLowerCase = map[string]WorkRequestRe "in_progress": WorkRequestResourceActionTypeInProgress, "related": WorkRequestResourceActionTypeRelated, "failed": WorkRequestResourceActionTypeFailed, + "accepted": WorkRequestResourceActionTypeAccepted, "enabled": WorkRequestResourceActionTypeEnabled, "disabled": WorkRequestResourceActionTypeDisabled, } @@ -70,6 +73,7 @@ func GetWorkRequestResourceActionTypeEnumStringValues() []string { "IN_PROGRESS", "RELATED", "FAILED", + "ACCEPTED", "ENABLED", "DISABLED", } diff --git a/osmanagementhub/action_type.go b/osmanagementhub/action_type.go index bcee180378..01340e8c0b 100644 --- a/osmanagementhub/action_type.go +++ b/osmanagementhub/action_type.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/advisory_severity.go b/osmanagementhub/advisory_severity.go index 9701240ead..ed90c7270b 100644 --- a/osmanagementhub/advisory_severity.go +++ b/osmanagementhub/advisory_severity.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/arch_type.go b/osmanagementhub/arch_type.go index 0e5ebbf5c2..17cbfd0962 100644 --- a/osmanagementhub/arch_type.go +++ b/osmanagementhub/arch_type.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/attach_managed_instances_to_lifecycle_stage_details.go b/osmanagementhub/attach_managed_instances_to_lifecycle_stage_details.go index 402a84ad66..d974f5069d 100644 --- a/osmanagementhub/attach_managed_instances_to_lifecycle_stage_details.go +++ b/osmanagementhub/attach_managed_instances_to_lifecycle_stage_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/attach_managed_instances_to_managed_instance_group_details.go b/osmanagementhub/attach_managed_instances_to_managed_instance_group_details.go index 0c32e47211..4d64d36fcf 100644 --- a/osmanagementhub/attach_managed_instances_to_managed_instance_group_details.go +++ b/osmanagementhub/attach_managed_instances_to_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/attach_software_sources_to_managed_instance_details.go b/osmanagementhub/attach_software_sources_to_managed_instance_details.go index a9c87b9de8..9013e4bcf8 100644 --- a/osmanagementhub/attach_software_sources_to_managed_instance_details.go +++ b/osmanagementhub/attach_software_sources_to_managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/attach_software_sources_to_managed_instance_group_details.go b/osmanagementhub/attach_software_sources_to_managed_instance_group_details.go index 968e431228..a9d4c86350 100644 --- a/osmanagementhub/attach_software_sources_to_managed_instance_group_details.go +++ b/osmanagementhub/attach_software_sources_to_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/availability.go b/osmanagementhub/availability.go index a8eedf5376..daff88ada7 100644 --- a/osmanagementhub/availability.go +++ b/osmanagementhub/availability.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/available_package_collection.go b/osmanagementhub/available_package_collection.go index a8848738ae..aa2283e209 100644 --- a/osmanagementhub/available_package_collection.go +++ b/osmanagementhub/available_package_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/available_package_summary.go b/osmanagementhub/available_package_summary.go index de14565103..d74edb3d7f 100644 --- a/osmanagementhub/available_package_summary.go +++ b/osmanagementhub/available_package_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/available_software_source_collection.go b/osmanagementhub/available_software_source_collection.go index 4dbcf49397..1625aa5bce 100644 --- a/osmanagementhub/available_software_source_collection.go +++ b/osmanagementhub/available_software_source_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/available_software_source_summary.go b/osmanagementhub/available_software_source_summary.go index c9b18a03c6..d6076bb6c0 100644 --- a/osmanagementhub/available_software_source_summary.go +++ b/osmanagementhub/available_software_source_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/change_availability_of_software_sources_details.go b/osmanagementhub/change_availability_of_software_sources_details.go index 332d0bf7af..2c4cce13b8 100644 --- a/osmanagementhub/change_availability_of_software_sources_details.go +++ b/osmanagementhub/change_availability_of_software_sources_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/checksum_type.go b/osmanagementhub/checksum_type.go index b81230edfc..3ee899795f 100644 --- a/osmanagementhub/checksum_type.go +++ b/osmanagementhub/checksum_type.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/classification_types.go b/osmanagementhub/classification_types.go index f2e7cbc6aa..651ec855f8 100644 --- a/osmanagementhub/classification_types.go +++ b/osmanagementhub/classification_types.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_custom_software_source_details.go b/osmanagementhub/create_custom_software_source_details.go index aa6ffe4342..6c584947f8 100644 --- a/osmanagementhub/create_custom_software_source_details.go +++ b/osmanagementhub/create_custom_software_source_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_entitlement_details.go b/osmanagementhub/create_entitlement_details.go index 4c956b2209..4d39b75ab0 100644 --- a/osmanagementhub/create_entitlement_details.go +++ b/osmanagementhub/create_entitlement_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_group_profile_details.go b/osmanagementhub/create_group_profile_details.go index ab9ae12ed8..32eac0375f 100644 --- a/osmanagementhub/create_group_profile_details.go +++ b/osmanagementhub/create_group_profile_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_lifecycle_environment_details.go b/osmanagementhub/create_lifecycle_environment_details.go index e7316afb31..007dcb1497 100644 --- a/osmanagementhub/create_lifecycle_environment_details.go +++ b/osmanagementhub/create_lifecycle_environment_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_lifecycle_profile_details.go b/osmanagementhub/create_lifecycle_profile_details.go index 1e02491f52..2588c22c46 100644 --- a/osmanagementhub/create_lifecycle_profile_details.go +++ b/osmanagementhub/create_lifecycle_profile_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_lifecycle_stage_details.go b/osmanagementhub/create_lifecycle_stage_details.go index 56160d1b6d..0f83a5e181 100644 --- a/osmanagementhub/create_lifecycle_stage_details.go +++ b/osmanagementhub/create_lifecycle_stage_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_managed_instance_group_details.go b/osmanagementhub/create_managed_instance_group_details.go index cea2070d02..cc08bdd742 100644 --- a/osmanagementhub/create_managed_instance_group_details.go +++ b/osmanagementhub/create_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_management_station_details.go b/osmanagementhub/create_management_station_details.go index 2cbfad829a..bda19b0756 100644 --- a/osmanagementhub/create_management_station_details.go +++ b/osmanagementhub/create_management_station_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_mirror_configuration_details.go b/osmanagementhub/create_mirror_configuration_details.go index 13ea1afb18..f3dce746e5 100644 --- a/osmanagementhub/create_mirror_configuration_details.go +++ b/osmanagementhub/create_mirror_configuration_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_profile_details.go b/osmanagementhub/create_profile_details.go index 0d3647f638..0c8d4ee34c 100644 --- a/osmanagementhub/create_profile_details.go +++ b/osmanagementhub/create_profile_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_proxy_configuration_details.go b/osmanagementhub/create_proxy_configuration_details.go index 6bef075091..47f4a7773e 100644 --- a/osmanagementhub/create_proxy_configuration_details.go +++ b/osmanagementhub/create_proxy_configuration_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_scheduled_job_details.go b/osmanagementhub/create_scheduled_job_details.go index 7bf59d84bd..1ef6710872 100644 --- a/osmanagementhub/create_scheduled_job_details.go +++ b/osmanagementhub/create_scheduled_job_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_software_source_details.go b/osmanagementhub/create_software_source_details.go index 4126558544..a48459944a 100644 --- a/osmanagementhub/create_software_source_details.go +++ b/osmanagementhub/create_software_source_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_software_source_profile_details.go b/osmanagementhub/create_software_source_profile_details.go index 0fb55c69ab..d386c849ff 100644 --- a/osmanagementhub/create_software_source_profile_details.go +++ b/osmanagementhub/create_software_source_profile_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_station_profile_details.go b/osmanagementhub/create_station_profile_details.go index a42043d5d5..b64f4806d5 100644 --- a/osmanagementhub/create_station_profile_details.go +++ b/osmanagementhub/create_station_profile_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/create_versioned_custom_software_source_details.go b/osmanagementhub/create_versioned_custom_software_source_details.go index 1801383f09..bdb6781d86 100644 --- a/osmanagementhub/create_versioned_custom_software_source_details.go +++ b/osmanagementhub/create_versioned_custom_software_source_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/custom_software_source.go b/osmanagementhub/custom_software_source.go index dea3b2d181..8cd262a300 100644 --- a/osmanagementhub/custom_software_source.go +++ b/osmanagementhub/custom_software_source.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/custom_software_source_filter.go b/osmanagementhub/custom_software_source_filter.go index 05cb4fe4f8..40035a9bc3 100644 --- a/osmanagementhub/custom_software_source_filter.go +++ b/osmanagementhub/custom_software_source_filter.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/custom_software_source_summary.go b/osmanagementhub/custom_software_source_summary.go index 8e6ee71220..ee75f1aa71 100644 --- a/osmanagementhub/custom_software_source_summary.go +++ b/osmanagementhub/custom_software_source_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/detach_managed_instances_from_lifecycle_stage_details.go b/osmanagementhub/detach_managed_instances_from_lifecycle_stage_details.go index 1199f5c9d1..a090caf41c 100644 --- a/osmanagementhub/detach_managed_instances_from_lifecycle_stage_details.go +++ b/osmanagementhub/detach_managed_instances_from_lifecycle_stage_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/detach_managed_instances_from_managed_instance_group_details.go b/osmanagementhub/detach_managed_instances_from_managed_instance_group_details.go index 534928f081..ebe255d957 100644 --- a/osmanagementhub/detach_managed_instances_from_managed_instance_group_details.go +++ b/osmanagementhub/detach_managed_instances_from_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/detach_software_sources_from_managed_instance_details.go b/osmanagementhub/detach_software_sources_from_managed_instance_details.go index 761d1e03de..564f957635 100644 --- a/osmanagementhub/detach_software_sources_from_managed_instance_details.go +++ b/osmanagementhub/detach_software_sources_from_managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/detach_software_sources_from_managed_instance_group_details.go b/osmanagementhub/detach_software_sources_from_managed_instance_group_details.go index f819d9fc2a..c23cac8b7d 100644 --- a/osmanagementhub/detach_software_sources_from_managed_instance_group_details.go +++ b/osmanagementhub/detach_software_sources_from_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/disable_module_stream_on_managed_instance_details.go b/osmanagementhub/disable_module_stream_on_managed_instance_details.go index 72d18492ed..8a1d98b0f1 100644 --- a/osmanagementhub/disable_module_stream_on_managed_instance_details.go +++ b/osmanagementhub/disable_module_stream_on_managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/disable_module_stream_on_managed_instance_group_details.go b/osmanagementhub/disable_module_stream_on_managed_instance_group_details.go index d668961ff6..f5a6a7f35d 100644 --- a/osmanagementhub/disable_module_stream_on_managed_instance_group_details.go +++ b/osmanagementhub/disable_module_stream_on_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/enable_module_stream_on_managed_instance_details.go b/osmanagementhub/enable_module_stream_on_managed_instance_details.go index 9635311596..879d7f66b4 100644 --- a/osmanagementhub/enable_module_stream_on_managed_instance_details.go +++ b/osmanagementhub/enable_module_stream_on_managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/enable_module_stream_on_managed_instance_group_details.go b/osmanagementhub/enable_module_stream_on_managed_instance_group_details.go index 4532c7e848..3a488ec18b 100644 --- a/osmanagementhub/enable_module_stream_on_managed_instance_group_details.go +++ b/osmanagementhub/enable_module_stream_on_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/entitlement_collection.go b/osmanagementhub/entitlement_collection.go index a943cb84e8..2436b9f3c3 100644 --- a/osmanagementhub/entitlement_collection.go +++ b/osmanagementhub/entitlement_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/entitlement_summary.go b/osmanagementhub/entitlement_summary.go index ea52e68ebf..6f996daa8b 100644 --- a/osmanagementhub/entitlement_summary.go +++ b/osmanagementhub/entitlement_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/erratum.go b/osmanagementhub/erratum.go index cba9bb90cf..69e2bdf62c 100644 --- a/osmanagementhub/erratum.go +++ b/osmanagementhub/erratum.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/erratum_collection.go b/osmanagementhub/erratum_collection.go index 0a73c1567e..ca4feafd72 100644 --- a/osmanagementhub/erratum_collection.go +++ b/osmanagementhub/erratum_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/erratum_summary.go b/osmanagementhub/erratum_summary.go index 67e95aaa76..3c5a331192 100644 --- a/osmanagementhub/erratum_summary.go +++ b/osmanagementhub/erratum_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/filter_type.go b/osmanagementhub/filter_type.go index 063f77d531..93bff535a6 100644 --- a/osmanagementhub/filter_type.go +++ b/osmanagementhub/filter_type.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/group_profile.go b/osmanagementhub/group_profile.go index 10846ae278..e85e6e118e 100644 --- a/osmanagementhub/group_profile.go +++ b/osmanagementhub/group_profile.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/id.go b/osmanagementhub/id.go index 8bee307498..dbe944fbfe 100644 --- a/osmanagementhub/id.go +++ b/osmanagementhub/id.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/install_module_stream_profile_on_managed_instance_details.go b/osmanagementhub/install_module_stream_profile_on_managed_instance_details.go index 6a2e8a7c6b..225fa0eb35 100644 --- a/osmanagementhub/install_module_stream_profile_on_managed_instance_details.go +++ b/osmanagementhub/install_module_stream_profile_on_managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/install_module_stream_profile_on_managed_instance_group_details.go b/osmanagementhub/install_module_stream_profile_on_managed_instance_group_details.go index 835b185a2a..2622f2178f 100644 --- a/osmanagementhub/install_module_stream_profile_on_managed_instance_group_details.go +++ b/osmanagementhub/install_module_stream_profile_on_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/install_packages_on_managed_instance_details.go b/osmanagementhub/install_packages_on_managed_instance_details.go index 956b84957f..aec79e732d 100644 --- a/osmanagementhub/install_packages_on_managed_instance_details.go +++ b/osmanagementhub/install_packages_on_managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/install_packages_on_managed_instance_group_details.go b/osmanagementhub/install_packages_on_managed_instance_group_details.go index 295835e564..dcb98bd385 100644 --- a/osmanagementhub/install_packages_on_managed_instance_group_details.go +++ b/osmanagementhub/install_packages_on_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/installed_package_collection.go b/osmanagementhub/installed_package_collection.go index b65d6e9761..a0726c35a6 100644 --- a/osmanagementhub/installed_package_collection.go +++ b/osmanagementhub/installed_package_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/installed_package_summary.go b/osmanagementhub/installed_package_summary.go index 7a3cb4ae3e..59f84f61dd 100644 --- a/osmanagementhub/installed_package_summary.go +++ b/osmanagementhub/installed_package_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/lifecycle_environment.go b/osmanagementhub/lifecycle_environment.go index b9a4dc09e7..0a71e8ecd6 100644 --- a/osmanagementhub/lifecycle_environment.go +++ b/osmanagementhub/lifecycle_environment.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/lifecycle_environment_collection.go b/osmanagementhub/lifecycle_environment_collection.go index 3c1510bbca..3e7e6e1b7c 100644 --- a/osmanagementhub/lifecycle_environment_collection.go +++ b/osmanagementhub/lifecycle_environment_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/lifecycle_environment_details.go b/osmanagementhub/lifecycle_environment_details.go index 8eeff8926d..de5e24fa33 100644 --- a/osmanagementhub/lifecycle_environment_details.go +++ b/osmanagementhub/lifecycle_environment_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/lifecycle_environment_summary.go b/osmanagementhub/lifecycle_environment_summary.go index 4d68759331..8df5b76456 100644 --- a/osmanagementhub/lifecycle_environment_summary.go +++ b/osmanagementhub/lifecycle_environment_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/lifecycle_profile.go b/osmanagementhub/lifecycle_profile.go index 5dd58af518..0105c73248 100644 --- a/osmanagementhub/lifecycle_profile.go +++ b/osmanagementhub/lifecycle_profile.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/lifecycle_stage.go b/osmanagementhub/lifecycle_stage.go index 44811df440..67e7487727 100644 --- a/osmanagementhub/lifecycle_stage.go +++ b/osmanagementhub/lifecycle_stage.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/lifecycle_stage_collection.go b/osmanagementhub/lifecycle_stage_collection.go index 350dcf3012..30839bc1ac 100644 --- a/osmanagementhub/lifecycle_stage_collection.go +++ b/osmanagementhub/lifecycle_stage_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/lifecycle_stage_details.go b/osmanagementhub/lifecycle_stage_details.go index 50c5793008..c2a908d772 100644 --- a/osmanagementhub/lifecycle_stage_details.go +++ b/osmanagementhub/lifecycle_stage_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/lifecycle_stage_summary.go b/osmanagementhub/lifecycle_stage_summary.go index 19e8e00592..6f6104b6c7 100644 --- a/osmanagementhub/lifecycle_stage_summary.go +++ b/osmanagementhub/lifecycle_stage_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/manage_module_streams_in_scheduled_job_details.go b/osmanagementhub/manage_module_streams_in_scheduled_job_details.go index e900b60032..a2e836d1e2 100644 --- a/osmanagementhub/manage_module_streams_in_scheduled_job_details.go +++ b/osmanagementhub/manage_module_streams_in_scheduled_job_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/manage_module_streams_on_managed_instance_details.go b/osmanagementhub/manage_module_streams_on_managed_instance_details.go index 11f006fc84..011f173501 100644 --- a/osmanagementhub/manage_module_streams_on_managed_instance_details.go +++ b/osmanagementhub/manage_module_streams_on_managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/manage_module_streams_on_managed_instance_group_details.go b/osmanagementhub/manage_module_streams_on_managed_instance_group_details.go index 7dec09b6cc..2fabbd4a2b 100644 --- a/osmanagementhub/manage_module_streams_on_managed_instance_group_details.go +++ b/osmanagementhub/manage_module_streams_on_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance.go b/osmanagementhub/managed_instance.go index 74dca4c27f..86f1d990c9 100644 --- a/osmanagementhub/managed_instance.go +++ b/osmanagementhub/managed_instance.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_analytic_collection.go b/osmanagementhub/managed_instance_analytic_collection.go index 51e0c8c148..66777d55a6 100644 --- a/osmanagementhub/managed_instance_analytic_collection.go +++ b/osmanagementhub/managed_instance_analytic_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_analytic_summary.go b/osmanagementhub/managed_instance_analytic_summary.go index 2ac5971e98..0cf6321108 100644 --- a/osmanagementhub/managed_instance_analytic_summary.go +++ b/osmanagementhub/managed_instance_analytic_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_collection.go b/osmanagementhub/managed_instance_collection.go index 6f60f70700..0ac5eb6c20 100644 --- a/osmanagementhub/managed_instance_collection.go +++ b/osmanagementhub/managed_instance_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_details.go b/osmanagementhub/managed_instance_details.go index 6b56f44aee..13d420a5b7 100644 --- a/osmanagementhub/managed_instance_details.go +++ b/osmanagementhub/managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_erratum_summary.go b/osmanagementhub/managed_instance_erratum_summary.go index f8c6a9ad6c..2ce8815bec 100644 --- a/osmanagementhub/managed_instance_erratum_summary.go +++ b/osmanagementhub/managed_instance_erratum_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_erratum_summary_collection.go b/osmanagementhub/managed_instance_erratum_summary_collection.go index b5a9723860..685b6c394c 100644 --- a/osmanagementhub/managed_instance_erratum_summary_collection.go +++ b/osmanagementhub/managed_instance_erratum_summary_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_group.go b/osmanagementhub/managed_instance_group.go index d46e7a54bb..61470731ce 100644 --- a/osmanagementhub/managed_instance_group.go +++ b/osmanagementhub/managed_instance_group.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub @@ -52,6 +51,9 @@ type ManagedInstanceGroup struct { // The list of software sources that the managed instance group will use. SoftwareSourceIds []SoftwareSourceDetails `mandatory:"false" json:"softwareSourceIds"` + // The list of software sources that the managed instance group will use. + SoftwareSources []SoftwareSourceDetails `mandatory:"false" json:"softwareSources"` + // The list of managed instances OCIDs attached to the managed instance group. ManagedInstanceIds []string `mandatory:"false" json:"managedInstanceIds"` diff --git a/osmanagementhub/managed_instance_group_available_module_collection.go b/osmanagementhub/managed_instance_group_available_module_collection.go index 6c82a0952d..e82c3543ba 100644 --- a/osmanagementhub/managed_instance_group_available_module_collection.go +++ b/osmanagementhub/managed_instance_group_available_module_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_group_available_module_summary.go b/osmanagementhub/managed_instance_group_available_module_summary.go index 8b1ee7a395..463ffb5df9 100644 --- a/osmanagementhub/managed_instance_group_available_module_summary.go +++ b/osmanagementhub/managed_instance_group_available_module_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_group_available_package_collection.go b/osmanagementhub/managed_instance_group_available_package_collection.go index 3d1c187f12..8763fd99ba 100644 --- a/osmanagementhub/managed_instance_group_available_package_collection.go +++ b/osmanagementhub/managed_instance_group_available_package_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_group_available_package_summary.go b/osmanagementhub/managed_instance_group_available_package_summary.go index 7190a70945..e2172928b1 100644 --- a/osmanagementhub/managed_instance_group_available_package_summary.go +++ b/osmanagementhub/managed_instance_group_available_package_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_group_collection.go b/osmanagementhub/managed_instance_group_collection.go index 6c03183418..6899a4f4e5 100644 --- a/osmanagementhub/managed_instance_group_collection.go +++ b/osmanagementhub/managed_instance_group_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_group_details.go b/osmanagementhub/managed_instance_group_details.go index 9a9c2bc7a8..9bfe371ac7 100644 --- a/osmanagementhub/managed_instance_group_details.go +++ b/osmanagementhub/managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_group_installed_package_collection.go b/osmanagementhub/managed_instance_group_installed_package_collection.go index 35f13fe591..edf2f50eb6 100644 --- a/osmanagementhub/managed_instance_group_installed_package_collection.go +++ b/osmanagementhub/managed_instance_group_installed_package_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_group_installed_package_summary.go b/osmanagementhub/managed_instance_group_installed_package_summary.go index b1c0e4354b..57ee695d86 100644 --- a/osmanagementhub/managed_instance_group_installed_package_summary.go +++ b/osmanagementhub/managed_instance_group_installed_package_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_group_module_collection.go b/osmanagementhub/managed_instance_group_module_collection.go index bea7db7be5..2ba9ac521d 100644 --- a/osmanagementhub/managed_instance_group_module_collection.go +++ b/osmanagementhub/managed_instance_group_module_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_group_module_summary.go b/osmanagementhub/managed_instance_group_module_summary.go index 4a63f3a997..0575ff895c 100644 --- a/osmanagementhub/managed_instance_group_module_summary.go +++ b/osmanagementhub/managed_instance_group_module_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_group_summary.go b/osmanagementhub/managed_instance_group_summary.go index 048465e574..b868374851 100644 --- a/osmanagementhub/managed_instance_group_summary.go +++ b/osmanagementhub/managed_instance_group_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_location.go b/osmanagementhub/managed_instance_location.go index 16cd6d2ec3..0947425eae 100644 --- a/osmanagementhub/managed_instance_location.go +++ b/osmanagementhub/managed_instance_location.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_module_collection.go b/osmanagementhub/managed_instance_module_collection.go index 3b21b78286..94c38f885a 100644 --- a/osmanagementhub/managed_instance_module_collection.go +++ b/osmanagementhub/managed_instance_module_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_module_summary.go b/osmanagementhub/managed_instance_module_summary.go index 292ec7addb..9ab1397676 100644 --- a/osmanagementhub/managed_instance_module_summary.go +++ b/osmanagementhub/managed_instance_module_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_status.go b/osmanagementhub/managed_instance_status.go index ddc8486ba1..7bd0f4aab2 100644 --- a/osmanagementhub/managed_instance_status.go +++ b/osmanagementhub/managed_instance_status.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instance_summary.go b/osmanagementhub/managed_instance_summary.go index 856a4d77f6..aba270ecf3 100644 --- a/osmanagementhub/managed_instance_summary.go +++ b/osmanagementhub/managed_instance_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/managed_instances_details.go b/osmanagementhub/managed_instances_details.go index 5a8954393b..b37032085c 100644 --- a/osmanagementhub/managed_instances_details.go +++ b/osmanagementhub/managed_instances_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/management_station.go b/osmanagementhub/management_station.go index d12cd00698..a029be96c2 100644 --- a/osmanagementhub/management_station.go +++ b/osmanagementhub/management_station.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/management_station_collection.go b/osmanagementhub/management_station_collection.go index be224edc8e..1d99f845e0 100644 --- a/osmanagementhub/management_station_collection.go +++ b/osmanagementhub/management_station_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/management_station_details.go b/osmanagementhub/management_station_details.go index 14f26b6bfd..6e852df836 100644 --- a/osmanagementhub/management_station_details.go +++ b/osmanagementhub/management_station_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/management_station_summary.go b/osmanagementhub/management_station_summary.go index 158dc68ef7..9c2636db04 100644 --- a/osmanagementhub/management_station_summary.go +++ b/osmanagementhub/management_station_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/metric_name.go b/osmanagementhub/metric_name.go index 900189490e..9e155062ed 100644 --- a/osmanagementhub/metric_name.go +++ b/osmanagementhub/metric_name.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/mirror_configuration.go b/osmanagementhub/mirror_configuration.go index 3bed25c27e..cbd87a36d8 100644 --- a/osmanagementhub/mirror_configuration.go +++ b/osmanagementhub/mirror_configuration.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/mirror_state.go b/osmanagementhub/mirror_state.go index 931aaf19ed..6c26e70c0d 100644 --- a/osmanagementhub/mirror_state.go +++ b/osmanagementhub/mirror_state.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/mirror_summary.go b/osmanagementhub/mirror_summary.go index fd5eb730e2..95b4d61756 100644 --- a/osmanagementhub/mirror_summary.go +++ b/osmanagementhub/mirror_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/mirror_sync_status.go b/osmanagementhub/mirror_sync_status.go index be1161c22b..a0c307e851 100644 --- a/osmanagementhub/mirror_sync_status.go +++ b/osmanagementhub/mirror_sync_status.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/mirror_type.go b/osmanagementhub/mirror_type.go index e7c28f9f5a..824cd4974c 100644 --- a/osmanagementhub/mirror_type.go +++ b/osmanagementhub/mirror_type.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/mirrors_collection.go b/osmanagementhub/mirrors_collection.go index ea1900002f..0a4a0c4a39 100644 --- a/osmanagementhub/mirrors_collection.go +++ b/osmanagementhub/mirrors_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_collection.go b/osmanagementhub/module_collection.go index d47ce9e617..e5c089dec9 100644 --- a/osmanagementhub/module_collection.go +++ b/osmanagementhub/module_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_spec_details.go b/osmanagementhub/module_spec_details.go index b6fa40ae84..71f035433b 100644 --- a/osmanagementhub/module_spec_details.go +++ b/osmanagementhub/module_spec_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream.go b/osmanagementhub/module_stream.go index 75752d3e13..604af1893d 100644 --- a/osmanagementhub/module_stream.go +++ b/osmanagementhub/module_stream.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream_collection.go b/osmanagementhub/module_stream_collection.go index 25b51fa0c7..73bd2460bf 100644 --- a/osmanagementhub/module_stream_collection.go +++ b/osmanagementhub/module_stream_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream_details.go b/osmanagementhub/module_stream_details.go index db19029f29..f32a3f4be4 100644 --- a/osmanagementhub/module_stream_details.go +++ b/osmanagementhub/module_stream_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream_details_body.go b/osmanagementhub/module_stream_details_body.go index 3aad063452..afbb92d2d4 100644 --- a/osmanagementhub/module_stream_details_body.go +++ b/osmanagementhub/module_stream_details_body.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream_profile.go b/osmanagementhub/module_stream_profile.go index a6dd78f074..d4ead09a8b 100644 --- a/osmanagementhub/module_stream_profile.go +++ b/osmanagementhub/module_stream_profile.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream_profile_collection.go b/osmanagementhub/module_stream_profile_collection.go index cee3b47c41..1ab26941a2 100644 --- a/osmanagementhub/module_stream_profile_collection.go +++ b/osmanagementhub/module_stream_profile_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream_profile_details.go b/osmanagementhub/module_stream_profile_details.go index 3c193e4f71..a570bba058 100644 --- a/osmanagementhub/module_stream_profile_details.go +++ b/osmanagementhub/module_stream_profile_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream_profile_details_body.go b/osmanagementhub/module_stream_profile_details_body.go index fafda47dba..93031e454b 100644 --- a/osmanagementhub/module_stream_profile_details_body.go +++ b/osmanagementhub/module_stream_profile_details_body.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream_profile_filter.go b/osmanagementhub/module_stream_profile_filter.go index 353dd20401..4f3190a305 100644 --- a/osmanagementhub/module_stream_profile_filter.go +++ b/osmanagementhub/module_stream_profile_filter.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream_profile_status.go b/osmanagementhub/module_stream_profile_status.go index 03694132c8..0bb7a4d717 100644 --- a/osmanagementhub/module_stream_profile_status.go +++ b/osmanagementhub/module_stream_profile_status.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream_profile_summary.go b/osmanagementhub/module_stream_profile_summary.go index 79b3d35642..db3cbab726 100644 --- a/osmanagementhub/module_stream_profile_summary.go +++ b/osmanagementhub/module_stream_profile_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream_status.go b/osmanagementhub/module_stream_status.go index fa79a39857..4239387bd9 100644 --- a/osmanagementhub/module_stream_status.go +++ b/osmanagementhub/module_stream_status.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_stream_summary.go b/osmanagementhub/module_stream_summary.go index 40d765c7c9..0cb71a287c 100644 --- a/osmanagementhub/module_stream_summary.go +++ b/osmanagementhub/module_stream_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/module_summary.go b/osmanagementhub/module_summary.go index ce4dd1a689..886dda86a6 100644 --- a/osmanagementhub/module_summary.go +++ b/osmanagementhub/module_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/operation_status.go b/osmanagementhub/operation_status.go index 6e3563cb03..9ec102f2eb 100644 --- a/osmanagementhub/operation_status.go +++ b/osmanagementhub/operation_status.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/operation_types.go b/osmanagementhub/operation_types.go index bedd3d0851..0ef8565f73 100644 --- a/osmanagementhub/operation_types.go +++ b/osmanagementhub/operation_types.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/os_family.go b/osmanagementhub/os_family.go index 6d1665cd09..929a0ea2b6 100644 --- a/osmanagementhub/os_family.go +++ b/osmanagementhub/os_family.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/osmanagementhub_lifecycleenvironment_client.go b/osmanagementhub/osmanagementhub_lifecycleenvironment_client.go index bc7ed89a1b..b7589851c7 100644 --- a/osmanagementhub/osmanagementhub_lifecycleenvironment_client.go +++ b/osmanagementhub/osmanagementhub_lifecycleenvironment_client.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/osmanagementhub_managedinstance_client.go b/osmanagementhub/osmanagementhub_managedinstance_client.go index 1a301a6776..c6097151a5 100644 --- a/osmanagementhub/osmanagementhub_managedinstance_client.go +++ b/osmanagementhub/osmanagementhub_managedinstance_client.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/osmanagementhub_managedinstancegroup_client.go b/osmanagementhub/osmanagementhub_managedinstancegroup_client.go index f4dd202f1b..11cfb820f0 100644 --- a/osmanagementhub/osmanagementhub_managedinstancegroup_client.go +++ b/osmanagementhub/osmanagementhub_managedinstancegroup_client.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/osmanagementhub_managementstation_client.go b/osmanagementhub/osmanagementhub_managementstation_client.go index fc302187a6..eb58d2a5da 100644 --- a/osmanagementhub/osmanagementhub_managementstation_client.go +++ b/osmanagementhub/osmanagementhub_managementstation_client.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/osmanagementhub_onboarding_client.go b/osmanagementhub/osmanagementhub_onboarding_client.go index 4771102bf5..0d4d5a515f 100644 --- a/osmanagementhub/osmanagementhub_onboarding_client.go +++ b/osmanagementhub/osmanagementhub_onboarding_client.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/osmanagementhub_reportingmanagedinstance_client.go b/osmanagementhub/osmanagementhub_reportingmanagedinstance_client.go index 7b29ef32d8..e95c54d358 100644 --- a/osmanagementhub/osmanagementhub_reportingmanagedinstance_client.go +++ b/osmanagementhub/osmanagementhub_reportingmanagedinstance_client.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/osmanagementhub_scheduledjob_client.go b/osmanagementhub/osmanagementhub_scheduledjob_client.go index 1aae71103c..addf2b26da 100644 --- a/osmanagementhub/osmanagementhub_scheduledjob_client.go +++ b/osmanagementhub/osmanagementhub_scheduledjob_client.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/osmanagementhub_softwaresource_client.go b/osmanagementhub/osmanagementhub_softwaresource_client.go index d573acc32a..d1ec66d358 100644 --- a/osmanagementhub/osmanagementhub_softwaresource_client.go +++ b/osmanagementhub/osmanagementhub_softwaresource_client.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/osmanagementhub_workrequest_client.go b/osmanagementhub/osmanagementhub_workrequest_client.go index f9e27ce322..9b84a82c9f 100644 --- a/osmanagementhub/osmanagementhub_workrequest_client.go +++ b/osmanagementhub/osmanagementhub_workrequest_client.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/overall_state.go b/osmanagementhub/overall_state.go index 901c622284..a617c685de 100644 --- a/osmanagementhub/overall_state.go +++ b/osmanagementhub/overall_state.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/package_filter.go b/osmanagementhub/package_filter.go index c117608d66..2eac78f7dc 100644 --- a/osmanagementhub/package_filter.go +++ b/osmanagementhub/package_filter.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/package_group.go b/osmanagementhub/package_group.go index 98b48020df..b52f6be09d 100644 --- a/osmanagementhub/package_group.go +++ b/osmanagementhub/package_group.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/package_group_collection.go b/osmanagementhub/package_group_collection.go index 031bf63260..3ec73b10d2 100644 --- a/osmanagementhub/package_group_collection.go +++ b/osmanagementhub/package_group_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/package_group_filter.go b/osmanagementhub/package_group_filter.go index b637c74258..6717d89739 100644 --- a/osmanagementhub/package_group_filter.go +++ b/osmanagementhub/package_group_filter.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/package_group_summary.go b/osmanagementhub/package_group_summary.go index c661669747..2c905fca3a 100644 --- a/osmanagementhub/package_group_summary.go +++ b/osmanagementhub/package_group_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/package_name_summary.go b/osmanagementhub/package_name_summary.go index 4733b74404..c9e46fb546 100644 --- a/osmanagementhub/package_name_summary.go +++ b/osmanagementhub/package_name_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/package_summary.go b/osmanagementhub/package_summary.go index a00b964081..7b861be583 100644 --- a/osmanagementhub/package_summary.go +++ b/osmanagementhub/package_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/profile.go b/osmanagementhub/profile.go index 7350554331..994c1fbd6a 100644 --- a/osmanagementhub/profile.go +++ b/osmanagementhub/profile.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/profile_collection.go b/osmanagementhub/profile_collection.go index 29c319024c..0e72c0a66e 100644 --- a/osmanagementhub/profile_collection.go +++ b/osmanagementhub/profile_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/profile_summary.go b/osmanagementhub/profile_summary.go index 5b71aa2b87..048b844005 100644 --- a/osmanagementhub/profile_summary.go +++ b/osmanagementhub/profile_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/profile_type.go b/osmanagementhub/profile_type.go index 862650aaa1..060aa378de 100644 --- a/osmanagementhub/profile_type.go +++ b/osmanagementhub/profile_type.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/promote_software_source_to_lifecycle_stage_details.go b/osmanagementhub/promote_software_source_to_lifecycle_stage_details.go index 79a0719a73..49ffdeb805 100644 --- a/osmanagementhub/promote_software_source_to_lifecycle_stage_details.go +++ b/osmanagementhub/promote_software_source_to_lifecycle_stage_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/proxy_configuration.go b/osmanagementhub/proxy_configuration.go index e96bf83948..9909a9ad9b 100644 --- a/osmanagementhub/proxy_configuration.go +++ b/osmanagementhub/proxy_configuration.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/remove_module_stream_profile_from_managed_instance_details.go b/osmanagementhub/remove_module_stream_profile_from_managed_instance_details.go index 016d5fb26f..e49499cebe 100644 --- a/osmanagementhub/remove_module_stream_profile_from_managed_instance_details.go +++ b/osmanagementhub/remove_module_stream_profile_from_managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/remove_module_stream_profile_from_managed_instance_group_details.go b/osmanagementhub/remove_module_stream_profile_from_managed_instance_group_details.go index a9138a0d3e..a018d8b73d 100644 --- a/osmanagementhub/remove_module_stream_profile_from_managed_instance_group_details.go +++ b/osmanagementhub/remove_module_stream_profile_from_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/remove_packages_from_managed_instance_details.go b/osmanagementhub/remove_packages_from_managed_instance_details.go index 776039d3c1..e9a6d851c4 100644 --- a/osmanagementhub/remove_packages_from_managed_instance_details.go +++ b/osmanagementhub/remove_packages_from_managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/remove_packages_from_managed_instance_group_details.go b/osmanagementhub/remove_packages_from_managed_instance_group_details.go index 8aa309d112..4215a432c8 100644 --- a/osmanagementhub/remove_packages_from_managed_instance_group_details.go +++ b/osmanagementhub/remove_packages_from_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/schedule_types.go b/osmanagementhub/schedule_types.go index 0440f85e89..694bfca6e7 100644 --- a/osmanagementhub/schedule_types.go +++ b/osmanagementhub/schedule_types.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/scheduled_job.go b/osmanagementhub/scheduled_job.go index 2e0a982930..025148f854 100644 --- a/osmanagementhub/scheduled_job.go +++ b/osmanagementhub/scheduled_job.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/scheduled_job_collection.go b/osmanagementhub/scheduled_job_collection.go index 9aef36a4e0..91439b833e 100644 --- a/osmanagementhub/scheduled_job_collection.go +++ b/osmanagementhub/scheduled_job_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/scheduled_job_operation.go b/osmanagementhub/scheduled_job_operation.go index 68003e2247..b6ba32738d 100644 --- a/osmanagementhub/scheduled_job_operation.go +++ b/osmanagementhub/scheduled_job_operation.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/scheduled_job_summary.go b/osmanagementhub/scheduled_job_summary.go index e96be082ce..ad8be2ab2d 100644 --- a/osmanagementhub/scheduled_job_summary.go +++ b/osmanagementhub/scheduled_job_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/search_software_source_module_streams_details.go b/osmanagementhub/search_software_source_module_streams_details.go index b9b48a913f..20efa1aefe 100644 --- a/osmanagementhub/search_software_source_module_streams_details.go +++ b/osmanagementhub/search_software_source_module_streams_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/search_software_source_modules_details.go b/osmanagementhub/search_software_source_modules_details.go index a54600f208..43a45da0bd 100644 --- a/osmanagementhub/search_software_source_modules_details.go +++ b/osmanagementhub/search_software_source_modules_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/search_software_source_package_groups_details.go b/osmanagementhub/search_software_source_package_groups_details.go index 26f15c2372..73f5e994be 100644 --- a/osmanagementhub/search_software_source_package_groups_details.go +++ b/osmanagementhub/search_software_source_package_groups_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_package.go b/osmanagementhub/software_package.go index e175f4535b..04806746d7 100644 --- a/osmanagementhub/software_package.go +++ b/osmanagementhub/software_package.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_package_collection.go b/osmanagementhub/software_package_collection.go index d3db15ea0a..df7c1ffd17 100644 --- a/osmanagementhub/software_package_collection.go +++ b/osmanagementhub/software_package_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_package_dependency.go b/osmanagementhub/software_package_dependency.go index 009bb0d9fa..71b9532b2b 100644 --- a/osmanagementhub/software_package_dependency.go +++ b/osmanagementhub/software_package_dependency.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_package_file.go b/osmanagementhub/software_package_file.go index 550c605e35..5ff3dd9898 100644 --- a/osmanagementhub/software_package_file.go +++ b/osmanagementhub/software_package_file.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_package_summary.go b/osmanagementhub/software_package_summary.go index 2bbb4ee941..f68c9bdfac 100644 --- a/osmanagementhub/software_package_summary.go +++ b/osmanagementhub/software_package_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_packages_details.go b/osmanagementhub/software_packages_details.go index 77e7dc1c63..b0ca5c231f 100644 --- a/osmanagementhub/software_packages_details.go +++ b/osmanagementhub/software_packages_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_source.go b/osmanagementhub/software_source.go index 20d041f133..14d7215b45 100644 --- a/osmanagementhub/software_source.go +++ b/osmanagementhub/software_source.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_source_availability.go b/osmanagementhub/software_source_availability.go index 573bef1fad..0d4d64cfd9 100644 --- a/osmanagementhub/software_source_availability.go +++ b/osmanagementhub/software_source_availability.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_source_collection.go b/osmanagementhub/software_source_collection.go index 56352327eb..4130db8da6 100644 --- a/osmanagementhub/software_source_collection.go +++ b/osmanagementhub/software_source_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_source_details.go b/osmanagementhub/software_source_details.go index 0d9071bddb..8350111857 100644 --- a/osmanagementhub/software_source_details.go +++ b/osmanagementhub/software_source_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_source_profile.go b/osmanagementhub/software_source_profile.go index 1e6900d78f..da4ce5c8ae 100644 --- a/osmanagementhub/software_source_profile.go +++ b/osmanagementhub/software_source_profile.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_source_summary.go b/osmanagementhub/software_source_summary.go index c9dfe41e8a..45ce0a4c88 100644 --- a/osmanagementhub/software_source_summary.go +++ b/osmanagementhub/software_source_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_source_type.go b/osmanagementhub/software_source_type.go index 26cdca97bc..b6413a83a3 100644 --- a/osmanagementhub/software_source_type.go +++ b/osmanagementhub/software_source_type.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_source_vendor_collection.go b/osmanagementhub/software_source_vendor_collection.go index 30608d89d4..96751a0fb0 100644 --- a/osmanagementhub/software_source_vendor_collection.go +++ b/osmanagementhub/software_source_vendor_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_source_vendor_summary.go b/osmanagementhub/software_source_vendor_summary.go index 71292fdeea..0cc5ab3182 100644 --- a/osmanagementhub/software_source_vendor_summary.go +++ b/osmanagementhub/software_source_vendor_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/software_sources_details.go b/osmanagementhub/software_sources_details.go index 61cbfc2a81..bfc7b18530 100644 --- a/osmanagementhub/software_sources_details.go +++ b/osmanagementhub/software_sources_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/sort_order.go b/osmanagementhub/sort_order.go index 1057244cac..45839aebd3 100644 --- a/osmanagementhub/sort_order.go +++ b/osmanagementhub/sort_order.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/station_profile.go b/osmanagementhub/station_profile.go index 416a96d043..feabf1560a 100644 --- a/osmanagementhub/station_profile.go +++ b/osmanagementhub/station_profile.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/switch_module_stream_on_managed_instance_details.go b/osmanagementhub/switch_module_stream_on_managed_instance_details.go index 8344a19791..bc73efde69 100644 --- a/osmanagementhub/switch_module_stream_on_managed_instance_details.go +++ b/osmanagementhub/switch_module_stream_on_managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/synchronize_mirrors_details.go b/osmanagementhub/synchronize_mirrors_details.go index 7780656dd2..6fb05cda11 100644 --- a/osmanagementhub/synchronize_mirrors_details.go +++ b/osmanagementhub/synchronize_mirrors_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/target_resource_entity_type.go b/osmanagementhub/target_resource_entity_type.go index 48ede0194f..55f584c08f 100644 --- a/osmanagementhub/target_resource_entity_type.go +++ b/osmanagementhub/target_resource_entity_type.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/updatable_package_collection.go b/osmanagementhub/updatable_package_collection.go index 2562c58718..0f07900d66 100644 --- a/osmanagementhub/updatable_package_collection.go +++ b/osmanagementhub/updatable_package_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/updatable_package_summary.go b/osmanagementhub/updatable_package_summary.go index 23de68b595..56afe7d56a 100644 --- a/osmanagementhub/updatable_package_summary.go +++ b/osmanagementhub/updatable_package_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_all_packages_on_managed_instance_group_details.go b/osmanagementhub/update_all_packages_on_managed_instance_group_details.go index da844b92a9..403deaaf81 100644 --- a/osmanagementhub/update_all_packages_on_managed_instance_group_details.go +++ b/osmanagementhub/update_all_packages_on_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_all_packages_on_managed_instances_in_compartment_details.go b/osmanagementhub/update_all_packages_on_managed_instances_in_compartment_details.go index b5c7b7d2cd..7b5aba6009 100644 --- a/osmanagementhub/update_all_packages_on_managed_instances_in_compartment_details.go +++ b/osmanagementhub/update_all_packages_on_managed_instances_in_compartment_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_custom_software_source_details.go b/osmanagementhub/update_custom_software_source_details.go index 6ff4b7fc9f..09a40d17a2 100644 --- a/osmanagementhub/update_custom_software_source_details.go +++ b/osmanagementhub/update_custom_software_source_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_lifecycle_environment_details.go b/osmanagementhub/update_lifecycle_environment_details.go index d08d774de3..f2d1b29fc1 100644 --- a/osmanagementhub/update_lifecycle_environment_details.go +++ b/osmanagementhub/update_lifecycle_environment_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_lifecycle_stage_details.go b/osmanagementhub/update_lifecycle_stage_details.go index c8bbee4e25..f2757bc4d4 100644 --- a/osmanagementhub/update_lifecycle_stage_details.go +++ b/osmanagementhub/update_lifecycle_stage_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_managed_instance_details.go b/osmanagementhub/update_managed_instance_details.go index 3fbdf0a9f9..6095f957e9 100644 --- a/osmanagementhub/update_managed_instance_details.go +++ b/osmanagementhub/update_managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_managed_instance_group_details.go b/osmanagementhub/update_managed_instance_group_details.go index 9e6219cc2d..3aaddd8ef2 100644 --- a/osmanagementhub/update_managed_instance_group_details.go +++ b/osmanagementhub/update_managed_instance_group_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_management_station_details.go b/osmanagementhub/update_management_station_details.go index 93c7878c22..bfbb8e9602 100644 --- a/osmanagementhub/update_management_station_details.go +++ b/osmanagementhub/update_management_station_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_mirror_configuration_details.go b/osmanagementhub/update_mirror_configuration_details.go index 9eefe90ed5..88b5d90f48 100644 --- a/osmanagementhub/update_mirror_configuration_details.go +++ b/osmanagementhub/update_mirror_configuration_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_packages_on_managed_instance_details.go b/osmanagementhub/update_packages_on_managed_instance_details.go index b4b8eb51f1..a47b2bc1af 100644 --- a/osmanagementhub/update_packages_on_managed_instance_details.go +++ b/osmanagementhub/update_packages_on_managed_instance_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_profile_details.go b/osmanagementhub/update_profile_details.go index 09e0e1e647..fafd1836be 100644 --- a/osmanagementhub/update_profile_details.go +++ b/osmanagementhub/update_profile_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_proxy_configuration_details.go b/osmanagementhub/update_proxy_configuration_details.go index c8ddb1e8c2..7d0ba45f22 100644 --- a/osmanagementhub/update_proxy_configuration_details.go +++ b/osmanagementhub/update_proxy_configuration_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_scheduled_job_details.go b/osmanagementhub/update_scheduled_job_details.go index 5236d042e8..dfe7a35440 100644 --- a/osmanagementhub/update_scheduled_job_details.go +++ b/osmanagementhub/update_scheduled_job_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_software_source_details.go b/osmanagementhub/update_software_source_details.go index 204632e8c6..61f7c3445b 100644 --- a/osmanagementhub/update_software_source_details.go +++ b/osmanagementhub/update_software_source_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_types.go b/osmanagementhub/update_types.go index e982f18cf0..5479e12fa2 100644 --- a/osmanagementhub/update_types.go +++ b/osmanagementhub/update_types.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_vendor_software_source_details.go b/osmanagementhub/update_vendor_software_source_details.go index b29e563ad6..1b3c01838d 100644 --- a/osmanagementhub/update_vendor_software_source_details.go +++ b/osmanagementhub/update_vendor_software_source_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/update_work_request_details.go b/osmanagementhub/update_work_request_details.go index cc0f9e88a1..1ea070e933 100644 --- a/osmanagementhub/update_work_request_details.go +++ b/osmanagementhub/update_work_request_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/vendor_name.go b/osmanagementhub/vendor_name.go index 8faed24516..f55390b363 100644 --- a/osmanagementhub/vendor_name.go +++ b/osmanagementhub/vendor_name.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/vendor_software_source.go b/osmanagementhub/vendor_software_source.go index 6fcb9db603..253a2d41b1 100644 --- a/osmanagementhub/vendor_software_source.go +++ b/osmanagementhub/vendor_software_source.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/vendor_software_source_summary.go b/osmanagementhub/vendor_software_source_summary.go index 8b186af780..3eedaa0da2 100644 --- a/osmanagementhub/vendor_software_source_summary.go +++ b/osmanagementhub/vendor_software_source_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/versioned_custom_software_source.go b/osmanagementhub/versioned_custom_software_source.go index a39db88a36..890c5d6d42 100644 --- a/osmanagementhub/versioned_custom_software_source.go +++ b/osmanagementhub/versioned_custom_software_source.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/versioned_custom_software_source_summary.go b/osmanagementhub/versioned_custom_software_source_summary.go index 587de4457d..b2149e06c1 100644 --- a/osmanagementhub/versioned_custom_software_source_summary.go +++ b/osmanagementhub/versioned_custom_software_source_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/work_request.go b/osmanagementhub/work_request.go index 9f1e13c840..38fd2f9296 100644 --- a/osmanagementhub/work_request.go +++ b/osmanagementhub/work_request.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/work_request_details.go b/osmanagementhub/work_request_details.go index 66c7669be6..ef199c7c8a 100644 --- a/osmanagementhub/work_request_details.go +++ b/osmanagementhub/work_request_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/work_request_error.go b/osmanagementhub/work_request_error.go index 45f1a5d824..9cf0f4bd33 100644 --- a/osmanagementhub/work_request_error.go +++ b/osmanagementhub/work_request_error.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/work_request_error_collection.go b/osmanagementhub/work_request_error_collection.go index 62deac20ee..9506ec7f0c 100644 --- a/osmanagementhub/work_request_error_collection.go +++ b/osmanagementhub/work_request_error_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/work_request_log_entry.go b/osmanagementhub/work_request_log_entry.go index f907250232..cd07450733 100644 --- a/osmanagementhub/work_request_log_entry.go +++ b/osmanagementhub/work_request_log_entry.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/work_request_log_entry_collection.go b/osmanagementhub/work_request_log_entry_collection.go index b7f40efe4d..b2940d0e52 100644 --- a/osmanagementhub/work_request_log_entry_collection.go +++ b/osmanagementhub/work_request_log_entry_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/work_request_management_station_details.go b/osmanagementhub/work_request_management_station_details.go index 9c18fc7444..3fdd3cf0c1 100644 --- a/osmanagementhub/work_request_management_station_details.go +++ b/osmanagementhub/work_request_management_station_details.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/work_request_operation_type.go b/osmanagementhub/work_request_operation_type.go index 37bf3358bf..66f37397c7 100644 --- a/osmanagementhub/work_request_operation_type.go +++ b/osmanagementhub/work_request_operation_type.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/work_request_resource.go b/osmanagementhub/work_request_resource.go index 2ad915cc56..bd113a210f 100644 --- a/osmanagementhub/work_request_resource.go +++ b/osmanagementhub/work_request_resource.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/work_request_resource_metadata_key.go b/osmanagementhub/work_request_resource_metadata_key.go index e639e2512e..257ac1aa3c 100644 --- a/osmanagementhub/work_request_resource_metadata_key.go +++ b/osmanagementhub/work_request_resource_metadata_key.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/work_request_summary.go b/osmanagementhub/work_request_summary.go index 8877b72753..867787dabb 100644 --- a/osmanagementhub/work_request_summary.go +++ b/osmanagementhub/work_request_summary.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/osmanagementhub/work_request_summary_collection.go b/osmanagementhub/work_request_summary_collection.go index 09f24b4bf3..20f453a728 100644 --- a/osmanagementhub/work_request_summary_collection.go +++ b/osmanagementhub/work_request_summary_collection.go @@ -5,7 +5,6 @@ // OS Management Hub API // // Use the OS Management Hub API to manage and monitor updates and patches for the operating system environments in your private data centers through a single management console. For more information, see Overview of OS Management Hub (https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm). -// Use the table of contents and search tool to explore the OS Management Hub API. // package osmanagementhub diff --git a/stackmonitoring/auto_promote_config_details.go b/stackmonitoring/auto_promote_config_details.go new file mode 100644 index 0000000000..59baf77de6 --- /dev/null +++ b/stackmonitoring/auto_promote_config_details.go @@ -0,0 +1,179 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Stack Monitoring API +// +// Stack Monitoring API. +// + +package stackmonitoring + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AutoPromoteConfigDetails A configuration of the AUTO_PROMOTE type, consists of a resource type and a boolean value +// that determines if this resource needs to be automatically promoted/discovered. +// For example, when a Management Agent registration event occurs and if isEnabled is TRUE for +// a HOST resource type, a HOST resource will be automatically discovered using that Management Agent. +type AutoPromoteConfigDetails struct { + + // The Unique Oracle ID (OCID) that is immutable on creation. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the configuration. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // True if automatic promotion is enabled, false if it is not enabled. + IsEnabled *bool `mandatory:"true" json:"isEnabled"` + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The time the configuration was created. An RFC3339 formatted datetime string. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The time the Config was updated. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // 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"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The type of resource to configure for automatic promotion. + ResourceType AutoPromoteConfigDetailsResourceTypeEnum `mandatory:"true" json:"resourceType"` + + // The current state of the configuration. + LifecycleState ConfigLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` +} + +//GetId returns Id +func (m AutoPromoteConfigDetails) GetId() *string { + return m.Id +} + +//GetCompartmentId returns CompartmentId +func (m AutoPromoteConfigDetails) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetDisplayName returns DisplayName +func (m AutoPromoteConfigDetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetTimeCreated returns TimeCreated +func (m AutoPromoteConfigDetails) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +//GetTimeUpdated returns TimeUpdated +func (m AutoPromoteConfigDetails) GetTimeUpdated() *common.SDKTime { + return m.TimeUpdated +} + +//GetLifecycleState returns LifecycleState +func (m AutoPromoteConfigDetails) GetLifecycleState() ConfigLifecycleStateEnum { + return m.LifecycleState +} + +//GetFreeformTags returns FreeformTags +func (m AutoPromoteConfigDetails) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m AutoPromoteConfigDetails) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +//GetSystemTags returns SystemTags +func (m AutoPromoteConfigDetails) GetSystemTags() map[string]map[string]interface{} { + return m.SystemTags +} + +func (m AutoPromoteConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AutoPromoteConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAutoPromoteConfigDetailsResourceTypeEnum(string(m.ResourceType)); !ok && m.ResourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ResourceType: %s. Supported values are: %s.", m.ResourceType, strings.Join(GetAutoPromoteConfigDetailsResourceTypeEnumStringValues(), ","))) + } + + if _, ok := GetMappingConfigLifecycleStateEnum(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(GetConfigLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AutoPromoteConfigDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAutoPromoteConfigDetails AutoPromoteConfigDetails + s := struct { + DiscriminatorParam string `json:"configType"` + MarshalTypeAutoPromoteConfigDetails + }{ + "AUTO_PROMOTE", + (MarshalTypeAutoPromoteConfigDetails)(m), + } + + return json.Marshal(&s) +} + +// AutoPromoteConfigDetailsResourceTypeEnum Enum with underlying type: string +type AutoPromoteConfigDetailsResourceTypeEnum string + +// Set of constants representing the allowable values for AutoPromoteConfigDetailsResourceTypeEnum +const ( + AutoPromoteConfigDetailsResourceTypeHost AutoPromoteConfigDetailsResourceTypeEnum = "HOST" +) + +var mappingAutoPromoteConfigDetailsResourceTypeEnum = map[string]AutoPromoteConfigDetailsResourceTypeEnum{ + "HOST": AutoPromoteConfigDetailsResourceTypeHost, +} + +var mappingAutoPromoteConfigDetailsResourceTypeEnumLowerCase = map[string]AutoPromoteConfigDetailsResourceTypeEnum{ + "host": AutoPromoteConfigDetailsResourceTypeHost, +} + +// GetAutoPromoteConfigDetailsResourceTypeEnumValues Enumerates the set of values for AutoPromoteConfigDetailsResourceTypeEnum +func GetAutoPromoteConfigDetailsResourceTypeEnumValues() []AutoPromoteConfigDetailsResourceTypeEnum { + values := make([]AutoPromoteConfigDetailsResourceTypeEnum, 0) + for _, v := range mappingAutoPromoteConfigDetailsResourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetAutoPromoteConfigDetailsResourceTypeEnumStringValues Enumerates the set of values in String for AutoPromoteConfigDetailsResourceTypeEnum +func GetAutoPromoteConfigDetailsResourceTypeEnumStringValues() []string { + return []string{ + "HOST", + } +} + +// GetMappingAutoPromoteConfigDetailsResourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAutoPromoteConfigDetailsResourceTypeEnum(val string) (AutoPromoteConfigDetailsResourceTypeEnum, bool) { + enum, ok := mappingAutoPromoteConfigDetailsResourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/stackmonitoring/auto_promote_config_summary.go b/stackmonitoring/auto_promote_config_summary.go new file mode 100644 index 0000000000..68a75b4a4b --- /dev/null +++ b/stackmonitoring/auto_promote_config_summary.go @@ -0,0 +1,176 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Stack Monitoring API +// +// Stack Monitoring API. +// + +package stackmonitoring + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AutoPromoteConfigSummary Summary of an AUTO_PROMOTE config. +type AutoPromoteConfigSummary struct { + + // Unique identifier that is immutable on creation. + Id *string `mandatory:"true" json:"id"` + + // Compartment Identifier. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // True if automatic promotion is enabled, false if it is not enabled. + IsEnabled *bool `mandatory:"true" json:"isEnabled"` + + // Config Identifier, can be renamed. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The time the the configuration was created. An RFC3339 formatted datetime string. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The time the configuration was updated. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // 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"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The type of resource to configure for automatic promotion. + ResourceType AutoPromoteConfigSummaryResourceTypeEnum `mandatory:"true" json:"resourceType"` + + // The current state of the configuration. + LifecycleState ConfigLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` +} + +//GetId returns Id +func (m AutoPromoteConfigSummary) GetId() *string { + return m.Id +} + +//GetCompartmentId returns CompartmentId +func (m AutoPromoteConfigSummary) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetDisplayName returns DisplayName +func (m AutoPromoteConfigSummary) GetDisplayName() *string { + return m.DisplayName +} + +//GetTimeCreated returns TimeCreated +func (m AutoPromoteConfigSummary) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +//GetTimeUpdated returns TimeUpdated +func (m AutoPromoteConfigSummary) GetTimeUpdated() *common.SDKTime { + return m.TimeUpdated +} + +//GetLifecycleState returns LifecycleState +func (m AutoPromoteConfigSummary) GetLifecycleState() ConfigLifecycleStateEnum { + return m.LifecycleState +} + +//GetFreeformTags returns FreeformTags +func (m AutoPromoteConfigSummary) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m AutoPromoteConfigSummary) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +//GetSystemTags returns SystemTags +func (m AutoPromoteConfigSummary) GetSystemTags() map[string]map[string]interface{} { + return m.SystemTags +} + +func (m AutoPromoteConfigSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AutoPromoteConfigSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAutoPromoteConfigSummaryResourceTypeEnum(string(m.ResourceType)); !ok && m.ResourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ResourceType: %s. Supported values are: %s.", m.ResourceType, strings.Join(GetAutoPromoteConfigSummaryResourceTypeEnumStringValues(), ","))) + } + + if _, ok := GetMappingConfigLifecycleStateEnum(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(GetConfigLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AutoPromoteConfigSummary) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAutoPromoteConfigSummary AutoPromoteConfigSummary + s := struct { + DiscriminatorParam string `json:"configType"` + MarshalTypeAutoPromoteConfigSummary + }{ + "AUTO_PROMOTE", + (MarshalTypeAutoPromoteConfigSummary)(m), + } + + return json.Marshal(&s) +} + +// AutoPromoteConfigSummaryResourceTypeEnum Enum with underlying type: string +type AutoPromoteConfigSummaryResourceTypeEnum string + +// Set of constants representing the allowable values for AutoPromoteConfigSummaryResourceTypeEnum +const ( + AutoPromoteConfigSummaryResourceTypeHost AutoPromoteConfigSummaryResourceTypeEnum = "HOST" +) + +var mappingAutoPromoteConfigSummaryResourceTypeEnum = map[string]AutoPromoteConfigSummaryResourceTypeEnum{ + "HOST": AutoPromoteConfigSummaryResourceTypeHost, +} + +var mappingAutoPromoteConfigSummaryResourceTypeEnumLowerCase = map[string]AutoPromoteConfigSummaryResourceTypeEnum{ + "host": AutoPromoteConfigSummaryResourceTypeHost, +} + +// GetAutoPromoteConfigSummaryResourceTypeEnumValues Enumerates the set of values for AutoPromoteConfigSummaryResourceTypeEnum +func GetAutoPromoteConfigSummaryResourceTypeEnumValues() []AutoPromoteConfigSummaryResourceTypeEnum { + values := make([]AutoPromoteConfigSummaryResourceTypeEnum, 0) + for _, v := range mappingAutoPromoteConfigSummaryResourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetAutoPromoteConfigSummaryResourceTypeEnumStringValues Enumerates the set of values in String for AutoPromoteConfigSummaryResourceTypeEnum +func GetAutoPromoteConfigSummaryResourceTypeEnumStringValues() []string { + return []string{ + "HOST", + } +} + +// GetMappingAutoPromoteConfigSummaryResourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAutoPromoteConfigSummaryResourceTypeEnum(val string) (AutoPromoteConfigSummaryResourceTypeEnum, bool) { + enum, ok := mappingAutoPromoteConfigSummaryResourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/stackmonitoring/change_config_compartment_details.go b/stackmonitoring/change_config_compartment_details.go new file mode 100644 index 0000000000..dc15fa2c48 --- /dev/null +++ b/stackmonitoring/change_config_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Stack Monitoring API +// +// Stack Monitoring API. +// + +package stackmonitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeConfigCompartmentDetails Details for which compartment to move the resource to. +type ChangeConfigCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment + // into which the resource should be moved. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeConfigCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeConfigCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/stackmonitoring/change_config_compartment_request_response.go b/stackmonitoring/change_config_compartment_request_response.go new file mode 100644 index 0000000000..85a77eabd4 --- /dev/null +++ b/stackmonitoring/change_config_compartment_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 stackmonitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeConfigCompartmentRequest wrapper for the ChangeConfigCompartment operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/stackmonitoring/ChangeConfigCompartment.go.html to see an example of how to use ChangeConfigCompartmentRequest. +type ChangeConfigCompartmentRequest struct { + + // Unique Config identifier. + ConfigId *string `mandatory:"true" contributesTo:"path" name:"configId"` + + // Details for the compartment move. + ChangeConfigCompartmentDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique 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 so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ChangeConfigCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeConfigCompartmentRequest) 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 ChangeConfigCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeConfigCompartmentRequest) 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 ChangeConfigCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeConfigCompartmentResponse wrapper for the ChangeConfigCompartment operation +type ChangeConfigCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ChangeConfigCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeConfigCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/stackmonitoring/config.go b/stackmonitoring/config.go new file mode 100644 index 0000000000..a1a164e0b8 --- /dev/null +++ b/stackmonitoring/config.go @@ -0,0 +1,273 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Stack Monitoring API +// +// Stack Monitoring API. +// + +package stackmonitoring + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Config A configuration item that, for example defines whether resources of a specific type +// should be discovered automatically. +// In this case, the 'configType' is set to 'AUTO_PROMOTE' and additional fields like +// 'resourceType' and 'isEnabled' determine if such resources are to be discovered +// automatically (also referred to as 'Automatic Promotion'). +type Config interface { + + // The Unique Oracle ID (OCID) that is immutable on creation. + GetId() *string + + // The OCID of the compartment containing the configuration. + GetCompartmentId() *string + + // The current state of the configuration. + GetLifecycleState() ConfigLifecycleStateEnum + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + GetDisplayName() *string + + // The time the configuration was created. An RFC3339 formatted datetime string. + GetTimeCreated() *common.SDKTime + + // The time the Config was updated. + GetTimeUpdated() *common.SDKTime + + // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + // Example: `{"bar-key": "value"}` + GetFreeformTags() map[string]string + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + GetDefinedTags() map[string]map[string]interface{} + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + GetSystemTags() map[string]map[string]interface{} +} + +type config struct { + JsonData []byte + DisplayName *string `mandatory:"false" json:"displayName"` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + Id *string `mandatory:"true" json:"id"` + CompartmentId *string `mandatory:"true" json:"compartmentId"` + LifecycleState ConfigLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + ConfigType string `json:"configType"` +} + +// UnmarshalJSON unmarshals json +func (m *config) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerconfig config + s := struct { + Model Unmarshalerconfig + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Id = s.Model.Id + m.CompartmentId = s.Model.CompartmentId + m.LifecycleState = s.Model.LifecycleState + m.DisplayName = s.Model.DisplayName + m.TimeCreated = s.Model.TimeCreated + m.TimeUpdated = s.Model.TimeUpdated + m.FreeformTags = s.Model.FreeformTags + m.DefinedTags = s.Model.DefinedTags + m.SystemTags = s.Model.SystemTags + m.ConfigType = s.Model.ConfigType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *config) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.ConfigType { + case "AUTO_PROMOTE": + mm := AutoPromoteConfigDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for Config: %s.", m.ConfigType) + return *m, nil + } +} + +// GetDisplayName returns DisplayName +func (m config) GetDisplayName() *string { + return m.DisplayName +} + +// GetTimeCreated returns TimeCreated +func (m config) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +// GetTimeUpdated returns TimeUpdated +func (m config) GetTimeUpdated() *common.SDKTime { + return m.TimeUpdated +} + +// GetFreeformTags returns FreeformTags +func (m config) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +// GetDefinedTags returns DefinedTags +func (m config) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +// GetSystemTags returns SystemTags +func (m config) GetSystemTags() map[string]map[string]interface{} { + return m.SystemTags +} + +// GetId returns Id +func (m config) GetId() *string { + return m.Id +} + +// GetCompartmentId returns CompartmentId +func (m config) GetCompartmentId() *string { + return m.CompartmentId +} + +// GetLifecycleState returns LifecycleState +func (m config) GetLifecycleState() ConfigLifecycleStateEnum { + return m.LifecycleState +} + +func (m config) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m config) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingConfigLifecycleStateEnum(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(GetConfigLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ConfigLifecycleStateEnum Enum with underlying type: string +type ConfigLifecycleStateEnum string + +// Set of constants representing the allowable values for ConfigLifecycleStateEnum +const ( + ConfigLifecycleStateCreating ConfigLifecycleStateEnum = "CREATING" + ConfigLifecycleStateUpdating ConfigLifecycleStateEnum = "UPDATING" + ConfigLifecycleStateActive ConfigLifecycleStateEnum = "ACTIVE" + ConfigLifecycleStateDeleting ConfigLifecycleStateEnum = "DELETING" + ConfigLifecycleStateDeleted ConfigLifecycleStateEnum = "DELETED" + ConfigLifecycleStateFailed ConfigLifecycleStateEnum = "FAILED" +) + +var mappingConfigLifecycleStateEnum = map[string]ConfigLifecycleStateEnum{ + "CREATING": ConfigLifecycleStateCreating, + "UPDATING": ConfigLifecycleStateUpdating, + "ACTIVE": ConfigLifecycleStateActive, + "DELETING": ConfigLifecycleStateDeleting, + "DELETED": ConfigLifecycleStateDeleted, + "FAILED": ConfigLifecycleStateFailed, +} + +var mappingConfigLifecycleStateEnumLowerCase = map[string]ConfigLifecycleStateEnum{ + "creating": ConfigLifecycleStateCreating, + "updating": ConfigLifecycleStateUpdating, + "active": ConfigLifecycleStateActive, + "deleting": ConfigLifecycleStateDeleting, + "deleted": ConfigLifecycleStateDeleted, + "failed": ConfigLifecycleStateFailed, +} + +// GetConfigLifecycleStateEnumValues Enumerates the set of values for ConfigLifecycleStateEnum +func GetConfigLifecycleStateEnumValues() []ConfigLifecycleStateEnum { + values := make([]ConfigLifecycleStateEnum, 0) + for _, v := range mappingConfigLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetConfigLifecycleStateEnumStringValues Enumerates the set of values in String for ConfigLifecycleStateEnum +func GetConfigLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingConfigLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingConfigLifecycleStateEnum(val string) (ConfigLifecycleStateEnum, bool) { + enum, ok := mappingConfigLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ConfigConfigTypeEnum Enum with underlying type: string +type ConfigConfigTypeEnum string + +// Set of constants representing the allowable values for ConfigConfigTypeEnum +const ( + ConfigConfigTypeAutoPromote ConfigConfigTypeEnum = "AUTO_PROMOTE" +) + +var mappingConfigConfigTypeEnum = map[string]ConfigConfigTypeEnum{ + "AUTO_PROMOTE": ConfigConfigTypeAutoPromote, +} + +var mappingConfigConfigTypeEnumLowerCase = map[string]ConfigConfigTypeEnum{ + "auto_promote": ConfigConfigTypeAutoPromote, +} + +// GetConfigConfigTypeEnumValues Enumerates the set of values for ConfigConfigTypeEnum +func GetConfigConfigTypeEnumValues() []ConfigConfigTypeEnum { + values := make([]ConfigConfigTypeEnum, 0) + for _, v := range mappingConfigConfigTypeEnum { + values = append(values, v) + } + return values +} + +// GetConfigConfigTypeEnumStringValues Enumerates the set of values in String for ConfigConfigTypeEnum +func GetConfigConfigTypeEnumStringValues() []string { + return []string{ + "AUTO_PROMOTE", + } +} + +// GetMappingConfigConfigTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingConfigConfigTypeEnum(val string) (ConfigConfigTypeEnum, bool) { + enum, ok := mappingConfigConfigTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/stackmonitoring/config_collection.go b/stackmonitoring/config_collection.go new file mode 100644 index 0000000000..31e47c61c1 --- /dev/null +++ b/stackmonitoring/config_collection.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. + +// Stack Monitoring API +// +// Stack Monitoring API. +// + +package stackmonitoring + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ConfigCollection Contains a list of configurations. +type ConfigCollection struct { + + // List of configurations. + Items []ConfigSummary `mandatory:"true" json:"items"` +} + +func (m ConfigCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ConfigCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *ConfigCollection) UnmarshalJSON(data []byte) (e error) { + model := struct { + Items []configsummary `json:"items"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Items = make([]ConfigSummary, len(model.Items)) + for i, n := range model.Items { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Items[i] = nn.(ConfigSummary) + } else { + m.Items[i] = nil + } + } + return +} diff --git a/stackmonitoring/config_summary.go b/stackmonitoring/config_summary.go new file mode 100644 index 0000000000..87887497f9 --- /dev/null +++ b/stackmonitoring/config_summary.go @@ -0,0 +1,173 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Stack Monitoring API +// +// Stack Monitoring API. +// + +package stackmonitoring + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ConfigSummary Summary of the configuration. +type ConfigSummary interface { + + // Unique identifier that is immutable on creation. + GetId() *string + + // Compartment Identifier. + GetCompartmentId() *string + + // The current state of the configuration. + GetLifecycleState() ConfigLifecycleStateEnum + + // Config Identifier, can be renamed. + GetDisplayName() *string + + // The time the the configuration was created. An RFC3339 formatted datetime string. + GetTimeCreated() *common.SDKTime + + // The time the configuration was updated. + GetTimeUpdated() *common.SDKTime + + // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + // Example: `{"bar-key": "value"}` + GetFreeformTags() map[string]string + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + GetDefinedTags() map[string]map[string]interface{} + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + GetSystemTags() map[string]map[string]interface{} +} + +type configsummary struct { + JsonData []byte + DisplayName *string `mandatory:"false" json:"displayName"` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + Id *string `mandatory:"true" json:"id"` + CompartmentId *string `mandatory:"true" json:"compartmentId"` + LifecycleState ConfigLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + ConfigType string `json:"configType"` +} + +// UnmarshalJSON unmarshals json +func (m *configsummary) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerconfigsummary configsummary + s := struct { + Model Unmarshalerconfigsummary + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Id = s.Model.Id + m.CompartmentId = s.Model.CompartmentId + m.LifecycleState = s.Model.LifecycleState + m.DisplayName = s.Model.DisplayName + m.TimeCreated = s.Model.TimeCreated + m.TimeUpdated = s.Model.TimeUpdated + m.FreeformTags = s.Model.FreeformTags + m.DefinedTags = s.Model.DefinedTags + m.SystemTags = s.Model.SystemTags + m.ConfigType = s.Model.ConfigType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *configsummary) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.ConfigType { + case "AUTO_PROMOTE": + mm := AutoPromoteConfigSummary{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for ConfigSummary: %s.", m.ConfigType) + return *m, nil + } +} + +// GetDisplayName returns DisplayName +func (m configsummary) GetDisplayName() *string { + return m.DisplayName +} + +// GetTimeCreated returns TimeCreated +func (m configsummary) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +// GetTimeUpdated returns TimeUpdated +func (m configsummary) GetTimeUpdated() *common.SDKTime { + return m.TimeUpdated +} + +// GetFreeformTags returns FreeformTags +func (m configsummary) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +// GetDefinedTags returns DefinedTags +func (m configsummary) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +// GetSystemTags returns SystemTags +func (m configsummary) GetSystemTags() map[string]map[string]interface{} { + return m.SystemTags +} + +// GetId returns Id +func (m configsummary) GetId() *string { + return m.Id +} + +// GetCompartmentId returns CompartmentId +func (m configsummary) GetCompartmentId() *string { + return m.CompartmentId +} + +// GetLifecycleState returns LifecycleState +func (m configsummary) GetLifecycleState() ConfigLifecycleStateEnum { + return m.LifecycleState +} + +func (m configsummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m configsummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingConfigLifecycleStateEnum(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(GetConfigLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/stackmonitoring/create_auto_promote_config_details.go b/stackmonitoring/create_auto_promote_config_details.go new file mode 100644 index 0000000000..5c2c79447e --- /dev/null +++ b/stackmonitoring/create_auto_promote_config_details.go @@ -0,0 +1,132 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Stack Monitoring API +// +// Stack Monitoring API. +// + +package stackmonitoring + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateAutoPromoteConfigDetails The details of an AUTO_PROMOTE configuration. +type CreateAutoPromoteConfigDetails struct { + + // Compartment in which the configuration is created. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // True if automatic promotion is enabled, false if it is not enabled. + IsEnabled *bool `mandatory:"true" json:"isEnabled"` + + // The display name of the configuration. + DisplayName *string `mandatory:"false" json:"displayName"` + + // 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"` + + // The type of resource to configure for automatic promotion. + ResourceType CreateAutoPromoteConfigDetailsResourceTypeEnum `mandatory:"true" json:"resourceType"` +} + +//GetDisplayName returns DisplayName +func (m CreateAutoPromoteConfigDetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetCompartmentId returns CompartmentId +func (m CreateAutoPromoteConfigDetails) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetFreeformTags returns FreeformTags +func (m CreateAutoPromoteConfigDetails) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m CreateAutoPromoteConfigDetails) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +func (m CreateAutoPromoteConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateAutoPromoteConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateAutoPromoteConfigDetailsResourceTypeEnum(string(m.ResourceType)); !ok && m.ResourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ResourceType: %s. Supported values are: %s.", m.ResourceType, strings.Join(GetCreateAutoPromoteConfigDetailsResourceTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m CreateAutoPromoteConfigDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeCreateAutoPromoteConfigDetails CreateAutoPromoteConfigDetails + s := struct { + DiscriminatorParam string `json:"configType"` + MarshalTypeCreateAutoPromoteConfigDetails + }{ + "AUTO_PROMOTE", + (MarshalTypeCreateAutoPromoteConfigDetails)(m), + } + + return json.Marshal(&s) +} + +// CreateAutoPromoteConfigDetailsResourceTypeEnum Enum with underlying type: string +type CreateAutoPromoteConfigDetailsResourceTypeEnum string + +// Set of constants representing the allowable values for CreateAutoPromoteConfigDetailsResourceTypeEnum +const ( + CreateAutoPromoteConfigDetailsResourceTypeHost CreateAutoPromoteConfigDetailsResourceTypeEnum = "HOST" +) + +var mappingCreateAutoPromoteConfigDetailsResourceTypeEnum = map[string]CreateAutoPromoteConfigDetailsResourceTypeEnum{ + "HOST": CreateAutoPromoteConfigDetailsResourceTypeHost, +} + +var mappingCreateAutoPromoteConfigDetailsResourceTypeEnumLowerCase = map[string]CreateAutoPromoteConfigDetailsResourceTypeEnum{ + "host": CreateAutoPromoteConfigDetailsResourceTypeHost, +} + +// GetCreateAutoPromoteConfigDetailsResourceTypeEnumValues Enumerates the set of values for CreateAutoPromoteConfigDetailsResourceTypeEnum +func GetCreateAutoPromoteConfigDetailsResourceTypeEnumValues() []CreateAutoPromoteConfigDetailsResourceTypeEnum { + values := make([]CreateAutoPromoteConfigDetailsResourceTypeEnum, 0) + for _, v := range mappingCreateAutoPromoteConfigDetailsResourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateAutoPromoteConfigDetailsResourceTypeEnumStringValues Enumerates the set of values in String for CreateAutoPromoteConfigDetailsResourceTypeEnum +func GetCreateAutoPromoteConfigDetailsResourceTypeEnumStringValues() []string { + return []string{ + "HOST", + } +} + +// GetMappingCreateAutoPromoteConfigDetailsResourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateAutoPromoteConfigDetailsResourceTypeEnum(val string) (CreateAutoPromoteConfigDetailsResourceTypeEnum, bool) { + enum, ok := mappingCreateAutoPromoteConfigDetailsResourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/stackmonitoring/create_config_details.go b/stackmonitoring/create_config_details.go new file mode 100644 index 0000000000..aa0b156663 --- /dev/null +++ b/stackmonitoring/create_config_details.go @@ -0,0 +1,119 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Stack Monitoring API +// +// Stack Monitoring API. +// + +package stackmonitoring + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateConfigDetails Create a configuration. +type CreateConfigDetails interface { + + // Compartment in which the configuration is created. + GetCompartmentId() *string + + // The display name of the configuration. + GetDisplayName() *string + + // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + // Example: `{"bar-key": "value"}` + GetFreeformTags() map[string]string + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + GetDefinedTags() map[string]map[string]interface{} +} + +type createconfigdetails struct { + JsonData []byte + DisplayName *string `mandatory:"false" json:"displayName"` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + CompartmentId *string `mandatory:"true" json:"compartmentId"` + ConfigType string `json:"configType"` +} + +// UnmarshalJSON unmarshals json +func (m *createconfigdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalercreateconfigdetails createconfigdetails + s := struct { + Model Unmarshalercreateconfigdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.CompartmentId = s.Model.CompartmentId + m.DisplayName = s.Model.DisplayName + m.FreeformTags = s.Model.FreeformTags + m.DefinedTags = s.Model.DefinedTags + m.ConfigType = s.Model.ConfigType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *createconfigdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.ConfigType { + case "AUTO_PROMOTE": + mm := CreateAutoPromoteConfigDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for CreateConfigDetails: %s.", m.ConfigType) + return *m, nil + } +} + +// GetDisplayName returns DisplayName +func (m createconfigdetails) GetDisplayName() *string { + return m.DisplayName +} + +// GetFreeformTags returns FreeformTags +func (m createconfigdetails) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +// GetDefinedTags returns DefinedTags +func (m createconfigdetails) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +// GetCompartmentId returns CompartmentId +func (m createconfigdetails) GetCompartmentId() *string { + return m.CompartmentId +} + +func (m createconfigdetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m createconfigdetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/stackmonitoring/create_config_request_response.go b/stackmonitoring/create_config_request_response.go new file mode 100644 index 0000000000..d63876641b --- /dev/null +++ b/stackmonitoring/create_config_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 stackmonitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateConfigRequest wrapper for the CreateConfig operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/stackmonitoring/CreateConfig.go.html to see an example of how to use CreateConfigRequest. +type CreateConfigRequest struct { + + // Details for the new configuration. + CreateConfigDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // 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 CreateConfigRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateConfigRequest) 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 CreateConfigRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateConfigRequest) 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 CreateConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateConfigResponse wrapper for the CreateConfig operation +type CreateConfigResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Config instance + Config `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 CreateConfigResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateConfigResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/stackmonitoring/delete_config_request_response.go b/stackmonitoring/delete_config_request_response.go new file mode 100644 index 0000000000..d991d09c21 --- /dev/null +++ b/stackmonitoring/delete_config_request_response.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. + +package stackmonitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteConfigRequest wrapper for the DeleteConfig operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/stackmonitoring/DeleteConfig.go.html to see an example of how to use DeleteConfigRequest. +type DeleteConfigRequest struct { + + // Unique Config identifier. + ConfigId *string `mandatory:"true" contributesTo:"path" name:"configId"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique 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 DeleteConfigRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteConfigRequest) 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 DeleteConfigRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteConfigRequest) 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 DeleteConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteConfigResponse wrapper for the DeleteConfig operation +type DeleteConfigResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteConfigResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteConfigResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/stackmonitoring/get_config_request_response.go b/stackmonitoring/get_config_request_response.go new file mode 100644 index 0000000000..41edfefea8 --- /dev/null +++ b/stackmonitoring/get_config_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 stackmonitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetConfigRequest wrapper for the GetConfig operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/stackmonitoring/GetConfig.go.html to see an example of how to use GetConfigRequest. +type GetConfigRequest struct { + + // Unique Config identifier. + ConfigId *string `mandatory:"true" contributesTo:"path" name:"configId"` + + // 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 GetConfigRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetConfigRequest) 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 GetConfigRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetConfigRequest) 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 GetConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetConfigResponse wrapper for the GetConfig operation +type GetConfigResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Config instance + Config `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 GetConfigResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetConfigResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/stackmonitoring/list_configs_request_response.go b/stackmonitoring/list_configs_request_response.go new file mode 100644 index 0000000000..7d489def5a --- /dev/null +++ b/stackmonitoring/list_configs_request_response.go @@ -0,0 +1,223 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 stackmonitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListConfigsRequest wrapper for the ListConfigs operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/stackmonitoring/ListConfigs.go.html to see an example of how to use ListConfigsRequest. +type ListConfigsRequest struct { + + // The ID of the compartment in which data is listed. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // A filter to return only resources that match the entire display name given. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A filter to return only configuration items for a given config type. + Type ConfigConfigTypeEnum `mandatory:"false" contributesTo:"query" name:"type" omitEmpty:"true"` + + // 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/iaas/Content/API/Concepts/usingapi.htm#nine). + 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/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The current state of the Config. + LifecycleState ConfigLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). + SortOrder ListConfigsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order may be provided. + // Default order for 'timeCreated' is descending. + // Default order for 'displayName' and 'configType' is ascending. + SortBy ListConfigsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // 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 ListConfigsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListConfigsRequest) 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 ListConfigsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListConfigsRequest) 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 ListConfigsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingConfigConfigTypeEnum(string(request.Type)); !ok && request.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", request.Type, strings.Join(GetConfigConfigTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingConfigLifecycleStateEnum(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(GetConfigLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListConfigsSortOrderEnum(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(GetListConfigsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListConfigsSortByEnum(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(GetListConfigsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListConfigsResponse wrapper for the ListConfigs operation +type ListConfigsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ConfigCollection instances + ConfigCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListConfigsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListConfigsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListConfigsSortOrderEnum Enum with underlying type: string +type ListConfigsSortOrderEnum string + +// Set of constants representing the allowable values for ListConfigsSortOrderEnum +const ( + ListConfigsSortOrderAsc ListConfigsSortOrderEnum = "ASC" + ListConfigsSortOrderDesc ListConfigsSortOrderEnum = "DESC" +) + +var mappingListConfigsSortOrderEnum = map[string]ListConfigsSortOrderEnum{ + "ASC": ListConfigsSortOrderAsc, + "DESC": ListConfigsSortOrderDesc, +} + +var mappingListConfigsSortOrderEnumLowerCase = map[string]ListConfigsSortOrderEnum{ + "asc": ListConfigsSortOrderAsc, + "desc": ListConfigsSortOrderDesc, +} + +// GetListConfigsSortOrderEnumValues Enumerates the set of values for ListConfigsSortOrderEnum +func GetListConfigsSortOrderEnumValues() []ListConfigsSortOrderEnum { + values := make([]ListConfigsSortOrderEnum, 0) + for _, v := range mappingListConfigsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListConfigsSortOrderEnumStringValues Enumerates the set of values in String for ListConfigsSortOrderEnum +func GetListConfigsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListConfigsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListConfigsSortOrderEnum(val string) (ListConfigsSortOrderEnum, bool) { + enum, ok := mappingListConfigsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListConfigsSortByEnum Enum with underlying type: string +type ListConfigsSortByEnum string + +// Set of constants representing the allowable values for ListConfigsSortByEnum +const ( + ListConfigsSortByTimecreated ListConfigsSortByEnum = "timeCreated" + ListConfigsSortByConfigtype ListConfigsSortByEnum = "configType" + ListConfigsSortByDisplayname ListConfigsSortByEnum = "displayName" +) + +var mappingListConfigsSortByEnum = map[string]ListConfigsSortByEnum{ + "timeCreated": ListConfigsSortByTimecreated, + "configType": ListConfigsSortByConfigtype, + "displayName": ListConfigsSortByDisplayname, +} + +var mappingListConfigsSortByEnumLowerCase = map[string]ListConfigsSortByEnum{ + "timecreated": ListConfigsSortByTimecreated, + "configtype": ListConfigsSortByConfigtype, + "displayname": ListConfigsSortByDisplayname, +} + +// GetListConfigsSortByEnumValues Enumerates the set of values for ListConfigsSortByEnum +func GetListConfigsSortByEnumValues() []ListConfigsSortByEnum { + values := make([]ListConfigsSortByEnum, 0) + for _, v := range mappingListConfigsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListConfigsSortByEnumStringValues Enumerates the set of values in String for ListConfigsSortByEnum +func GetListConfigsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "configType", + "displayName", + } +} + +// GetMappingListConfigsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListConfigsSortByEnum(val string) (ListConfigsSortByEnum, bool) { + enum, ok := mappingListConfigsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/stackmonitoring/stackmonitoring_client.go b/stackmonitoring/stackmonitoring_client.go index 06191d4045..ce710be060 100644 --- a/stackmonitoring/stackmonitoring_client.go +++ b/stackmonitoring/stackmonitoring_client.go @@ -155,6 +155,76 @@ func (client StackMonitoringClient) associateMonitoredResources(ctx context.Cont return response, err } +// ChangeConfigCompartment Moves the configuration item to another compartment. +// Basically, this will disable any configuration for this configuration type in thie compartment, +// and will enable it in the new one. +// For example, if for a HOST resource type, the configuration with AUTO_PROMOTE in the configuration type +// and TRUE as value is moved, automatic discovery will not take place in this compartment any more, but in the new one. +// So this operation will have the same effect as deleting the configuration item in the old compartment and +// recreating it in another compartment. +// 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/stackmonitoring/ChangeConfigCompartment.go.html to see an example of how to use ChangeConfigCompartment API. +// A default retry strategy applies to this operation ChangeConfigCompartment() +func (client StackMonitoringClient) ChangeConfigCompartment(ctx context.Context, request ChangeConfigCompartmentRequest) (response ChangeConfigCompartmentResponse, 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.changeConfigCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeConfigCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeConfigCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeConfigCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeConfigCompartmentResponse") + } + return +} + +// changeConfigCompartment implements the OCIOperation interface (enables retrying operations) +func (client StackMonitoringClient) changeConfigCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/configs/{configId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeConfigCompartmentResponse + 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/stack-monitoring/20210330/Config/ChangeConfigCompartment" + err = common.PostProcessServiceError(err, "StackMonitoring", "ChangeConfigCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ChangeMonitoredResourceCompartment Moves a monitored resource from one compartment to another. // When provided, If-Match is checked against ETag values of the resource. // @@ -218,6 +288,74 @@ func (client StackMonitoringClient) changeMonitoredResourceCompartment(ctx conte return response, err } +// CreateConfig Creates a configuration item, for example to define +// whether resources of a specific type should be discovered automatically. +// For example, when a new Management Agent gets registered in a certain compartment, +// this Management Agent can potentially get promoted to a HOST resource. +// The configuration item will determine if HOST resources in the selected compartment will be +// discovered automatically. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/stackmonitoring/CreateConfig.go.html to see an example of how to use CreateConfig API. +// A default retry strategy applies to this operation CreateConfig() +func (client StackMonitoringClient) CreateConfig(ctx context.Context, request CreateConfigRequest) (response CreateConfigResponse, 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.createConfig, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateConfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateConfigResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateConfigResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateConfigResponse") + } + return +} + +// createConfig implements the OCIOperation interface (enables retrying operations) +func (client StackMonitoringClient) createConfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/configs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateConfigResponse + 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/stack-monitoring/20210330/Config/CreateConfig" + err = common.PostProcessServiceError(err, "StackMonitoring", "CreateConfig", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &config{}) + return response, err +} + // CreateDiscoveryJob API to create discovery Job and submit discovery Details to agent. // // See also @@ -344,6 +482,64 @@ func (client StackMonitoringClient) createMonitoredResource(ctx context.Context, return response, err } +// DeleteConfig Deletes a configuration identified by the id. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/stackmonitoring/DeleteConfig.go.html to see an example of how to use DeleteConfig API. +// A default retry strategy applies to this operation DeleteConfig() +func (client StackMonitoringClient) DeleteConfig(ctx context.Context, request DeleteConfigRequest) (response DeleteConfigResponse, 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.deleteConfig, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteConfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteConfigResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteConfigResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteConfigResponse") + } + return +} + +// deleteConfig implements the OCIOperation interface (enables retrying operations) +func (client StackMonitoringClient) deleteConfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/configs/{configId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteConfigResponse + 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/stack-monitoring/20210330/Config/DeleteConfig" + err = common.PostProcessServiceError(err, "StackMonitoring", "DeleteConfig", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // DeleteDiscoveryJob Deletes a DiscoveryJob by identifier // // See also @@ -587,6 +783,64 @@ func (client StackMonitoringClient) disassociateMonitoredResources(ctx context.C return response, err } +// GetConfig Gets the details of a configuration. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/stackmonitoring/GetConfig.go.html to see an example of how to use GetConfig API. +// A default retry strategy applies to this operation GetConfig() +func (client StackMonitoringClient) GetConfig(ctx context.Context, request GetConfigRequest) (response GetConfigResponse, 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.getConfig, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetConfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetConfigResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetConfigResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetConfigResponse") + } + return +} + +// getConfig implements the OCIOperation interface (enables retrying operations) +func (client StackMonitoringClient) getConfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/configs/{configId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetConfigResponse + 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/stack-monitoring/20210330/Config/GetConfig" + err = common.PostProcessServiceError(err, "StackMonitoring", "GetConfig", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &config{}) + return response, err +} + // GetDiscoveryJob API to get the details of discovery Job by identifier. // // See also @@ -761,6 +1015,64 @@ func (client StackMonitoringClient) getWorkRequest(ctx context.Context, request return response, err } +// ListConfigs Get a list of configurations in a compartment. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/stackmonitoring/ListConfigs.go.html to see an example of how to use ListConfigs API. +// A default retry strategy applies to this operation ListConfigs() +func (client StackMonitoringClient) ListConfigs(ctx context.Context, request ListConfigsRequest) (response ListConfigsResponse, 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.listConfigs, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListConfigsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListConfigsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListConfigsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListConfigsResponse") + } + return +} + +// listConfigs implements the OCIOperation interface (enables retrying operations) +func (client StackMonitoringClient) listConfigs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/configs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListConfigsResponse + 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/stack-monitoring/20210330/ConfigCollection/ListConfigs" + err = common.PostProcessServiceError(err, "StackMonitoring", "ListConfigs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + // ListDiscoveryJobLogs API to get all the logs of a Discovery Job. // // See also @@ -1370,6 +1682,64 @@ func (client StackMonitoringClient) updateAndPropagateTags(ctx context.Context, return response, err } +// UpdateConfig Updates the configuration identified by the id given. +// +// See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/stackmonitoring/UpdateConfig.go.html to see an example of how to use UpdateConfig API. +// A default retry strategy applies to this operation UpdateConfig() +func (client StackMonitoringClient) UpdateConfig(ctx context.Context, request UpdateConfigRequest) (response UpdateConfigResponse, 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.updateConfig, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateConfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateConfigResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateConfigResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateConfigResponse") + } + return +} + +// updateConfig implements the OCIOperation interface (enables retrying operations) +func (client StackMonitoringClient) updateConfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/configs/{configId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateConfigResponse + 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/stack-monitoring/20210330/Config/UpdateConfig" + err = common.PostProcessServiceError(err, "StackMonitoring", "UpdateConfig", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &config{}) + return response, err +} + // UpdateMonitoredResource Update monitored resource by the given identifier OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). // Note that "properties" object, if specified, will entirely replace the existing object, // as part this operation. diff --git a/stackmonitoring/update_auto_promote_config_details.go b/stackmonitoring/update_auto_promote_config_details.go new file mode 100644 index 0000000000..4466e07503 --- /dev/null +++ b/stackmonitoring/update_auto_promote_config_details.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Stack Monitoring API +// +// Stack Monitoring API. +// + +package stackmonitoring + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateAutoPromoteConfigDetails Change the details of an AUTO_PROMOTE config +type UpdateAutoPromoteConfigDetails struct { + + // The display name of the configuration. + DisplayName *string `mandatory:"false" json:"displayName"` + + // 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"` + + // True if automatic promotion is enabled, false if it is not enabled. + IsEnabled *bool `mandatory:"false" json:"isEnabled"` +} + +//GetDisplayName returns DisplayName +func (m UpdateAutoPromoteConfigDetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetFreeformTags returns FreeformTags +func (m UpdateAutoPromoteConfigDetails) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m UpdateAutoPromoteConfigDetails) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +func (m UpdateAutoPromoteConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateAutoPromoteConfigDetails) 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 UpdateAutoPromoteConfigDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeUpdateAutoPromoteConfigDetails UpdateAutoPromoteConfigDetails + s := struct { + DiscriminatorParam string `json:"configType"` + MarshalTypeUpdateAutoPromoteConfigDetails + }{ + "AUTO_PROMOTE", + (MarshalTypeUpdateAutoPromoteConfigDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/stackmonitoring/update_config_details.go b/stackmonitoring/update_config_details.go new file mode 100644 index 0000000000..e2956af4d8 --- /dev/null +++ b/stackmonitoring/update_config_details.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. + +// Stack Monitoring API +// +// Stack Monitoring API. +// + +package stackmonitoring + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateConfigDetails Change the configuration. +type UpdateConfigDetails interface { + + // The display name of the configuration. + GetDisplayName() *string + + // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + // Example: `{"bar-key": "value"}` + GetFreeformTags() map[string]string + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + GetDefinedTags() map[string]map[string]interface{} +} + +type updateconfigdetails struct { + JsonData []byte + DisplayName *string `mandatory:"false" json:"displayName"` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + ConfigType string `json:"configType"` +} + +// UnmarshalJSON unmarshals json +func (m *updateconfigdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerupdateconfigdetails updateconfigdetails + s := struct { + Model Unmarshalerupdateconfigdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.DisplayName = s.Model.DisplayName + m.FreeformTags = s.Model.FreeformTags + m.DefinedTags = s.Model.DefinedTags + m.ConfigType = s.Model.ConfigType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *updateconfigdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.ConfigType { + case "AUTO_PROMOTE": + mm := UpdateAutoPromoteConfigDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for UpdateConfigDetails: %s.", m.ConfigType) + return *m, nil + } +} + +// GetDisplayName returns DisplayName +func (m updateconfigdetails) GetDisplayName() *string { + return m.DisplayName +} + +// GetFreeformTags returns FreeformTags +func (m updateconfigdetails) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +// GetDefinedTags returns DefinedTags +func (m updateconfigdetails) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +func (m updateconfigdetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m updateconfigdetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/stackmonitoring/update_config_request_response.go b/stackmonitoring/update_config_request_response.go new file mode 100644 index 0000000000..391766170b --- /dev/null +++ b/stackmonitoring/update_config_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2023, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache 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 stackmonitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateConfigRequest wrapper for the UpdateConfig operation +// +// # See also +// +// Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/latest/stackmonitoring/UpdateConfig.go.html to see an example of how to use UpdateConfigRequest. +type UpdateConfigRequest struct { + + // Unique Config identifier. + ConfigId *string `mandatory:"true" contributesTo:"path" name:"configId"` + + // The details of the configuration to be updated. + UpdateConfigDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique 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 UpdateConfigRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateConfigRequest) 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 UpdateConfigRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateConfigRequest) 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 UpdateConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateConfigResponse wrapper for the UpdateConfig operation +type UpdateConfigResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Config instance + Config `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 UpdateConfigResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateConfigResponse) HTTPResponse() *http.Response { + return response.RawResponse +}