From 5c7443c04771fade4bda51550b65d149bc612bf0 Mon Sep 17 00:00:00 2001 From: oci-dex-release-bot Date: Mon, 11 Sep 2023 20:02:52 +0000 Subject: [PATCH] Releasing version 71.1.0 --- Aivision/models/AnalyzeImageResult.cs | 12 + Aivision/models/DataScienceLabelingDataset.cs | 4 + Aivision/models/Face.cs | 58 +++ Aivision/models/FaceDetectionFeature.cs | 39 ++ Aivision/models/ImageFeature.cs | 10 +- Aivision/models/Landmark.cs | 76 ++++ Aivision/models/ObjectStorageDataset.cs | 12 + Aivision/requests/CancelDocumentJobRequest.cs | 2 +- Aivision/requests/CancelImageJobRequest.cs | 2 +- Aivision/requests/GetDocumentJobRequest.cs | 2 +- Aivision/requests/GetImageJobRequest.cs | 2 +- .../models/AnnouncementSubscription.cs | 4 +- .../models/BaseAnnouncement.cs | 6 + .../models/BaseAnnouncementsPreferences.cs | 2 +- ...seCreateAnnouncementsPreferencesDetails.cs | 2 +- .../CreateAnnouncementSubscriptionDetails.cs | 4 +- Announcementsservice/models/Filter.cs | 6 +- Announcementsservice/models/FilterGroup.cs | 2 +- .../models/FilterGroupDetails.cs | 2 +- .../UpdateAnnouncementSubscriptionDetails.cs | 4 +- .../models/UpdateFilterGroupDetails.cs | 2 +- .../requests/ListAnnouncementsRequest.cs | 12 + CHANGELOG.md | 9 + Common/Src/Version.cs | 2 +- Database/DatabaseClient.cs | 4 +- Database/models/AutonomousDatabase.cs | 58 +-- Database/models/AutonomousDatabaseSummary.cs | 58 +-- .../AutonomousDbPreviewVersionSummary.cs | 2 +- ...ngeDisasterRecoveryConfigurationDetails.cs | 6 +- Database/models/CloudAutonomousVmCluster.cs | 16 +- .../models/CloudAutonomousVmClusterSummary.cs | 16 +- .../models/CreateAutonomousDatabaseBase.cs | 59 +-- .../CreateCloudAutonomousVmClusterDetails.cs | 16 +- ...reateCrossRegionDisasterRecoveryDetails.cs | 2 +- .../models/DatabaseConnectionStringProfile.cs | 4 +- .../models/DisasterRecoveryConfiguration.cs | 4 +- ...GenerateAutonomousDatabaseWalletDetails.cs | 4 +- Database/models/MaintenanceRun.cs | 4 +- Database/models/MaintenanceRunSummary.cs | 4 +- Database/models/Update.cs | 7 +- .../models/UpdateAutonomousDatabaseDetails.cs | 54 +-- .../UpdateCloudAutonomousVmClusterDetails.cs | 16 +- Database/models/UpdateSummary.cs | 7 +- ...ngeDisasterRecoveryConfigurationRequest.cs | 2 +- ...tAutonomousDatabaseCharacterSetsRequest.cs | 9 +- Databasemanagement/PerfhubClient.cs | 127 ++++++ Databasemanagement/SqlTuningClient.cs | 400 +++++++++++++++++ .../models/ChangeDatabaseParametersDetails.cs | 1 + .../models/ChangePlanRetentionDetails.cs | 1 + .../models/ChangeSpaceBudgetDetails.cs | 1 + ...ChangeSqlPlanBaselinesAttributesDetails.cs | 1 + .../models/CloneSqlTuningTaskDetails.cs | 1 + ...ConfigureAutomaticCaptureFiltersDetails.cs | 1 + ...ureAutomaticSpmEvolveAdvisorTaskDetails.cs | 1 + .../models/CreateSqlTuningSetDetails.cs | 62 +++ .../models/CreateTablespaceDetails.cs | 1 + .../models/DatabaseCredentials.cs | 1 + ...sableAutomaticInitialPlanCaptureDetails.cs | 1 + ...bleAutomaticSpmEvolveAdvisorTaskDetails.cs | 1 + ...ncyAutomaticSpmEvolveAdvisorTaskDetails.cs | 1 + .../DisableSqlPlanBaselinesUsageDetails.cs | 1 + .../models/DropSqlPlanBaselinesDetails.cs | 1 + .../models/DropSqlTuningSetDetails.cs | 56 +++ .../models/DropSqlTuningTaskDetails.cs | 1 + .../models/DropSqlsInSqlTuningSetDetails.cs | 68 +++ .../models/DropTablespaceDetails.cs | 1 + ...nableAutomaticInitialPlanCaptureDetails.cs | 1 + ...bleAutomaticSpmEvolveAdvisorTaskDetails.cs | 1 + ...ncyAutomaticSpmEvolveAdvisorTaskDetails.cs | 1 + .../EnableSqlPlanBaselinesUsageDetails.cs | 1 + .../models/ExternalAsmInstance.cs | 4 +- .../models/ExternalDatabaseConnectionInfo.cs | 1 + .../models/FetchSqlTuningSetDetails.cs | 118 +++++ .../models/LoadSqlTuningSetDetails.cs | 415 ++++++++++++++++++ .../models/ModifySnapshotSettingsDetails.cs | 37 ++ Databasemanagement/models/RankingMeasure.cs | 34 ++ .../models/RemoveDataFileDetails.cs | 1 + .../models/ResetDatabaseParametersDetails.cs | 1 + .../models/ResizeDataFileDetails.cs | 1 + .../models/SaveSqlTuningSetAsDetails.cs | 378 ++++++++++++++++ .../models/SqlInSqlTuningSet.cs | 75 ++++ Databasemanagement/models/SqlMetrics.cs | 61 +++ Databasemanagement/models/SqlTuningSet.cs | 112 +++++ .../models/SqlTuningSetAdminActionStatus.cs | 88 ++++ .../SqlTuningSetAdminCredentialDetails.cs | 102 +++++ ...TuningSetAdminPasswordCredentialDetails.cs | 37 ++ ...qlTuningSetAdminSecretCredentialDetails.cs | 40 ++ .../models/SqlTuningSetStatusTypes.cs | 47 ++ .../models/SqlTuningSetSummary.cs | 37 ++ .../models/StartSqlTuningTaskDetails.cs | 1 + ...ateExternalDbSystemMacsConnectorDetails.cs | 4 - .../models/UpdateTablespaceDetails.cs | 1 + .../models/ValidateBasicFilterDetails.cs | 66 +++ .../models/WorkRequestResourceActionType.cs | 2 + .../requests/CreateSqlTuningSetRequest.cs | 59 +++ .../requests/DropSqlTuningSetRequest.cs | 69 +++ .../requests/DropSqlsInSqlTuningSetRequest.cs | 69 +++ .../requests/FetchSqlTuningSetRequest.cs | 69 +++ .../requests/LoadSqlTuningSetRequest.cs | 69 +++ .../requests/ModifySnapshotSettingsRequest.cs | 48 ++ .../requests/SaveSqlTuningSetAsRequest.cs | 69 +++ .../requests/ValidateBasicFilterRequest.cs | 69 +++ .../responses/CreateSqlTuningSetResponse.cs | 33 ++ .../responses/DropSqlTuningSetResponse.cs | 33 ++ .../DropSqlsInSqlTuningSetResponse.cs | 33 ++ .../responses/FetchSqlTuningSetResponse.cs | 33 ++ .../responses/LoadSqlTuningSetResponse.cs | 33 ++ .../ModifySnapshotSettingsResponse.cs | 29 ++ .../responses/SaveSqlTuningSetAsResponse.cs | 33 ++ .../responses/ValidateBasicFilterResponse.cs | 33 ++ .../models/ManagedInstanceGroup.cs | 6 + Stackmonitoring/StackMonitoringClient.cs | 355 +++++++++++++++ Stackmonitoring/StackMonitoringPaginators.cs | 49 +++ Stackmonitoring/StackMonitoringWaiters.cs | 28 ++ .../models/AutoPromoteConfigDetails.cs | 64 +++ .../models/AutoPromoteConfigSummary.cs | 61 +++ .../models/ChangeConfigCompartmentDetails.cs | 37 ++ Stackmonitoring/models/Config.cs | 168 +++++++ Stackmonitoring/models/ConfigCollection.cs | 35 ++ Stackmonitoring/models/ConfigSummary.cs | 126 ++++++ .../models/CreateAutoPromoteConfigDetails.cs | 58 +++ Stackmonitoring/models/CreateConfigDetails.cs | 86 ++++ .../models/UpdateAutoPromoteConfigDetails.cs | 34 ++ Stackmonitoring/models/UpdateConfigDetails.cs | 76 ++++ .../ChangeConfigCompartmentRequest.cs | 72 +++ .../requests/CreateConfigRequest.cs | 51 +++ .../requests/DeleteConfigRequest.cs | 51 +++ Stackmonitoring/requests/GetConfigRequest.cs | 40 ++ .../requests/ListConfigsRequest.cs | 109 +++++ .../requests/UpdateConfigRequest.cs | 61 +++ .../ChangeConfigCompartmentResponse.cs | 29 ++ .../responses/CreateConfigResponse.cs | 41 ++ .../responses/DeleteConfigResponse.cs | 29 ++ .../responses/GetConfigResponse.cs | 41 ++ .../responses/ListConfigsResponse.cs | 43 ++ .../responses/UpdateConfigResponse.cs | 41 ++ 136 files changed, 5398 insertions(+), 198 deletions(-) create mode 100644 Aivision/models/Face.cs create mode 100644 Aivision/models/FaceDetectionFeature.cs create mode 100644 Aivision/models/Landmark.cs create mode 100644 Databasemanagement/PerfhubClient.cs create mode 100644 Databasemanagement/models/CreateSqlTuningSetDetails.cs create mode 100644 Databasemanagement/models/DropSqlTuningSetDetails.cs create mode 100644 Databasemanagement/models/DropSqlsInSqlTuningSetDetails.cs create mode 100644 Databasemanagement/models/FetchSqlTuningSetDetails.cs create mode 100644 Databasemanagement/models/LoadSqlTuningSetDetails.cs create mode 100644 Databasemanagement/models/ModifySnapshotSettingsDetails.cs create mode 100644 Databasemanagement/models/RankingMeasure.cs create mode 100644 Databasemanagement/models/SaveSqlTuningSetAsDetails.cs create mode 100644 Databasemanagement/models/SqlInSqlTuningSet.cs create mode 100644 Databasemanagement/models/SqlMetrics.cs create mode 100644 Databasemanagement/models/SqlTuningSet.cs create mode 100644 Databasemanagement/models/SqlTuningSetAdminActionStatus.cs create mode 100644 Databasemanagement/models/SqlTuningSetAdminCredentialDetails.cs create mode 100644 Databasemanagement/models/SqlTuningSetAdminPasswordCredentialDetails.cs create mode 100644 Databasemanagement/models/SqlTuningSetAdminSecretCredentialDetails.cs create mode 100644 Databasemanagement/models/SqlTuningSetStatusTypes.cs create mode 100644 Databasemanagement/models/ValidateBasicFilterDetails.cs create mode 100644 Databasemanagement/requests/CreateSqlTuningSetRequest.cs create mode 100644 Databasemanagement/requests/DropSqlTuningSetRequest.cs create mode 100644 Databasemanagement/requests/DropSqlsInSqlTuningSetRequest.cs create mode 100644 Databasemanagement/requests/FetchSqlTuningSetRequest.cs create mode 100644 Databasemanagement/requests/LoadSqlTuningSetRequest.cs create mode 100644 Databasemanagement/requests/ModifySnapshotSettingsRequest.cs create mode 100644 Databasemanagement/requests/SaveSqlTuningSetAsRequest.cs create mode 100644 Databasemanagement/requests/ValidateBasicFilterRequest.cs create mode 100644 Databasemanagement/responses/CreateSqlTuningSetResponse.cs create mode 100644 Databasemanagement/responses/DropSqlTuningSetResponse.cs create mode 100644 Databasemanagement/responses/DropSqlsInSqlTuningSetResponse.cs create mode 100644 Databasemanagement/responses/FetchSqlTuningSetResponse.cs create mode 100644 Databasemanagement/responses/LoadSqlTuningSetResponse.cs create mode 100644 Databasemanagement/responses/ModifySnapshotSettingsResponse.cs create mode 100644 Databasemanagement/responses/SaveSqlTuningSetAsResponse.cs create mode 100644 Databasemanagement/responses/ValidateBasicFilterResponse.cs create mode 100644 Stackmonitoring/models/AutoPromoteConfigDetails.cs create mode 100644 Stackmonitoring/models/AutoPromoteConfigSummary.cs create mode 100644 Stackmonitoring/models/ChangeConfigCompartmentDetails.cs create mode 100644 Stackmonitoring/models/Config.cs create mode 100644 Stackmonitoring/models/ConfigCollection.cs create mode 100644 Stackmonitoring/models/ConfigSummary.cs create mode 100644 Stackmonitoring/models/CreateAutoPromoteConfigDetails.cs create mode 100644 Stackmonitoring/models/CreateConfigDetails.cs create mode 100644 Stackmonitoring/models/UpdateAutoPromoteConfigDetails.cs create mode 100644 Stackmonitoring/models/UpdateConfigDetails.cs create mode 100644 Stackmonitoring/requests/ChangeConfigCompartmentRequest.cs create mode 100644 Stackmonitoring/requests/CreateConfigRequest.cs create mode 100644 Stackmonitoring/requests/DeleteConfigRequest.cs create mode 100644 Stackmonitoring/requests/GetConfigRequest.cs create mode 100644 Stackmonitoring/requests/ListConfigsRequest.cs create mode 100644 Stackmonitoring/requests/UpdateConfigRequest.cs create mode 100644 Stackmonitoring/responses/ChangeConfigCompartmentResponse.cs create mode 100644 Stackmonitoring/responses/CreateConfigResponse.cs create mode 100644 Stackmonitoring/responses/DeleteConfigResponse.cs create mode 100644 Stackmonitoring/responses/GetConfigResponse.cs create mode 100644 Stackmonitoring/responses/ListConfigsResponse.cs create mode 100644 Stackmonitoring/responses/UpdateConfigResponse.cs diff --git a/Aivision/models/AnalyzeImageResult.cs b/Aivision/models/AnalyzeImageResult.cs index e75466777c..01d0ed55dc 100644 --- a/Aivision/models/AnalyzeImageResult.cs +++ b/Aivision/models/AnalyzeImageResult.cs @@ -42,6 +42,12 @@ public class AnalyzeImageResult [JsonProperty(PropertyName = "imageText")] public ImageText ImageText { get; set; } + /// + /// The detected faces. + /// + [JsonProperty(PropertyName = "detectedFaces")] + public System.Collections.Generic.List DetectedFaces { get; set; } + /// /// The image classification model version. /// @@ -60,6 +66,12 @@ public class AnalyzeImageResult [JsonProperty(PropertyName = "textDetectionModelVersion")] public string TextDetectionModelVersion { get; set; } + /// + /// The face detection model version. + /// + [JsonProperty(PropertyName = "faceDetectionModelVersion")] + public string FaceDetectionModelVersion { get; set; } + /// /// The errors encountered during image analysis. /// diff --git a/Aivision/models/DataScienceLabelingDataset.cs b/Aivision/models/DataScienceLabelingDataset.cs index 5926d455e3..36b5bfa9da 100644 --- a/Aivision/models/DataScienceLabelingDataset.cs +++ b/Aivision/models/DataScienceLabelingDataset.cs @@ -24,6 +24,10 @@ public class DataScienceLabelingDataset : Dataset /// /// OCID of the Data Labeling dataset. /// + /// + /// Required + /// + [Required(ErrorMessage = "DatasetId is required.")] [JsonProperty(PropertyName = "datasetId")] public string DatasetId { get; set; } diff --git a/Aivision/models/Face.cs b/Aivision/models/Face.cs new file mode 100644 index 0000000000..766565483a --- /dev/null +++ b/Aivision/models/Face.cs @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.AivisionService.Models +{ + /// + /// The detected face. + /// + public class Face + { + + /// + /// The confidence score, between 0 and 1. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Confidence is required.")] + [JsonProperty(PropertyName = "confidence")] + public System.Nullable Confidence { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "BoundingPolygon is required.")] + [JsonProperty(PropertyName = "boundingPolygon")] + public BoundingPolygon BoundingPolygon { get; set; } + + /// + /// The quality score of the face detected, between 0 and 1. + /// + /// + /// Required + /// + [Required(ErrorMessage = "QualityScore is required.")] + [JsonProperty(PropertyName = "qualityScore")] + public System.Nullable QualityScore { get; set; } + + /// + /// A point of interest within a face. + /// + [JsonProperty(PropertyName = "landmarks")] + public System.Collections.Generic.List Landmarks { get; set; } + + } +} diff --git a/Aivision/models/FaceDetectionFeature.cs b/Aivision/models/FaceDetectionFeature.cs new file mode 100644 index 0000000000..c4506e5b8c --- /dev/null +++ b/Aivision/models/FaceDetectionFeature.cs @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.AivisionService.Models +{ + /// + /// The face detection parameters. + /// + public class FaceDetectionFeature : ImageFeature + { + + /// + /// The maximum number of results to return. + /// + [JsonProperty(PropertyName = "maxResults")] + public System.Nullable MaxResults { get; set; } + + /// + /// Whether or not return face landmarks. + /// + [JsonProperty(PropertyName = "shouldReturnLandmarks")] + public System.Nullable ShouldReturnLandmarks { get; set; } + + [JsonProperty(PropertyName = "featureType")] + private readonly string featureType = "FACE_DETECTION"; + } +} diff --git a/Aivision/models/ImageFeature.cs b/Aivision/models/ImageFeature.cs index e119abfd56..0d4a7be44d 100644 --- a/Aivision/models/ImageFeature.cs +++ b/Aivision/models/ImageFeature.cs @@ -27,7 +27,8 @@ public class ImageFeature /// The allowed values are: /// - `IMAGE_CLASSIFICATION`: Label the image. /// - `OBJECT_DETECTION`: Identify objects in the image with bounding boxes. - /// - `TEXT_DETECTION`: Recognize text in the image. + /// - `TEXT_DETECTION`: Recognize text at the word and line level. + /// - `FACE_DETECTION`: Identify faces in the image with bounding boxes and face landmarks. /// /// /// @@ -37,7 +38,9 @@ public enum FeatureTypeEnum { [EnumMember(Value = "OBJECT_DETECTION")] ObjectDetection, [EnumMember(Value = "TEXT_DETECTION")] - TextDetection + TextDetection, + [EnumMember(Value = "FACE_DETECTION")] + FaceDetection }; @@ -67,6 +70,9 @@ public override object ReadJson(JsonReader reader, System.Type objectType, objec case "TEXT_DETECTION": obj = new ImageTextDetectionFeature(); break; + case "FACE_DETECTION": + obj = new FaceDetectionFeature(); + break; case "OBJECT_DETECTION": obj = new ImageObjectDetectionFeature(); break; diff --git a/Aivision/models/Landmark.cs b/Aivision/models/Landmark.cs new file mode 100644 index 0000000000..55c82786e3 --- /dev/null +++ b/Aivision/models/Landmark.cs @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.AivisionService.Models +{ + /// + /// The landmark on the face. + /// + public class Landmark + { + /// + /// + /// The face landmark type + /// + /// + public enum TypeEnum { + /// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK. + [EnumMember(Value = null)] + UnknownEnumValue, + [EnumMember(Value = "LEFT_EYE")] + LeftEye, + [EnumMember(Value = "RIGHT_EYE")] + RightEye, + [EnumMember(Value = "NOSE_TIP")] + NoseTip, + [EnumMember(Value = "LEFT_EDGE_OF_MOUTH")] + LeftEdgeOfMouth, + [EnumMember(Value = "RIGHT_EDGE_OF_MOUTH")] + RightEdgeOfMouth + }; + + /// + /// The face landmark type + /// + /// + /// Required + /// + [Required(ErrorMessage = "Type is required.")] + [JsonProperty(PropertyName = "type")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Type { get; set; } + + /// + /// The X-axis normalized coordinate. + /// + /// + /// Required + /// + [Required(ErrorMessage = "X is required.")] + [JsonProperty(PropertyName = "x")] + public System.Nullable X { get; set; } + + /// + /// The Y-axis normalized coordinate. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Y is required.")] + [JsonProperty(PropertyName = "y")] + public System.Nullable Y { get; set; } + + } +} diff --git a/Aivision/models/ObjectStorageDataset.cs b/Aivision/models/ObjectStorageDataset.cs index 6ee057ecd3..85d24900ab 100644 --- a/Aivision/models/ObjectStorageDataset.cs +++ b/Aivision/models/ObjectStorageDataset.cs @@ -24,18 +24,30 @@ public class ObjectStorageDataset : Dataset /// /// The namespace name of the Object Storage bucket that contains the input data file. /// + /// + /// Required + /// + [Required(ErrorMessage = "NamespaceName is required.")] [JsonProperty(PropertyName = "namespaceName")] public string NamespaceName { get; set; } /// /// The name of the Object Storage bucket that contains the input data file. /// + /// + /// Required + /// + [Required(ErrorMessage = "BucketName is required.")] [JsonProperty(PropertyName = "bucketName")] public string BucketName { get; set; } /// /// The object name of the input data file. /// + /// + /// Required + /// + [Required(ErrorMessage = "ObjectName is required.")] [JsonProperty(PropertyName = "objectName")] public string ObjectName { get; set; } diff --git a/Aivision/requests/CancelDocumentJobRequest.cs b/Aivision/requests/CancelDocumentJobRequest.cs index 7968709045..06290d500b 100644 --- a/Aivision/requests/CancelDocumentJobRequest.cs +++ b/Aivision/requests/CancelDocumentJobRequest.cs @@ -20,7 +20,7 @@ public class CancelDocumentJobRequest : Oci.Common.IOciRequest { /// - /// Document job id. + /// The document job ID. /// /// /// Required diff --git a/Aivision/requests/CancelImageJobRequest.cs b/Aivision/requests/CancelImageJobRequest.cs index 557b8d514f..1ae1d765ca 100644 --- a/Aivision/requests/CancelImageJobRequest.cs +++ b/Aivision/requests/CancelImageJobRequest.cs @@ -20,7 +20,7 @@ public class CancelImageJobRequest : Oci.Common.IOciRequest { /// - /// Image job id. + /// The image job ID. /// /// /// Required diff --git a/Aivision/requests/GetDocumentJobRequest.cs b/Aivision/requests/GetDocumentJobRequest.cs index 82791b67e5..b829375d15 100644 --- a/Aivision/requests/GetDocumentJobRequest.cs +++ b/Aivision/requests/GetDocumentJobRequest.cs @@ -20,7 +20,7 @@ public class GetDocumentJobRequest : Oci.Common.IOciRequest { /// - /// Document job id. + /// The document job ID. /// /// /// Required diff --git a/Aivision/requests/GetImageJobRequest.cs b/Aivision/requests/GetImageJobRequest.cs index 7ee18e426a..d26578d241 100644 --- a/Aivision/requests/GetImageJobRequest.cs +++ b/Aivision/requests/GetImageJobRequest.cs @@ -20,7 +20,7 @@ public class GetImageJobRequest : Oci.Common.IOciRequest { /// - /// Image job id. + /// The image job ID. /// /// /// Required diff --git a/Announcementsservice/models/AnnouncementSubscription.cs b/Announcementsservice/models/AnnouncementSubscription.cs index cbdcc0fc10..c659c3b9aa 100644 --- a/Announcementsservice/models/AnnouncementSubscription.cs +++ b/Announcementsservice/models/AnnouncementSubscription.cs @@ -130,13 +130,13 @@ public enum LifecycleStateEnum { public System.Collections.Generic.Dictionary FilterGroups { get; set; } /// - /// (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. /// [JsonProperty(PropertyName = "preferredLanguage")] public string PreferredLanguage { get; set; } /// - /// 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 /// [JsonProperty(PropertyName = "preferredTimeZone")] public string PreferredTimeZone { get; set; } diff --git a/Announcementsservice/models/BaseAnnouncement.cs b/Announcementsservice/models/BaseAnnouncement.cs index ead6b48ef7..ccb95bf50a 100644 --- a/Announcementsservice/models/BaseAnnouncement.cs +++ b/Announcementsservice/models/BaseAnnouncement.cs @@ -274,6 +274,12 @@ public enum PlatformTypeEnum { [JsonConverter(typeof(StringEnumConverter))] public System.Nullable PlatformType { get; set; } + /// + /// The sequence of connected announcements, or announcement chain, that this announcement belongs to. Related announcements share the same chain ID. + /// + [JsonProperty(PropertyName = "chainId")] + public string ChainId { get; set; } + } public class BaseAnnouncementModelConverter : JsonConverter diff --git a/Announcementsservice/models/BaseAnnouncementsPreferences.cs b/Announcementsservice/models/BaseAnnouncementsPreferences.cs index 75425f60b0..b0d65d6037 100644 --- a/Announcementsservice/models/BaseAnnouncementsPreferences.cs +++ b/Announcementsservice/models/BaseAnnouncementsPreferences.cs @@ -65,7 +65,7 @@ public class BaseAnnouncementsPreferences public System.Nullable PreferenceType { get; set; } /// - /// 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 /// [JsonProperty(PropertyName = "preferredTimeZone")] public string PreferredTimeZone { get; set; } diff --git a/Announcementsservice/models/BaseCreateAnnouncementsPreferencesDetails.cs b/Announcementsservice/models/BaseCreateAnnouncementsPreferencesDetails.cs index a568c74927..c9983e0c19 100644 --- a/Announcementsservice/models/BaseCreateAnnouncementsPreferencesDetails.cs +++ b/Announcementsservice/models/BaseCreateAnnouncementsPreferencesDetails.cs @@ -64,7 +64,7 @@ public enum PreferenceTypeEnum { public System.Nullable PreferenceType { get; set; } /// - /// 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 /// [JsonProperty(PropertyName = "preferredTimeZone")] public string PreferredTimeZone { get; set; } diff --git a/Announcementsservice/models/CreateAnnouncementSubscriptionDetails.cs b/Announcementsservice/models/CreateAnnouncementSubscriptionDetails.cs index eba4253b0c..f37325fb3f 100644 --- a/Announcementsservice/models/CreateAnnouncementSubscriptionDetails.cs +++ b/Announcementsservice/models/CreateAnnouncementSubscriptionDetails.cs @@ -67,13 +67,13 @@ public class CreateAnnouncementSubscriptionDetails public System.Collections.Generic.Dictionary FilterGroups { get; set; } /// - /// (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. /// [JsonProperty(PropertyName = "preferredLanguage")] public string PreferredLanguage { get; set; } /// - /// 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 /// [JsonProperty(PropertyName = "preferredTimeZone")] public string PreferredTimeZone { get; set; } diff --git a/Announcementsservice/models/Filter.cs b/Announcementsservice/models/Filter.cs index 667988cc95..77b0d3db28 100644 --- a/Announcementsservice/models/Filter.cs +++ b/Announcementsservice/models/Filter.cs @@ -16,13 +16,13 @@ namespace Oci.AnnouncementsService.Models { /// - /// Criteria that the Announcements service uses to match announcements in order to provide only desired, matching announcements. + /// Criteria that the Announcements service uses to match announcements so it can provide only desired announcements to subscribers. /// public class Filter { /// /// - /// 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. /// /// public enum TypeEnum { @@ -44,7 +44,7 @@ public enum TypeEnum { }; /// - /// 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. /// /// /// Required diff --git a/Announcementsservice/models/FilterGroup.cs b/Announcementsservice/models/FilterGroup.cs index 77064b3aa8..08cae1a565 100644 --- a/Announcementsservice/models/FilterGroup.cs +++ b/Announcementsservice/models/FilterGroup.cs @@ -32,7 +32,7 @@ public class FilterGroup public string Name { get; set; } /// - /// 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. /// /// /// Required diff --git a/Announcementsservice/models/FilterGroupDetails.cs b/Announcementsservice/models/FilterGroupDetails.cs index 7a4c0e190f..21609da349 100644 --- a/Announcementsservice/models/FilterGroupDetails.cs +++ b/Announcementsservice/models/FilterGroupDetails.cs @@ -22,7 +22,7 @@ public class FilterGroupDetails { /// - /// 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. /// /// /// Required diff --git a/Announcementsservice/models/UpdateAnnouncementSubscriptionDetails.cs b/Announcementsservice/models/UpdateAnnouncementSubscriptionDetails.cs index 0d12eae615..f9e1e2c07b 100644 --- a/Announcementsservice/models/UpdateAnnouncementSubscriptionDetails.cs +++ b/Announcementsservice/models/UpdateAnnouncementSubscriptionDetails.cs @@ -41,13 +41,13 @@ public class UpdateAnnouncementSubscriptionDetails public string OnsTopicId { get; set; } /// - /// (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. /// [JsonProperty(PropertyName = "preferredLanguage")] public string PreferredLanguage { get; set; } /// - /// 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 /// [JsonProperty(PropertyName = "preferredTimeZone")] public string PreferredTimeZone { get; set; } diff --git a/Announcementsservice/models/UpdateFilterGroupDetails.cs b/Announcementsservice/models/UpdateFilterGroupDetails.cs index 26ae3ed0a8..83b86355fc 100644 --- a/Announcementsservice/models/UpdateFilterGroupDetails.cs +++ b/Announcementsservice/models/UpdateFilterGroupDetails.cs @@ -22,7 +22,7 @@ public class UpdateFilterGroupDetails { /// - /// 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. /// /// /// Required diff --git a/Announcementsservice/requests/ListAnnouncementsRequest.cs b/Announcementsservice/requests/ListAnnouncementsRequest.cs index efa91b9a60..e7e3c30a0f 100644 --- a/Announcementsservice/requests/ListAnnouncementsRequest.cs +++ b/Announcementsservice/requests/ListAnnouncementsRequest.cs @@ -168,6 +168,18 @@ public enum PlatformTypeEnum { [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "excludeAnnouncementTypes", Oci.Common.Http.CollectionFormatType.Multi)] public System.Collections.Generic.List ExcludeAnnouncementTypes { get; set; } + /// + /// A filter to display only the latest announcement in a chain. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "shouldShowOnlyLatestInChain")] + public System.Nullable ShouldShowOnlyLatestInChain { get; set; } + + /// + /// A filter to return only announcements belonging to the specified announcement chain ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "chainId")] + public string ChainId { get; set; } + /// /// The unique Oracle-assigned identifier for the request. If you need to contact Oracle about /// a particular request, please provide the complete request ID. diff --git a/CHANGELOG.md b/CHANGELOG.md index 233c6213cf..767280c723 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file. The format is based on Keep a [Changelog](http://keepachangelog.com/). +## 71.1.0 - 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 + ## 71.0.0 - 2023-09-05 ### Added - Support for queue channels in the Queue Service diff --git a/Common/Src/Version.cs b/Common/Src/Version.cs index fe83439564..b372bdc20f 100644 --- a/Common/Src/Version.cs +++ b/Common/Src/Version.cs @@ -8,7 +8,7 @@ namespace Oci.Common public class Version { public static string MAJOR = "71"; - public static string MINOR = "0"; + public static string MINOR = "1"; public static string PATCH = "0"; public static string TAG = ""; diff --git a/Database/DatabaseClient.cs b/Database/DatabaseClient.cs index f52b73ddad..906f130aee 100644 --- a/Database/DatabaseClient.cs +++ b/Database/DatabaseClient.cs @@ -1112,7 +1112,7 @@ public async Task ChangeDbSystemCompartment(C } /// - /// This operation updates the cross-region disaster recovery (DR) details of the standby Shared Autonomous Database, and must be run on the standby side. + /// 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. /// /// The request object containing the details to send. Required. /// The retry configuration that will be used by to send this request. Optional. @@ -10757,7 +10757,7 @@ public async Task ListAutonomousDatabases(ListA /// /// 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. /// /// /// The request object containing the details to send. Required. diff --git a/Database/models/AutonomousDatabase.cs b/Database/models/AutonomousDatabase.cs index ff944191d3..95efc47f13 100644 --- a/Database/models/AutonomousDatabase.cs +++ b/Database/models/AutonomousDatabase.cs @@ -261,8 +261,8 @@ public enum ComputeModelEnum { public System.Nullable ComputeModel { get; set; } /// - /// 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. /// /// [JsonProperty(PropertyName = "computeCount")] @@ -284,10 +284,10 @@ public enum ComputeModelEnum { /// 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. /// @@ -392,10 +392,10 @@ public enum InfrastructureTypeEnum { public AutonomousDatabaseConnectionUrls ConnectionUrls { get; set; } /// /// - /// 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. /// @@ -412,10 +412,10 @@ public enum LicenseModelEnum { }; /// - /// 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. /// @@ -560,12 +560,12 @@ public enum DbWorkloadEnum { public System.Nullable IsAccessControlEnabled { get; set; } /// - /// 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. + /// 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 notations. ///
[JsonProperty(PropertyName = "whitelistedIps")] public System.Collections.Generic.List WhitelistedIps { get; set; } @@ -580,12 +580,12 @@ public enum DbWorkloadEnum { public System.Nullable ArePrimaryWhitelistedIpsUsed { get; set; } /// - /// 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. + /// 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 notations. ///
[JsonProperty(PropertyName = "standbyWhitelistedIps")] public System.Collections.Generic.List StandbyWhitelistedIps { get; set; } @@ -943,7 +943,7 @@ public enum RoleEnum { public System.Nullable TimeLocalDataGuardEnabled { get; set; } /// /// - /// 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. /// /// public enum DataguardRegionTypeEnum { @@ -957,7 +957,7 @@ public enum DataguardRegionTypeEnum { }; /// - /// 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. /// [JsonProperty(PropertyName = "dataguardRegionType")] [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] @@ -970,7 +970,7 @@ public enum DataguardRegionTypeEnum { public System.Nullable TimeDataGuardRoleChanged { get; set; } /// - /// 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. /// [JsonProperty(PropertyName = "peerDbIds")] public System.Collections.Generic.List PeerDbIds { get; set; } @@ -984,7 +984,7 @@ public enum DataguardRegionTypeEnum { /// - 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. /// @@ -1005,8 +1005,8 @@ public enum DataguardRegionTypeEnum { public System.Nullable TimeUntilReconnectCloneEnabled { get; set; } /// /// - /// 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 /// /// /// @@ -1021,8 +1021,8 @@ public enum AutonomousMaintenanceScheduleTypeEnum { }; /// - /// 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 /// /// [JsonProperty(PropertyName = "autonomousMaintenanceScheduleType")] @@ -1101,7 +1101,7 @@ public enum DatabaseEditionEnum { public System.Collections.Generic.List DbToolsDetails { get; set; } /// - /// 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. /// @@ -1111,7 +1111,7 @@ public enum DatabaseEditionEnum { public System.Nullable LocalDisasterRecoveryType { get; set; } /// /// - /// 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. /// /// public enum DisasterRecoveryRegionTypeEnum { @@ -1125,7 +1125,7 @@ public enum DisasterRecoveryRegionTypeEnum { }; /// - /// 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. /// [JsonProperty(PropertyName = "disasterRecoveryRegionType")] [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] diff --git a/Database/models/AutonomousDatabaseSummary.cs b/Database/models/AutonomousDatabaseSummary.cs index c9e9757dc8..5613a08c1a 100644 --- a/Database/models/AutonomousDatabaseSummary.cs +++ b/Database/models/AutonomousDatabaseSummary.cs @@ -263,8 +263,8 @@ public enum ComputeModelEnum { public System.Nullable ComputeModel { get; set; } /// - /// 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. /// /// [JsonProperty(PropertyName = "computeCount")] @@ -286,10 +286,10 @@ public enum ComputeModelEnum { /// 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. /// @@ -394,10 +394,10 @@ public enum InfrastructureTypeEnum { public AutonomousDatabaseConnectionUrls ConnectionUrls { get; set; } /// /// - /// 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. /// @@ -414,10 +414,10 @@ public enum LicenseModelEnum { }; /// - /// 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. /// @@ -562,12 +562,12 @@ public enum DbWorkloadEnum { public System.Nullable IsAccessControlEnabled { get; set; } /// - /// 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. + /// 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 notations. ///
[JsonProperty(PropertyName = "whitelistedIps")] public System.Collections.Generic.List WhitelistedIps { get; set; } @@ -582,12 +582,12 @@ public enum DbWorkloadEnum { public System.Nullable ArePrimaryWhitelistedIpsUsed { get; set; } /// - /// 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. + /// 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 notations. ///
[JsonProperty(PropertyName = "standbyWhitelistedIps")] public System.Collections.Generic.List StandbyWhitelistedIps { get; set; } @@ -945,7 +945,7 @@ public enum RoleEnum { public System.Nullable TimeLocalDataGuardEnabled { get; set; } /// /// - /// 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. /// /// public enum DataguardRegionTypeEnum { @@ -959,7 +959,7 @@ public enum DataguardRegionTypeEnum { }; /// - /// 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. /// [JsonProperty(PropertyName = "dataguardRegionType")] [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] @@ -972,7 +972,7 @@ public enum DataguardRegionTypeEnum { public System.Nullable TimeDataGuardRoleChanged { get; set; } /// - /// 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. /// [JsonProperty(PropertyName = "peerDbIds")] public System.Collections.Generic.List PeerDbIds { get; set; } @@ -986,7 +986,7 @@ public enum DataguardRegionTypeEnum { /// - 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. /// @@ -1007,8 +1007,8 @@ public enum DataguardRegionTypeEnum { public System.Nullable TimeUntilReconnectCloneEnabled { get; set; } /// /// - /// 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 /// /// /// @@ -1023,8 +1023,8 @@ public enum AutonomousMaintenanceScheduleTypeEnum { }; /// - /// 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 /// /// [JsonProperty(PropertyName = "autonomousMaintenanceScheduleType")] @@ -1103,7 +1103,7 @@ public enum DatabaseEditionEnum { public System.Collections.Generic.List DbToolsDetails { get; set; } /// - /// 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. /// @@ -1113,7 +1113,7 @@ public enum DatabaseEditionEnum { public System.Nullable LocalDisasterRecoveryType { get; set; } /// /// - /// 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. /// /// public enum DisasterRecoveryRegionTypeEnum { @@ -1127,7 +1127,7 @@ public enum DisasterRecoveryRegionTypeEnum { }; /// - /// 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. /// [JsonProperty(PropertyName = "disasterRecoveryRegionType")] [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] diff --git a/Database/models/AutonomousDbPreviewVersionSummary.cs b/Database/models/AutonomousDbPreviewVersionSummary.cs index dcebbf1435..2f9bc820af 100644 --- a/Database/models/AutonomousDbPreviewVersionSummary.cs +++ b/Database/models/AutonomousDbPreviewVersionSummary.cs @@ -16,7 +16,7 @@ namespace Oci.DatabaseService.Models { /// - /// 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). + /// 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). /// /// public class AutonomousDbPreviewVersionSummary diff --git a/Database/models/ChangeDisasterRecoveryConfigurationDetails.cs b/Database/models/ChangeDisasterRecoveryConfigurationDetails.cs index a35d03d83e..4372f52f35 100644 --- a/Database/models/ChangeDisasterRecoveryConfigurationDetails.cs +++ b/Database/models/ChangeDisasterRecoveryConfigurationDetails.cs @@ -16,13 +16,13 @@ namespace Oci.DatabaseService.Models { /// - /// Details to update the cross-region Disaster Recovery (DR) details of the Standby Autonomous Database on shared Exadata infrastructure. + /// Details to update the cross-region disaster recovery (DR) details of the standby Autonomous Database Serverless instance. /// public class ChangeDisasterRecoveryConfigurationDetails { /// /// - /// 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. /// @@ -36,7 +36,7 @@ public enum DisasterRecoveryTypeEnum { }; /// - /// 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. /// diff --git a/Database/models/CloudAutonomousVmCluster.cs b/Database/models/CloudAutonomousVmCluster.cs index b78fe1a455..062430d80b 100644 --- a/Database/models/CloudAutonomousVmCluster.cs +++ b/Database/models/CloudAutonomousVmCluster.cs @@ -262,10 +262,10 @@ public enum ComputeModelEnum { public System.Nullable MemorySizeInGBs { get; set; } /// /// - /// 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. /// @@ -282,10 +282,10 @@ public enum LicenseModelEnum { }; /// - /// 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. /// diff --git a/Database/models/CloudAutonomousVmClusterSummary.cs b/Database/models/CloudAutonomousVmClusterSummary.cs index 26da610c83..25e3063543 100644 --- a/Database/models/CloudAutonomousVmClusterSummary.cs +++ b/Database/models/CloudAutonomousVmClusterSummary.cs @@ -262,10 +262,10 @@ public enum ComputeModelEnum { public System.Nullable MemorySizeInGBs { get; set; } /// /// - /// 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. /// @@ -282,10 +282,10 @@ public enum LicenseModelEnum { }; /// - /// 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. /// diff --git a/Database/models/CreateAutonomousDatabaseBase.cs b/Database/models/CreateAutonomousDatabaseBase.cs index 786dbbd6d6..a255aedd9a 100644 --- a/Database/models/CreateAutonomousDatabaseBase.cs +++ b/Database/models/CreateAutonomousDatabaseBase.cs @@ -41,7 +41,7 @@ public class CreateAutonomousDatabaseBase public string CompartmentId { get; set; } /// - /// 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: ///
@@ -52,7 +52,7 @@ public class CreateAutonomousDatabaseBase public string CharacterSet { get; set; } /// - /// The character set for the Autonomous Database. The default is AL32UTF8. Use {@link #listAutonomousDatabaseCharacterSets(ListAutonomousDatabaseCharacterSetsRequest) 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. /// @@ -100,7 +100,7 @@ public enum ComputeModelEnum { public System.Nullable ComputeModel { get; set; } /// - /// 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. /// [JsonProperty(PropertyName = "computeCount")] public System.Nullable ComputeCount { get; set; } @@ -109,8 +109,8 @@ public enum ComputeModelEnum { /// 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. ///
@@ -201,7 +201,9 @@ public enum DbWorkloadEnum { public string VaultId { get; set; } /// - /// **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). /// ///
[JsonProperty(PropertyName = "adminPassword")] @@ -214,10 +216,10 @@ public enum DbWorkloadEnum { public string DisplayName { get; set; } /// /// - /// 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. /// @@ -231,10 +233,10 @@ public enum LicenseModelEnum { }; /// - /// 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. /// @@ -244,7 +246,7 @@ public enum LicenseModelEnum { public System.Nullable LicenseModel { get; set; } /// - /// 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). /// /// [JsonProperty(PropertyName = "isPreviewVersionWithServiceTermsAccepted")] @@ -290,12 +292,12 @@ public enum LicenseModelEnum { public System.Nullable IsAccessControlEnabled { get; set; } /// - /// 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. + /// 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 notations. ///
[JsonProperty(PropertyName = "whitelistedIps")] public System.Collections.Generic.List WhitelistedIps { get; set; } @@ -310,12 +312,12 @@ public enum LicenseModelEnum { public System.Nullable ArePrimaryWhitelistedIpsUsed { get; set; } /// - /// 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. + /// 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 notations. ///
[JsonProperty(PropertyName = "standbyWhitelistedIps")] public System.Collections.Generic.List StandbyWhitelistedIps { get; set; } @@ -399,7 +401,7 @@ public enum LicenseModelEnum { /// /// The source of the database: Use `NONE` for creating a new Autonomous Database. Use `DATABASE` for creating a new Autonomous Database by cloning an existing Autonomous Database. Use `CROSS_REGION_DATAGUARD` to create a standby Data Guard database in another region. ///
- /// For Autonomous Databases on [shared Exadata infrastructure](https://docs.oracle.com/en/cloud/paas/autonomous-database/index.html), the following cloning options are available: Use `BACKUP_FROM_ID` for creating a new Autonomous Database from a specified backup. Use `BACKUP_FROM_TIMESTAMP` for creating a point-in-time Autonomous Database clone using backups. For more information, see [Cloning and Moving an Autonomous Database](https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/clone-autonomous-database.html#GUID-D771796F-5081-4CFB-A7FF-0F893EABD7BC). + /// For [Autonomous Database Serverless instances](https://docs.oracle.com/en/cloud/paas/autonomous-database/shared/index.html), the following cloning options are available: Use `BACKUP_FROM_ID` for creating a new Autonomous Database from a specified backup. Use `BACKUP_FROM_TIMESTAMP` for creating a point-in-time Autonomous Database clone using backups. For more information, see [Cloning and Moving an Autonomous Database](https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/clone-autonomous-database.html#GUID-D771796F-5081-4CFB-A7FF-0F893EABD7BC). /// ///
/// @@ -436,7 +438,7 @@ public enum SourceEnum { /// - 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. /// @@ -445,8 +447,8 @@ public enum SourceEnum { public System.Nullable IsMtlsConnectionRequired { get; set; } /// /// - /// 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 /// /// /// @@ -458,8 +460,8 @@ public enum AutonomousMaintenanceScheduleTypeEnum { }; /// - /// 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 /// /// [JsonProperty(PropertyName = "autonomousMaintenanceScheduleType")] @@ -508,6 +510,9 @@ public enum AutonomousMaintenanceScheduleTypeEnum { /// /// The OCI vault secret [/Content/General/Concepts/identifiers.htm]OCID. + ///
+ /// This cannot be used in conjunction with adminPassword. + /// ///
[JsonProperty(PropertyName = "secretId")] public string SecretId { get; set; } diff --git a/Database/models/CreateCloudAutonomousVmClusterDetails.cs b/Database/models/CreateCloudAutonomousVmClusterDetails.cs index 6b02b7acce..d109effd20 100644 --- a/Database/models/CreateCloudAutonomousVmClusterDetails.cs +++ b/Database/models/CreateCloudAutonomousVmClusterDetails.cs @@ -148,10 +148,10 @@ public enum ComputeModelEnum { public System.Nullable ScanListenerPortNonTls { get; set; } /// /// - /// 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. /// @@ -165,10 +165,10 @@ public enum LicenseModelEnum { }; /// - /// 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. /// diff --git a/Database/models/CreateCrossRegionDisasterRecoveryDetails.cs b/Database/models/CreateCrossRegionDisasterRecoveryDetails.cs index 1d52625324..84e909a727 100644 --- a/Database/models/CreateCrossRegionDisasterRecoveryDetails.cs +++ b/Database/models/CreateCrossRegionDisasterRecoveryDetails.cs @@ -73,7 +73,7 @@ public class CreateCrossRegionDisasterRecoveryDetails : CreateAutonomousDatabase public string SourceId { get; set; } /// - /// 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. /// diff --git a/Database/models/DatabaseConnectionStringProfile.cs b/Database/models/DatabaseConnectionStringProfile.cs index d3b0b324bd..ced26507b7 100644 --- a/Database/models/DatabaseConnectionStringProfile.cs +++ b/Database/models/DatabaseConnectionStringProfile.cs @@ -167,7 +167,7 @@ public enum SessionModeEnum { /// /// /// 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. /// /// /// @@ -185,7 +185,7 @@ public enum SyntaxFormatEnum { /// /// 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. /// /// /// diff --git a/Database/models/DisasterRecoveryConfiguration.cs b/Database/models/DisasterRecoveryConfiguration.cs index af931ec577..58506afe85 100644 --- a/Database/models/DisasterRecoveryConfiguration.cs +++ b/Database/models/DisasterRecoveryConfiguration.cs @@ -22,7 +22,7 @@ public class DisasterRecoveryConfiguration { /// /// - /// 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. /// @@ -39,7 +39,7 @@ public enum DisasterRecoveryTypeEnum { }; /// - /// 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. /// diff --git a/Database/models/GenerateAutonomousDatabaseWalletDetails.cs b/Database/models/GenerateAutonomousDatabaseWalletDetails.cs index 78e3cb6256..fd76bebd77 100644 --- a/Database/models/GenerateAutonomousDatabaseWalletDetails.cs +++ b/Database/models/GenerateAutonomousDatabaseWalletDetails.cs @@ -25,7 +25,7 @@ public class GenerateAutonomousDatabaseWalletDetails /// /// 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 ///
@@ -43,7 +43,7 @@ public enum GenerateTypeEnum { /// /// 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 ///
diff --git a/Database/models/MaintenanceRun.cs b/Database/models/MaintenanceRun.cs index c7582b40e1..ac789cd6d3 100644 --- a/Database/models/MaintenanceRun.cs +++ b/Database/models/MaintenanceRun.cs @@ -59,7 +59,7 @@ public class MaintenanceRun public string Description { get; set; } /// /// - /// 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. /// /// /// @@ -88,7 +88,7 @@ public enum LifecycleStateEnum { }; /// - /// 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. /// /// /// diff --git a/Database/models/MaintenanceRunSummary.cs b/Database/models/MaintenanceRunSummary.cs index bd3d6398ef..e5fb58da48 100644 --- a/Database/models/MaintenanceRunSummary.cs +++ b/Database/models/MaintenanceRunSummary.cs @@ -59,7 +59,7 @@ public class MaintenanceRunSummary public string Description { get; set; } /// /// - /// 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. /// /// /// @@ -88,7 +88,7 @@ public enum LifecycleStateEnum { }; /// - /// 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. /// /// /// diff --git a/Database/models/Update.cs b/Database/models/Update.cs index 07c61d7cc8..cbbe9699bb 100644 --- a/Database/models/Update.cs +++ b/Database/models/Update.cs @@ -40,7 +40,7 @@ public class Update public string Description { get; set; } /// /// - /// The update action. + /// The previous update action performed. /// /// public enum LastActionEnum { @@ -58,15 +58,12 @@ public enum LastActionEnum { }; /// - /// The update action. + /// The previous update action performed. /// [JsonProperty(PropertyName = "lastAction")] [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] public System.Nullable LastAction { get; set; } /// - /// - /// The update action. - /// /// public enum AvailableActionsEnum { /// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK. diff --git a/Database/models/UpdateAutonomousDatabaseDetails.cs b/Database/models/UpdateAutonomousDatabaseDetails.cs index 17faa13f88..37d5f8c1ff 100644 --- a/Database/models/UpdateAutonomousDatabaseDetails.cs +++ b/Database/models/UpdateAutonomousDatabaseDetails.cs @@ -82,7 +82,7 @@ public enum ComputeModelEnum { public LongTermBackUpScheduleDetails LongTermBackupSchedule { get; set; } /// - /// 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. /// @@ -93,9 +93,9 @@ public enum ComputeModelEnum { /// /// 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. + /// 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://www.oracle.com/pls/topic/lookup?ctx=en/cloud/paas/autonomous-database&id=ATPFG-GUID-B0F033C1-CC5A-42F0-B2E7-3CECFEDA1FD1) for shape details. + /// 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. /// @@ -145,6 +145,8 @@ public enum ComputeModelEnum { /// /// 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. /// ///
@@ -153,8 +155,8 @@ public enum ComputeModelEnum { /// /// 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. /// @@ -218,10 +220,10 @@ public enum DbWorkloadEnum { public System.Nullable DbWorkload { get; set; } /// /// - /// 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. /// @@ -235,10 +237,10 @@ public enum LicenseModelEnum { }; /// - /// 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. /// @@ -261,12 +263,12 @@ public enum LicenseModelEnum { public System.Nullable IsAccessControlEnabled { get; set; } /// - /// 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. + /// 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 notations. ///
[JsonProperty(PropertyName = "whitelistedIps")] public System.Collections.Generic.List WhitelistedIps { get; set; } @@ -281,18 +283,18 @@ public enum LicenseModelEnum { public System.Nullable ArePrimaryWhitelistedIpsUsed { get; set; } /// - /// 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. + /// 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 notations. ///
[JsonProperty(PropertyName = "standbyWhitelistedIps")] public System.Collections.Generic.List StandbyWhitelistedIps { get; set; } /// - /// 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). /// /// [JsonProperty(PropertyName = "isAutoScalingEnabled")] @@ -329,9 +331,9 @@ public enum RefreshableModeEnum { /// 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 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 shared Exadata infrastructure, see {@link #createCrossRegionAutonomousDatabaseDataGuardDetails(CreateCrossRegionAutonomousDatabaseDataGuardDetailsRequest) createCrossRegionAutonomousDatabaseDataGuardDetails}. + /// 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. /// @@ -343,9 +345,9 @@ public enum RefreshableModeEnum { /// ** 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 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 shared Exadata infrastructure, see {@link #createCrossRegionAutonomousDatabaseDataGuardDetails(CreateCrossRegionAutonomousDatabaseDataGuardDetailsRequest) createCrossRegionAutonomousDatabaseDataGuardDetails}. + /// 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`. /// @@ -474,7 +476,7 @@ public enum PermissionLevelEnum { /// - 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. /// @@ -525,7 +527,7 @@ public enum PermissionLevelEnum { public System.Collections.Generic.List DbToolsDetails { get; set; } /// - /// 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. /// [JsonProperty(PropertyName = "secretId")] public string SecretId { get; set; } diff --git a/Database/models/UpdateCloudAutonomousVmClusterDetails.cs b/Database/models/UpdateCloudAutonomousVmClusterDetails.cs index 2a0f4cf7e6..f0bc0dda9c 100644 --- a/Database/models/UpdateCloudAutonomousVmClusterDetails.cs +++ b/Database/models/UpdateCloudAutonomousVmClusterDetails.cs @@ -38,10 +38,10 @@ public class UpdateCloudAutonomousVmClusterDetails public MaintenanceWindow MaintenanceWindowDetails { get; set; } /// /// - /// 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. /// @@ -55,10 +55,10 @@ public enum LicenseModelEnum { }; /// - /// 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. /// diff --git a/Database/models/UpdateSummary.cs b/Database/models/UpdateSummary.cs index f69d67a35d..e128af51a3 100644 --- a/Database/models/UpdateSummary.cs +++ b/Database/models/UpdateSummary.cs @@ -47,7 +47,7 @@ public class UpdateSummary public string Description { get; set; } /// /// - /// The update action. + /// The previous update action performed. /// /// public enum LastActionEnum { @@ -65,15 +65,12 @@ public enum LastActionEnum { }; /// - /// The update action. + /// The previous update action performed. /// [JsonProperty(PropertyName = "lastAction")] [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] public System.Nullable LastAction { get; set; } /// - /// - /// The update action. - /// /// public enum AvailableActionsEnum { /// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK. diff --git a/Database/requests/ChangeDisasterRecoveryConfigurationRequest.cs b/Database/requests/ChangeDisasterRecoveryConfigurationRequest.cs index 84ce9a5e66..67372ef938 100644 --- a/Database/requests/ChangeDisasterRecoveryConfigurationRequest.cs +++ b/Database/requests/ChangeDisasterRecoveryConfigurationRequest.cs @@ -30,7 +30,7 @@ public class ChangeDisasterRecoveryConfigurationRequest : Oci.Common.IOciRequest public string AutonomousDatabaseId { get; set; } /// - /// 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. /// /// /// Required diff --git a/Database/requests/ListAutonomousDatabaseCharacterSetsRequest.cs b/Database/requests/ListAutonomousDatabaseCharacterSetsRequest.cs index 8a5a913446..577235acea 100644 --- a/Database/requests/ListAutonomousDatabaseCharacterSetsRequest.cs +++ b/Database/requests/ListAutonomousDatabaseCharacterSetsRequest.cs @@ -27,12 +27,19 @@ public class ListAutonomousDatabaseCharacterSetsRequest : Oci.Common.IOciRequest public string OpcRequestId { get; set; } /// - /// 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. /// /// [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isShared")] public System.Nullable IsShared { get; set; } + /// + /// Specifies if the request is for an Autonomous Database Dedicated instance. The default request is for an Autonomous Database Dedicated instance. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isDedicated")] + public System.Nullable IsDedicated { get; set; } + /// /// /// Specifies whether this request pertains to database character sets or national character sets. diff --git a/Databasemanagement/PerfhubClient.cs b/Databasemanagement/PerfhubClient.cs new file mode 100644 index 0000000000..b5a8f8da63 --- /dev/null +++ b/Databasemanagement/PerfhubClient.cs @@ -0,0 +1,127 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System; +using System.Diagnostics; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Oci.Common; +using Oci.Common.Alloy; +using Oci.Common.Model; +using Oci.Common.Auth; +using Oci.Common.Retry; +using Oci.DatabasemanagementService.Requests; +using Oci.DatabasemanagementService.Responses; + +namespace Oci.DatabasemanagementService +{ + /// Service client instance for Perfhub. + public class PerfhubClient : RegionalClientBase + { + private readonly RetryConfiguration retryConfiguration; + private const string basePathWithoutHost = "/20201101"; + + /// + /// Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. + /// A client configuration can also be provided optionally to adjust REST client behaviors. + /// + /// The authentication details provider. Required. + /// The client configuration that contains settings to adjust REST client behaviors. Optional. + /// The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. + public PerfhubClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null) + : base(authenticationDetailsProvider, clientConfiguration) + { + if (!AlloyConfiguration.IsServiceEnabled("databasemanagement")) + { + throw new ArgumentException("The Alloy configuration disabled this service, this behavior is controlled by AlloyConfiguration.OciEnabledServiceSet variable. Please check if your local alloy_config file has configured the service you're targeting or contact the cloud provider on the availability of this service"); + } + service = new Service + { + ServiceName = "PERFHUB", + ServiceEndpointPrefix = "", + ServiceEndpointTemplate = "https://dbmgmt.{region}.oci.{secondLevelDomain}" + }; + + ClientConfiguration clientConfigurationToUse = clientConfiguration ?? new ClientConfiguration(); + + if (authenticationDetailsProvider is IRegionProvider) + { + // Use region from Authentication details provider. + SetRegion(((IRegionProvider)authenticationDetailsProvider).Region); + } + + if (endpoint != null) + { + logger.Info($"Using endpoint specified \"{endpoint}\"."); + SetEndpoint(endpoint); + } + + this.retryConfiguration = clientConfigurationToUse.RetryConfiguration; + } + + /// + /// Modifies the snapshot settings for the specified Database. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use ModifySnapshotSettings API. + public async Task ModifySnapshotSettings(ModifySnapshotSettingsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called modifySnapshotSettings"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/actions/modifySnapshotSettings".Trim('/'))); + HttpMethod method = new HttpMethod("POST"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "Perfhub", + OperationName = "ModifySnapshotSettings", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ModifySnapshotSettings", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"ModifySnapshotSettings failed with error: {e.Message}"); + throw; + } + } + + } +} diff --git a/Databasemanagement/SqlTuningClient.cs b/Databasemanagement/SqlTuningClient.cs index 241cde0ae1..c683be71dc 100644 --- a/Databasemanagement/SqlTuningClient.cs +++ b/Databasemanagement/SqlTuningClient.cs @@ -126,6 +126,120 @@ public async Task CloneSqlTuningTask(CloneSqlTuningT } } + /// + /// Creates an empty Sql tuning set within the Managed Database specified by managedDatabaseId. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use CreateSqlTuningSet API. + public async Task CreateSqlTuningSet(CreateSqlTuningSetRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called createSqlTuningSet"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets".Trim('/'))); + HttpMethod method = new HttpMethod("POST"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SqlTuning", + OperationName = "CreateSqlTuningSet", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/SqlTuningSet/CreateSqlTuningSet", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"CreateSqlTuningSet failed with error: {e.Message}"); + throw; + } + } + + /// + /// Drops the Sql tuning set specified by sqlTuningSet within the Managed Database specified by managedDatabaseId. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use DropSqlTuningSet API. + public async Task DropSqlTuningSet(DropSqlTuningSetRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called dropSqlTuningSet"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets/{sqlTuningSetId}/actions/dropSqlTuningSet".Trim('/'))); + HttpMethod method = new HttpMethod("POST"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SqlTuning", + OperationName = "DropSqlTuningSet", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/SqlTuningSet/DropSqlTuningSet", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"DropSqlTuningSet failed with error: {e.Message}"); + throw; + } + } + /// /// Drops a SQL tuning task and its related results from the database. /// @@ -183,6 +297,121 @@ public async Task DropSqlTuningTask(DropSqlTuningTask } } + /// + /// 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. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use DropSqlsInSqlTuningSet API. + public async Task DropSqlsInSqlTuningSet(DropSqlsInSqlTuningSetRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called dropSqlsInSqlTuningSet"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets/{sqlTuningSetId}/actions/dropSqlsInSqlTuningSet".Trim('/'))); + HttpMethod method = new HttpMethod("POST"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SqlTuning", + OperationName = "DropSqlsInSqlTuningSet", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/SqlTuningSet/DropSqlsInSqlTuningSet", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"DropSqlsInSqlTuningSet failed with error: {e.Message}"); + throw; + } + } + + /// + /// Fetch the details of Sql statements in the Sql tuning set specified by name, owner and optional filter parameters. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use FetchSqlTuningSet API. + public async Task FetchSqlTuningSet(FetchSqlTuningSetRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called fetchSqlTuningSet"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets/{sqlTuningSetId}".Trim('/'))); + HttpMethod method = new HttpMethod("POST"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SqlTuning", + OperationName = "FetchSqlTuningSet", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/SqlTuningSet/FetchSqlTuningSet", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"FetchSqlTuningSet failed with error: {e.Message}"); + throw; + } + } + /// /// 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, @@ -585,6 +814,120 @@ public async Task ListSqlTuningSets(ListSqlTuningSets } } + /// + /// Load Sql statements into the Sql tuning set specified by name and optional filter parameters within the Managed Database specified by managedDatabaseId. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use LoadSqlTuningSet API. + public async Task LoadSqlTuningSet(LoadSqlTuningSetRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called loadSqlTuningSet"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets/{sqlTuningSetId}/actions/loadSqlTuningSet".Trim('/'))); + HttpMethod method = new HttpMethod("POST"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SqlTuning", + OperationName = "LoadSqlTuningSet", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/SqlTuningSet/LoadSqlTuningSet", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"LoadSqlTuningSet failed with error: {e.Message}"); + throw; + } + } + + /// + /// Saves the specified list of Sqls statements into another new Sql tuning set or loads into an existing Sql tuning set'. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use SaveSqlTuningSetAs API. + public async Task SaveSqlTuningSetAs(SaveSqlTuningSetAsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called saveSqlTuningSetAs"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets/{sqlTuningSetId}/actions/saveAs".Trim('/'))); + HttpMethod method = new HttpMethod("POST"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SqlTuning", + OperationName = "SaveSqlTuningSetAs", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/SqlTuningSet/SaveSqlTuningSetAs", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"SaveSqlTuningSetAs failed with error: {e.Message}"); + throw; + } + } + /// /// Starts a SQL tuning task for a given set of SQL statements from the active session history top SQL statements. /// @@ -642,5 +985,62 @@ public async Task StartSqlTuningTask(StartSqlTuningT } } + /// + /// Executes a SQL query to check whether user entered basic filter criteria is valid or not. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use ValidateBasicFilter API. + public async Task ValidateBasicFilter(ValidateBasicFilterRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called validateBasicFilter"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlTuningSets/{sqlTuningSetId}/actions/validateBasicFilter".Trim('/'))); + HttpMethod method = new HttpMethod("POST"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SqlTuning", + OperationName = "ValidateBasicFilter", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/SqlTuningSet/ValidateBasicFilter", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"ValidateBasicFilter failed with error: {e.Message}"); + throw; + } + } + } } diff --git a/Databasemanagement/models/ChangeDatabaseParametersDetails.cs b/Databasemanagement/models/ChangeDatabaseParametersDetails.cs index bfa524fe3e..8ed2fcfe4d 100644 --- a/Databasemanagement/models/ChangeDatabaseParametersDetails.cs +++ b/Databasemanagement/models/ChangeDatabaseParametersDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to change database parameter values. + /// /// public class ChangeDatabaseParametersDetails { diff --git a/Databasemanagement/models/ChangePlanRetentionDetails.cs b/Databasemanagement/models/ChangePlanRetentionDetails.cs index e48a314b83..c5b1ad5112 100644 --- a/Databasemanagement/models/ChangePlanRetentionDetails.cs +++ b/Databasemanagement/models/ChangePlanRetentionDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to change the plan retention period. + /// /// public class ChangePlanRetentionDetails { diff --git a/Databasemanagement/models/ChangeSpaceBudgetDetails.cs b/Databasemanagement/models/ChangeSpaceBudgetDetails.cs index aaf4ea2669..14592797ec 100644 --- a/Databasemanagement/models/ChangeSpaceBudgetDetails.cs +++ b/Databasemanagement/models/ChangeSpaceBudgetDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to change the disk space limit for the SQL Management Base. + /// /// public class ChangeSpaceBudgetDetails { diff --git a/Databasemanagement/models/ChangeSqlPlanBaselinesAttributesDetails.cs b/Databasemanagement/models/ChangeSqlPlanBaselinesAttributesDetails.cs index 838b1e56a3..8655a4c883 100644 --- a/Databasemanagement/models/ChangeSqlPlanBaselinesAttributesDetails.cs +++ b/Databasemanagement/models/ChangeSqlPlanBaselinesAttributesDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to change SQL plan baseline attributes. + /// /// public class ChangeSqlPlanBaselinesAttributesDetails { diff --git a/Databasemanagement/models/CloneSqlTuningTaskDetails.cs b/Databasemanagement/models/CloneSqlTuningTaskDetails.cs index 414c421296..f5acce44db 100644 --- a/Databasemanagement/models/CloneSqlTuningTaskDetails.cs +++ b/Databasemanagement/models/CloneSqlTuningTaskDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The request to clone and run a SQL tuning task. The new task uses the same inputs as the one being cloned. + /// /// public class CloneSqlTuningTaskDetails { diff --git a/Databasemanagement/models/ConfigureAutomaticCaptureFiltersDetails.cs b/Databasemanagement/models/ConfigureAutomaticCaptureFiltersDetails.cs index c2f964f75c..34078491f3 100644 --- a/Databasemanagement/models/ConfigureAutomaticCaptureFiltersDetails.cs +++ b/Databasemanagement/models/ConfigureAutomaticCaptureFiltersDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to configure automatic capture filters. + /// /// public class ConfigureAutomaticCaptureFiltersDetails { diff --git a/Databasemanagement/models/ConfigureAutomaticSpmEvolveAdvisorTaskDetails.cs b/Databasemanagement/models/ConfigureAutomaticSpmEvolveAdvisorTaskDetails.cs index 4113b77846..e3aec689a8 100644 --- a/Databasemanagement/models/ConfigureAutomaticSpmEvolveAdvisorTaskDetails.cs +++ b/Databasemanagement/models/ConfigureAutomaticSpmEvolveAdvisorTaskDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The configuration details of the Automatic SPM Evolve Advisor task. + /// /// public class ConfigureAutomaticSpmEvolveAdvisorTaskDetails { diff --git a/Databasemanagement/models/CreateSqlTuningSetDetails.cs b/Databasemanagement/models/CreateSqlTuningSetDetails.cs new file mode 100644 index 0000000000..cf0b76399d --- /dev/null +++ b/Databasemanagement/models/CreateSqlTuningSetDetails.cs @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// Create an empty Sql tuning sets. + /// + /// + public class CreateSqlTuningSetDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "CredentialDetails is required.")] + [JsonProperty(PropertyName = "credentialDetails")] + public SqlTuningSetAdminCredentialDetails CredentialDetails { get; set; } + + /// + /// A unique Sql tuning set name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Owner of the Sql tuning set. + /// + [JsonProperty(PropertyName = "owner")] + public string Owner { get; set; } + + /// + /// The description of the Sql tuning set. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Flag to indicate whether to create the Sql tuning set or just display the plsql used to create Sql tuning set. + /// + /// + [JsonProperty(PropertyName = "showSqlOnly")] + public System.Nullable ShowSqlOnly { get; set; } + + } +} diff --git a/Databasemanagement/models/CreateTablespaceDetails.cs b/Databasemanagement/models/CreateTablespaceDetails.cs index ad7292a42a..2f9ca7cd07 100644 --- a/Databasemanagement/models/CreateTablespaceDetails.cs +++ b/Databasemanagement/models/CreateTablespaceDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to create a tablespace. + /// /// public class CreateTablespaceDetails { diff --git a/Databasemanagement/models/DatabaseCredentials.cs b/Databasemanagement/models/DatabaseCredentials.cs index bb42124a72..dfd3e35916 100644 --- a/Databasemanagement/models/DatabaseCredentials.cs +++ b/Databasemanagement/models/DatabaseCredentials.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The database credentials used to perform management activity. + /// /// public class DatabaseCredentials { diff --git a/Databasemanagement/models/DisableAutomaticInitialPlanCaptureDetails.cs b/Databasemanagement/models/DisableAutomaticInitialPlanCaptureDetails.cs index 35c3b9746c..4d6a7a690c 100644 --- a/Databasemanagement/models/DisableAutomaticInitialPlanCaptureDetails.cs +++ b/Databasemanagement/models/DisableAutomaticInitialPlanCaptureDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to disable automatic initial plan capture. + /// /// public class DisableAutomaticInitialPlanCaptureDetails { diff --git a/Databasemanagement/models/DisableAutomaticSpmEvolveAdvisorTaskDetails.cs b/Databasemanagement/models/DisableAutomaticSpmEvolveAdvisorTaskDetails.cs index e553ec0d68..ba706b2d84 100644 --- a/Databasemanagement/models/DisableAutomaticSpmEvolveAdvisorTaskDetails.cs +++ b/Databasemanagement/models/DisableAutomaticSpmEvolveAdvisorTaskDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to disable Automatic SPM Evolve Advisor task. + /// /// public class DisableAutomaticSpmEvolveAdvisorTaskDetails { diff --git a/Databasemanagement/models/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs b/Databasemanagement/models/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs index 2908cace8f..4507114526 100644 --- a/Databasemanagement/models/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs +++ b/Databasemanagement/models/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to disable high frequency Automatic SPM Evolve Advisor task. + /// /// public class DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails { diff --git a/Databasemanagement/models/DisableSqlPlanBaselinesUsageDetails.cs b/Databasemanagement/models/DisableSqlPlanBaselinesUsageDetails.cs index 0a2a08e515..2161795358 100644 --- a/Databasemanagement/models/DisableSqlPlanBaselinesUsageDetails.cs +++ b/Databasemanagement/models/DisableSqlPlanBaselinesUsageDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to disable SQL plan baseline usage. + /// /// public class DisableSqlPlanBaselinesUsageDetails { diff --git a/Databasemanagement/models/DropSqlPlanBaselinesDetails.cs b/Databasemanagement/models/DropSqlPlanBaselinesDetails.cs index d7e515d0e1..b1f629f394 100644 --- a/Databasemanagement/models/DropSqlPlanBaselinesDetails.cs +++ b/Databasemanagement/models/DropSqlPlanBaselinesDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to drop SQL plan baselines. + /// /// public class DropSqlPlanBaselinesDetails { diff --git a/Databasemanagement/models/DropSqlTuningSetDetails.cs b/Databasemanagement/models/DropSqlTuningSetDetails.cs new file mode 100644 index 0000000000..d7e0116984 --- /dev/null +++ b/Databasemanagement/models/DropSqlTuningSetDetails.cs @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to drop a Sql tuning set. + /// + /// + public class DropSqlTuningSetDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "CredentialDetails is required.")] + [JsonProperty(PropertyName = "credentialDetails")] + public SqlTuningSetAdminCredentialDetails CredentialDetails { get; set; } + + /// + /// A unique Sql tuning set name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Owner of the Sql tuning set. + /// + [JsonProperty(PropertyName = "owner")] + public string Owner { get; set; } + + /// + /// Flag to indicate whether to drop the Sql tuning set or just display the plsql used to drop Sql tuning set. + /// + /// + [JsonProperty(PropertyName = "showSqlOnly")] + public System.Nullable ShowSqlOnly { get; set; } + + } +} diff --git a/Databasemanagement/models/DropSqlTuningTaskDetails.cs b/Databasemanagement/models/DropSqlTuningTaskDetails.cs index 6da5056c73..5cf9697a5e 100644 --- a/Databasemanagement/models/DropSqlTuningTaskDetails.cs +++ b/Databasemanagement/models/DropSqlTuningTaskDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The request to drop a SQL tuning task. + /// /// public class DropSqlTuningTaskDetails { diff --git a/Databasemanagement/models/DropSqlsInSqlTuningSetDetails.cs b/Databasemanagement/models/DropSqlsInSqlTuningSetDetails.cs new file mode 100644 index 0000000000..ed3738ff26 --- /dev/null +++ b/Databasemanagement/models/DropSqlsInSqlTuningSetDetails.cs @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// 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. + /// + /// + public class DropSqlsInSqlTuningSetDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "CredentialDetails is required.")] + [JsonProperty(PropertyName = "credentialDetails")] + public SqlTuningSetAdminCredentialDetails CredentialDetails { get; set; } + + /// + /// Flag to indicate whether to drop the Sql statements or just display the plsql used to drop the Sql statements. + /// + /// + [JsonProperty(PropertyName = "showSqlOnly")] + public System.Nullable ShowSqlOnly { get; set; } + + /// + /// The owner of the Sql tuning set. + /// + [JsonProperty(PropertyName = "owner")] + public string Owner { get; set; } + + /// + /// The name of the Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// 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 + /// + /// + [JsonProperty(PropertyName = "basicFilter")] + public string BasicFilter { get; set; } + + } +} diff --git a/Databasemanagement/models/DropTablespaceDetails.cs b/Databasemanagement/models/DropTablespaceDetails.cs index 46c72ebbff..bc8c6a587c 100644 --- a/Databasemanagement/models/DropTablespaceDetails.cs +++ b/Databasemanagement/models/DropTablespaceDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to drop a tablespace. + /// /// public class DropTablespaceDetails { diff --git a/Databasemanagement/models/EnableAutomaticInitialPlanCaptureDetails.cs b/Databasemanagement/models/EnableAutomaticInitialPlanCaptureDetails.cs index 41dd24e52c..656889d9f1 100644 --- a/Databasemanagement/models/EnableAutomaticInitialPlanCaptureDetails.cs +++ b/Databasemanagement/models/EnableAutomaticInitialPlanCaptureDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to enable automatic initial plan capture. + /// /// public class EnableAutomaticInitialPlanCaptureDetails { diff --git a/Databasemanagement/models/EnableAutomaticSpmEvolveAdvisorTaskDetails.cs b/Databasemanagement/models/EnableAutomaticSpmEvolveAdvisorTaskDetails.cs index 4272d9904b..5171251d72 100644 --- a/Databasemanagement/models/EnableAutomaticSpmEvolveAdvisorTaskDetails.cs +++ b/Databasemanagement/models/EnableAutomaticSpmEvolveAdvisorTaskDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to enable Automatic SPM Evolve Advisor task. + /// /// public class EnableAutomaticSpmEvolveAdvisorTaskDetails { diff --git a/Databasemanagement/models/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs b/Databasemanagement/models/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs index a6383a5174..25a3a60fcd 100644 --- a/Databasemanagement/models/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs +++ b/Databasemanagement/models/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to enable high frequency Automatic SPM Evolve Advisor task. + /// /// public class EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails { diff --git a/Databasemanagement/models/EnableSqlPlanBaselinesUsageDetails.cs b/Databasemanagement/models/EnableSqlPlanBaselinesUsageDetails.cs index 17976de8b5..e8b7933ce1 100644 --- a/Databasemanagement/models/EnableSqlPlanBaselinesUsageDetails.cs +++ b/Databasemanagement/models/EnableSqlPlanBaselinesUsageDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to enable SQL plan baseline usage. + /// /// public class EnableSqlPlanBaselinesUsageDetails { diff --git a/Databasemanagement/models/ExternalAsmInstance.cs b/Databasemanagement/models/ExternalAsmInstance.cs index 2e08853779..e99087019b 100644 --- a/Databasemanagement/models/ExternalAsmInstance.cs +++ b/Databasemanagement/models/ExternalAsmInstance.cs @@ -118,7 +118,9 @@ public enum LifecycleStateEnum { [EnumMember(Value = "DELETING")] Deleting, [EnumMember(Value = "DELETED")] - Deleted + Deleted, + [EnumMember(Value = "FAILED")] + Failed }; /// diff --git a/Databasemanagement/models/ExternalDatabaseConnectionInfo.cs b/Databasemanagement/models/ExternalDatabaseConnectionInfo.cs index 0e218ea36a..dce3af7c47 100644 --- a/Databasemanagement/models/ExternalDatabaseConnectionInfo.cs +++ b/Databasemanagement/models/ExternalDatabaseConnectionInfo.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to connect to an external Oracle Database. + /// /// public class ExternalDatabaseConnectionInfo : ExternalDbSystemConnectionInfo { diff --git a/Databasemanagement/models/FetchSqlTuningSetDetails.cs b/Databasemanagement/models/FetchSqlTuningSetDetails.cs new file mode 100644 index 0000000000..58a0cd1a4b --- /dev/null +++ b/Databasemanagement/models/FetchSqlTuningSetDetails.cs @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to fetch the Sql tuning set details. + /// + /// + public class FetchSqlTuningSetDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "CredentialDetails is required.")] + [JsonProperty(PropertyName = "credentialDetails")] + public SqlTuningSetAdminCredentialDetails CredentialDetails { get; set; } + + /// + /// The owner of the Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Owner is required.")] + [JsonProperty(PropertyName = "owner")] + public string Owner { get; set; } + + /// + /// The name of the Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// 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 + /// + /// + [JsonProperty(PropertyName = "basicFilter")] + public string BasicFilter { get; set; } + /// + /// + /// Specifies that the filter must include recursive Sql in the Sql tuning set. + /// + /// + public enum RecursiveSqlEnum { + [EnumMember(Value = "HAS_RECURSIVE_SQL")] + HasRecursiveSql, + [EnumMember(Value = "NO_RECURSIVE_SQL")] + NoRecursiveSql + }; + + /// + /// Specifies that the filter must include recursive Sql in the Sql tuning set. + /// + [JsonProperty(PropertyName = "recursiveSql")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable RecursiveSql { get; set; } + + /// + /// 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. + /// + /// + [JsonProperty(PropertyName = "resultPercentage")] + public System.Double ResultPercentage { get; set; } + + /// + /// The top limit Sql from the filtered source, ranked by the ranking measure. + /// + [JsonProperty(PropertyName = "resultLimit")] + public System.Nullable ResultLimit { get; set; } + + /// + /// Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + /// + /// + [JsonProperty(PropertyName = "rankingMeasure1")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable RankingMeasure1 { get; set; } + + /// + /// Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + /// + /// + [JsonProperty(PropertyName = "rankingMeasure2")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable RankingMeasure2 { get; set; } + + /// + /// Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + /// + /// + [JsonProperty(PropertyName = "rankingMeasure3")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable RankingMeasure3 { get; set; } + + } +} diff --git a/Databasemanagement/models/LoadSqlTuningSetDetails.cs b/Databasemanagement/models/LoadSqlTuningSetDetails.cs new file mode 100644 index 0000000000..644cad82e1 --- /dev/null +++ b/Databasemanagement/models/LoadSqlTuningSetDetails.cs @@ -0,0 +1,415 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to load the Sql statements into the Sql tuning set. + /// + /// + public class LoadSqlTuningSetDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "CredentialDetails is required.")] + [JsonProperty(PropertyName = "credentialDetails")] + public SqlTuningSetAdminCredentialDetails CredentialDetails { get; set; } + + /// + /// Flag to indicate whether to create the Sql tuning set or just display the plsql used to create Sql tuning set. + /// + /// + [JsonProperty(PropertyName = "showSqlOnly")] + public System.Nullable ShowSqlOnly { get; set; } + + /// + /// The owner of the Sql tuning set. + /// + [JsonProperty(PropertyName = "owner")] + public string Owner { get; set; } + + /// + /// The name of the Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + /// + /// + /// Specifies the loading method into the Sql tuning set. + /// + /// + public enum LoadTypeEnum { + [EnumMember(Value = "INCREMENTAL_CURSOR_CACHE")] + IncrementalCursorCache, + [EnumMember(Value = "CURRENT_CURSOR_CACHE")] + CurrentCursorCache, + [EnumMember(Value = "AWR")] + Awr + }; + + /// + /// Specifies the loading method into the Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LoadType is required.")] + [JsonProperty(PropertyName = "loadType")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable LoadType { get; set; } + + /// + /// 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 + /// + /// + [JsonProperty(PropertyName = "basicFilter")] + public string BasicFilter { get; set; } + /// + /// + /// Specifies that the filter must include recursive Sql in the Sql tuning set. + /// + /// + public enum RecursiveSqlEnum { + [EnumMember(Value = "HAS_RECURSIVE_SQL")] + HasRecursiveSql, + [EnumMember(Value = "NO_RECURSIVE_SQL")] + NoRecursiveSql + }; + + /// + /// Specifies that the filter must include recursive Sql in the Sql tuning set. + /// + [JsonProperty(PropertyName = "recursiveSql")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable RecursiveSql { get; set; } + + /// + /// 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. + /// + /// + [JsonProperty(PropertyName = "resultPercentage")] + public System.Double ResultPercentage { get; set; } + + /// + /// The top limit Sql from the filtered source, ranked by the ranking measure. + /// + [JsonProperty(PropertyName = "resultLimit")] + public System.Nullable ResultLimit { get; set; } + + /// + /// Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + /// + /// + [JsonProperty(PropertyName = "rankingMeasure1")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable RankingMeasure1 { get; set; } + + /// + /// Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + /// + /// + [JsonProperty(PropertyName = "rankingMeasure2")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable RankingMeasure2 { get; set; } + + /// + /// Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + /// + /// + [JsonProperty(PropertyName = "rankingMeasure3")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable RankingMeasure3 { get; set; } + + /// + /// Defines the total amount of time, in seconds, to execute. + /// + [JsonProperty(PropertyName = "totalTimeLimit")] + public System.Nullable TotalTimeLimit { get; set; } + + /// + /// Defines the amount of time, in seconds, to pause between sampling. + /// + [JsonProperty(PropertyName = "repeatInterval")] + public System.Nullable RepeatInterval { get; set; } + /// + /// + /// Specifies whether to insert new statements, update existing statements, or both. + /// + /// + public enum CaptureOptionEnum { + [EnumMember(Value = "INSERT")] + Insert, + [EnumMember(Value = "UPDATE")] + Update, + [EnumMember(Value = "MERGE")] + Merge + }; + + /// + /// Specifies whether to insert new statements, update existing statements, or both. + /// + [JsonProperty(PropertyName = "captureOption")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable CaptureOption { get; set; } + /// + /// + /// 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. + /// + /// + /// + public enum CaptureModeEnum { + [EnumMember(Value = "MODE_REPLACE_OLD_STATS")] + ModeReplaceOldStats, + [EnumMember(Value = "MODE_ACCUMULATE_STATS")] + ModeAccumulateStats + }; + + /// + /// 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. + /// + /// + [JsonProperty(PropertyName = "captureMode")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable CaptureMode { get; set; } + + /// + /// 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\" + /// + /// + [JsonProperty(PropertyName = "attributeList")] + public string AttributeList { get; set; } + /// + /// + /// 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. + /// + /// + /// + public enum LoadOptionEnum { + [EnumMember(Value = "INSERT")] + Insert, + [EnumMember(Value = "UPDATE")] + Update, + [EnumMember(Value = "MERGE")] + Merge + }; + + /// + /// 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. + /// + /// + [JsonProperty(PropertyName = "loadOption")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable LoadOption { get; set; } + /// + /// + /// 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 + /// + /// + /// + public enum UpdateOptionEnum { + [EnumMember(Value = "REPLACE")] + Replace, + [EnumMember(Value = "ACCUMULATE")] + Accumulate + }; + + /// + /// 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 + /// + /// + [JsonProperty(PropertyName = "updateOption")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable UpdateOption { get; set; } + + /// + /// 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\" + /// + /// + [JsonProperty(PropertyName = "updateAttributes")] + public string UpdateAttributes { get; set; } + /// + /// + /// 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 \u2014 Refers to statement attributes from the SQL tuning set (destination). + /// NEW \u2014 Refers to statement attributes from the input statements (source). + /// NULL \u2014 No updates are performed. + /// + /// + /// + public enum UpdateConditionEnum { + [EnumMember(Value = "OLD")] + Old, + [EnumMember(Value = "NEW")] + New + }; + + /// + /// 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 \u2014 Refers to statement attributes from the SQL tuning set (destination). + /// NEW \u2014 Refers to statement attributes from the input statements (source). + /// NULL \u2014 No updates are performed. + /// + /// + [JsonProperty(PropertyName = "updateCondition")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable UpdateCondition { get; set; } + + /// + /// 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 + /// + /// + [JsonProperty(PropertyName = "isIgnoreNull")] + public System.Nullable IsIgnoreNull { get; set; } + + /// + /// 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. + /// + /// + [JsonProperty(PropertyName = "commitRows")] + public System.Nullable CommitRows { get; set; } + + /// + /// Defines the beginning AWR snapshot (non-inclusive). + /// + [JsonProperty(PropertyName = "beginSnapshot")] + public System.Nullable BeginSnapshot { get; set; } + + /// + /// Defines the ending AWR snapshot (inclusive). + /// + [JsonProperty(PropertyName = "endSnapshot")] + public System.Nullable EndSnapshot { get; set; } + + /// + /// 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 + /// + /// + [JsonProperty(PropertyName = "baselineName")] + public string BaselineName { get; set; } + + } +} diff --git a/Databasemanagement/models/ModifySnapshotSettingsDetails.cs b/Databasemanagement/models/ModifySnapshotSettingsDetails.cs new file mode 100644 index 0000000000..6f8e0be943 --- /dev/null +++ b/Databasemanagement/models/ModifySnapshotSettingsDetails.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// Details to modify the AWR snapshot settings for a database. + /// + public class ModifySnapshotSettingsDetails + { + + /// + /// The retention time in minutes. Acceptable values are 0, 1440 to 52596000 (inclusive), and null. + /// + [JsonProperty(PropertyName = "retention")] + public System.Nullable Retention { get; set; } + + /// + /// The interval time in minutes. Acceptable values are 0, 10 to 527040 (inclusive), and null. + /// + [JsonProperty(PropertyName = "interval")] + public System.Nullable Interval { get; set; } + + } +} diff --git a/Databasemanagement/models/RankingMeasure.cs b/Databasemanagement/models/RankingMeasure.cs new file mode 100644 index 0000000000..f53b859d3f --- /dev/null +++ b/Databasemanagement/models/RankingMeasure.cs @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// Defines an ORDER BY clause on the selected SQL represented by SQLSET_ROW object. + /// Possible values are defined in the enum structure below. + /// + /// + public enum RankingMeasure { + [EnumMember(Value = "ELAPSED_TIME")] + ElapsedTime, + [EnumMember(Value = "CPU_TIME")] + CpuTime, + [EnumMember(Value = "OPTIMIZER_COST")] + OptimizerCost, + [EnumMember(Value = "BUFFER_GETS")] + BufferGets, + [EnumMember(Value = "DISK_READS")] + DiskReads, + [EnumMember(Value = "DIRECT_WRITES")] + DirectWrites + } +} diff --git a/Databasemanagement/models/RemoveDataFileDetails.cs b/Databasemanagement/models/RemoveDataFileDetails.cs index 525e4737e7..e3eb0c5bda 100644 --- a/Databasemanagement/models/RemoveDataFileDetails.cs +++ b/Databasemanagement/models/RemoveDataFileDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to remove a data file or temp file from the tablespace. + /// /// public class RemoveDataFileDetails { diff --git a/Databasemanagement/models/ResetDatabaseParametersDetails.cs b/Databasemanagement/models/ResetDatabaseParametersDetails.cs index c350548def..7dbfa40cad 100644 --- a/Databasemanagement/models/ResetDatabaseParametersDetails.cs +++ b/Databasemanagement/models/ResetDatabaseParametersDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to reset database parameter values. + /// /// public class ResetDatabaseParametersDetails { diff --git a/Databasemanagement/models/ResizeDataFileDetails.cs b/Databasemanagement/models/ResizeDataFileDetails.cs index 50b58e8b6f..2d9f65a009 100644 --- a/Databasemanagement/models/ResizeDataFileDetails.cs +++ b/Databasemanagement/models/ResizeDataFileDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to resize a data file or temp file within the tablespace. + /// /// public class ResizeDataFileDetails { diff --git a/Databasemanagement/models/SaveSqlTuningSetAsDetails.cs b/Databasemanagement/models/SaveSqlTuningSetAsDetails.cs new file mode 100644 index 0000000000..417bc775a0 --- /dev/null +++ b/Databasemanagement/models/SaveSqlTuningSetAsDetails.cs @@ -0,0 +1,378 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// Save current list of Sql statements into another Sql tuning set. + /// + /// + public class SaveSqlTuningSetAsDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "CredentialDetails is required.")] + [JsonProperty(PropertyName = "credentialDetails")] + public SqlTuningSetAdminCredentialDetails CredentialDetails { get; set; } + + /// + /// Flag to indicate whether to save the Sql tuning set or just display the plsql used to save Sql tuning set. + /// + /// + [JsonProperty(PropertyName = "showSqlOnly")] + public System.Nullable ShowSqlOnly { get; set; } + + /// + /// The owner of the Sql tuning set. + /// + [JsonProperty(PropertyName = "owner")] + public string Owner { get; set; } + + /// + /// The name of the Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The name of the destination Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DestinationSqlTuningSetName is required.")] + [JsonProperty(PropertyName = "destinationSqlTuningSetName")] + public string DestinationSqlTuningSetName { get; set; } + + /// + /// The description for the destination Sql tuning set. + /// + [JsonProperty(PropertyName = "destinationSqlTuningSetDescription")] + public string DestinationSqlTuningSetDescription { get; set; } + + /// + /// Owner of the destination Sql tuning set. + /// + [JsonProperty(PropertyName = "destinationSqlTuningSetOwner")] + public string DestinationSqlTuningSetOwner { get; set; } + + /// + /// 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 + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "CreateNew is required.")] + [JsonProperty(PropertyName = "createNew")] + public System.Nullable CreateNew { get; set; } + + /// + /// 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 + /// + /// + [JsonProperty(PropertyName = "basicFilter")] + public string BasicFilter { get; set; } + /// + /// + /// 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 + /// + /// + /// + public enum PlanFilterEnum { + [EnumMember(Value = "LAST_GENERATED")] + LastGenerated, + [EnumMember(Value = "FIRST_GENERATED")] + FirstGenerated, + [EnumMember(Value = "LAST_LOADED")] + LastLoaded, + [EnumMember(Value = "FIRST_LOADED")] + FirstLoaded, + [EnumMember(Value = "MAX_ELAPSED_TIME")] + MaxElapsedTime, + [EnumMember(Value = "MAX_BUFFER_GETS")] + MaxBufferGets, + [EnumMember(Value = "MAX_DISK_READS")] + MaxDiskReads, + [EnumMember(Value = "MAX_DIRECT_WRITES")] + MaxDirectWrites, + [EnumMember(Value = "MAX_OPTIMIZER_COST")] + MaxOptimizerCost + }; + + /// + /// 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 + /// + /// + [JsonProperty(PropertyName = "planFilter")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable PlanFilter { get; set; } + /// + /// + /// Specifies that the filter must include recursive Sql in the Sql tuning set. + /// + /// + public enum RecursiveSqlEnum { + [EnumMember(Value = "HAS_RECURSIVE_SQL")] + HasRecursiveSql, + [EnumMember(Value = "NO_RECURSIVE_SQL")] + NoRecursiveSql + }; + + /// + /// Specifies that the filter must include recursive Sql in the Sql tuning set. + /// + [JsonProperty(PropertyName = "recursiveSql")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable RecursiveSql { get; set; } + + /// + /// 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. + /// + /// + [JsonProperty(PropertyName = "resultPercentage")] + public System.Double ResultPercentage { get; set; } + + /// + /// The top limit Sql from the filtered source, ranked by the ranking measure. + /// + [JsonProperty(PropertyName = "resultLimit")] + public System.Nullable ResultLimit { get; set; } + + /// + /// Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + /// + /// + [JsonProperty(PropertyName = "rankingMeasure1")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable RankingMeasure1 { get; set; } + + /// + /// Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + /// + /// + [JsonProperty(PropertyName = "rankingMeasure2")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable RankingMeasure2 { get; set; } + + /// + /// Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures. + /// + /// + [JsonProperty(PropertyName = "rankingMeasure3")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable RankingMeasure3 { get; set; } + + /// + /// 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\" + /// + /// + [JsonProperty(PropertyName = "attributeList")] + public string AttributeList { get; set; } + /// + /// + /// 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. + /// + /// + /// + public enum LoadOptionEnum { + [EnumMember(Value = "INSERT")] + Insert, + [EnumMember(Value = "UPDATE")] + Update, + [EnumMember(Value = "MERGE")] + Merge + }; + + /// + /// 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. + /// + /// + [JsonProperty(PropertyName = "loadOption")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable LoadOption { get; set; } + /// + /// + /// 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 + /// + /// + /// + public enum UpdateOptionEnum { + [EnumMember(Value = "REPLACE")] + Replace, + [EnumMember(Value = "ACCUMULATE")] + Accumulate + }; + + /// + /// 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 + /// + /// + [JsonProperty(PropertyName = "updateOption")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable UpdateOption { get; set; } + /// + /// + /// 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 \u2014 Refers to statement attributes from the SQL tuning set (destination). + /// NEW \u2014 Refers to statement attributes from the input statements (source). + /// NULL \u2014 No updates are performed. + /// + /// + /// + public enum UpdateConditionEnum { + [EnumMember(Value = "OLD")] + Old, + [EnumMember(Value = "NEW")] + New + }; + + /// + /// 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 \u2014 Refers to statement attributes from the SQL tuning set (destination). + /// NEW \u2014 Refers to statement attributes from the input statements (source). + /// NULL \u2014 No updates are performed. + /// + /// + [JsonProperty(PropertyName = "updateCondition")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable UpdateCondition { get; set; } + + /// + /// 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\" + /// + /// + [JsonProperty(PropertyName = "updateAttributes")] + public string UpdateAttributes { get; set; } + + /// + /// 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 + /// + /// + [JsonProperty(PropertyName = "isIgnoreNull")] + public System.Nullable IsIgnoreNull { get; set; } + + /// + /// 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. + /// + /// + [JsonProperty(PropertyName = "commitRows")] + public System.Nullable CommitRows { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlInSqlTuningSet.cs b/Databasemanagement/models/SqlInSqlTuningSet.cs new file mode 100644 index 0000000000..5cad09c575 --- /dev/null +++ b/Databasemanagement/models/SqlInSqlTuningSet.cs @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// Sql information in the Sql tuning set. + /// + public class SqlInSqlTuningSet + { + + /// + /// The unique Sql identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlId is required.")] + [JsonProperty(PropertyName = "sqlId")] + public string SqlId { get; set; } + + /// + /// Sql text. + /// + [JsonProperty(PropertyName = "sqlText")] + public string SqlText { get; set; } + + /// + /// The unique container database identifier. + /// + [JsonProperty(PropertyName = "containerDatabaseId")] + public System.Nullable ContainerDatabaseId { get; set; } + + /// + /// Plan hash value of the Sql statement. + /// + /// + /// Required + /// + [Required(ErrorMessage = "PlanHashValue is required.")] + [JsonProperty(PropertyName = "planHashValue")] + public System.Nullable PlanHashValue { get; set; } + + /// + /// The schema name of the Sql. + /// + [JsonProperty(PropertyName = "schema")] + public string Schema { get; set; } + + /// + /// The module of the Sql. + /// + [JsonProperty(PropertyName = "module")] + public string Module { get; set; } + + /// + /// A list of the Sqls associated with the Sql tuning set. + /// + [JsonProperty(PropertyName = "metrics")] + public System.Collections.Generic.List Metrics { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlMetrics.cs b/Databasemanagement/models/SqlMetrics.cs new file mode 100644 index 0000000000..f5defdd8c7 --- /dev/null +++ b/Databasemanagement/models/SqlMetrics.cs @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// Metrics of the Sql in the Sql tuning set. + /// + public class SqlMetrics + { + + /// + /// Total CPU time consumed by the Sql. + /// + [JsonProperty(PropertyName = "cpuTime")] + public System.Nullable CpuTime { get; set; } + + /// + /// Elapsed time of the Sql. + /// + [JsonProperty(PropertyName = "elapsedTime")] + public System.Nullable ElapsedTime { get; set; } + + /// + /// Sum total number of buffer gets. + /// + [JsonProperty(PropertyName = "bufferGets")] + public System.Nullable BufferGets { get; set; } + + /// + /// Sum total number of disk reads. + /// + [JsonProperty(PropertyName = "diskReads")] + public System.Nullable DiskReads { get; set; } + + /// + /// Sum total number of direct path writes. + /// + [JsonProperty(PropertyName = "directWrites")] + public System.Nullable DirectWrites { get; set; } + + /// + /// Total executions of this SQL statement. + /// + [JsonProperty(PropertyName = "executions")] + public System.Nullable Executions { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlTuningSet.cs b/Databasemanagement/models/SqlTuningSet.cs new file mode 100644 index 0000000000..402b3ca5f0 --- /dev/null +++ b/Databasemanagement/models/SqlTuningSet.cs @@ -0,0 +1,112 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// Details of the Sql tuning set. + /// + public class SqlTuningSet + { + + /// + /// The unique Sql tuning set identifier. + /// + [JsonProperty(PropertyName = "id")] + public System.Nullable Id { get; set; } + + /// + /// The owner of the Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Owner is required.")] + [JsonProperty(PropertyName = "owner")] + public string Owner { get; set; } + + /// + /// The name of the Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Number of statements in the Sql tuning set + /// + [JsonProperty(PropertyName = "statementCount")] + public System.Nullable StatementCount { get; set; } + + /// + /// The created time of the Sql tuning set. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The description of the Sql tuning set. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Last modified time of the Sql tuning set. + /// + [JsonProperty(PropertyName = "timeLastModified")] + public System.Nullable TimeLastModified { get; set; } + + /// + /// Current status of the Sql tuning set. + /// + [JsonProperty(PropertyName = "status")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Status { get; set; } + + /// + /// Name of the Sql tuning set scheduler job. + /// + [JsonProperty(PropertyName = "scheduledJobName")] + public string ScheduledJobName { get; set; } + + /// + /// Latest execution error of the plsql that was submitted as a scheduler job. + /// + [JsonProperty(PropertyName = "errorMessage")] + public string ErrorMessage { get; set; } + + /// + /// 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. + /// + /// + [JsonProperty(PropertyName = "allSqlStatementsFetched")] + public string AllSqlStatementsFetched { get; set; } + + /// + /// A list of the Sqls associated with the Sql tuning set. + /// + [JsonProperty(PropertyName = "sqlList")] + public System.Collections.Generic.List SqlList { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlTuningSetAdminActionStatus.cs b/Databasemanagement/models/SqlTuningSetAdminActionStatus.cs new file mode 100644 index 0000000000..5f9c0d2168 --- /dev/null +++ b/Databasemanagement/models/SqlTuningSetAdminActionStatus.cs @@ -0,0 +1,88 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The status of a Sql tuning set admin action. + /// + public class SqlTuningSetAdminActionStatus + { + /// + /// + /// The status of a Sql tuning set admin action. + /// + /// + /// + public enum StatusEnum { + /// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK. + [EnumMember(Value = null)] + UnknownEnumValue, + [EnumMember(Value = "SUCCEEDED")] + Succeeded, + [EnumMember(Value = "FAILED")] + Failed + }; + + /// + /// The status of a Sql tuning set admin action. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "Status is required.")] + [JsonProperty(PropertyName = "status")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Status { get; set; } + + /// + /// The success message of the Sql tuning set admin action. The success message is \"null\" if the admin action is non successful. + /// + /// + [JsonProperty(PropertyName = "successMessage")] + public string SuccessMessage { get; set; } + + /// + /// 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. + /// + /// + [JsonProperty(PropertyName = "errorCode")] + public System.Nullable ErrorCode { get; set; } + + /// + /// 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. + /// + /// + [JsonProperty(PropertyName = "errorMessage")] + public string ErrorMessage { get; set; } + + /// + /// Flag to indicate whether to create the Sql tuning set or just display the plsql used for the selected user action. + /// + /// + [JsonProperty(PropertyName = "showSqlOnly")] + public System.Nullable ShowSqlOnly { get; set; } + + /// + /// 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. + /// + /// + [JsonProperty(PropertyName = "sqlStatement")] + public string SqlStatement { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlTuningSetAdminCredentialDetails.cs b/Databasemanagement/models/SqlTuningSetAdminCredentialDetails.cs new file mode 100644 index 0000000000..dde4891e1f --- /dev/null +++ b/Databasemanagement/models/SqlTuningSetAdminCredentialDetails.cs @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The credential to connect to the database to perform Sql tuning set administration tasks. + /// + [JsonConverter(typeof(SqlTuningSetAdminCredentialDetailsModelConverter))] + public class SqlTuningSetAdminCredentialDetails + { + /// + /// + /// The type of the credential for Sql tuning set administration tasks. + /// + /// + public enum SqlTuningSetAdminCredentialTypeEnum { + [EnumMember(Value = "SECRET")] + Secret, + [EnumMember(Value = "PASSWORD")] + Password + }; + + + /// + /// The user to connect to the database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Username is required.")] + [JsonProperty(PropertyName = "username")] + public string Username { get; set; } + /// + /// + /// The role of the database user. + /// + /// + public enum RoleEnum { + [EnumMember(Value = "NORMAL")] + Normal, + [EnumMember(Value = "SYSDBA")] + Sysdba + }; + + /// + /// The role of the database user. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Role is required.")] + [JsonProperty(PropertyName = "role")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable Role { get; set; } + + } + + public class SqlTuningSetAdminCredentialDetailsModelConverter : JsonConverter + { + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(SqlTuningSetAdminCredentialDetails); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(SqlTuningSetAdminCredentialDetails); + var discriminator = jsonObject["sqlTuningSetAdminCredentialType"].Value(); + switch (discriminator) + { + case "PASSWORD": + obj = new SqlTuningSetAdminPasswordCredentialDetails(); + break; + case "SECRET": + obj = new SqlTuningSetAdminSecretCredentialDetails(); + break; + } + serializer.Populate(jsonObject.CreateReader(), obj); + return obj; + } + } +} diff --git a/Databasemanagement/models/SqlTuningSetAdminPasswordCredentialDetails.cs b/Databasemanagement/models/SqlTuningSetAdminPasswordCredentialDetails.cs new file mode 100644 index 0000000000..b92699b487 --- /dev/null +++ b/Databasemanagement/models/SqlTuningSetAdminPasswordCredentialDetails.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// User provides a password to be used to connect to the database. + /// + public class SqlTuningSetAdminPasswordCredentialDetails : SqlTuningSetAdminCredentialDetails + { + + /// + /// The database user's password encoded using BASE64 scheme. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Password is required.")] + [JsonProperty(PropertyName = "password")] + public string Password { get; set; } + + [JsonProperty(PropertyName = "sqlTuningSetAdminCredentialType")] + private readonly string sqlTuningSetAdminCredentialType = "PASSWORD"; + } +} diff --git a/Databasemanagement/models/SqlTuningSetAdminSecretCredentialDetails.cs b/Databasemanagement/models/SqlTuningSetAdminSecretCredentialDetails.cs new file mode 100644 index 0000000000..d442203d01 --- /dev/null +++ b/Databasemanagement/models/SqlTuningSetAdminSecretCredentialDetails.cs @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// User provides a secret OCID, which will be used to retrieve the password to connect to the database. + /// + /// + public class SqlTuningSetAdminSecretCredentialDetails : SqlTuningSetAdminCredentialDetails + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Secret + /// where the database password is stored. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "SecretId is required.")] + [JsonProperty(PropertyName = "secretId")] + public string SecretId { get; set; } + + [JsonProperty(PropertyName = "sqlTuningSetAdminCredentialType")] + private readonly string sqlTuningSetAdminCredentialType = "SECRET"; + } +} diff --git a/Databasemanagement/models/SqlTuningSetStatusTypes.cs b/Databasemanagement/models/SqlTuningSetStatusTypes.cs new file mode 100644 index 0000000000..d737bcb1bb --- /dev/null +++ b/Databasemanagement/models/SqlTuningSetStatusTypes.cs @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The status types of a Sql Tuning Set. Refer to the following documentaion for details https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/ALL_SCHEDULER_JOBS.html#GUID-D72A57AD-96EB-4FB9-A599-33CB238AFA62 + /// + public enum SqlTuningSetStatusTypes { + /// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK. + [EnumMember(Value = null)] + UnknownEnumValue, + [EnumMember(Value = "DISABLED")] + Disabled, + [EnumMember(Value = "RETRY_SCHEDULED")] + RetryScheduled, + [EnumMember(Value = "SCHEDULED")] + Scheduled, + [EnumMember(Value = "BLOCKED")] + Blocked, + [EnumMember(Value = "RUNNING")] + Running, + [EnumMember(Value = "COMPLETED")] + Completed, + [EnumMember(Value = "BROKEN")] + Broken, + [EnumMember(Value = "FAILED")] + Failed, + [EnumMember(Value = "REMOTE")] + Remote, + [EnumMember(Value = "RESOURCE_UNAVAILABLE")] + ResourceUnavailable, + [EnumMember(Value = "SUCCEEDED")] + Succeeded, + [EnumMember(Value = "CHAIN_STALLED")] + ChainStalled + } +} diff --git a/Databasemanagement/models/SqlTuningSetSummary.cs b/Databasemanagement/models/SqlTuningSetSummary.cs index 42a440ffdf..ea84741c26 100644 --- a/Databasemanagement/models/SqlTuningSetSummary.cs +++ b/Databasemanagement/models/SqlTuningSetSummary.cs @@ -53,5 +53,42 @@ public class SqlTuningSetSummary [JsonProperty(PropertyName = "statementCounts")] public System.Nullable StatementCounts { get; set; } + /// + /// The unique Sql tuning set identifier. This is not OCID. + /// + [JsonProperty(PropertyName = "id")] + public System.Nullable Id { get; set; } + + /// + /// The created time of the Sql tuning set. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// Last modified time of the Sql tuning set. + /// + [JsonProperty(PropertyName = "timeLastModified")] + public System.Nullable TimeLastModified { get; set; } + + /// + /// Current status of the Sql tuning set. + /// + [JsonProperty(PropertyName = "status")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Status { get; set; } + + /// + /// Name of the Sql tuning set scheduler job. + /// + [JsonProperty(PropertyName = "scheduledJobName")] + public string ScheduledJobName { get; set; } + + /// + /// Latest execution error of the plsql that was submitted as a scheduler job. + /// + [JsonProperty(PropertyName = "errorMessage")] + public string ErrorMessage { get; set; } + } } diff --git a/Databasemanagement/models/StartSqlTuningTaskDetails.cs b/Databasemanagement/models/StartSqlTuningTaskDetails.cs index 76df35c095..2bf27dce56 100644 --- a/Databasemanagement/models/StartSqlTuningTaskDetails.cs +++ b/Databasemanagement/models/StartSqlTuningTaskDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The request to start a SQL tuning task. + /// /// public class StartSqlTuningTaskDetails { diff --git a/Databasemanagement/models/UpdateExternalDbSystemMacsConnectorDetails.cs b/Databasemanagement/models/UpdateExternalDbSystemMacsConnectorDetails.cs index 4ce252d0fe..2259268430 100644 --- a/Databasemanagement/models/UpdateExternalDbSystemMacsConnectorDetails.cs +++ b/Databasemanagement/models/UpdateExternalDbSystemMacsConnectorDetails.cs @@ -23,10 +23,6 @@ namespace Oci.DatabasemanagementService.Models public class UpdateExternalDbSystemMacsConnectorDetails : UpdateExternalDbSystemConnectorDetails { - /// - /// Required - /// - [Required(ErrorMessage = "ConnectionInfo is required.")] [JsonProperty(PropertyName = "connectionInfo")] public ExternalDbSystemConnectionInfo ConnectionInfo { get; set; } diff --git a/Databasemanagement/models/UpdateTablespaceDetails.cs b/Databasemanagement/models/UpdateTablespaceDetails.cs index 63af44663e..60aa181e41 100644 --- a/Databasemanagement/models/UpdateTablespaceDetails.cs +++ b/Databasemanagement/models/UpdateTablespaceDetails.cs @@ -17,6 +17,7 @@ namespace Oci.DatabasemanagementService.Models { /// /// The details required to update a tablespace. + /// /// public class UpdateTablespaceDetails { diff --git a/Databasemanagement/models/ValidateBasicFilterDetails.cs b/Databasemanagement/models/ValidateBasicFilterDetails.cs new file mode 100644 index 0000000000..734b30e62d --- /dev/null +++ b/Databasemanagement/models/ValidateBasicFilterDetails.cs @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// Validate the basic filter criteria provided by the user. + /// + /// + public class ValidateBasicFilterDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "CredentialDetails is required.")] + [JsonProperty(PropertyName = "credentialDetails")] + public SqlTuningSetAdminCredentialDetails CredentialDetails { get; set; } + + /// + /// The owner of the Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Owner is required.")] + [JsonProperty(PropertyName = "owner")] + public string Owner { get; set; } + + /// + /// The name of the Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// 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 + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "BasicFilter is required.")] + [JsonProperty(PropertyName = "basicFilter")] + public string BasicFilter { get; set; } + + } +} diff --git a/Databasemanagement/models/WorkRequestResourceActionType.cs b/Databasemanagement/models/WorkRequestResourceActionType.cs index c7bd5e80e1..1b26aaef4b 100644 --- a/Databasemanagement/models/WorkRequestResourceActionType.cs +++ b/Databasemanagement/models/WorkRequestResourceActionType.cs @@ -35,6 +35,8 @@ public enum WorkRequestResourceActionType { Related, [EnumMember(Value = "FAILED")] Failed, + [EnumMember(Value = "ACCEPTED")] + Accepted, [EnumMember(Value = "ENABLED")] Enabled, [EnumMember(Value = "DISABLED")] diff --git a/Databasemanagement/requests/CreateSqlTuningSetRequest.cs b/Databasemanagement/requests/CreateSqlTuningSetRequest.cs new file mode 100644 index 0000000000..bca1ae6d2a --- /dev/null +++ b/Databasemanagement/requests/CreateSqlTuningSetRequest.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use CreateSqlTuningSet request. + /// + public class CreateSqlTuningSetRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to create a Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CreateSqlTuningSetDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public CreateSqlTuningSetDetails CreateSqlTuningSetDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Databasemanagement/requests/DropSqlTuningSetRequest.cs b/Databasemanagement/requests/DropSqlTuningSetRequest.cs new file mode 100644 index 0000000000..cf7d03e107 --- /dev/null +++ b/Databasemanagement/requests/DropSqlTuningSetRequest.cs @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use DropSqlTuningSet request. + /// + public class DropSqlTuningSetRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The unique identifier of the Sql tuning set. This is not OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlTuningSetId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "sqlTuningSetId")] + public System.Nullable SqlTuningSetId { get; set; } + + /// + /// The details required to drop a Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DropSqlTuningSetDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DropSqlTuningSetDetails DropSqlTuningSetDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Databasemanagement/requests/DropSqlsInSqlTuningSetRequest.cs b/Databasemanagement/requests/DropSqlsInSqlTuningSetRequest.cs new file mode 100644 index 0000000000..2fa6d6e739 --- /dev/null +++ b/Databasemanagement/requests/DropSqlsInSqlTuningSetRequest.cs @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use DropSqlsInSqlTuningSet request. + /// + public class DropSqlsInSqlTuningSetRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The unique identifier of the Sql tuning set. This is not OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlTuningSetId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "sqlTuningSetId")] + public System.Nullable SqlTuningSetId { get; set; } + + /// + /// Drops the selected list of Sql statements from the current Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DropSqlsInSqlTuningSetDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DropSqlsInSqlTuningSetDetails DropSqlsInSqlTuningSetDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Databasemanagement/requests/FetchSqlTuningSetRequest.cs b/Databasemanagement/requests/FetchSqlTuningSetRequest.cs new file mode 100644 index 0000000000..b89a2fdaee --- /dev/null +++ b/Databasemanagement/requests/FetchSqlTuningSetRequest.cs @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use FetchSqlTuningSet request. + /// + public class FetchSqlTuningSetRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The unique identifier of the Sql tuning set. This is not OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlTuningSetId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "sqlTuningSetId")] + public System.Nullable SqlTuningSetId { get; set; } + + /// + /// The details required to fetch the Sql tuning set details. + /// + /// + /// Required + /// + [Required(ErrorMessage = "FetchSqlTuningSetDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public FetchSqlTuningSetDetails FetchSqlTuningSetDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Databasemanagement/requests/LoadSqlTuningSetRequest.cs b/Databasemanagement/requests/LoadSqlTuningSetRequest.cs new file mode 100644 index 0000000000..9e2200cfff --- /dev/null +++ b/Databasemanagement/requests/LoadSqlTuningSetRequest.cs @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use LoadSqlTuningSet request. + /// + public class LoadSqlTuningSetRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The unique identifier of the Sql tuning set. This is not OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlTuningSetId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "sqlTuningSetId")] + public System.Nullable SqlTuningSetId { get; set; } + + /// + /// The details required to load Sql statements into the Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LoadSqlTuningSetDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public LoadSqlTuningSetDetails LoadSqlTuningSetDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Databasemanagement/requests/ModifySnapshotSettingsRequest.cs b/Databasemanagement/requests/ModifySnapshotSettingsRequest.cs new file mode 100644 index 0000000000..491ba3b39e --- /dev/null +++ b/Databasemanagement/requests/ModifySnapshotSettingsRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use ModifySnapshotSettings request. + /// + public class ModifySnapshotSettingsRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// Request to modify snapshot settings for a Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModifySnapshotSettingsDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ModifySnapshotSettingsDetails ModifySnapshotSettingsDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/SaveSqlTuningSetAsRequest.cs b/Databasemanagement/requests/SaveSqlTuningSetAsRequest.cs new file mode 100644 index 0000000000..49b9fc3591 --- /dev/null +++ b/Databasemanagement/requests/SaveSqlTuningSetAsRequest.cs @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use SaveSqlTuningSetAs request. + /// + public class SaveSqlTuningSetAsRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The unique identifier of the Sql tuning set. This is not OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlTuningSetId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "sqlTuningSetId")] + public System.Nullable SqlTuningSetId { get; set; } + + /// + /// The details required to save a Sql tuning set into another Sql tuning set. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SaveSqlTuningSetAsDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SaveSqlTuningSetAsDetails SaveSqlTuningSetAsDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Databasemanagement/requests/ValidateBasicFilterRequest.cs b/Databasemanagement/requests/ValidateBasicFilterRequest.cs new file mode 100644 index 0000000000..3200bbb6fd --- /dev/null +++ b/Databasemanagement/requests/ValidateBasicFilterRequest.cs @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use ValidateBasicFilter request. + /// + public class ValidateBasicFilterRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The unique identifier of the Sql tuning set. This is not OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlTuningSetId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "sqlTuningSetId")] + public System.Nullable SqlTuningSetId { get; set; } + + /// + /// Validate the basic filter criteria provided by the user. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ValidateBasicFilterDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ValidateBasicFilterDetails ValidateBasicFilterDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Databasemanagement/responses/CreateSqlTuningSetResponse.cs b/Databasemanagement/responses/CreateSqlTuningSetResponse.cs new file mode 100644 index 0000000000..a8fc111a55 --- /dev/null +++ b/Databasemanagement/responses/CreateSqlTuningSetResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class CreateSqlTuningSetResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlTuningSet instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlTuningSet SqlTuningSet { get; set; } + + } +} diff --git a/Databasemanagement/responses/DropSqlTuningSetResponse.cs b/Databasemanagement/responses/DropSqlTuningSetResponse.cs new file mode 100644 index 0000000000..b4ad47349d --- /dev/null +++ b/Databasemanagement/responses/DropSqlTuningSetResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class DropSqlTuningSetResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlTuningSetAdminActionStatus instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlTuningSetAdminActionStatus SqlTuningSetAdminActionStatus { get; set; } + + } +} diff --git a/Databasemanagement/responses/DropSqlsInSqlTuningSetResponse.cs b/Databasemanagement/responses/DropSqlsInSqlTuningSetResponse.cs new file mode 100644 index 0000000000..81b7dafb2a --- /dev/null +++ b/Databasemanagement/responses/DropSqlsInSqlTuningSetResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class DropSqlsInSqlTuningSetResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlTuningSetAdminActionStatus instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlTuningSetAdminActionStatus SqlTuningSetAdminActionStatus { get; set; } + + } +} diff --git a/Databasemanagement/responses/FetchSqlTuningSetResponse.cs b/Databasemanagement/responses/FetchSqlTuningSetResponse.cs new file mode 100644 index 0000000000..30d64f8a56 --- /dev/null +++ b/Databasemanagement/responses/FetchSqlTuningSetResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class FetchSqlTuningSetResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlTuningSet instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlTuningSet SqlTuningSet { get; set; } + + } +} diff --git a/Databasemanagement/responses/LoadSqlTuningSetResponse.cs b/Databasemanagement/responses/LoadSqlTuningSetResponse.cs new file mode 100644 index 0000000000..e6cf3f9165 --- /dev/null +++ b/Databasemanagement/responses/LoadSqlTuningSetResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class LoadSqlTuningSetResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlTuningSetAdminActionStatus instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlTuningSetAdminActionStatus SqlTuningSetAdminActionStatus { get; set; } + + } +} diff --git a/Databasemanagement/responses/ModifySnapshotSettingsResponse.cs b/Databasemanagement/responses/ModifySnapshotSettingsResponse.cs new file mode 100644 index 0000000000..6f91033cb9 --- /dev/null +++ b/Databasemanagement/responses/ModifySnapshotSettingsResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class ModifySnapshotSettingsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/SaveSqlTuningSetAsResponse.cs b/Databasemanagement/responses/SaveSqlTuningSetAsResponse.cs new file mode 100644 index 0000000000..4e57d5c54c --- /dev/null +++ b/Databasemanagement/responses/SaveSqlTuningSetAsResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class SaveSqlTuningSetAsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlTuningSetAdminActionStatus instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlTuningSetAdminActionStatus SqlTuningSetAdminActionStatus { get; set; } + + } +} diff --git a/Databasemanagement/responses/ValidateBasicFilterResponse.cs b/Databasemanagement/responses/ValidateBasicFilterResponse.cs new file mode 100644 index 0000000000..c812af7a1a --- /dev/null +++ b/Databasemanagement/responses/ValidateBasicFilterResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class ValidateBasicFilterResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlTuningSetAdminActionStatus instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlTuningSetAdminActionStatus SqlTuningSetAdminActionStatus { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroup.cs b/Osmanagementhub/models/ManagedInstanceGroup.cs index 8bc850106d..881b508b12 100644 --- a/Osmanagementhub/models/ManagedInstanceGroup.cs +++ b/Osmanagementhub/models/ManagedInstanceGroup.cs @@ -125,6 +125,12 @@ public enum LifecycleStateEnum { [JsonProperty(PropertyName = "softwareSourceIds")] public System.Collections.Generic.List SoftwareSourceIds { get; set; } + /// + /// The list of software sources that the managed instance group will use. + /// + [JsonProperty(PropertyName = "softwareSources")] + public System.Collections.Generic.List SoftwareSources { get; set; } + /// /// The list of managed instances OCIDs attached to the managed instance group. /// diff --git a/Stackmonitoring/StackMonitoringClient.cs b/Stackmonitoring/StackMonitoringClient.cs index c5f9341d5c..b2293520ef 100644 --- a/Stackmonitoring/StackMonitoringClient.cs +++ b/Stackmonitoring/StackMonitoringClient.cs @@ -131,6 +131,73 @@ public async Task AssociateMonitoredResourc } } + /// + /// 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. + /// <br/> + /// 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. + /// <br/> + /// So this operation will have the same effect as deleting the configuration item in the old compartment and + /// recreating it in another compartment. + /// <br/> + /// When provided, If-Match is checked against ETag values of the resource. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use ChangeConfigCompartment API. + public async Task ChangeConfigCompartment(ChangeConfigCompartmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called changeConfigCompartment"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/configs/{configId}/actions/changeCompartment".Trim('/'))); + HttpMethod method = new HttpMethod("POST"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "StackMonitoring", + OperationName = "ChangeConfigCompartment", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/Config/ChangeConfigCompartment", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"ChangeConfigCompartment failed with error: {e.Message}"); + throw; + } + } + /// /// Moves a monitored resource from one compartment to another. /// When provided, If-Match is checked against ETag values of the resource. @@ -189,6 +256,69 @@ public async Task ChangeMonitoredRes } } + /// + /// Creates a configuration item, for example to define + /// whether resources of a specific type should be discovered automatically. + /// <br/> + /// 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. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use CreateConfig API. + public async Task CreateConfig(CreateConfigRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called createConfig"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/configs".Trim('/'))); + HttpMethod method = new HttpMethod("POST"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "StackMonitoring", + OperationName = "CreateConfig", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/Config/CreateConfig", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"CreateConfig failed with error: {e.Message}"); + throw; + } + } + /// /// API to create discovery Job and submit discovery Details to agent. /// @@ -305,6 +435,62 @@ public async Task CreateMonitoredResource(Creat } } + /// + /// Deletes a configuration identified by the id. + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use DeleteConfig API. + public async Task DeleteConfig(DeleteConfigRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called deleteConfig"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/configs/{configId}".Trim('/'))); + HttpMethod method = new HttpMethod("DELETE"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "StackMonitoring", + OperationName = "DeleteConfig", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/Config/DeleteConfig", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"DeleteConfig failed with error: {e.Message}"); + throw; + } + } + /// /// Deletes a DiscoveryJob by identifier /// @@ -535,6 +721,62 @@ public async Task DisassociateMonitoredR } } + /// + /// Gets the details of a configuration. + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use GetConfig API. + public async Task GetConfig(GetConfigRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getConfig"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/configs/{configId}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "StackMonitoring", + OperationName = "GetConfig", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/Config/GetConfig", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"GetConfig failed with error: {e.Message}"); + throw; + } + } + /// /// API to get the details of discovery Job by identifier. /// @@ -705,6 +947,63 @@ public async Task GetWorkRequest(GetWorkRequestRequest r } } + /// + /// Get a list of configurations in a compartment. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use ListConfigs API. + public async Task ListConfigs(ListConfigsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listConfigs"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/configs".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "StackMonitoring", + OperationName = "ListConfigs", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/ConfigCollection/ListConfigs", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"ListConfigs failed with error: {e.Message}"); + throw; + } + } + /// /// API to get all the logs of a Discovery Job. /// @@ -1279,6 +1578,62 @@ public async Task UpdateAndPropagateTags(UpdateA } } + /// + /// Updates the configuration identified by the id given. + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use UpdateConfig API. + public async Task UpdateConfig(UpdateConfigRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateConfig"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/configs/{configId}".Trim('/'))); + HttpMethod method = new HttpMethod("PUT"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "StackMonitoring", + OperationName = "UpdateConfig", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/Config/UpdateConfig", + UserAgent = this.GetUserAgent() + }; + this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); + logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms"); + return Converter.FromHttpResponseMessage(responseMessage); + } + catch (OciException e) + { + logger.Error(e); + throw; + } + catch (Exception e) + { + logger.Error($"UpdateConfig failed with error: {e.Message}"); + throw; + } + } + /// /// 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, diff --git a/Stackmonitoring/StackMonitoringPaginators.cs b/Stackmonitoring/StackMonitoringPaginators.cs index 27b64de436..5a8c6af683 100644 --- a/Stackmonitoring/StackMonitoringPaginators.cs +++ b/Stackmonitoring/StackMonitoringPaginators.cs @@ -49,6 +49,55 @@ public StackMonitoringPaginators(StackMonitoringClient client) this.client = client; } + /// + /// Creates a new enumerable which will iterate over the responses received from the ListConfigs operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListConfigsResponseEnumerator(ListConfigsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListConfigs(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ConfigSummary objects + /// contained in responses from the ListConfigs operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListConfigsRecordEnumerator(ListConfigsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListConfigs(request, retryConfiguration, cancellationToken), + response => response.ConfigCollection.Items + ); + } + /// /// Creates a new enumerable which will iterate over the responses received from the ListDiscoveryJobLogs operation. This enumerable /// will fetch more data from the server as needed. diff --git a/Stackmonitoring/StackMonitoringWaiters.cs b/Stackmonitoring/StackMonitoringWaiters.cs index 6855018d7f..ae1a3d0dab 100644 --- a/Stackmonitoring/StackMonitoringWaiters.cs +++ b/Stackmonitoring/StackMonitoringWaiters.cs @@ -26,6 +26,34 @@ public StackMonitoringWaiters(StackMonitoringClient client) this.client = client; } + /// + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForConfig(GetConfigRequest request, params Config.LifecycleStateEnum[] targetStates) + { + return this.ForConfig(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForConfig(GetConfigRequest request, WaiterConfiguration config, params Config.LifecycleStateEnum[] targetStates) + { + var agent = new WaiterAgent( + request, + request => client.GetConfig(request), + response => targetStates.Contains(response.Config.LifecycleState.Value), + targetStates.Contains(Config.LifecycleStateEnum.Deleted) + ); + return new Waiter(config, agent); + } /// /// Creates a waiter using default wait configuration. /// diff --git a/Stackmonitoring/models/AutoPromoteConfigDetails.cs b/Stackmonitoring/models/AutoPromoteConfigDetails.cs new file mode 100644 index 0000000000..c71cbad199 --- /dev/null +++ b/Stackmonitoring/models/AutoPromoteConfigDetails.cs @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.StackmonitoringService.Models +{ + /// + /// 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. + /// + /// + public class AutoPromoteConfigDetails : Config + { + /// + /// + /// The type of resource to configure for automatic promotion. + /// + /// + public enum ResourceTypeEnum { + /// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK. + [EnumMember(Value = null)] + UnknownEnumValue, + [EnumMember(Value = "HOST")] + Host + }; + + /// + /// The type of resource to configure for automatic promotion. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ResourceType is required.")] + [JsonProperty(PropertyName = "resourceType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ResourceType { get; set; } + + /// + /// True if automatic promotion is enabled, false if it is not enabled. + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsEnabled is required.")] + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + [JsonProperty(PropertyName = "configType")] + private readonly string configType = "AUTO_PROMOTE"; + } +} diff --git a/Stackmonitoring/models/AutoPromoteConfigSummary.cs b/Stackmonitoring/models/AutoPromoteConfigSummary.cs new file mode 100644 index 0000000000..8a3d6ee187 --- /dev/null +++ b/Stackmonitoring/models/AutoPromoteConfigSummary.cs @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.StackmonitoringService.Models +{ + /// + /// Summary of an AUTO_PROMOTE config. + /// + /// + public class AutoPromoteConfigSummary : ConfigSummary + { + /// + /// + /// The type of resource to configure for automatic promotion. + /// + /// + public enum ResourceTypeEnum { + /// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK. + [EnumMember(Value = null)] + UnknownEnumValue, + [EnumMember(Value = "HOST")] + Host + }; + + /// + /// The type of resource to configure for automatic promotion. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ResourceType is required.")] + [JsonProperty(PropertyName = "resourceType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ResourceType { get; set; } + + /// + /// True if automatic promotion is enabled, false if it is not enabled. + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsEnabled is required.")] + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + [JsonProperty(PropertyName = "configType")] + private readonly string configType = "AUTO_PROMOTE"; + } +} diff --git a/Stackmonitoring/models/ChangeConfigCompartmentDetails.cs b/Stackmonitoring/models/ChangeConfigCompartmentDetails.cs new file mode 100644 index 0000000000..af57a5d361 --- /dev/null +++ b/Stackmonitoring/models/ChangeConfigCompartmentDetails.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.StackmonitoringService.Models +{ + /// + /// Details for which compartment to move the resource to. + /// + public class ChangeConfigCompartmentDetails + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment + /// into which the resource should be moved. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + } +} diff --git a/Stackmonitoring/models/Config.cs b/Stackmonitoring/models/Config.cs new file mode 100644 index 0000000000..16ae9f6fcb --- /dev/null +++ b/Stackmonitoring/models/Config.cs @@ -0,0 +1,168 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.StackmonitoringService.Models +{ + /// + /// 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'). + /// + ///
+ [JsonConverter(typeof(ConfigModelConverter))] + public class Config + { + + /// + /// The Unique Oracle ID (OCID) that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The OCID of the compartment containing the configuration. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The time the configuration was created. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The time the Config was updated. + /// + [JsonProperty(PropertyName = "timeUpdated")] + public System.Nullable TimeUpdated { get; set; } + /// + /// + /// The current state of the configuration. + /// + /// + public enum LifecycleStateEnum { + [EnumMember(Value = "CREATING")] + Creating, + [EnumMember(Value = "UPDATING")] + Updating, + [EnumMember(Value = "ACTIVE")] + Active, + [EnumMember(Value = "DELETING")] + Deleting, + [EnumMember(Value = "DELETED")] + Deleted, + [EnumMember(Value = "FAILED")] + Failed + }; + + /// + /// The current state of the configuration. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleState is required.")] + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + /// + /// + /// The type of configuration. + /// + /// + public enum ConfigTypeEnum { + [EnumMember(Value = "AUTO_PROMOTE")] + AutoPromote + }; + + + /// + /// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + /// Example: {"bar-key": "value"} + /// + [JsonProperty(PropertyName = "freeformTags")] + public System.Collections.Generic.Dictionary FreeformTags { get; set; } + + /// + /// Defined tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"foo-namespace": {"bar-key": "value"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// Usage of system tag keys. These predefined keys are scoped to namespaces. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } + + public class ConfigModelConverter : JsonConverter + { + private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(Config); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(Config); + var discriminator = jsonObject["configType"].Value(); + switch (discriminator) + { + case "AUTO_PROMOTE": + obj = new AutoPromoteConfigDetails(); + break; + } + if (obj != null) + { + serializer.Populate(jsonObject.CreateReader(), obj); + } + else + { + logger.Warn($"The type {discriminator} is not present under Config! Returning null value."); + } + return obj; + } + } +} diff --git a/Stackmonitoring/models/ConfigCollection.cs b/Stackmonitoring/models/ConfigCollection.cs new file mode 100644 index 0000000000..b4f8d48135 --- /dev/null +++ b/Stackmonitoring/models/ConfigCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.StackmonitoringService.Models +{ + /// + /// Contains a list of configurations. + /// + public class ConfigCollection + { + + /// + /// List of configurations. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Stackmonitoring/models/ConfigSummary.cs b/Stackmonitoring/models/ConfigSummary.cs new file mode 100644 index 0000000000..a763b7902e --- /dev/null +++ b/Stackmonitoring/models/ConfigSummary.cs @@ -0,0 +1,126 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.StackmonitoringService.Models +{ + /// + /// Summary of the configuration. + /// + [JsonConverter(typeof(ConfigSummaryModelConverter))] + public class ConfigSummary + { + + /// + /// Unique identifier that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Compartment Identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// Config Identifier, can be renamed. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The time the the configuration was created. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The time the configuration was updated. + /// + [JsonProperty(PropertyName = "timeUpdated")] + public System.Nullable TimeUpdated { get; set; } + + /// + /// The current state of the configuration. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleState is required.")] + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + + /// + /// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + /// Example: {"bar-key": "value"} + /// + [JsonProperty(PropertyName = "freeformTags")] + public System.Collections.Generic.Dictionary FreeformTags { get; set; } + + /// + /// Defined tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"foo-namespace": {"bar-key": "value"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// Usage of system tag keys. These predefined keys are scoped to namespaces. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } + + public class ConfigSummaryModelConverter : JsonConverter + { + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(ConfigSummary); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(ConfigSummary); + var discriminator = jsonObject["configType"].Value(); + switch (discriminator) + { + case "AUTO_PROMOTE": + obj = new AutoPromoteConfigSummary(); + break; + } + serializer.Populate(jsonObject.CreateReader(), obj); + return obj; + } + } +} diff --git a/Stackmonitoring/models/CreateAutoPromoteConfigDetails.cs b/Stackmonitoring/models/CreateAutoPromoteConfigDetails.cs new file mode 100644 index 0000000000..0b93af59f9 --- /dev/null +++ b/Stackmonitoring/models/CreateAutoPromoteConfigDetails.cs @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.StackmonitoringService.Models +{ + /// + /// The details of an AUTO_PROMOTE configuration. + /// + /// + public class CreateAutoPromoteConfigDetails : CreateConfigDetails + { + /// + /// + /// The type of resource to configure for automatic promotion. + /// + /// + public enum ResourceTypeEnum { + [EnumMember(Value = "HOST")] + Host + }; + + /// + /// The type of resource to configure for automatic promotion. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ResourceType is required.")] + [JsonProperty(PropertyName = "resourceType")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable ResourceType { get; set; } + + /// + /// True if automatic promotion is enabled, false if it is not enabled. + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsEnabled is required.")] + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + [JsonProperty(PropertyName = "configType")] + private readonly string configType = "AUTO_PROMOTE"; + } +} diff --git a/Stackmonitoring/models/CreateConfigDetails.cs b/Stackmonitoring/models/CreateConfigDetails.cs new file mode 100644 index 0000000000..54a2536546 --- /dev/null +++ b/Stackmonitoring/models/CreateConfigDetails.cs @@ -0,0 +1,86 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.StackmonitoringService.Models +{ + /// + /// Create a configuration. + /// + [JsonConverter(typeof(CreateConfigDetailsModelConverter))] + public class CreateConfigDetails + { + + /// + /// The display name of the configuration. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Compartment in which the configuration is created. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + + /// + /// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + /// Example: {"bar-key": "value"} + /// + [JsonProperty(PropertyName = "freeformTags")] + public System.Collections.Generic.Dictionary FreeformTags { get; set; } + + /// + /// Defined tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"foo-namespace": {"bar-key": "value"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } + + public class CreateConfigDetailsModelConverter : JsonConverter + { + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(CreateConfigDetails); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(CreateConfigDetails); + var discriminator = jsonObject["configType"].Value(); + switch (discriminator) + { + case "AUTO_PROMOTE": + obj = new CreateAutoPromoteConfigDetails(); + break; + } + serializer.Populate(jsonObject.CreateReader(), obj); + return obj; + } + } +} diff --git a/Stackmonitoring/models/UpdateAutoPromoteConfigDetails.cs b/Stackmonitoring/models/UpdateAutoPromoteConfigDetails.cs new file mode 100644 index 0000000000..a21a920ffe --- /dev/null +++ b/Stackmonitoring/models/UpdateAutoPromoteConfigDetails.cs @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.StackmonitoringService.Models +{ + /// + /// Change the details of an AUTO_PROMOTE config + /// + /// + public class UpdateAutoPromoteConfigDetails : UpdateConfigDetails + { + + /// + /// True if automatic promotion is enabled, false if it is not enabled. + /// + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + [JsonProperty(PropertyName = "configType")] + private readonly string configType = "AUTO_PROMOTE"; + } +} diff --git a/Stackmonitoring/models/UpdateConfigDetails.cs b/Stackmonitoring/models/UpdateConfigDetails.cs new file mode 100644 index 0000000000..90eeb4385b --- /dev/null +++ b/Stackmonitoring/models/UpdateConfigDetails.cs @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.StackmonitoringService.Models +{ + /// + /// Change the configuration. + /// + [JsonConverter(typeof(UpdateConfigDetailsModelConverter))] + public class UpdateConfigDetails + { + + /// + /// The display name of the configuration. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + + /// + /// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + /// Example: {"bar-key": "value"} + /// + [JsonProperty(PropertyName = "freeformTags")] + public System.Collections.Generic.Dictionary FreeformTags { get; set; } + + /// + /// Defined tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"foo-namespace": {"bar-key": "value"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } + + public class UpdateConfigDetailsModelConverter : JsonConverter + { + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(UpdateConfigDetails); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(UpdateConfigDetails); + var discriminator = jsonObject["configType"].Value(); + switch (discriminator) + { + case "AUTO_PROMOTE": + obj = new UpdateAutoPromoteConfigDetails(); + break; + } + serializer.Populate(jsonObject.CreateReader(), obj); + return obj; + } + } +} diff --git a/Stackmonitoring/requests/ChangeConfigCompartmentRequest.cs b/Stackmonitoring/requests/ChangeConfigCompartmentRequest.cs new file mode 100644 index 0000000000..87359258f6 --- /dev/null +++ b/Stackmonitoring/requests/ChangeConfigCompartmentRequest.cs @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Requests +{ + /// + /// Click here to see an example of how to use ChangeConfigCompartment request. + /// + public class ChangeConfigCompartmentRequest : Oci.Common.IOciRequest + { + + /// + /// Unique Config identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ConfigId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "configId")] + public string ConfigId { get; set; } + + /// + /// Details for the compartment move. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ChangeConfigCompartmentDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ChangeConfigCompartmentDetails ChangeConfigCompartmentDetails { get; set; } + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + /// particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Stackmonitoring/requests/CreateConfigRequest.cs b/Stackmonitoring/requests/CreateConfigRequest.cs new file mode 100644 index 0000000000..56ce6804c0 --- /dev/null +++ b/Stackmonitoring/requests/CreateConfigRequest.cs @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Requests +{ + /// + /// Click here to see an example of how to use CreateConfig request. + /// + public class CreateConfigRequest : Oci.Common.IOciRequest + { + + /// + /// Details for the new configuration. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CreateConfigDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public CreateConfigDetails CreateConfigDetails { get; set; } + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + /// particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Stackmonitoring/requests/DeleteConfigRequest.cs b/Stackmonitoring/requests/DeleteConfigRequest.cs new file mode 100644 index 0000000000..947ee7b457 --- /dev/null +++ b/Stackmonitoring/requests/DeleteConfigRequest.cs @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Requests +{ + /// + /// Click here to see an example of how to use DeleteConfig request. + /// + public class DeleteConfigRequest : Oci.Common.IOciRequest + { + + /// + /// Unique Config identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ConfigId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "configId")] + public string ConfigId { get; set; } + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + /// particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Stackmonitoring/requests/GetConfigRequest.cs b/Stackmonitoring/requests/GetConfigRequest.cs new file mode 100644 index 0000000000..ef2e914fa3 --- /dev/null +++ b/Stackmonitoring/requests/GetConfigRequest.cs @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Requests +{ + /// + /// Click here to see an example of how to use GetConfig request. + /// + public class GetConfigRequest : Oci.Common.IOciRequest + { + + /// + /// Unique Config identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ConfigId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "configId")] + public string ConfigId { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + /// particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Stackmonitoring/requests/ListConfigsRequest.cs b/Stackmonitoring/requests/ListConfigsRequest.cs new file mode 100644 index 0000000000..9d705762cb --- /dev/null +++ b/Stackmonitoring/requests/ListConfigsRequest.cs @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Requests +{ + /// + /// Click here to see an example of how to use ListConfigs request. + /// + public class ListConfigsRequest : Oci.Common.IOciRequest + { + + /// + /// The ID of the compartment in which data is listed. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A filter to return only resources that match the entire display name given. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName")] + public string DisplayName { get; set; } + + /// + /// A filter to return only configuration items for a given config type. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "type")] + public System.Nullable Type { get; set; } + + /// + /// 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). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// 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). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The current state of the Config. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleState")] + public System.Nullable LifecycleState { get; set; } + + /// + /// The sort order to use, either ascending (`ASC`) or descending (`DESC`). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// 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. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "configType")] + ConfigType, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + /// particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Stackmonitoring/requests/UpdateConfigRequest.cs b/Stackmonitoring/requests/UpdateConfigRequest.cs new file mode 100644 index 0000000000..22dcf5d693 --- /dev/null +++ b/Stackmonitoring/requests/UpdateConfigRequest.cs @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Requests +{ + /// + /// Click here to see an example of how to use UpdateConfig request. + /// + public class UpdateConfigRequest : Oci.Common.IOciRequest + { + + /// + /// Unique Config identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ConfigId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "configId")] + public string ConfigId { get; set; } + + /// + /// The details of the configuration to be updated. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateConfigDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateConfigDetails UpdateConfigDetails { get; set; } + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + /// particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Stackmonitoring/responses/ChangeConfigCompartmentResponse.cs b/Stackmonitoring/responses/ChangeConfigCompartmentResponse.cs new file mode 100644 index 0000000000..6e8f1986d0 --- /dev/null +++ b/Stackmonitoring/responses/ChangeConfigCompartmentResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Responses +{ + public class ChangeConfigCompartmentResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Stackmonitoring/responses/CreateConfigResponse.cs b/Stackmonitoring/responses/CreateConfigResponse.cs new file mode 100644 index 0000000000..4b5ad8b33c --- /dev/null +++ b/Stackmonitoring/responses/CreateConfigResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Responses +{ + public class CreateConfigResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned Config instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public Config Config { get; set; } + + } +} diff --git a/Stackmonitoring/responses/DeleteConfigResponse.cs b/Stackmonitoring/responses/DeleteConfigResponse.cs new file mode 100644 index 0000000000..17c4445ff0 --- /dev/null +++ b/Stackmonitoring/responses/DeleteConfigResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Responses +{ + public class DeleteConfigResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Stackmonitoring/responses/GetConfigResponse.cs b/Stackmonitoring/responses/GetConfigResponse.cs new file mode 100644 index 0000000000..6f5b68da13 --- /dev/null +++ b/Stackmonitoring/responses/GetConfigResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Responses +{ + public class GetConfigResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned Config instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public Config Config { get; set; } + + } +} diff --git a/Stackmonitoring/responses/ListConfigsResponse.cs b/Stackmonitoring/responses/ListConfigsResponse.cs new file mode 100644 index 0000000000..c1f29cb1aa --- /dev/null +++ b/Stackmonitoring/responses/ListConfigsResponse.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Responses +{ + public class ListConfigsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// 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. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ConfigCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ConfigCollection ConfigCollection { get; set; } + + } +} diff --git a/Stackmonitoring/responses/UpdateConfigResponse.cs b/Stackmonitoring/responses/UpdateConfigResponse.cs new file mode 100644 index 0000000000..fc50d2596f --- /dev/null +++ b/Stackmonitoring/responses/UpdateConfigResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Responses +{ + public class UpdateConfigResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned Config instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public Config Config { get; set; } + + } +}