diff --git a/CHANGELOG.md b/CHANGELOG.md index ca3aab768a..6425e21c2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file. The format is based on Keep a [Changelog](http://keepachangelog.com/). +## 60.0.0 - 2023-05-02 +### Added +- Support for calling Oracle Cloud Infrastructure services in the `eu-jovanovac-1` region +- Support for bring-your-own-license TLS and ORDS certificates in the Database service +- Support for tags in the Stack Monitoring service +- Support for GPU shapes for model deployments in the Data Science service +- Support for returning networking details of instances in the Visual Builder service +- Support for high-memory VMs in the Compute service +- Support for integrating with the Integration Cloud service in the Process Automation service +- Support for managing on-demand node upgrades in node pools in the Container Engine for Kubernetes service + +### Breaking Changes +- The model `UpdateVirtualNodeDetails` was removed from the Container Engine for Kubernetes service + ## 59.1.0 - 2023-04-25 ### Added - Support for enabling mTLS authentication with Listener and for providing custom value for TLS port and Non-TLS Port during AVM Cluster Creation in Database service diff --git a/Common/Src/RealmDefinitions.cs b/Common/Src/RealmDefinitions.cs index 0b29d1d3ce..85969c5805 100644 --- a/Common/Src/RealmDefinitions.cs +++ b/Common/Src/RealmDefinitions.cs @@ -20,5 +20,6 @@ public partial class Realm public static readonly Realm OC9 = new Realm("oc9", "oraclecloud9.com"); public static readonly Realm OC10 = new Realm("oc10", "oraclecloud10.com"); public static readonly Realm OC14 = new Realm("oc14", "oraclecloud14.com"); + public static readonly Realm OC20 = new Realm("oc20", "oraclecloud20.com"); } } \ No newline at end of file diff --git a/Common/Src/RegionDefinitions.cs b/Common/Src/RegionDefinitions.cs index 2895588728..329f32d7d2 100644 --- a/Common/Src/RegionDefinitions.cs +++ b/Common/Src/RegionDefinitions.cs @@ -78,5 +78,8 @@ public partial class Region public static readonly Region EU_DCC_RATING_2 = Register("eu-dcc-rating-2", Realm.OC14, "dtm"); public static readonly Region EU_DCC_RATING_1 = Register("eu-dcc-rating-1", Realm.OC14, "dus"); public static readonly Region EU_DCC_DUBLIN_1 = Register("eu-dcc-dublin-1", Realm.OC14, "ork"); + + // OC20 + public static readonly Region EU_JOVANOVAC_1 = Register("eu-jovanovac-1", Realm.OC20, "beg"); } } \ No newline at end of file diff --git a/Common/Src/Version.cs b/Common/Src/Version.cs index 83be1d6298..632454df49 100644 --- a/Common/Src/Version.cs +++ b/Common/Src/Version.cs @@ -7,8 +7,8 @@ namespace Oci.Common { public class Version { - public static string MAJOR = "59"; - public static string MINOR = "1"; + public static string MAJOR = "60"; + public static string MINOR = "0"; public static string PATCH = "0"; public static string TAG = ""; diff --git a/Commontests/Regions.json b/Commontests/Regions.json index d36a929a1f..375eceb160 100644 --- a/Commontests/Regions.json +++ b/Commontests/Regions.json @@ -304,5 +304,11 @@ "realmKey": "oc14", "regionIdentifier": "eu-dcc-dublin-1", "realmDomainComponent": "oraclecloud14.com" + }, + { + "regionKey": "beg", + "realmKey": "oc20", + "regionIdentifier": "eu-jovanovac-1", + "realmDomainComponent": "oraclecloud20.com" } ] \ No newline at end of file diff --git a/Containerengine/models/CreateNodePoolDetails.cs b/Containerengine/models/CreateNodePoolDetails.cs index 992652e621..e7427bf723 100644 --- a/Containerengine/models/CreateNodePoolDetails.cs +++ b/Containerengine/models/CreateNodePoolDetails.cs @@ -152,5 +152,8 @@ public class CreateNodePoolDetails [JsonProperty(PropertyName = "nodeEvictionNodePoolSettings")] public NodeEvictionNodePoolSettings NodeEvictionNodePoolSettings { get; set; } + [JsonProperty(PropertyName = "nodePoolCyclingDetails")] + public NodePoolCyclingDetails NodePoolCyclingDetails { get; set; } + } } diff --git a/Containerengine/models/NodePool.cs b/Containerengine/models/NodePool.cs index 0c06c3d6a6..1b292f702e 100644 --- a/Containerengine/models/NodePool.cs +++ b/Containerengine/models/NodePool.cs @@ -170,5 +170,8 @@ public class NodePool [JsonProperty(PropertyName = "nodeEvictionNodePoolSettings")] public NodeEvictionNodePoolSettings NodeEvictionNodePoolSettings { get; set; } + [JsonProperty(PropertyName = "nodePoolCyclingDetails")] + public NodePoolCyclingDetails NodePoolCyclingDetails { get; set; } + } } diff --git a/Containerengine/models/NodePoolCyclingDetails.cs b/Containerengine/models/NodePoolCyclingDetails.cs new file mode 100644 index 0000000000..355d24b4cf --- /dev/null +++ b/Containerengine/models/NodePoolCyclingDetails.cs @@ -0,0 +1,49 @@ +/* + * 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.ContainerengineService.Models +{ + /// + /// Node Pool Cycling Details + /// + public class NodePoolCyclingDetails + { + + /// + /// Maximum active nodes that would be terminated from nodepool during the cycling nodepool process. + /// OKE supports both integer and percentage input. + /// Defaults to 0, Ranges from 0 to Nodepool size or 0% to 100% + /// + /// + [JsonProperty(PropertyName = "maximumUnavailable")] + public string MaximumUnavailable { get; set; } + + /// + /// Maximum additional new compute instances that would be temporarily created and added to nodepool during the cycling nodepool process. + /// OKE supports both integer and percentage input. + /// Defaults to 1, Ranges from 0 to Nodepool size or 0% to 100% + /// + /// + [JsonProperty(PropertyName = "maximumSurge")] + public string MaximumSurge { get; set; } + + /// + /// If nodes in the nodepool will be cycled to have new changes. + /// + [JsonProperty(PropertyName = "isNodeCyclingEnabled")] + public System.Nullable IsNodeCyclingEnabled { get; set; } + + } +} diff --git a/Containerengine/models/NodePoolSummary.cs b/Containerengine/models/NodePoolSummary.cs index 4a80132276..ce4d59117c 100644 --- a/Containerengine/models/NodePoolSummary.cs +++ b/Containerengine/models/NodePoolSummary.cs @@ -158,5 +158,8 @@ public class NodePoolSummary [JsonProperty(PropertyName = "nodeEvictionNodePoolSettings")] public NodeEvictionNodePoolSettings NodeEvictionNodePoolSettings { get; set; } + [JsonProperty(PropertyName = "nodePoolCyclingDetails")] + public NodePoolCyclingDetails NodePoolCyclingDetails { get; set; } + } } diff --git a/Containerengine/models/UpdateNodePoolDetails.cs b/Containerengine/models/UpdateNodePoolDetails.cs index 5babec7d3f..189a297eb6 100644 --- a/Containerengine/models/UpdateNodePoolDetails.cs +++ b/Containerengine/models/UpdateNodePoolDetails.cs @@ -120,5 +120,8 @@ public class UpdateNodePoolDetails [JsonProperty(PropertyName = "nodeEvictionNodePoolSettings")] public NodeEvictionNodePoolSettings NodeEvictionNodePoolSettings { get; set; } + [JsonProperty(PropertyName = "nodePoolCyclingDetails")] + public NodePoolCyclingDetails NodePoolCyclingDetails { get; set; } + } } diff --git a/Containerengine/models/UpdateVirtualNodeDetails.cs b/Containerengine/models/UpdateVirtualNodeDetails.cs deleted file mode 100644 index 1a714826e7..0000000000 --- a/Containerengine/models/UpdateVirtualNodeDetails.cs +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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.ContainerengineService.Models -{ - /// - /// The properties that define a request to update a virtual node. - /// - public class UpdateVirtualNodeDetails - { - - /// - /// The state of the Virtual Node. - /// - [JsonProperty(PropertyName = "lifecycleState")] - [JsonConverter(typeof(StringEnumConverter))] - public System.Nullable LifecycleState { get; set; } - - } -} diff --git a/Containerengine/models/WorkRequestOperationType.cs b/Containerengine/models/WorkRequestOperationType.cs index 1d4a488296..cf59854c01 100644 --- a/Containerengine/models/WorkRequestOperationType.cs +++ b/Containerengine/models/WorkRequestOperationType.cs @@ -33,6 +33,8 @@ public enum WorkRequestOperationType { NodepoolDelete, [EnumMember(Value = "NODEPOOL_RECONCILE")] NodepoolReconcile, + [EnumMember(Value = "NODEPOOL_CYCLING")] + NodepoolCycling, [EnumMember(Value = "WORKREQUEST_CANCEL")] WorkrequestCancel, [EnumMember(Value = "VIRTUALNODEPOOL_CREATE")] diff --git a/Core/models/Instance.cs b/Core/models/Instance.cs index abdd89c1f8..10bee0ff88 100644 --- a/Core/models/Instance.cs +++ b/Core/models/Instance.cs @@ -309,6 +309,13 @@ public enum LifecycleStateEnum { [JsonProperty(PropertyName = "shapeConfig")] public InstanceShapeConfig ShapeConfig { get; set; } + /// + /// Whether the instance\u2019s OCPUs and memory are distributed across multiple NUMA nodes. + /// + /// + [JsonProperty(PropertyName = "isCrossNumaNode")] + public System.Nullable IsCrossNumaNode { get; set; } + [JsonProperty(PropertyName = "sourceDetails")] public InstanceSourceDetails SourceDetails { get; set; } diff --git a/Core/models/ShapeMemoryOptions.cs b/Core/models/ShapeMemoryOptions.cs index 0a6a2ca325..f6342854a0 100644 --- a/Core/models/ShapeMemoryOptions.cs +++ b/Core/models/ShapeMemoryOptions.cs @@ -59,5 +59,12 @@ public class ShapeMemoryOptions [JsonProperty(PropertyName = "maxPerOcpuInGBs")] public System.Nullable MaxPerOcpuInGBs { get; set; } + /// + /// The maximum amount of memory per NUMA node, in gigabytes. + /// + /// + [JsonProperty(PropertyName = "maxPerNumaNodeInGBs")] + public System.Nullable MaxPerNumaNodeInGBs { get; set; } + } } diff --git a/Core/models/ShapeOcpuOptions.cs b/Core/models/ShapeOcpuOptions.cs index a2e806a038..a43bc09c73 100644 --- a/Core/models/ShapeOcpuOptions.cs +++ b/Core/models/ShapeOcpuOptions.cs @@ -38,5 +38,12 @@ public class ShapeOcpuOptions [JsonProperty(PropertyName = "max")] public System.Nullable Max { get; set; } + /// + /// The maximum number of cores available per NUMA node. + /// + /// + [JsonProperty(PropertyName = "maxPerNumaNode")] + public System.Nullable MaxPerNumaNode { get; set; } + } } diff --git a/Database/models/CloudAutonomousVmCluster.cs b/Database/models/CloudAutonomousVmCluster.cs index 0637392797..1a18ef7131 100644 --- a/Database/models/CloudAutonomousVmCluster.cs +++ b/Database/models/CloudAutonomousVmCluster.cs @@ -338,6 +338,18 @@ public enum LicenseModelEnum { [JsonProperty(PropertyName = "definedTags")] public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + /// + /// The date and time of Database SSL certificate expiration. + /// + [JsonProperty(PropertyName = "timeDatabaseSslCertificateExpires")] + public System.Nullable TimeDatabaseSslCertificateExpires { get; set; } + + /// + /// The date and time of ORDS certificate expiration. + /// + [JsonProperty(PropertyName = "timeOrdsCertificateExpires")] + public System.Nullable TimeOrdsCertificateExpires { get; set; } + /// /// CPU cores available for allocation to Autonomous Databases. /// diff --git a/Database/models/CloudAutonomousVmClusterSummary.cs b/Database/models/CloudAutonomousVmClusterSummary.cs index 962b8c8d64..b418f38cc5 100644 --- a/Database/models/CloudAutonomousVmClusterSummary.cs +++ b/Database/models/CloudAutonomousVmClusterSummary.cs @@ -338,6 +338,18 @@ public enum LicenseModelEnum { [JsonProperty(PropertyName = "definedTags")] public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + /// + /// The date and time of Database SSL certificate expiration. + /// + [JsonProperty(PropertyName = "timeDatabaseSslCertificateExpires")] + public System.Nullable TimeDatabaseSslCertificateExpires { get; set; } + + /// + /// The date and time of ORDS certificate expiration. + /// + [JsonProperty(PropertyName = "timeOrdsCertificateExpires")] + public System.Nullable TimeOrdsCertificateExpires { get; set; } + /// /// CPU cores available for allocation to Autonomous Databases. /// diff --git a/Database/models/RotateCloudAutonomousVmClusterOrdsCertsDetails.cs b/Database/models/RotateCloudAutonomousVmClusterOrdsCertsDetails.cs new file mode 100644 index 0000000000..dbddc04fd8 --- /dev/null +++ b/Database/models/RotateCloudAutonomousVmClusterOrdsCertsDetails.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 Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabaseService.Models +{ + /// + /// The details for configuring the ORDS certificates on Cloud Autonomous VM Cluster + /// + /// + public class RotateCloudAutonomousVmClusterOrdsCertsDetails + { + /// + /// + /// Specify SYSTEM for using Oracle managed certificates. Specify BYOC when you want to bring your own certificate. + /// + /// + public enum CertificateGenerationTypeEnum { + [EnumMember(Value = "SYSTEM")] + System, + [EnumMember(Value = "BYOC")] + Byoc + }; + + /// + /// Specify SYSTEM for using Oracle managed certificates. Specify BYOC when you want to bring your own certificate. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CertificateGenerationType is required.")] + [JsonProperty(PropertyName = "certificateGenerationType")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable CertificateGenerationType { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the certificate to use. + /// + /// + [JsonProperty(PropertyName = "certificateId")] + public string CertificateId { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the certificate authority. + /// + /// + [JsonProperty(PropertyName = "certificateAuthorityId")] + public string CertificateAuthorityId { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the certificate bundle. + /// + /// + [JsonProperty(PropertyName = "caBundleId")] + public string CaBundleId { get; set; } + + } +} diff --git a/Database/models/RotateCloudAutonomousVmClusterSslCertsDetails.cs b/Database/models/RotateCloudAutonomousVmClusterSslCertsDetails.cs new file mode 100644 index 0000000000..454a58d17c --- /dev/null +++ b/Database/models/RotateCloudAutonomousVmClusterSslCertsDetails.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 Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabaseService.Models +{ + /// + /// The details for configuring the SSL certificates on Cloud Autonomous VM Cluster + /// + /// + public class RotateCloudAutonomousVmClusterSslCertsDetails + { + /// + /// + /// Specify SYSTEM for using Oracle managed certificates. Specify BYOC when you want to bring your own certificate. + /// + /// + public enum CertificateGenerationTypeEnum { + [EnumMember(Value = "SYSTEM")] + System, + [EnumMember(Value = "BYOC")] + Byoc + }; + + /// + /// Specify SYSTEM for using Oracle managed certificates. Specify BYOC when you want to bring your own certificate. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CertificateGenerationType is required.")] + [JsonProperty(PropertyName = "certificateGenerationType")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable CertificateGenerationType { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the certificate to use. + /// + /// + [JsonProperty(PropertyName = "certificateId")] + public string CertificateId { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the certificate authority. + /// + /// + [JsonProperty(PropertyName = "certificateAuthorityId")] + public string CertificateAuthorityId { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the certificate bundle. + /// + /// + [JsonProperty(PropertyName = "caBundleId")] + public string CaBundleId { get; set; } + + } +} diff --git a/Database/requests/RotateCloudAutonomousVmClusterOrdsCertsRequest.cs b/Database/requests/RotateCloudAutonomousVmClusterOrdsCertsRequest.cs index 1f4e2417f1..13fb1b6477 100644 --- a/Database/requests/RotateCloudAutonomousVmClusterOrdsCertsRequest.cs +++ b/Database/requests/RotateCloudAutonomousVmClusterOrdsCertsRequest.cs @@ -29,6 +29,12 @@ public class RotateCloudAutonomousVmClusterOrdsCertsRequest : Oci.Common.IOciReq [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "cloudAutonomousVmClusterId")] public string CloudAutonomousVmClusterId { get; set; } + /// + /// Request to rotate the Oracle REST Data Services (ORDS) certificates on Cloud Autonomous Exadata VM cluster. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public RotateCloudAutonomousVmClusterOrdsCertsDetails RotateCloudAutonomousVmClusterOrdsCertsDetails { 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 diff --git a/Database/requests/RotateCloudAutonomousVmClusterSslCertsRequest.cs b/Database/requests/RotateCloudAutonomousVmClusterSslCertsRequest.cs index e1deabd1a8..5cafeac9fd 100644 --- a/Database/requests/RotateCloudAutonomousVmClusterSslCertsRequest.cs +++ b/Database/requests/RotateCloudAutonomousVmClusterSslCertsRequest.cs @@ -29,6 +29,12 @@ public class RotateCloudAutonomousVmClusterSslCertsRequest : Oci.Common.IOciRequ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "cloudAutonomousVmClusterId")] public string CloudAutonomousVmClusterId { get; set; } + /// + /// Request to rotate the SSL certificates on Cloud Autonomous Exadata VM cluster. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public RotateCloudAutonomousVmClusterSslCertsDetails RotateCloudAutonomousVmClusterSslCertsDetails { 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 diff --git a/Datascience/models/ModelDeploymentShapeSeries.cs b/Datascience/models/ModelDeploymentShapeSeries.cs index 887b487b7c..e9b19bbbb6 100644 --- a/Datascience/models/ModelDeploymentShapeSeries.cs +++ b/Datascience/models/ModelDeploymentShapeSeries.cs @@ -23,6 +23,10 @@ public enum ModelDeploymentShapeSeries { [EnumMember(Value = "AMD_ROME")] AmdRome, [EnumMember(Value = "INTEL_SKYLAKE")] - IntelSkylake + IntelSkylake, + [EnumMember(Value = "NVIDIA_GPU")] + NvidiaGpu, + [EnumMember(Value = "LEGACY")] + Legacy } } diff --git a/Opa/OpaInstanceClient.cs b/Opa/OpaInstanceClient.cs index e02cbabab5..1dafe5ae3b 100644 --- a/Opa/OpaInstanceClient.cs +++ b/Opa/OpaInstanceClient.cs @@ -45,7 +45,7 @@ public OpaInstanceClient(IBasicAuthenticationDetailsProvider authenticationDetai { ServiceName = "OPAINSTANCE", ServiceEndpointPrefix = "", - ServiceEndpointTemplate = "https://process-automation.{region}.oci.{secondLevelDomain}" + ServiceEndpointTemplate = "https://process.{region}.oci.{secondLevelDomain}" }; ClientConfiguration clientConfigurationToUse = clientConfiguration ?? new ClientConfiguration(); @@ -104,7 +104,7 @@ public async Task CancelWorkRequest(CancelWorkRequest ServiceName = "OpaInstance", OperationName = "CancelWorkRequest", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/WorkRequest/CancelWorkRequest", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); @@ -160,7 +160,7 @@ public async Task ChangeOpaInstanceCompart ServiceName = "OpaInstance", OperationName = "ChangeOpaInstanceCompartment", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/OpaInstance/ChangeOpaInstanceCompartment", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); @@ -217,7 +217,7 @@ public async Task CreateOpaInstance(CreateOpaInstance ServiceName = "OpaInstance", OperationName = "CreateOpaInstance", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/OpaInstance/CreateOpaInstance", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); @@ -273,7 +273,7 @@ public async Task DeleteOpaInstance(DeleteOpaInstance ServiceName = "OpaInstance", OperationName = "DeleteOpaInstance", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/OpaInstance/DeleteOpaInstance", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); @@ -329,7 +329,7 @@ public async Task GetOpaInstance(GetOpaInstanceRequest r ServiceName = "OpaInstance", OperationName = "GetOpaInstance", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/OpaInstance/GetOpaInstance", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); @@ -385,7 +385,7 @@ public async Task GetWorkRequest(GetWorkRequestRequest r ServiceName = "OpaInstance", OperationName = "GetWorkRequest", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/WorkRequest/GetWorkRequest", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); @@ -442,7 +442,7 @@ public async Task ListOpaInstances(ListOpaInstancesReq ServiceName = "OpaInstance", OperationName = "ListOpaInstances", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/OpaInstanceCollection/ListOpaInstances", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); @@ -499,7 +499,7 @@ public async Task ListWorkRequestErrors(ListWorkR ServiceName = "OpaInstance", OperationName = "ListWorkRequestErrors", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/WorkRequestError/ListWorkRequestErrors", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); @@ -556,7 +556,7 @@ public async Task ListWorkRequestLogs(ListWorkReque ServiceName = "OpaInstance", OperationName = "ListWorkRequestLogs", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/WorkRequestLogEntry/ListWorkRequestLogs", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); @@ -613,7 +613,7 @@ public async Task ListWorkRequests(ListWorkRequestsReq ServiceName = "OpaInstance", OperationName = "ListWorkRequests", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/WorkRequest/ListWorkRequests", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); @@ -669,7 +669,7 @@ public async Task UpdateOpaInstance(UpdateOpaInstance ServiceName = "OpaInstance", OperationName = "UpdateOpaInstance", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/opa/20210621/OpaInstance/UpdateOpaInstance", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); diff --git a/Opa/models/AttachmentDetails.cs b/Opa/models/AttachmentDetails.cs new file mode 100644 index 0000000000..3f5ad66e64 --- /dev/null +++ b/Opa/models/AttachmentDetails.cs @@ -0,0 +1,98 @@ +/* + * 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.OpaService.Models +{ + /// + /// Description of an attachment for an instance + /// + public class AttachmentDetails + { + /// + /// + /// The role of the target attachment. + /// * `PARENT` - The target instance is the parent of this attachment. + /// * `CHILD` - The target instance is the child of this attachment. + /// + /// + /// + public enum TargetRoleEnum { + /// 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 = "PARENT")] + Parent, + [EnumMember(Value = "CHILD")] + Child + }; + + /// + /// The role of the target attachment. + /// * `PARENT` - The target instance is the parent of this attachment. + /// * `CHILD` - The target instance is the child of this attachment. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "TargetRole is required.")] + [JsonProperty(PropertyName = "targetRole")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable TargetRole { get; set; } + + /// + /// * If role == `PARENT`, the attached instance was created by this service instance + /// * If role == `CHILD`, this instance was created from attached instance on behalf of a user + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsImplicit is required.")] + [JsonProperty(PropertyName = "isImplicit")] + public System.Nullable IsImplicit { get; set; } + + /// + /// The OCID of the target instance (which could be any other OCI PaaS/SaaS resource), to which this instance is attached. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TargetId is required.")] + [JsonProperty(PropertyName = "targetId")] + public string TargetId { get; set; } + + /// + /// The dataplane instance URL of the attached instance + /// + /// + /// Required + /// + [Required(ErrorMessage = "TargetInstanceUrl is required.")] + [JsonProperty(PropertyName = "targetInstanceUrl")] + public string TargetInstanceUrl { get; set; } + + /// + /// The type of the target instance, such as \"FUSION\". + /// + /// + /// Required + /// + [Required(ErrorMessage = "TargetServiceType is required.")] + [JsonProperty(PropertyName = "targetServiceType")] + public string TargetServiceType { get; set; } + + } +} diff --git a/Opa/models/OpaInstance.cs b/Opa/models/OpaInstance.cs index 97a72d6e77..70281420f6 100644 --- a/Opa/models/OpaInstance.cs +++ b/Opa/models/OpaInstance.cs @@ -236,5 +236,12 @@ public enum LifecycleStateEnum { [JsonProperty(PropertyName = "systemTags")] public System.Collections.Generic.Dictionary> SystemTags { get; set; } + /// + /// A list of associated attachments to other services + /// + /// + [JsonProperty(PropertyName = "attachments")] + public System.Collections.Generic.List Attachments { get; set; } + } } diff --git a/Opa/models/OperationType.cs b/Opa/models/OperationType.cs index 5921ea9985..0451ed4f02 100644 --- a/Opa/models/OperationType.cs +++ b/Opa/models/OperationType.cs @@ -26,6 +26,10 @@ public enum OperationType { [EnumMember(Value = "DELETE_OPA_INSTANCE")] DeleteOpaInstance, [EnumMember(Value = "MOVE_OPA_INSTANCE")] - MoveOpaInstance + MoveOpaInstance, + [EnumMember(Value = "CREATE_OPA_INSTANCE_ATTACHMENT")] + CreateOpaInstanceAttachment, + [EnumMember(Value = "DELETE_OPA_INSTANCE_ATTACHMENT")] + DeleteOpaInstanceAttachment } } diff --git a/Stackmonitoring/StackMonitoringClient.cs b/Stackmonitoring/StackMonitoringClient.cs index 26944336f4..76490c486d 100644 --- a/Stackmonitoring/StackMonitoringClient.cs +++ b/Stackmonitoring/StackMonitoringClient.cs @@ -68,7 +68,10 @@ public StackMonitoringClient(IBasicAuthenticationDetailsProvider authenticationD } /// - /// Create an association between two monitored resources. + /// Create an association between two monitored resources. Associations can be created + /// between resources from different compartments as long they are in same tenancy. + /// User should have required access in both the compartments. + /// /// /// The request object containing the details to send. Required. /// The retry configuration that will be used by to send this request. Optional. @@ -124,7 +127,9 @@ public async Task AssociateMonitoredResourc } /// - /// Moves a MonitoredResource resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource. + /// Moves a monitored resource from one compartment to another. + /// 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. @@ -237,7 +242,9 @@ public async Task CreateDiscoveryJob(CreateDiscovery } /// - /// Creates a new monitored resource for the given resource type + /// Creates a new monitored resource for the given resource type with the details and submits + /// a work request for promoting the resource to agent. Once the resource is successfully + /// added to agent, resource state will be marked active. /// /// /// The request object containing the details to send. Required. @@ -350,7 +357,11 @@ public async Task DeleteDiscoveryJob(DeleteDiscovery } /// - /// Deletes a monitored resource by identifier + /// Delete monitored resource by the given identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// By default, only the specified resource is deleted. If the parameter 'isDeleteMembers' is set to true, + /// then the member resources will be deleted too. If the operation fails partially, the deleted entries + /// will not be rolled back. + /// /// /// The request object containing the details to send. Required. /// The retry configuration that will be used by to send this request. Optional. @@ -406,7 +417,8 @@ public async Task DeleteMonitoredResource(Delet } /// - /// Disable external database resource monitoring. + /// Disable external database resource monitoring. All the references in DBaaS, + /// DBM and resource service will be deleted as part of this operation. /// /// /// The request object containing the details to send. Required. @@ -576,7 +588,8 @@ public async Task GetDiscoveryJob(GetDiscoveryJobReques } /// - /// Gets a monitored resource by identifier + /// Get monitored resource for the given identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// The request object containing the details to send. Required. /// The retry configuration that will be used by to send this request. Optional. @@ -973,7 +986,9 @@ public async Task ListWorkRequests(ListWorkRequestsReq } /// - /// List associated monitored resources. + /// List all associated resources recursively up-to a specified level, + /// for the monitored resources of type specified. + /// /// /// The request object containing the details to send. Required. /// The retry configuration that will be used by to send this request. Optional. @@ -1029,7 +1044,8 @@ public async Task SearchAssociatedResources(S } /// - /// Returns a list of monitored resource associations. + /// Search associations in the given compartment based on the search criteria. + /// /// /// The request object containing the details to send. Required. /// The retry configuration that will be used by to send this request. Optional. @@ -1085,7 +1101,8 @@ public async Task SearchMonitoredRe } /// - /// List resources which are members of the given monitored resource + /// List the member resources for the given monitored resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// The request object containing the details to send. Required. /// The retry configuration that will be used by to send this request. Optional. @@ -1141,7 +1158,8 @@ public async Task SearchMonitoredResourc } /// - /// Returns a list of monitored resources. + /// Gets a list of all monitored resources in a compartment for the given search criteria. + /// /// /// The request object containing the details to send. Required. /// The retry configuration that will be used by to send this request. Optional. @@ -1197,7 +1215,70 @@ public async Task SearchMonitoredResources(Sea } /// - /// Updates the Monitored Resource + /// Provided tags will be added or updated in the existing list of tags for the affected resources. + /// Resources to be updated are identified based on association types specified. + /// If association types not specified, then tags will be updated only for the resource identified by + /// the given monitored resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// + /// + /// 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 UpdateAndPropagateTags API. + public async Task UpdateAndPropagateTags(UpdateAndPropagateTagsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateAndPropagateTags"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/monitoredResources/{monitoredResourceId}/actions/updateAndPropagateTags".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 = "UpdateAndPropagateTags", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/UpdateAndPropagateTags", + 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($"UpdateAndPropagateTags 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, + /// as part this operation. + /// /// /// The request object containing the details to send. Required. /// The retry configuration that will be used by to send this request. Optional. diff --git a/Stackmonitoring/models/AssociateMonitoredResourcesDetails.cs b/Stackmonitoring/models/AssociateMonitoredResourcesDetails.cs index 5834b59817..ac99a34553 100644 --- a/Stackmonitoring/models/AssociateMonitoredResourcesDetails.cs +++ b/Stackmonitoring/models/AssociateMonitoredResourcesDetails.cs @@ -22,7 +22,8 @@ public class AssociateMonitoredResourcesDetails { /// - /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -32,7 +33,8 @@ public class AssociateMonitoredResourcesDetails public string CompartmentId { get; set; } /// - /// Association type to be created between source and destination resources + /// Association type to be created between source and destination resources. + /// /// /// /// Required @@ -42,7 +44,8 @@ public class AssociateMonitoredResourcesDetails public string AssociationType { get; set; } /// - /// Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -52,7 +55,8 @@ public class AssociateMonitoredResourcesDetails public string SourceResourceId { get; set; } /// - /// Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required diff --git a/Stackmonitoring/models/AssociatedMonitoredResource.cs b/Stackmonitoring/models/AssociatedMonitoredResource.cs index 4ad2cfd6f1..66ab642e01 100644 --- a/Stackmonitoring/models/AssociatedMonitoredResource.cs +++ b/Stackmonitoring/models/AssociatedMonitoredResource.cs @@ -22,7 +22,8 @@ public class AssociatedMonitoredResource { /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource. + /// Monitored resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -32,7 +33,8 @@ public class AssociatedMonitoredResource public string Id { get; set; } /// - /// Name of the monitored resource + /// Monitored Resource Name. + /// /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } @@ -44,13 +46,22 @@ public class AssociatedMonitoredResource public string DisplayName { get; set; } /// - /// Type of the monitored resource + /// Monitored Resource Type. + /// /// [JsonProperty(PropertyName = "type")] public string Type { get; set; } /// - /// Resource Host Name + /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// + /// + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// Monitored Resource Host Name. + /// /// [JsonProperty(PropertyName = "hostName")] public string HostName { get; set; } @@ -58,8 +69,8 @@ public class AssociatedMonitoredResource /// /// External resource is any OCI resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) /// which is not a Stack Monitoring service resource. - /// Currently supports only following resource type identifiers - externalcontainerdatabase, - /// externalnoncontainerdatabase, externalpluggabledatabase and OCI compute instance. + /// Currently supports only following resource types - Container database, non-container database, + /// pluggable database and OCI compute instance. /// /// [JsonProperty(PropertyName = "externalId")] @@ -79,7 +90,8 @@ public class AssociatedMonitoredResource public System.Nullable LifecycleState { get; set; } /// - /// Association details of the resource + /// Association details of the resource. + /// /// [JsonProperty(PropertyName = "association")] public System.Object Association { get; set; } diff --git a/Stackmonitoring/models/AssociatedResourcesSummary.cs b/Stackmonitoring/models/AssociatedResourcesSummary.cs index d85780ee6c..22775535b2 100644 --- a/Stackmonitoring/models/AssociatedResourcesSummary.cs +++ b/Stackmonitoring/models/AssociatedResourcesSummary.cs @@ -22,7 +22,8 @@ public class AssociatedResourcesSummary { /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource. + /// Monitored resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -32,7 +33,8 @@ public class AssociatedResourcesSummary public string Id { get; set; } /// - /// Name of the monitored resource + /// Monitored Resource Name. + /// /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } @@ -44,13 +46,22 @@ public class AssociatedResourcesSummary public string DisplayName { get; set; } /// - /// Type of the monitored resource + /// Monitored Resource Type. + /// /// [JsonProperty(PropertyName = "type")] public string Type { get; set; } /// - /// Resource Host Name + /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// + /// + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// Monitored Resource Host Name. + /// /// [JsonProperty(PropertyName = "hostName")] public string HostName { get; set; } @@ -58,8 +69,8 @@ public class AssociatedResourcesSummary /// /// External resource is any OCI resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) /// which is not a Stack Monitoring service resource. - /// Currently supports only following resource type identifiers - externalcontainerdatabase, - /// externalnoncontainerdatabase, externalpluggabledatabase and OCI compute instance. + /// Currently supports only following resource types - Container database, non-container database, + /// pluggable database and OCI compute instance. /// /// [JsonProperty(PropertyName = "externalId")] @@ -79,7 +90,8 @@ public class AssociatedResourcesSummary public System.Nullable LifecycleState { get; set; } /// - /// List of associated monitored resources + /// List of associated monitored resources. + /// /// [JsonProperty(PropertyName = "associatedResources")] public System.Collections.Generic.List AssociatedResources { get; set; } diff --git a/Stackmonitoring/models/AssociationDetails.cs b/Stackmonitoring/models/AssociationDetails.cs index 85eb07514f..86580061e6 100644 --- a/Stackmonitoring/models/AssociationDetails.cs +++ b/Stackmonitoring/models/AssociationDetails.cs @@ -22,7 +22,8 @@ public class AssociationDetails { /// - /// Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -32,7 +33,8 @@ public class AssociationDetails public string SourceResourceId { get; set; } /// - /// Association Type + /// Association Type. + /// /// /// /// Required diff --git a/Stackmonitoring/models/AssociationResourceDetails.cs b/Stackmonitoring/models/AssociationResourceDetails.cs index a6332eeb2a..e137b69724 100644 --- a/Stackmonitoring/models/AssociationResourceDetails.cs +++ b/Stackmonitoring/models/AssociationResourceDetails.cs @@ -16,22 +16,32 @@ namespace Oci.StackmonitoringService.Models { /// - /// Association Resource Details + /// Association Resource Details. + /// /// public class AssociationResourceDetails { /// - /// Monitored Resource Name + /// Monitored Resource Name. + /// /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// - /// Monitored Resource Type + /// Monitored Resource Type. + /// /// [JsonProperty(PropertyName = "type")] public string Type { get; set; } + /// + /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// + /// + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + } } diff --git a/Stackmonitoring/models/ConnectionDetails.cs b/Stackmonitoring/models/ConnectionDetails.cs index cb001f1dd5..72533a3ee5 100644 --- a/Stackmonitoring/models/ConnectionDetails.cs +++ b/Stackmonitoring/models/ConnectionDetails.cs @@ -16,7 +16,8 @@ namespace Oci.StackmonitoringService.Models { /// - /// Connection details to connect to the database. HostName, protocol, and port should be specified. + /// Connection details for the database. + /// /// public class ConnectionDetails { @@ -57,7 +58,8 @@ public enum ProtocolEnum { public System.Nullable Port { get; set; } /// - /// Database connector Identifier + /// Database connector Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// [JsonProperty(PropertyName = "connectorId")] public string ConnectorId { get; set; } @@ -79,13 +81,15 @@ public enum ProtocolEnum { public string DbUniqueName { get; set; } /// - /// dbId of the database + /// dbId of the database. + /// /// [JsonProperty(PropertyName = "dbId")] public string DbId { get; set; } /// - /// SSL Secret Identifier for TCPS connector in OCI Vault[OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// SSL Secret Identifier for TCPS connector in OCI Vault[OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// [JsonProperty(PropertyName = "sslSecretId")] public string SslSecretId { get; set; } diff --git a/Stackmonitoring/models/CreateDiscoveryJobDetails.cs b/Stackmonitoring/models/CreateDiscoveryJobDetails.cs index 62f13a8a65..8c17e7dd06 100644 --- a/Stackmonitoring/models/CreateDiscoveryJobDetails.cs +++ b/Stackmonitoring/models/CreateDiscoveryJobDetails.cs @@ -66,6 +66,15 @@ public enum DiscoveryTypeEnum { [JsonProperty(PropertyName = "discoveryDetails")] public DiscoveryDetails DiscoveryDetails { get; set; } + /// + /// If this parameter set to true, the specified tags will be applied + /// to all resources discovered in the current request. + /// Default is true. + /// + /// + [JsonProperty(PropertyName = "shouldPropagateTagsToDiscoveredResources")] + public System.Nullable ShouldPropagateTagsToDiscoveredResources { 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"} diff --git a/Stackmonitoring/models/CreateMonitoredResourceDetails.cs b/Stackmonitoring/models/CreateMonitoredResourceDetails.cs index 667251f793..224f8918c8 100644 --- a/Stackmonitoring/models/CreateMonitoredResourceDetails.cs +++ b/Stackmonitoring/models/CreateMonitoredResourceDetails.cs @@ -16,13 +16,16 @@ namespace Oci.StackmonitoringService.Models { /// - /// The information about new monitored resource. The combination of monitored resource name and type should be unique across tenancy. + /// The information about new monitored resource to be created. + /// The combination of monitored resource name and type should be unique across tenancy. + /// /// public class CreateMonitoredResourceDetails { /// - /// Monitored resource name + /// Monitored Resource Name. + /// /// /// /// Required @@ -38,7 +41,8 @@ public class CreateMonitoredResourceDetails public string DisplayName { get; set; } /// - /// Monitored resource type + /// Monitored Resource Type. + /// /// /// /// Required @@ -48,7 +52,8 @@ public class CreateMonitoredResourceDetails public string Type { get; set; } /// - /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -58,7 +63,8 @@ public class CreateMonitoredResourceDetails public string CompartmentId { get; set; } /// - /// Host name of the monitored resource + /// Host name of the monitored resource. + /// /// [JsonProperty(PropertyName = "hostName")] public string HostName { get; set; } @@ -79,13 +85,17 @@ public class CreateMonitoredResourceDetails public string ManagementAgentId { get; set; } /// - /// Time zone in the form of tz database canonical zone ID. + /// Time zone in the form of tz database canonical zone ID. Specifies the preference with + /// a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). + /// For example - America/Los_Angeles + /// /// [JsonProperty(PropertyName = "resourceTimeZone")] public string ResourceTimeZone { get; set; } /// - /// List of monitored resource properties + /// List of monitored resource properties. + /// /// [JsonProperty(PropertyName = "properties")] public System.Collections.Generic.List Properties { get; set; } @@ -99,5 +109,43 @@ public class CreateMonitoredResourceDetails [JsonProperty(PropertyName = "aliases")] public MonitoredResourceAliasCredential Aliases { get; set; } + /// + /// List of MonitoredResourceCredentials. This property complements the existing + /// \"credentials\" property by allowing user to specify more than one credential. + /// If both \"credential\" and \"additionalCredentials\" are specified, union of the + /// values is used as list of credentials applicable for this resource. + /// If any duplicate found in the combined list of \"credentials\" and \"additionalCredentials\", + /// an error will be thrown. + /// + /// + [JsonProperty(PropertyName = "additionalCredentials")] + public System.Collections.Generic.List AdditionalCredentials { get; set; } + + /// + /// List of MonitoredResourceAliasCredentials. This property complements the existing + /// \"aliases\" property by allowing user to specify more than one credential alias. + /// If both \"aliases\" and \"additionalAliases\" are specified, union of the + /// values is used as list of aliases applicable for this resource. + /// If any duplicate found in the combined list of \"alias\" and \"additionalAliases\", + /// an error will be thrown. + /// + /// + [JsonProperty(PropertyName = "additionalAliases")] + public System.Collections.Generic.List AdditionalAliases { 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; } + } } diff --git a/Stackmonitoring/models/CredentialProperty.cs b/Stackmonitoring/models/CredentialProperty.cs index 7dc047d35e..d141520f37 100644 --- a/Stackmonitoring/models/CredentialProperty.cs +++ b/Stackmonitoring/models/CredentialProperty.cs @@ -22,7 +22,8 @@ public class CredentialProperty { /// - /// The name of the credential property, should confirm with names of properties of this credential's type. Ex. For JMXCreds type , credential property name for weblogic user is 'Username'. + /// The name of the credential property, should confirm with names of properties of this credential's type. + /// Example: For JMXCreds type, credential property name for weblogic user is 'Username'. /// /// /// Required @@ -32,7 +33,8 @@ public class CredentialProperty public string Name { get; set; } /// - /// The value of the credential property name. Ex. For JMXCreds type, credential property value for 'Username' property is 'weblogic'. + /// The value of the credential property name. + /// Example: For JMXCreds type, credential property value for 'Username' property is 'weblogic'. /// /// /// Required diff --git a/Stackmonitoring/models/DisassociateMonitoredResourcesDetails.cs b/Stackmonitoring/models/DisassociateMonitoredResourcesDetails.cs index e2ea85ffb2..42b0a2a86a 100644 --- a/Stackmonitoring/models/DisassociateMonitoredResourcesDetails.cs +++ b/Stackmonitoring/models/DisassociateMonitoredResourcesDetails.cs @@ -22,7 +22,8 @@ public class DisassociateMonitoredResourcesDetails { /// - /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -32,19 +33,22 @@ public class DisassociateMonitoredResourcesDetails public string CompartmentId { get; set; } /// - /// Association type to be created between source and destination resources + /// Association type between source and destination resources. + /// /// [JsonProperty(PropertyName = "associationType")] public string AssociationType { get; set; } /// - /// Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// [JsonProperty(PropertyName = "sourceResourceId")] public string SourceResourceId { get; set; } /// - /// Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// [JsonProperty(PropertyName = "destinationResourceId")] public string DestinationResourceId { get; set; } diff --git a/Stackmonitoring/models/EncryptedCredentials.cs b/Stackmonitoring/models/EncryptedCredentials.cs index 6d649d9d92..aab185f727 100644 --- a/Stackmonitoring/models/EncryptedCredentials.cs +++ b/Stackmonitoring/models/EncryptedCredentials.cs @@ -16,14 +16,16 @@ namespace Oci.StackmonitoringService.Models { /// - /// Encypted credentials [indicated by the type property in CredentialStore]. + /// Encrypted credentials [indicated by the type property in CredentialStore]. /// /// public class EncryptedCredentials : MonitoredResourceCredential { /// - /// The master key OCID and applicable only for property value type ENCRYPTION. Key OCID is passed as input to Key management service decrypt API to retrieve the encrypted property value text. + /// The master key should be created in OCI Vault owned by the client of this API. + /// The user should have permission to access the vault key. + /// /// /// /// Required diff --git a/Stackmonitoring/models/MonitoredResource.cs b/Stackmonitoring/models/MonitoredResource.cs index f4952cadfb..da8feb0585 100644 --- a/Stackmonitoring/models/MonitoredResource.cs +++ b/Stackmonitoring/models/MonitoredResource.cs @@ -16,13 +16,17 @@ namespace Oci.StackmonitoringService.Models { /// - /// The information about monitored resource. + /// The response object for create monitored resource and get monitored resource operations. + /// This contains information about the monitored resource. Credentials and credential aliases attributes + /// will be returned as null due to security reasons. + /// /// public class MonitoredResource { /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource. + /// Monitored resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -48,7 +52,8 @@ public class MonitoredResource public string DisplayName { get; set; } /// - /// Monitored resource type + /// Monitored Resource Type. + /// /// /// /// Required @@ -58,7 +63,8 @@ public class MonitoredResource public string Type { get; set; } /// - /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -68,7 +74,8 @@ public class MonitoredResource public string CompartmentId { get; set; } /// - /// Tenancy Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Tenancy Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -84,10 +91,10 @@ public class MonitoredResource public string HostName { get; set; } /// - /// External resource is any OCI resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) - /// which is not a Stack Monitoring service resource. - /// Currently supports only following resource type identifiers - externalcontainerdatabase, - /// externalnoncontainerdatabase, externalpluggabledatabase and OCI compute instance. + /// The external resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// External resource is any OCI resource which is not a Stack Monitoring service resource. + /// Currently supports only following resource types - Container database, non-container database, + /// pluggable database and OCI compute instance. /// /// [JsonProperty(PropertyName = "externalId")] @@ -106,13 +113,17 @@ public class MonitoredResource public string ResourceTimeZone { get; set; } /// - /// The time the the resource was created. An RFC3339 formatted datetime string + /// The date and time when the monitored resource was created, expressed in + /// [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + /// /// [JsonProperty(PropertyName = "timeCreated")] public System.Nullable TimeCreated { get; set; } /// - /// The time the the resource was updated. An RFC3339 formatted datetime string + /// The date and time when the monitored resource was last updated, expressed in + /// [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. + /// /// [JsonProperty(PropertyName = "timeUpdated")] public System.Nullable TimeUpdated { get; set; } @@ -125,7 +136,8 @@ public class MonitoredResource public System.Nullable LifecycleState { get; set; } /// - /// List of monitored resource properties + /// List of monitored resource properties. + /// /// [JsonProperty(PropertyName = "properties")] public System.Collections.Generic.List Properties { get; set; } diff --git a/Stackmonitoring/models/MonitoredResourceAliasCredential.cs b/Stackmonitoring/models/MonitoredResourceAliasCredential.cs index 4a62452357..27ac23a493 100644 --- a/Stackmonitoring/models/MonitoredResourceAliasCredential.cs +++ b/Stackmonitoring/models/MonitoredResourceAliasCredential.cs @@ -22,7 +22,8 @@ public class MonitoredResourceAliasCredential { /// - /// The source type and source name combination,delimited with (.) separator. Ex. {source type}.{source name} and source type max char limit is 63. + /// The source type and source name combination,delimited with (.) separator. + /// Example: {source type}.{source name} and source type max char limit is 63. /// /// /// Required diff --git a/Stackmonitoring/models/MonitoredResourceAliasSourceCredential.cs b/Stackmonitoring/models/MonitoredResourceAliasSourceCredential.cs index 3edee50882..1113df945e 100644 --- a/Stackmonitoring/models/MonitoredResourceAliasSourceCredential.cs +++ b/Stackmonitoring/models/MonitoredResourceAliasSourceCredential.cs @@ -16,13 +16,17 @@ namespace Oci.StackmonitoringService.Models { /// - /// Monitored Resource Alias Reference Source Credential + /// Monitored Resource Alias Reference Source Credential. + /// /// public class MonitoredResourceAliasSourceCredential { /// - /// The source type and source name combination,delimited with (.) separator. This refers to the pre-existing source which alias cred should point to. Ex. {source type}.{source name} and source type max char limit is 63. + /// The source type and source name combination,delimited with (.) separator. + /// This refers to the pre-existing source which alias cred should point to. + /// Ex. {source type}.{source name} and source type max char limit is 63. + /// /// /// /// Required @@ -32,7 +36,9 @@ public class MonitoredResourceAliasSourceCredential public string Source { get; set; } /// - /// The name of the pre-existing source credential which alias cred should point to. This should refer to the pre-existing source attribute binded credential name. + /// The name of the pre-existing source credential which alias cred should point to. + /// This should refer to the pre-existing source attribute which is bound to credential name. + /// /// /// /// Required @@ -42,7 +48,8 @@ public class MonitoredResourceAliasSourceCredential public string Name { get; set; } /// - /// The name of the service owning the credential. Ex stack-monitoring or dbmgmt + /// The name of the service owning the credential. + /// Example: stack-monitoring or dbmgmt /// /// /// Required diff --git a/Stackmonitoring/models/MonitoredResourceAssociation.cs b/Stackmonitoring/models/MonitoredResourceAssociation.cs index e4ecd3f529..1096407cd6 100644 --- a/Stackmonitoring/models/MonitoredResourceAssociation.cs +++ b/Stackmonitoring/models/MonitoredResourceAssociation.cs @@ -16,13 +16,14 @@ namespace Oci.StackmonitoringService.Models { /// - /// Association between two monitored resources. + /// Association details between two monitored resources. /// public class MonitoredResourceAssociation { /// - /// Association Type + /// Association Type. + /// /// /// /// Required @@ -32,7 +33,8 @@ public class MonitoredResourceAssociation public string AssociationType { get; set; } /// - /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -42,7 +44,8 @@ public class MonitoredResourceAssociation public string CompartmentId { get; set; } /// - /// Tenancy Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Tenancy Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -52,7 +55,8 @@ public class MonitoredResourceAssociation public string TenantId { get; set; } /// - /// Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -62,7 +66,8 @@ public class MonitoredResourceAssociation public string SourceResourceId { get; set; } /// - /// Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -78,10 +83,42 @@ public class MonitoredResourceAssociation public AssociationResourceDetails DestinationResourceDetails { get; set; } /// - /// The time when the association was created. An RFC3339 formatted datetime string + /// The time when the association was created. An RFC3339 formatted datetime string. + /// /// [JsonProperty(PropertyName = "timeCreated")] public System.Nullable TimeCreated { get; set; } + /// + /// + /// Association category. Possible values are: + /// - System created (SYSTEM), + /// - User created using API (USER_API) + /// - User created using tags (USER_TAG_ASSOC). + /// + /// + /// + public enum CategoryEnum { + /// 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 = "SYSTEM")] + System, + [EnumMember(Value = "USER_API")] + UserApi, + [EnumMember(Value = "USER_TAG_ASSOC")] + UserTagAssoc + }; + + /// + /// Association category. Possible values are: + /// - System created (SYSTEM), + /// - User created using API (USER_API) + /// - User created using tags (USER_TAG_ASSOC). + /// + /// + [JsonProperty(PropertyName = "category")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Category { get; set; } /// /// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. diff --git a/Stackmonitoring/models/MonitoredResourceAssociationSummary.cs b/Stackmonitoring/models/MonitoredResourceAssociationSummary.cs index e0f80bfc18..bd45bb034c 100644 --- a/Stackmonitoring/models/MonitoredResourceAssociationSummary.cs +++ b/Stackmonitoring/models/MonitoredResourceAssociationSummary.cs @@ -22,7 +22,8 @@ public class MonitoredResourceAssociationSummary { /// - /// Association type to be created between source and destination resources + /// Association type between source and destination resources. + /// /// /// /// Required @@ -32,7 +33,8 @@ public class MonitoredResourceAssociationSummary public string AssociationType { get; set; } /// - /// Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -42,7 +44,8 @@ public class MonitoredResourceAssociationSummary public string SourceResourceId { get; set; } /// - /// Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -52,7 +55,8 @@ public class MonitoredResourceAssociationSummary public string DestinationResourceId { get; set; } /// - /// The time the the association was created. An RFC3339 formatted datetime string + /// The association creation time. An RFC3339 formatted datetime string. + /// /// [JsonProperty(PropertyName = "timeCreated")] public System.Nullable TimeCreated { get; set; } diff --git a/Stackmonitoring/models/MonitoredResourceCredential.cs b/Stackmonitoring/models/MonitoredResourceCredential.cs index 67e8a43dee..25b8737753 100644 --- a/Stackmonitoring/models/MonitoredResourceCredential.cs +++ b/Stackmonitoring/models/MonitoredResourceCredential.cs @@ -16,14 +16,17 @@ namespace Oci.StackmonitoringService.Models { /// - /// Monitored Resource Credential Details + /// Monitored Resource Credential Details. + /// /// [JsonConverter(typeof(MonitoredResourceCredentialModelConverter))] public class MonitoredResourceCredential { /// - /// The source type and source name combination,delimited with (.) separator. {source type}.{source name} and source type max char limit is 63. + /// The source type and source name combination, delimited with (.) separator. + /// {source type}.{source name} and source type max char limit is 63. + /// /// [JsonProperty(PropertyName = "source")] public string Source { get; set; } @@ -47,7 +50,16 @@ public class MonitoredResourceCredential public string Description { get; set; } /// /// - /// Type of credentials specified in the credentials element. Three possible values - EXISTING, PLAINTEXT and ENCRYPTED. * EXISTING - Credential is already stored in agent and only credential name need to be passed for existing credential. * PLAINTEXT - The credential properties will have credentials in plain text format. * ENCRYPTED - The credential properties will have credentials stored in vault in encrypted format using KMS client which uses master key for encryption. The same master key will be used to decrypt the credentials before passing on to the management agent. + /// Type of credentials specified in the credentials element. + /// Three possible values - EXISTING, PLAINTEXT and ENCRYPTED. + /// * EXISTING - Credential is already stored in agent and only credential name need + /// to be passed for existing credential. + /// * PLAINTEXT - The credential properties will have credentials in plain text format. + /// * ENCRYPTED - The credential properties will have credentials stored in vault in + /// encrypted format using KMS client which uses master key for encryption. + /// The same master key will be used to decrypt the credentials before passing + /// on to the management agent. + /// /// /// public enum CredentialTypeEnum { diff --git a/Stackmonitoring/models/MonitoredResourceMemberSummary.cs b/Stackmonitoring/models/MonitoredResourceMemberSummary.cs index 0fc935f670..742e3c0e05 100644 --- a/Stackmonitoring/models/MonitoredResourceMemberSummary.cs +++ b/Stackmonitoring/models/MonitoredResourceMemberSummary.cs @@ -16,19 +16,22 @@ namespace Oci.StackmonitoringService.Models { /// - /// Monitored resource member + /// Monitored resource member details. + /// /// public class MonitoredResourceMemberSummary { /// - /// Monitored resource identifier + /// Monitored resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// [JsonProperty(PropertyName = "resourceId")] public string ResourceId { get; set; } /// - /// Monitored resource name + /// Monitored Resource Name. + /// /// [JsonProperty(PropertyName = "resourceName")] public string ResourceName { get; set; } @@ -40,13 +43,15 @@ public class MonitoredResourceMemberSummary public string ResourceDisplayName { get; set; } /// - /// Monitored resource type + /// Monitored Resource Type. + /// /// [JsonProperty(PropertyName = "resourceType")] public string ResourceType { get; set; } /// - /// Monitored Resource Host + /// Monitored Resource Host Name. + /// /// [JsonProperty(PropertyName = "hostName")] public string HostName { get; set; } @@ -54,15 +59,22 @@ public class MonitoredResourceMemberSummary /// /// External resource is any OCI resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) /// which is not a Stack Monitoring service resource. - /// Currently supports only following resource type identifiers - externalcontainerdatabase, - /// externalnoncontainerdatabase, externalpluggabledatabase and OCI compute instance. + /// Currently supports only following resource types - Container database, non-container database, + /// pluggable database and OCI compute instance. /// /// [JsonProperty(PropertyName = "externalId")] public string ExternalId { get; set; } /// - /// Parent monitored resource identifier + /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// Parent monitored resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// [JsonProperty(PropertyName = "parentId")] public string ParentId { get; set; } diff --git a/Stackmonitoring/models/MonitoredResourceMembersCollection.cs b/Stackmonitoring/models/MonitoredResourceMembersCollection.cs index f8cc4e0efe..6573e619b9 100644 --- a/Stackmonitoring/models/MonitoredResourceMembersCollection.cs +++ b/Stackmonitoring/models/MonitoredResourceMembersCollection.cs @@ -22,7 +22,8 @@ public class MonitoredResourceMembersCollection { /// - /// List of Members. + /// List of member resources. + /// /// /// /// Required diff --git a/Stackmonitoring/models/MonitoredResourceProperty.cs b/Stackmonitoring/models/MonitoredResourceProperty.cs index 37286444ee..dbd87645f8 100644 --- a/Stackmonitoring/models/MonitoredResourceProperty.cs +++ b/Stackmonitoring/models/MonitoredResourceProperty.cs @@ -16,19 +16,22 @@ namespace Oci.StackmonitoringService.Models { /// - /// Property of monitored resource + /// Property of monitored resource. + /// /// public class MonitoredResourceProperty { /// - /// property name + /// Property Name. + /// /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// - /// property value + /// Property Value. + /// /// [JsonProperty(PropertyName = "value")] public string Value { get; set; } diff --git a/Stackmonitoring/models/MonitoredResourceSummary.cs b/Stackmonitoring/models/MonitoredResourceSummary.cs index 738cc58788..d9f027d530 100644 --- a/Stackmonitoring/models/MonitoredResourceSummary.cs +++ b/Stackmonitoring/models/MonitoredResourceSummary.cs @@ -22,7 +22,8 @@ public class MonitoredResourceSummary { /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource. + /// Monitored resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -32,7 +33,8 @@ public class MonitoredResourceSummary public string Id { get; set; } /// - /// Name of the monitored resource + /// Monitored Resource Name. + /// /// /// /// Required @@ -48,7 +50,8 @@ public class MonitoredResourceSummary public string DisplayName { get; set; } /// - /// Type of the monitored resource + /// Monitored Resource Type. + /// /// /// /// Required @@ -58,7 +61,8 @@ public class MonitoredResourceSummary public string Type { get; set; } /// - /// Resource Host Name + /// Monitored Resource Host Name. + /// /// [JsonProperty(PropertyName = "hostName")] public string HostName { get; set; } @@ -66,8 +70,6 @@ public class MonitoredResourceSummary /// /// External resource is any OCI resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) /// which is not a Stack Monitoring service resource. - /// Currently supports only following resource type identifiers - externalcontainerdatabase, - /// externalnoncontainerdatabase, externalpluggabledatabase and OCI compute instance. /// /// [JsonProperty(PropertyName = "externalId")] @@ -80,13 +82,15 @@ public class MonitoredResourceSummary public string ManagementAgentId { get; set; } /// - /// Monitored resource creation time. An RFC3339 formatted datetime string + /// Monitored resource creation time. An RFC3339 formatted datetime string. + /// /// [JsonProperty(PropertyName = "timeCreated")] public System.Nullable TimeCreated { get; set; } /// - /// Monitored resource updation time. An RFC3339 formatted datetime string + /// Monitored resource update time. An RFC3339 formatted datetime string. + /// /// [JsonProperty(PropertyName = "timeUpdated")] public System.Nullable TimeUpdated { get; set; } @@ -99,7 +103,8 @@ public class MonitoredResourceSummary public System.Nullable LifecycleState { get; set; } /// - /// List of monitored resource properties + /// List of monitored resource properties. + /// /// [JsonProperty(PropertyName = "properties")] public System.Collections.Generic.List Properties { get; set; } diff --git a/Stackmonitoring/models/OperationType.cs b/Stackmonitoring/models/OperationType.cs index aba26a50ae..feffc7a271 100644 --- a/Stackmonitoring/models/OperationType.cs +++ b/Stackmonitoring/models/OperationType.cs @@ -36,6 +36,8 @@ public enum OperationType { [EnumMember(Value = "BULK_ADD_RESOURCES")] BulkAddResources, [EnumMember(Value = "BULK_DELETE_RESOURCES")] - BulkDeleteResources + BulkDeleteResources, + [EnumMember(Value = "UPDATE_AND_PROPAGATE_TAGS")] + UpdateAndPropagateTags } } diff --git a/Stackmonitoring/models/PlainTextCredentials.cs b/Stackmonitoring/models/PlainTextCredentials.cs index ae9dacf152..4f67cff456 100644 --- a/Stackmonitoring/models/PlainTextCredentials.cs +++ b/Stackmonitoring/models/PlainTextCredentials.cs @@ -23,7 +23,9 @@ public class PlainTextCredentials : MonitoredResourceCredential { /// - /// The credential properties list. Credential property values will be either in plain text format. + /// The credential properties list. Credential property values will be either + /// in plain text format or encrypted for encrypted credentials. + /// /// /// /// Required diff --git a/Stackmonitoring/models/PreExistingCredentials.cs b/Stackmonitoring/models/PreExistingCredentials.cs index 0c5e4acc8d..7844bdec48 100644 --- a/Stackmonitoring/models/PreExistingCredentials.cs +++ b/Stackmonitoring/models/PreExistingCredentials.cs @@ -16,7 +16,7 @@ namespace Oci.StackmonitoringService.Models { /// - /// Plain text credentials [indicated by the type property in CredentialStore]. + /// Pre existing credentials [indicated by the type property in CredentialStore]. /// /// public class PreExistingCredentials : MonitoredResourceCredential diff --git a/Stackmonitoring/models/ResourceLifecycleState.cs b/Stackmonitoring/models/ResourceLifecycleState.cs index fb21e22a23..9d13067044 100644 --- a/Stackmonitoring/models/ResourceLifecycleState.cs +++ b/Stackmonitoring/models/ResourceLifecycleState.cs @@ -13,7 +13,8 @@ namespace Oci.StackmonitoringService.Models { /// - /// Possible lifecycle states. + /// Possible lifecycle states for monitored resource. + /// /// public enum ResourceLifecycleState { /// 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/Stackmonitoring/models/SearchAssociatedResourcesDetails.cs b/Stackmonitoring/models/SearchAssociatedResourcesDetails.cs index e85cecc0db..5269d63c7e 100644 --- a/Stackmonitoring/models/SearchAssociatedResourcesDetails.cs +++ b/Stackmonitoring/models/SearchAssociatedResourcesDetails.cs @@ -22,7 +22,8 @@ public class SearchAssociatedResourcesDetails { /// - /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -57,7 +58,8 @@ public class SearchAssociatedResourcesDetails public System.Nullable LimitLevel { get; set; } /// - /// List of association types to be searched for finding associated resources + /// Association types filter to be searched for finding associated resources. + /// /// [JsonProperty(PropertyName = "associationTypes")] public System.Collections.Generic.List AssociationTypes { get; set; } diff --git a/Stackmonitoring/models/SearchMonitoredResourceAssociationsDetails.cs b/Stackmonitoring/models/SearchMonitoredResourceAssociationsDetails.cs index 43f7a37d93..a0d66d01b8 100644 --- a/Stackmonitoring/models/SearchMonitoredResourceAssociationsDetails.cs +++ b/Stackmonitoring/models/SearchMonitoredResourceAssociationsDetails.cs @@ -22,7 +22,8 @@ public class SearchMonitoredResourceAssociationsDetails { /// - /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -32,43 +33,50 @@ public class SearchMonitoredResourceAssociationsDetails public string CompartmentId { get; set; } /// - /// Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Source Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// [JsonProperty(PropertyName = "sourceResourceId")] public string SourceResourceId { get; set; } /// - /// Source Monitored Resource Name + /// Source Monitored Resource Name. + /// /// [JsonProperty(PropertyName = "sourceResourceName")] public string SourceResourceName { get; set; } /// - /// Source Monitored Resource Type + /// Source Monitored Resource Type. + /// /// [JsonProperty(PropertyName = "sourceResourceType")] public string SourceResourceType { get; set; } /// - /// Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// [JsonProperty(PropertyName = "destinationResourceId")] public string DestinationResourceId { get; set; } /// - /// Source Monitored Resource Name + /// Source Monitored Resource Name. + /// /// [JsonProperty(PropertyName = "destinationResourceName")] public string DestinationResourceName { get; set; } /// - /// Source Monitored Resource Type + /// Source Monitored Resource Type. + /// /// [JsonProperty(PropertyName = "destinationResourceType")] public string DestinationResourceType { get; set; } /// - /// Association type to be created between source and destination resources + /// Association type filter to search associated resources. + /// /// [JsonProperty(PropertyName = "associationType")] public string AssociationType { get; set; } diff --git a/Stackmonitoring/models/SearchMonitoredResourceMembersDetails.cs b/Stackmonitoring/models/SearchMonitoredResourceMembersDetails.cs index 07dbf4b9b2..0146490578 100644 --- a/Stackmonitoring/models/SearchMonitoredResourceMembersDetails.cs +++ b/Stackmonitoring/models/SearchMonitoredResourceMembersDetails.cs @@ -22,13 +22,15 @@ public class SearchMonitoredResourceMembersDetails { /// - /// Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Destination Monitored Resource Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// [JsonProperty(PropertyName = "destinationResourceId")] public string DestinationResourceId { get; set; } /// - /// The field which determines the depth of hierarchy while searching for members + /// The field which determines the depth of hierarchy while searching for members. + /// /// [JsonProperty(PropertyName = "limitLevel")] public System.Nullable LimitLevel { get; set; } diff --git a/Stackmonitoring/models/SearchMonitoredResourcesDetails.cs b/Stackmonitoring/models/SearchMonitoredResourcesDetails.cs index 22669fcd56..62b774477d 100644 --- a/Stackmonitoring/models/SearchMonitoredResourcesDetails.cs +++ b/Stackmonitoring/models/SearchMonitoredResourcesDetails.cs @@ -22,7 +22,8 @@ public class SearchMonitoredResourcesDetails { /// - /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + /// Compartment Identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// /// /// /// Required @@ -32,7 +33,8 @@ public class SearchMonitoredResourcesDetails public string CompartmentId { get; set; } /// - /// A filter to return resources that match exact resource name + /// A filter to return resources that match exact resource name. + /// /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } @@ -44,13 +46,15 @@ public class SearchMonitoredResourcesDetails public string NameContains { get; set; } /// - /// A filter to return resources that match resource type + /// A filter to return resources that match resource type. + /// /// [JsonProperty(PropertyName = "type")] public string Type { get; set; } /// - /// A filter to return resources with host name match + /// A filter to return resources with host name match. + /// /// [JsonProperty(PropertyName = "hostName")] public string HostName { get; set; } @@ -58,15 +62,16 @@ public class SearchMonitoredResourcesDetails /// /// External resource is any OCI resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) /// which is not a Stack Monitoring service resource. - /// Currently supports only following resource type identifiers - externalcontainerdatabase, - /// externalnoncontainerdatabase, externalpluggabledatabase and OCI compute instance. + /// Currently supports only following resource types - Container database, non-container database, + /// pluggable database and OCI compute instance. /// /// [JsonProperty(PropertyName = "externalId")] public string ExternalId { get; set; } /// - /// A filter to return resources with host name pattern + /// A filter to return resources with host name pattern. + /// /// [JsonProperty(PropertyName = "hostNameContains")] public string HostNameContains { get; set; } @@ -137,7 +142,10 @@ public class SearchMonitoredResourcesDetails public System.Nullable TimeUpdatedLessThan { get; set; } /// - /// Time zone in the form of tz database canonical zone ID. + /// Time zone in the form of tz database canonical zone ID. Specifies the preference with + /// a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). + /// For example - America/Los_Angeles + /// /// [JsonProperty(PropertyName = "resourceTimeZone")] public string ResourceTimeZone { get; set; } diff --git a/Stackmonitoring/models/UpdateAndPropagateTagsDetails.cs b/Stackmonitoring/models/UpdateAndPropagateTagsDetails.cs new file mode 100644 index 0000000000..66ed37ccfb --- /dev/null +++ b/Stackmonitoring/models/UpdateAndPropagateTagsDetails.cs @@ -0,0 +1,54 @@ +/* + * 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 information about monitored resource tags. Request will fail if at least one of + /// freeformTags or definedTags are not specified. + /// Provided tags will be added or updated in the existing list of tags for the affected resources. + /// Resources to be updated are identified based on association types specified. + /// If association types are not specified, then tags will be updated only for the current resource. + /// + /// + public class UpdateAndPropagateTagsDetails + { + + /// + /// 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; } + + /// + /// Association types that will be traversed recursively starting from the current resource, + /// to identify resources for which the tags will be updated. + /// If no association type is specified, only current resource will be updated. + /// Default is empty list, which means no related resources will be updated. + /// + /// + [JsonProperty(PropertyName = "associationTypes")] + public System.Collections.Generic.List AssociationTypes { get; set; } + + } +} diff --git a/Stackmonitoring/models/UpdateMonitoredResourceDetails.cs b/Stackmonitoring/models/UpdateMonitoredResourceDetails.cs index 95f76a19d7..7f6554c99e 100644 --- a/Stackmonitoring/models/UpdateMonitoredResourceDetails.cs +++ b/Stackmonitoring/models/UpdateMonitoredResourceDetails.cs @@ -28,19 +28,24 @@ public class UpdateMonitoredResourceDetails public string DisplayName { get; set; } /// - /// Host name of the monitored resource + /// Host name of the monitored resource. + /// /// [JsonProperty(PropertyName = "hostName")] public string HostName { get; set; } /// - /// Time zone in the form of tz database canonical zone ID. + /// Time zone in the form of tz database canonical zone ID. Specifies the preference with + /// a value that uses the IANA Time Zone Database format (x-obmcs-time-zone). + /// For example - America/Los_Angeles + /// /// [JsonProperty(PropertyName = "resourceTimeZone")] public string ResourceTimeZone { get; set; } /// - /// List of monitored resource properties + /// List of monitored resource properties. + /// /// [JsonProperty(PropertyName = "properties")] public System.Collections.Generic.List Properties { get; set; } @@ -54,5 +59,43 @@ public class UpdateMonitoredResourceDetails [JsonProperty(PropertyName = "aliases")] public MonitoredResourceAliasCredential Aliases { get; set; } + /// + /// List of MonitoredResourceCredentials. This property complements the existing + /// \"credentials\" property by allowing user to specify more than one credential. + /// If both \"credential\" and \"additionalCredentials\" are specified, union of the + /// values is used as list of credentials applicable for this resource. + /// If any duplicate found in the combined list of \"credentials\" and \"additionalCredentials\", + /// an error will be thrown. + /// + /// + [JsonProperty(PropertyName = "additionalCredentials")] + public System.Collections.Generic.List AdditionalCredentials { get; set; } + + /// + /// List of MonitoredResourceAliasCredentials. This property complements the existing + /// \"aliases\" property by allowing user to specify more than one credential alias. + /// If both \"aliases\" and \"additionalAliases\" are specified, union of the + /// values is used as list of aliases applicable for this resource. + /// If any duplicate found in the combined list of \"alias\" and \"additionalAliases\", + /// an error will be thrown. + /// + /// + [JsonProperty(PropertyName = "additionalAliases")] + public System.Collections.Generic.List AdditionalAliases { 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; } + } } diff --git a/Stackmonitoring/requests/AssociateMonitoredResourcesRequest.cs b/Stackmonitoring/requests/AssociateMonitoredResourcesRequest.cs index 005fb0fea5..353877ca21 100644 --- a/Stackmonitoring/requests/AssociateMonitoredResourcesRequest.cs +++ b/Stackmonitoring/requests/AssociateMonitoredResourcesRequest.cs @@ -20,7 +20,8 @@ public class AssociateMonitoredResourcesRequest : Oci.Common.IOciRequest { /// - /// Associate resources. + /// Details to create association between two resources. + /// /// /// /// Required diff --git a/Stackmonitoring/requests/CreateMonitoredResourceRequest.cs b/Stackmonitoring/requests/CreateMonitoredResourceRequest.cs index 8f9a468c1d..8ae595de68 100644 --- a/Stackmonitoring/requests/CreateMonitoredResourceRequest.cs +++ b/Stackmonitoring/requests/CreateMonitoredResourceRequest.cs @@ -20,7 +20,8 @@ public class CreateMonitoredResourceRequest : Oci.Common.IOciRequest { /// - /// Details for the new Resource. + /// Details for the new monitored resource. + /// /// /// /// Required diff --git a/Stackmonitoring/requests/DeleteMonitoredResourceRequest.cs b/Stackmonitoring/requests/DeleteMonitoredResourceRequest.cs index 3c63ae253f..dff14832f9 100644 --- a/Stackmonitoring/requests/DeleteMonitoredResourceRequest.cs +++ b/Stackmonitoring/requests/DeleteMonitoredResourceRequest.cs @@ -49,7 +49,9 @@ public class DeleteMonitoredResourceRequest : Oci.Common.IOciRequest public string OpcRequestId { get; set; } /// - /// A filter to delete the associated children or not for given resource. + /// If this query parameter is specified and set to true, all the member + /// resources will be deleted before deleting the specified resource. + /// /// [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isDeleteMembers")] public System.Nullable IsDeleteMembers { get; set; } diff --git a/Stackmonitoring/requests/SearchMonitoredResourceAssociationsRequest.cs b/Stackmonitoring/requests/SearchMonitoredResourceAssociationsRequest.cs index 8dc3fc0615..3e8f46e97c 100644 --- a/Stackmonitoring/requests/SearchMonitoredResourceAssociationsRequest.cs +++ b/Stackmonitoring/requests/SearchMonitoredResourceAssociationsRequest.cs @@ -20,7 +20,8 @@ public class SearchMonitoredResourceAssociationsRequest : Oci.Common.IOciRequest { /// - /// Search Criteria for the listing the monitored resource associations. + /// Search criteria for listing monitored resource associations. + /// /// /// /// Required diff --git a/Stackmonitoring/requests/SearchMonitoredResourceMembersRequest.cs b/Stackmonitoring/requests/SearchMonitoredResourceMembersRequest.cs index 133bfd0c0c..ef34d740d0 100644 --- a/Stackmonitoring/requests/SearchMonitoredResourceMembersRequest.cs +++ b/Stackmonitoring/requests/SearchMonitoredResourceMembersRequest.cs @@ -30,7 +30,8 @@ public class SearchMonitoredResourceMembersRequest : Oci.Common.IOciRequest public string MonitoredResourceId { get; set; } /// - /// Search criteria for the listing the member monitored resources. + /// Search criteria for listing member monitored resources. + /// /// /// /// Required diff --git a/Stackmonitoring/requests/SearchMonitoredResourcesRequest.cs b/Stackmonitoring/requests/SearchMonitoredResourcesRequest.cs index 0ede3918e3..9e1ee0af2f 100644 --- a/Stackmonitoring/requests/SearchMonitoredResourcesRequest.cs +++ b/Stackmonitoring/requests/SearchMonitoredResourcesRequest.cs @@ -20,7 +20,8 @@ public class SearchMonitoredResourcesRequest : Oci.Common.IOciRequest { /// - /// Property Search Criteria for the listing the monitored resources. + /// Search Criteria for listing monitored resources. + /// /// /// /// Required diff --git a/Stackmonitoring/requests/UpdateAndPropagateTagsRequest.cs b/Stackmonitoring/requests/UpdateAndPropagateTagsRequest.cs new file mode 100644 index 0000000000..68720fe230 --- /dev/null +++ b/Stackmonitoring/requests/UpdateAndPropagateTagsRequest.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 UpdateAndPropagateTags request. + /// + public class UpdateAndPropagateTagsRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource. + /// + /// + /// Required + /// + [Required(ErrorMessage = "MonitoredResourceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "monitoredResourceId")] + public string MonitoredResourceId { get; set; } + + /// + /// The tags to be updated. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateAndPropagateTagsDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateAndPropagateTagsDetails UpdateAndPropagateTagsDetails { 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; } + + /// + /// 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; } + } +} diff --git a/Stackmonitoring/responses/UpdateAndPropagateTagsResponse.cs b/Stackmonitoring/responses/UpdateAndPropagateTagsResponse.cs new file mode 100644 index 0000000000..9f9bda73b1 --- /dev/null +++ b/Stackmonitoring/responses/UpdateAndPropagateTagsResponse.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.Runtime.Serialization; +using Oci.StackmonitoringService.Models; + +namespace Oci.StackmonitoringService.Responses +{ + public class UpdateAndPropagateTagsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-work-request-id")] + public string OpcWorkRequestId { 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/Visualbuilder/models/VbInstance.cs b/Visualbuilder/models/VbInstance.cs index eb9040cce9..6596176d77 100644 --- a/Visualbuilder/models/VbInstance.cs +++ b/Visualbuilder/models/VbInstance.cs @@ -194,5 +194,29 @@ public enum ConsumptionModelEnum { [JsonProperty(PropertyName = "attachments")] public System.Collections.Generic.List Attachments { get; set; } + /// + /// The NAT gateway IP address for the VB service VCN + /// + [JsonProperty(PropertyName = "serviceNatGatewayIp")] + public string ServiceNatGatewayIp { get; set; } + + /// + /// The NAT gateway IP address for the VB management VCN + /// + [JsonProperty(PropertyName = "managementNatGatewayIp")] + public string ManagementNatGatewayIp { get; set; } + + /// + /// The Oracle Cloud ID (OCID) of the Visual Builder service VCN + /// + [JsonProperty(PropertyName = "serviceVcnId")] + public string ServiceVcnId { get; set; } + + /// + /// The Oracle Cloud ID (OCID) of the Visual Builder management VCN + /// + [JsonProperty(PropertyName = "managementVcnId")] + public string ManagementVcnId { get; set; } + } }