diff --git a/Artifacts/ArtifactsClient.cs b/Artifacts/ArtifactsClient.cs index c750d4a9a0..7a6d4ab260 100644 --- a/Artifacts/ArtifactsClient.cs +++ b/Artifacts/ArtifactsClient.cs @@ -1534,6 +1534,118 @@ public async Task UpdateContainerConfigura } } + /// + /// Modify the properties of a container image. Avoid entering confidential information. + /// + /// 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 UpdateContainerImage API. + public async Task UpdateContainerImage(UpdateContainerImageRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateContainerImage"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/container/images/{imageId}".Trim('/'))); + HttpMethod method = new HttpMethod("PUT"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "Artifacts", + OperationName = "UpdateContainerImage", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/registry/20160918/ContainerImage/UpdateContainerImage", + 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($"UpdateContainerImage failed with error: {e.Message}"); + throw; + } + } + + /// + /// Modify the properties of a container image signature. Avoid entering confidential information. + /// + /// 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 UpdateContainerImageSignature API. + public async Task UpdateContainerImageSignature(UpdateContainerImageSignatureRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateContainerImageSignature"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/container/imageSignatures/{imageSignatureId}".Trim('/'))); + HttpMethod method = new HttpMethod("PUT"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "Artifacts", + OperationName = "UpdateContainerImageSignature", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/registry/20160918/ContainerImageSignature/UpdateContainerImageSignature", + 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($"UpdateContainerImageSignature failed with error: {e.Message}"); + throw; + } + } + /// /// Modify the properties of a container repository. Avoid entering confidential information. /// diff --git a/Artifacts/ArtifactsWaiters.cs b/Artifacts/ArtifactsWaiters.cs index 527fe9c806..7c1f3ccfc8 100644 --- a/Artifacts/ArtifactsWaiters.cs +++ b/Artifacts/ArtifactsWaiters.cs @@ -60,6 +60,34 @@ public Waiter ForContainerI /// Request to send. /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states /// a new Oci.common.Waiter instance + public Waiter ForContainerImageSignature(GetContainerImageSignatureRequest request, params ContainerImageSignature.LifecycleStateEnum[] targetStates) + { + return this.ForContainerImageSignature(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForContainerImageSignature(GetContainerImageSignatureRequest request, WaiterConfiguration config, params ContainerImageSignature.LifecycleStateEnum[] targetStates) + { + var agent = new WaiterAgent( + request, + request => client.GetContainerImageSignature(request), + response => targetStates.Contains(response.ContainerImageSignature.LifecycleState.Value), + targetStates.Contains(ContainerImageSignature.LifecycleStateEnum.Deleted) + ); + return new Waiter(config, agent); + } + /// + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance public Waiter ForContainerRepository(GetContainerRepositoryRequest request, params ContainerRepository.LifecycleStateEnum[] targetStates) { return this.ForContainerRepository(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); diff --git a/Artifacts/models/ContainerImage.cs b/Artifacts/models/ContainerImage.cs index 408c75f0b3..15308fb8b0 100644 --- a/Artifacts/models/ContainerImage.cs +++ b/Artifacts/models/ContainerImage.cs @@ -196,5 +196,42 @@ public enum LifecycleStateEnum { [JsonProperty(PropertyName = "versions")] public System.Collections.Generic.List Versions { get; set; } + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no + /// predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Department": "Finance"} + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "FreeformTags is required.")] + [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Operations": {"CostCenter": "42"}} + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "DefinedTags is required.")] + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// The system tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + /// + /// Required + /// + [Required(ErrorMessage = "SystemTags is required.")] + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + } } diff --git a/Artifacts/models/ContainerImageSignature.cs b/Artifacts/models/ContainerImageSignature.cs index 2385d7b62c..5549944471 100644 --- a/Artifacts/models/ContainerImageSignature.cs +++ b/Artifacts/models/ContainerImageSignature.cs @@ -159,6 +159,70 @@ public enum SigningAlgorithmEnum { [Required(ErrorMessage = "TimeCreated is required.")] [JsonProperty(PropertyName = "timeCreated")] public System.Nullable TimeCreated { get; set; } + /// + /// + /// The current state of the container image signature. + /// + /// + public enum LifecycleStateEnum { + /// 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 = "AVAILABLE")] + Available, + [EnumMember(Value = "DELETING")] + Deleting, + [EnumMember(Value = "DELETED")] + Deleted + }; + + /// + /// The current state of the container image signature. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleState is required.")] + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no + /// predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Department": "Finance"} + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "FreeformTags is required.")] + [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Operations": {"CostCenter": "42"}} + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "DefinedTags is required.")] + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// The system tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + /// + /// Required + /// + [Required(ErrorMessage = "SystemTags is required.")] + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } } } diff --git a/Artifacts/models/ContainerImageSignatureSummary.cs b/Artifacts/models/ContainerImageSignatureSummary.cs index 93ac034426..932515a703 100644 --- a/Artifacts/models/ContainerImageSignatureSummary.cs +++ b/Artifacts/models/ContainerImageSignatureSummary.cs @@ -150,5 +150,53 @@ public enum SigningAlgorithmEnum { [JsonProperty(PropertyName = "timeCreated")] public System.Nullable TimeCreated { get; set; } + /// + /// The current state of the container image signature. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleState is required.")] + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no + /// predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Department": "Finance"} + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "FreeformTags is required.")] + [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Operations": {"CostCenter": "42"}} + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "DefinedTags is required.")] + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// The system tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + /// + /// Required + /// + [Required(ErrorMessage = "SystemTags is required.")] + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + } } diff --git a/Artifacts/models/ContainerImageSummary.cs b/Artifacts/models/ContainerImageSummary.cs index 35a316c118..8d5d41f1c5 100644 --- a/Artifacts/models/ContainerImageSummary.cs +++ b/Artifacts/models/ContainerImageSummary.cs @@ -114,5 +114,42 @@ public class ContainerImageSummary [JsonProperty(PropertyName = "version")] public string Version { get; set; } + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no + /// predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Department": "Finance"} + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "FreeformTags is required.")] + [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Operations": {"CostCenter": "42"}} + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "DefinedTags is required.")] + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// The system tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + /// + /// Required + /// + [Required(ErrorMessage = "SystemTags is required.")] + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + } } diff --git a/Artifacts/models/ContainerRepository.cs b/Artifacts/models/ContainerRepository.cs index 5f4ed2cc5c..a0fdbf4742 100644 --- a/Artifacts/models/ContainerRepository.cs +++ b/Artifacts/models/ContainerRepository.cs @@ -169,5 +169,52 @@ public enum LifecycleStateEnum { [JsonProperty(PropertyName = "billableSizeInGBs")] public System.Nullable BillableSizeInGBs { get; set; } + /// + /// The tenancy namespace used in the container repository path. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Namespace is required.")] + [JsonProperty(PropertyName = "namespace")] + public string Namespace { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no + /// predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Department": "Finance"} + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "FreeformTags is required.")] + [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Operations": {"CostCenter": "42"}} + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "DefinedTags is required.")] + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// The system tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + /// + /// Required + /// + [Required(ErrorMessage = "SystemTags is required.")] + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + } } diff --git a/Artifacts/models/ContainerRepositorySummary.cs b/Artifacts/models/ContainerRepositorySummary.cs index 3c839f7df6..16b72c08a7 100644 --- a/Artifacts/models/ContainerRepositorySummary.cs +++ b/Artifacts/models/ContainerRepositorySummary.cs @@ -124,5 +124,52 @@ public class ContainerRepositorySummary [JsonProperty(PropertyName = "billableSizeInGBs")] public System.Nullable BillableSizeInGBs { get; set; } + /// + /// The tenancy namespace used in the container repository path. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Namespace is required.")] + [JsonProperty(PropertyName = "namespace")] + public string Namespace { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no + /// predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Department": "Finance"} + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "FreeformTags is required.")] + [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Operations": {"CostCenter": "42"}} + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "DefinedTags is required.")] + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// The system tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + /// + /// Required + /// + [Required(ErrorMessage = "SystemTags is required.")] + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + } } diff --git a/Artifacts/models/CreateContainerImageSignatureDetails.cs b/Artifacts/models/CreateContainerImageSignatureDetails.cs index 97a140da36..d1e8585de4 100644 --- a/Artifacts/models/CreateContainerImageSignatureDetails.cs +++ b/Artifacts/models/CreateContainerImageSignatureDetails.cs @@ -113,5 +113,23 @@ public enum SigningAlgorithmEnum { [JsonConverter(typeof(StringEnumConverter))] public System.Nullable SigningAlgorithm { get; set; } + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no + /// predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Department": "Finance"} + ///
+ [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Operations": {"CostCenter": "42"}} + ///
+ [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + } } diff --git a/Artifacts/models/CreateContainerRepositoryDetails.cs b/Artifacts/models/CreateContainerRepositoryDetails.cs index e8e63d441f..4318316898 100644 --- a/Artifacts/models/CreateContainerRepositoryDetails.cs +++ b/Artifacts/models/CreateContainerRepositoryDetails.cs @@ -57,5 +57,23 @@ public class CreateContainerRepositoryDetails [JsonProperty(PropertyName = "readme")] public ContainerRepositoryReadme Readme { get; set; } + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no + /// predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Department": "Finance"} + ///
+ [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Operations": {"CostCenter": "42"}} + ///
+ [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + } } diff --git a/Artifacts/models/UpdateContainerImageDetails.cs b/Artifacts/models/UpdateContainerImageDetails.cs new file mode 100644 index 0000000000..4835000bc9 --- /dev/null +++ b/Artifacts/models/UpdateContainerImageDetails.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.ArtifactsService.Models +{ + /// + /// Details for updating a container image. + /// + public class UpdateContainerImageDetails + { + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no + /// predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Department": "Finance"} + ///
+ [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Operations": {"CostCenter": "42"}} + ///
+ [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Artifacts/models/UpdateContainerImageSignatureDetails.cs b/Artifacts/models/UpdateContainerImageSignatureDetails.cs new file mode 100644 index 0000000000..6e5ff1709c --- /dev/null +++ b/Artifacts/models/UpdateContainerImageSignatureDetails.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.ArtifactsService.Models +{ + /// + /// Details for updating a container image signature. + /// + public class UpdateContainerImageSignatureDetails + { + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no + /// predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Department": "Finance"} + ///
+ [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Operations": {"CostCenter": "42"}} + ///
+ [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Artifacts/models/UpdateContainerRepositoryDetails.cs b/Artifacts/models/UpdateContainerRepositoryDetails.cs index 367b8fabe2..68f67565c9 100644 --- a/Artifacts/models/UpdateContainerRepositoryDetails.cs +++ b/Artifacts/models/UpdateContainerRepositoryDetails.cs @@ -36,5 +36,23 @@ public class UpdateContainerRepositoryDetails [JsonProperty(PropertyName = "readme")] public ContainerRepositoryReadme Readme { get; set; } + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no + /// predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Department": "Finance"} + ///
+ [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + ///
+ /// Example: {"Operations": {"CostCenter": "42"}} + ///
+ [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + } } diff --git a/Artifacts/requests/UpdateContainerImageRequest.cs b/Artifacts/requests/UpdateContainerImageRequest.cs new file mode 100644 index 0000000000..46df20897e --- /dev/null +++ b/Artifacts/requests/UpdateContainerImageRequest.cs @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.ArtifactsService.Models; + +namespace Oci.ArtifactsService.Requests +{ + /// + /// Click here to see an example of how to use UpdateContainerImage request. + /// + public class UpdateContainerImageRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container image. + ///
+ /// Example: ocid1.containerimage.oc1..exampleuniqueID + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "ImageId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "imageId")] + public string ImageId { get; set; } + + /// + /// Update container image details. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateContainerImageDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateContainerImageDetails UpdateContainerImageDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + /// parameter to the value of the etag from a previous GET or POST response for that resource. The resource + /// will be updated or deleted only if the etag you provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique 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/Artifacts/requests/UpdateContainerImageSignatureRequest.cs b/Artifacts/requests/UpdateContainerImageSignatureRequest.cs new file mode 100644 index 0000000000..83a683e0bb --- /dev/null +++ b/Artifacts/requests/UpdateContainerImageSignatureRequest.cs @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.ArtifactsService.Models; + +namespace Oci.ArtifactsService.Requests +{ + /// + /// Click here to see an example of how to use UpdateContainerImageSignature request. + /// + public class UpdateContainerImageSignatureRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the container image signature. + ///
+ /// Example: ocid1.containersignature.oc1..exampleuniqueID + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "ImageSignatureId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "imageSignatureId")] + public string ImageSignatureId { get; set; } + + /// + /// Update container image signature details. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateContainerImageSignatureDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateContainerImageSignatureDetails UpdateContainerImageSignatureDetails { get; set; } + + /// + /// Unique 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/Artifacts/responses/UpdateContainerImageResponse.cs b/Artifacts/responses/UpdateContainerImageResponse.cs new file mode 100644 index 0000000000..c23b6ac561 --- /dev/null +++ b/Artifacts/responses/UpdateContainerImageResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.ArtifactsService.Models; + +namespace Oci.ArtifactsService.Responses +{ + public class UpdateContainerImageResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned ContainerImage instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ContainerImage ContainerImage { get; set; } + + } +} diff --git a/Artifacts/responses/UpdateContainerImageSignatureResponse.cs b/Artifacts/responses/UpdateContainerImageSignatureResponse.cs new file mode 100644 index 0000000000..80c67b2be3 --- /dev/null +++ b/Artifacts/responses/UpdateContainerImageSignatureResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.ArtifactsService.Models; + +namespace Oci.ArtifactsService.Responses +{ + public class UpdateContainerImageSignatureResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned ContainerImageSignature instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ContainerImageSignature ContainerImageSignature { get; set; } + + } +} diff --git a/CHANGELOG.md b/CHANGELOG.md index cdc0f49c84..c9c84a8b7a 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/). +## 64.2.0 - 2023-06-27 +### Added +- Support for calling Oracle Cloud Infrastructure services in the eu-frankfurt-2 region +- Support for the OS Management Hub service +- Support for changing the key store type, and rotating keys, on Exadata Cloud at Customer in the Database service +- Support for launching VM database systems using Ampere A1 shapes in the Database service +- Support for additional currencies and countries on paid listings in the Marketplace service +- Support for ECPU integration in the License Manager service +- Support for freeform and defined tags on resources in the Generic Artifacts service +- Support for SQL endpoints in the Data Flow service +- Support for setting replication delays on channels in the MySQL Database service +- Support for setting how channels handle replicated tables with no primary key in the MySQL Database service +- Support for SQL Plan Management (SPM) in Database Management service + ## 64.1.0 - 2023-06-20 ### Added - Support for serial console access in the Database service diff --git a/Common/Src/RegionDefinitions.cs b/Common/Src/RegionDefinitions.cs index 696c3cbbe2..6f0c7c59ff 100644 --- a/Common/Src/RegionDefinitions.cs +++ b/Common/Src/RegionDefinitions.cs @@ -81,6 +81,7 @@ public partial class Region // OC19 public static readonly Region EU_MADRID_2 = Register("eu-madrid-2", Realm.OC19, "vll"); + public static readonly Region EU_FRANKFURT_2 = Register("eu-frankfurt-2", Realm.OC19, "str"); // OC20 public static readonly Region EU_JOVANOVAC_1 = Register("eu-jovanovac-1", Realm.OC20, "beg"); diff --git a/Common/Src/Version.cs b/Common/Src/Version.cs index 6301a7897b..3f8db47160 100644 --- a/Common/Src/Version.cs +++ b/Common/Src/Version.cs @@ -8,7 +8,7 @@ namespace Oci.Common public class Version { public static string MAJOR = "64"; - public static string MINOR = "1"; + public static string MINOR = "2"; public static string PATCH = "0"; public static string TAG = ""; diff --git a/Commontests/Regions.json b/Commontests/Regions.json index 1794324aca..73ad82e2ea 100644 --- a/Commontests/Regions.json +++ b/Commontests/Regions.json @@ -316,5 +316,11 @@ "realmKey": "oc19", "regionIdentifier": "eu-madrid-2", "realmDomainComponent": "oraclecloud.eu" + }, + { + "regionKey": "str", + "realmKey": "oc19", + "regionIdentifier": "eu-frankfurt-2", + "realmDomainComponent": "oraclecloud.eu" } ] \ No newline at end of file diff --git a/Database/DatabaseClient.cs b/Database/DatabaseClient.cs index dd581acd90..bbd03e2c2b 100644 --- a/Database/DatabaseClient.cs +++ b/Database/DatabaseClient.cs @@ -1463,6 +1463,62 @@ public async Task ChangeKeyStoreCompartment(C } } + /// + /// Changes encryption key management type + /// + /// 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 ChangeKeyStoreType API. + public async Task ChangeKeyStoreType(ChangeKeyStoreTypeRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called changeKeyStoreType"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/databases/{databaseId}/actions/changeKeyStoreType".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 = "Database", + OperationName = "ChangeKeyStoreType", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ChangeKeyStoreType", + 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($"ChangeKeyStoreType failed with error: {e.Message}"); + throw; + } + } + /// /// Move the one-off patch to the specified compartment. /// @@ -14804,6 +14860,62 @@ public async Task RotateOrdsCerts(RotateOrdsCertsReques } } + /// + /// Create a new version of the existing encryption key. + /// + /// 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 RotatePluggableDatabaseEncryptionKey API. + public async Task RotatePluggableDatabaseEncryptionKey(RotatePluggableDatabaseEncryptionKeyRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called rotatePluggableDatabaseEncryptionKey"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/pluggableDatabases/{pluggableDatabaseId}/actions/rotateKey".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 = "Database", + OperationName = "RotatePluggableDatabaseEncryptionKey", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/RotatePluggableDatabaseEncryptionKey", + 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($"RotatePluggableDatabaseEncryptionKey failed with error: {e.Message}"); + throw; + } + } + /// /// **Deprecated.** Use the {@link #rotateCloudAutonomousVmClusterSslCerts(RotateCloudAutonomousVmClusterSslCertsRequest) rotateCloudAutonomousVmClusterSslCerts} to rotate SSL certs for an Autonomous Exadata VM cluster instead. /// diff --git a/Database/DatabaseWaiters.cs b/Database/DatabaseWaiters.cs index 3b4301c702..3fa1215cf8 100644 --- a/Database/DatabaseWaiters.cs +++ b/Database/DatabaseWaiters.cs @@ -796,6 +796,38 @@ public Waiter + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForChangeKeyStoreType(ChangeKeyStoreTypeRequest request, params WorkrequestsService.Models.WorkRequest.StatusEnum[] targetStates) + { + return this.ForChangeKeyStoreType(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForChangeKeyStoreType(ChangeKeyStoreTypeRequest request, WaiterConfiguration config, params WorkrequestsService.Models.WorkRequest.StatusEnum[] targetStates) + { + return new Waiter(() => + { + var response = client.ChangeKeyStoreType(request).Result; + var getWorkRequestRequest = new Oci.WorkrequestsService.Requests.GetWorkRequestRequest + { + WorkRequestId = response.OpcWorkRequestId + }; + workRequestClient.Waiters.ForWorkRequest(getWorkRequestRequest, config, targetStates).Execute(); + return response; + }); + } + /// /// Creates a waiter using default wait configuration. /// @@ -5296,6 +5328,38 @@ public Waiter ForRotateOrdsCert }); } + /// + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForRotatePluggableDatabaseEncryptionKey(RotatePluggableDatabaseEncryptionKeyRequest request, params WorkrequestsService.Models.WorkRequest.StatusEnum[] targetStates) + { + return this.ForRotatePluggableDatabaseEncryptionKey(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForRotatePluggableDatabaseEncryptionKey(RotatePluggableDatabaseEncryptionKeyRequest request, WaiterConfiguration config, params WorkrequestsService.Models.WorkRequest.StatusEnum[] targetStates) + { + return new Waiter(() => + { + var response = client.RotatePluggableDatabaseEncryptionKey(request).Result; + var getWorkRequestRequest = new Oci.WorkrequestsService.Requests.GetWorkRequestRequest + { + WorkRequestId = response.OpcWorkRequestId + }; + workRequestClient.Waiters.ForWorkRequest(getWorkRequestRequest, config, targetStates).Execute(); + return response; + }); + } + /// /// Creates a waiter using default wait configuration. /// diff --git a/Database/models/Backup.cs b/Database/models/Backup.cs index a732f765a4..8e1260a8e9 100644 --- a/Database/models/Backup.cs +++ b/Database/models/Backup.cs @@ -188,5 +188,17 @@ public enum DatabaseEditionEnum { [JsonProperty(PropertyName = "vaultId")] public string VaultId { get; set; } + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the key store. + /// + [JsonProperty(PropertyName = "keyStoreId")] + public string KeyStoreId { get; set; } + + /// + /// The wallet name for Oracle Key Vault. + /// + [JsonProperty(PropertyName = "keyStoreWalletName")] + public string KeyStoreWalletName { get; set; } + } } diff --git a/Database/models/BackupSummary.cs b/Database/models/BackupSummary.cs index 3a7b3d1695..2011210aab 100644 --- a/Database/models/BackupSummary.cs +++ b/Database/models/BackupSummary.cs @@ -194,5 +194,17 @@ public enum DatabaseEditionEnum { [JsonProperty(PropertyName = "vaultId")] public string VaultId { get; set; } + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the key store. + /// + [JsonProperty(PropertyName = "keyStoreId")] + public string KeyStoreId { get; set; } + + /// + /// The wallet name for Oracle Key Vault. + /// + [JsonProperty(PropertyName = "keyStoreWalletName")] + public string KeyStoreWalletName { get; set; } + } } diff --git a/Database/models/ChangeKeyStoreTypeDetails.cs b/Database/models/ChangeKeyStoreTypeDetails.cs new file mode 100644 index 0000000000..4262957fd9 --- /dev/null +++ b/Database/models/ChangeKeyStoreTypeDetails.cs @@ -0,0 +1,36 @@ +/* + * 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 +{ + /// + /// Request details to change the source of the encryption key for the database. + /// + /// + public class ChangeKeyStoreTypeDetails + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the key store. + /// + /// + /// Required + /// + [Required(ErrorMessage = "KeyStoreId is required.")] + [JsonProperty(PropertyName = "keyStoreId")] + public string KeyStoreId { get; set; } + + } +} diff --git a/Database/models/Database.cs b/Database/models/Database.cs index a9356c59b1..13cd07917c 100644 --- a/Database/models/Database.cs +++ b/Database/models/Database.cs @@ -250,5 +250,17 @@ public enum LifecycleStateEnum { [JsonProperty(PropertyName = "sidPrefix")] public string SidPrefix { get; set; } + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the key store. + /// + [JsonProperty(PropertyName = "keyStoreId")] + public string KeyStoreId { get; set; } + + /// + /// The wallet name for Oracle Key Vault. + /// + [JsonProperty(PropertyName = "keyStoreWalletName")] + public string KeyStoreWalletName { get; set; } + } } diff --git a/Database/models/DatabaseSummary.cs b/Database/models/DatabaseSummary.cs index 3f08dbd8df..862897a62b 100644 --- a/Database/models/DatabaseSummary.cs +++ b/Database/models/DatabaseSummary.cs @@ -257,5 +257,17 @@ public enum LifecycleStateEnum { [JsonProperty(PropertyName = "sidPrefix")] public string SidPrefix { get; set; } + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the key store. + /// + [JsonProperty(PropertyName = "keyStoreId")] + public string KeyStoreId { get; set; } + + /// + /// The wallet name for Oracle Key Vault. + /// + [JsonProperty(PropertyName = "keyStoreWalletName")] + public string KeyStoreWalletName { get; set; } + } } diff --git a/Database/models/DbSystemShapeSummary.cs b/Database/models/DbSystemShapeSummary.cs index 25e74e1dad..a3ec9ba0cf 100644 --- a/Database/models/DbSystemShapeSummary.cs +++ b/Database/models/DbSystemShapeSummary.cs @@ -43,7 +43,7 @@ public class DbSystemShapeSummary public string ShapeFamily { get; set; } /// /// - /// The shape type for the virtual machine DB system. Shape type is determined by CPU hardware. Valid values are `AMD` , `INTEL` or `INTEL_FLEX_X9`. + /// The shape type for the virtual machine DB system. Shape type is determined by CPU hardware. Valid values are `AMD` , `INTEL`, `INTEL_FLEX_X9` or `AMPERE_FLEX_A1`. /// /// public enum ShapeTypeEnum { @@ -55,11 +55,13 @@ public enum ShapeTypeEnum { [EnumMember(Value = "INTEL")] Intel, [EnumMember(Value = "INTEL_FLEX_X9")] - IntelFlexX9 + IntelFlexX9, + [EnumMember(Value = "AMPERE_FLEX_A1")] + AmpereFlexA1 }; /// - /// The shape type for the virtual machine DB system. Shape type is determined by CPU hardware. Valid values are `AMD` , `INTEL` or `INTEL_FLEX_X9`. + /// The shape type for the virtual machine DB system. Shape type is determined by CPU hardware. Valid values are `AMD` , `INTEL`, `INTEL_FLEX_X9` or `AMPERE_FLEX_A1`. /// [JsonProperty(PropertyName = "shapeType")] [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] diff --git a/Database/models/DbSystemStoragePerformanceSummary.cs b/Database/models/DbSystemStoragePerformanceSummary.cs index 7ef887519e..355c2a4faa 100644 --- a/Database/models/DbSystemStoragePerformanceSummary.cs +++ b/Database/models/DbSystemStoragePerformanceSummary.cs @@ -23,7 +23,7 @@ public class DbSystemStoragePerformanceSummary { /// /// - /// ShapeType of the DbSystems INTEL , AMD or INTEL_FLEX_X9 + /// ShapeType of the DbSystems INTEL , AMD, INTEL_FLEX_X9 or AMPERE_FLEX_A1 /// /// public enum ShapeTypeEnum { @@ -35,11 +35,13 @@ public enum ShapeTypeEnum { [EnumMember(Value = "INTEL")] Intel, [EnumMember(Value = "INTEL_FLEX_X9")] - IntelFlexX9 + IntelFlexX9, + [EnumMember(Value = "AMPERE_FLEX_A1")] + AmpereFlexA1 }; /// - /// ShapeType of the DbSystems INTEL , AMD or INTEL_FLEX_X9 + /// ShapeType of the DbSystems INTEL , AMD, INTEL_FLEX_X9 or AMPERE_FLEX_A1 /// /// /// Required diff --git a/Database/requests/ChangeKeyStoreTypeRequest.cs b/Database/requests/ChangeKeyStoreTypeRequest.cs new file mode 100644 index 0000000000..f4b49fd195 --- /dev/null +++ b/Database/requests/ChangeKeyStoreTypeRequest.cs @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabaseService.Models; + +namespace Oci.DatabaseService.Requests +{ + /// + /// Click here to see an example of how to use ChangeKeyStoreType request. + /// + public class ChangeKeyStoreTypeRequest : Oci.Common.IOciRequest + { + + /// + /// The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// + /// + /// Required + /// + [Required(ErrorMessage = "DatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "databaseId")] + public string DatabaseId { get; set; } + + /// + /// Request to change the source of the encryption key for the database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ChangeKeyStoreTypeDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ChangeKeyStoreTypeDetails ChangeKeyStoreTypeDetails { 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; } + + /// + /// 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 + /// may be rejected). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// Unique identifier for the request. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Database/requests/RotatePluggableDatabaseEncryptionKeyRequest.cs b/Database/requests/RotatePluggableDatabaseEncryptionKeyRequest.cs new file mode 100644 index 0000000000..17c6c90f77 --- /dev/null +++ b/Database/requests/RotatePluggableDatabaseEncryptionKeyRequest.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabaseService.Models; + +namespace Oci.DatabaseService.Requests +{ + /// + /// Click here to see an example of how to use RotatePluggableDatabaseEncryptionKey request. + /// + public class RotatePluggableDatabaseEncryptionKeyRequest : Oci.Common.IOciRequest + { + + /// + /// The database [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). + /// + /// + /// Required + /// + [Required(ErrorMessage = "PluggableDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "pluggableDatabaseId")] + public string PluggableDatabaseId { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + /// parameter to the value of the etag from a previous GET or POST response for that resource. The resource + /// will be updated or deleted only if the etag you provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique identifier for the request. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations (for example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// may be rejected). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Database/responses/ChangeKeyStoreTypeResponse.cs b/Database/responses/ChangeKeyStoreTypeResponse.cs new file mode 100644 index 0000000000..6216ff00d1 --- /dev/null +++ b/Database/responses/ChangeKeyStoreTypeResponse.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.DatabaseService.Models; + +namespace Oci.DatabaseService.Responses +{ + public class ChangeKeyStoreTypeResponse : Oci.Common.IOciResponse + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + /// + /// + [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/Database/responses/RotatePluggableDatabaseEncryptionKeyResponse.cs b/Database/responses/RotatePluggableDatabaseEncryptionKeyResponse.cs new file mode 100644 index 0000000000..b5a67cb206 --- /dev/null +++ b/Database/responses/RotatePluggableDatabaseEncryptionKeyResponse.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.DatabaseService.Models; + +namespace Oci.DatabaseService.Responses +{ + public class RotatePluggableDatabaseEncryptionKeyResponse : Oci.Common.IOciResponse + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Multiple OCID values are returned in a comma-separated list. Use {@link #getWorkRequest(GetWorkRequestRequest) getWorkRequest} with a work request OCID to track the status of the request. + /// + /// + [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/Databasemanagement/DbManagementClient.cs b/Databasemanagement/DbManagementClient.cs index 85e5ff530d..de109be88b 100644 --- a/Databasemanagement/DbManagementClient.cs +++ b/Databasemanagement/DbManagementClient.cs @@ -429,7 +429,7 @@ public async Task ChangeExternalDbSys } /// - /// Moves the Exadata infrastructure and its related resources (storage server, storage server connectors and storage server grid) to the specified compartment. + /// Moves the Exadata infrastructure and its related resources (Exadata storage server, Exadata storage server connectors and Exadata storage server grid) to the specified compartment. /// /// /// The request object containing the details to send. Required. @@ -601,6 +601,182 @@ public async Task ChangeManagedDa } } + /// + /// Changes the retention period of unused plans. The period can range + /// between 5 and 523 weeks. + /// <br/> + /// The database purges plans that have not been used for longer than + /// the plan retention period. + /// + /// + /// 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 ChangePlanRetention API. + public async Task ChangePlanRetention(ChangePlanRetentionRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called changePlanRetention"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/changePlanRetention".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 = "DbManagement", + OperationName = "ChangePlanRetention", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ChangePlanRetention", + 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($"ChangePlanRetention failed with error: {e.Message}"); + throw; + } + } + + /// + /// Changes the disk space limit for the SQL Management Base. The allowable + /// range for this limit is between 1% and 50%. + /// + /// + /// 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 ChangeSpaceBudget API. + public async Task ChangeSpaceBudget(ChangeSpaceBudgetRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called changeSpaceBudget"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/changeSpaceBudget".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 = "DbManagement", + OperationName = "ChangeSpaceBudget", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ChangeSpaceBudget", + 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($"ChangeSpaceBudget failed with error: {e.Message}"); + throw; + } + } + + /// + /// Changes one or more attributes of a single plan or all plans associated with a SQL statement. + /// + /// + /// 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 ChangeSqlPlanBaselinesAttributes API. + public async Task ChangeSqlPlanBaselinesAttributes(ChangeSqlPlanBaselinesAttributesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called changeSqlPlanBaselinesAttributes"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/changeSqlPlanBaselinesAttributes".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 = "DbManagement", + OperationName = "ChangeSqlPlanBaselinesAttributes", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ChangeSqlPlanBaselinesAttributes", + 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($"ChangeSqlPlanBaselinesAttributes failed with error: {e.Message}"); + throw; + } + } + /// /// Checks the status of the external DB system component connection specified in this connector. /// This operation will refresh the connectionStatus and timeConnectionStatusLastUpdated fields. @@ -660,7 +836,7 @@ public async Task CheckE } /// - /// Check the status of the Exadata storage server connection specified by exadataStorageConnectorId. + /// Checks the status of the Exadata storage server connection specified by exadataStorageConnectorId. /// /// /// The request object containing the details to send. Required. @@ -716,6 +892,123 @@ public async Task CheckExternalExa } } + /// + /// Configures automatic capture filters to capture only those statements + /// that match the filter criteria. + /// + /// + /// 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 ConfigureAutomaticCaptureFilters API. + public async Task ConfigureAutomaticCaptureFilters(ConfigureAutomaticCaptureFiltersRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called configureAutomaticCaptureFilters"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/configureAutomaticCaptureFilters".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 = "DbManagement", + OperationName = "ConfigureAutomaticCaptureFilters", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ConfigureAutomaticCaptureFilters", + 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($"ConfigureAutomaticCaptureFilters failed with error: {e.Message}"); + throw; + } + } + + /// + /// Configures the Automatic SPM Evolve Advisor task `SYS_AUTO_SPM_EVOLVE_TASK` + /// by specifying task parameters. As the task is owned by `SYS`, only `SYS` can + /// set task parameters. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use ConfigureAutomaticSpmEvolveAdvisorTask API. + public async Task ConfigureAutomaticSpmEvolveAdvisorTask(ConfigureAutomaticSpmEvolveAdvisorTaskRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called configureAutomaticSpmEvolveAdvisorTask"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/configureAutomaticSpmEvolveAdvisorTask".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 = "DbManagement", + OperationName = "ConfigureAutomaticSpmEvolveAdvisorTask", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ConfigureAutomaticSpmEvolveAdvisorTask", + 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($"ConfigureAutomaticSpmEvolveAdvisorTask failed with error: {e.Message}"); + throw; + } + } + /// /// Creates a new Database Management private endpoint. /// @@ -944,7 +1237,7 @@ public async Task CreateExternalDbSyste } /// - /// Creates an OCI resource for the Exadata infrastructure and enable monitoring service on the exadata infrastructure. + /// Creates an OCI resource for the Exadata infrastructure and enables the Monitoring service for the Exadata infrastructure. /// The following resource/subresources are created: /// Infrastructure /// Storage server connectors @@ -1006,9 +1299,7 @@ public async Task CreateExternalExa } /// - /// Create the storage server connector after validating the connection information. - /// Or only validates the connection information for creating the connection to the storage server. - /// The connector for one storage server is associated with the Exadata infrastructure discovery or existing Exadata infrastructure. + /// Creates the Exadata storage server connector after validating the connection information. /// /// /// The request object containing the details to send. Required. @@ -1466,7 +1757,7 @@ public async Task DeleteExternalDbSyste } /// - /// Deletes the the Exadata infrastructure specified by externalExadataInfrastructureId. + /// Deletes the Exadata infrastructure specified by externalExadataInfrastructureId. /// /// /// The request object containing the details to send. Required. @@ -1523,7 +1814,7 @@ public async Task DeleteExternalExa } /// - /// Deletes the storage server connector specified by exadataStorageConnectorId. + /// Deletes the Exadata storage server connector specified by exadataStorageConnectorId. /// /// /// The request object containing the details to send. Required. @@ -1751,8 +2042,7 @@ public async Task DeletePreferredCredential(D } /// - /// Disables Database Management service for all the components of the specified - /// external DB system (except databases). + /// Disables automatic initial plan capture. /// /// /// The request object containing the details to send. Required. @@ -1760,11 +2050,11 @@ public async Task DeletePreferredCredential(D /// 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 DisableExternalDbSystemDatabaseManagement API. - public async Task DisableExternalDbSystemDatabaseManagement(DisableExternalDbSystemDatabaseManagementRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + /// Click here to see an example of how to use DisableAutomaticInitialPlanCapture API. + public async Task DisableAutomaticInitialPlanCapture(DisableAutomaticInitialPlanCaptureRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) { - logger.Trace("Called disableExternalDbSystemDatabaseManagement"); - Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/externalDbSystems/{externalDbSystemId}/actions/disableDatabaseManagement".Trim('/'))); + logger.Trace("Called disableAutomaticInitialPlanCapture"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/disableAutomaticInitialPlanCapture".Trim('/'))); HttpMethod method = new HttpMethod("POST"); HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); requestMessage.Headers.Add("Accept", "application/json"); @@ -1787,14 +2077,14 @@ public async Task DisableExte ApiDetails apiDetails = new ApiDetails { ServiceName = "DbManagement", - OperationName = "DisableExternalDbSystemDatabaseManagement", + OperationName = "DisableAutomaticInitialPlanCapture", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalDbSystem/DisableExternalDbSystemDatabaseManagement", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableAutomaticInitialPlanCapture", 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); + return Converter.FromHttpResponseMessage(responseMessage); } catch (OciException e) { @@ -1803,18 +2093,16 @@ public async Task DisableExte } catch (Exception e) { - logger.Error($"DisableExternalDbSystemDatabaseManagement failed with error: {e.Message}"); + logger.Error($"DisableAutomaticInitialPlanCapture failed with error: {e.Message}"); throw; } } /// - /// Disables Database Management service for the Exadata infrastructure specified by externalExadataInfrastructureId. - /// It covers the following components - /// Exadata infrastructure - /// Exadata storage grid - /// Exadata storage server - /// Database systems within the Exdata infrastructure will not be impacted and should be disabled explicitly if needed. + /// Disables the Automatic SPM Evolve Advisor task. + /// <br/> + /// One client controls both Automatic SQL Tuning Advisor and Automatic SPM Evolve Advisor. + /// Thus, the same task enables or disables both. /// /// /// The request object containing the details to send. Required. @@ -1822,11 +2110,191 @@ public async Task DisableExte /// 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 DisableExternalExadataInfrastructureManagement API. - public async Task DisableExternalExadataInfrastructureManagement(DisableExternalExadataInfrastructureManagementRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + /// Click here to see an example of how to use DisableAutomaticSpmEvolveAdvisorTask API. + public async Task DisableAutomaticSpmEvolveAdvisorTask(DisableAutomaticSpmEvolveAdvisorTaskRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) { - logger.Trace("Called disableExternalExadataInfrastructureManagement"); - Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/externalExadataInfrastructures/{externalExadataInfrastructureId}/actions/disableDatabaseManagement".Trim('/'))); + logger.Trace("Called disableAutomaticSpmEvolveAdvisorTask"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/disableAutomaticSpmEvolveAdvisorTask".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 = "DbManagement", + OperationName = "DisableAutomaticSpmEvolveAdvisorTask", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableAutomaticSpmEvolveAdvisorTask", + 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($"DisableAutomaticSpmEvolveAdvisorTask failed with error: {e.Message}"); + throw; + } + } + + /// + /// Disables Database Management service for all the components of the specified + /// external DB system (except databases). + /// + /// + /// 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 DisableExternalDbSystemDatabaseManagement API. + public async Task DisableExternalDbSystemDatabaseManagement(DisableExternalDbSystemDatabaseManagementRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called disableExternalDbSystemDatabaseManagement"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/externalDbSystems/{externalDbSystemId}/actions/disableDatabaseManagement".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 = "DbManagement", + OperationName = "DisableExternalDbSystemDatabaseManagement", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalDbSystem/DisableExternalDbSystemDatabaseManagement", + 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($"DisableExternalDbSystemDatabaseManagement failed with error: {e.Message}"); + throw; + } + } + + /// + /// Disables Stack Monitoring for all the components of the specified + /// external DB system (except databases). + /// + /// + /// 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 DisableExternalDbSystemStackMonitoring API. + public async Task DisableExternalDbSystemStackMonitoring(DisableExternalDbSystemStackMonitoringRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called disableExternalDbSystemStackMonitoring"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/externalDbSystems/{externalDbSystemId}/actions/disableStackMonitoring".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 = "DbManagement", + OperationName = "DisableExternalDbSystemStackMonitoring", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalDbSystem/DisableExternalDbSystemStackMonitoring", + 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($"DisableExternalDbSystemStackMonitoring failed with error: {e.Message}"); + throw; + } + } + + /// + /// Disables Database Management for the Exadata infrastructure specified by externalExadataInfrastructureId. + /// It covers the following components: + /// <br/> + /// - Exadata infrastructure + /// - Exadata storage grid + /// - Exadata storage server + /// <br/> + /// Note that Database Management will not be disabled for the DB systems within the Exadata infrastructure and should be disabled explicitly, if required. + /// + /// + /// 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 DisableExternalExadataInfrastructureManagement API. + public async Task DisableExternalExadataInfrastructureManagement(DisableExternalExadataInfrastructureManagementRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called disableExternalExadataInfrastructureManagement"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/externalExadataInfrastructures/{externalExadataInfrastructureId}/actions/disableDatabaseManagement".Trim('/'))); HttpMethod method = new HttpMethod("POST"); HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); requestMessage.Headers.Add("Accept", "application/json"); @@ -1851,12 +2319,263 @@ public async Task Disabl ServiceName = "DbManagement", OperationName = "DisableExternalExadataInfrastructureManagement", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalExadataInfrastructure/DisableExternalExadataInfrastructureManagement", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalExadataInfrastructure/DisableExternalExadataInfrastructureManagement", + 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($"DisableExternalExadataInfrastructureManagement failed with error: {e.Message}"); + throw; + } + } + + /// + /// Disables the high-frequency Automatic SPM Evolve Advisor task. + /// <br/> + /// It is available only on Oracle Exadata Database Machine, Oracle Database Exadata + /// Cloud Service (ExaCS) and Oracle Database Exadata Cloud@Customer (ExaCC). + /// + /// + /// 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 DisableHighFrequencyAutomaticSpmEvolveAdvisorTask API. + public async Task DisableHighFrequencyAutomaticSpmEvolveAdvisorTask(DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called disableHighFrequencyAutomaticSpmEvolveAdvisorTask"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/disableHighFrequencyAutomaticSpmEvolveAdvisorTask".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 = "DbManagement", + OperationName = "DisableHighFrequencyAutomaticSpmEvolveAdvisorTask", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableHighFrequencyAutomaticSpmEvolveAdvisorTask", + 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($"DisableHighFrequencyAutomaticSpmEvolveAdvisorTask failed with error: {e.Message}"); + throw; + } + } + + /// + /// Disables the use of SQL plan baselines stored in SQL Management Base. + /// <br/> + /// When disabled, the optimizer does not use any SQL plan baselines. + /// + /// + /// 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 DisableSqlPlanBaselinesUsage API. + public async Task DisableSqlPlanBaselinesUsage(DisableSqlPlanBaselinesUsageRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called disableSqlPlanBaselinesUsage"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/disableSqlPlanBaselinesUsage".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 = "DbManagement", + OperationName = "DisableSqlPlanBaselinesUsage", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableSqlPlanBaselinesUsage", + 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($"DisableSqlPlanBaselinesUsage failed with error: {e.Message}"); + throw; + } + } + + /// + /// Completes the Exadata system prechecking on the following: + /// <br/> + /// - Verifies if the DB systems are valid RAC DB systems or return 400 status code with NON_RAC_DATABASE_SYSTEM error code. + /// - Verifies if the ASM connector defined for each DB system or return 400 status code with CONNECTOR_NOT_DEFINED error code. + /// - Verifies if the agents associated with ASM are valid and could be used for the Exadata storage servers or return 400 status code with + /// INVALID_AGENT error code. + /// - Verifies if it is an Exadata system or return 400 status code with INVALID_EXADATA_SYSTEM error code. + /// <br/> + /// Starts the discovery process for the Exadata system infrastructure. The following resources/components are discovered + /// <br/> + /// - Exadata storage servers from each DB systems + /// - Exadata storage grid for all Exadata storage servers + /// - Exadata infrastructure + /// <br/> + /// The same API covers both new discovery and rediscovery cases. + /// For the new discovery case, new managed resources/sub-resources are created or the existing ones are overridden. + /// For rediscovery case, the existing managed resources/sub-resources are checked to find out which ones should be added or which ones + /// should be + /// removed based on the unique key defined for each resource/sub-resource. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use DiscoverExternalExadataInfrastructure API. + public async Task DiscoverExternalExadataInfrastructure(DiscoverExternalExadataInfrastructureRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called discoverExternalExadataInfrastructure"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/externalExadataInfrastructures/actions/discoverExadataInfrastructure".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 = "DbManagement", + OperationName = "DiscoverExternalExadataInfrastructure", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalExadataInfrastructure/DiscoverExternalExadataInfrastructure", + 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($"DiscoverExternalExadataInfrastructure failed with error: {e.Message}"); + throw; + } + } + + /// + /// Drops a single plan or all plans associated with a SQL statement. + /// + /// + /// 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 DropSqlPlanBaselines API. + public async Task DropSqlPlanBaselines(DropSqlPlanBaselinesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called dropSqlPlanBaselines"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/dropSqlPlanBaselines".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 = "DbManagement", + OperationName = "DropSqlPlanBaselines", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DropSqlPlanBaselines", 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); + return Converter.FromHttpResponseMessage(responseMessage); } catch (OciException e) { @@ -1865,26 +2584,77 @@ public async Task Disabl } catch (Exception e) { - logger.Error($"DisableExternalExadataInfrastructureManagement failed with error: {e.Message}"); + logger.Error($"DropSqlPlanBaselines failed with error: {e.Message}"); throw; } } /// - /// Completes the Exadata system prechecking on the following: - /// Verifies if the database systems are valid RAC database systems. Otherwise, return 400 status code with NON_RAC_DATABASE_SYSTEM error code. - /// Verifies if the ASM connectors defined for each database system. Otherwise, return 400 status code with CONNECTOR_NOT_DEFINED error code. - /// Verifies if the agents associated with ASM are valid and could be used for the storage servers. Otherwise, return 400 status code with INVALID_AGENT error code. - /// Verifies if it is an Exadata system. Otherwise, return 400 status code with INVALID_EXADATA_SYSTEM error code. + /// Drops the tablespace specified by tablespaceName within the Managed Database specified by managedDatabaseId. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use DropTablespace API. + public async Task DropTablespace(DropTablespaceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called dropTablespace"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/tablespaces/{tablespaceName}/actions/dropTablespace".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 = "DbManagement", + OperationName = "DropTablespace", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/Tablespace/DropTablespace", + 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($"DropTablespace failed with error: {e.Message}"); + throw; + } + } + + /// + /// Enables automatic initial plan capture. When enabled, the database checks whether + /// executed SQL statements are eligible for automatic capture. It creates initial + /// plan baselines for eligible statements. /// <br/> - /// Starts the discovery process for the Exadata system infrastructure.The following resources/components could be discovered - /// storage servers from each database systems - /// storage grid for all storage server - /// exadata infrastructure - /// The same API covers both new discovery and re-discovery cases. - /// For the new discovery case, new managed resources/sub-resources are created or override the existing one. - /// For re-discovery case, the existing managed resources/sub-resources are checked to find out which ones should be added or which one should be - /// removed based on the unique key defined for each resource/sub-resource. + /// By default, the database creates a SQL plan baseline for every eligible repeatable + /// statement, including all recursive SQL and monitoring SQL. Thus, automatic capture + /// may result in the creation of an extremely large number of plan baselines. To limit + /// the statements that are eligible for plan baselines, configure filters. /// /// /// The request object containing the details to send. Required. @@ -1892,11 +2662,11 @@ public async Task Disabl /// 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 DiscoverExternalExadataInfrastructure API. - public async Task DiscoverExternalExadataInfrastructure(DiscoverExternalExadataInfrastructureRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + /// Click here to see an example of how to use EnableAutomaticInitialPlanCapture API. + public async Task EnableAutomaticInitialPlanCapture(EnableAutomaticInitialPlanCaptureRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) { - logger.Trace("Called discoverExternalExadataInfrastructure"); - Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/externalExadataInfrastructures/actions/discoverExadataInfrastructure".Trim('/'))); + logger.Trace("Called enableAutomaticInitialPlanCapture"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableAutomaticInitialPlanCapture".Trim('/'))); HttpMethod method = new HttpMethod("POST"); HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); requestMessage.Headers.Add("Accept", "application/json"); @@ -1919,14 +2689,14 @@ public async Task DiscoverExterna ApiDetails apiDetails = new ApiDetails { ServiceName = "DbManagement", - OperationName = "DiscoverExternalExadataInfrastructure", + OperationName = "EnableAutomaticInitialPlanCapture", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalExadataInfrastructure/DiscoverExternalExadataInfrastructure", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableAutomaticInitialPlanCapture", 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); + return Converter.FromHttpResponseMessage(responseMessage); } catch (OciException e) { @@ -1935,13 +2705,25 @@ public async Task DiscoverExterna } catch (Exception e) { - logger.Error($"DiscoverExternalExadataInfrastructure failed with error: {e.Message}"); + logger.Error($"EnableAutomaticInitialPlanCapture failed with error: {e.Message}"); throw; } } /// - /// Drops the tablespace specified by tablespaceName within the Managed Database specified by managedDatabaseId. + /// Enables the Automatic SPM Evolve Advisor task. By default, the automatic task + /// `SYS_AUTO_SPM_EVOLVE_TASK` runs every day in the scheduled maintenance window. + /// <br/> + /// The SPM Evolve Advisor performs the following tasks: + /// <br/> + /// - Checks AWR for top SQL + /// - Looks for alternative plans in all available sources + /// - Adds unaccepted plans to the plan history + /// - Tests the execution of as many plans as possible during the maintenance window + /// - Adds the alternative plan to the baseline if it performs better than the current plan + /// <br/> + /// One client controls both Automatic SQL Tuning Advisor and Automatic SPM Evolve Advisor. + /// Thus, the same task enables or disables both. /// /// /// The request object containing the details to send. Required. @@ -1949,11 +2731,11 @@ public async Task DiscoverExterna /// 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 DropTablespace API. - public async Task DropTablespace(DropTablespaceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + /// Click here to see an example of how to use EnableAutomaticSpmEvolveAdvisorTask API. + public async Task EnableAutomaticSpmEvolveAdvisorTask(EnableAutomaticSpmEvolveAdvisorTaskRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) { - logger.Trace("Called dropTablespace"); - Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/tablespaces/{tablespaceName}/actions/dropTablespace".Trim('/'))); + logger.Trace("Called enableAutomaticSpmEvolveAdvisorTask"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableAutomaticSpmEvolveAdvisorTask".Trim('/'))); HttpMethod method = new HttpMethod("POST"); HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); requestMessage.Headers.Add("Accept", "application/json"); @@ -1976,14 +2758,14 @@ public async Task DropTablespace(DropTablespaceRequest r ApiDetails apiDetails = new ApiDetails { ServiceName = "DbManagement", - OperationName = "DropTablespace", + OperationName = "EnableAutomaticSpmEvolveAdvisorTask", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/Tablespace/DropTablespace", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableAutomaticSpmEvolveAdvisorTask", 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); + return Converter.FromHttpResponseMessage(responseMessage); } catch (OciException e) { @@ -1992,7 +2774,7 @@ public async Task DropTablespace(DropTablespaceRequest r } catch (Exception e) { - logger.Error($"DropTablespace failed with error: {e.Message}"); + logger.Error($"EnableAutomaticSpmEvolveAdvisorTask failed with error: {e.Message}"); throw; } } @@ -2056,11 +2838,70 @@ public async Task EnableExtern } /// - /// Enables Database Management service for the exadata infrastructure specified by externalExadataInfrastructureId. It covers the following - /// components - /// Exadata infrastructure - /// Exadata storage grid - /// Exadata storage server + /// Enables Stack Monitoring for all the components of the specified + /// external DB system (except databases). + /// + /// + /// 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 EnableExternalDbSystemStackMonitoring API. + public async Task EnableExternalDbSystemStackMonitoring(EnableExternalDbSystemStackMonitoringRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called enableExternalDbSystemStackMonitoring"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/externalDbSystems/{externalDbSystemId}/actions/enableStackMonitoring".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 = "DbManagement", + OperationName = "EnableExternalDbSystemStackMonitoring", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalDbSystem/EnableExternalDbSystemStackMonitoring", + 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($"EnableExternalDbSystemStackMonitoring failed with error: {e.Message}"); + throw; + } + } + + /// + /// Enables Database Management for the Exadata infrastructure specified by externalExadataInfrastructureId. It covers the following + /// components: + /// <br/> + /// - Exadata infrastructure + /// - Exadata storage grid + /// - Exadata storage server /// /// /// The request object containing the details to send. Required. @@ -2116,6 +2957,131 @@ public async Task EnableE } } + /// + /// Enables the high-frequency Automatic SPM Evolve Advisor task. The high-frequency + /// task runs every hour and runs for no longer than 30 minutes. These settings + /// are not configurable. + /// <br/> + /// The high-frequency task complements the standard Automatic SPM Evolve Advisor task. + /// They are independent and are scheduled through two different frameworks. + /// <br/> + /// It is available only on Oracle Exadata Database Machine, Oracle Database Exadata + /// Cloud Service (ExaCS) and Oracle Database Exadata Cloud@Customer (ExaCC). + /// + /// + /// 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 EnableHighFrequencyAutomaticSpmEvolveAdvisorTask API. + public async Task EnableHighFrequencyAutomaticSpmEvolveAdvisorTask(EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called enableHighFrequencyAutomaticSpmEvolveAdvisorTask"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableHighFrequencyAutomaticSpmEvolveAdvisorTask".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 = "DbManagement", + OperationName = "EnableHighFrequencyAutomaticSpmEvolveAdvisorTask", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableHighFrequencyAutomaticSpmEvolveAdvisorTask", + 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($"EnableHighFrequencyAutomaticSpmEvolveAdvisorTask failed with error: {e.Message}"); + throw; + } + } + + /// + /// Enables the use of SQL plan baselines stored in SQL Management Base. + /// <br/> + /// When enabled, the optimizer uses SQL plan baselines to select plans + /// to avoid potential performance regressions. + /// + /// + /// 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 EnableSqlPlanBaselinesUsage API. + public async Task EnableSqlPlanBaselinesUsage(EnableSqlPlanBaselinesUsageRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called enableSqlPlanBaselinesUsage"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableSqlPlanBaselinesUsage".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 = "DbManagement", + OperationName = "EnableSqlPlanBaselinesUsage", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableSqlPlanBaselinesUsage", + 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($"EnableSqlPlanBaselinesUsage failed with error: {e.Message}"); + throw; + } + } + /// /// Creates an AWR snapshot for the target database. /// @@ -3087,7 +4053,7 @@ public async Task GetExternalDbSystemDisco } /// - /// Gets the details for the the Exadata infrastructure specified by externalExadataInfrastructureId. It includes the database systems and storage grid within the + /// Gets the details for the Exadata infrastructure specified by externalExadataInfrastructureId. It includes the DB systems and storage grid within the /// Exadata infrastructure. /// /// @@ -3145,7 +4111,7 @@ public async Task GetExternalExadataIn } /// - /// Gets the details for the storage server connector specified by exadataStorageConnectorId. + /// Gets the details for the Exadata storage server connector specified by exadataStorageConnectorId. /// /// /// The request object containing the details to send. Required. @@ -3202,7 +4168,7 @@ public async Task GetExternalExadata } /// - /// Gets the details for the storage server grid specified by exadataStorageGridId. + /// Gets the details for the Exadata storage server grid specified by exadataStorageGridId. /// /// /// The request object containing the details to send. Required. @@ -3259,7 +4225,7 @@ public async Task GetExternalExadataStora } /// - /// Gets the summary for the storage server specified by exadataStorageServerId. + /// Gets the summary for the Exadata storage server specified by exadataStorageServerId. /// /// /// The request object containing the details to send. Required. @@ -3373,7 +4339,7 @@ public async Task GetExternalListener(GetExternalLi } /// - /// Get the IORM plan from the specific exadata storage server. + /// Get the IORM plan from the specific Exadata storage server. /// /// /// The request object containing the details to send. Required. @@ -3715,7 +4681,7 @@ public async Task GetManagedDatabaseGroup(GetMa } /// - /// Get open alerts from storage server. + /// Gets the open alerts from the specified Exadata storage server. /// /// /// The request object containing the details to send. Required. @@ -4058,6 +5024,122 @@ public async Task GetPreferredCredential(GetPref } } + /// + /// Gets the SQL plan baseline details for the specified planName. + /// + /// + /// 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 GetSqlPlanBaseline API. + public async Task GetSqlPlanBaseline(GetSqlPlanBaselineRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getSqlPlanBaseline"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/{planName}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "DbManagement", + OperationName = "GetSqlPlanBaseline", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/GetSqlPlanBaseline", + 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($"GetSqlPlanBaseline failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets the configuration details of SQL plan baselines for the specified + /// Managed Database. The details include the settings for the capture and use of + /// SQL plan baselines, SPM Evolve Advisor task, and SQL Management Base. + /// + /// + /// 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 GetSqlPlanBaselineConfiguration API. + public async Task GetSqlPlanBaselineConfiguration(GetSqlPlanBaselineConfigurationRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getSqlPlanBaselineConfiguration"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselineConfiguration".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "DbManagement", + OperationName = "GetSqlPlanBaselineConfiguration", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/GetSqlPlanBaselineConfiguration", + 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($"GetSqlPlanBaselineConfiguration failed with error: {e.Message}"); + throw; + } + } + /// /// Gets the details of the tablespace specified by tablespaceName within the Managed Database specified by managedDatabaseId. /// @@ -4116,7 +5198,7 @@ public async Task GetTablespace(GetTablespaceRequest requ } /// - /// Get SQL ID with top cpu activity from storage server. + /// Gets the SQL IDs with the top CPU activity from the Exadata storage server. /// /// /// The request object containing the details to send. Required. @@ -4623,6 +5705,63 @@ public async Task ListConsumerGroupPrivileg } } + /// + /// Lists the SQL statements from shared SQL area, also called the cursor cache. + /// + /// + /// 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 ListCursorCacheStatements API. + public async Task ListCursorCacheStatements(ListCursorCacheStatementsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listCursorCacheStatements"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/cursorCacheStatements".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "DbManagement", + OperationName = "ListCursorCacheStatements", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ListCursorCacheStatements", + 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($"ListCursorCacheStatements failed with error: {e.Message}"); + throw; + } + } + /// /// Gets the list of containers for a specific user. This is only applicable if ALL_CONTAINERS !='Y'. /// @@ -5468,7 +6607,7 @@ public async Task ListExternalDbSystems(ListExter } /// - /// Lists the Exadata infrastructures for a specific compartment. + /// Lists the Exadata infrastructure resources in the specified compartment. /// /// /// The request object containing the details to send. Required. @@ -5525,7 +6664,7 @@ public async Task ListExternalExadat } /// - /// Lists the connectors for the specific Exadata infrastructures. + /// Lists the Exadata storage server connectors for the specified Exadata infrastructure. /// /// /// The request object containing the details to send. Required. @@ -5582,7 +6721,7 @@ public async Task ListExternalExad } /// - /// Lists all the storage servers for the exadata infrastructure or storage grid. + /// Lists the Exadata storage servers for the specified Exadata infrastructure. /// /// /// The request object containing the details to send. Required. @@ -6275,12 +7414,125 @@ public async Task ListOptim ServiceName = "DbManagement", OperationName = "ListOptimizerStatisticsCollectionOperations", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ListOptimizerStatisticsCollectionOperations", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ListOptimizerStatisticsCollectionOperations", + 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($"ListOptimizerStatisticsCollectionOperations failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets the list of preferred credentials for a given Managed Database. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use ListPreferredCredentials API. + public async Task ListPreferredCredentials(ListPreferredCredentialsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listPreferredCredentials"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/preferredCredentials".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "DbManagement", + OperationName = "ListPreferredCredentials", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/PreferredCredential/ListPreferredCredentials", + 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($"ListPreferredCredentials failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets the list of users on whose behalf the current user acts as proxy. + /// + /// 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 ListProxiedForUsers API. + public async Task ListProxiedForUsers(ListProxiedForUsersRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listProxiedForUsers"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/users/{userName}/proxiedForUsers".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "DbManagement", + OperationName = "ListProxiedForUsers", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ListProxiedForUsers", 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); + return Converter.FromHttpResponseMessage(responseMessage); } catch (OciException e) { @@ -6289,25 +7541,24 @@ public async Task ListOptim } catch (Exception e) { - logger.Error($"ListOptimizerStatisticsCollectionOperations failed with error: {e.Message}"); + logger.Error($"ListProxiedForUsers failed with error: {e.Message}"); throw; } } /// - /// Gets the list of preferred credentials for a given Managed Database. - /// + /// Gets the list of proxy users for the current user. /// /// 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 ListPreferredCredentials API. - public async Task ListPreferredCredentials(ListPreferredCredentialsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + /// Click here to see an example of how to use ListProxyUsers API. + public async Task ListProxyUsers(ListProxyUsersRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) { - logger.Trace("Called listPreferredCredentials"); - Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/preferredCredentials".Trim('/'))); + logger.Trace("Called listProxyUsers"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/users/{userName}/proxyUsers".Trim('/'))); HttpMethod method = new HttpMethod("GET"); HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); requestMessage.Headers.Add("Accept", "application/json"); @@ -6330,14 +7581,14 @@ public async Task ListPreferredCredentials(Lis ApiDetails apiDetails = new ApiDetails { ServiceName = "DbManagement", - OperationName = "ListPreferredCredentials", + OperationName = "ListProxyUsers", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/PreferredCredential/ListPreferredCredentials", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ListProxyUsers", 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); + return Converter.FromHttpResponseMessage(responseMessage); } catch (OciException e) { @@ -6346,24 +7597,24 @@ public async Task ListPreferredCredentials(Lis } catch (Exception e) { - logger.Error($"ListPreferredCredentials failed with error: {e.Message}"); + logger.Error($"ListProxyUsers failed with error: {e.Message}"); throw; } } /// - /// Gets the list of users on whose behalf the current user acts as proxy. + /// Gets the list of roles granted to a specific user. /// /// 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 ListProxiedForUsers API. - public async Task ListProxiedForUsers(ListProxiedForUsersRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + /// Click here to see an example of how to use ListRoles API. + public async Task ListRoles(ListRolesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) { - logger.Trace("Called listProxiedForUsers"); - Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/users/{userName}/proxiedForUsers".Trim('/'))); + logger.Trace("Called listRoles"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/users/{userName}/roles".Trim('/'))); HttpMethod method = new HttpMethod("GET"); HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); requestMessage.Headers.Add("Accept", "application/json"); @@ -6386,14 +7637,14 @@ public async Task ListProxiedForUsers(ListProxiedFo ApiDetails apiDetails = new ApiDetails { ServiceName = "DbManagement", - OperationName = "ListProxiedForUsers", + OperationName = "ListRoles", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ListProxiedForUsers", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ListRoles", 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); + return Converter.FromHttpResponseMessage(responseMessage); } catch (OciException e) { @@ -6402,24 +7653,25 @@ public async Task ListProxiedForUsers(ListProxiedFo } catch (Exception e) { - logger.Error($"ListProxiedForUsers failed with error: {e.Message}"); + logger.Error($"ListRoles failed with error: {e.Message}"); throw; } } /// - /// Gets the list of proxy users for the current user. + /// Lists the database jobs used for loading SQL plan baselines in the specified Managed Database. + /// /// /// The request object containing the details to send. Required. /// The retry configuration that will be used by to send this request. Optional. /// The cancellation token to cancel this operation. Optional. /// The completion option for this operation. Optional. /// A response object containing details about the completed operation - /// Click here to see an example of how to use ListProxyUsers API. - public async Task ListProxyUsers(ListProxyUsersRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + /// Click here to see an example of how to use ListSqlPlanBaselineJobs API. + public async Task ListSqlPlanBaselineJobs(ListSqlPlanBaselineJobsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) { - logger.Trace("Called listProxyUsers"); - Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/users/{userName}/proxyUsers".Trim('/'))); + logger.Trace("Called listSqlPlanBaselineJobs"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselineJobs".Trim('/'))); HttpMethod method = new HttpMethod("GET"); HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); requestMessage.Headers.Add("Accept", "application/json"); @@ -6442,14 +7694,14 @@ public async Task ListProxyUsers(ListProxyUsersRequest r ApiDetails apiDetails = new ApiDetails { ServiceName = "DbManagement", - OperationName = "ListProxyUsers", + OperationName = "ListSqlPlanBaselineJobs", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ListProxyUsers", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ListSqlPlanBaselineJobs", 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); + return Converter.FromHttpResponseMessage(responseMessage); } catch (OciException e) { @@ -6458,24 +7710,25 @@ public async Task ListProxyUsers(ListProxyUsersRequest r } catch (Exception e) { - logger.Error($"ListProxyUsers failed with error: {e.Message}"); + logger.Error($"ListSqlPlanBaselineJobs failed with error: {e.Message}"); throw; } } /// - /// Gets the list of roles granted to a specific user. + /// Lists the SQL plan baselines for the specified Managed Database. + /// /// /// The request object containing the details to send. Required. /// The retry configuration that will be used by to send this request. Optional. /// The cancellation token to cancel this operation. Optional. /// The completion option for this operation. Optional. /// A response object containing details about the completed operation - /// Click here to see an example of how to use ListRoles API. - public async Task ListRoles(ListRolesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + /// Click here to see an example of how to use ListSqlPlanBaselines API. + public async Task ListSqlPlanBaselines(ListSqlPlanBaselinesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) { - logger.Trace("Called listRoles"); - Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/users/{userName}/roles".Trim('/'))); + logger.Trace("Called listSqlPlanBaselines"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines".Trim('/'))); HttpMethod method = new HttpMethod("GET"); HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); requestMessage.Headers.Add("Accept", "application/json"); @@ -6498,14 +7751,14 @@ public async Task ListRoles(ListRolesRequest request, RetryCo ApiDetails apiDetails = new ApiDetails { ServiceName = "DbManagement", - OperationName = "ListRoles", + OperationName = "ListSqlPlanBaselines", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ListRoles", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ListSqlPlanBaselines", 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); + return Converter.FromHttpResponseMessage(responseMessage); } catch (OciException e) { @@ -6514,7 +7767,7 @@ public async Task ListRoles(ListRolesRequest request, RetryCo } catch (Exception e) { - logger.Error($"ListRoles failed with error: {e.Message}"); + logger.Error($"ListSqlPlanBaselines failed with error: {e.Message}"); throw; } } @@ -6916,6 +8169,126 @@ public async Task ListWorkRequests(ListWorkRequestsReq } } + /// + /// Loads plans from Automatic Workload Repository (AWR) snapshots. You must + /// specify the beginning and ending of the snapshot range. Optionally, you + /// can apply a filter to load only plans that meet specified criteria. By + /// default, the optimizer uses the loaded plans the next time that the database + /// executes the SQL statements. + /// + /// + /// 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 LoadSqlPlanBaselinesFromAwr API. + public async Task LoadSqlPlanBaselinesFromAwr(LoadSqlPlanBaselinesFromAwrRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called loadSqlPlanBaselinesFromAwr"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/loadSqlPlanBaselinesFromAwr".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 = "DbManagement", + OperationName = "LoadSqlPlanBaselinesFromAwr", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/LoadSqlPlanBaselinesFromAwr", + 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($"LoadSqlPlanBaselinesFromAwr failed with error: {e.Message}"); + throw; + } + } + + /// + /// Loads plans for statements directly from the shared SQL area, also called + /// the cursor cache. By applying a filter on the module name, the schema, or + /// the SQL ID you identify the SQL statement or set of SQL statements to load. + /// + /// + /// 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 LoadSqlPlanBaselinesFromCursorCache API. + public async Task LoadSqlPlanBaselinesFromCursorCache(LoadSqlPlanBaselinesFromCursorCacheRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called loadSqlPlanBaselinesFromCursorCache"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/loadSqlPlanBaselinesFromCursorCache".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 = "DbManagement", + OperationName = "LoadSqlPlanBaselinesFromCursorCache", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/LoadSqlPlanBaselinesFromCursorCache", + 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($"LoadSqlPlanBaselinesFromCursorCache failed with error: {e.Message}"); + throw; + } + } + /// /// Patches the external DB system discovery specified by `externalDbSystemDiscoveryId`. /// @@ -8188,6 +9561,120 @@ public async Task Summarize } } + /// + /// Gets the number of SQL plan baselines aggregated by their attributes. + /// + /// + /// 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 SummarizeSqlPlanBaselines API. + public async Task SummarizeSqlPlanBaselines(SummarizeSqlPlanBaselinesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called summarizeSqlPlanBaselines"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselineStats".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "DbManagement", + OperationName = "SummarizeSqlPlanBaselines", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/SummarizeSqlPlanBaselines", + 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($"SummarizeSqlPlanBaselines failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets the number of SQL plan baselines aggregated by the age of their last execution in weeks. + /// + /// + /// 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 SummarizeSqlPlanBaselinesByLastExecution API. + public async Task SummarizeSqlPlanBaselinesByLastExecution(SummarizeSqlPlanBaselinesByLastExecutionRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called summarizeSqlPlanBaselinesByLastExecution"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedDatabases/{managedDatabaseId}/sqlPlanBaselineExecutionStats".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "DbManagement", + OperationName = "SummarizeSqlPlanBaselinesByLastExecution", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/SummarizeSqlPlanBaselinesByLastExecution", + 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($"SummarizeSqlPlanBaselinesByLastExecution failed with error: {e.Message}"); + throw; + } + } + /// /// Tests the preferred credential. /// @@ -8700,7 +10187,7 @@ public async Task UpdateExternalDbSyste } /// - /// Updates the details for the the Exadata infrastructure specified by externalExadataInfrastructureId. + /// Updates the details for the Exadata infrastructure specified by externalExadataInfrastructureId. /// /// /// The request object containing the details to send. Required. @@ -8757,7 +10244,7 @@ public async Task UpdateExternalExa } /// - /// Updates the details for the storage server connector specified by exadataStorageConnectorId. + /// Updates the Exadata storage server connector specified by exadataStorageConnectorId. /// /// /// The request object containing the details to send. Required. diff --git a/Databasemanagement/DbManagementPaginators.cs b/Databasemanagement/DbManagementPaginators.cs index 5dd479e086..231aefee4a 100644 --- a/Databasemanagement/DbManagementPaginators.cs +++ b/Databasemanagement/DbManagementPaginators.cs @@ -196,6 +196,55 @@ public IEnumerable ListConsumerGroupPrivilegesRec ); } + /// + /// Creates a new enumerable which will iterate over the responses received from the ListCursorCacheStatements operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListCursorCacheStatementsResponseEnumerator(ListCursorCacheStatementsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListCursorCacheStatements(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the CursorCacheStatementSummary objects + /// contained in responses from the ListCursorCacheStatements operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListCursorCacheStatementsRecordEnumerator(ListCursorCacheStatementsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListCursorCacheStatements(request, retryConfiguration, cancellationToken), + response => response.CursorCacheStatementCollection.Items + ); + } + /// /// Creates a new enumerable which will iterate over the responses received from the ListDataAccessContainers operation. This enumerable /// will fetch more data from the server as needed. @@ -1666,6 +1715,104 @@ public IEnumerable ListRolesRecordEnumerator(ListRolesRequest reque ); } + /// + /// Creates a new enumerable which will iterate over the responses received from the ListSqlPlanBaselineJobs operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListSqlPlanBaselineJobsResponseEnumerator(ListSqlPlanBaselineJobsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListSqlPlanBaselineJobs(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the SqlPlanBaselineJobSummary objects + /// contained in responses from the ListSqlPlanBaselineJobs operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListSqlPlanBaselineJobsRecordEnumerator(ListSqlPlanBaselineJobsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListSqlPlanBaselineJobs(request, retryConfiguration, cancellationToken), + response => response.SqlPlanBaselineJobCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListSqlPlanBaselines operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListSqlPlanBaselinesResponseEnumerator(ListSqlPlanBaselinesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListSqlPlanBaselines(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the SqlPlanBaselineSummary objects + /// contained in responses from the ListSqlPlanBaselines operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListSqlPlanBaselinesRecordEnumerator(ListSqlPlanBaselinesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListSqlPlanBaselines(request, retryConfiguration, cancellationToken), + response => response.SqlPlanBaselineCollection.Items + ); + } + /// /// Creates a new enumerable which will iterate over the responses received from the ListSystemPrivileges operation. This enumerable /// will fetch more data from the server as needed. diff --git a/Databasemanagement/models/AlertSeverityEnum.cs b/Databasemanagement/models/AlertSeverityEnum.cs index f9b27b1031..749ad96ffc 100644 --- a/Databasemanagement/models/AlertSeverityEnum.cs +++ b/Databasemanagement/models/AlertSeverityEnum.cs @@ -13,7 +13,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The severity level for the alert. + /// The severity level of the alert. /// public enum AlertSeverityEnum { /// 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/Databasemanagement/models/AlertTypeEnum.cs b/Databasemanagement/models/AlertTypeEnum.cs index 7e9864895a..73eaf927b6 100644 --- a/Databasemanagement/models/AlertTypeEnum.cs +++ b/Databasemanagement/models/AlertTypeEnum.cs @@ -13,7 +13,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// Stateful alerts are automatically cleared on severity transition to normal. + /// The type of alert. Stateful alerts are automatically cleared on severity transition to normal. /// Stateless alerts are never cleared. You can change the alert by setting the examinedBy attribute. /// /// diff --git a/Databasemanagement/models/AssociatedServiceDetails.cs b/Databasemanagement/models/AssociatedServiceDetails.cs new file mode 100644 index 0000000000..3174624950 --- /dev/null +++ b/Databasemanagement/models/AssociatedServiceDetails.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details of the associated service that will be enabled or disabled for an external DB System. + /// + public class AssociatedServiceDetails + { + + /// + /// The status of the associated service. + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsEnabled is required.")] + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + /// + /// The associated service-specific inputs in JSON string format, which Database Management can identify. + /// + [JsonProperty(PropertyName = "metadata")] + public string Metadata { get; set; } + + } +} diff --git a/Databasemanagement/models/AutomaticCaptureFilter.cs b/Databasemanagement/models/AutomaticCaptureFilter.cs new file mode 100644 index 0000000000..425f682911 --- /dev/null +++ b/Databasemanagement/models/AutomaticCaptureFilter.cs @@ -0,0 +1,88 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// An automatic capture filter that enables you to capture only those SQL statements + /// that you want, and exclude noncritical statements. + /// + /// + public class AutomaticCaptureFilter + { + /// + /// + /// The name of the automatic capture filter. + ///
+ /// - AUTO_CAPTURE_SQL_TEXT: Search pattern to apply to SQL text. + /// - AUTO_CAPTURE_PARSING_SCHEMA_NAME: Parsing schema to include or exclude for SQL plan management auto capture. + /// - AUTO_CAPTURE_MODULE: Module to include or exclude for SQL plan management auto capture. + /// - AUTO_CAPTURE_ACTION: Action to include or exclude for SQL plan management automatic capture. + /// + ///
+ /// + public enum NameEnum { + /// 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 = "AUTO_CAPTURE_SQL_TEXT")] + AutoCaptureSqlText, + [EnumMember(Value = "AUTO_CAPTURE_PARSING_SCHEMA_NAME")] + AutoCaptureParsingSchemaName, + [EnumMember(Value = "AUTO_CAPTURE_MODULE")] + AutoCaptureModule, + [EnumMember(Value = "AUTO_CAPTURE_ACTION")] + AutoCaptureAction + }; + + /// + /// The name of the automatic capture filter. + ///
+ /// - AUTO_CAPTURE_SQL_TEXT: Search pattern to apply to SQL text. + /// - AUTO_CAPTURE_PARSING_SCHEMA_NAME: Parsing schema to include or exclude for SQL plan management auto capture. + /// - AUTO_CAPTURE_MODULE: Module to include or exclude for SQL plan management auto capture. + /// - AUTO_CAPTURE_ACTION: Action to include or exclude for SQL plan management automatic capture. + /// + ///
+ [JsonProperty(PropertyName = "name")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Name { get; set; } + + /// + /// A list of filter values to include. + /// + [JsonProperty(PropertyName = "valuesToInclude")] + public System.Collections.Generic.List ValuesToInclude { get; set; } + + /// + /// A list of filter values to exclude. + /// + [JsonProperty(PropertyName = "valuesToExclude")] + public System.Collections.Generic.List ValuesToExclude { get; set; } + + /// + /// The time the filter value was last updated. + /// + [JsonProperty(PropertyName = "timeLastModified")] + public System.Nullable TimeLastModified { get; set; } + + /// + /// The database user who last updated the filter value. + /// + [JsonProperty(PropertyName = "modifiedBy")] + public string ModifiedBy { get; set; } + + } +} diff --git a/Databasemanagement/models/AutomaticCaptureFilterDetails.cs b/Databasemanagement/models/AutomaticCaptureFilterDetails.cs new file mode 100644 index 0000000000..cc977f8c5d --- /dev/null +++ b/Databasemanagement/models/AutomaticCaptureFilterDetails.cs @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details of a capture filter used to include or exclude SQL statements + /// in the initial automatic plan capture. + /// + /// + public class AutomaticCaptureFilterDetails + { + /// + /// + /// The name of the automatic capture filter. + ///
+ /// - AUTO_CAPTURE_SQL_TEXT: Search pattern to apply to SQL text. + /// - AUTO_CAPTURE_PARSING_SCHEMA_NAME: Parsing schema to include or exclude for SQL plan management auto capture. + /// - AUTO_CAPTURE_MODULE: Module to include or exclude for SQL plan management auto capture. + /// - AUTO_CAPTURE_ACTION: Action to include or exclude for SQL plan management automatic capture. + /// + ///
+ /// + public enum NameEnum { + [EnumMember(Value = "AUTO_CAPTURE_SQL_TEXT")] + AutoCaptureSqlText, + [EnumMember(Value = "AUTO_CAPTURE_PARSING_SCHEMA_NAME")] + AutoCaptureParsingSchemaName, + [EnumMember(Value = "AUTO_CAPTURE_MODULE")] + AutoCaptureModule, + [EnumMember(Value = "AUTO_CAPTURE_ACTION")] + AutoCaptureAction + }; + + /// + /// The name of the automatic capture filter. + ///
+ /// - AUTO_CAPTURE_SQL_TEXT: Search pattern to apply to SQL text. + /// - AUTO_CAPTURE_PARSING_SCHEMA_NAME: Parsing schema to include or exclude for SQL plan management auto capture. + /// - AUTO_CAPTURE_MODULE: Module to include or exclude for SQL plan management auto capture. + /// - AUTO_CAPTURE_ACTION: Action to include or exclude for SQL plan management automatic capture. + /// + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable Name { get; set; } + + /// + /// A list of filter values to include. + /// + [JsonProperty(PropertyName = "valuesToInclude")] + public System.Collections.Generic.List ValuesToInclude { get; set; } + + /// + /// A list of filter values to exclude. + /// + [JsonProperty(PropertyName = "valuesToExclude")] + public System.Collections.Generic.List ValuesToExclude { get; set; } + + } +} diff --git a/Databasemanagement/models/ChangeExternalExadataInfrastructureCompartmentDetails.cs b/Databasemanagement/models/ChangeExternalExadataInfrastructureCompartmentDetails.cs index f448db88b7..35af797ae2 100644 --- a/Databasemanagement/models/ChangeExternalExadataInfrastructureCompartmentDetails.cs +++ b/Databasemanagement/models/ChangeExternalExadataInfrastructureCompartmentDetails.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The details required to change the compartment of an Exadata infrastructure. + /// The details required to change the compartment of the Exadata infrastructure. /// public class ChangeExternalExadataInfrastructureCompartmentDetails { diff --git a/Databasemanagement/models/ChangePlanRetentionDetails.cs b/Databasemanagement/models/ChangePlanRetentionDetails.cs new file mode 100644 index 0000000000..e48a314b83 --- /dev/null +++ b/Databasemanagement/models/ChangePlanRetentionDetails.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to change the plan retention period. + /// + public class ChangePlanRetentionDetails + { + + /// + /// The retention period in weeks. It can range between 5 and 523 weeks. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "RetentionWeeks is required.")] + [JsonProperty(PropertyName = "retentionWeeks")] + public System.Nullable RetentionWeeks { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/ChangeSpaceBudgetDetails.cs b/Databasemanagement/models/ChangeSpaceBudgetDetails.cs new file mode 100644 index 0000000000..aaf4ea2669 --- /dev/null +++ b/Databasemanagement/models/ChangeSpaceBudgetDetails.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to change the disk space limit for the SQL Management Base. + /// + public class ChangeSpaceBudgetDetails + { + + /// + /// The maximum percent of `SYSAUX` space that the SQL Management Base can use. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "SpaceBudgetPercent is required.")] + [JsonProperty(PropertyName = "spaceBudgetPercent")] + public System.Double SpaceBudgetPercent { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/ChangeSqlPlanBaselinesAttributesDetails.cs b/Databasemanagement/models/ChangeSqlPlanBaselinesAttributesDetails.cs new file mode 100644 index 0000000000..838b1e56a3 --- /dev/null +++ b/Databasemanagement/models/ChangeSqlPlanBaselinesAttributesDetails.cs @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to change SQL plan baseline attributes. + /// + public class ChangeSqlPlanBaselinesAttributesDetails + { + + /// + /// The SQL statement handle. It identifies plans associated with a SQL statement + /// for attribute changes. If `null` then `planName` must be specified. + /// + /// + [JsonProperty(PropertyName = "sqlHandle")] + public string SqlHandle { get; set; } + + /// + /// Then plan name. It identifies a specific plan. If `null' then all plans associated + /// with a SQL statement identified by `sqlHandle' are considered for attribute changes. + /// + /// + [JsonProperty(PropertyName = "planName")] + public string PlanName { get; set; } + + /// + /// Indicates whether the plan is available for use by the optimizer. + /// + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + /// + /// Indicates whether the plan baseline is fixed. A fixed plan takes precedence over a non-fixed plan. + /// + [JsonProperty(PropertyName = "isFixed")] + public System.Nullable IsFixed { get; set; } + + /// + /// Indicates whether the plan is purged if it is not used for a time period. + /// + [JsonProperty(PropertyName = "isAutoPurged")] + public System.Nullable IsAutoPurged { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/ConfigureAutomaticCaptureFiltersDetails.cs b/Databasemanagement/models/ConfigureAutomaticCaptureFiltersDetails.cs new file mode 100644 index 0000000000..c2f964f75c --- /dev/null +++ b/Databasemanagement/models/ConfigureAutomaticCaptureFiltersDetails.cs @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to configure automatic capture filters. + /// + public class ConfigureAutomaticCaptureFiltersDetails + { + + /// + /// The filters used in automatic initial plan capture. + /// + /// + /// Required + /// + [Required(ErrorMessage = "AutoCaptureFilters is required.")] + [JsonProperty(PropertyName = "autoCaptureFilters")] + public System.Collections.Generic.List AutoCaptureFilters { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/ConfigureAutomaticSpmEvolveAdvisorTaskDetails.cs b/Databasemanagement/models/ConfigureAutomaticSpmEvolveAdvisorTaskDetails.cs new file mode 100644 index 0000000000..4113b77846 --- /dev/null +++ b/Databasemanagement/models/ConfigureAutomaticSpmEvolveAdvisorTaskDetails.cs @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The configuration details of the Automatic SPM Evolve Advisor task. + /// + public class ConfigureAutomaticSpmEvolveAdvisorTaskDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "TaskParameters is required.")] + [JsonProperty(PropertyName = "taskParameters")] + public SpmEvolveTaskParameters TaskParameters { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/CreateExternalDbSystemDetails.cs b/Databasemanagement/models/CreateExternalDbSystemDetails.cs index 0e2d6b9177..ec569ab500 100644 --- a/Databasemanagement/models/CreateExternalDbSystemDetails.cs +++ b/Databasemanagement/models/CreateExternalDbSystemDetails.cs @@ -50,5 +50,8 @@ public class CreateExternalDbSystemDetails [JsonProperty(PropertyName = "databaseManagementConfig")] public ExternalDbSystemDatabaseManagementConfigDetails DatabaseManagementConfig { get; set; } + [JsonProperty(PropertyName = "stackMonitoringConfig")] + public AssociatedServiceDetails StackMonitoringConfig { get; set; } + } } diff --git a/Databasemanagement/models/CreateExternalExadataInfrastructureDetails.cs b/Databasemanagement/models/CreateExternalExadataInfrastructureDetails.cs index b062441326..8b448be418 100644 --- a/Databasemanagement/models/CreateExternalExadataInfrastructureDetails.cs +++ b/Databasemanagement/models/CreateExternalExadataInfrastructureDetails.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The details of creating external Exadata infrastructure. + /// The details required to create the external Exadata infrastructure. /// public class CreateExternalExadataInfrastructureDetails { @@ -48,7 +48,7 @@ public enum LicenseModelEnum { public System.Nullable LicenseModel { get; set; } /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of compartment. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. /// /// /// Required @@ -68,7 +68,7 @@ public enum LicenseModelEnum { public string DisplayName { get; set; } /// - /// The list of all the rac database system OCIDs. + /// The list of DB systems in the Exadata infrastructure. /// /// /// Required @@ -78,7 +78,7 @@ public enum LicenseModelEnum { public System.Collections.Generic.List DbSystemIds { get; set; } /// - /// The list of all the storage server names to be included for monitoering purpose. If not specified, all the storage servers associated with the database systems are included. + /// The list of all the Exadata storage server names to be included for monitoring purposes. If not specified, all the Exadata storage servers associated with the DB systems are included. /// [JsonProperty(PropertyName = "storageServerNames")] public System.Collections.Generic.List StorageServerNames { get; set; } diff --git a/Databasemanagement/models/CreateExternalExadataStorageConnectorDetails.cs b/Databasemanagement/models/CreateExternalExadataStorageConnectorDetails.cs index 2d0a205818..3cbc7f9b21 100644 --- a/Databasemanagement/models/CreateExternalExadataStorageConnectorDetails.cs +++ b/Databasemanagement/models/CreateExternalExadataStorageConnectorDetails.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The details of creating the connector to the Exadata storage server. + /// The details required to create the connector to the Exadata storage server. /// public class CreateExternalExadataStorageConnectorDetails { @@ -42,7 +42,7 @@ public class CreateExternalExadataStorageConnectorDetails public string AgentId { get; set; } /// - /// The connector name if OCI connector is created. + /// The name of the Exadata storage server connector. /// /// /// Required @@ -52,7 +52,7 @@ public class CreateExternalExadataStorageConnectorDetails public string ConnectorName { get; set; } /// - /// The unique connection string of the connection. For example, \"https://slcm21celadm02.us.oracle.com:443/MS/RESTService/\". + /// The unique string of the connection. For example, \"https:///MS/RESTService/\". /// /// /// Required diff --git a/Databasemanagement/models/CreateSqlJobDetails.cs b/Databasemanagement/models/CreateSqlJobDetails.cs index 10064321a2..9d06970eba 100644 --- a/Databasemanagement/models/CreateSqlJobDetails.cs +++ b/Databasemanagement/models/CreateSqlJobDetails.cs @@ -27,6 +27,12 @@ public class CreateSqlJobDetails : CreateJobDetails [JsonProperty(PropertyName = "sqlText")] public string SqlText { get; set; } + [JsonProperty(PropertyName = "inBinds")] + public JobInBindsDetails InBinds { get; set; } + + [JsonProperty(PropertyName = "outBinds")] + public JobOutBindsDetails OutBinds { get; set; } + [JsonProperty(PropertyName = "sqlType")] [JsonConverter(typeof(StringEnumConverter))] public System.Nullable SqlType { get; set; } diff --git a/Databasemanagement/models/CursorCacheStatementCollection.cs b/Databasemanagement/models/CursorCacheStatementCollection.cs new file mode 100644 index 0000000000..2f7a338f4d --- /dev/null +++ b/Databasemanagement/models/CursorCacheStatementCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The list of SQL statements in the cursor cache. + /// + public class CursorCacheStatementCollection + { + + /// + /// A list of SQL statements in the cursor cache. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Databasemanagement/models/CursorCacheStatementSummary.cs b/Databasemanagement/models/CursorCacheStatementSummary.cs new file mode 100644 index 0000000000..991fa7c3a5 --- /dev/null +++ b/Databasemanagement/models/CursorCacheStatementSummary.cs @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The summary of a SQL statement in the cursor cache. + /// + public class CursorCacheStatementSummary + { + + /// + /// The SQL statement identifier. Identifies a SQL statement in the cursor cache. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlId is required.")] + [JsonProperty(PropertyName = "sqlId")] + public string SqlId { get; set; } + + /// + /// The name of the parsing schema. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Schema is required.")] + [JsonProperty(PropertyName = "schema")] + public string Schema { get; set; } + + /// + /// The first thousand characters of the SQL text. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlText is required.")] + [JsonProperty(PropertyName = "sqlText")] + public string SqlText { get; set; } + + } +} diff --git a/Databasemanagement/models/DatabasePlanDirective.cs b/Databasemanagement/models/DatabasePlanDirective.cs index 8bd1c8c519..145916f9c8 100644 --- a/Databasemanagement/models/DatabasePlanDirective.cs +++ b/Databasemanagement/models/DatabasePlanDirective.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// Manage resource allocations among databases. Besides name, need to have at least one other property. + /// Manages resource allocation among databases. Besides the name, at least one other property must be available. /// /// public class DatabasePlanDirective @@ -33,7 +33,7 @@ public class DatabasePlanDirective public string Name { get; set; } /// - /// The relative priority a database in the database plan. A higher share value implies + /// The relative priority of a database in the database plan. A higher share value implies /// higher priority and more access to the I/O resources. /// Use either share or (level, allocation). All plan directives in a database plan /// should use the same setting. @@ -180,14 +180,15 @@ public class DatabasePlanDirective public string AsmCluster { get; set; } /// - /// Enables you to create a profile, or template, to ease management and configuration of resource plans + /// Enables you to create a profile or template, to ease management and configuration of resource plans /// in environments with many databases. - /// type=database: Specifies a directive that applies to a specific database. + ///
+ /// - type=database: Specifies a directive that applies to a specific database. /// If type in not specified, then the directive defaults to the database type. - /// type=profile: Specifies a directive that applies to a profile rather than a specific database. + /// - type=profile: Specifies a directive that applies to a profile rather than a specific database. + ///
/// To associate a database with an IORM profile, you must set the database initialization - /// parameter db_performance_profile to the value of the profile name. Databases that map to a profile i - /// nherit the settings specified in the profile. + /// parameter db_performance_profile to the value of the profile name. Databases that map to a profile inherit the settings specified in the profile. /// ///
[JsonProperty(PropertyName = "type")] @@ -195,7 +196,7 @@ public class DatabasePlanDirective public System.Nullable Type { get; set; } /// - /// Enables you specify different plan directives based on the Oracle Data Guard database role. + /// Enables you to specify different plan directives based on the Oracle Data Guard database role. /// /// [JsonProperty(PropertyName = "role")] diff --git a/Databasemanagement/models/DatabasePlanRoleEnum.cs b/Databasemanagement/models/DatabasePlanRoleEnum.cs index 9c2ef82adf..378bf791a9 100644 --- a/Databasemanagement/models/DatabasePlanRoleEnum.cs +++ b/Databasemanagement/models/DatabasePlanRoleEnum.cs @@ -13,8 +13,8 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The role of database in DataGuard environment. - /// The value OTHER is to temporarily handle the case when exadata side adds new value, should not be used as input + /// The role of the database in DataGuard environment. + /// The value OTHER is to temporarily handle the case when Exadata side adds new value, should not be used as input /// when to make change to IORM plan. /// /// diff --git a/Databasemanagement/models/DatabasePlanTypeEnum.cs b/Databasemanagement/models/DatabasePlanTypeEnum.cs index 800b3e22bc..04d599afa6 100644 --- a/Databasemanagement/models/DatabasePlanTypeEnum.cs +++ b/Databasemanagement/models/DatabasePlanTypeEnum.cs @@ -13,8 +13,8 @@ namespace Oci.DatabasemanagementService.Models { /// - /// Type of the database plan directive. - /// The value OTHER is to temporarily handle the case when exadata side adds new value, should not be used as input + /// The type of the database plan directive. + /// The value OTHER is to temporarily handle the case when Exadata side adds new value, should not be used as input /// when to make change to IORM plan. /// /// diff --git a/Databasemanagement/models/DbmResource.cs b/Databasemanagement/models/DbmResource.cs index 165ef3e3a9..97f2274f5f 100644 --- a/Databasemanagement/models/DbmResource.cs +++ b/Databasemanagement/models/DbmResource.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The base exadata resource. + /// The base Exadata resource. /// [JsonConverter(typeof(DbmResourceModelConverter))] public class DbmResource @@ -33,7 +33,7 @@ public class DbmResource public string Id { get; set; } /// - /// The name of the resource. English letters, numbers, \"-\", \"_\" and \".\" only. + /// The name of the Exadata resource. English letters, numbers, \"-\", \"_\" and \".\" only. /// /// /// Required @@ -43,19 +43,19 @@ public class DbmResource public string DisplayName { get; set; } /// - /// The version of the resource. + /// The version of the Exadata resource. /// [JsonProperty(PropertyName = "version")] public string Version { get; set; } /// - /// The internal ID. + /// The internal ID of the Exadata resource. /// [JsonProperty(PropertyName = "internalId")] public string InternalId { get; set; } /// - /// The status of the entity. + /// The status of the Exadata resource. /// [JsonProperty(PropertyName = "status")] public string Status { get; set; } @@ -89,19 +89,19 @@ public enum LifecycleStateEnum { public System.Nullable LifecycleState { get; set; } /// - /// The timestamp of the creation. + /// The timestamp of the creation of the Exadata resource. /// [JsonProperty(PropertyName = "timeCreated")] public System.Nullable TimeCreated { get; set; } /// - /// The timestamp of the last update. + /// The timestamp of the last update of the Exadata resource. /// [JsonProperty(PropertyName = "timeUpdated")] public System.Nullable TimeUpdated { get; set; } /// - /// The details of the lifecycle state. + /// The details of the lifecycle state of the Exadata resource. /// [JsonProperty(PropertyName = "lifecycleDetails")] public string LifecycleDetails { get; set; } @@ -114,7 +114,7 @@ public enum LifecycleStateEnum { public System.Collections.Generic.Dictionary AdditionalDetails { get; set; } /// /// - /// The type of resource. + /// The type of Exadata resource. /// /// public enum ResourceTypeEnum { diff --git a/Databasemanagement/models/DisableAutomaticInitialPlanCaptureDetails.cs b/Databasemanagement/models/DisableAutomaticInitialPlanCaptureDetails.cs new file mode 100644 index 0000000000..35c3b9746c --- /dev/null +++ b/Databasemanagement/models/DisableAutomaticInitialPlanCaptureDetails.cs @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to disable automatic initial plan capture. + /// + public class DisableAutomaticInitialPlanCaptureDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/DisableAutomaticSpmEvolveAdvisorTaskDetails.cs b/Databasemanagement/models/DisableAutomaticSpmEvolveAdvisorTaskDetails.cs new file mode 100644 index 0000000000..e553ec0d68 --- /dev/null +++ b/Databasemanagement/models/DisableAutomaticSpmEvolveAdvisorTaskDetails.cs @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to disable Automatic SPM Evolve Advisor task. + /// + public class DisableAutomaticSpmEvolveAdvisorTaskDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs b/Databasemanagement/models/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs new file mode 100644 index 0000000000..2908cace8f --- /dev/null +++ b/Databasemanagement/models/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to disable high frequency Automatic SPM Evolve Advisor task. + /// + public class DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/DisableSqlPlanBaselinesUsageDetails.cs b/Databasemanagement/models/DisableSqlPlanBaselinesUsageDetails.cs new file mode 100644 index 0000000000..0a2a08e515 --- /dev/null +++ b/Databasemanagement/models/DisableSqlPlanBaselinesUsageDetails.cs @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to disable SQL plan baseline usage. + /// + public class DisableSqlPlanBaselinesUsageDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/DiscoverExternalExadataInfrastructureDetails.cs b/Databasemanagement/models/DiscoverExternalExadataInfrastructureDetails.cs index b32adaac1a..af16a25374 100644 --- a/Databasemanagement/models/DiscoverExternalExadataInfrastructureDetails.cs +++ b/Databasemanagement/models/DiscoverExternalExadataInfrastructureDetails.cs @@ -16,13 +16,13 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The connection information and the discovery options for the Exadata discovery. + /// The connection details and the discovery options for the Exadata discovery. /// public class DiscoverExternalExadataInfrastructureDetails { /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of compartment. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. /// /// /// Required @@ -32,7 +32,7 @@ public class DiscoverExternalExadataInfrastructureDetails public string CompartmentId { get; set; } /// /// - /// The type of the discovery. + /// The type of discovery. /// /// public enum DiscoveryTypeEnum { @@ -43,7 +43,7 @@ public enum DiscoveryTypeEnum { }; /// - /// The type of the discovery. + /// The type of discovery. /// /// /// Required @@ -54,7 +54,7 @@ public enum DiscoveryTypeEnum { public System.Nullable DiscoveryType { get; set; } /// - /// The list of the database system identifiers. + /// The list of the DB system identifiers. /// /// /// Required @@ -64,7 +64,7 @@ public enum DiscoveryTypeEnum { public System.Collections.Generic.List DbSystemIds { get; set; } /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of Exadata infrastructure system. For rediscover only. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. This is applicable for rediscovery only. /// [JsonProperty(PropertyName = "exadataInfrastructureId")] public string ExadataInfrastructureId { get; set; } diff --git a/Databasemanagement/models/DropSqlPlanBaselinesDetails.cs b/Databasemanagement/models/DropSqlPlanBaselinesDetails.cs new file mode 100644 index 0000000000..d7e515d0e1 --- /dev/null +++ b/Databasemanagement/models/DropSqlPlanBaselinesDetails.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to drop SQL plan baselines. + /// + public class DropSqlPlanBaselinesDetails + { + + /// + /// The SQL statement handle. It identifies plans associated with a SQL statement + /// that are to be dropped. If `null` then `planName` must be specified. + /// + /// + [JsonProperty(PropertyName = "sqlHandle")] + public string SqlHandle { get; set; } + + /// + /// The plan name. It identifies a specific plan. If `null' then all plans + /// associated with the SQL statement identified by `sqlHandle' are dropped. + /// + /// + [JsonProperty(PropertyName = "planName")] + public string PlanName { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/EnableAutomaticInitialPlanCaptureDetails.cs b/Databasemanagement/models/EnableAutomaticInitialPlanCaptureDetails.cs new file mode 100644 index 0000000000..41dd24e52c --- /dev/null +++ b/Databasemanagement/models/EnableAutomaticInitialPlanCaptureDetails.cs @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to enable automatic initial plan capture. + /// + public class EnableAutomaticInitialPlanCaptureDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/EnableAutomaticSpmEvolveAdvisorTaskDetails.cs b/Databasemanagement/models/EnableAutomaticSpmEvolveAdvisorTaskDetails.cs new file mode 100644 index 0000000000..4272d9904b --- /dev/null +++ b/Databasemanagement/models/EnableAutomaticSpmEvolveAdvisorTaskDetails.cs @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to enable Automatic SPM Evolve Advisor task. + /// + public class EnableAutomaticSpmEvolveAdvisorTaskDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/EnableExternalDbSystemStackMonitoringDetails.cs b/Databasemanagement/models/EnableExternalDbSystemStackMonitoringDetails.cs new file mode 100644 index 0000000000..c737bcf03f --- /dev/null +++ b/Databasemanagement/models/EnableExternalDbSystemStackMonitoringDetails.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to enable Stack Monitoring for an external DB system. + /// + public class EnableExternalDbSystemStackMonitoringDetails + { + + /// + /// The status of the associated service. + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsEnabled is required.")] + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + /// + /// The associated service-specific inputs in JSON string format, which Database Management can identify. + /// + [JsonProperty(PropertyName = "metadata")] + public string Metadata { get; set; } + + } +} diff --git a/Databasemanagement/models/EnableExternalExadataInfrastructureManagementDetails.cs b/Databasemanagement/models/EnableExternalExadataInfrastructureManagementDetails.cs index 25d9e80e00..2d50bc6ebf 100644 --- a/Databasemanagement/models/EnableExternalExadataInfrastructureManagementDetails.cs +++ b/Databasemanagement/models/EnableExternalExadataInfrastructureManagementDetails.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// Details to enable Management on an Exadata infrastructure. + /// The details required to enable Database Management on the Exadata infrastructure. /// public class EnableExternalExadataInfrastructureManagementDetails { diff --git a/Databasemanagement/models/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs b/Databasemanagement/models/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs new file mode 100644 index 0000000000..a6383a5174 --- /dev/null +++ b/Databasemanagement/models/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails.cs @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to enable high frequency Automatic SPM Evolve Advisor task. + /// + public class EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/EnableSqlPlanBaselinesUsageDetails.cs b/Databasemanagement/models/EnableSqlPlanBaselinesUsageDetails.cs new file mode 100644 index 0000000000..17976de8b5 --- /dev/null +++ b/Databasemanagement/models/EnableSqlPlanBaselinesUsageDetails.cs @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to enable SQL plan baseline usage. + /// + public class EnableSqlPlanBaselinesUsageDetails + { + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/EntityDiscovered.cs b/Databasemanagement/models/EntityDiscovered.cs index 09c1e0608c..eb64037812 100644 --- a/Databasemanagement/models/EntityDiscovered.cs +++ b/Databasemanagement/models/EntityDiscovered.cs @@ -16,20 +16,20 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The base discover entity. + /// The details of the base entity discovery. /// [JsonConverter(typeof(EntityDiscoveredModelConverter))] public class EntityDiscovered { /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Null for new discover case. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the entity discovered. /// [JsonProperty(PropertyName = "id")] public string Id { get; set; } /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the agent could be used for monitoring. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the agent used for monitoring. /// [JsonProperty(PropertyName = "agentId")] public string AgentId { get; set; } @@ -57,7 +57,7 @@ public class EntityDiscovered public string Version { get; set; } /// - /// The internal identifier. + /// The internal identifier of the entity. /// [JsonProperty(PropertyName = "internalId")] public string InternalId { get; set; } @@ -69,7 +69,7 @@ public class EntityDiscovered public string Status { get; set; } /// /// - /// The status of the entity discover. + /// The status of the entity discovery. /// /// public enum DiscoverStatusEnum { @@ -84,20 +84,20 @@ public enum DiscoverStatusEnum { }; /// - /// The status of the entity discover. + /// The status of the entity discovery. /// [JsonProperty(PropertyName = "discoverStatus")] [JsonConverter(typeof(StringEnumConverter))] public System.Nullable DiscoverStatus { get; set; } /// - /// The error code of the discovery on the resource + /// The error code of the discovery. /// [JsonProperty(PropertyName = "discoverErrorCode")] public string DiscoverErrorCode { get; set; } /// - /// The error message of the discovery on the resource + /// The error message of the discovery. /// [JsonProperty(PropertyName = "discoverErrorMsg")] public string DiscoverErrorMsg { get; set; } diff --git a/Databasemanagement/models/ExternalDatabaseSystemDiscoverySummary.cs b/Databasemanagement/models/ExternalDatabaseSystemDiscoverySummary.cs index 135730738b..68244cef4f 100644 --- a/Databasemanagement/models/ExternalDatabaseSystemDiscoverySummary.cs +++ b/Databasemanagement/models/ExternalDatabaseSystemDiscoverySummary.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The summary of the database system. + /// The summary of the DB system discovery. /// public class ExternalDatabaseSystemDiscoverySummary : EntityDiscovered { @@ -28,7 +28,7 @@ public class ExternalDatabaseSystemDiscoverySummary : EntityDiscovered public string OracleHome { get; set; } /// - /// The display name of ASM connector. + /// The display name of the ASM connector. /// [JsonProperty(PropertyName = "asmConnectorName")] public string AsmConnectorName { get; set; } @@ -57,7 +57,7 @@ public enum LicenseModelEnum { public System.Nullable LicenseModel { get; set; } /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of compartment. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. /// [JsonProperty(PropertyName = "compartmentId")] public string CompartmentId { get; set; } diff --git a/Databasemanagement/models/ExternalDbSystem.cs b/Databasemanagement/models/ExternalDbSystem.cs index e0a3c31b4e..14582d5c72 100644 --- a/Databasemanagement/models/ExternalDbSystem.cs +++ b/Databasemanagement/models/ExternalDbSystem.cs @@ -79,6 +79,9 @@ public class ExternalDbSystem [JsonProperty(PropertyName = "databaseManagementConfig")] public ExternalDbSystemDatabaseManagementConfigDetails DatabaseManagementConfig { get; set; } + + [JsonProperty(PropertyName = "stackMonitoringConfig")] + public ExternalDbSystemStackMonitoringConfigDetails StackMonitoringConfig { get; set; } /// /// /// The current lifecycle state of the external DB system resource. diff --git a/Databasemanagement/models/ExternalDbSystemStackMonitoringConfigDetails.cs b/Databasemanagement/models/ExternalDbSystemStackMonitoringConfigDetails.cs new file mode 100644 index 0000000000..81f5c6c3cc --- /dev/null +++ b/Databasemanagement/models/ExternalDbSystemStackMonitoringConfigDetails.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The configuration details of Stack Monitoring for an external DB system. + /// + public class ExternalDbSystemStackMonitoringConfigDetails + { + + /// + /// The status of the associated service. + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsEnabled is required.")] + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + /// + /// The associated service-specific inputs in JSON string format, which Database Management can identify. + /// + [JsonProperty(PropertyName = "metadata")] + public string Metadata { get; set; } + + } +} diff --git a/Databasemanagement/models/ExternalExadataDatabaseSystemSummary.cs b/Databasemanagement/models/ExternalExadataDatabaseSystemSummary.cs index c2c40ed317..fb63bb6d81 100644 --- a/Databasemanagement/models/ExternalExadataDatabaseSystemSummary.cs +++ b/Databasemanagement/models/ExternalExadataDatabaseSystemSummary.cs @@ -16,13 +16,13 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The database system of the Exadata infrastructure. + /// The DB systems of the Exadata infrastructure. /// public class ExternalExadataDatabaseSystemSummary : DbmResource { /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of compartment. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. /// [JsonProperty(PropertyName = "compartmentId")] public string CompartmentId { get; set; } diff --git a/Databasemanagement/models/ExternalExadataInfrastructure.cs b/Databasemanagement/models/ExternalExadataInfrastructure.cs index 395f276cae..86060c3e4a 100644 --- a/Databasemanagement/models/ExternalExadataInfrastructure.cs +++ b/Databasemanagement/models/ExternalExadataInfrastructure.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The Exadata infrastructure details. + /// The details of the Exadata infrastructure. /// public class ExternalExadataInfrastructure : DbmResource { @@ -47,7 +47,7 @@ public enum RackSizeEnum { public System.Nullable RackSize { get; set; } /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of compartment. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. /// [JsonProperty(PropertyName = "compartmentId")] public string CompartmentId { get; set; } @@ -79,13 +79,13 @@ public enum LicenseModelEnum { public ExternalExadataStorageGridSummary StorageGrid { get; set; } /// - /// A list of database systems. + /// A list of DB systems. /// [JsonProperty(PropertyName = "databaseSystems")] public System.Collections.Generic.List DatabaseSystems { get; set; } /// - /// The list of [OCIDs] (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartments + /// The list of [OCIDs] (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartments. /// [JsonProperty(PropertyName = "databaseCompartments")] public System.Collections.Generic.List DatabaseCompartments { get; set; } diff --git a/Databasemanagement/models/ExternalExadataInfrastructureCollection.cs b/Databasemanagement/models/ExternalExadataInfrastructureCollection.cs index b1c7da1ca1..f2c3cd5470 100644 --- a/Databasemanagement/models/ExternalExadataInfrastructureCollection.cs +++ b/Databasemanagement/models/ExternalExadataInfrastructureCollection.cs @@ -16,13 +16,13 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The Exadata infrastructure list. + /// A list of the Exadata infrastructure resources. /// public class ExternalExadataInfrastructureCollection { /// - /// A list of Exadata infrastructure. + /// A list of Exadata infrastructures. /// /// /// Required diff --git a/Databasemanagement/models/ExternalExadataInfrastructureDiscovery.cs b/Databasemanagement/models/ExternalExadataInfrastructureDiscovery.cs index def990f10f..c603cc671f 100644 --- a/Databasemanagement/models/ExternalExadataInfrastructureDiscovery.cs +++ b/Databasemanagement/models/ExternalExadataInfrastructureDiscovery.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The discovery result of the Exadata infrastructure. + /// The result of the Exadata infrastructure discovery. /// public class ExternalExadataInfrastructureDiscovery : EntityDiscovered { @@ -55,7 +55,7 @@ public enum LicenseModelEnum { public System.Nullable LicenseModel { get; set; } /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of compartment. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. /// [JsonProperty(PropertyName = "compartmentId")] public string CompartmentId { get; set; } @@ -88,13 +88,13 @@ public enum RackSizeEnum { public System.Nullable RackSize { get; set; } /// - /// The Oracle home path of the infrastructure. + /// The Oracle home path of the Exadata infrastructure. /// [JsonProperty(PropertyName = "gridHomePath")] public string GridHomePath { get; set; } /// - /// The list of all the rac database systems. + /// The list of DB systems in the Exadata infrastructure. /// [JsonProperty(PropertyName = "dbSystems")] public System.Collections.Generic.List DbSystems { get; set; } @@ -103,7 +103,7 @@ public enum RackSizeEnum { public ExternalStorageGridDiscoverySummary StorageGrid { get; set; } /// - /// The list of all the storage servers. + /// The list of storage servers in the Exadata infrastructure. /// [JsonProperty(PropertyName = "storageServers")] public System.Collections.Generic.List StorageServers { get; set; } diff --git a/Databasemanagement/models/ExternalExadataInfrastructureDiscoverySummary.cs b/Databasemanagement/models/ExternalExadataInfrastructureDiscoverySummary.cs index cb33980140..395cca7d0b 100644 --- a/Databasemanagement/models/ExternalExadataInfrastructureDiscoverySummary.cs +++ b/Databasemanagement/models/ExternalExadataInfrastructureDiscoverySummary.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The discovery result for the Exadata system infrastructure. + /// The summary of the Exadata system infrastructure discovery. /// public class ExternalExadataInfrastructureDiscoverySummary : EntityDiscovered { diff --git a/Databasemanagement/models/ExternalExadataInfrastructureSummary.cs b/Databasemanagement/models/ExternalExadataInfrastructureSummary.cs index 5f148ce5ca..e8721b7c9e 100644 --- a/Databasemanagement/models/ExternalExadataInfrastructureSummary.cs +++ b/Databasemanagement/models/ExternalExadataInfrastructureSummary.cs @@ -47,7 +47,7 @@ public enum RackSizeEnum { public System.Nullable RackSize { get; set; } /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of compartment. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. /// /// /// Required diff --git a/Databasemanagement/models/ExternalExadataStorageConnector.cs b/Databasemanagement/models/ExternalExadataStorageConnector.cs index 48a72fe61b..1412025c49 100644 --- a/Databasemanagement/models/ExternalExadataStorageConnector.cs +++ b/Databasemanagement/models/ExternalExadataStorageConnector.cs @@ -16,13 +16,13 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The connector of the storage server. + /// The details of the Exadata storage server connector. /// public class ExternalExadataStorageConnector : DbmResource { /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of Exadata infrastructure system. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. /// [JsonProperty(PropertyName = "exadataInfrastructureId")] public string ExadataInfrastructureId { get; set; } @@ -34,7 +34,7 @@ public class ExternalExadataStorageConnector : DbmResource public string AgentId { get; set; } /// - /// The unique connection string of the connection. For example, \"https://slcm21celadm02.us.oracle.com:443/MS/RESTService/\". + /// The unique string of the connection. For example, \"https:///MS/RESTService/\". /// [JsonProperty(PropertyName = "connectionUri")] public string ConnectionUri { get; set; } diff --git a/Databasemanagement/models/ExternalExadataStorageConnectorCollection.cs b/Databasemanagement/models/ExternalExadataStorageConnectorCollection.cs index 9d35cb908a..37d4702c9a 100644 --- a/Databasemanagement/models/ExternalExadataStorageConnectorCollection.cs +++ b/Databasemanagement/models/ExternalExadataStorageConnectorCollection.cs @@ -22,7 +22,7 @@ public class ExternalExadataStorageConnectorCollection { /// - /// A list of Exadata storage server connector. + /// A list of Exadata storage server connectors. /// /// /// Required diff --git a/Databasemanagement/models/ExternalExadataStorageConnectorStatus.cs b/Databasemanagement/models/ExternalExadataStorageConnectorStatus.cs index 7ab0d4b286..fe8e6cc7b7 100644 --- a/Databasemanagement/models/ExternalExadataStorageConnectorStatus.cs +++ b/Databasemanagement/models/ExternalExadataStorageConnectorStatus.cs @@ -16,13 +16,13 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The status of a Exadata storage server connector. + /// The status of an Exadata storage server connector. /// public class ExternalExadataStorageConnectorStatus { /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata storage connector. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata storage server connector. /// [JsonProperty(PropertyName = "id")] public string Id { get; set; } diff --git a/Databasemanagement/models/ExternalExadataStorageConnectorSummary.cs b/Databasemanagement/models/ExternalExadataStorageConnectorSummary.cs index 9c3db3004e..3b4bb748da 100644 --- a/Databasemanagement/models/ExternalExadataStorageConnectorSummary.cs +++ b/Databasemanagement/models/ExternalExadataStorageConnectorSummary.cs @@ -16,13 +16,13 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The connector of the storage server. + /// The connector of the Exadata storage server. /// public class ExternalExadataStorageConnectorSummary : DbmResource { /// - /// The unique connection string of the connection. For example, \"https://slcm21celadm02.us.oracle.com:443/MS/RESTService/\". + /// The unique string of the connection. For example, \"https:///MS/RESTService/\". /// [JsonProperty(PropertyName = "connectionUri")] public string ConnectionUri { get; set; } diff --git a/Databasemanagement/models/ExternalExadataStorageGrid.cs b/Databasemanagement/models/ExternalExadataStorageGrid.cs index c2cc7ecc72..9ead227390 100644 --- a/Databasemanagement/models/ExternalExadataStorageGrid.cs +++ b/Databasemanagement/models/ExternalExadataStorageGrid.cs @@ -16,25 +16,25 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The Exadata storage grid details. + /// The details of the Exadata storage server grid. /// public class ExternalExadataStorageGrid : DbmResource { /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of Exadata infrastructure system. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. /// [JsonProperty(PropertyName = "exadataInfrastructureId")] public string ExadataInfrastructureId { get; set; } /// - /// The number of the storage servers in the Exadata infrastructure. + /// The number of Exadata storage servers in the Exadata infrastructure. /// [JsonProperty(PropertyName = "serverCount")] public System.Nullable ServerCount { get; set; } /// - /// A list of monitored Exadata storage server. + /// A list of monitored Exadata storage servers. /// [JsonProperty(PropertyName = "storageServers")] public System.Collections.Generic.List StorageServers { get; set; } diff --git a/Databasemanagement/models/ExternalExadataStorageGridSummary.cs b/Databasemanagement/models/ExternalExadataStorageGridSummary.cs index 22ccf552fa..dd8feca4c6 100644 --- a/Databasemanagement/models/ExternalExadataStorageGridSummary.cs +++ b/Databasemanagement/models/ExternalExadataStorageGridSummary.cs @@ -16,13 +16,13 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The storage server grid of the Exadata infrastructure. + /// The Exadata storage server grid of the Exadata infrastructure. /// public class ExternalExadataStorageGridSummary : DbmResource { /// - /// The number of the storage servers in the Exadata infrastructure. + /// The number of Exadata storage servers in the Exadata infrastructure. /// [JsonProperty(PropertyName = "serverCount")] public System.Nullable ServerCount { get; set; } diff --git a/Databasemanagement/models/ExternalExadataStorageServer.cs b/Databasemanagement/models/ExternalExadataStorageServer.cs index de30904c00..640dbc8bdb 100644 --- a/Databasemanagement/models/ExternalExadataStorageServer.cs +++ b/Databasemanagement/models/ExternalExadataStorageServer.cs @@ -16,67 +16,67 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The Exadata storage server details. + /// The details of the Exadata storage server. /// public class ExternalExadataStorageServer : DbmResource { /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of Exadata infrastructure system. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. /// [JsonProperty(PropertyName = "exadataInfrastructureId")] public string ExadataInfrastructureId { get; set; } /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of Exadata storage grid. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Exadata storage server grid. /// [JsonProperty(PropertyName = "storageGridId")] public string StorageGridId { get; set; } /// - /// The make model of the storage server. + /// The make model of the Exadata storage server. /// [JsonProperty(PropertyName = "makeModel")] public string MakeModel { get; set; } /// - /// The IP address of the storage server. + /// The IP address of the Exadata storage server. /// [JsonProperty(PropertyName = "ipAddress")] public string IpAddress { get; set; } /// - /// CPU count of the storage server + /// The CPU count of the Exadata storage server. /// [JsonProperty(PropertyName = "cpuCount")] public System.Nullable CpuCount { get; set; } /// - /// Storage server memory size in GB + /// The Exadata storage server memory size in GB. /// [JsonProperty(PropertyName = "memoryGB")] public System.Double MemoryGB { get; set; } /// - /// Maximum hard disk IO operations per second of the storage server + /// The maximum hard disk IO operations per second of the Exadata storage server. /// [JsonProperty(PropertyName = "maxHardDiskIOPS")] public System.Nullable MaxHardDiskIOPS { get; set; } /// - /// Maximum hard disk IO throughput in MB/s of the storage server + /// The maximum hard disk IO throughput in MB/s of the Exadata storage server. /// [JsonProperty(PropertyName = "maxHardDiskThroughput")] public System.Nullable MaxHardDiskThroughput { get; set; } /// - /// Maximum flash disk IO operations per second of the storage server + /// The maximum flash disk IO operations per second of the Exadata storage server. /// [JsonProperty(PropertyName = "maxFlashDiskIOPS")] public System.Nullable MaxFlashDiskIOPS { get; set; } /// - /// Maximum flash disk IO throughput in MB/s of the storage server + /// The maximum flash disk IO throughput in MB/s of the Exadata storage server. /// [JsonProperty(PropertyName = "maxFlashDiskThroughput")] public System.Nullable MaxFlashDiskThroughput { get; set; } diff --git a/Databasemanagement/models/ExternalExadataStorageServerCollection.cs b/Databasemanagement/models/ExternalExadataStorageServerCollection.cs index 21e24b7d91..141e8e1c18 100644 --- a/Databasemanagement/models/ExternalExadataStorageServerCollection.cs +++ b/Databasemanagement/models/ExternalExadataStorageServerCollection.cs @@ -22,7 +22,7 @@ public class ExternalExadataStorageServerCollection { /// - /// A list of Exadata storage server. + /// A list of Exadata storage servers. /// /// /// Required diff --git a/Databasemanagement/models/ExternalExadataStorageServerSummary.cs b/Databasemanagement/models/ExternalExadataStorageServerSummary.cs index 43182f346d..688e132ed5 100644 --- a/Databasemanagement/models/ExternalExadataStorageServerSummary.cs +++ b/Databasemanagement/models/ExternalExadataStorageServerSummary.cs @@ -16,61 +16,61 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The storage server of the Exadata infrastructure. + /// The Exadata storage server of the Exadata infrastructure. /// public class ExternalExadataStorageServerSummary : DbmResource { /// - /// The make model of the storage server. + /// The make model of the Exadata storage server. /// [JsonProperty(PropertyName = "makeModel")] public string MakeModel { get; set; } /// - /// The IP address of the storage server. + /// The IP address of the Exadata storage server. /// [JsonProperty(PropertyName = "ipAddress")] public string IpAddress { get; set; } /// - /// The CPU count of the storage server + /// The CPU count of the Exadata storage server. /// [JsonProperty(PropertyName = "cpuCount")] public System.Nullable CpuCount { get; set; } /// - /// The storage server memory size in GB + /// The Exadata storage server memory size in GB. /// [JsonProperty(PropertyName = "memoryGB")] public System.Double MemoryGB { get; set; } /// - /// The maximum hard disk IO operations per second of the storage server + /// The maximum hard disk IO operations per second of the Exadata storage server. /// [JsonProperty(PropertyName = "maxHardDiskIOPS")] public System.Nullable MaxHardDiskIOPS { get; set; } /// - /// The maximum hard disk IO throughput in MB/s of the storage server + /// The maximum hard disk IO throughput in MB/s of the Exadata storage server. /// [JsonProperty(PropertyName = "maxHardDiskThroughput")] public System.Nullable MaxHardDiskThroughput { get; set; } /// - /// The maximum flash disk IO operations per second of the storage server + /// The maximum flash disk IO operations per second of the Exadata storage server. /// [JsonProperty(PropertyName = "maxFlashDiskIOPS")] public System.Nullable MaxFlashDiskIOPS { get; set; } /// - /// The maximum flash disk IO throughput in MB/s of the storage server + /// The maximum flash disk IO throughput in MB/s of the Exadata storage server. /// [JsonProperty(PropertyName = "maxFlashDiskThroughput")] public System.Nullable MaxFlashDiskThroughput { get; set; } /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of connector. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the connector. /// [JsonProperty(PropertyName = "connectorId")] public string ConnectorId { get; set; } diff --git a/Databasemanagement/models/ExternalStorageGridDiscoverySummary.cs b/Databasemanagement/models/ExternalStorageGridDiscoverySummary.cs index a847708c12..2264fe1fc2 100644 --- a/Databasemanagement/models/ExternalStorageGridDiscoverySummary.cs +++ b/Databasemanagement/models/ExternalStorageGridDiscoverySummary.cs @@ -16,13 +16,13 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The Exadata storage server grid. + /// The summary of the Exadata storage server grid discovery. /// public class ExternalStorageGridDiscoverySummary : EntityDiscovered { /// - /// The total number of the storage servers discovered. + /// The total number of Exadata storage servers discovered. /// [JsonProperty(PropertyName = "countOfStorageServersDiscovered")] public System.Nullable CountOfStorageServersDiscovered { get; set; } diff --git a/Databasemanagement/models/ExternalStorageServerDiscoverySummary.cs b/Databasemanagement/models/ExternalStorageServerDiscoverySummary.cs index aad7c05392..e7c172985d 100644 --- a/Databasemanagement/models/ExternalStorageServerDiscoverySummary.cs +++ b/Databasemanagement/models/ExternalStorageServerDiscoverySummary.cs @@ -16,37 +16,37 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The Exadata storage server. + /// The summary of the Exadata storage server discovery. /// public class ExternalStorageServerDiscoverySummary : EntityDiscovered { /// - /// The IP address of the storage server. + /// The IP address of the Exadata storage server. /// [JsonProperty(PropertyName = "ipAddress")] public string IpAddress { get; set; } /// - /// The make model of the storage server. + /// The make model of the Exadata storage server. /// [JsonProperty(PropertyName = "makeModel")] public string MakeModel { get; set; } /// - /// The cpu count of the storage server. + /// The CPU count of the Exadata storage server. /// [JsonProperty(PropertyName = "cpuCount")] public System.Nullable CpuCount { get; set; } /// - /// The memory size in GB of the storage server. + /// The memory size in GB of the Exadata storage server. /// [JsonProperty(PropertyName = "memoryGB")] public System.Double MemoryGB { get; set; } /// - /// The connector name of the storage server in rediscovery case. + /// The name of the Exadata storage server connector in case of rediscovery. /// [JsonProperty(PropertyName = "connectorName")] public string ConnectorName { get; set; } diff --git a/Databasemanagement/models/IormPlan.cs b/Databasemanagement/models/IormPlan.cs index be9d812281..e11cc30a45 100644 --- a/Databasemanagement/models/IormPlan.cs +++ b/Databasemanagement/models/IormPlan.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The IORM plan from a storage server. + /// The IORM plan from an Exadata storage server. /// public class IormPlan { diff --git a/Databasemanagement/models/IormPlanObjectiveEnum.cs b/Databasemanagement/models/IormPlanObjectiveEnum.cs index ca1af5638b..1f715eba9c 100644 --- a/Databasemanagement/models/IormPlanObjectiveEnum.cs +++ b/Databasemanagement/models/IormPlanObjectiveEnum.cs @@ -13,7 +13,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The objective of the IORM plan of a storage server. The following is excerpt from Exadata document: + /// The objective of the IORM plan of an Exadata storage server. The following is an excerpt from Exadata documentation: /// auto - Use this setting for IORM to determine the best mode based on active workloads and resource plans. /// IORM continuously and dynamically determines the optimization objective, based on the observed workloads /// and enabled resource plans. This is the recommended value for most use cases, and starting with @@ -27,7 +27,7 @@ namespace Oci.DatabasemanagementService.Models /// low_latency to achieve a balance between latency and throughput. /// basic - Use this setting to limit the maximum small I/O latency and otherwise disable I/O prioritization. /// This is the default setting in Oracle Exadata System Software release 20.1.0 and earlier. - /// other - Temporarily handle the case when exadata side adds new value, should not be used as input + /// other - Temporarily handle the case when Exadata side adds new value, should not be used as input /// when to make change to IORM plan. /// /// diff --git a/Databasemanagement/models/IormPlanStatusEnum.cs b/Databasemanagement/models/IormPlanStatusEnum.cs index c478a1b8ec..bb6dce5bae 100644 --- a/Databasemanagement/models/IormPlanStatusEnum.cs +++ b/Databasemanagement/models/IormPlanStatusEnum.cs @@ -13,8 +13,8 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The status of the IORM plan of a storage server. - /// The value OTHER is to temporarily handle the case when exadata side adds new value, should not be used as input + /// The status of the IORM plan of an Exadata storage server. + /// The OTHER status is used when Exadata adds a new value, and OTHER should not be used as input /// when to make change to IORM plan. /// /// diff --git a/Databasemanagement/models/JobExecution.cs b/Databasemanagement/models/JobExecution.cs index 252fabfbf0..55c6562a29 100644 --- a/Databasemanagement/models/JobExecution.cs +++ b/Databasemanagement/models/JobExecution.cs @@ -207,6 +207,12 @@ public enum StatusEnum { [JsonProperty(PropertyName = "sqlText")] public string SqlText { get; set; } + [JsonProperty(PropertyName = "inBinds")] + public JobInBindsDetails InBinds { get; set; } + + [JsonProperty(PropertyName = "outBinds")] + public JobOutBindsDetails OutBinds { get; set; } + [JsonProperty(PropertyName = "scheduleDetails")] public JobScheduleDetails ScheduleDetails { get; set; } diff --git a/Databasemanagement/models/JobInBind.cs b/Databasemanagement/models/JobInBind.cs new file mode 100644 index 0000000000..548c31a439 --- /dev/null +++ b/Databasemanagement/models/JobInBind.cs @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details of the job in-bind variable. + /// + public class JobInBind + { + + /// + /// The position of the in-bind variable. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Position is required.")] + [JsonProperty(PropertyName = "position")] + public System.Nullable Position { get; set; } + /// + /// + /// The datatype of the in-bind variable. + /// + /// + public enum DataTypeEnum { + /// 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 = "NUMBER")] + Number, + [EnumMember(Value = "STRING")] + String, + [EnumMember(Value = "CLOB")] + Clob + }; + + /// + /// The datatype of the in-bind variable. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DataType is required.")] + [JsonProperty(PropertyName = "dataType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable DataType { get; set; } + + /// + /// The values for the in-bind variable. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Values is required.")] + [JsonProperty(PropertyName = "values")] + public System.Collections.Generic.List Values { get; set; } + + /// + /// The Oracle schema object name for the predefined type of array. + /// + [JsonProperty(PropertyName = "arrayTypeName")] + public string ArrayTypeName { get; set; } + + } +} diff --git a/Databasemanagement/models/JobInBindsDetails.cs b/Databasemanagement/models/JobInBindsDetails.cs new file mode 100644 index 0000000000..4a38558e5e --- /dev/null +++ b/Databasemanagement/models/JobInBindsDetails.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// A collection of job in-bind variables. + /// + public class JobInBindsDetails + { + + /// + /// A list of JobInBind objects. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Databasemanagement/models/JobOutBind.cs b/Databasemanagement/models/JobOutBind.cs new file mode 100644 index 0000000000..3aeaa98e0a --- /dev/null +++ b/Databasemanagement/models/JobOutBind.cs @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details of the job out-bind variable. + /// + public class JobOutBind + { + + /// + /// The position of the out-bind variable. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Position is required.")] + [JsonProperty(PropertyName = "position")] + public System.Nullable Position { get; set; } + /// + /// + /// The datatype of the out-bind variable. + /// + /// + public enum DataTypeEnum { + /// 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 = "NUMBER")] + Number, + [EnumMember(Value = "STRING")] + String, + [EnumMember(Value = "CLOB")] + Clob + }; + + /// + /// The datatype of the out-bind variable. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DataType is required.")] + [JsonProperty(PropertyName = "dataType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable DataType { get; set; } + + } +} diff --git a/Databasemanagement/models/JobOutBindsDetails.cs b/Databasemanagement/models/JobOutBindsDetails.cs new file mode 100644 index 0000000000..d3f4cffe8f --- /dev/null +++ b/Databasemanagement/models/JobOutBindsDetails.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// A collection of job out-bind variables. + /// + public class JobOutBindsDetails + { + + /// + /// A list of JobOutBind objects. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Databasemanagement/models/LoadSqlPlanBaselinesFromAwrDetails.cs b/Databasemanagement/models/LoadSqlPlanBaselinesFromAwrDetails.cs new file mode 100644 index 0000000000..56ed91dcf7 --- /dev/null +++ b/Databasemanagement/models/LoadSqlPlanBaselinesFromAwrDetails.cs @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details required to load plans from Automatic Workload Repository (AWR). + /// + /// + public class LoadSqlPlanBaselinesFromAwrDetails + { + + /// + /// The name of the database job used for loading SQL plan baselines. + /// + /// + /// Required + /// + [Required(ErrorMessage = "JobName is required.")] + [JsonProperty(PropertyName = "jobName")] + public string JobName { get; set; } + + /// + /// The description of the job. + /// + [JsonProperty(PropertyName = "jobDescription")] + public string JobDescription { get; set; } + + /// + /// The begin snapshot. + /// + /// + /// Required + /// + [Required(ErrorMessage = "BeginSnapshot is required.")] + [JsonProperty(PropertyName = "beginSnapshot")] + public System.Nullable BeginSnapshot { get; set; } + + /// + /// The end snapshot. + /// + /// + /// Required + /// + [Required(ErrorMessage = "EndSnapshot is required.")] + [JsonProperty(PropertyName = "endSnapshot")] + public System.Nullable EndSnapshot { get; set; } + + /// + /// A filter applied to AWR to select only qualifying plans to be loaded. + /// By default all plans in AWR are selected. The filter can take the form of + /// any `WHERE` clause predicate that can be specified against the column + /// `DBA_HIST_SQLTEXT.SQL_TEXT`. An example is `sql_text like 'SELECT %'`. + /// + /// + [JsonProperty(PropertyName = "sqlTextFilter")] + public string SqlTextFilter { get; set; } + + /// + /// Indicates whether the plans are loaded as fixed plans (`true`) or non-fixed plans (`false`). + /// By default, they are loaded as non-fixed plans. + /// + /// + [JsonProperty(PropertyName = "isFixed")] + public System.Nullable IsFixed { get; set; } + + /// + /// Indicates whether the loaded plans are enabled (`true`) or not (`false`). + /// By default, they are enabled. + /// + /// + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/LoadSqlPlanBaselinesFromCursorCacheDetails.cs b/Databasemanagement/models/LoadSqlPlanBaselinesFromCursorCacheDetails.cs new file mode 100644 index 0000000000..8e707e828e --- /dev/null +++ b/Databasemanagement/models/LoadSqlPlanBaselinesFromCursorCacheDetails.cs @@ -0,0 +1,140 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details of SQL statements and plans to be loaded from cursor cache. You can specify + /// the plans to load using SQL ID, plan identifier, or filterName and filterValue pair. + /// You can also control the SQL plan baseline into which the plans are loaded using either + /// SQL text or SQL handle. + /// + /// + public class LoadSqlPlanBaselinesFromCursorCacheDetails + { + + /// + /// The name of the database job used for loading SQL plan baselines. + /// + /// + /// Required + /// + [Required(ErrorMessage = "JobName is required.")] + [JsonProperty(PropertyName = "jobName")] + public string JobName { get; set; } + + /// + /// The description of the job. + /// + [JsonProperty(PropertyName = "jobDescription")] + public string JobDescription { get; set; } + + /// + /// The SQL statement identifier. Identifies a SQL statement in the cursor cache. + /// + [JsonProperty(PropertyName = "sqlId")] + public string SqlId { get; set; } + + /// + /// The plan identifier. By default, all plans present in the cursor cache + /// for the SQL statement identified by `sqlId` are captured. + /// + /// + [JsonProperty(PropertyName = "planHash")] + public System.Nullable PlanHash { get; set; } + + /// + /// The SQL text to use in identifying the SQL plan baseline into which the plans + /// are loaded. If the SQL plan baseline does not exist, it is created. + /// + /// + [JsonProperty(PropertyName = "sqlText")] + public string SqlText { get; set; } + + /// + /// The SQL handle to use in identifying the SQL plan baseline into which + /// the plans are loaded. + /// + /// + [JsonProperty(PropertyName = "sqlHandle")] + public string SqlHandle { get; set; } + /// + /// + /// The name of the filter. + ///
+ /// - SQL_TEXT: Search pattern to apply to SQL text. + /// - PARSING_SCHEMA_NAME: Name of the parsing schema. + /// - MODULE: Name of the module. + /// - ACTION: Name of the action. + /// + ///
+ /// + public enum FilterNameEnum { + [EnumMember(Value = "SQL_TEXT")] + SqlText, + [EnumMember(Value = "PARSING_SCHEMA_NAME")] + ParsingSchemaName, + [EnumMember(Value = "MODULE")] + Module, + [EnumMember(Value = "ACTION")] + Action + }; + + /// + /// The name of the filter. + ///
+ /// - SQL_TEXT: Search pattern to apply to SQL text. + /// - PARSING_SCHEMA_NAME: Name of the parsing schema. + /// - MODULE: Name of the module. + /// - ACTION: Name of the action. + /// + ///
+ [JsonProperty(PropertyName = "filterName")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable FilterName { get; set; } + + /// + /// The filter value. It is upper-cased except when it is enclosed in + /// double quotes or filter name is `SQL_TEXT`. + /// + /// + [JsonProperty(PropertyName = "filterValue")] + public string FilterValue { get; set; } + + /// + /// Indicates whether the plans are loaded as fixed plans (`true`) or non-fixed plans (`false`). + /// By default, they are loaded as non-fixed plans. + /// + /// + [JsonProperty(PropertyName = "isFixed")] + public System.Nullable IsFixed { get; set; } + + /// + /// Indicates whether the loaded plans are enabled (`true`) or not (`false`). + /// By default, they are enabled. + /// + /// + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "Credentials is required.")] + [JsonProperty(PropertyName = "credentials")] + public ManagedDatabaseCredential Credentials { get; set; } + + } +} diff --git a/Databasemanagement/models/OpenAlertHistory.cs b/Databasemanagement/models/OpenAlertHistory.cs index 89cb1daaed..79c7654d17 100644 --- a/Databasemanagement/models/OpenAlertHistory.cs +++ b/Databasemanagement/models/OpenAlertHistory.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The open alerts current existing in a storage server. + /// The existing open alerts in the Exadata storage server. /// public class OpenAlertHistory { diff --git a/Databasemanagement/models/OpenAlertSummary.cs b/Databasemanagement/models/OpenAlertSummary.cs index beb80c7bb9..21b7dd807e 100644 --- a/Databasemanagement/models/OpenAlertSummary.cs +++ b/Databasemanagement/models/OpenAlertSummary.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// An alert from storage server. + /// An alert from the Exadata storage server. /// public class OpenAlertSummary { @@ -29,7 +29,7 @@ public class OpenAlertSummary public System.Nullable Severity { get; set; } /// - /// The type of the alert. + /// The type of alert. /// [JsonProperty(PropertyName = "type")] [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] diff --git a/Databasemanagement/models/RestCredential.cs b/Databasemanagement/models/RestCredential.cs index ae8b5a425c..5cdc67b334 100644 --- a/Databasemanagement/models/RestCredential.cs +++ b/Databasemanagement/models/RestCredential.cs @@ -42,7 +42,7 @@ public class RestCredential public string Password { get; set; } /// /// - /// The SSL trust store type. + /// The SSL truststore type. /// /// public enum SslTrustStoreTypeEnum { @@ -53,20 +53,20 @@ public enum SslTrustStoreTypeEnum { }; /// - /// The SSL trust store type. + /// The SSL truststore type. /// [JsonProperty(PropertyName = "sslTrustStoreType")] [JsonConverter(typeof(StringEnumConverter))] public System.Nullable SslTrustStoreType { get; set; } /// - /// The full path of the SSL trust store Location in the agent. + /// The full path of the SSL truststore location in the agent. /// [JsonProperty(PropertyName = "sslTrustStoreLocation")] public string SslTrustStoreLocation { get; set; } /// - /// The password of the SSL trust store Location in the agent. + /// The password of the SSL truststore location in the agent. /// [JsonProperty(PropertyName = "sslTrustStorePassword")] public string SslTrustStorePassword { get; set; } diff --git a/Databasemanagement/models/SpmEvolveTaskParameters.cs b/Databasemanagement/models/SpmEvolveTaskParameters.cs new file mode 100644 index 0000000000..b0588ce4ec --- /dev/null +++ b/Databasemanagement/models/SpmEvolveTaskParameters.cs @@ -0,0 +1,86 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The set of parameters used in an SPM evolve task. + /// + public class SpmEvolveTaskParameters + { + /// + /// + public enum AlternatePlanSourcesEnum { + /// 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 = "AUTO")] + Auto, + [EnumMember(Value = "AUTOMATIC_WORKLOAD_REPOSITORY")] + AutomaticWorkloadRepository, + [EnumMember(Value = "CURSOR_CACHE")] + CursorCache, + [EnumMember(Value = "SQL_TUNING_SET")] + SqlTuningSet + }; + + /// + /// Determines which sources to search for additional plans. + /// + [JsonProperty(PropertyName = "alternatePlanSources", ItemConverterType = typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Collections.Generic.List AlternatePlanSources { get; set; } + /// + /// + public enum AlternatePlanBaselinesEnum { + /// 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 = "AUTO")] + Auto, + [EnumMember(Value = "EXISTING")] + Existing, + [EnumMember(Value = "NEW")] + New + }; + + /// + /// Determines which alternative plans should be loaded. + /// + [JsonProperty(PropertyName = "alternatePlanBaselines", ItemConverterType = typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Collections.Generic.List AlternatePlanBaselines { get; set; } + + /// + /// Specifies the maximum number of plans to load in total (that is, not + /// the limit for each SQL statement). A value of zero indicates `UNLIMITED` + /// number of plans. + /// + /// + [JsonProperty(PropertyName = "alternatePlanLimit")] + public System.Nullable AlternatePlanLimit { get; set; } + + /// + /// Specifies whether to accept recommended plans automatically. + /// + [JsonProperty(PropertyName = "arePlansAutoAccepted")] + public System.Nullable ArePlansAutoAccepted { get; set; } + + /// + /// The global time limit in seconds. This is the total time allowed for the task. + /// + [JsonProperty(PropertyName = "allowedTimeLimit")] + public System.Nullable AllowedTimeLimit { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlCpuActivity.cs b/Databasemanagement/models/SqlCpuActivity.cs index 845040f2ab..b26c7d14f5 100644 --- a/Databasemanagement/models/SqlCpuActivity.cs +++ b/Databasemanagement/models/SqlCpuActivity.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// SQL CPU activity from storage server. + /// The SQL CPU activity from the Exadata storage server. /// public class SqlCpuActivity { diff --git a/Databasemanagement/models/SqlJob.cs b/Databasemanagement/models/SqlJob.cs index 60d5cd3599..a38dec7df9 100644 --- a/Databasemanagement/models/SqlJob.cs +++ b/Databasemanagement/models/SqlJob.cs @@ -51,6 +51,12 @@ public enum SqlTypeEnum { ///
[JsonProperty(PropertyName = "sqlText")] public string SqlText { get; set; } + + [JsonProperty(PropertyName = "inBinds")] + public JobInBindsDetails InBinds { get; set; } + + [JsonProperty(PropertyName = "outBinds")] + public JobOutBindsDetails OutBinds { get; set; } /// /// /// The SQL operation type. diff --git a/Databasemanagement/models/SqlPlanBaseline.cs b/Databasemanagement/models/SqlPlanBaseline.cs new file mode 100644 index 0000000000..00ccb32fe1 --- /dev/null +++ b/Databasemanagement/models/SqlPlanBaseline.cs @@ -0,0 +1,157 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details of a SQL plan baseline. + /// + public class SqlPlanBaseline + { + + /// + /// The unique plan identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "PlanName is required.")] + [JsonProperty(PropertyName = "planName")] + public string PlanName { get; set; } + + /// + /// The unique SQL identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlHandle is required.")] + [JsonProperty(PropertyName = "sqlHandle")] + public string SqlHandle { get; set; } + + /// + /// The SQL text. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlText is required.")] + [JsonProperty(PropertyName = "sqlText")] + public string SqlText { get; set; } + + /// + /// The origin of the SQL plan baseline. + /// + [JsonProperty(PropertyName = "origin")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Origin { get; set; } + + /// + /// The date and time when the plan baseline was created. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeCreated is required.")] + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The date and time when the plan baseline was last modified. + /// + [JsonProperty(PropertyName = "timeLastModified")] + public System.Nullable TimeLastModified { get; set; } + + /// + /// The date and time when the plan baseline was last executed. + ///
+ /// **Note:** For performance reasons, database does not update this value + /// immediately after each execution of the plan baseline. Therefore, the plan + /// baseline may have been executed more recently than this value indicates. + /// + ///
+ [JsonProperty(PropertyName = "timeLastExecuted")] + public System.Nullable TimeLastExecuted { get; set; } + + /// + /// Indicates whether the plan baseline is enabled (`YES`) or disabled (`NO`). + /// + [JsonProperty(PropertyName = "enabled")] + public string Enabled { get; set; } + + /// + /// Indicates whether the plan baseline is accepted (`YES`) or not (`NO`). + /// + [JsonProperty(PropertyName = "accepted")] + public string Accepted { get; set; } + + /// + /// Indicates whether the plan baseline is fixed (`YES`) or not (`NO`). + /// + [JsonProperty(PropertyName = "fixed")] + public string Fixed { get; set; } + + /// + /// Indicates whether the optimizer was able to reproduce the plan (`YES`) or not (`NO`). + /// The value is set to `YES` when a plan is initially added to the plan baseline. + /// + /// + [JsonProperty(PropertyName = "reproduced")] + public string Reproduced { get; set; } + + /// + /// Indicates whether the plan baseline is auto-purged (`YES`) or not (`NO`). + /// + [JsonProperty(PropertyName = "autoPurge")] + public string AutoPurge { get; set; } + + /// + /// Indicates whether a plan that is automatically captured by SQL plan management is marked adaptive or not. + ///
+ /// When a new adaptive plan is found for a SQL statement that has an existing SQL plan baseline, that new plan + /// will be added to the SQL plan baseline as an unaccepted plan, and the `ADAPTIVE` property will be marked `YES`. + /// When this new plan is verified (either manually or via the auto evolve task), the plan will be test executed + /// and the final plan determined at execution will become an accepted plan if its performance is better than + /// the existing plan baseline. At this point, the value of the `ADAPTIVE` property is set to `NO` since the plan + /// is no longer adaptive, but resolved. + /// + ///
+ [JsonProperty(PropertyName = "adaptive")] + public string Adaptive { get; set; } + + /// + /// The application module name. + /// + [JsonProperty(PropertyName = "module")] + public string Module { get; set; } + + /// + /// The application action. + /// + [JsonProperty(PropertyName = "action")] + public string Action { get; set; } + + /// + /// The execution plan for the SQL statement. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ExecutionPlan is required.")] + [JsonProperty(PropertyName = "executionPlan")] + public string ExecutionPlan { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlPlanBaselineAggregation.cs b/Databasemanagement/models/SqlPlanBaselineAggregation.cs new file mode 100644 index 0000000000..eb465be9b6 --- /dev/null +++ b/Databasemanagement/models/SqlPlanBaselineAggregation.cs @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// A summary of SQL plan baselines. + /// + public class SqlPlanBaselineAggregation + { + + /// + /// Required + /// + [Required(ErrorMessage = "Dimensions is required.")] + [JsonProperty(PropertyName = "dimensions")] + public SqlPlanBaselineDimensions Dimensions { get; set; } + + /// + /// The number of SQL plan baselines matching aggregation criteria. + /// + [JsonProperty(PropertyName = "count")] + public System.Nullable Count { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlPlanBaselineAggregationCollection.cs b/Databasemanagement/models/SqlPlanBaselineAggregationCollection.cs new file mode 100644 index 0000000000..65354b3673 --- /dev/null +++ b/Databasemanagement/models/SqlPlanBaselineAggregationCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// A collection of SQL plan baseline aggregations. + /// + public class SqlPlanBaselineAggregationCollection + { + + /// + /// A list of SQL plan baseline aggregations. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlPlanBaselineCollection.cs b/Databasemanagement/models/SqlPlanBaselineCollection.cs new file mode 100644 index 0000000000..ea308f0494 --- /dev/null +++ b/Databasemanagement/models/SqlPlanBaselineCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The SQL plan baseline list. + /// + public class SqlPlanBaselineCollection + { + + /// + /// A list of SQL plan baselines. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlPlanBaselineConfiguration.cs b/Databasemanagement/models/SqlPlanBaselineConfiguration.cs new file mode 100644 index 0000000000..c4404586b1 --- /dev/null +++ b/Databasemanagement/models/SqlPlanBaselineConfiguration.cs @@ -0,0 +1,115 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The configuration details of SQL plan baselines. The details include: + ///
+ /// - whether automatic initial plan capture is enabled or disabled + /// - whether use of SQL plan baselines is enabled or disabled + /// - whether Automatic SPM Evolve Advisor task is enabled or disabled + /// - whether high-frequency Automatic SPM Evolve Advisor task is enabled or disabled + /// - filters for the automatic initial plan capture + /// - parameters for the Automatic SPM Evolve Advisor task + /// - plan retention and allocated space for the plan baselines + /// + ///
+ public class SqlPlanBaselineConfiguration + { + + /// + /// Indicates whether the automatic capture of SQL plan baselines is enabled (`true`) or not (`false`). + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsAutomaticInitialPlanCaptureEnabled is required.")] + [JsonProperty(PropertyName = "isAutomaticInitialPlanCaptureEnabled")] + public System.Nullable IsAutomaticInitialPlanCaptureEnabled { get; set; } + + /// + /// Indicates whether the database uses SQL plan baselines (`true`) or not (`false`). + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsSqlPlanBaselinesUsageEnabled is required.")] + [JsonProperty(PropertyName = "isSqlPlanBaselinesUsageEnabled")] + public System.Nullable IsSqlPlanBaselinesUsageEnabled { get; set; } + + /// + /// Indicates whether the Automatic SPM Evolve Advisor task is enabled (`true`) or not (`false`). + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsAutoSpmEvolveTaskEnabled is required.")] + [JsonProperty(PropertyName = "isAutoSpmEvolveTaskEnabled")] + public System.Nullable IsAutoSpmEvolveTaskEnabled { get; set; } + + /// + /// Indicates whether the high frequency Automatic SPM Evolve Advisor task is enabled (`true`) or not (`false`). + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsHighFrequencyAutoSpmEvolveTaskEnabled is required.")] + [JsonProperty(PropertyName = "isHighFrequencyAutoSpmEvolveTaskEnabled")] + public System.Nullable IsHighFrequencyAutoSpmEvolveTaskEnabled { get; set; } + + /// + /// The number of weeks to retain unused plans before they are purged. + /// + /// + /// Required + /// + [Required(ErrorMessage = "PlanRetentionWeeks is required.")] + [JsonProperty(PropertyName = "planRetentionWeeks")] + public System.Nullable PlanRetentionWeeks { get; set; } + + /// + /// The maximum percent of `SYSAUX` space that can be used for SQL Management Base. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SpaceBudgetPercent is required.")] + [JsonProperty(PropertyName = "spaceBudgetPercent")] + public System.Nullable SpaceBudgetPercent { get; set; } + + /// + /// The maximum `SYSAUX` space that can be used for SQL Management Base in MB. + /// + [JsonProperty(PropertyName = "spaceBudgetMB")] + public System.Nullable SpaceBudgetMB { get; set; } + + /// + /// The space used by SQL Management Base in MB. + /// + [JsonProperty(PropertyName = "spaceUsedMB")] + public System.Nullable SpaceUsedMB { get; set; } + + /// + /// The capture filters used in automatic initial plan capture. + /// + [JsonProperty(PropertyName = "autoCaptureFilters")] + public System.Collections.Generic.List AutoCaptureFilters { get; set; } + + [JsonProperty(PropertyName = "autoSpmEvolveTaskParameters")] + public SpmEvolveTaskParameters AutoSpmEvolveTaskParameters { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlPlanBaselineDimensions.cs b/Databasemanagement/models/SqlPlanBaselineDimensions.cs new file mode 100644 index 0000000000..df2b513040 --- /dev/null +++ b/Databasemanagement/models/SqlPlanBaselineDimensions.cs @@ -0,0 +1,45 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details of the SQL plan baseline dimensions. + /// + public class SqlPlanBaselineDimensions + { + + /// + /// The name of the SQL plan baseline attribute. + /// + /// + /// Required + /// + [Required(ErrorMessage = "AttributeName is required.")] + [JsonProperty(PropertyName = "attributeName")] + public string AttributeName { get; set; } + + /// + /// The value of the attribute. + /// + /// + /// Required + /// + [Required(ErrorMessage = "AttributeValue is required.")] + [JsonProperty(PropertyName = "attributeValue")] + public string AttributeValue { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlPlanBaselineJob.cs b/Databasemanagement/models/SqlPlanBaselineJob.cs new file mode 100644 index 0000000000..adf3060c17 --- /dev/null +++ b/Databasemanagement/models/SqlPlanBaselineJob.cs @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The details of the database job used for loading and evolving SQL plan baselines. + /// + public class SqlPlanBaselineJob + { + + /// + /// The job name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + /// + /// + /// The job type. + /// + /// + public enum TypeEnum { + /// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK. + [EnumMember(Value = null)] + UnknownEnumValue, + [EnumMember(Value = "LOAD")] + Load + }; + + /// + /// The job type. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Type is required.")] + [JsonProperty(PropertyName = "type")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Type { get; set; } + /// + /// + /// The job status. + /// + /// + public enum StatusEnum { + /// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK. + [EnumMember(Value = null)] + UnknownEnumValue, + [EnumMember(Value = "SUCCEEDED")] + Succeeded, + [EnumMember(Value = "SCHEDULED")] + Scheduled, + [EnumMember(Value = "FAILED")] + Failed + }; + + /// + /// The job status. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Status is required.")] + [JsonProperty(PropertyName = "status")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Status { get; set; } + + /// + /// The date and time the job was created. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlPlanBaselineJobCollection.cs b/Databasemanagement/models/SqlPlanBaselineJobCollection.cs new file mode 100644 index 0000000000..3697a4fb23 --- /dev/null +++ b/Databasemanagement/models/SqlPlanBaselineJobCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// A collection of database jobs used for loading and evolving SQL plan baselines. + /// + public class SqlPlanBaselineJobCollection + { + + /// + /// A list of SQL plan baseline jobs. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlPlanBaselineJobSummary.cs b/Databasemanagement/models/SqlPlanBaselineJobSummary.cs new file mode 100644 index 0000000000..dd74ab3d98 --- /dev/null +++ b/Databasemanagement/models/SqlPlanBaselineJobSummary.cs @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// A summary of the database job used for loading and evolving SQL plan baselines. + /// + public class SqlPlanBaselineJobSummary + { + + /// + /// The name of the job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + /// + /// + /// The type of the job. + /// + /// + public enum TypeEnum { + /// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK. + [EnumMember(Value = null)] + UnknownEnumValue, + [EnumMember(Value = "LOAD")] + Load + }; + + /// + /// The type of the job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Type is required.")] + [JsonProperty(PropertyName = "type")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Type { get; set; } + /// + /// + /// The status of the job. + /// + /// + public enum StatusEnum { + /// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK. + [EnumMember(Value = null)] + UnknownEnumValue, + [EnumMember(Value = "SUCCEEDED")] + Succeeded, + [EnumMember(Value = "SCHEDULED")] + Scheduled, + [EnumMember(Value = "FAILED")] + Failed + }; + + /// + /// The status of the job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Status is required.")] + [JsonProperty(PropertyName = "status")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Status { get; set; } + + /// + /// The date and time the job was created. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + } +} diff --git a/Databasemanagement/models/SqlPlanBaselineOrigin.cs b/Databasemanagement/models/SqlPlanBaselineOrigin.cs new file mode 100644 index 0000000000..697afc3628 --- /dev/null +++ b/Databasemanagement/models/SqlPlanBaselineOrigin.cs @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The origin of the SQL plan baseline. + /// + public enum SqlPlanBaselineOrigin { + /// 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 = "ADDM_SQLTUNE")] + AddmSqltune, + [EnumMember(Value = "AUTO_CAPTURE")] + AutoCapture, + [EnumMember(Value = "AUTO_SQLTUNE")] + AutoSqltune, + [EnumMember(Value = "EVOLVE_AUTO_INDEX_LOAD")] + EvolveAutoIndexLoad, + [EnumMember(Value = "EVOLVE_CREATE_FROM_ADAPTIVE")] + EvolveCreateFromAdaptive, + [EnumMember(Value = "EVOLVE_LOAD_FROM_STS")] + EvolveLoadFromSts, + [EnumMember(Value = "EVOLVE_LOAD_FROM_AWR")] + EvolveLoadFromAwr, + [EnumMember(Value = "EVOLVE_LOAD_FROM_CURSOR_CACHE")] + EvolveLoadFromCursorCache, + [EnumMember(Value = "MANUAL_LOAD")] + ManualLoad, + [EnumMember(Value = "MANUAL_LOAD_FROM_AWR")] + ManualLoadFromAwr, + [EnumMember(Value = "MANUAL_LOAD_FROM_CURSOR_CACHE")] + ManualLoadFromCursorCache, + [EnumMember(Value = "MANUAL_LOAD_FROM_STS")] + ManualLoadFromSts, + [EnumMember(Value = "MANUAL_SQLTUNE")] + ManualSqltune, + [EnumMember(Value = "STORED_OUTLINE")] + StoredOutline, + [EnumMember(Value = "UNKNOWN")] + Unknown + } +} diff --git a/Databasemanagement/models/SqlPlanBaselineSummary.cs b/Databasemanagement/models/SqlPlanBaselineSummary.cs new file mode 100644 index 0000000000..a7de6e63aa --- /dev/null +++ b/Databasemanagement/models/SqlPlanBaselineSummary.cs @@ -0,0 +1,135 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DatabasemanagementService.Models +{ + /// + /// The summary of a SQL plan baseline. + /// + public class SqlPlanBaselineSummary + { + + /// + /// The unique plan identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "PlanName is required.")] + [JsonProperty(PropertyName = "planName")] + public string PlanName { get; set; } + + /// + /// The unique SQL identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlHandle is required.")] + [JsonProperty(PropertyName = "sqlHandle")] + public string SqlHandle { get; set; } + + /// + /// The SQL text (truncated to the first 50 characters). + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlText is required.")] + [JsonProperty(PropertyName = "sqlText")] + public string SqlText { get; set; } + + /// + /// The origin of the SQL plan baseline. + /// + [JsonProperty(PropertyName = "origin")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Origin { get; set; } + + /// + /// The date and time when the plan baseline was created. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeCreated is required.")] + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The date and time when the plan baseline was last modified. + /// + [JsonProperty(PropertyName = "timeLastModified")] + public System.Nullable TimeLastModified { get; set; } + + /// + /// The date and time when the plan baseline was last executed. + ///
+ /// **Note:** For performance reasons, database does not update this value + /// immediately after each execution of the plan baseline. Therefore, the plan + /// baseline may have been executed more recently than this value indicates. + /// + ///
+ [JsonProperty(PropertyName = "timeLastExecuted")] + public System.Nullable TimeLastExecuted { get; set; } + + /// + /// Indicates whether the plan baseline is enabled (`YES`) or disabled (`NO`). + /// + [JsonProperty(PropertyName = "enabled")] + public string Enabled { get; set; } + + /// + /// Indicates whether the plan baseline is accepted (`YES`) or not (`NO`). + /// + [JsonProperty(PropertyName = "accepted")] + public string Accepted { get; set; } + + /// + /// Indicates whether the plan baseline is fixed (`YES`) or not (`NO`). + /// + [JsonProperty(PropertyName = "fixed")] + public string Fixed { get; set; } + + /// + /// Indicates whether the optimizer was able to reproduce the plan (`YES`) or not (`NO`). + /// The value is set to `YES` when a plan is initially added to the plan baseline. + /// + /// + [JsonProperty(PropertyName = "reproduced")] + public string Reproduced { get; set; } + + /// + /// Indicates whether the plan baseline is auto-purged (`YES`) or not (`NO`). + /// + [JsonProperty(PropertyName = "autoPurge")] + public string AutoPurge { get; set; } + + /// + /// Indicates whether a plan that is automatically captured by SQL plan management is marked adaptive or not. + ///
+ /// When a new adaptive plan is found for a SQL statement that has an existing SQL plan baseline, that new plan + /// will be added to the SQL plan baseline as an unaccepted plan, and the `ADAPTIVE` property will be marked `YES`. + /// When this new plan is verified (either manually or via the auto evolve task), the plan will be test executed + /// and the final plan determined at execution will become an accepted plan if its performance is better than + /// the existing plan baseline. At this point, the value of the `ADAPTIVE` property is set to `NO` since the plan + /// is no longer adaptive, but resolved. + /// + ///
+ [JsonProperty(PropertyName = "adaptive")] + public string Adaptive { get; set; } + + } +} diff --git a/Databasemanagement/models/TopSqlCpuActivity.cs b/Databasemanagement/models/TopSqlCpuActivity.cs index 9f69c30ecf..cd442399f2 100644 --- a/Databasemanagement/models/TopSqlCpuActivity.cs +++ b/Databasemanagement/models/TopSqlCpuActivity.cs @@ -22,7 +22,7 @@ public class TopSqlCpuActivity { /// - /// A list of sql cpu activity. + /// A list of sql CPU activity. /// /// /// Required diff --git a/Databasemanagement/models/UpdateExternalExadataInfrastructureDetails.cs b/Databasemanagement/models/UpdateExternalExadataInfrastructureDetails.cs index 0e1161aa15..5acfbbe56c 100644 --- a/Databasemanagement/models/UpdateExternalExadataInfrastructureDetails.cs +++ b/Databasemanagement/models/UpdateExternalExadataInfrastructureDetails.cs @@ -16,7 +16,7 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The details of updating external Exadata infrastructure. + /// The details required to update the external Exadata infrastructure. /// public class UpdateExternalExadataInfrastructureDetails { @@ -48,7 +48,7 @@ public enum LicenseModelEnum { public System.Nullable LicenseModel { get; set; } /// - /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of compartment. + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. /// /// /// Required @@ -64,13 +64,13 @@ public enum LicenseModelEnum { public string DisplayName { get; set; } /// - /// The list of all the rac database system OCIDs. If not specified, it keeps the existing database systems + /// The list of all the DB systems OCIDs. /// [JsonProperty(PropertyName = "dbSystemIds")] public System.Collections.Generic.List DbSystemIds { get; set; } /// - /// The list of the names of the storage servers to be monitored. If not specified, it includes all the storage servers associated with the monitored database systems. + /// The list of the names of Exadata storage servers to be monitored. If not specified, it includes all Exadata storage servers associated with the monitored DB systems. /// [JsonProperty(PropertyName = "storageServerNames")] public System.Collections.Generic.List StorageServerNames { get; set; } diff --git a/Databasemanagement/models/UpdateExternalExadataStorageConnectorDetails.cs b/Databasemanagement/models/UpdateExternalExadataStorageConnectorDetails.cs index 03b0580bca..1d9085764e 100644 --- a/Databasemanagement/models/UpdateExternalExadataStorageConnectorDetails.cs +++ b/Databasemanagement/models/UpdateExternalExadataStorageConnectorDetails.cs @@ -16,19 +16,19 @@ namespace Oci.DatabasemanagementService.Models { /// - /// The connector details of the storage server to be updated. + /// The connector details of the Exadata storage server to be updated. /// public class UpdateExternalExadataStorageConnectorDetails { /// - /// The connector name if OCI connector is created. + /// The name of the Exadata storage server connector. /// [JsonProperty(PropertyName = "connectorName")] public string ConnectorName { get; set; } /// - /// The unique connection string of the connection. For example, \"https://slcm21celadm02.us.oracle.com:443/MS/RESTService/\". + /// The unique string of the connection. For example, \"https:///MS/RESTService/\". /// [JsonProperty(PropertyName = "connectionUri")] public string ConnectionUri { get; set; } diff --git a/Databasemanagement/models/UpdateSqlJobDetails.cs b/Databasemanagement/models/UpdateSqlJobDetails.cs index 8c8f3439a7..cb553cd417 100644 --- a/Databasemanagement/models/UpdateSqlJobDetails.cs +++ b/Databasemanagement/models/UpdateSqlJobDetails.cs @@ -27,6 +27,12 @@ public class UpdateSqlJobDetails : UpdateJobDetails [JsonProperty(PropertyName = "sqlText")] public string SqlText { get; set; } + [JsonProperty(PropertyName = "inBinds")] + public JobInBindsDetails InBinds { get; set; } + + [JsonProperty(PropertyName = "outBinds")] + public JobOutBindsDetails OutBinds { get; set; } + [JsonProperty(PropertyName = "sqlType")] [JsonConverter(typeof(StringEnumConverter))] public System.Nullable SqlType { get; set; } diff --git a/Databasemanagement/requests/ChangeExternalExadataInfrastructureCompartmentRequest.cs b/Databasemanagement/requests/ChangeExternalExadataInfrastructureCompartmentRequest.cs index d0b1dd1d28..82d9eb77ae 100644 --- a/Databasemanagement/requests/ChangeExternalExadataInfrastructureCompartmentRequest.cs +++ b/Databasemanagement/requests/ChangeExternalExadataInfrastructureCompartmentRequest.cs @@ -30,7 +30,7 @@ public class ChangeExternalExadataInfrastructureCompartmentRequest : Oci.Common. public string ExternalExadataInfrastructureId { get; set; } /// - /// The details required to change the compartment for the Exadata infrastructure. + /// The details required to move the Exadata infrastructure from one compartment to another. /// /// /// Required diff --git a/Databasemanagement/requests/ChangePlanRetentionRequest.cs b/Databasemanagement/requests/ChangePlanRetentionRequest.cs new file mode 100644 index 0000000000..a720799c88 --- /dev/null +++ b/Databasemanagement/requests/ChangePlanRetentionRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use ChangePlanRetention request. + /// + public class ChangePlanRetentionRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to change the plan retention period. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ChangePlanRetentionDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ChangePlanRetentionDetails ChangePlanRetentionDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/ChangeSpaceBudgetRequest.cs b/Databasemanagement/requests/ChangeSpaceBudgetRequest.cs new file mode 100644 index 0000000000..eb12ddae47 --- /dev/null +++ b/Databasemanagement/requests/ChangeSpaceBudgetRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use ChangeSpaceBudget request. + /// + public class ChangeSpaceBudgetRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to change the disk space limit for the SQL Management Base. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ChangeSpaceBudgetDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ChangeSpaceBudgetDetails ChangeSpaceBudgetDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/ChangeSqlPlanBaselinesAttributesRequest.cs b/Databasemanagement/requests/ChangeSqlPlanBaselinesAttributesRequest.cs new file mode 100644 index 0000000000..16a7b144ff --- /dev/null +++ b/Databasemanagement/requests/ChangeSqlPlanBaselinesAttributesRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use ChangeSqlPlanBaselinesAttributes request. + /// + public class ChangeSqlPlanBaselinesAttributesRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to change SQL plan baseline attributes. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ChangeSqlPlanBaselinesAttributesDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ChangeSqlPlanBaselinesAttributesDetails ChangeSqlPlanBaselinesAttributesDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/ConfigureAutomaticCaptureFiltersRequest.cs b/Databasemanagement/requests/ConfigureAutomaticCaptureFiltersRequest.cs new file mode 100644 index 0000000000..d021c69e1e --- /dev/null +++ b/Databasemanagement/requests/ConfigureAutomaticCaptureFiltersRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use ConfigureAutomaticCaptureFilters request. + /// + public class ConfigureAutomaticCaptureFiltersRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to configure automatic capture filters. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ConfigureAutomaticCaptureFiltersDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ConfigureAutomaticCaptureFiltersDetails ConfigureAutomaticCaptureFiltersDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/ConfigureAutomaticSpmEvolveAdvisorTaskRequest.cs b/Databasemanagement/requests/ConfigureAutomaticSpmEvolveAdvisorTaskRequest.cs new file mode 100644 index 0000000000..895ea161ab --- /dev/null +++ b/Databasemanagement/requests/ConfigureAutomaticSpmEvolveAdvisorTaskRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use ConfigureAutomaticSpmEvolveAdvisorTask request. + /// + public class ConfigureAutomaticSpmEvolveAdvisorTaskRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The configuration details of the Automatic SPM Evolve Advisor task. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ConfigureAutomaticSpmEvolveAdvisorTaskDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ConfigureAutomaticSpmEvolveAdvisorTaskDetails ConfigureAutomaticSpmEvolveAdvisorTaskDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/CreateExternalExadataStorageConnectorRequest.cs b/Databasemanagement/requests/CreateExternalExadataStorageConnectorRequest.cs index d1a5c9bd05..4ceb0438b1 100644 --- a/Databasemanagement/requests/CreateExternalExadataStorageConnectorRequest.cs +++ b/Databasemanagement/requests/CreateExternalExadataStorageConnectorRequest.cs @@ -20,7 +20,7 @@ public class CreateExternalExadataStorageConnectorRequest : Oci.Common.IOciReque { /// - /// The details required to add connections to the storage servers. + /// The details required to add connections to the Exadata storage servers. /// /// /// Required diff --git a/Databasemanagement/requests/DisableAutomaticInitialPlanCaptureRequest.cs b/Databasemanagement/requests/DisableAutomaticInitialPlanCaptureRequest.cs new file mode 100644 index 0000000000..893613f6ef --- /dev/null +++ b/Databasemanagement/requests/DisableAutomaticInitialPlanCaptureRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use DisableAutomaticInitialPlanCapture request. + /// + public class DisableAutomaticInitialPlanCaptureRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to disable automatic initial plan capture. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisableAutomaticInitialPlanCaptureDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DisableAutomaticInitialPlanCaptureDetails DisableAutomaticInitialPlanCaptureDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/DisableAutomaticSpmEvolveAdvisorTaskRequest.cs b/Databasemanagement/requests/DisableAutomaticSpmEvolveAdvisorTaskRequest.cs new file mode 100644 index 0000000000..30da27143e --- /dev/null +++ b/Databasemanagement/requests/DisableAutomaticSpmEvolveAdvisorTaskRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use DisableAutomaticSpmEvolveAdvisorTask request. + /// + public class DisableAutomaticSpmEvolveAdvisorTaskRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to disable Automatic SPM Evolve Advisor task. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisableAutomaticSpmEvolveAdvisorTaskDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DisableAutomaticSpmEvolveAdvisorTaskDetails DisableAutomaticSpmEvolveAdvisorTaskDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/DisableExternalDbSystemStackMonitoringRequest.cs b/Databasemanagement/requests/DisableExternalDbSystemStackMonitoringRequest.cs new file mode 100644 index 0000000000..3d3cbc89e8 --- /dev/null +++ b/Databasemanagement/requests/DisableExternalDbSystemStackMonitoringRequest.cs @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use DisableExternalDbSystemStackMonitoring request. + /// + public class DisableExternalDbSystemStackMonitoringRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the external DB system. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ExternalDbSystemId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "externalDbSystemId")] + public string ExternalDbSystemId { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Databasemanagement/requests/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskRequest.cs b/Databasemanagement/requests/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskRequest.cs new file mode 100644 index 0000000000..5786db12c3 --- /dev/null +++ b/Databasemanagement/requests/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use DisableHighFrequencyAutomaticSpmEvolveAdvisorTask request. + /// + public class DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to disable high frequency Automatic SPM Evolve Advisor task. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/DisableSqlPlanBaselinesUsageRequest.cs b/Databasemanagement/requests/DisableSqlPlanBaselinesUsageRequest.cs new file mode 100644 index 0000000000..6fd14e6a5c --- /dev/null +++ b/Databasemanagement/requests/DisableSqlPlanBaselinesUsageRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use DisableSqlPlanBaselinesUsage request. + /// + public class DisableSqlPlanBaselinesUsageRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to disable SQL plan baseline usage. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisableSqlPlanBaselinesUsageDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DisableSqlPlanBaselinesUsageDetails DisableSqlPlanBaselinesUsageDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/DiscoverExternalExadataInfrastructureRequest.cs b/Databasemanagement/requests/DiscoverExternalExadataInfrastructureRequest.cs index a46cd95d7f..69d1215d64 100644 --- a/Databasemanagement/requests/DiscoverExternalExadataInfrastructureRequest.cs +++ b/Databasemanagement/requests/DiscoverExternalExadataInfrastructureRequest.cs @@ -20,7 +20,7 @@ public class DiscoverExternalExadataInfrastructureRequest : Oci.Common.IOciReque { /// - /// The details required to discover and monitor the Exadata system infrastructure. + /// The details required to discover and monitor the Exadata infrastructure. /// /// /// Required diff --git a/Databasemanagement/requests/DropSqlPlanBaselinesRequest.cs b/Databasemanagement/requests/DropSqlPlanBaselinesRequest.cs new file mode 100644 index 0000000000..9e2951d740 --- /dev/null +++ b/Databasemanagement/requests/DropSqlPlanBaselinesRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use DropSqlPlanBaselines request. + /// + public class DropSqlPlanBaselinesRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to drop SQL plan baselines. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DropSqlPlanBaselinesDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DropSqlPlanBaselinesDetails DropSqlPlanBaselinesDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/EnableAutomaticInitialPlanCaptureRequest.cs b/Databasemanagement/requests/EnableAutomaticInitialPlanCaptureRequest.cs new file mode 100644 index 0000000000..02153b45d2 --- /dev/null +++ b/Databasemanagement/requests/EnableAutomaticInitialPlanCaptureRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use EnableAutomaticInitialPlanCapture request. + /// + public class EnableAutomaticInitialPlanCaptureRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to enable automatic initial plan capture. + /// + /// + /// Required + /// + [Required(ErrorMessage = "EnableAutomaticInitialPlanCaptureDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public EnableAutomaticInitialPlanCaptureDetails EnableAutomaticInitialPlanCaptureDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/EnableAutomaticSpmEvolveAdvisorTaskRequest.cs b/Databasemanagement/requests/EnableAutomaticSpmEvolveAdvisorTaskRequest.cs new file mode 100644 index 0000000000..7005e8326d --- /dev/null +++ b/Databasemanagement/requests/EnableAutomaticSpmEvolveAdvisorTaskRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use EnableAutomaticSpmEvolveAdvisorTask request. + /// + public class EnableAutomaticSpmEvolveAdvisorTaskRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to enable Automatic SPM Evolve Advisor task. + /// + /// + /// Required + /// + [Required(ErrorMessage = "EnableAutomaticSpmEvolveAdvisorTaskDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public EnableAutomaticSpmEvolveAdvisorTaskDetails EnableAutomaticSpmEvolveAdvisorTaskDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/EnableExternalDbSystemStackMonitoringRequest.cs b/Databasemanagement/requests/EnableExternalDbSystemStackMonitoringRequest.cs new file mode 100644 index 0000000000..4171a93f19 --- /dev/null +++ b/Databasemanagement/requests/EnableExternalDbSystemStackMonitoringRequest.cs @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use EnableExternalDbSystemStackMonitoring request. + /// + public class EnableExternalDbSystemStackMonitoringRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the external DB system. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ExternalDbSystemId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "externalDbSystemId")] + public string ExternalDbSystemId { get; set; } + + /// + /// The details required to enable Stack Monitoring for an external DB system. + /// + /// + /// Required + /// + [Required(ErrorMessage = "EnableExternalDbSystemStackMonitoringDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public EnableExternalDbSystemStackMonitoringDetails EnableExternalDbSystemStackMonitoringDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Databasemanagement/requests/EnableExternalExadataInfrastructureManagementRequest.cs b/Databasemanagement/requests/EnableExternalExadataInfrastructureManagementRequest.cs index 9c7f5b9660..a398c42caf 100644 --- a/Databasemanagement/requests/EnableExternalExadataInfrastructureManagementRequest.cs +++ b/Databasemanagement/requests/EnableExternalExadataInfrastructureManagementRequest.cs @@ -30,7 +30,7 @@ public class EnableExternalExadataInfrastructureManagementRequest : Oci.Common.I public string ExternalExadataInfrastructureId { get; set; } /// - /// The details required to enable the management for the Exadata infrastructure. + /// The details required to enable management for the Exadata infrastructure. /// /// /// Required diff --git a/Databasemanagement/requests/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskRequest.cs b/Databasemanagement/requests/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskRequest.cs new file mode 100644 index 0000000000..9330edb2f7 --- /dev/null +++ b/Databasemanagement/requests/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use EnableHighFrequencyAutomaticSpmEvolveAdvisorTask request. + /// + public class EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to enable high frequency Automatic SPM Evolve Advisor task. + /// + /// + /// Required + /// + [Required(ErrorMessage = "EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/EnableSqlPlanBaselinesUsageRequest.cs b/Databasemanagement/requests/EnableSqlPlanBaselinesUsageRequest.cs new file mode 100644 index 0000000000..a833a610ff --- /dev/null +++ b/Databasemanagement/requests/EnableSqlPlanBaselinesUsageRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use EnableSqlPlanBaselinesUsage request. + /// + public class EnableSqlPlanBaselinesUsageRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to enable SQL plan baseline usage. + /// + /// + /// Required + /// + [Required(ErrorMessage = "EnableSqlPlanBaselinesUsageDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public EnableSqlPlanBaselinesUsageDetails EnableSqlPlanBaselinesUsageDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/GetSqlPlanBaselineConfigurationRequest.cs b/Databasemanagement/requests/GetSqlPlanBaselineConfigurationRequest.cs new file mode 100644 index 0000000000..8ab71aa46f --- /dev/null +++ b/Databasemanagement/requests/GetSqlPlanBaselineConfigurationRequest.cs @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use GetSqlPlanBaselineConfiguration request. + /// + public class GetSqlPlanBaselineConfigurationRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/GetSqlPlanBaselineRequest.cs b/Databasemanagement/requests/GetSqlPlanBaselineRequest.cs new file mode 100644 index 0000000000..f278b967bd --- /dev/null +++ b/Databasemanagement/requests/GetSqlPlanBaselineRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use GetSqlPlanBaseline request. + /// + public class GetSqlPlanBaselineRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The plan name of the SQL plan baseline. + /// + /// + /// Required + /// + [Required(ErrorMessage = "PlanName is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "planName")] + public string PlanName { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/ListCursorCacheStatementsRequest.cs b/Databasemanagement/requests/ListCursorCacheStatementsRequest.cs new file mode 100644 index 0000000000..2120e5602a --- /dev/null +++ b/Databasemanagement/requests/ListCursorCacheStatementsRequest.cs @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use ListCursorCacheStatements request. + /// + public class ListCursorCacheStatementsRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// A filter to return all the SQL plan baselines that match the SQL text. By default, the search + /// is case insensitive. To run an exact or case-sensitive search, double-quote the search string. + /// You may also use the '%' symbol as a wildcard. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sqlText")] + public string SqlText { get; set; } + + /// + /// The page token representing the page from where the next set of paginated results + /// are retrieved. This is usually retrieved from a previous list call. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The maximum number of records returned in the paginated response. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// + /// The option to sort the SQL statement summary data. + /// + /// + public enum SortByEnum { + [EnumMember(Value = "sqlId")] + SqlId, + [EnumMember(Value = "schema")] + Schema + }; + + /// + /// The option to sort the SQL statement summary data. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the default order. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/ListSqlPlanBaselineJobsRequest.cs b/Databasemanagement/requests/ListSqlPlanBaselineJobsRequest.cs new file mode 100644 index 0000000000..238be72875 --- /dev/null +++ b/Databasemanagement/requests/ListSqlPlanBaselineJobsRequest.cs @@ -0,0 +1,88 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use ListSqlPlanBaselineJobs request. + /// + public class ListSqlPlanBaselineJobsRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// A filter to return the SQL plan baseline jobs that match the name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "name")] + public string Name { get; set; } + + /// + /// The page token representing the page from where the next set of paginated results + /// are retrieved. This is usually retrieved from a previous list call. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The maximum number of records returned in the paginated response. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// + /// The field to sort information by. Only one sortOrder can be used. The default sort order + /// for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is ascending. + /// The \u2018NAME\u2019 sort order is case-sensitive. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "TIMECREATED")] + Timecreated, + [EnumMember(Value = "NAME")] + Name + }; + + /// + /// The field to sort information by. Only one sortOrder can be used. The default sort order + /// for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is ascending. + /// The \u2018NAME\u2019 sort order is case-sensitive. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the default order. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/ListSqlPlanBaselinesRequest.cs b/Databasemanagement/requests/ListSqlPlanBaselinesRequest.cs new file mode 100644 index 0000000000..c1703b2947 --- /dev/null +++ b/Databasemanagement/requests/ListSqlPlanBaselinesRequest.cs @@ -0,0 +1,143 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use ListSqlPlanBaselines request. + /// + public class ListSqlPlanBaselinesRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// A filter to return only SQL plan baselines that match the plan name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "planName")] + public string PlanName { get; set; } + + /// + /// A filter to return all the SQL plan baselines for the specified SQL handle. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sqlHandle")] + public string SqlHandle { get; set; } + + /// + /// A filter to return all the SQL plan baselines that match the SQL text. By default, the search + /// is case insensitive. To run an exact or case-sensitive search, double-quote the search string. + /// You may also use the '%' symbol as a wildcard. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sqlText")] + public string SqlText { get; set; } + + /// + /// A filter to return only SQL plan baselines that are either enabled or not enabled. + /// By default, all SQL plan baselines are returned. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + /// + /// A filter to return only SQL plan baselines that are either accepted or not accepted. + /// By default, all SQL plan baselines are returned. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isAccepted")] + public System.Nullable IsAccepted { get; set; } + + /// + /// A filter to return only SQL plan baselines that were either reproduced or + /// not reproduced by the optimizer. By default, all SQL plan baselines are returned. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isReproduced")] + public System.Nullable IsReproduced { get; set; } + + /// + /// A filter to return only SQL plan baselines that are either fixed or not fixed. + /// By default, all SQL plan baselines are returned. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isFixed")] + public System.Nullable IsFixed { get; set; } + + /// + /// A filter to return only SQL plan baselines that are either adaptive or not adaptive. + /// By default, all SQL plan baselines are returned. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isAdaptive")] + public System.Nullable IsAdaptive { get; set; } + + /// + /// A filter to return all the SQL plan baselines that match the origin. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "origin")] + public System.Nullable Origin { get; set; } + + /// + /// The page token representing the page from where the next set of paginated results + /// are retrieved. This is usually retrieved from a previous list call. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The maximum number of records returned in the paginated response. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// + /// The option to sort the SQL plan baseline summary data. + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "timeLastModified")] + TimeLastModified + }; + + /// + /// The option to sort the SQL plan baseline summary data. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the default order. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/LoadSqlPlanBaselinesFromAwrRequest.cs b/Databasemanagement/requests/LoadSqlPlanBaselinesFromAwrRequest.cs new file mode 100644 index 0000000000..81716f8596 --- /dev/null +++ b/Databasemanagement/requests/LoadSqlPlanBaselinesFromAwrRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use LoadSqlPlanBaselinesFromAwr request. + /// + public class LoadSqlPlanBaselinesFromAwrRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details required to load plans from Automatic Workload Repository (AWR). + /// + /// + /// Required + /// + [Required(ErrorMessage = "LoadSqlPlanBaselinesFromAwrDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public LoadSqlPlanBaselinesFromAwrDetails LoadSqlPlanBaselinesFromAwrDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/LoadSqlPlanBaselinesFromCursorCacheRequest.cs b/Databasemanagement/requests/LoadSqlPlanBaselinesFromCursorCacheRequest.cs new file mode 100644 index 0000000000..68c14497bd --- /dev/null +++ b/Databasemanagement/requests/LoadSqlPlanBaselinesFromCursorCacheRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use LoadSqlPlanBaselinesFromCursorCache request. + /// + public class LoadSqlPlanBaselinesFromCursorCacheRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The details of SQL statements and plans to be loaded from cursor cache. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LoadSqlPlanBaselinesFromCursorCacheDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public LoadSqlPlanBaselinesFromCursorCacheDetails LoadSqlPlanBaselinesFromCursorCacheDetails { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/SummarizeSqlPlanBaselinesByLastExecutionRequest.cs b/Databasemanagement/requests/SummarizeSqlPlanBaselinesByLastExecutionRequest.cs new file mode 100644 index 0000000000..28e5ad72c2 --- /dev/null +++ b/Databasemanagement/requests/SummarizeSqlPlanBaselinesByLastExecutionRequest.cs @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use SummarizeSqlPlanBaselinesByLastExecution request. + /// + public class SummarizeSqlPlanBaselinesByLastExecutionRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The page token representing the page from where the next set of paginated results + /// are retrieved. This is usually retrieved from a previous list call. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/SummarizeSqlPlanBaselinesRequest.cs b/Databasemanagement/requests/SummarizeSqlPlanBaselinesRequest.cs new file mode 100644 index 0000000000..ade011a839 --- /dev/null +++ b/Databasemanagement/requests/SummarizeSqlPlanBaselinesRequest.cs @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Requests +{ + /// + /// Click here to see an example of how to use SummarizeSqlPlanBaselines request. + /// + public class SummarizeSqlPlanBaselinesRequest : Oci.Common.IOciRequest + { + + /// + /// The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Managed Database. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedDatabaseId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedDatabaseId")] + public string ManagedDatabaseId { get; set; } + + /// + /// The page token representing the page from where the next set of paginated results + /// are retrieved. This is usually retrieved from a previous list call. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The client request ID for tracing. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Databasemanagement/requests/UpdateExternalExadataStorageConnectorRequest.cs b/Databasemanagement/requests/UpdateExternalExadataStorageConnectorRequest.cs index bdda83f130..bb76e52bbd 100644 --- a/Databasemanagement/requests/UpdateExternalExadataStorageConnectorRequest.cs +++ b/Databasemanagement/requests/UpdateExternalExadataStorageConnectorRequest.cs @@ -30,7 +30,7 @@ public class UpdateExternalExadataStorageConnectorRequest : Oci.Common.IOciReque public string ExternalExadataStorageConnectorId { get; set; } /// - /// The details required to add connections to the storage servers. + /// The details required to update connections to the Exadata storage servers. /// /// /// Required diff --git a/Databasemanagement/responses/ChangePlanRetentionResponse.cs b/Databasemanagement/responses/ChangePlanRetentionResponse.cs new file mode 100644 index 0000000000..44964eb7fa --- /dev/null +++ b/Databasemanagement/responses/ChangePlanRetentionResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class ChangePlanRetentionResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/ChangeSpaceBudgetResponse.cs b/Databasemanagement/responses/ChangeSpaceBudgetResponse.cs new file mode 100644 index 0000000000..a1d9ab9e69 --- /dev/null +++ b/Databasemanagement/responses/ChangeSpaceBudgetResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class ChangeSpaceBudgetResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/ChangeSqlPlanBaselinesAttributesResponse.cs b/Databasemanagement/responses/ChangeSqlPlanBaselinesAttributesResponse.cs new file mode 100644 index 0000000000..62676fe6a7 --- /dev/null +++ b/Databasemanagement/responses/ChangeSqlPlanBaselinesAttributesResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class ChangeSqlPlanBaselinesAttributesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/ConfigureAutomaticCaptureFiltersResponse.cs b/Databasemanagement/responses/ConfigureAutomaticCaptureFiltersResponse.cs new file mode 100644 index 0000000000..bf39fa3414 --- /dev/null +++ b/Databasemanagement/responses/ConfigureAutomaticCaptureFiltersResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class ConfigureAutomaticCaptureFiltersResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/ConfigureAutomaticSpmEvolveAdvisorTaskResponse.cs b/Databasemanagement/responses/ConfigureAutomaticSpmEvolveAdvisorTaskResponse.cs new file mode 100644 index 0000000000..339f2bf792 --- /dev/null +++ b/Databasemanagement/responses/ConfigureAutomaticSpmEvolveAdvisorTaskResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class ConfigureAutomaticSpmEvolveAdvisorTaskResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/DisableAutomaticInitialPlanCaptureResponse.cs b/Databasemanagement/responses/DisableAutomaticInitialPlanCaptureResponse.cs new file mode 100644 index 0000000000..1ecdeef971 --- /dev/null +++ b/Databasemanagement/responses/DisableAutomaticInitialPlanCaptureResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class DisableAutomaticInitialPlanCaptureResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/DisableAutomaticSpmEvolveAdvisorTaskResponse.cs b/Databasemanagement/responses/DisableAutomaticSpmEvolveAdvisorTaskResponse.cs new file mode 100644 index 0000000000..3ab9d63ba2 --- /dev/null +++ b/Databasemanagement/responses/DisableAutomaticSpmEvolveAdvisorTaskResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class DisableAutomaticSpmEvolveAdvisorTaskResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/DisableExternalDbSystemStackMonitoringResponse.cs b/Databasemanagement/responses/DisableExternalDbSystemStackMonitoringResponse.cs new file mode 100644 index 0000000000..08600b7300 --- /dev/null +++ b/Databasemanagement/responses/DisableExternalDbSystemStackMonitoringResponse.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.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class DisableExternalDbSystemStackMonitoringResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// 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; } + + + + } +} diff --git a/Databasemanagement/responses/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskResponse.cs b/Databasemanagement/responses/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskResponse.cs new file mode 100644 index 0000000000..5ffe7b93b4 --- /dev/null +++ b/Databasemanagement/responses/DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/DisableSqlPlanBaselinesUsageResponse.cs b/Databasemanagement/responses/DisableSqlPlanBaselinesUsageResponse.cs new file mode 100644 index 0000000000..057dd24a4d --- /dev/null +++ b/Databasemanagement/responses/DisableSqlPlanBaselinesUsageResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class DisableSqlPlanBaselinesUsageResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/DropSqlPlanBaselinesResponse.cs b/Databasemanagement/responses/DropSqlPlanBaselinesResponse.cs new file mode 100644 index 0000000000..0ee0e14bde --- /dev/null +++ b/Databasemanagement/responses/DropSqlPlanBaselinesResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class DropSqlPlanBaselinesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/EnableAutomaticInitialPlanCaptureResponse.cs b/Databasemanagement/responses/EnableAutomaticInitialPlanCaptureResponse.cs new file mode 100644 index 0000000000..c17e46163b --- /dev/null +++ b/Databasemanagement/responses/EnableAutomaticInitialPlanCaptureResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class EnableAutomaticInitialPlanCaptureResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/EnableAutomaticSpmEvolveAdvisorTaskResponse.cs b/Databasemanagement/responses/EnableAutomaticSpmEvolveAdvisorTaskResponse.cs new file mode 100644 index 0000000000..b7ae64fa54 --- /dev/null +++ b/Databasemanagement/responses/EnableAutomaticSpmEvolveAdvisorTaskResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class EnableAutomaticSpmEvolveAdvisorTaskResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/EnableExternalDbSystemStackMonitoringResponse.cs b/Databasemanagement/responses/EnableExternalDbSystemStackMonitoringResponse.cs new file mode 100644 index 0000000000..2b2f3f81b0 --- /dev/null +++ b/Databasemanagement/responses/EnableExternalDbSystemStackMonitoringResponse.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.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class EnableExternalDbSystemStackMonitoringResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// 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; } + + + + } +} diff --git a/Databasemanagement/responses/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskResponse.cs b/Databasemanagement/responses/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskResponse.cs new file mode 100644 index 0000000000..7942549f0a --- /dev/null +++ b/Databasemanagement/responses/EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/EnableSqlPlanBaselinesUsageResponse.cs b/Databasemanagement/responses/EnableSqlPlanBaselinesUsageResponse.cs new file mode 100644 index 0000000000..5648542676 --- /dev/null +++ b/Databasemanagement/responses/EnableSqlPlanBaselinesUsageResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class EnableSqlPlanBaselinesUsageResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Databasemanagement/responses/GetSqlPlanBaselineConfigurationResponse.cs b/Databasemanagement/responses/GetSqlPlanBaselineConfigurationResponse.cs new file mode 100644 index 0000000000..1c6de11f4a --- /dev/null +++ b/Databasemanagement/responses/GetSqlPlanBaselineConfigurationResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class GetSqlPlanBaselineConfigurationResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlPlanBaselineConfiguration instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlPlanBaselineConfiguration SqlPlanBaselineConfiguration { get; set; } + + } +} diff --git a/Databasemanagement/responses/GetSqlPlanBaselineResponse.cs b/Databasemanagement/responses/GetSqlPlanBaselineResponse.cs new file mode 100644 index 0000000000..82bbab095e --- /dev/null +++ b/Databasemanagement/responses/GetSqlPlanBaselineResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class GetSqlPlanBaselineResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlPlanBaseline instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlPlanBaseline SqlPlanBaseline { get; set; } + + } +} diff --git a/Databasemanagement/responses/ListCursorCacheStatementsResponse.cs b/Databasemanagement/responses/ListCursorCacheStatementsResponse.cs new file mode 100644 index 0000000000..e4ba0c718c --- /dev/null +++ b/Databasemanagement/responses/ListCursorCacheStatementsResponse.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class ListCursorCacheStatementsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For pagination of a list of items. When paging through a list, if this header appears in the response, + /// then a partial list might have been returned. Include this value as the `page` parameter for the + /// subsequent GET request to get the next batch of items. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned CursorCacheStatementCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public CursorCacheStatementCollection CursorCacheStatementCollection { get; set; } + + } +} diff --git a/Databasemanagement/responses/ListSqlPlanBaselineJobsResponse.cs b/Databasemanagement/responses/ListSqlPlanBaselineJobsResponse.cs new file mode 100644 index 0000000000..8972d655e4 --- /dev/null +++ b/Databasemanagement/responses/ListSqlPlanBaselineJobsResponse.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class ListSqlPlanBaselineJobsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For pagination of a list of items. When paging through a list, if this header appears in the response, + /// then a partial list might have been returned. Include this value as the `page` parameter for the + /// subsequent GET request to get the next batch of items. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned SqlPlanBaselineJobCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlPlanBaselineJobCollection SqlPlanBaselineJobCollection { get; set; } + + } +} diff --git a/Databasemanagement/responses/ListSqlPlanBaselinesResponse.cs b/Databasemanagement/responses/ListSqlPlanBaselinesResponse.cs new file mode 100644 index 0000000000..11f748b5c9 --- /dev/null +++ b/Databasemanagement/responses/ListSqlPlanBaselinesResponse.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class ListSqlPlanBaselinesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For pagination of a list of items. When paging through a list, if this header appears in the response, + /// then a partial list might have been returned. Include this value as the `page` parameter for the + /// subsequent GET request to get the next batch of items. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned SqlPlanBaselineCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlPlanBaselineCollection SqlPlanBaselineCollection { get; set; } + + } +} diff --git a/Databasemanagement/responses/LoadSqlPlanBaselinesFromAwrResponse.cs b/Databasemanagement/responses/LoadSqlPlanBaselinesFromAwrResponse.cs new file mode 100644 index 0000000000..85c400beab --- /dev/null +++ b/Databasemanagement/responses/LoadSqlPlanBaselinesFromAwrResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class LoadSqlPlanBaselinesFromAwrResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlPlanBaselineJob instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlPlanBaselineJob SqlPlanBaselineJob { get; set; } + + } +} diff --git a/Databasemanagement/responses/LoadSqlPlanBaselinesFromCursorCacheResponse.cs b/Databasemanagement/responses/LoadSqlPlanBaselinesFromCursorCacheResponse.cs new file mode 100644 index 0000000000..35565bcff3 --- /dev/null +++ b/Databasemanagement/responses/LoadSqlPlanBaselinesFromCursorCacheResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class LoadSqlPlanBaselinesFromCursorCacheResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlPlanBaselineJob instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlPlanBaselineJob SqlPlanBaselineJob { get; set; } + + } +} diff --git a/Databasemanagement/responses/SummarizeSqlPlanBaselinesByLastExecutionResponse.cs b/Databasemanagement/responses/SummarizeSqlPlanBaselinesByLastExecutionResponse.cs new file mode 100644 index 0000000000..8e1c86c42c --- /dev/null +++ b/Databasemanagement/responses/SummarizeSqlPlanBaselinesByLastExecutionResponse.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class SummarizeSqlPlanBaselinesByLastExecutionResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For pagination of a list of items. When paging through a list, if this header appears in the response, + /// then a partial list might have been returned. Include this value as the `page` parameter for the + /// subsequent GET request to get the next batch of items. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned SqlPlanBaselineAggregationCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlPlanBaselineAggregationCollection SqlPlanBaselineAggregationCollection { get; set; } + + } +} diff --git a/Databasemanagement/responses/SummarizeSqlPlanBaselinesResponse.cs b/Databasemanagement/responses/SummarizeSqlPlanBaselinesResponse.cs new file mode 100644 index 0000000000..2a8d751491 --- /dev/null +++ b/Databasemanagement/responses/SummarizeSqlPlanBaselinesResponse.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.DatabasemanagementService.Models; + +namespace Oci.DatabasemanagementService.Responses +{ + public class SummarizeSqlPlanBaselinesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For pagination of a list of items. When paging through a list, if this header appears in the response, + /// then a partial list might have been returned. Include this value as the `page` parameter for the + /// subsequent GET request to get the next batch of items. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned SqlPlanBaselineAggregationCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlPlanBaselineAggregationCollection SqlPlanBaselineAggregationCollection { get; set; } + + } +} diff --git a/Dataflow/DataFlowClient.cs b/Dataflow/DataFlowClient.cs index 9b607ea91f..78d87ac4ab 100644 --- a/Dataflow/DataFlowClient.cs +++ b/Dataflow/DataFlowClient.cs @@ -307,6 +307,62 @@ public async Task ChangeRunCompartment(ChangeRunCo } } + /// + /// Moves an Sql Endpoint from one compartment to another. When provided, If-Match is checked against ETag values of the Sql Endpoint. + /// + /// 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 ChangeSqlEndpointCompartment API. + public async Task ChangeSqlEndpointCompartment(ChangeSqlEndpointCompartmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called changeSqlEndpointCompartment"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/sqlEndpoints/{sqlEndpointId}/actions/changeCompartment".Trim('/'))); + HttpMethod method = new HttpMethod("POST"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "DataFlow", + OperationName = "ChangeSqlEndpointCompartment", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/SqlEndpoint/ChangeSqlEndpointCompartment", + 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($"ChangeSqlEndpointCompartment failed with error: {e.Message}"); + throw; + } + } + /// /// Creates an application. /// @@ -535,6 +591,62 @@ public async Task CreateRun(CreateRunRequest request, RetryCo } } + /// + /// Create a new Sql Endpoint. + /// + /// 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 CreateSqlEndpoint API. + public async Task CreateSqlEndpoint(CreateSqlEndpointRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called createSqlEndpoint"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/sqlEndpoints".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 = "DataFlow", + OperationName = "CreateSqlEndpoint", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"CreateSqlEndpoint failed with error: {e.Message}"); + throw; + } + } + /// /// Executes a statement for a Session run. /// @@ -821,6 +933,62 @@ public async Task DeleteRun(DeleteRunRequest request, RetryCo } } + /// + /// Delete a Sql Endpoint resource, identified by the SqlEndpoint id. + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use DeleteSqlEndpoint API. + public async Task DeleteSqlEndpoint(DeleteSqlEndpointRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called deleteSqlEndpoint"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/sqlEndpoints/{sqlEndpointId}".Trim('/'))); + HttpMethod method = new HttpMethod("DELETE"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "DataFlow", + OperationName = "DeleteSqlEndpoint", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/SqlEndpoint/DeleteSqlEndpoint", + 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($"DeleteSqlEndpoint failed with error: {e.Message}"); + throw; + } + } + /// /// Cancels the specified statement for a Session run. /// @@ -1163,6 +1331,62 @@ public async Task GetRunLog(GetRunLogRequest request, RetryCo } } + /// + /// Retrieves a SQL Endpoint using a sqlEndpointId. + /// + /// 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 GetSqlEndpoint API. + public async Task GetSqlEndpoint(GetSqlEndpointRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getSqlEndpoint"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/sqlEndpoints/{sqlEndpointId}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "DataFlow", + OperationName = "GetSqlEndpoint", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/SqlEndpoint/GetSqlEndpoint", + 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($"GetSqlEndpoint failed with error: {e.Message}"); + throw; + } + } + /// /// Retrieves the statement corresponding to the `statementId` for a Session run specified by `runId`. /// @@ -1562,6 +1786,65 @@ public async Task ListRuns(ListRunsRequest request, RetryConfi } } + /// + /// Lists all Sql Endpoints in the specified compartment. + /// The query must include compartmentId or sqlEndpointId. + /// If the query does not include either compartmentId or sqlEndpointId, an error is returned. + /// + /// + /// 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 ListSqlEndpoints API. + public async Task ListSqlEndpoints(ListSqlEndpointsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listSqlEndpoints"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/sqlEndpoints".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "DataFlow", + OperationName = "ListSqlEndpoints", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/SqlEndpointCollection/ListSqlEndpoints", + 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($"ListSqlEndpoints failed with error: {e.Message}"); + throw; + } + } + /// /// Lists all statements for a Session run. /// @@ -2136,5 +2419,61 @@ public async Task UpdateRun(UpdateRunRequest request, RetryCo } } + /// + /// Update a Sql Endpoint resource, identified by the SqlEndpoint id. + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use UpdateSqlEndpoint API. + public async Task UpdateSqlEndpoint(UpdateSqlEndpointRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateSqlEndpoint"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/sqlEndpoints/{sqlEndpointId}".Trim('/'))); + HttpMethod method = new HttpMethod("PUT"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "DataFlow", + OperationName = "UpdateSqlEndpoint", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-flow/20200129/SqlEndpoint/UpdateSqlEndpoint", + 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($"UpdateSqlEndpoint failed with error: {e.Message}"); + throw; + } + } + } } diff --git a/Dataflow/DataFlowPaginators.cs b/Dataflow/DataFlowPaginators.cs index 94f6001a5b..c80d379510 100644 --- a/Dataflow/DataFlowPaginators.cs +++ b/Dataflow/DataFlowPaginators.cs @@ -294,6 +294,55 @@ public IEnumerable ListRunsRecordEnumerator(ListRunsRequest request, ); } + /// + /// Creates a new enumerable which will iterate over the responses received from the ListSqlEndpoints operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListSqlEndpointsResponseEnumerator(ListSqlEndpointsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListSqlEndpoints(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the SqlEndpointSummary objects + /// contained in responses from the ListSqlEndpoints operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListSqlEndpointsRecordEnumerator(ListSqlEndpointsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListSqlEndpoints(request, retryConfiguration, cancellationToken), + response => response.SqlEndpointCollection.Items + ); + } + /// /// Creates a new enumerable which will iterate over the responses received from the ListStatements operation. This enumerable /// will fetch more data from the server as needed. diff --git a/Dataflow/DataFlowWaiters.cs b/Dataflow/DataFlowWaiters.cs index 43c4bad723..2b91c7775a 100644 --- a/Dataflow/DataFlowWaiters.cs +++ b/Dataflow/DataFlowWaiters.cs @@ -143,6 +143,34 @@ public Waiter ForRun(GetRunRequest request, Waite /// Request to send. /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states /// a new Oci.common.Waiter instance + public Waiter ForSqlEndpoint(GetSqlEndpointRequest request, params SqlEndpointLifecycleState[] targetStates) + { + return this.ForSqlEndpoint(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForSqlEndpoint(GetSqlEndpointRequest request, WaiterConfiguration config, params SqlEndpointLifecycleState[] targetStates) + { + var agent = new WaiterAgent( + request, + request => client.GetSqlEndpoint(request), + response => targetStates.Contains(response.SqlEndpoint.LifecycleState.Value), + targetStates.Contains(SqlEndpointLifecycleState.Deleted) + ); + return new Waiter(config, agent); + } + /// + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance public Waiter ForStatement(GetStatementRequest request, params StatementLifecycleState[] targetStates) { return this.ForStatement(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); diff --git a/Dataflow/models/ChangeSqlEndpointCompartmentDetails.cs b/Dataflow/models/ChangeSqlEndpointCompartmentDetails.cs new file mode 100644 index 0000000000..048bc2ae0d --- /dev/null +++ b/Dataflow/models/ChangeSqlEndpointCompartmentDetails.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DataflowService.Models +{ + /// + /// Details for changing the compartment of a SQL Endpoint. + /// + public class ChangeSqlEndpointCompartmentDetails + { + + /// + /// The OCID of the compartment into which the resource should be moved. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + } +} diff --git a/Dataflow/models/CreateSqlEndpointDetails.cs b/Dataflow/models/CreateSqlEndpointDetails.cs new file mode 100644 index 0000000000..e1379c8961 --- /dev/null +++ b/Dataflow/models/CreateSqlEndpointDetails.cs @@ -0,0 +1,167 @@ +/* + * 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.DataflowService.Models +{ + /// + /// The information about a new SQL Endpoint. + /// + public class CreateSqlEndpointDetails + { + + /// + /// The identifier of the compartment used with the SQL Endpoint. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The SQL Endpoint name, which can be changed. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The description of CreateSQLEndpointDetails. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The version of the SQL Endpoint. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlEndpointVersion is required.")] + [JsonProperty(PropertyName = "sqlEndpointVersion")] + public string SqlEndpointVersion { get; set; } + + /// + /// The shape of the SQL Endpoint driver instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DriverShape is required.")] + [JsonProperty(PropertyName = "driverShape")] + public string DriverShape { get; set; } + + [JsonProperty(PropertyName = "driverShapeConfig")] + public ShapeConfig DriverShapeConfig { get; set; } + + /// + /// The shape of the SQL Endpoint worker instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ExecutorShape is required.")] + [JsonProperty(PropertyName = "executorShape")] + public string ExecutorShape { get; set; } + + [JsonProperty(PropertyName = "executorShapeConfig")] + public ShapeConfig ExecutorShapeConfig { get; set; } + + /// + /// The minimum number of executors. + /// + /// + /// Required + /// + [Required(ErrorMessage = "MinExecutorCount is required.")] + [JsonProperty(PropertyName = "minExecutorCount")] + public System.Nullable MinExecutorCount { get; set; } + + /// + /// The maximum number of executors. + /// + /// + /// Required + /// + [Required(ErrorMessage = "MaxExecutorCount is required.")] + [JsonProperty(PropertyName = "maxExecutorCount")] + public System.Nullable MaxExecutorCount { get; set; } + + /// + /// Metastore OCID + /// + /// + /// Required + /// + [Required(ErrorMessage = "MetastoreId is required.")] + [JsonProperty(PropertyName = "metastoreId")] + public string MetastoreId { get; set; } + + /// + /// OCI lake OCID + /// + /// + /// Required + /// + [Required(ErrorMessage = "LakeId is required.")] + [JsonProperty(PropertyName = "lakeId")] + public string LakeId { get; set; } + + /// + /// The warehouse bucket URI. It is a Oracle Cloud Infrastructure Object Storage bucket URI as defined here https://docs.oracle.com/en/cloud/paas/atp-cloud/atpud/object-storage-uris.html + /// + /// + /// Required + /// + [Required(ErrorMessage = "WarehouseBucketUri is required.")] + [JsonProperty(PropertyName = "warehouseBucketUri")] + public string WarehouseBucketUri { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// The Spark configuration passed to the running process. + /// See https://spark.apache.org/docs/latest/configuration.html#available-properties. + /// Example: { "spark.app.name" : "My App Name", "spark.shuffle.io.maxRetries" : "4" }Note: Not all Spark properties are permitted to be set. Attempting to set a property that isnot allowed to be overwritten will cause a 400 status to be returned. + /// + [JsonProperty(PropertyName = "sparkAdvancedConfigurations")] + public System.Collections.Generic.Dictionary SparkAdvancedConfigurations { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "NetworkConfiguration is required.")] + [JsonProperty(PropertyName = "networkConfiguration")] + public SqlEndpointNetworkConfiguration NetworkConfiguration { get; set; } + + } +} diff --git a/Dataflow/models/IpNotationType.cs b/Dataflow/models/IpNotationType.cs new file mode 100644 index 0000000000..764d316069 --- /dev/null +++ b/Dataflow/models/IpNotationType.cs @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.DataflowService.Models +{ + /// + /// The IP notation types for secure access. + /// + public enum IpNotationType { + /// 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 = "IP_ADDRESS")] + IpAddress, + [EnumMember(Value = "CIDR")] + Cidr, + [EnumMember(Value = "VCN")] + Vcn, + [EnumMember(Value = "VCN_OCID")] + VcnOcid + } +} diff --git a/Dataflow/models/NetworkType.cs b/Dataflow/models/NetworkType.cs new file mode 100644 index 0000000000..510501059a --- /dev/null +++ b/Dataflow/models/NetworkType.cs @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.DataflowService.Models +{ + /// + /// The possible network types. + /// + public enum NetworkType { + /// 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 = "VCN")] + Vcn, + [EnumMember(Value = "SECURE_ACCESS")] + SecureAccess + } +} diff --git a/Dataflow/models/SecureAccessControlRule.cs b/Dataflow/models/SecureAccessControlRule.cs new file mode 100644 index 0000000000..d7e7b87c75 --- /dev/null +++ b/Dataflow/models/SecureAccessControlRule.cs @@ -0,0 +1,52 @@ +/* + * 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.DataflowService.Models +{ + /// + /// The access control rule for SECURE_ACCESS network type selection. + /// + public class SecureAccessControlRule + { + + /// + /// The type of IP notation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "IpNotation is required.")] + [JsonProperty(PropertyName = "ipNotation")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable IpNotation { get; set; } + + /// + /// The associated value of the selected IP notation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Value is required.")] + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + /// + /// A comma-separated IP or CIDR address for VCN OCID IP notation selection. + /// + [JsonProperty(PropertyName = "vcnIps")] + public string VcnIps { get; set; } + + } +} diff --git a/Dataflow/models/SqlEndpoint.cs b/Dataflow/models/SqlEndpoint.cs new file mode 100644 index 0000000000..0c915a11e1 --- /dev/null +++ b/Dataflow/models/SqlEndpoint.cs @@ -0,0 +1,224 @@ +/* + * 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.DataflowService.Models +{ + /// + /// The description of a SQL Endpoint. + /// + public class SqlEndpoint + { + + /// + /// The provision identifier that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The SQL Endpoint name, which can be changed. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The OCID of a compartment. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The JDBC URL field. For example, jdbc:spark://{serviceFQDN}:443/default;SparkServerType=DFI + /// + [JsonProperty(PropertyName = "jdbcEndpointUrl")] + public string JdbcEndpointUrl { get; set; } + + /// + /// The time the Sql Endpoint was created. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The time the Sql Endpoint was updated. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeUpdated")] + public System.Nullable TimeUpdated { get; set; } + + /// + /// The current state of the Sql Endpoint. + /// + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// A message describing the reason why the resource is in it's current state. Helps bubble up errors in state changes. For example, it can be used to provide actionable information for a resource in the Failed state. + /// + [JsonProperty(PropertyName = "stateMessage")] + public string StateMessage { get; set; } + + /// + /// The version of SQL Endpoint. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlEndpointVersion is required.")] + [JsonProperty(PropertyName = "sqlEndpointVersion")] + public string SqlEndpointVersion { get; set; } + + /// + /// The shape of the SQL Endpoint driver instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DriverShape is required.")] + [JsonProperty(PropertyName = "driverShape")] + public string DriverShape { get; set; } + + [JsonProperty(PropertyName = "driverShapeConfig")] + public ShapeConfig DriverShapeConfig { get; set; } + + /// + /// The shape of the SQL Endpoint executor instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ExecutorShape is required.")] + [JsonProperty(PropertyName = "executorShape")] + public string ExecutorShape { get; set; } + + [JsonProperty(PropertyName = "executorShapeConfig")] + public ShapeConfig ExecutorShapeConfig { get; set; } + + /// + /// The minimum number of executors. + /// + /// + /// Required + /// + [Required(ErrorMessage = "MinExecutorCount is required.")] + [JsonProperty(PropertyName = "minExecutorCount")] + public System.Nullable MinExecutorCount { get; set; } + + /// + /// The maximum number of executors. + /// + /// + /// Required + /// + [Required(ErrorMessage = "MaxExecutorCount is required.")] + [JsonProperty(PropertyName = "maxExecutorCount")] + public System.Nullable MaxExecutorCount { get; set; } + + /// + /// The OCID of OCI Hive Metastore. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "MetastoreId is required.")] + [JsonProperty(PropertyName = "metastoreId")] + public string MetastoreId { get; set; } + + /// + /// The OCID of OCI Lake. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LakeId is required.")] + [JsonProperty(PropertyName = "lakeId")] + public string LakeId { get; set; } + + /// + /// The warehouse bucket URI. It is a Oracle Cloud Infrastructure Object Storage bucket URI as defined here https://docs.oracle.com/en/cloud/paas/atp-cloud/atpud/object-storage-uris.html + /// + /// + /// Required + /// + [Required(ErrorMessage = "WarehouseBucketUri is required.")] + [JsonProperty(PropertyName = "warehouseBucketUri")] + public string WarehouseBucketUri { get; set; } + + /// + /// The description of the SQL Endpoint. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Description is required.")] + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// This token is used by Splat, and indicates that the service accepts the request, and that the request is currently being processed. + /// + [JsonProperty(PropertyName = "lastAcceptedRequestToken")] + public string LastAcceptedRequestToken { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {orcl-cloud: {free-tier-retain: true}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + /// + /// The Spark configuration passed to the running process. + /// See https://spark.apache.org/docs/latest/configuration.html#available-properties. + /// Example: { "spark.app.name" : "My App Name", "spark.shuffle.io.maxRetries" : "4" }Note: Not all Spark properties are permitted to be set. Attempting to set a property that isnot allowed to be overwritten will cause a 400 status to be returned. + /// + [JsonProperty(PropertyName = "sparkAdvancedConfigurations")] + public System.Collections.Generic.Dictionary SparkAdvancedConfigurations { get; set; } + + [JsonProperty(PropertyName = "networkConfiguration")] + public SqlEndpointNetworkConfiguration NetworkConfiguration { get; set; } + + } +} diff --git a/Dataflow/models/SqlEndpointCollection.cs b/Dataflow/models/SqlEndpointCollection.cs new file mode 100644 index 0000000000..63357ee26a --- /dev/null +++ b/Dataflow/models/SqlEndpointCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DataflowService.Models +{ + /// + /// The results of a Sql Endpoint search. It contains the objects in a SqlEndpointSummary. + /// + public class SqlEndpointCollection + { + + /// + /// The collection of SqlEndpointSummary objects. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Dataflow/models/SqlEndpointLifecycleState.cs b/Dataflow/models/SqlEndpointLifecycleState.cs new file mode 100644 index 0000000000..522451707f --- /dev/null +++ b/Dataflow/models/SqlEndpointLifecycleState.cs @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.DataflowService.Models +{ + /// + /// Common lifecycle states for resources in a Sql Endpoint: + /// CREATING - The resource is being created and might not be usable until the entire metadata is defined. + /// ACTIVE - The resource is valid and available for access. + /// DELETING - The resource is being deleted, and might require a deep clean of any children. + /// DELETED - The resource has been deleted, and isn't available. + /// FAILED - The resource is in a failed state due to validation or other errors. + /// + /// + public enum SqlEndpointLifecycleState { + /// 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 = "CREATING")] + Creating, + [EnumMember(Value = "ACTIVE")] + Active, + [EnumMember(Value = "DELETING")] + Deleting, + [EnumMember(Value = "DELETED")] + Deleted, + [EnumMember(Value = "FAILED")] + Failed + } +} diff --git a/Dataflow/models/SqlEndpointNetworkConfiguration.cs b/Dataflow/models/SqlEndpointNetworkConfiguration.cs new file mode 100644 index 0000000000..6e42cf6944 --- /dev/null +++ b/Dataflow/models/SqlEndpointNetworkConfiguration.cs @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.DataflowService.Models +{ + /// + /// The network configuration of a SQL Endpoint. + /// + [JsonConverter(typeof(SqlEndpointNetworkConfigurationModelConverter))] + public class SqlEndpointNetworkConfiguration + { + + + } + + public class SqlEndpointNetworkConfigurationModelConverter : JsonConverter + { + private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(SqlEndpointNetworkConfiguration); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(SqlEndpointNetworkConfiguration); + var discriminator = jsonObject["networkType"].Value(); + switch (discriminator) + { + case "VCN": + obj = new SqlEndpointVcnConfig(); + break; + case "SECURE_ACCESS": + obj = new SqlEndpointSecureAccessConfig(); + break; + } + if (obj != null) + { + serializer.Populate(jsonObject.CreateReader(), obj); + } + else + { + logger.Warn($"The type {discriminator} is not present under SqlEndpointNetworkConfiguration! Returning null value."); + } + return obj; + } + } +} diff --git a/Dataflow/models/SqlEndpointSecureAccessConfig.cs b/Dataflow/models/SqlEndpointSecureAccessConfig.cs new file mode 100644 index 0000000000..46de669f7e --- /dev/null +++ b/Dataflow/models/SqlEndpointSecureAccessConfig.cs @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DataflowService.Models +{ + /// + /// Access control rules for secure access selection. + /// + public class SqlEndpointSecureAccessConfig : SqlEndpointNetworkConfiguration + { + + /// + /// A list of SecureAccessControlRule's to which access is limited to + /// + [JsonProperty(PropertyName = "accessControlRules")] + public System.Collections.Generic.List AccessControlRules { get; set; } + + /// + /// Ip Address of public endpoint + /// + [JsonProperty(PropertyName = "publicEndpointIp")] + public string PublicEndpointIp { get; set; } + + [JsonProperty(PropertyName = "networkType")] + private readonly string networkType = "SECURE_ACCESS"; + } +} diff --git a/Dataflow/models/SqlEndpointSummary.cs b/Dataflow/models/SqlEndpointSummary.cs new file mode 100644 index 0000000000..ea90eb6609 --- /dev/null +++ b/Dataflow/models/SqlEndpointSummary.cs @@ -0,0 +1,231 @@ +/* + * 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.DataflowService.Models +{ + /// + /// A summary of the Sql Endpoint. + /// + public class SqlEndpointSummary + { + + /// + /// The provision identifier that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The SQL Endpoint name, which can be changed. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The OCID of a compartment. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The JDBC URL field. For example, jdbc:spark://{serviceFQDN}:443/default;SparkServerType=DFI + /// + [JsonProperty(PropertyName = "jdbcEndpointUrl")] + public string JdbcEndpointUrl { get; set; } + + /// + /// The time the Sql Endpoint was created. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The time the Sql Endpoint was updated. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeUpdated")] + public System.Nullable TimeUpdated { get; set; } + + /// + /// The current state of the Sql Endpoint. + /// + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// A message describing the reason why the resource is in it's current state. Helps bubble up errors in state changes. For example, it can be used to provide actionable information for a resource in the Failed state. + /// + [JsonProperty(PropertyName = "stateMessage")] + public string StateMessage { get; set; } + + /// + /// The version of SQL Endpoint. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlEndpointVersion is required.")] + [JsonProperty(PropertyName = "sqlEndpointVersion")] + public string SqlEndpointVersion { get; set; } + + /// + /// The shape of the SQL Endpoint driver instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DriverShape is required.")] + [JsonProperty(PropertyName = "driverShape")] + public string DriverShape { get; set; } + + [JsonProperty(PropertyName = "driverShapeConfig")] + public ShapeConfig DriverShapeConfig { get; set; } + + /// + /// The shape of the SQL Endpoint executor instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ExecutorShape is required.")] + [JsonProperty(PropertyName = "executorShape")] + public string ExecutorShape { get; set; } + + [JsonProperty(PropertyName = "executorShapeConfig")] + public ShapeConfig ExecutorShapeConfig { get; set; } + + /// + /// The minimum number of executors. + /// + /// + /// Required + /// + [Required(ErrorMessage = "MinExecutorCount is required.")] + [JsonProperty(PropertyName = "minExecutorCount")] + public System.Nullable MinExecutorCount { get; set; } + + /// + /// The maximum number of executors. + /// + /// + /// Required + /// + [Required(ErrorMessage = "MaxExecutorCount is required.")] + [JsonProperty(PropertyName = "maxExecutorCount")] + public System.Nullable MaxExecutorCount { get; set; } + + /// + /// The OCID of the user who created the resource. + /// + /// + [JsonProperty(PropertyName = "ownerPrincipalId")] + public string OwnerPrincipalId { get; set; } + + /// + /// The OCID of OCI Hive Metastore. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "MetastoreId is required.")] + [JsonProperty(PropertyName = "metastoreId")] + public string MetastoreId { get; set; } + + /// + /// The OCID of OCI Lake. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LakeId is required.")] + [JsonProperty(PropertyName = "lakeId")] + public string LakeId { get; set; } + + /// + /// The warehouse bucket URI. It is a Oracle Cloud Infrastructure Object Storage bucket URI as defined here https://docs.oracle.com/en/cloud/paas/atp-cloud/atpud/object-storage-uris.html + /// + /// + /// Required + /// + [Required(ErrorMessage = "WarehouseBucketUri is required.")] + [JsonProperty(PropertyName = "warehouseBucketUri")] + public string WarehouseBucketUri { get; set; } + + /// + /// The description of the SQL Endpoint. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Description is required.")] + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// This token is used by Splat, and indicates that the service accepts the request, and that the request is currently being processed. + /// + [JsonProperty(PropertyName = "lastAcceptedRequestToken")] + public string LastAcceptedRequestToken { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {orcl-cloud: {free-tier-retain: true}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + /// + /// The Spark configuration passed to the running process. + /// See https://spark.apache.org/docs/latest/configuration.html#available-properties. + /// Example: { "spark.app.name" : "My App Name", "spark.shuffle.io.maxRetries" : "4" }Note: Not all Spark properties are permitted to be set. Attempting to set a property that isnot allowed to be overwritten will cause a 400 status to be returned. + /// + [JsonProperty(PropertyName = "sparkAdvancedConfigurations")] + public System.Collections.Generic.Dictionary SparkAdvancedConfigurations { get; set; } + + [JsonProperty(PropertyName = "networkConfiguration")] + public SqlEndpointNetworkConfiguration NetworkConfiguration { get; set; } + + } +} diff --git a/Dataflow/models/SqlEndpointVcnConfig.cs b/Dataflow/models/SqlEndpointVcnConfig.cs new file mode 100644 index 0000000000..430734e406 --- /dev/null +++ b/Dataflow/models/SqlEndpointVcnConfig.cs @@ -0,0 +1,65 @@ +/* + * 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.DataflowService.Models +{ + /// + /// The VCN configuration for VCN network type selection. + /// + public class SqlEndpointVcnConfig : SqlEndpointNetworkConfiguration + { + + /// + /// The VCN OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VcnId is required.")] + [JsonProperty(PropertyName = "vcnId")] + public string VcnId { get; set; } + + /// + /// The VCN Subnet OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SubnetId is required.")] + [JsonProperty(PropertyName = "subnetId")] + public string SubnetId { get; set; } + + /// + /// The host name prefix. + /// + [JsonProperty(PropertyName = "hostNamePrefix")] + public string HostNamePrefix { get; set; } + + /// + /// The OCIDs of Network Security Groups (NSGs). + /// + [JsonProperty(PropertyName = "nsgIds")] + public System.Collections.Generic.List NsgIds { get; set; } + + /// + /// Ip Address of private endpoint + /// + [JsonProperty(PropertyName = "privateEndpointIp")] + public string PrivateEndpointIp { get; set; } + + [JsonProperty(PropertyName = "networkType")] + private readonly string networkType = "VCN"; + } +} diff --git a/Dataflow/models/UpdateSqlEndpointDetails.cs b/Dataflow/models/UpdateSqlEndpointDetails.cs new file mode 100644 index 0000000000..29fa58b7ae --- /dev/null +++ b/Dataflow/models/UpdateSqlEndpointDetails.cs @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.DataflowService.Models +{ + /// + /// Currently only the tags of a SQL Endpoint can be updated. + /// + public class UpdateSqlEndpointDetails + { + + /// + /// Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [JsonProperty(PropertyName = "freeformTags")] + public System.Collections.Generic.Dictionary FreeformTags { get; set; } + + } +} diff --git a/Dataflow/requests/ChangeSqlEndpointCompartmentRequest.cs b/Dataflow/requests/ChangeSqlEndpointCompartmentRequest.cs new file mode 100644 index 0000000000..5af3618f0b --- /dev/null +++ b/Dataflow/requests/ChangeSqlEndpointCompartmentRequest.cs @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DataflowService.Models; + +namespace Oci.DataflowService.Requests +{ + /// + /// Click here to see an example of how to use ChangeSqlEndpointCompartment request. + /// + public class ChangeSqlEndpointCompartmentRequest : Oci.Common.IOciRequest + { + + /// + /// The unique id of the SQL Endpoint. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlEndpointId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "sqlEndpointId")] + public string SqlEndpointId { get; set; } + + /// + /// The details to change the compartment of the Sql Endpoint. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ChangeSqlEndpointCompartmentDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ChangeSqlEndpointCompartmentDetails ChangeSqlEndpointCompartmentDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call for a resource, + /// set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique identifier for the request. If provided, the returned request ID will include this value. + /// Otherwise, a random request ID will be generated by the service. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or server error + /// without risk of executing that same action again. Retry tokens expire after 24 hours, + /// but can be invalidated before then due to conflicting operations. + /// For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Dataflow/requests/CreateSqlEndpointRequest.cs b/Dataflow/requests/CreateSqlEndpointRequest.cs new file mode 100644 index 0000000000..4e083eb7d3 --- /dev/null +++ b/Dataflow/requests/CreateSqlEndpointRequest.cs @@ -0,0 +1,50 @@ +/* + * 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.DataflowService.Models; + +namespace Oci.DataflowService.Requests +{ + /// + /// Click here to see an example of how to use CreateSqlEndpoint request. + /// + public class CreateSqlEndpointRequest : Oci.Common.IOciRequest + { + + /// + /// Details of the new Sql Endpoint. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CreateSqlEndpointDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public CreateSqlEndpointDetails CreateSqlEndpointDetails { 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 may be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// Unique identifier for the request. If provided, the returned request ID will include this value. + /// Otherwise, a random request ID will be generated by the service. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Dataflow/requests/DeleteSqlEndpointRequest.cs b/Dataflow/requests/DeleteSqlEndpointRequest.cs new file mode 100644 index 0000000000..4101cb6e9b --- /dev/null +++ b/Dataflow/requests/DeleteSqlEndpointRequest.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 Oci.DataflowService.Models; + +namespace Oci.DataflowService.Requests +{ + /// + /// Click here to see an example of how to use DeleteSqlEndpoint request. + /// + public class DeleteSqlEndpointRequest : Oci.Common.IOciRequest + { + + /// + /// The unique id of the SQL Endpoint. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlEndpointId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "sqlEndpointId")] + public string SqlEndpointId { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call for a resource, + /// set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique identifier for the request. If provided, the returned request ID will include this value. + /// Otherwise, a random request ID will be generated by the service. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Dataflow/requests/GetSqlEndpointRequest.cs b/Dataflow/requests/GetSqlEndpointRequest.cs new file mode 100644 index 0000000000..d3533efd81 --- /dev/null +++ b/Dataflow/requests/GetSqlEndpointRequest.cs @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DataflowService.Models; + +namespace Oci.DataflowService.Requests +{ + /// + /// Click here to see an example of how to use GetSqlEndpoint request. + /// + public class GetSqlEndpointRequest : Oci.Common.IOciRequest + { + + /// + /// The unique id of the SQL Endpoint. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlEndpointId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "sqlEndpointId")] + public string SqlEndpointId { get; set; } + + /// + /// Unique identifier for the request. If provided, the returned request ID will include this value. + /// Otherwise, a random request ID will be generated by the service. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Dataflow/requests/ListSqlEndpointsRequest.cs b/Dataflow/requests/ListSqlEndpointsRequest.cs new file mode 100644 index 0000000000..8ad1317a9d --- /dev/null +++ b/Dataflow/requests/ListSqlEndpointsRequest.cs @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DataflowService.Models; + +namespace Oci.DataflowService.Requests +{ + /// + /// Click here to see an example of how to use ListSqlEndpoints request. + /// + public class ListSqlEndpointsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment in which to query resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The unique id of the SQL Endpoint. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sqlEndpointId")] + public string SqlEndpointId { get; set; } + + /// + /// A filter to return only those resources whose sqlEndpointLifecycleState matches the given sqlEndpointLifecycleState. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleState")] + public System.Nullable LifecycleState { get; set; } + + /// + /// The query parameter for the Spark application name. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName")] + public string DisplayName { get; set; } + + /// + /// The maximum number of items that can be returned. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// + /// The ordering of results in ascending or descending order. + /// + /// + /// + public enum SortOrderEnum { + [EnumMember(Value = "ASC")] + Asc, + [EnumMember(Value = "DESC")] + Desc + }; + + /// + /// The ordering of results in ascending or descending order. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. The default order for timeCreated is descending. The default order for displayName is ascending. If no value is specified timeCreated is used by default. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "id")] + Id, + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. The default order for timeCreated is descending. The default order for displayName is ascending. If no value is specified timeCreated is used by default. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique identifier for the request. If provided, the returned request ID will include this value. + /// Otherwise, a random request ID will be generated by the service. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Dataflow/requests/UpdateSqlEndpointRequest.cs b/Dataflow/requests/UpdateSqlEndpointRequest.cs new file mode 100644 index 0000000000..644f272867 --- /dev/null +++ b/Dataflow/requests/UpdateSqlEndpointRequest.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.DataflowService.Models; + +namespace Oci.DataflowService.Requests +{ + /// + /// Click here to see an example of how to use UpdateSqlEndpoint request. + /// + public class UpdateSqlEndpointRequest : Oci.Common.IOciRequest + { + + /// + /// Details of the Sql Endpoint to be updated. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateSqlEndpointDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateSqlEndpointDetails UpdateSqlEndpointDetails { get; set; } + + /// + /// The unique id of the SQL Endpoint. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SqlEndpointId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "sqlEndpointId")] + public string SqlEndpointId { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call for a resource, + /// set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique identifier for the request. If provided, the returned request ID will include this value. + /// Otherwise, a random request ID will be generated by the service. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Dataflow/responses/ChangeSqlEndpointCompartmentResponse.cs b/Dataflow/responses/ChangeSqlEndpointCompartmentResponse.cs new file mode 100644 index 0000000000..09c89ec824 --- /dev/null +++ b/Dataflow/responses/ChangeSqlEndpointCompartmentResponse.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.DataflowService.Models; + +namespace Oci.DataflowService.Responses +{ + public class ChangeSqlEndpointCompartmentResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle assigned identifier for the request. + /// If you need to contact Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// Unique Oracle assigned identifier for a work request. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-work-request-id")] + public string OpcWorkRequestId { get; set; } + + + + } +} diff --git a/Dataflow/responses/CreateSqlEndpointResponse.cs b/Dataflow/responses/CreateSqlEndpointResponse.cs new file mode 100644 index 0000000000..2a7fb31d91 --- /dev/null +++ b/Dataflow/responses/CreateSqlEndpointResponse.cs @@ -0,0 +1,50 @@ +/* + * 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.DataflowService.Models; + +namespace Oci.DataflowService.Responses +{ + public class CreateSqlEndpointResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle assigned identifier for the request. + /// If you need to contact Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// Unique Oracle assigned identifier for a work request. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-work-request-id")] + public string OpcWorkRequestId { get; set; } + + + /// + /// For optimistic concurrency control. + /// See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + /// + /// The returned SqlEndpoint instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlEndpoint SqlEndpoint { get; set; } + + } +} diff --git a/Dataflow/responses/DeleteSqlEndpointResponse.cs b/Dataflow/responses/DeleteSqlEndpointResponse.cs new file mode 100644 index 0000000000..eb9ed43950 --- /dev/null +++ b/Dataflow/responses/DeleteSqlEndpointResponse.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.DataflowService.Models; + +namespace Oci.DataflowService.Responses +{ + public class DeleteSqlEndpointResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle assigned identifier for the request. + /// If you need to contact Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// Unique Oracle assigned identifier for a work request. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-work-request-id")] + public string OpcWorkRequestId { get; set; } + + + + } +} diff --git a/Dataflow/responses/GetSqlEndpointResponse.cs b/Dataflow/responses/GetSqlEndpointResponse.cs new file mode 100644 index 0000000000..8990feb597 --- /dev/null +++ b/Dataflow/responses/GetSqlEndpointResponse.cs @@ -0,0 +1,42 @@ +/* + * 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.DataflowService.Models; + +namespace Oci.DataflowService.Responses +{ + public class GetSqlEndpointResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. + /// See [ETags for Optimistic Concurrency Control](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle assigned identifier for the request. + /// If you need to contact Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlEndpoint instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlEndpoint SqlEndpoint { get; set; } + + } +} diff --git a/Dataflow/responses/ListSqlEndpointsResponse.cs b/Dataflow/responses/ListSqlEndpointsResponse.cs new file mode 100644 index 0000000000..4ba0a4a38d --- /dev/null +++ b/Dataflow/responses/ListSqlEndpointsResponse.cs @@ -0,0 +1,42 @@ +/* + * 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.DataflowService.Models; + +namespace Oci.DataflowService.Responses +{ + public class ListSqlEndpointsResponse : Oci.Common.IOciResponse + { + + /// + /// Retrieves the next page of results. When this header appears in the response, + /// additional pages of results remain. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + + /// + /// Unique Oracle assigned identifier for the request. + /// If you need to contact Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SqlEndpointCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SqlEndpointCollection SqlEndpointCollection { get; set; } + + } +} diff --git a/Dataflow/responses/UpdateSqlEndpointResponse.cs b/Dataflow/responses/UpdateSqlEndpointResponse.cs new file mode 100644 index 0000000000..73b27c4c58 --- /dev/null +++ b/Dataflow/responses/UpdateSqlEndpointResponse.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.DataflowService.Models; + +namespace Oci.DataflowService.Responses +{ + public class UpdateSqlEndpointResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle assigned identifier for the request. + /// If you need to contact Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// Unique Oracle assigned identifier for a work request. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-work-request-id")] + public string OpcWorkRequestId { get; set; } + + + + } +} diff --git a/Licensemanager/models/ResourceUnit.cs b/Licensemanager/models/ResourceUnit.cs index 1808260869..e7d15aa673 100644 --- a/Licensemanager/models/ResourceUnit.cs +++ b/Licensemanager/models/ResourceUnit.cs @@ -20,6 +20,8 @@ public enum ResourceUnit { [EnumMember(Value = null)] UnknownEnumValue, [EnumMember(Value = "OCPU")] - Ocpu + Ocpu, + [EnumMember(Value = "ECPU")] + Ecpu } } diff --git a/Marketplace/models/ImageListingPackage.cs b/Marketplace/models/ImageListingPackage.cs index 30f5e79622..7aa55b305d 100644 --- a/Marketplace/models/ImageListingPackage.cs +++ b/Marketplace/models/ImageListingPackage.cs @@ -40,13 +40,6 @@ public class ImageListingPackage : ListingPackage [JsonProperty(PropertyName = "imageId")] public string ImageId { get; set; } - /// - /// The regions where you can deploy the listing package. (Some packages have restrictions that limit their deployment to United States regions only.) - /// - /// - [JsonProperty(PropertyName = "regions")] - public System.Collections.Generic.List Regions { get; set; } - [JsonProperty(PropertyName = "packageType")] private readonly string packageType = "IMAGE"; } diff --git a/Marketplace/models/IneligibilityReasonEnum.cs b/Marketplace/models/IneligibilityReasonEnum.cs index dc1da391f0..b7e234fe6c 100644 --- a/Marketplace/models/IneligibilityReasonEnum.cs +++ b/Marketplace/models/IneligibilityReasonEnum.cs @@ -37,7 +37,21 @@ public enum IneligibilityReasonEnum { IneligibleAccountGovSubscription, [EnumMember(Value = "INELIGIBLE_PAID_LISTING_THROTTLED")] IneligiblePaidListingThrottled, + [EnumMember(Value = "INELIGIBLE_ACCOUNT_NOT_AVAILABLE")] + IneligibleAccountNotAvailable, + [EnumMember(Value = "INELIGIBLE_ACCOUNT_NOT_MONTHLY_INCLUSIVE")] + IneligibleAccountNotMonthlyInclusive, + [EnumMember(Value = "IMAGE_META_DATA_SO")] + ImageMetaDataSo, + [EnumMember(Value = "INELIGIBLE_ACCOUNT_TENANCY_NOT_ALLOWED_ACCESS_IMAGE")] + IneligibleAccountTenancyNotAllowedAccessImage, + [EnumMember(Value = "INELIGIBLE_ACCOUNT_GOV_LAUNCH_NON_GOV_LISTING")] + IneligibleAccountGovLaunchNonGovListing, + [EnumMember(Value = "AGREEMENT_NOT_ACCEPTED")] + AgreementNotAccepted, [EnumMember(Value = "NOT_AUTHORIZED")] - NotAuthorized + NotAuthorized, + [EnumMember(Value = "ELIGIBLE")] + Eligible } } diff --git a/Marketplace/models/ListingPackage.cs b/Marketplace/models/ListingPackage.cs index 21b27abcd6..34c092731c 100644 --- a/Marketplace/models/ListingPackage.cs +++ b/Marketplace/models/ListingPackage.cs @@ -70,6 +70,13 @@ public class ListingPackage [JsonProperty(PropertyName = "operatingSystem")] public OperatingSystem OperatingSystem { get; set; } + /// + /// The regions where you can deploy the listing package. (Some packages have restrictions that limit their deployment to United States regions only.) + /// + /// + [JsonProperty(PropertyName = "regions")] + public System.Collections.Generic.List Regions { get; set; } + } public class ListingPackageModelConverter : JsonConverter diff --git a/Marketplace/models/OrchestrationListingPackage.cs b/Marketplace/models/OrchestrationListingPackage.cs index 6abddecd9a..b71288a0a2 100644 --- a/Marketplace/models/OrchestrationListingPackage.cs +++ b/Marketplace/models/OrchestrationListingPackage.cs @@ -33,13 +33,6 @@ public class OrchestrationListingPackage : ListingPackage [JsonProperty(PropertyName = "variables")] public System.Collections.Generic.List Variables { get; set; } - /// - /// The regions where you can deploy this listing package. (Some packages have restrictions that limit their deployment to United States regions only.) - /// - /// - [JsonProperty(PropertyName = "regions")] - public System.Collections.Generic.List Regions { get; set; } - [JsonProperty(PropertyName = "packageType")] private readonly string packageType = "ORCHESTRATION"; } diff --git a/Marketplace/models/PricingCurrencyEnum.cs b/Marketplace/models/PricingCurrencyEnum.cs index d5ba79b9a2..5b9e46cb4b 100644 --- a/Marketplace/models/PricingCurrencyEnum.cs +++ b/Marketplace/models/PricingCurrencyEnum.cs @@ -32,6 +32,14 @@ public enum PricingCurrencyEnum { [EnumMember(Value = "JPY")] Jpy, [EnumMember(Value = "OMR")] - Omr + Omr, + [EnumMember(Value = "EUR")] + Eur, + [EnumMember(Value = "CHF")] + Chf, + [EnumMember(Value = "MXN")] + Mxn, + [EnumMember(Value = "CLP")] + Clp } } diff --git a/Mysql/models/ChannelTargetDbSystem.cs b/Mysql/models/ChannelTargetDbSystem.cs index 55ecc2d227..063b639530 100644 --- a/Mysql/models/ChannelTargetDbSystem.cs +++ b/Mysql/models/ChannelTargetDbSystem.cs @@ -60,6 +60,49 @@ public class ChannelTargetDbSystem : ChannelTarget /// [JsonProperty(PropertyName = "filters")] public System.Collections.Generic.List Filters { get; set; } + /// + /// + /// Specifies how a replication channel handles the creation and alteration of tables + /// that do not have a primary key. + /// + /// + /// + public enum TablesWithoutPrimaryKeyHandlingEnum { + /// 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 = "RAISE_ERROR")] + RaiseError, + [EnumMember(Value = "ALLOW")] + Allow, + [EnumMember(Value = "GENERATE_IMPLICIT_PRIMARY_KEY")] + GenerateImplicitPrimaryKey + }; + + /// + /// Specifies how a replication channel handles the creation and alteration of tables + /// that do not have a primary key. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "TablesWithoutPrimaryKeyHandling is required.")] + [JsonProperty(PropertyName = "tablesWithoutPrimaryKeyHandling")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable TablesWithoutPrimaryKeyHandling { get; set; } + + /// + /// Specifies the amount of time, in seconds, that the channel waits before + /// applying a transaction received from the source. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "DelayInSeconds is required.")] + [JsonProperty(PropertyName = "delayInSeconds")] + public System.Nullable DelayInSeconds { get; set; } [JsonProperty(PropertyName = "targetType")] private readonly string targetType = "DBSYSTEM"; diff --git a/Mysql/models/CreateChannelTargetFromDbSystemDetails.cs b/Mysql/models/CreateChannelTargetFromDbSystemDetails.cs index 061bd98c28..9ad932df58 100644 --- a/Mysql/models/CreateChannelTargetFromDbSystemDetails.cs +++ b/Mysql/models/CreateChannelTargetFromDbSystemDetails.cs @@ -53,6 +53,23 @@ public class CreateChannelTargetFromDbSystemDetails : CreateChannelTargetDetails [JsonProperty(PropertyName = "filters")] public System.Collections.Generic.List Filters { get; set; } + /// + /// Specifies how a replication channel handles the creation and alteration of tables + /// that do not have a primary key. The default value is set to ALLOW. + /// + /// + [JsonProperty(PropertyName = "tablesWithoutPrimaryKeyHandling")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable TablesWithoutPrimaryKeyHandling { get; set; } + + /// + /// Specifies the amount of time, in seconds, that the channel waits before + /// applying a transaction received from the source. + /// + /// + [JsonProperty(PropertyName = "delayInSeconds")] + public System.Nullable DelayInSeconds { get; set; } + [JsonProperty(PropertyName = "targetType")] private readonly string targetType = "DBSYSTEM"; } diff --git a/Mysql/models/UpdateChannelTargetFromDbSystemDetails.cs b/Mysql/models/UpdateChannelTargetFromDbSystemDetails.cs index 664ed5f758..f2fd82ffe0 100644 --- a/Mysql/models/UpdateChannelTargetFromDbSystemDetails.cs +++ b/Mysql/models/UpdateChannelTargetFromDbSystemDetails.cs @@ -43,6 +43,23 @@ public class UpdateChannelTargetFromDbSystemDetails : UpdateChannelTargetDetails [JsonProperty(PropertyName = "filters")] public System.Collections.Generic.List Filters { get; set; } + /// + /// Specifies how a replication channel handles the creation and alteration of tables + /// that do not have a primary key. + /// + /// + [JsonProperty(PropertyName = "tablesWithoutPrimaryKeyHandling")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable TablesWithoutPrimaryKeyHandling { get; set; } + + /// + /// Specifies the amount of time, in seconds, that the channel waits before + /// applying a transaction received from the source. + /// + /// + [JsonProperty(PropertyName = "delayInSeconds")] + public System.Nullable DelayInSeconds { get; set; } + [JsonProperty(PropertyName = "targetType")] private readonly string targetType = "DBSYSTEM"; } diff --git a/Ocicontrolcenter/OccMetricsClient.cs b/Ocicontrolcenter/OccMetricsClient.cs index 85b97774a5..8988040eda 100644 --- a/Ocicontrolcenter/OccMetricsClient.cs +++ b/Ocicontrolcenter/OccMetricsClient.cs @@ -107,7 +107,7 @@ public async Task ListMetricProperties(ListMetricP ServiceName = "OccMetrics", OperationName = "ListMetricProperties", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/occ/20230515/MetricPropertyCollection/ListMetricProperties", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); @@ -164,7 +164,7 @@ public async Task ListNamespaces(ListNamespacesRequest r ServiceName = "OccMetrics", OperationName = "ListNamespaces", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/occ/20230515/NamespaceCollection/ListNamespaces", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); @@ -223,7 +223,7 @@ public async Task RequestSummarizedMetricDa ServiceName = "OccMetrics", OperationName = "RequestSummarizedMetricData", RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", - ApiReferenceLink = "", + ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/occ/20230515/SummarizedMetricDataCollection/RequestSummarizedMetricData", UserAgent = this.GetUserAgent() }; this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails); diff --git a/Osmanagementhub/LifecycleEnvironmentClient.cs b/Osmanagementhub/LifecycleEnvironmentClient.cs new file mode 100644 index 0000000000..dcd447475a --- /dev/null +++ b/Osmanagementhub/LifecycleEnvironmentClient.cs @@ -0,0 +1,704 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System; +using System.Diagnostics; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Oci.Common; +using Oci.Common.Alloy; +using Oci.Common.Model; +using Oci.Common.Auth; +using Oci.Common.Retry; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// Service client instance for LifecycleEnvironment. + public class LifecycleEnvironmentClient : RegionalClientBase + { + private readonly RetryConfiguration retryConfiguration; + private const string basePathWithoutHost = "/20220901"; + + public LifecycleEnvironmentPaginators Paginators { get; } + + public LifecycleEnvironmentWaiters Waiters { get; } + + /// + /// Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. + /// A client configuration can also be provided optionally to adjust REST client behaviors. + /// + /// The authentication details provider. Required. + /// The client configuration that contains settings to adjust REST client behaviors. Optional. + /// The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. + public LifecycleEnvironmentClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null) + : base(authenticationDetailsProvider, clientConfiguration) + { + if (!AlloyConfiguration.IsServiceEnabled("osmanagementhub")) + { + throw new ArgumentException("The Alloy configuration disabled this service, this behavior is controlled by AlloyConfiguration.OciEnabledServiceSet variable. Please check if your local alloy_config file has configured the service you're targeting or contact the cloud provider on the availability of this service"); + } + service = new Service + { + ServiceName = "LIFECYCLEENVIRONMENT", + ServiceEndpointPrefix = "", + ServiceEndpointTemplate = "https://osmh.{region}.oci.{secondLevelDomain}" + }; + + ClientConfiguration clientConfigurationToUse = clientConfiguration ?? new ClientConfiguration(); + + if (authenticationDetailsProvider is IRegionProvider) + { + // Use region from Authentication details provider. + SetRegion(((IRegionProvider)authenticationDetailsProvider).Region); + } + + if (endpoint != null) + { + logger.Info($"Using endpoint specified \"{endpoint}\"."); + SetEndpoint(endpoint); + } + + this.retryConfiguration = clientConfigurationToUse.RetryConfiguration; + Paginators = new LifecycleEnvironmentPaginators(this); + Waiters = new LifecycleEnvironmentWaiters(this); + } + + /// + /// Attach(add) managed instances to a lifecycle stage. + /// Once added operations can be applied to all managed instances in the lifecycle stage. + /// + /// + /// 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 AttachManagedInstancesToLifecycleStage API. + public async Task AttachManagedInstancesToLifecycleStage(AttachManagedInstancesToLifecycleStageRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called attachManagedInstancesToLifecycleStage"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/lifecycleStages/{lifecycleStageId}/actions/attachManagedInstances".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 = "LifecycleEnvironment", + OperationName = "AttachManagedInstancesToLifecycleStage", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"AttachManagedInstancesToLifecycleStage failed with error: {e.Message}"); + throw; + } + } + + /// + /// Creates a new lifecycle environment. + /// + /// + /// 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 CreateLifecycleEnvironment API. + public async Task CreateLifecycleEnvironment(CreateLifecycleEnvironmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called createLifecycleEnvironment"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/lifecycleEnvironments".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 = "LifecycleEnvironment", + OperationName = "CreateLifecycleEnvironment", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"CreateLifecycleEnvironment failed with error: {e.Message}"); + throw; + } + } + + /// + /// Deletes a lifecycle environment. + /// + /// 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 DeleteLifecycleEnvironment API. + public async Task DeleteLifecycleEnvironment(DeleteLifecycleEnvironmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called deleteLifecycleEnvironment"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/lifecycleEnvironments/{lifecycleEnvironmentId}".Trim('/'))); + HttpMethod method = new HttpMethod("DELETE"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "LifecycleEnvironment", + OperationName = "DeleteLifecycleEnvironment", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"DeleteLifecycleEnvironment failed with error: {e.Message}"); + throw; + } + } + + /// + /// Detach(remove) managed instance from a lifecycle stage. + /// + /// + /// 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 DetachManagedInstancesFromLifecycleStage API. + public async Task DetachManagedInstancesFromLifecycleStage(DetachManagedInstancesFromLifecycleStageRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called detachManagedInstancesFromLifecycleStage"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/lifecycleStages/{lifecycleStageId}/actions/detachManagedInstances".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 = "LifecycleEnvironment", + OperationName = "DetachManagedInstancesFromLifecycleStage", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"DetachManagedInstancesFromLifecycleStage failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified lifecycle environment. + /// + /// 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 GetLifecycleEnvironment API. + public async Task GetLifecycleEnvironment(GetLifecycleEnvironmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getLifecycleEnvironment"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/lifecycleEnvironments/{lifecycleEnvironmentId}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "LifecycleEnvironment", + OperationName = "GetLifecycleEnvironment", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetLifecycleEnvironment failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified lifecycle stage. + /// + /// 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 GetLifecycleStage API. + public async Task GetLifecycleStage(GetLifecycleStageRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getLifecycleStage"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/lifecycleStages/{lifecycleStageId}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "LifecycleEnvironment", + OperationName = "GetLifecycleStage", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetLifecycleStage failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists lifecycle environments that match the specified compartment or lifecycle environment OCID. Filter the list + /// against a variety of criteria including but not limited to its name, status, architecture, and OS family. + /// + /// + /// 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 ListLifecycleEnvironments API. + public async Task ListLifecycleEnvironments(ListLifecycleEnvironmentsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listLifecycleEnvironments"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/lifecycleEnvironments".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "LifecycleEnvironment", + OperationName = "ListLifecycleEnvironments", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListLifecycleEnvironments failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists installed packages on managed instances in a specified lifecycle stage. Filter the list against a variety + /// of criteria including but not limited to the package name. + /// + /// + /// 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 ListLifecycleStageInstalledPackages API. + public async Task ListLifecycleStageInstalledPackages(ListLifecycleStageInstalledPackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listLifecycleStageInstalledPackages"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/lifecycleStages/{lifecycleStageId}/installedPackages".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "LifecycleEnvironment", + OperationName = "ListLifecycleStageInstalledPackages", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListLifecycleStageInstalledPackages failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists lifecycle stages that match the specified compartment or lifecycle stage OCID. Filter the list against + /// a variety of criteria including but not limited to its name, status, architecture, and OS family. + /// + /// + /// 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 ListLifecycleStages API. + public async Task ListLifecycleStages(ListLifecycleStagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listLifecycleStages"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/lifecycleStages".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "LifecycleEnvironment", + OperationName = "ListLifecycleStages", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListLifecycleStages failed with error: {e.Message}"); + throw; + } + } + + /// + /// Updates the versioned custom software source content + /// for specified lifecycle stage. + /// + /// + /// 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 PromoteSoftwareSourceToLifecycleStage API. + public async Task PromoteSoftwareSourceToLifecycleStage(PromoteSoftwareSourceToLifecycleStageRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called promoteSoftwareSourceToLifecycleStage"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/lifecycleStages/{lifecycleStageId}/actions/promoteSoftwareSource".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 = "LifecycleEnvironment", + OperationName = "PromoteSoftwareSourceToLifecycleStage", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"PromoteSoftwareSourceToLifecycleStage failed with error: {e.Message}"); + throw; + } + } + + /// + /// Updates the specified lifecycle environment's name, description, stages, or tags. + /// + /// 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 UpdateLifecycleEnvironment API. + public async Task UpdateLifecycleEnvironment(UpdateLifecycleEnvironmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateLifecycleEnvironment"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/lifecycleEnvironments/{lifecycleEnvironmentId}".Trim('/'))); + HttpMethod method = new HttpMethod("PUT"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "LifecycleEnvironment", + OperationName = "UpdateLifecycleEnvironment", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"UpdateLifecycleEnvironment failed with error: {e.Message}"); + throw; + } + } + + } +} diff --git a/Osmanagementhub/LifecycleEnvironmentPaginators.cs b/Osmanagementhub/LifecycleEnvironmentPaginators.cs new file mode 100644 index 0000000000..ce3cb6ae85 --- /dev/null +++ b/Osmanagementhub/LifecycleEnvironmentPaginators.cs @@ -0,0 +1,200 @@ +/* + * 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.Collections.Generic; +using System.Threading; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService +{ + /// + /// Collection of helper methods that can be used to provide an enumerator interface + /// to any list operations of LifecycleEnvironment where multiple pages of data may be fetched. + /// Two styles of enumerators are supported: + /// + /// + /// + /// Enumerating over the Response objects returned by the list operation. These are referred to as ResponseEnumerators, and the methods are suffixed with ResponseEnumerator. For example: listUsersResponseEnumerator. + /// + /// + /// + /// + /// Enumerating over the resources/records being listed. These are referred to as RecordEnumerators, and the methods are suffixed with RecordEnumerator. For example: listUsersRecordEnumerator. + /// + /// + /// + /// These enumerators abstract away the need to write code to manually handle pagination via looping and using the page tokens. + /// They will automatically fetch more data from the service when required. + ///
+ ///
+ /// As an example, if we were using the ListUsers operation in IdentityService, then the iterator returned by calling a + /// ResponseEnumerator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the enumerables + /// returned by calling a RecordEnumerator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + /// In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + ///
+ public class LifecycleEnvironmentPaginators + { + private readonly LifecycleEnvironmentClient client; + + public LifecycleEnvironmentPaginators(LifecycleEnvironmentClient client) + { + this.client = client; + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListLifecycleEnvironments operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListLifecycleEnvironmentsResponseEnumerator(ListLifecycleEnvironmentsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListLifecycleEnvironments(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the LifecycleEnvironmentSummary objects + /// contained in responses from the ListLifecycleEnvironments operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListLifecycleEnvironmentsRecordEnumerator(ListLifecycleEnvironmentsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListLifecycleEnvironments(request, retryConfiguration, cancellationToken), + response => response.LifecycleEnvironmentCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListLifecycleStageInstalledPackages operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListLifecycleStageInstalledPackagesResponseEnumerator(ListLifecycleStageInstalledPackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListLifecycleStageInstalledPackages(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the InstalledPackageSummary objects + /// contained in responses from the ListLifecycleStageInstalledPackages operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListLifecycleStageInstalledPackagesRecordEnumerator(ListLifecycleStageInstalledPackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListLifecycleStageInstalledPackages(request, retryConfiguration, cancellationToken), + response => response.InstalledPackageCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListLifecycleStages operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListLifecycleStagesResponseEnumerator(ListLifecycleStagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListLifecycleStages(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the LifecycleStageSummary objects + /// contained in responses from the ListLifecycleStages operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListLifecycleStagesRecordEnumerator(ListLifecycleStagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListLifecycleStages(request, retryConfiguration, cancellationToken), + response => response.LifecycleStageCollection.Items + ); + } + + } +} diff --git a/Osmanagementhub/LifecycleEnvironmentWaiters.cs b/Osmanagementhub/LifecycleEnvironmentWaiters.cs new file mode 100644 index 0000000000..6c180cf767 --- /dev/null +++ b/Osmanagementhub/LifecycleEnvironmentWaiters.cs @@ -0,0 +1,86 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + +using System.Linq; +using Oci.Common.Waiters; +using Oci.OsmanagementhubService.Models; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// + /// Contains collection of helper methods to produce Oci.Common.Waiters for different resources of LifecycleEnvironment. + /// + public class LifecycleEnvironmentWaiters + { + private readonly LifecycleEnvironmentClient client; + + public LifecycleEnvironmentWaiters(LifecycleEnvironmentClient client) + { + this.client = client; + } + + /// + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForLifecycleEnvironment(GetLifecycleEnvironmentRequest request, params LifecycleEnvironment.LifecycleStateEnum[] targetStates) + { + return this.ForLifecycleEnvironment(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForLifecycleEnvironment(GetLifecycleEnvironmentRequest request, WaiterConfiguration config, params LifecycleEnvironment.LifecycleStateEnum[] targetStates) + { + var agent = new WaiterAgent( + request, + request => client.GetLifecycleEnvironment(request), + response => targetStates.Contains(response.LifecycleEnvironment.LifecycleState.Value), + targetStates.Contains(LifecycleEnvironment.LifecycleStateEnum.Deleted) + ); + return new Waiter(config, agent); + } + /// + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForLifecycleStage(GetLifecycleStageRequest request, params LifecycleStage.LifecycleStateEnum[] targetStates) + { + return this.ForLifecycleStage(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForLifecycleStage(GetLifecycleStageRequest request, WaiterConfiguration config, params LifecycleStage.LifecycleStateEnum[] targetStates) + { + var agent = new WaiterAgent( + request, + request => client.GetLifecycleStage(request), + response => targetStates.Contains(response.LifecycleStage.LifecycleState.Value), + targetStates.Contains(LifecycleStage.LifecycleStateEnum.Deleted) + ); + return new Waiter(config, agent); + } + } +} diff --git a/Osmanagementhub/ManagedInstanceClient.cs b/Osmanagementhub/ManagedInstanceClient.cs new file mode 100644 index 0000000000..22f0d626a7 --- /dev/null +++ b/Osmanagementhub/ManagedInstanceClient.cs @@ -0,0 +1,1410 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System; +using System.Diagnostics; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Oci.Common; +using Oci.Common.Alloy; +using Oci.Common.Model; +using Oci.Common.Auth; +using Oci.Common.Retry; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// Service client instance for ManagedInstance. + public class ManagedInstanceClient : RegionalClientBase + { + private readonly RetryConfiguration retryConfiguration; + private const string basePathWithoutHost = "/20220901"; + + public ManagedInstancePaginators Paginators { get; } + + /// + /// Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. + /// A client configuration can also be provided optionally to adjust REST client behaviors. + /// + /// The authentication details provider. Required. + /// The client configuration that contains settings to adjust REST client behaviors. Optional. + /// The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. + public ManagedInstanceClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null) + : base(authenticationDetailsProvider, clientConfiguration) + { + if (!AlloyConfiguration.IsServiceEnabled("osmanagementhub")) + { + throw new ArgumentException("The Alloy configuration disabled this service, this behavior is controlled by AlloyConfiguration.OciEnabledServiceSet variable. Please check if your local alloy_config file has configured the service you're targeting or contact the cloud provider on the availability of this service"); + } + service = new Service + { + ServiceName = "MANAGEDINSTANCE", + ServiceEndpointPrefix = "", + ServiceEndpointTemplate = "https://osmh.{region}.oci.{secondLevelDomain}" + }; + + ClientConfiguration clientConfigurationToUse = clientConfiguration ?? new ClientConfiguration(); + + if (authenticationDetailsProvider is IRegionProvider) + { + // Use region from Authentication details provider. + SetRegion(((IRegionProvider)authenticationDetailsProvider).Region); + } + + if (endpoint != null) + { + logger.Info($"Using endpoint specified \"{endpoint}\"."); + SetEndpoint(endpoint); + } + + this.retryConfiguration = clientConfigurationToUse.RetryConfiguration; + Paginators = new ManagedInstancePaginators(this); + } + + /// + /// Adds software sources to a managed instance. After the software source has been added, + /// then packages from that software source can be installed on the managed instance. + /// + /// + /// 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 AttachSoftwareSourcesToManagedInstance API. + public async Task AttachSoftwareSourcesToManagedInstance(AttachSoftwareSourcesToManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called attachSoftwareSourcesToManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/actions/attachSoftwareSources".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 = "ManagedInstance", + OperationName = "AttachSoftwareSourcesToManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"AttachSoftwareSourcesToManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Removes software sources from a managed instance. + /// Packages will no longer be able to be installed from these software sources. + /// + /// + /// 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 DetachSoftwareSourcesFromManagedInstance API. + public async Task DetachSoftwareSourcesFromManagedInstance(DetachSoftwareSourcesFromManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called detachSoftwareSourcesFromManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/actions/detachSoftwareSources".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 = "ManagedInstance", + OperationName = "DetachSoftwareSourcesFromManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"DetachSoftwareSourcesFromManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Disables a module stream on a managed instance. After the stream is + /// disabled, it is no longer possible to install the profiles that are + /// contained by the stream. All installed profiles must be removed prior + /// to disabling a module stream. + /// + /// + /// 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 DisableModuleStreamOnManagedInstance API. + public async Task DisableModuleStreamOnManagedInstance(DisableModuleStreamOnManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called disableModuleStreamOnManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/actions/disableModuleStreams".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 = "ManagedInstance", + OperationName = "DisableModuleStreamOnManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"DisableModuleStreamOnManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Enables a module stream on a managed instance. After the stream is + /// enabled, it is possible to install the profiles that are contained + /// by the stream. Enabling a stream that is already enabled will + /// succeed. Attempting to enable a different stream for a module that + /// already has a stream enabled results in an error. + /// + /// + /// 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 EnableModuleStreamOnManagedInstance API. + public async Task EnableModuleStreamOnManagedInstance(EnableModuleStreamOnManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called enableModuleStreamOnManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/actions/enableModuleStreams".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 = "ManagedInstance", + OperationName = "EnableModuleStreamOnManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"EnableModuleStreamOnManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified managed instance. + /// + /// 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 GetManagedInstance API. + public async Task GetManagedInstance(GetManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstance", + OperationName = "GetManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Installs a profile for an module stream. The stream must be + /// enabled before a profile can be installed. If a module stream + /// defines multiple profiles, each one can be installed independently. + /// + /// + /// 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 InstallModuleStreamProfileOnManagedInstance API. + public async Task InstallModuleStreamProfileOnManagedInstance(InstallModuleStreamProfileOnManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called installModuleStreamProfileOnManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/actions/installStreamProfiles".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 = "ManagedInstance", + OperationName = "InstallModuleStreamProfileOnManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"InstallModuleStreamProfileOnManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Installs packages on a managed instance. + /// + /// + /// 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 InstallPackagesOnManagedInstance API. + public async Task InstallPackagesOnManagedInstance(InstallPackagesOnManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called installPackagesOnManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/actions/installPackages".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 = "ManagedInstance", + OperationName = "InstallPackagesOnManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"InstallPackagesOnManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Returns a list of available packages for a managed instance. + /// + /// + /// 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 ListManagedInstanceAvailablePackages API. + public async Task ListManagedInstanceAvailablePackages(ListManagedInstanceAvailablePackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstanceAvailablePackages"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/availablePackages".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstance", + OperationName = "ListManagedInstanceAvailablePackages", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstanceAvailablePackages failed with error: {e.Message}"); + throw; + } + } + + /// + /// Returns a list of available software sources for a managed instance. + /// + /// + /// 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 ListManagedInstanceAvailableSoftwareSources API. + public async Task ListManagedInstanceAvailableSoftwareSources(ListManagedInstanceAvailableSoftwareSourcesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstanceAvailableSoftwareSources"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/availableSoftwareSources".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstance", + OperationName = "ListManagedInstanceAvailableSoftwareSources", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstanceAvailableSoftwareSources failed with error: {e.Message}"); + throw; + } + } + + /// + /// Returns a list of applicable errata on the managed instance. + /// + /// + /// 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 ListManagedInstanceErrata API. + public async Task ListManagedInstanceErrata(ListManagedInstanceErrataRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstanceErrata"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/errata".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstance", + OperationName = "ListManagedInstanceErrata", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstanceErrata failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists the packages that are installed on the managed instance. + /// + /// + /// 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 ListManagedInstanceInstalledPackages API. + public async Task ListManagedInstanceInstalledPackages(ListManagedInstanceInstalledPackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstanceInstalledPackages"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/installedPackages".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstance", + OperationName = "ListManagedInstanceInstalledPackages", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstanceInstalledPackages failed with error: {e.Message}"); + throw; + } + } + + /// + /// Retrieve a list of modules, along with streams of the modules, + /// from a managed instance. Filters may be applied to select + /// a subset of modules based on the filter criteria. + /// <br/> + /// The 'name' attribute filters against the name of a module. + /// It accepts strings of the format \"<string>\". + /// <br/> + /// The 'nameContains' attribute filters against the name of a module + /// based on partial match. It accepts strings of the format \"<string>\". + /// If this attribute is defined, only matching modules are included + /// in the result set. If it is not defined, the request is not subject + /// to this filter. + /// + /// + /// 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 ListManagedInstanceModules API. + public async Task ListManagedInstanceModules(ListManagedInstanceModulesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstanceModules"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/modules".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstance", + OperationName = "ListManagedInstanceModules", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstanceModules failed with error: {e.Message}"); + throw; + } + } + + /// + /// Returns a list of updatable packages for a managed instance. + /// + /// + /// 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 ListManagedInstanceUpdatablePackages API. + public async Task ListManagedInstanceUpdatablePackages(ListManagedInstanceUpdatablePackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstanceUpdatablePackages"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/updatablePackages".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstance", + OperationName = "ListManagedInstanceUpdatablePackages", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstanceUpdatablePackages failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists managed instances that match the specified compartment or managed instance OCID. Filter the list against a variety of criteria including but not limited to its name, status, architecture, and OS version. + /// + /// 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 ListManagedInstances API. + public async Task ListManagedInstances(ListManagedInstancesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstances"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstance", + OperationName = "ListManagedInstances", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstances failed with error: {e.Message}"); + throw; + } + } + + /// + /// Perform an operation involving modules, streams, and profiles on a + /// managed instance. Each operation may enable or disable an arbitrary + /// amount of module streams, and install or remove an arbitrary number + /// of module stream profiles. When the operation is complete, the + /// state of the modules, streams, and profiles on the managed instance + /// will match the state indicated in the operation. + /// <br/> + /// Each module stream specified in the list of module streams to enable + /// will be in the \"ENABLED\" state upon completion of the operation. + /// If there was already a stream of that module enabled, any work + /// required to switch from the current stream to the new stream is + /// performed implicitly. + /// <br/> + /// Each module stream specified in the list of module streams to disable + /// will be in the \"DISABLED\" state upon completion of the operation. + /// Any profiles that are installed for the module stream will be removed + /// as part of the operation. + /// <br/> + /// Each module stream profile specified in the list of profiles to install + /// will be in the \"INSTALLED\" state upon completion of the operation, + /// indicating that any packages that are part of the profile are installed + /// on the managed instance. If the module stream containing the profile + /// is not enabled, it will be enabled as part of the operation. There + /// is an exception when attempting to install a stream of a profile when + /// another stream of the same module is enabled. It is an error to attempt + /// to install a profile of another module stream, unless enabling the + /// new module stream is explicitly included in this operation. + /// <br/> + /// Each module stream profile specified in the list of profiles to remove + /// will be in the \"AVAILABLE\" state upon completion of the operation. + /// The status of packages within the profile after the operation is + /// complete is defined by the package manager on the managed instance. + /// <br/> + /// Operations that contain one or more elements that are not allowed + /// are rejected. + /// <br/> + /// The result of this request is a work request object. The returned + /// work request is the parent of a structure of other WorkRequests. Taken + /// as a whole, this structure indicates the entire set of work to be + /// performed to complete the operation. + /// <br/> + /// This interface can also be used to perform a dry run of the operation + /// rather than committing it to a managed instance. If a dry run is + /// requested, the OS Management Hub service will evaluate the operation + /// against the current module, stream, and profile state on the managed + /// instance. It will calculate the impact of the operation on all + /// modules, streams, and profiles on the managed instance, including those + /// that are implicitly impacted by the operation. + /// <br/> + /// The WorkRequest resulting from a dry run behaves differently than + /// a WorkRequest resulting from a committable operation. Dry run + /// WorkRequests are always singletons and never have children. The + /// impact of the operation is returned using the log and error + /// facilities of work requests. The impact of operations that are + /// allowed by the OS Management Hub service are communicated as one or + /// more work request log entries. Operations that are not allowed + /// by the OS Management Hub service are communicated as one or more + /// work request error entries. Each entry, for either logs or errors, + /// contains a structured message containing the results of one + /// or more operations. + /// + /// + /// 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 ManageModuleStreamsOnManagedInstance API. + public async Task ManageModuleStreamsOnManagedInstance(ManageModuleStreamsOnManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called manageModuleStreamsOnManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/actions/manageModuleStreams".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 = "ManagedInstance", + OperationName = "ManageModuleStreamsOnManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ManageModuleStreamsOnManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Refresh all installed and updatable software information on a managed instance. + /// + /// + /// 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 RefreshSoftwareOnManagedInstance API. + public async Task RefreshSoftwareOnManagedInstance(RefreshSoftwareOnManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called refreshSoftwareOnManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/actions/refreshSoftware".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 = "ManagedInstance", + OperationName = "RefreshSoftwareOnManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"RefreshSoftwareOnManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Removes a profile for a module stream that is installed on a managed instance. + /// If a module stream is provided, rather than a fully qualified profile, all + /// profiles that have been installed for the module stream will be removed. + /// + /// + /// 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 RemoveModuleStreamProfileFromManagedInstance API. + public async Task RemoveModuleStreamProfileFromManagedInstance(RemoveModuleStreamProfileFromManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called removeModuleStreamProfileFromManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/actions/removeStreamProfiles".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 = "ManagedInstance", + OperationName = "RemoveModuleStreamProfileFromManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"RemoveModuleStreamProfileFromManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Removes an installed package from a managed instance. + /// + /// + /// 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 RemovePackagesFromManagedInstance API. + public async Task RemovePackagesFromManagedInstance(RemovePackagesFromManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called removePackagesFromManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/actions/removePackages".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 = "ManagedInstance", + OperationName = "RemovePackagesFromManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"RemovePackagesFromManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Enables a new stream for a module that already has a stream enabled. + /// If any profiles or packages from the original module are installed, + /// switching to a new stream will remove the existing packages and + /// install their counterparts in the new stream. + /// + /// + /// 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 SwitchModuleStreamOnManagedInstance API. + public async Task SwitchModuleStreamOnManagedInstance(SwitchModuleStreamOnManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called switchModuleStreamOnManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/actions/switchModuleStreams".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 = "ManagedInstance", + OperationName = "SwitchModuleStreamOnManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"SwitchModuleStreamOnManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Install all of the available package updates for all of the managed instances in a compartment. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use UpdateAllPackagesOnManagedInstancesInCompartment API. + public async Task UpdateAllPackagesOnManagedInstancesInCompartment(UpdateAllPackagesOnManagedInstancesInCompartmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateAllPackagesOnManagedInstancesInCompartment"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/actions/updatePackages".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 = "ManagedInstance", + OperationName = "UpdateAllPackagesOnManagedInstancesInCompartment", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"UpdateAllPackagesOnManagedInstancesInCompartment failed with error: {e.Message}"); + throw; + } + } + + /// + /// Updates the managed instance. + /// + /// 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 UpdateManagedInstance API. + public async Task UpdateManagedInstance(UpdateManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}".Trim('/'))); + HttpMethod method = new HttpMethod("PUT"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstance", + OperationName = "UpdateManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"UpdateManagedInstance failed with error: {e.Message}"); + throw; + } + } + + /// + /// Updates a package on a managed instance. + /// + /// + /// 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 UpdatePackagesOnManagedInstance API. + public async Task UpdatePackagesOnManagedInstance(UpdatePackagesOnManagedInstanceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updatePackagesOnManagedInstance"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/actions/updatePackages".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 = "ManagedInstance", + OperationName = "UpdatePackagesOnManagedInstance", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"UpdatePackagesOnManagedInstance failed with error: {e.Message}"); + throw; + } + } + + } +} diff --git a/Osmanagementhub/ManagedInstanceGroupClient.cs b/Osmanagementhub/ManagedInstanceGroupClient.cs new file mode 100644 index 0000000000..cde6d2e49a --- /dev/null +++ b/Osmanagementhub/ManagedInstanceGroupClient.cs @@ -0,0 +1,1426 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System; +using System.Diagnostics; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Oci.Common; +using Oci.Common.Alloy; +using Oci.Common.Model; +using Oci.Common.Auth; +using Oci.Common.Retry; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// Service client instance for ManagedInstanceGroup. + public class ManagedInstanceGroupClient : RegionalClientBase + { + private readonly RetryConfiguration retryConfiguration; + private const string basePathWithoutHost = "/20220901"; + + public ManagedInstanceGroupPaginators Paginators { get; } + + public ManagedInstanceGroupWaiters Waiters { get; } + + /// + /// Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. + /// A client configuration can also be provided optionally to adjust REST client behaviors. + /// + /// The authentication details provider. Required. + /// The client configuration that contains settings to adjust REST client behaviors. Optional. + /// The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. + public ManagedInstanceGroupClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null) + : base(authenticationDetailsProvider, clientConfiguration) + { + if (!AlloyConfiguration.IsServiceEnabled("osmanagementhub")) + { + throw new ArgumentException("The Alloy configuration disabled this service, this behavior is controlled by AlloyConfiguration.OciEnabledServiceSet variable. Please check if your local alloy_config file has configured the service you're targeting or contact the cloud provider on the availability of this service"); + } + service = new Service + { + ServiceName = "MANAGEDINSTANCEGROUP", + ServiceEndpointPrefix = "", + ServiceEndpointTemplate = "https://osmh.{region}.oci.{secondLevelDomain}" + }; + + ClientConfiguration clientConfigurationToUse = clientConfiguration ?? new ClientConfiguration(); + + if (authenticationDetailsProvider is IRegionProvider) + { + // Use region from Authentication details provider. + SetRegion(((IRegionProvider)authenticationDetailsProvider).Region); + } + + if (endpoint != null) + { + logger.Info($"Using endpoint specified \"{endpoint}\"."); + SetEndpoint(endpoint); + } + + this.retryConfiguration = clientConfigurationToUse.RetryConfiguration; + Paginators = new ManagedInstanceGroupPaginators(this); + Waiters = new ManagedInstanceGroupWaiters(this); + } + + /// + /// Adds managed instances to the specified managed instance group. After the managed + /// instances have been added, then operations can be performed on the managed + /// instance group which will then apply to all managed instances in the + /// group. + /// + /// + /// 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 AttachManagedInstancesToManagedInstanceGroup API. + public async Task AttachManagedInstancesToManagedInstanceGroup(AttachManagedInstancesToManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called attachManagedInstancesToManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/actions/attachManagedInstances".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 = "ManagedInstanceGroup", + OperationName = "AttachManagedInstancesToManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"AttachManagedInstancesToManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Attaches software sources to the specified managed instance group. The software sources must be compatible with the content for the managed instance group. + /// + /// + /// 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 AttachSoftwareSourcesToManagedInstanceGroup API. + public async Task AttachSoftwareSourcesToManagedInstanceGroup(AttachSoftwareSourcesToManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called attachSoftwareSourcesToManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/actions/attachSoftwareSources".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 = "ManagedInstanceGroup", + OperationName = "AttachSoftwareSourcesToManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"AttachSoftwareSourcesToManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Creates a new managed instance group. + /// + /// + /// 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 CreateManagedInstanceGroup API. + public async Task CreateManagedInstanceGroup(CreateManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called createManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups".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 = "ManagedInstanceGroup", + OperationName = "CreateManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"CreateManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Deletes a specified managed instance group. + /// + /// 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 DeleteManagedInstanceGroup API. + public async Task DeleteManagedInstanceGroup(DeleteManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called deleteManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}".Trim('/'))); + HttpMethod method = new HttpMethod("DELETE"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstanceGroup", + OperationName = "DeleteManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"DeleteManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Removes a managed instance from the specified managed instance group. + /// + /// + /// 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 DetachManagedInstancesFromManagedInstanceGroup API. + public async Task DetachManagedInstancesFromManagedInstanceGroup(DetachManagedInstancesFromManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called detachManagedInstancesFromManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/actions/detachManagedInstances".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 = "ManagedInstanceGroup", + OperationName = "DetachManagedInstancesFromManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"DetachManagedInstancesFromManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Detaches software sources from a group. + /// + /// + /// 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 DetachSoftwareSourcesFromManagedInstanceGroup API. + public async Task DetachSoftwareSourcesFromManagedInstanceGroup(DetachSoftwareSourcesFromManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called detachSoftwareSourcesFromManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/actions/detachSoftwareSources".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 = "ManagedInstanceGroup", + OperationName = "DetachSoftwareSourcesFromManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"DetachSoftwareSourcesFromManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Disables a module stream on a managed instance group. After the stream is + /// disabled, it is no longer possible to install the profiles that are + /// contained by the stream. All installed profiles must be removed prior + /// to disabling a module stream. + /// + /// + /// 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 DisableModuleStreamOnManagedInstanceGroup API. + public async Task DisableModuleStreamOnManagedInstanceGroup(DisableModuleStreamOnManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called disableModuleStreamOnManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/actions/disableModuleStream".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 = "ManagedInstanceGroup", + OperationName = "DisableModuleStreamOnManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"DisableModuleStreamOnManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Enables a module stream on a managed instance group. After the stream is + /// enabled, it is possible to install the profiles that are contained + /// by the stream. Enabling a stream that is already enabled will + /// succeed. Attempting to enable a different stream for a module that + /// already has a stream enabled results in an error. + /// + /// + /// 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 EnableModuleStreamOnManagedInstanceGroup API. + public async Task EnableModuleStreamOnManagedInstanceGroup(EnableModuleStreamOnManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called enableModuleStreamOnManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/actions/enableModuleStream".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 = "ManagedInstanceGroup", + OperationName = "EnableModuleStreamOnManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"EnableModuleStreamOnManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified managed instance group. + /// + /// 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 GetManagedInstanceGroup API. + public async Task GetManagedInstanceGroup(GetManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstanceGroup", + OperationName = "GetManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Installs a profile for an module stream. The stream must be + /// enabled before a profile can be installed. If a module stream + /// defines multiple profiles, each one can be installed independently. + /// + /// + /// 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 InstallModuleStreamProfileOnManagedInstanceGroup API. + public async Task InstallModuleStreamProfileOnManagedInstanceGroup(InstallModuleStreamProfileOnManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called installModuleStreamProfileOnManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/actions/installStreamProfile".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 = "ManagedInstanceGroup", + OperationName = "InstallModuleStreamProfileOnManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"InstallModuleStreamProfileOnManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Installs package(s) on each managed instance in a managed instance group. The package must be compatible with the + /// instances in the managed instance group. + /// + /// + /// 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 InstallPackagesOnManagedInstanceGroup API. + public async Task InstallPackagesOnManagedInstanceGroup(InstallPackagesOnManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called installPackagesOnManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/actions/installPackages".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 = "ManagedInstanceGroup", + OperationName = "InstallPackagesOnManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"InstallPackagesOnManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists available modules that for the specified managed instance group. Filter the list against a variety of + /// criteria including but not limited to its name. + /// + /// + /// 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 ListManagedInstanceGroupAvailableModules API. + public async Task ListManagedInstanceGroupAvailableModules(ListManagedInstanceGroupAvailableModulesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstanceGroupAvailableModules"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/availableModules".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstanceGroup", + OperationName = "ListManagedInstanceGroupAvailableModules", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstanceGroupAvailableModules failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists available packages on the specified managed instances group. Filter the list against a variety + /// of criteria including but not limited to the package name. + /// + /// + /// 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 ListManagedInstanceGroupAvailablePackages API. + public async Task ListManagedInstanceGroupAvailablePackages(ListManagedInstanceGroupAvailablePackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstanceGroupAvailablePackages"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/availablePackages".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstanceGroup", + OperationName = "ListManagedInstanceGroupAvailablePackages", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstanceGroupAvailablePackages failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists available software sources for a specified managed instance group. Filter the list against a variety of + /// criteria including but not limited to its name. + /// + /// + /// 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 ListManagedInstanceGroupAvailableSoftwareSources API. + public async Task ListManagedInstanceGroupAvailableSoftwareSources(ListManagedInstanceGroupAvailableSoftwareSourcesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstanceGroupAvailableSoftwareSources"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/availableSoftwareSources".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstanceGroup", + OperationName = "ListManagedInstanceGroupAvailableSoftwareSources", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstanceGroupAvailableSoftwareSources failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists installed packages on the specified managed instances group. Filter the list against a variety + /// of criteria including but not limited to the package name. + /// + /// + /// 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 ListManagedInstanceGroupInstalledPackages API. + public async Task ListManagedInstanceGroupInstalledPackages(ListManagedInstanceGroupInstalledPackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstanceGroupInstalledPackages"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/installedPackages".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstanceGroup", + OperationName = "ListManagedInstanceGroupInstalledPackages", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstanceGroupInstalledPackages failed with error: {e.Message}"); + throw; + } + } + + /// + /// Retrieve a list of module streams, along with a summary of their + /// status, from a managed instance group. Filters may be applied to select + /// a subset of module streams based on the filter criteria. + /// <br/> + /// The 'moduleName' attribute filters against the name of a module. + /// It accepts strings of the format \"<module>\". If this attribute + /// is defined, only streams that belong to the specified module are + /// included in the result set. If it is not defined, the request is + /// not subject to this filter. + /// <br/> + /// The \"status\" attribute filters against the state of a module stream. + /// Valid values are \"ENABLED\", \"DISABLED\", and \"ACTIVE\". If the + /// attribute is set to \"ENABLED\", only module streams that are enabled + /// are included in the result set. If the attribute is set to \"DISABLED\", + /// only module streams that are not enabled are included in the result + /// set. If the attribute is set to \"ACTIVE\", only module streams that + /// are active are included in the result set. If the attribute is not + /// defined, the request is not subject to this filter. + /// <br/> + /// When sorting by the display name, the result set is sorted first + /// by the module name and then by the stream name. + /// + /// + /// 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 ListManagedInstanceGroupModules API. + public async Task ListManagedInstanceGroupModules(ListManagedInstanceGroupModulesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstanceGroupModules"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/modules".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstanceGroup", + OperationName = "ListManagedInstanceGroupModules", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstanceGroupModules failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists managed instance groups that match the specified compartment or managed instance group OCID. Filter the + /// list against a variety of criteria including but not limited to its name, status, architecture, and OS family. + /// + /// + /// 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 ListManagedInstanceGroups API. + public async Task ListManagedInstanceGroups(ListManagedInstanceGroupsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagedInstanceGroups"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstanceGroup", + OperationName = "ListManagedInstanceGroups", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagedInstanceGroups failed with error: {e.Message}"); + throw; + } + } + + /// + /// Perform an operation involving modules, streams, and profiles on a + /// managed instance group. Each operation may enable or disable an arbitrary + /// amount of module streams, and install or remove an arbitrary number + /// of module stream profiles. When the operation is complete, the + /// state of the modules, streams, and profiles on the managed instance group + /// will match the state indicated in the operation. + /// <br/> + /// Each module stream specified in the list of module streams to enable + /// will be in the \"ENABLED\" state upon completion of the operation. + /// If there was already a stream of that module enabled, any work + /// required to switch from the current stream to the new stream is + /// performed implicitly. + /// <br/> + /// Each module stream specified in the list of module streams to disable + /// will be in the \"DISABLED\" state upon completion of the operation. + /// Any profiles that are installed for the module stream will be removed + /// as part of the operation. + /// <br/> + /// Each module stream profile specified in the list of profiles to install + /// will be in the \"INSTALLED\" state upon completion of the operation, + /// indicating that any packages that are part of the profile are installed + /// on the managed instance. If the module stream containing the profile + /// is not enabled, it will be enabled as part of the operation. There + /// is an exception when attempting to install a stream of a profile when + /// another stream of the same module is enabled. It is an error to attempt + /// to install a profile of another module stream, unless enabling the + /// new module stream is explicitly included in this operation. + /// <br/> + /// Each module stream profile specified in the list of profiles to remove + /// will be in the \"AVAILABLE\" state upon completion of the operation. + /// The status of packages within the profile after the operation is + /// complete is defined by the package manager on the managed instance group. + /// <br/> + /// Operations that contain one or more elements that are not allowed + /// are rejected. + /// <br/> + /// The result of this request is a work request object. The returned + /// work request is the parent of a structure of other work requests. Taken + /// as a whole, this structure indicates the entire set of work to be + /// performed to complete the operation. + /// <br/> + /// This interface can also be used to perform a dry run of the operation + /// rather than committing it to a managed instance group. If a dry run is + /// requested, the OS Management Hub service will evaluate the operation + /// against the current module, stream, and profile state on the managed + /// instance. It will calculate the impact of the operation on all + /// modules, streams, and profiles on the managed instance, including those + /// that are implicitly impacted by the operation. + /// <br/> + /// The work request resulting from a dry run behaves differently than + /// a work request resulting from a committable operation. Dry run + /// work requests are always singletons and never have children. The + /// impact of the operation is returned using the log and error + /// facilities of work requests. The impact of operations that are + /// allowed by the OS Management Hub service are communicated as one or + /// more work request log entries. Operations that are not allowed + /// by the OS Management Hub service are communicated as one or more + /// work request error entries. Each entry, for either logs or errors, + /// contains a structured message containing the results of one + /// or more operations. + /// + /// + /// 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 ManageModuleStreamsOnManagedInstanceGroup API. + public async Task ManageModuleStreamsOnManagedInstanceGroup(ManageModuleStreamsOnManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called manageModuleStreamsOnManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/actions/manageModuleStreams".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 = "ManagedInstanceGroup", + OperationName = "ManageModuleStreamsOnManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ManageModuleStreamsOnManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Removes a profile for a module stream that is installed on a managed instance group. + /// If a module stream is provided, rather than a fully qualified profile, all + /// profiles that have been installed for the module stream will be removed. + /// + /// + /// 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 RemoveModuleStreamProfileFromManagedInstanceGroup API. + public async Task RemoveModuleStreamProfileFromManagedInstanceGroup(RemoveModuleStreamProfileFromManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called removeModuleStreamProfileFromManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/actions/removeStreamProfile".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 = "ManagedInstanceGroup", + OperationName = "RemoveModuleStreamProfileFromManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"RemoveModuleStreamProfileFromManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Removes package(s) from each managed instance in a specified managed instance group. + /// + /// + /// 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 RemovePackagesFromManagedInstanceGroup API. + public async Task RemovePackagesFromManagedInstanceGroup(RemovePackagesFromManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called removePackagesFromManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/actions/removePackages".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 = "ManagedInstanceGroup", + OperationName = "RemovePackagesFromManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"RemovePackagesFromManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Updates all packages on each managed instance in the specified managed instance group. + /// + /// + /// 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 UpdateAllPackagesOnManagedInstanceGroup API. + public async Task UpdateAllPackagesOnManagedInstanceGroup(UpdateAllPackagesOnManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateAllPackagesOnManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}/actions/updateAllPackages".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 = "ManagedInstanceGroup", + OperationName = "UpdateAllPackagesOnManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"UpdateAllPackagesOnManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Updates the specified managed instance group's name, description, and tags. + /// + /// 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 UpdateManagedInstanceGroup API. + public async Task UpdateManagedInstanceGroup(UpdateManagedInstanceGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateManagedInstanceGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceGroups/{managedInstanceGroupId}".Trim('/'))); + HttpMethod method = new HttpMethod("PUT"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagedInstanceGroup", + OperationName = "UpdateManagedInstanceGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"UpdateManagedInstanceGroup failed with error: {e.Message}"); + throw; + } + } + + } +} diff --git a/Osmanagementhub/ManagedInstanceGroupPaginators.cs b/Osmanagementhub/ManagedInstanceGroupPaginators.cs new file mode 100644 index 0000000000..0e234f22bf --- /dev/null +++ b/Osmanagementhub/ManagedInstanceGroupPaginators.cs @@ -0,0 +1,347 @@ +/* + * 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.Collections.Generic; +using System.Threading; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService +{ + /// + /// Collection of helper methods that can be used to provide an enumerator interface + /// to any list operations of ManagedInstanceGroup where multiple pages of data may be fetched. + /// Two styles of enumerators are supported: + /// + /// + /// + /// Enumerating over the Response objects returned by the list operation. These are referred to as ResponseEnumerators, and the methods are suffixed with ResponseEnumerator. For example: listUsersResponseEnumerator. + /// + /// + /// + /// + /// Enumerating over the resources/records being listed. These are referred to as RecordEnumerators, and the methods are suffixed with RecordEnumerator. For example: listUsersRecordEnumerator. + /// + /// + /// + /// These enumerators abstract away the need to write code to manually handle pagination via looping and using the page tokens. + /// They will automatically fetch more data from the service when required. + ///
+ ///
+ /// As an example, if we were using the ListUsers operation in IdentityService, then the iterator returned by calling a + /// ResponseEnumerator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the enumerables + /// returned by calling a RecordEnumerator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + /// In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + ///
+ public class ManagedInstanceGroupPaginators + { + private readonly ManagedInstanceGroupClient client; + + public ManagedInstanceGroupPaginators(ManagedInstanceGroupClient client) + { + this.client = client; + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceGroupAvailableModules operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceGroupAvailableModulesResponseEnumerator(ListManagedInstanceGroupAvailableModulesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceGroupAvailableModules(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ManagedInstanceGroupAvailableModuleSummary objects + /// contained in responses from the ListManagedInstanceGroupAvailableModules operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceGroupAvailableModulesRecordEnumerator(ListManagedInstanceGroupAvailableModulesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceGroupAvailableModules(request, retryConfiguration, cancellationToken), + response => response.ManagedInstanceGroupAvailableModuleCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceGroupAvailablePackages operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceGroupAvailablePackagesResponseEnumerator(ListManagedInstanceGroupAvailablePackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceGroupAvailablePackages(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ManagedInstanceGroupAvailablePackageSummary objects + /// contained in responses from the ListManagedInstanceGroupAvailablePackages operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceGroupAvailablePackagesRecordEnumerator(ListManagedInstanceGroupAvailablePackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceGroupAvailablePackages(request, retryConfiguration, cancellationToken), + response => response.ManagedInstanceGroupAvailablePackageCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceGroupAvailableSoftwareSources operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceGroupAvailableSoftwareSourcesResponseEnumerator(ListManagedInstanceGroupAvailableSoftwareSourcesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceGroupAvailableSoftwareSources(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the AvailableSoftwareSourceSummary objects + /// contained in responses from the ListManagedInstanceGroupAvailableSoftwareSources operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceGroupAvailableSoftwareSourcesRecordEnumerator(ListManagedInstanceGroupAvailableSoftwareSourcesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceGroupAvailableSoftwareSources(request, retryConfiguration, cancellationToken), + response => response.AvailableSoftwareSourceCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceGroupInstalledPackages operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceGroupInstalledPackagesResponseEnumerator(ListManagedInstanceGroupInstalledPackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceGroupInstalledPackages(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ManagedInstanceGroupInstalledPackageSummary objects + /// contained in responses from the ListManagedInstanceGroupInstalledPackages operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceGroupInstalledPackagesRecordEnumerator(ListManagedInstanceGroupInstalledPackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceGroupInstalledPackages(request, retryConfiguration, cancellationToken), + response => response.ManagedInstanceGroupInstalledPackageCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceGroupModules operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceGroupModulesResponseEnumerator(ListManagedInstanceGroupModulesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceGroupModules(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ManagedInstanceGroupModuleSummary objects + /// contained in responses from the ListManagedInstanceGroupModules operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceGroupModulesRecordEnumerator(ListManagedInstanceGroupModulesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceGroupModules(request, retryConfiguration, cancellationToken), + response => response.ManagedInstanceGroupModuleCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceGroups operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceGroupsResponseEnumerator(ListManagedInstanceGroupsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceGroups(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ManagedInstanceGroupSummary objects + /// contained in responses from the ListManagedInstanceGroups operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceGroupsRecordEnumerator(ListManagedInstanceGroupsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceGroups(request, retryConfiguration, cancellationToken), + response => response.ManagedInstanceGroupCollection.Items + ); + } + + } +} diff --git a/Osmanagementhub/ManagedInstanceGroupWaiters.cs b/Osmanagementhub/ManagedInstanceGroupWaiters.cs new file mode 100644 index 0000000000..62d213f4aa --- /dev/null +++ b/Osmanagementhub/ManagedInstanceGroupWaiters.cs @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + +using System.Linq; +using Oci.Common.Waiters; +using Oci.OsmanagementhubService.Models; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// + /// Contains collection of helper methods to produce Oci.Common.Waiters for different resources of ManagedInstanceGroup. + /// + public class ManagedInstanceGroupWaiters + { + private readonly ManagedInstanceGroupClient client; + + public ManagedInstanceGroupWaiters(ManagedInstanceGroupClient client) + { + this.client = client; + } + + /// + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForManagedInstanceGroup(GetManagedInstanceGroupRequest request, params ManagedInstanceGroup.LifecycleStateEnum[] targetStates) + { + return this.ForManagedInstanceGroup(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForManagedInstanceGroup(GetManagedInstanceGroupRequest request, WaiterConfiguration config, params ManagedInstanceGroup.LifecycleStateEnum[] targetStates) + { + var agent = new WaiterAgent( + request, + request => client.GetManagedInstanceGroup(request), + response => targetStates.Contains(response.ManagedInstanceGroup.LifecycleState.Value), + targetStates.Contains(ManagedInstanceGroup.LifecycleStateEnum.Deleted) + ); + return new Waiter(config, agent); + } + } +} diff --git a/Osmanagementhub/ManagedInstancePaginators.cs b/Osmanagementhub/ManagedInstancePaginators.cs new file mode 100644 index 0000000000..16d3fbe025 --- /dev/null +++ b/Osmanagementhub/ManagedInstancePaginators.cs @@ -0,0 +1,396 @@ +/* + * 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.Collections.Generic; +using System.Threading; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService +{ + /// + /// Collection of helper methods that can be used to provide an enumerator interface + /// to any list operations of ManagedInstance where multiple pages of data may be fetched. + /// Two styles of enumerators are supported: + /// + /// + /// + /// Enumerating over the Response objects returned by the list operation. These are referred to as ResponseEnumerators, and the methods are suffixed with ResponseEnumerator. For example: listUsersResponseEnumerator. + /// + /// + /// + /// + /// Enumerating over the resources/records being listed. These are referred to as RecordEnumerators, and the methods are suffixed with RecordEnumerator. For example: listUsersRecordEnumerator. + /// + /// + /// + /// These enumerators abstract away the need to write code to manually handle pagination via looping and using the page tokens. + /// They will automatically fetch more data from the service when required. + ///
+ ///
+ /// As an example, if we were using the ListUsers operation in IdentityService, then the iterator returned by calling a + /// ResponseEnumerator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the enumerables + /// returned by calling a RecordEnumerator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + /// In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + ///
+ public class ManagedInstancePaginators + { + private readonly ManagedInstanceClient client; + + public ManagedInstancePaginators(ManagedInstanceClient client) + { + this.client = client; + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceAvailablePackages operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceAvailablePackagesResponseEnumerator(ListManagedInstanceAvailablePackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceAvailablePackages(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the AvailablePackageSummary objects + /// contained in responses from the ListManagedInstanceAvailablePackages operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceAvailablePackagesRecordEnumerator(ListManagedInstanceAvailablePackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceAvailablePackages(request, retryConfiguration, cancellationToken), + response => response.AvailablePackageCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceAvailableSoftwareSources operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceAvailableSoftwareSourcesResponseEnumerator(ListManagedInstanceAvailableSoftwareSourcesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceAvailableSoftwareSources(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the AvailableSoftwareSourceSummary objects + /// contained in responses from the ListManagedInstanceAvailableSoftwareSources operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceAvailableSoftwareSourcesRecordEnumerator(ListManagedInstanceAvailableSoftwareSourcesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceAvailableSoftwareSources(request, retryConfiguration, cancellationToken), + response => response.AvailableSoftwareSourceCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceErrata operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceErrataResponseEnumerator(ListManagedInstanceErrataRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceErrata(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ManagedInstanceErratumSummary objects + /// contained in responses from the ListManagedInstanceErrata operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceErrataRecordEnumerator(ListManagedInstanceErrataRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceErrata(request, retryConfiguration, cancellationToken), + response => response.ManagedInstanceErratumSummaryCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceInstalledPackages operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceInstalledPackagesResponseEnumerator(ListManagedInstanceInstalledPackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceInstalledPackages(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the InstalledPackageSummary objects + /// contained in responses from the ListManagedInstanceInstalledPackages operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceInstalledPackagesRecordEnumerator(ListManagedInstanceInstalledPackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceInstalledPackages(request, retryConfiguration, cancellationToken), + response => response.InstalledPackageCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceModules operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceModulesResponseEnumerator(ListManagedInstanceModulesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceModules(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ManagedInstanceModuleSummary objects + /// contained in responses from the ListManagedInstanceModules operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceModulesRecordEnumerator(ListManagedInstanceModulesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceModules(request, retryConfiguration, cancellationToken), + response => response.ManagedInstanceModuleCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstanceUpdatablePackages operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceUpdatablePackagesResponseEnumerator(ListManagedInstanceUpdatablePackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceUpdatablePackages(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the UpdatablePackageSummary objects + /// contained in responses from the ListManagedInstanceUpdatablePackages operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstanceUpdatablePackagesRecordEnumerator(ListManagedInstanceUpdatablePackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstanceUpdatablePackages(request, retryConfiguration, cancellationToken), + response => response.UpdatablePackageCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagedInstances operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstancesResponseEnumerator(ListManagedInstancesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstances(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ManagedInstanceSummary objects + /// contained in responses from the ListManagedInstances operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagedInstancesRecordEnumerator(ListManagedInstancesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagedInstances(request, retryConfiguration, cancellationToken), + response => response.ManagedInstanceCollection.Items + ); + } + + } +} diff --git a/Osmanagementhub/ManagementStationClient.cs b/Osmanagementhub/ManagementStationClient.cs new file mode 100644 index 0000000000..5ad2a3c411 --- /dev/null +++ b/Osmanagementhub/ManagementStationClient.cs @@ -0,0 +1,532 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System; +using System.Diagnostics; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Oci.Common; +using Oci.Common.Alloy; +using Oci.Common.Model; +using Oci.Common.Auth; +using Oci.Common.Retry; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// Service client instance for ManagementStation. + public class ManagementStationClient : RegionalClientBase + { + private readonly RetryConfiguration retryConfiguration; + private const string basePathWithoutHost = "/20220901"; + + public ManagementStationPaginators Paginators { get; } + + public ManagementStationWaiters Waiters { get; } + + /// + /// Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. + /// A client configuration can also be provided optionally to adjust REST client behaviors. + /// + /// The authentication details provider. Required. + /// The client configuration that contains settings to adjust REST client behaviors. Optional. + /// The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. + public ManagementStationClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null) + : base(authenticationDetailsProvider, clientConfiguration) + { + if (!AlloyConfiguration.IsServiceEnabled("osmanagementhub")) + { + throw new ArgumentException("The Alloy configuration disabled this service, this behavior is controlled by AlloyConfiguration.OciEnabledServiceSet variable. Please check if your local alloy_config file has configured the service you're targeting or contact the cloud provider on the availability of this service"); + } + service = new Service + { + ServiceName = "MANAGEMENTSTATION", + ServiceEndpointPrefix = "", + ServiceEndpointTemplate = "https://osmh.{region}.oci.{secondLevelDomain}" + }; + + ClientConfiguration clientConfigurationToUse = clientConfiguration ?? new ClientConfiguration(); + + if (authenticationDetailsProvider is IRegionProvider) + { + // Use region from Authentication details provider. + SetRegion(((IRegionProvider)authenticationDetailsProvider).Region); + } + + if (endpoint != null) + { + logger.Info($"Using endpoint specified \"{endpoint}\"."); + SetEndpoint(endpoint); + } + + this.retryConfiguration = clientConfigurationToUse.RetryConfiguration; + Paginators = new ManagementStationPaginators(this); + Waiters = new ManagementStationWaiters(this); + } + + /// + /// Creates a management station. + /// + /// + /// 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 CreateManagementStation API. + public async Task CreateManagementStation(CreateManagementStationRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called createManagementStation"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managementStations".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 = "ManagementStation", + OperationName = "CreateManagementStation", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"CreateManagementStation failed with error: {e.Message}"); + throw; + } + } + + /// + /// Deletes a management station. + /// + /// + /// 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 DeleteManagementStation API. + public async Task DeleteManagementStation(DeleteManagementStationRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called deleteManagementStation"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managementStations/{managementStationId}".Trim('/'))); + HttpMethod method = new HttpMethod("DELETE"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagementStation", + OperationName = "DeleteManagementStation", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"DeleteManagementStation failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified management station. + /// + /// + /// 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 GetManagementStation API. + public async Task GetManagementStation(GetManagementStationRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getManagementStation"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managementStations/{managementStationId}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagementStation", + OperationName = "GetManagementStation", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetManagementStation failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists management stations in a compartment. + /// + /// + /// The request object containing the details to send. Required. + /// The retry configuration that will be used by to send this request. Optional. + /// The cancellation token to cancel this operation. Optional. + /// The completion option for this operation. Optional. + /// A response object containing details about the completed operation + /// Click here to see an example of how to use ListManagementStations API. + public async Task ListManagementStations(ListManagementStationsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listManagementStations"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managementStations".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagementStation", + OperationName = "ListManagementStations", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListManagementStations failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists all software source mirrors associated with a specified management station. + /// + /// + /// 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 ListMirrors API. + public async Task ListMirrors(ListMirrorsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listMirrors"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managementStations/{managementStationId}/mirrors".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagementStation", + OperationName = "ListMirrors", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListMirrors failed with error: {e.Message}"); + throw; + } + } + + /// + /// Synchronizes the specified mirrors associated with the management station. + /// + /// + /// 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 SynchronizeMirrors API. + public async Task SynchronizeMirrors(SynchronizeMirrorsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called synchronizeMirrors"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managementStations/{managementStationId}/actions/synchronizeMirrors".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 = "ManagementStation", + OperationName = "SynchronizeMirrors", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"SynchronizeMirrors failed with error: {e.Message}"); + throw; + } + } + + /// + /// Synchronize the specified mirror associated with a management station. + /// + /// + /// 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 SynchronizeSingleMirrors API. + public async Task SynchronizeSingleMirrors(SynchronizeSingleMirrorsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called synchronizeSingleMirrors"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managementStations/{managementStationId}/mirrors/{mirrorId}/actions/synchronize".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 = "ManagementStation", + OperationName = "SynchronizeSingleMirrors", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"SynchronizeSingleMirrors failed with error: {e.Message}"); + throw; + } + } + + /// + /// Updates the configuration of the specified management station. + /// + /// + /// 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 UpdateManagementStation API. + public async Task UpdateManagementStation(UpdateManagementStationRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateManagementStation"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managementStations/{managementStationId}".Trim('/'))); + HttpMethod method = new HttpMethod("PUT"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ManagementStation", + OperationName = "UpdateManagementStation", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"UpdateManagementStation failed with error: {e.Message}"); + throw; + } + } + + } +} diff --git a/Osmanagementhub/ManagementStationPaginators.cs b/Osmanagementhub/ManagementStationPaginators.cs new file mode 100644 index 0000000000..374be3c2e7 --- /dev/null +++ b/Osmanagementhub/ManagementStationPaginators.cs @@ -0,0 +1,151 @@ +/* + * 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.Collections.Generic; +using System.Threading; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService +{ + /// + /// Collection of helper methods that can be used to provide an enumerator interface + /// to any list operations of ManagementStation where multiple pages of data may be fetched. + /// Two styles of enumerators are supported: + /// + /// + /// + /// Enumerating over the Response objects returned by the list operation. These are referred to as ResponseEnumerators, and the methods are suffixed with ResponseEnumerator. For example: listUsersResponseEnumerator. + /// + /// + /// + /// + /// Enumerating over the resources/records being listed. These are referred to as RecordEnumerators, and the methods are suffixed with RecordEnumerator. For example: listUsersRecordEnumerator. + /// + /// + /// + /// These enumerators abstract away the need to write code to manually handle pagination via looping and using the page tokens. + /// They will automatically fetch more data from the service when required. + ///
+ ///
+ /// As an example, if we were using the ListUsers operation in IdentityService, then the iterator returned by calling a + /// ResponseEnumerator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the enumerables + /// returned by calling a RecordEnumerator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + /// In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + ///
+ public class ManagementStationPaginators + { + private readonly ManagementStationClient client; + + public ManagementStationPaginators(ManagementStationClient client) + { + this.client = client; + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListManagementStations operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagementStationsResponseEnumerator(ListManagementStationsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagementStations(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ManagementStationSummary objects + /// contained in responses from the ListManagementStations operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListManagementStationsRecordEnumerator(ListManagementStationsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListManagementStations(request, retryConfiguration, cancellationToken), + response => response.ManagementStationCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListMirrors operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListMirrorsResponseEnumerator(ListMirrorsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListMirrors(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the MirrorSummary objects + /// contained in responses from the ListMirrors operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListMirrorsRecordEnumerator(ListMirrorsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListMirrors(request, retryConfiguration, cancellationToken), + response => response.MirrorsCollection.Items + ); + } + + } +} diff --git a/Osmanagementhub/ManagementStationWaiters.cs b/Osmanagementhub/ManagementStationWaiters.cs new file mode 100644 index 0000000000..9358f17a65 --- /dev/null +++ b/Osmanagementhub/ManagementStationWaiters.cs @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + +using System.Linq; +using Oci.Common.Waiters; +using Oci.OsmanagementhubService.Models; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// + /// Contains collection of helper methods to produce Oci.Common.Waiters for different resources of ManagementStation. + /// + public class ManagementStationWaiters + { + private readonly ManagementStationClient client; + + public ManagementStationWaiters(ManagementStationClient client) + { + this.client = client; + } + + /// + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForManagementStation(GetManagementStationRequest request, params ManagementStation.LifecycleStateEnum[] targetStates) + { + return this.ForManagementStation(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForManagementStation(GetManagementStationRequest request, WaiterConfiguration config, params ManagementStation.LifecycleStateEnum[] targetStates) + { + var agent = new WaiterAgent( + request, + request => client.GetManagementStation(request), + response => targetStates.Contains(response.ManagementStation.LifecycleState.Value), + targetStates.Contains(ManagementStation.LifecycleStateEnum.Deleted) + ); + return new Waiter(config, agent); + } + } +} diff --git a/Osmanagementhub/OCI.DotNetSDK.Osmanagementhub.csproj b/Osmanagementhub/OCI.DotNetSDK.Osmanagementhub.csproj new file mode 100644 index 0000000000..ddcce8a785 --- /dev/null +++ b/Osmanagementhub/OCI.DotNetSDK.Osmanagementhub.csproj @@ -0,0 +1,19 @@ + + + + + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410} + Library + netstandard2.0 + 8.0 + OCI.DotNetSDK.Osmanagementhub + Oci.OsmanagementhubService + Oracle Cloud Infrastructure + Oracle + Oracle;OCI;Oracle Cloud;OracleCloud;oci-sdk;OracleCloudInfrastructure;Osmanagementhub + Oracle Cloud Infrastructure Cloud Os Management Hub Service + + + + + diff --git a/Osmanagementhub/OnboardingClient.cs b/Osmanagementhub/OnboardingClient.cs new file mode 100644 index 0000000000..bf8e23b2d9 --- /dev/null +++ b/Osmanagementhub/OnboardingClient.cs @@ -0,0 +1,361 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System; +using System.Diagnostics; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Oci.Common; +using Oci.Common.Alloy; +using Oci.Common.Model; +using Oci.Common.Auth; +using Oci.Common.Retry; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// Service client instance for Onboarding. + public class OnboardingClient : RegionalClientBase + { + private readonly RetryConfiguration retryConfiguration; + private const string basePathWithoutHost = "/20220901"; + + public OnboardingPaginators Paginators { get; } + + public OnboardingWaiters Waiters { get; } + + /// + /// Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. + /// A client configuration can also be provided optionally to adjust REST client behaviors. + /// + /// The authentication details provider. Required. + /// The client configuration that contains settings to adjust REST client behaviors. Optional. + /// The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. + public OnboardingClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null) + : base(authenticationDetailsProvider, clientConfiguration) + { + if (!AlloyConfiguration.IsServiceEnabled("osmanagementhub")) + { + throw new ArgumentException("The Alloy configuration disabled this service, this behavior is controlled by AlloyConfiguration.OciEnabledServiceSet variable. Please check if your local alloy_config file has configured the service you're targeting or contact the cloud provider on the availability of this service"); + } + service = new Service + { + ServiceName = "ONBOARDING", + ServiceEndpointPrefix = "", + ServiceEndpointTemplate = "https://osmh.{region}.oci.{secondLevelDomain}" + }; + + ClientConfiguration clientConfigurationToUse = clientConfiguration ?? new ClientConfiguration(); + + if (authenticationDetailsProvider is IRegionProvider) + { + // Use region from Authentication details provider. + SetRegion(((IRegionProvider)authenticationDetailsProvider).Region); + } + + if (endpoint != null) + { + logger.Info($"Using endpoint specified \"{endpoint}\"."); + SetEndpoint(endpoint); + } + + this.retryConfiguration = clientConfigurationToUse.RetryConfiguration; + Paginators = new OnboardingPaginators(this); + Waiters = new OnboardingWaiters(this); + } + + /// + /// Creates a registration profile. + /// A profile is a supplementary file for the OS Management Hub agentry + /// that dictates the content for a managed instance at registration time. + /// + /// + /// 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 CreateProfile API. + public async Task CreateProfile(CreateProfileRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called createProfile"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/profiles".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 = "Onboarding", + OperationName = "CreateProfile", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"CreateProfile failed with error: {e.Message}"); + throw; + } + } + + /// + /// Deletes a specified registration profile. + /// + /// 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 DeleteProfile API. + public async Task DeleteProfile(DeleteProfileRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called deleteProfile"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/profiles/{profileId}".Trim('/'))); + HttpMethod method = new HttpMethod("DELETE"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "Onboarding", + OperationName = "DeleteProfile", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"DeleteProfile failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified registration profile. + /// + /// 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 GetProfile API. + public async Task GetProfile(GetProfileRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getProfile"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/profiles/{profileId}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "Onboarding", + OperationName = "GetProfile", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetProfile failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists registration profiles that match the specified compartment or profile OCID. Filter the list against a + /// variety of criteria including but not limited to its name, status, vendor name, and architecture type. + /// + /// + /// 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 ListProfiles API. + public async Task ListProfiles(ListProfilesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listProfiles"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/profiles".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "Onboarding", + OperationName = "ListProfiles", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListProfiles failed with error: {e.Message}"); + throw; + } + } + + /// + /// Updates the specified profile's name, description, and tags. + /// + /// 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 UpdateProfile API. + public async Task UpdateProfile(UpdateProfileRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateProfile"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/profiles/{profileId}".Trim('/'))); + HttpMethod method = new HttpMethod("PUT"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "Onboarding", + OperationName = "UpdateProfile", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"UpdateProfile failed with error: {e.Message}"); + throw; + } + } + + } +} diff --git a/Osmanagementhub/OnboardingPaginators.cs b/Osmanagementhub/OnboardingPaginators.cs new file mode 100644 index 0000000000..34f251307e --- /dev/null +++ b/Osmanagementhub/OnboardingPaginators.cs @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Collections.Generic; +using System.Threading; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService +{ + /// + /// Collection of helper methods that can be used to provide an enumerator interface + /// to any list operations of Onboarding where multiple pages of data may be fetched. + /// Two styles of enumerators are supported: + /// + /// + /// + /// Enumerating over the Response objects returned by the list operation. These are referred to as ResponseEnumerators, and the methods are suffixed with ResponseEnumerator. For example: listUsersResponseEnumerator. + /// + /// + /// + /// + /// Enumerating over the resources/records being listed. These are referred to as RecordEnumerators, and the methods are suffixed with RecordEnumerator. For example: listUsersRecordEnumerator. + /// + /// + /// + /// These enumerators abstract away the need to write code to manually handle pagination via looping and using the page tokens. + /// They will automatically fetch more data from the service when required. + ///
+ ///
+ /// As an example, if we were using the ListUsers operation in IdentityService, then the iterator returned by calling a + /// ResponseEnumerator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the enumerables + /// returned by calling a RecordEnumerator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + /// In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + ///
+ public class OnboardingPaginators + { + private readonly OnboardingClient client; + + public OnboardingPaginators(OnboardingClient client) + { + this.client = client; + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListProfiles operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListProfilesResponseEnumerator(ListProfilesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListProfiles(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ProfileSummary objects + /// contained in responses from the ListProfiles operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListProfilesRecordEnumerator(ListProfilesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListProfiles(request, retryConfiguration, cancellationToken), + response => response.ProfileCollection.Items + ); + } + + } +} diff --git a/Osmanagementhub/OnboardingWaiters.cs b/Osmanagementhub/OnboardingWaiters.cs new file mode 100644 index 0000000000..e1bfb8c6cd --- /dev/null +++ b/Osmanagementhub/OnboardingWaiters.cs @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + +using System.Linq; +using Oci.Common.Waiters; +using Oci.OsmanagementhubService.Models; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// + /// Contains collection of helper methods to produce Oci.Common.Waiters for different resources of Onboarding. + /// + public class OnboardingWaiters + { + private readonly OnboardingClient client; + + public OnboardingWaiters(OnboardingClient client) + { + this.client = client; + } + + /// + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForProfile(GetProfileRequest request, params Profile.LifecycleStateEnum[] targetStates) + { + return this.ForProfile(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForProfile(GetProfileRequest request, WaiterConfiguration config, params Profile.LifecycleStateEnum[] targetStates) + { + var agent = new WaiterAgent( + request, + request => client.GetProfile(request), + response => targetStates.Contains(response.Profile.LifecycleState.Value), + targetStates.Contains(Profile.LifecycleStateEnum.Deleted) + ); + return new Waiter(config, agent); + } + } +} diff --git a/Osmanagementhub/README.md b/Osmanagementhub/README.md new file mode 100644 index 0000000000..27c8776b85 --- /dev/null +++ b/Osmanagementhub/README.md @@ -0,0 +1,20 @@ + +# OCI .NET client for Os Management Hub Service + +This module enables you to write code to manage resources for Os Management Hub Service. + +## Requirements + +To use this module, you must have the following: + +- An Oracle Cloud Infrastructure account. +- A user created in that account, in a group with a policy that grants the desired permissions. This can be a user for yourself, or another person/system that needs to call the API. For an example of how to set up a new user, group, compartment, and policy, see [Adding Users](https://docs.cloud.oracle.com/en-us/iaas/Content/GSG/Tasks/addingusers.htm). For a list of typical policies you may want to use, see [Common Policies](https://docs.cloud.oracle.com/en-us/iaas/Content/Identity/Concepts/commonpolicies.htm). +- A key pair used for signing API requests, with the public key uploaded to Oracle. Only the user calling the API should be in possession of the private key. For more information, see [Configuring Credentials](https://docs.cloud.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconfig.htm) + +## Installing + +Use the following command to install this module: + +``` +dotnet add package OCI.DotNetSDK.Osmanagementhub +``` diff --git a/Osmanagementhub/ReportingManagedInstanceClient.cs b/Osmanagementhub/ReportingManagedInstanceClient.cs new file mode 100644 index 0000000000..fc227ed4e2 --- /dev/null +++ b/Osmanagementhub/ReportingManagedInstanceClient.cs @@ -0,0 +1,241 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System; +using System.Diagnostics; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Oci.Common; +using Oci.Common.Alloy; +using Oci.Common.Model; +using Oci.Common.Auth; +using Oci.Common.Retry; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// Service client instance for ReportingManagedInstance. + public class ReportingManagedInstanceClient : RegionalClientBase + { + private readonly RetryConfiguration retryConfiguration; + private const string basePathWithoutHost = "/20220901"; + + /// + /// Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. + /// A client configuration can also be provided optionally to adjust REST client behaviors. + /// + /// The authentication details provider. Required. + /// The client configuration that contains settings to adjust REST client behaviors. Optional. + /// The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. + public ReportingManagedInstanceClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null) + : base(authenticationDetailsProvider, clientConfiguration) + { + if (!AlloyConfiguration.IsServiceEnabled("osmanagementhub")) + { + throw new ArgumentException("The Alloy configuration disabled this service, this behavior is controlled by AlloyConfiguration.OciEnabledServiceSet variable. Please check if your local alloy_config file has configured the service you're targeting or contact the cloud provider on the availability of this service"); + } + service = new Service + { + ServiceName = "REPORTINGMANAGEDINSTANCE", + ServiceEndpointPrefix = "", + ServiceEndpointTemplate = "https://osmh.{region}.oci.{secondLevelDomain}" + }; + + ClientConfiguration clientConfigurationToUse = clientConfiguration ?? new ClientConfiguration(); + + if (authenticationDetailsProvider is IRegionProvider) + { + // Use region from Authentication details provider. + SetRegion(((IRegionProvider)authenticationDetailsProvider).Region); + } + + if (endpoint != null) + { + logger.Info($"Using endpoint specified \"{endpoint}\"."); + SetEndpoint(endpoint); + } + + this.retryConfiguration = clientConfigurationToUse.RetryConfiguration; + } + + /// + /// Returns a CSV format report of managed instances matching the given filters. + /// + /// + /// 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 GetManagedInstanceAnalyticContent API. + public async Task GetManagedInstanceAnalyticContent(GetManagedInstanceAnalyticContentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getManagedInstanceAnalyticContent"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceAnalytics/content".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/x-yaml"); + 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 = "ReportingManagedInstance", + OperationName = "GetManagedInstanceAnalyticContent", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetManagedInstanceAnalyticContent failed with error: {e.Message}"); + throw; + } + } + + /// + /// Returns a CSV format report of a single managed instance whose associated Erratas match the given filters. + /// + /// + /// 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 GetManagedInstanceContent API. + public async Task GetManagedInstanceContent(GetManagedInstanceContentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getManagedInstanceContent"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstances/{managedInstanceId}/content".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/x-yaml"); + 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 = "ReportingManagedInstance", + OperationName = "GetManagedInstanceContent", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetManagedInstanceContent failed with error: {e.Message}"); + throw; + } + } + + /// + /// Returns a list of user specified metrics for a collection of managed instances. + /// + /// + /// 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 SummarizeManagedInstanceAnalytics API. + public async Task SummarizeManagedInstanceAnalytics(SummarizeManagedInstanceAnalyticsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called summarizeManagedInstanceAnalytics"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/managedInstanceAnalytics".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ReportingManagedInstance", + OperationName = "SummarizeManagedInstanceAnalytics", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"SummarizeManagedInstanceAnalytics failed with error: {e.Message}"); + throw; + } + } + + } +} diff --git a/Osmanagementhub/ScheduledJobClient.cs b/Osmanagementhub/ScheduledJobClient.cs new file mode 100644 index 0000000000..a6f1e83911 --- /dev/null +++ b/Osmanagementhub/ScheduledJobClient.cs @@ -0,0 +1,421 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System; +using System.Diagnostics; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Oci.Common; +using Oci.Common.Alloy; +using Oci.Common.Model; +using Oci.Common.Auth; +using Oci.Common.Retry; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// Service client instance for ScheduledJob. + public class ScheduledJobClient : RegionalClientBase + { + private readonly RetryConfiguration retryConfiguration; + private const string basePathWithoutHost = "/20220901"; + + public ScheduledJobPaginators Paginators { get; } + + public ScheduledJobWaiters Waiters { get; } + + /// + /// Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. + /// A client configuration can also be provided optionally to adjust REST client behaviors. + /// + /// The authentication details provider. Required. + /// The client configuration that contains settings to adjust REST client behaviors. Optional. + /// The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. + public ScheduledJobClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null) + : base(authenticationDetailsProvider, clientConfiguration) + { + if (!AlloyConfiguration.IsServiceEnabled("osmanagementhub")) + { + throw new ArgumentException("The Alloy configuration disabled this service, this behavior is controlled by AlloyConfiguration.OciEnabledServiceSet variable. Please check if your local alloy_config file has configured the service you're targeting or contact the cloud provider on the availability of this service"); + } + service = new Service + { + ServiceName = "SCHEDULEDJOB", + ServiceEndpointPrefix = "", + ServiceEndpointTemplate = "https://osmh.{region}.oci.{secondLevelDomain}" + }; + + ClientConfiguration clientConfigurationToUse = clientConfiguration ?? new ClientConfiguration(); + + if (authenticationDetailsProvider is IRegionProvider) + { + // Use region from Authentication details provider. + SetRegion(((IRegionProvider)authenticationDetailsProvider).Region); + } + + if (endpoint != null) + { + logger.Info($"Using endpoint specified \"{endpoint}\"."); + SetEndpoint(endpoint); + } + + this.retryConfiguration = clientConfigurationToUse.RetryConfiguration; + Paginators = new ScheduledJobPaginators(this); + Waiters = new ScheduledJobWaiters(this); + } + + /// + /// Creates a new scheduled job. + /// + /// + /// 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 CreateScheduledJob API. + public async Task CreateScheduledJob(CreateScheduledJobRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called createScheduledJob"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/scheduledJobs".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 = "ScheduledJob", + OperationName = "CreateScheduledJob", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"CreateScheduledJob failed with error: {e.Message}"); + throw; + } + } + + /// + /// Deletes the specified scheduled job. + /// + /// + /// 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 DeleteScheduledJob API. + public async Task DeleteScheduledJob(DeleteScheduledJobRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called deleteScheduledJob"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/scheduledJobs/{scheduledJobId}".Trim('/'))); + HttpMethod method = new HttpMethod("DELETE"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ScheduledJob", + OperationName = "DeleteScheduledJob", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"DeleteScheduledJob failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified scheduled job. + /// + /// + /// 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 GetScheduledJob API. + public async Task GetScheduledJob(GetScheduledJobRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getScheduledJob"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/scheduledJobs/{scheduledJobId}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ScheduledJob", + OperationName = "GetScheduledJob", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetScheduledJob failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists scheduled jobs that match the specified compartment or scheduled job OCID. + /// Filter the list against a variety of criteria including but not limited to its display name, + /// lifecycle state, operation type, and schedule type. + /// + /// + /// 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 ListScheduledJobs API. + public async Task ListScheduledJobs(ListScheduledJobsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listScheduledJobs"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/scheduledJobs".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ScheduledJob", + OperationName = "ListScheduledJobs", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListScheduledJobs failed with error: {e.Message}"); + throw; + } + } + + /// + /// Triggers an already created RECURRING scheduled job to run immediately instead of waiting + /// for its next regularly scheduled time. This operation does not support ONETIME scheduled job. + /// + /// + /// 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 RunScheduledJobNow API. + public async Task RunScheduledJobNow(RunScheduledJobNowRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called runScheduledJobNow"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/scheduledJobs/{scheduledJobId}/actions/runNow".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 = "ScheduledJob", + OperationName = "RunScheduledJobNow", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"RunScheduledJobNow failed with error: {e.Message}"); + throw; + } + } + + /// + /// Updates the specified scheduled job's name, description, and other details, such as next execution and recurrence. + /// + /// + /// 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 UpdateScheduledJob API. + public async Task UpdateScheduledJob(UpdateScheduledJobRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateScheduledJob"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/scheduledJobs/{scheduledJobId}".Trim('/'))); + HttpMethod method = new HttpMethod("PUT"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "ScheduledJob", + OperationName = "UpdateScheduledJob", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"UpdateScheduledJob failed with error: {e.Message}"); + throw; + } + } + + } +} diff --git a/Osmanagementhub/ScheduledJobPaginators.cs b/Osmanagementhub/ScheduledJobPaginators.cs new file mode 100644 index 0000000000..8c2d4cc325 --- /dev/null +++ b/Osmanagementhub/ScheduledJobPaginators.cs @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Collections.Generic; +using System.Threading; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService +{ + /// + /// Collection of helper methods that can be used to provide an enumerator interface + /// to any list operations of ScheduledJob where multiple pages of data may be fetched. + /// Two styles of enumerators are supported: + /// + /// + /// + /// Enumerating over the Response objects returned by the list operation. These are referred to as ResponseEnumerators, and the methods are suffixed with ResponseEnumerator. For example: listUsersResponseEnumerator. + /// + /// + /// + /// + /// Enumerating over the resources/records being listed. These are referred to as RecordEnumerators, and the methods are suffixed with RecordEnumerator. For example: listUsersRecordEnumerator. + /// + /// + /// + /// These enumerators abstract away the need to write code to manually handle pagination via looping and using the page tokens. + /// They will automatically fetch more data from the service when required. + ///
+ ///
+ /// As an example, if we were using the ListUsers operation in IdentityService, then the iterator returned by calling a + /// ResponseEnumerator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the enumerables + /// returned by calling a RecordEnumerator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + /// In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + ///
+ public class ScheduledJobPaginators + { + private readonly ScheduledJobClient client; + + public ScheduledJobPaginators(ScheduledJobClient client) + { + this.client = client; + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListScheduledJobs operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListScheduledJobsResponseEnumerator(ListScheduledJobsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListScheduledJobs(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ScheduledJobSummary objects + /// contained in responses from the ListScheduledJobs operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListScheduledJobsRecordEnumerator(ListScheduledJobsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListScheduledJobs(request, retryConfiguration, cancellationToken), + response => response.ScheduledJobCollection.Items + ); + } + + } +} diff --git a/Osmanagementhub/ScheduledJobWaiters.cs b/Osmanagementhub/ScheduledJobWaiters.cs new file mode 100644 index 0000000000..881e9c665a --- /dev/null +++ b/Osmanagementhub/ScheduledJobWaiters.cs @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + +using System.Linq; +using Oci.Common.Waiters; +using Oci.OsmanagementhubService.Models; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// + /// Contains collection of helper methods to produce Oci.Common.Waiters for different resources of ScheduledJob. + /// + public class ScheduledJobWaiters + { + private readonly ScheduledJobClient client; + + public ScheduledJobWaiters(ScheduledJobClient client) + { + this.client = client; + } + + /// + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForScheduledJob(GetScheduledJobRequest request, params ScheduledJob.LifecycleStateEnum[] targetStates) + { + return this.ForScheduledJob(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForScheduledJob(GetScheduledJobRequest request, WaiterConfiguration config, params ScheduledJob.LifecycleStateEnum[] targetStates) + { + var agent = new WaiterAgent( + request, + request => client.GetScheduledJob(request), + response => targetStates.Contains(response.ScheduledJob.LifecycleState.Value), + targetStates.Contains(ScheduledJob.LifecycleStateEnum.Deleted) + ); + return new Waiter(config, agent); + } + } +} diff --git a/Osmanagementhub/SoftwareSourceClient.cs b/Osmanagementhub/SoftwareSourceClient.cs new file mode 100644 index 0000000000..c52609ec2e --- /dev/null +++ b/Osmanagementhub/SoftwareSourceClient.cs @@ -0,0 +1,1339 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System; +using System.Diagnostics; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Oci.Common; +using Oci.Common.Alloy; +using Oci.Common.Model; +using Oci.Common.Auth; +using Oci.Common.Retry; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// Service client instance for SoftwareSource. + public class SoftwareSourceClient : RegionalClientBase + { + private readonly RetryConfiguration retryConfiguration; + private const string basePathWithoutHost = "/20220901"; + + public SoftwareSourcePaginators Paginators { get; } + + public SoftwareSourceWaiters Waiters { get; } + + /// + /// Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. + /// A client configuration can also be provided optionally to adjust REST client behaviors. + /// + /// The authentication details provider. Required. + /// The client configuration that contains settings to adjust REST client behaviors. Optional. + /// The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. + public SoftwareSourceClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null) + : base(authenticationDetailsProvider, clientConfiguration) + { + if (!AlloyConfiguration.IsServiceEnabled("osmanagementhub")) + { + throw new ArgumentException("The Alloy configuration disabled this service, this behavior is controlled by AlloyConfiguration.OciEnabledServiceSet variable. Please check if your local alloy_config file has configured the service you're targeting or contact the cloud provider on the availability of this service"); + } + service = new Service + { + ServiceName = "SOFTWARESOURCE", + ServiceEndpointPrefix = "", + ServiceEndpointTemplate = "https://osmh.{region}.oci.{secondLevelDomain}" + }; + + ClientConfiguration clientConfigurationToUse = clientConfiguration ?? new ClientConfiguration(); + + if (authenticationDetailsProvider is IRegionProvider) + { + // Use region from Authentication details provider. + SetRegion(((IRegionProvider)authenticationDetailsProvider).Region); + } + + if (endpoint != null) + { + logger.Info($"Using endpoint specified \"{endpoint}\"."); + SetEndpoint(endpoint); + } + + this.retryConfiguration = clientConfigurationToUse.RetryConfiguration; + Paginators = new SoftwareSourcePaginators(this); + Waiters = new SoftwareSourceWaiters(this); + } + + /// + /// Updates the availability for a list of specified software sources. + /// + /// + /// 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 ChangeAvailabilityOfSoftwareSources API. + public async Task ChangeAvailabilityOfSoftwareSources(ChangeAvailabilityOfSoftwareSourcesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called changeAvailabilityOfSoftwareSources"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources/actions/changeAvailability".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 = "SoftwareSource", + OperationName = "ChangeAvailabilityOfSoftwareSources", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ChangeAvailabilityOfSoftwareSources failed with error: {e.Message}"); + throw; + } + } + + /// + /// Registers the necessary entitlement credentials for OS vendor software sources. + /// + /// + /// 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 CreateEntitlement API. + public async Task CreateEntitlement(CreateEntitlementRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called createEntitlement"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/entitlements".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 = "SoftwareSource", + OperationName = "CreateEntitlement", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"CreateEntitlement failed with error: {e.Message}"); + throw; + } + } + + /// + /// Creates a new versioned or custom software source. + /// + /// + /// 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 CreateSoftwareSource API. + public async Task CreateSoftwareSource(CreateSoftwareSourceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called createSoftwareSource"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources".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 = "SoftwareSource", + OperationName = "CreateSoftwareSource", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"CreateSoftwareSource failed with error: {e.Message}"); + throw; + } + } + + /// + /// Deletes the specified software source. + /// + /// 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 DeleteSoftwareSource API. + public async Task DeleteSoftwareSource(DeleteSoftwareSourceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called deleteSoftwareSource"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources/{softwareSourceId}".Trim('/'))); + HttpMethod method = new HttpMethod("DELETE"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "DeleteSoftwareSource", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"DeleteSoftwareSource failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified erratum by its advisory name. + /// + /// + /// 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 GetErratum API. + public async Task GetErratum(GetErratumRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getErratum"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/errata/{name}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "GetErratum", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetErratum failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified module stream in a software source. + /// + /// + /// 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 GetModuleStream API. + public async Task GetModuleStream(GetModuleStreamRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getModuleStream"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources/{softwareSourceId}/moduleStreams/{moduleName}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "GetModuleStream", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetModuleStream failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified module stream profile in a software source. + /// + /// + /// 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 GetModuleStreamProfile API. + public async Task GetModuleStreamProfile(GetModuleStreamProfileRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getModuleStreamProfile"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources/{softwareSourceId}/moduleStreamProfiles/{profileName}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "GetModuleStreamProfile", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetModuleStreamProfile failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified package group from a software source. + /// + /// + /// 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 GetPackageGroup API. + public async Task GetPackageGroup(GetPackageGroupRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getPackageGroup"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources/{softwareSourceId}/packageGroups/{packageGroupId}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "GetPackageGroup", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetPackageGroup failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified software package. + /// + /// + /// 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 GetSoftwarePackage API. + public async Task GetSoftwarePackage(GetSoftwarePackageRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getSoftwarePackage"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources/{softwareSourceId}/softwarePackages/{softwarePackageName}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "GetSoftwarePackage", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetSoftwarePackage failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets information about the specified software source. + /// + /// 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 GetSoftwareSource API. + public async Task GetSoftwareSource(GetSoftwareSourceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getSoftwareSource"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources/{softwareSourceId}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "GetSoftwareSource", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetSoftwareSource failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists entitlements in the specified tenancy OCID. Filter the list against a variety of criteria including but + /// not limited to its CSI, and vendor name. + /// + /// + /// 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 ListEntitlements API. + public async Task ListEntitlements(ListEntitlementsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listEntitlements"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/entitlements".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "ListEntitlements", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListEntitlements failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists all of the currently available errata. Filter the list against a variety of criteria including but not + /// limited to its name, classification type, advisory severity, and OS family. + /// + /// + /// 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 ListErrata API. + public async Task ListErrata(ListErrataRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listErrata"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/errata".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "ListErrata", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListErrata failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists module stream profiles from the specified software source OCID. Filter the list against a variety of + /// criteria including but not limited to its module name, stream name, and (profile) name. + /// + /// + /// 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 ListModuleStreamProfiles API. + public async Task ListModuleStreamProfiles(ListModuleStreamProfilesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listModuleStreamProfiles"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources/{softwareSourceId}/moduleStreamProfiles".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "ListModuleStreamProfiles", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListModuleStreamProfiles failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists module streams from the specified software source OCID. Filter the list against a variety of + /// criteria including but not limited to its module name and (stream) name. + /// + /// + /// 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 ListModuleStreams API. + public async Task ListModuleStreams(ListModuleStreamsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listModuleStreams"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources/{softwareSourceId}/moduleStreams".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "ListModuleStreams", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListModuleStreams failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists package groups that associate with the specified software source OCID. Filter the list against a + /// variety of criteria including but not limited to its name, and package group type. + /// + /// + /// 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 ListPackageGroups API. + public async Task ListPackageGroups(ListPackageGroupsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listPackageGroups"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources/{softwareSourceId}/packageGroups".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "ListPackageGroups", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListPackageGroups failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists software packages in the specified software source. Filter the list against a variety of criteria + /// including but not limited to its name. + /// + /// + /// 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 ListSoftwarePackages API. + public async Task ListSoftwarePackages(ListSoftwarePackagesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listSoftwarePackages"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources/{softwareSourceId}/softwarePackages".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "ListSoftwarePackages", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListSoftwarePackages failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists available software source vendors. Filter the list against a variety of criteria including but not limited + /// to its name. + /// + /// + /// 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 ListSoftwareSourceVendors API. + public async Task ListSoftwareSourceVendors(ListSoftwareSourceVendorsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listSoftwareSourceVendors"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSourceVendors".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "ListSoftwareSourceVendors", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListSoftwareSourceVendors failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists software sources that match the specified tenancy or software source OCID. Filter the list against a + /// variety of criteria including but not limited to its name, status, architecture, and OS family. + /// + /// + /// 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 ListSoftwareSources API. + public async Task ListSoftwareSources(ListSoftwareSourcesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listSoftwareSources"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "ListSoftwareSources", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListSoftwareSources failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists modules from a list of software sources. Filter the list against a variety of + /// criteria including the module name. + /// + /// + /// 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 SearchSoftwareSourceModuleStreams API. + public async Task SearchSoftwareSourceModuleStreams(SearchSoftwareSourceModuleStreamsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called searchSoftwareSourceModuleStreams"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSourceModuleStreams/actions/search".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 = "SoftwareSource", + OperationName = "SearchSoftwareSourceModuleStreams", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"SearchSoftwareSourceModuleStreams failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists modules from a list of software sources. Filter the list against a variety of + /// criteria including the (module) name. + /// + /// + /// 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 SearchSoftwareSourceModules API. + public async Task SearchSoftwareSourceModules(SearchSoftwareSourceModulesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called searchSoftwareSourceModules"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSourceModules/actions/search".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 = "SoftwareSource", + OperationName = "SearchSoftwareSourceModules", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"SearchSoftwareSourceModules failed with error: {e.Message}"); + throw; + } + } + + /// + /// Searches the package groups from the specified list of software sources. Filter the list against a variety of criteria + /// including but not limited to its name, and group type. + /// + /// + /// 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 SearchSoftwareSourcePackageGroups API. + public async Task SearchSoftwareSourcePackageGroups(SearchSoftwareSourcePackageGroupsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called searchSoftwareSourcePackageGroups"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSourcePackageGroups/actions/search".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 = "SoftwareSource", + OperationName = "SearchSoftwareSourcePackageGroups", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"SearchSoftwareSourcePackageGroups failed with error: {e.Message}"); + throw; + } + } + + /// + /// Updates the specified software source's details, including but not limited to name, description, and tags. + /// + /// + /// 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 UpdateSoftwareSource API. + public async Task UpdateSoftwareSource(UpdateSoftwareSourceRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called updateSoftwareSource"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/softwareSources/{softwareSourceId}".Trim('/'))); + HttpMethod method = new HttpMethod("PUT"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "SoftwareSource", + OperationName = "UpdateSoftwareSource", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"UpdateSoftwareSource failed with error: {e.Message}"); + throw; + } + } + + } +} diff --git a/Osmanagementhub/SoftwareSourcePaginators.cs b/Osmanagementhub/SoftwareSourcePaginators.cs new file mode 100644 index 0000000000..ea4480fb7a --- /dev/null +++ b/Osmanagementhub/SoftwareSourcePaginators.cs @@ -0,0 +1,396 @@ +/* + * 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.Collections.Generic; +using System.Threading; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService +{ + /// + /// Collection of helper methods that can be used to provide an enumerator interface + /// to any list operations of SoftwareSource where multiple pages of data may be fetched. + /// Two styles of enumerators are supported: + /// + /// + /// + /// Enumerating over the Response objects returned by the list operation. These are referred to as ResponseEnumerators, and the methods are suffixed with ResponseEnumerator. For example: listUsersResponseEnumerator. + /// + /// + /// + /// + /// Enumerating over the resources/records being listed. These are referred to as RecordEnumerators, and the methods are suffixed with RecordEnumerator. For example: listUsersRecordEnumerator. + /// + /// + /// + /// These enumerators abstract away the need to write code to manually handle pagination via looping and using the page tokens. + /// They will automatically fetch more data from the service when required. + ///
+ ///
+ /// As an example, if we were using the ListUsers operation in IdentityService, then the iterator returned by calling a + /// ResponseEnumerator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the enumerables + /// returned by calling a RecordEnumerator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + /// In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + ///
+ public class SoftwareSourcePaginators + { + private readonly SoftwareSourceClient client; + + public SoftwareSourcePaginators(SoftwareSourceClient client) + { + this.client = client; + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListEntitlements operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListEntitlementsResponseEnumerator(ListEntitlementsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListEntitlements(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the EntitlementSummary objects + /// contained in responses from the ListEntitlements operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListEntitlementsRecordEnumerator(ListEntitlementsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListEntitlements(request, retryConfiguration, cancellationToken), + response => response.EntitlementCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListErrata operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListErrataResponseEnumerator(ListErrataRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListErrata(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ErratumSummary objects + /// contained in responses from the ListErrata operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListErrataRecordEnumerator(ListErrataRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListErrata(request, retryConfiguration, cancellationToken), + response => response.ErratumCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListModuleStreamProfiles operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListModuleStreamProfilesResponseEnumerator(ListModuleStreamProfilesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListModuleStreamProfiles(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ModuleStreamProfileSummary objects + /// contained in responses from the ListModuleStreamProfiles operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListModuleStreamProfilesRecordEnumerator(ListModuleStreamProfilesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListModuleStreamProfiles(request, retryConfiguration, cancellationToken), + response => response.ModuleStreamProfileCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListModuleStreams operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListModuleStreamsResponseEnumerator(ListModuleStreamsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListModuleStreams(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the ModuleStreamSummary objects + /// contained in responses from the ListModuleStreams operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListModuleStreamsRecordEnumerator(ListModuleStreamsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListModuleStreams(request, retryConfiguration, cancellationToken), + response => response.ModuleStreamCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListPackageGroups operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListPackageGroupsResponseEnumerator(ListPackageGroupsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListPackageGroups(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the PackageGroupSummary objects + /// contained in responses from the ListPackageGroups operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListPackageGroupsRecordEnumerator(ListPackageGroupsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListPackageGroups(request, retryConfiguration, cancellationToken), + response => response.PackageGroupCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListSoftwarePackages operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListSoftwarePackagesResponseEnumerator(ListSoftwarePackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListSoftwarePackages(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the SoftwarePackageSummary objects + /// contained in responses from the ListSoftwarePackages operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListSoftwarePackagesRecordEnumerator(ListSoftwarePackagesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListSoftwarePackages(request, retryConfiguration, cancellationToken), + response => response.SoftwarePackageCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListSoftwareSources operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListSoftwareSourcesResponseEnumerator(ListSoftwareSourcesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListSoftwareSources(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the SoftwareSourceSummary objects + /// contained in responses from the ListSoftwareSources operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListSoftwareSourcesRecordEnumerator(ListSoftwareSourcesRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListSoftwareSources(request, retryConfiguration, cancellationToken), + response => response.SoftwareSourceCollection.Items + ); + } + + } +} diff --git a/Osmanagementhub/SoftwareSourceWaiters.cs b/Osmanagementhub/SoftwareSourceWaiters.cs new file mode 100644 index 0000000000..7df610029b --- /dev/null +++ b/Osmanagementhub/SoftwareSourceWaiters.cs @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + +using System.Linq; +using Oci.Common.Waiters; +using Oci.OsmanagementhubService.Models; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// + /// Contains collection of helper methods to produce Oci.Common.Waiters for different resources of SoftwareSource. + /// + public class SoftwareSourceWaiters + { + private readonly SoftwareSourceClient client; + + public SoftwareSourceWaiters(SoftwareSourceClient client) + { + this.client = client; + } + + /// + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForSoftwareSource(GetSoftwareSourceRequest request, params SoftwareSource.LifecycleStateEnum[] targetStates) + { + return this.ForSoftwareSource(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForSoftwareSource(GetSoftwareSourceRequest request, WaiterConfiguration config, params SoftwareSource.LifecycleStateEnum[] targetStates) + { + var agent = new WaiterAgent( + request, + request => client.GetSoftwareSource(request), + response => targetStates.Contains(response.SoftwareSource.LifecycleState.Value), + targetStates.Contains(SoftwareSource.LifecycleStateEnum.Deleted) + ); + return new Waiter(config, agent); + } + } +} diff --git a/Osmanagementhub/WorkRequestClient.cs b/Osmanagementhub/WorkRequestClient.cs new file mode 100644 index 0000000000..396b9837ac --- /dev/null +++ b/Osmanagementhub/WorkRequestClient.cs @@ -0,0 +1,304 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System; +using System.Diagnostics; +using System.Net.Http; +using System.Threading; +using System.Threading.Tasks; +using Oci.Common; +using Oci.Common.Alloy; +using Oci.Common.Model; +using Oci.Common.Auth; +using Oci.Common.Retry; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// Service client instance for WorkRequest. + public class WorkRequestClient : RegionalClientBase + { + private readonly RetryConfiguration retryConfiguration; + private const string basePathWithoutHost = "/20220901"; + + public WorkRequestPaginators Paginators { get; } + + public WorkRequestWaiters Waiters { get; } + + /// + /// Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. + /// A client configuration can also be provided optionally to adjust REST client behaviors. + /// + /// The authentication details provider. Required. + /// The client configuration that contains settings to adjust REST client behaviors. Optional. + /// The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. + public WorkRequestClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null) + : base(authenticationDetailsProvider, clientConfiguration) + { + if (!AlloyConfiguration.IsServiceEnabled("osmanagementhub")) + { + throw new ArgumentException("The Alloy configuration disabled this service, this behavior is controlled by AlloyConfiguration.OciEnabledServiceSet variable. Please check if your local alloy_config file has configured the service you're targeting or contact the cloud provider on the availability of this service"); + } + service = new Service + { + ServiceName = "WORKREQUEST", + ServiceEndpointPrefix = "", + ServiceEndpointTemplate = "https://osmh.{region}.oci.{secondLevelDomain}" + }; + + ClientConfiguration clientConfigurationToUse = clientConfiguration ?? new ClientConfiguration(); + + if (authenticationDetailsProvider is IRegionProvider) + { + // Use region from Authentication details provider. + SetRegion(((IRegionProvider)authenticationDetailsProvider).Region); + } + + if (endpoint != null) + { + logger.Info($"Using endpoint specified \"{endpoint}\"."); + SetEndpoint(endpoint); + } + + this.retryConfiguration = clientConfigurationToUse.RetryConfiguration; + Paginators = new WorkRequestPaginators(this); + Waiters = new WorkRequestWaiters(this); + } + + /// + /// Gets information about the specified work request. + /// + /// 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 GetWorkRequest API. + public async Task GetWorkRequest(GetWorkRequestRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called getWorkRequest"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/workRequests/{workRequestId}".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "WorkRequest", + OperationName = "GetWorkRequest", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"GetWorkRequest failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets the errors for the specified work request. + /// + /// + /// 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 ListWorkRequestErrors API. + public async Task ListWorkRequestErrors(ListWorkRequestErrorsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listWorkRequestErrors"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/workRequests/{workRequestId}/errors".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "WorkRequest", + OperationName = "ListWorkRequestErrors", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListWorkRequestErrors failed with error: {e.Message}"); + throw; + } + } + + /// + /// Gets the logs for the specified work request. + /// + /// + /// 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 ListWorkRequestLogs API. + public async Task ListWorkRequestLogs(ListWorkRequestLogsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listWorkRequestLogs"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/workRequests/{workRequestId}/logs".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "WorkRequest", + OperationName = "ListWorkRequestLogs", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListWorkRequestLogs failed with error: {e.Message}"); + throw; + } + } + + /// + /// Lists work requests that match the specified compartment or work request OCID. Filter the list against + /// a variety of criteria including but not limited to its name, status, and operation type. + /// + /// + /// 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 ListWorkRequests API. + public async Task ListWorkRequests(ListWorkRequestsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead) + { + logger.Trace("Called listWorkRequests"); + Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/workRequests".Trim('/'))); + HttpMethod method = new HttpMethod("GET"); + HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request); + requestMessage.Headers.Add("Accept", "application/json"); + GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration); + HttpResponseMessage responseMessage; + + try + { + Stopwatch stopWatch = new Stopwatch(); + stopWatch.Start(); + if (retryingClient != null) + { + responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false); + } + else + { + responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false); + } + stopWatch.Stop(); + ApiDetails apiDetails = new ApiDetails + { + ServiceName = "WorkRequest", + OperationName = "ListWorkRequests", + RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}", + ApiReferenceLink = "", + 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($"ListWorkRequests failed with error: {e.Message}"); + throw; + } + } + + } +} diff --git a/Osmanagementhub/WorkRequestPaginators.cs b/Osmanagementhub/WorkRequestPaginators.cs new file mode 100644 index 0000000000..07c4d0f517 --- /dev/null +++ b/Osmanagementhub/WorkRequestPaginators.cs @@ -0,0 +1,200 @@ +/* + * 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.Collections.Generic; +using System.Threading; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService +{ + /// + /// Collection of helper methods that can be used to provide an enumerator interface + /// to any list operations of WorkRequest where multiple pages of data may be fetched. + /// Two styles of enumerators are supported: + /// + /// + /// + /// Enumerating over the Response objects returned by the list operation. These are referred to as ResponseEnumerators, and the methods are suffixed with ResponseEnumerator. For example: listUsersResponseEnumerator. + /// + /// + /// + /// + /// Enumerating over the resources/records being listed. These are referred to as RecordEnumerators, and the methods are suffixed with RecordEnumerator. For example: listUsersRecordEnumerator. + /// + /// + /// + /// These enumerators abstract away the need to write code to manually handle pagination via looping and using the page tokens. + /// They will automatically fetch more data from the service when required. + ///
+ ///
+ /// As an example, if we were using the ListUsers operation in IdentityService, then the iterator returned by calling a + /// ResponseEnumerator method would iterate over the ListUsersResponse objects returned by each ListUsers call, whereas the enumerables + /// returned by calling a RecordEnumerator method would iterate over the User records and we don't have to deal with ListUsersResponse objects at all. + /// In either case, pagination will be automatically handled so we can iterate until there are no more responses or no more resources/records available. + ///
+ public class WorkRequestPaginators + { + private readonly WorkRequestClient client; + + public WorkRequestPaginators(WorkRequestClient client) + { + this.client = client; + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListWorkRequestErrors operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListWorkRequestErrorsResponseEnumerator(ListWorkRequestErrorsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListWorkRequestErrors(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the WorkRequestError objects + /// contained in responses from the ListWorkRequestErrors operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListWorkRequestErrorsRecordEnumerator(ListWorkRequestErrorsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListWorkRequestErrors(request, retryConfiguration, cancellationToken), + response => response.WorkRequestErrorCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListWorkRequestLogs operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListWorkRequestLogsResponseEnumerator(ListWorkRequestLogsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListWorkRequestLogs(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the WorkRequestLogEntry objects + /// contained in responses from the ListWorkRequestLogs operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListWorkRequestLogsRecordEnumerator(ListWorkRequestLogsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListWorkRequestLogs(request, retryConfiguration, cancellationToken), + response => response.WorkRequestLogEntryCollection.Items + ); + } + + /// + /// Creates a new enumerable which will iterate over the responses received from the ListWorkRequests operation. This enumerable + /// will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListWorkRequestsResponseEnumerator(ListWorkRequestsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListWorkRequests(request, retryConfiguration, cancellationToken) + ); + } + + /// + /// Creates a new enumerable which will iterate over the WorkRequestSummary objects + /// contained in responses from the ListWorkRequests operation. This enumerable will fetch more data from the server as needed. + /// + /// The request object containing the details to send + /// The configuration for retrying, may be null + /// The cancellation token object + /// The enumerator, which supports a simple iteration over a collection of a specified type + public IEnumerable ListWorkRequestsRecordEnumerator(ListWorkRequestsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default) + { + return new Common.Utils.ResponseRecordEnumerable( + response => response.OpcNextPage, + input => + { + if (!string.IsNullOrEmpty(input)) + { + request.Page = input; + } + return request; + }, + request => client.ListWorkRequests(request, retryConfiguration, cancellationToken), + response => response.WorkRequestSummaryCollection.Items + ); + } + + } +} diff --git a/Osmanagementhub/WorkRequestWaiters.cs b/Osmanagementhub/WorkRequestWaiters.cs new file mode 100644 index 0000000000..4cebaadcd3 --- /dev/null +++ b/Osmanagementhub/WorkRequestWaiters.cs @@ -0,0 +1,57 @@ +/* + * 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.Linq; +using Oci.Common.Waiters; +using Oci.OsmanagementhubService.Models; +using Oci.OsmanagementhubService.Requests; +using Oci.OsmanagementhubService.Responses; + +namespace Oci.OsmanagementhubService +{ + /// + /// Contains collection of helper methods to produce Oci.Common.Waiters for different resources of WorkRequest. + /// + public class WorkRequestWaiters + { + private readonly WorkRequestClient client; + + public WorkRequestWaiters(WorkRequestClient client) + { + this.client = client; + } + + /// + /// Creates a waiter using default wait configuration. + /// + /// Request to send. + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForWorkRequest(GetWorkRequestRequest request, params OperationStatus[] targetStates) + { + return this.ForWorkRequest(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates); + } + + /// + /// Creates a waiter using the provided configuration. + /// + /// Request to send. + /// Wait Configuration + /// Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states + /// a new Oci.common.Waiter instance + public Waiter ForWorkRequest(GetWorkRequestRequest request, WaiterConfiguration config, params OperationStatus[] targetStates) + { + var agent = new WaiterAgent( + request, + request => client.GetWorkRequest(request), + response => targetStates.Contains(response.WorkRequest.Status.Value) + ); + return new Waiter(config, agent); + } + } +} diff --git a/Osmanagementhub/models/ActionType.cs b/Osmanagementhub/models/ActionType.cs new file mode 100644 index 0000000000..3369da4f84 --- /dev/null +++ b/Osmanagementhub/models/ActionType.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible types of actions on the target resource. + /// + public enum ActionType { + /// 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 = "CREATED")] + Created, + [EnumMember(Value = "UPDATED")] + Updated, + [EnumMember(Value = "DELETED")] + Deleted, + [EnumMember(Value = "IN_PROGRESS")] + InProgress, + [EnumMember(Value = "RELATED")] + Related, + [EnumMember(Value = "FAILED")] + Failed + } +} diff --git a/Osmanagementhub/models/AdvisorySeverity.cs b/Osmanagementhub/models/AdvisorySeverity.cs new file mode 100644 index 0000000000..4750aa3357 --- /dev/null +++ b/Osmanagementhub/models/AdvisorySeverity.cs @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible severities for a security advisory. + /// + public enum AdvisorySeverity { + /// 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 = "LOW")] + Low, + [EnumMember(Value = "MODERATE")] + Moderate, + [EnumMember(Value = "IMPORTANT")] + Important, + [EnumMember(Value = "CRITICAL")] + Critical + } +} diff --git a/Osmanagementhub/models/ArchType.cs b/Osmanagementhub/models/ArchType.cs new file mode 100644 index 0000000000..ff9286860b --- /dev/null +++ b/Osmanagementhub/models/ArchType.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible CPU architecture types. + /// + public enum ArchType { + /// 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 = "X86_64")] + X8664, + [EnumMember(Value = "AARCH64")] + Aarch64, + [EnumMember(Value = "I686")] + I686, + [EnumMember(Value = "NOARCH")] + Noarch, + [EnumMember(Value = "SRC")] + Src + } +} diff --git a/Osmanagementhub/models/AttachManagedInstancesToLifecycleStageDetails.cs b/Osmanagementhub/models/AttachManagedInstancesToLifecycleStageDetails.cs new file mode 100644 index 0000000000..152df96bd4 --- /dev/null +++ b/Osmanagementhub/models/AttachManagedInstancesToLifecycleStageDetails.cs @@ -0,0 +1,28 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The managed instances to attach to the lifecycle stage. + /// + public class AttachManagedInstancesToLifecycleStageDetails + { + + [JsonProperty(PropertyName = "managedInstanceDetails")] + public ManagedInstancesDetails ManagedInstanceDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/AttachManagedInstancesToManagedInstanceGroupDetails.cs b/Osmanagementhub/models/AttachManagedInstancesToManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..def40980dd --- /dev/null +++ b/Osmanagementhub/models/AttachManagedInstancesToManagedInstanceGroupDetails.cs @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The managed instance OCIDs to attach to the managed instance group. + /// + public class AttachManagedInstancesToManagedInstanceGroupDetails + { + + /// + /// The list of managed instance OCIDs to be attached. + /// + [JsonProperty(PropertyName = "managedInstances")] + public System.Collections.Generic.List ManagedInstances { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/AttachSoftwareSourcesToManagedInstanceDetails.cs b/Osmanagementhub/models/AttachSoftwareSourcesToManagedInstanceDetails.cs new file mode 100644 index 0000000000..df8552b23f --- /dev/null +++ b/Osmanagementhub/models/AttachSoftwareSourcesToManagedInstanceDetails.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details about the software sources to be attached. + /// + public class AttachSoftwareSourcesToManagedInstanceDetails + { + + /// + /// The list of software source OCIDs to be attached/detached. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSources is required.")] + [JsonProperty(PropertyName = "softwareSources")] + public System.Collections.Generic.List SoftwareSources { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/AttachSoftwareSourcesToManagedInstanceGroupDetails.cs b/Osmanagementhub/models/AttachSoftwareSourcesToManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..006d1252aa --- /dev/null +++ b/Osmanagementhub/models/AttachSoftwareSourcesToManagedInstanceGroupDetails.cs @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The software sources OCIDs to attach to the managed instance group. + /// + public class AttachSoftwareSourcesToManagedInstanceGroupDetails + { + + /// + /// The list of software sources OCIDs to be attached. + /// + [JsonProperty(PropertyName = "softwareSources")] + public System.Collections.Generic.List SoftwareSources { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/Availability.cs b/Osmanagementhub/models/Availability.cs new file mode 100644 index 0000000000..2f7e40263b --- /dev/null +++ b/Osmanagementhub/models/Availability.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible availabilities of a software source. + /// + public enum Availability { + /// 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 = "AVAILABLE")] + Available, + [EnumMember(Value = "SELECTED")] + Selected, + [EnumMember(Value = "RESTRICTED")] + Restricted + } +} diff --git a/Osmanagementhub/models/AvailablePackageCollection.cs b/Osmanagementhub/models/AvailablePackageCollection.cs new file mode 100644 index 0000000000..ae45fc4eff --- /dev/null +++ b/Osmanagementhub/models/AvailablePackageCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of an available package search on a managed instance. + /// + public class AvailablePackageCollection + { + + /// + /// List of available packages. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/AvailablePackageSummary.cs b/Osmanagementhub/models/AvailablePackageSummary.cs new file mode 100644 index 0000000000..6e4b693898 --- /dev/null +++ b/Osmanagementhub/models/AvailablePackageSummary.cs @@ -0,0 +1,27 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// A software package available for install on a managed instance. + /// + public class AvailablePackageSummary : PackageSummary + { + + [JsonProperty(PropertyName = "packageClassification")] + private readonly string packageClassification = "AVAILABLE"; + } +} diff --git a/Osmanagementhub/models/AvailableSoftwareSourceCollection.cs b/Osmanagementhub/models/AvailableSoftwareSourceCollection.cs new file mode 100644 index 0000000000..d055fdab7b --- /dev/null +++ b/Osmanagementhub/models/AvailableSoftwareSourceCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of searching for available software sources for a managed instance. + /// + public class AvailableSoftwareSourceCollection + { + + /// + /// List of available software sources. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/AvailableSoftwareSourceSummary.cs b/Osmanagementhub/models/AvailableSoftwareSourceSummary.cs new file mode 100644 index 0000000000..5cc0ce9cd9 --- /dev/null +++ b/Osmanagementhub/models/AvailableSoftwareSourceSummary.cs @@ -0,0 +1,55 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// A software source which can be added to a managed instance. Once a software source is added, packages from that software source can be installed on that managed instance. + /// + public class AvailableSoftwareSourceSummary + { + + /// + /// unique identifier that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The OCID for the compartment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// User friendly name for the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + } +} diff --git a/Osmanagementhub/models/ChangeAvailabilityOfSoftwareSourcesDetails.cs b/Osmanagementhub/models/ChangeAvailabilityOfSoftwareSourcesDetails.cs new file mode 100644 index 0000000000..df1501a8c8 --- /dev/null +++ b/Osmanagementhub/models/ChangeAvailabilityOfSoftwareSourcesDetails.cs @@ -0,0 +1,31 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Request body that contains a list of software sources whose availability needs to be updated. + /// + public class ChangeAvailabilityOfSoftwareSourcesDetails + { + + /// + /// List of objects containing software source ids and its availability. + /// + [JsonProperty(PropertyName = "softwareSourceAvailabilities")] + public System.Collections.Generic.List SoftwareSourceAvailabilities { get; set; } + + } +} diff --git a/Osmanagementhub/models/ChecksumType.cs b/Osmanagementhub/models/ChecksumType.cs new file mode 100644 index 0000000000..8eeec4c8e8 --- /dev/null +++ b/Osmanagementhub/models/ChecksumType.cs @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible checksum types. + /// + public enum ChecksumType { + /// 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 = "SHA1")] + Sha1, + [EnumMember(Value = "SHA256")] + Sha256, + [EnumMember(Value = "SHA384")] + Sha384, + [EnumMember(Value = "SHA512")] + Sha512 + } +} diff --git a/Osmanagementhub/models/ClassificationTypes.cs b/Osmanagementhub/models/ClassificationTypes.cs new file mode 100644 index 0000000000..d41de73268 --- /dev/null +++ b/Osmanagementhub/models/ClassificationTypes.cs @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible package classification types. + /// + public enum ClassificationTypes { + /// 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 = "SECURITY")] + Security, + [EnumMember(Value = "BUGFIX")] + Bugfix, + [EnumMember(Value = "ENHANCEMENT")] + Enhancement, + [EnumMember(Value = "OTHER")] + Other + } +} diff --git a/Osmanagementhub/models/CreateCustomSoftwareSourceDetails.cs b/Osmanagementhub/models/CreateCustomSoftwareSourceDetails.cs new file mode 100644 index 0000000000..53f5b70c67 --- /dev/null +++ b/Osmanagementhub/models/CreateCustomSoftwareSourceDetails.cs @@ -0,0 +1,46 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Description of a custom software source to be created. + /// + public class CreateCustomSoftwareSourceDetails : CreateSoftwareSourceDetails + { + + /// + /// List of vendor software sources. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorSoftwareSources is required.")] + [JsonProperty(PropertyName = "vendorSoftwareSources")] + public System.Collections.Generic.List VendorSoftwareSources { get; set; } + + [JsonProperty(PropertyName = "customSoftwareSourceFilter")] + public CustomSoftwareSourceFilter CustomSoftwareSourceFilter { get; set; } + + /// + /// Indicates whether service should automatically update the custom software source for the user. + /// + [JsonProperty(PropertyName = "isAutomaticallyUpdated")] + public System.Nullable IsAutomaticallyUpdated { get; set; } + + [JsonProperty(PropertyName = "softwareSourceType")] + private readonly string softwareSourceType = "CUSTOM"; + } +} diff --git a/Osmanagementhub/models/CreateEntitlementDetails.cs b/Osmanagementhub/models/CreateEntitlementDetails.cs new file mode 100644 index 0000000000..6598b5a0a1 --- /dev/null +++ b/Osmanagementhub/models/CreateEntitlementDetails.cs @@ -0,0 +1,45 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Creates an entitlement for the specified compartment OCID and CSI. + /// + public class CreateEntitlementDetails + { + + /// + /// The OCID of the tenancy containing the entitlement. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A Customer Support Identifier (CSI) is a unique key given to a customer to unlock software sources. It uniquely identifies the entitlement. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Csi is required.")] + [JsonProperty(PropertyName = "csi")] + public string Csi { get; set; } + + } +} diff --git a/Osmanagementhub/models/CreateGroupProfileDetails.cs b/Osmanagementhub/models/CreateGroupProfileDetails.cs new file mode 100644 index 0000000000..41c0f471b6 --- /dev/null +++ b/Osmanagementhub/models/CreateGroupProfileDetails.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Description of a group registration profile to be created. + /// + public class CreateGroupProfileDetails : CreateProfileDetails + { + + /// + /// The OCID of the managed instance group from which the registration profile will inherit its software sources. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [JsonProperty(PropertyName = "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + [JsonProperty(PropertyName = "profileType")] + private readonly string profileType = "GROUP"; + } +} diff --git a/Osmanagementhub/models/CreateLifecycleEnvironmentDetails.cs b/Osmanagementhub/models/CreateLifecycleEnvironmentDetails.cs new file mode 100644 index 0000000000..442858d845 --- /dev/null +++ b/Osmanagementhub/models/CreateLifecycleEnvironmentDetails.cs @@ -0,0 +1,113 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Creates a lifecycle environment. + /// A lifecycle environment is a user-defined pipeline to deliver curated, + /// versioned content in a prescribed, methodical manner. + /// + /// + public class CreateLifecycleEnvironmentDetails + { + + /// + /// The OCID of the tenancy containing the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// User specified information about the lifecycle environment. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// User specified list of ranked lifecycle stages to be created for the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Stages is required.")] + [JsonProperty(PropertyName = "stages")] + public System.Collections.Generic.List Stages { get; set; } + + /// + /// The CPU architecture of the managed instance(s) in the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ArchType is required.")] + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// The operating system type of the managed instance(s) in the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "OsFamily is required.")] + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The software source vendor name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorName is required.")] + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable VendorName { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/CreateLifecycleProfileDetails.cs b/Osmanagementhub/models/CreateLifecycleProfileDetails.cs new file mode 100644 index 0000000000..a4c27f1485 --- /dev/null +++ b/Osmanagementhub/models/CreateLifecycleProfileDetails.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Description of a lifecycle registration profile to be created. + /// + public class CreateLifecycleProfileDetails : CreateProfileDetails + { + + /// + /// The OCID of the lifecycle stage from which the registration profile will inherit its software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleStageId is required.")] + [JsonProperty(PropertyName = "lifecycleStageId")] + public string LifecycleStageId { get; set; } + + [JsonProperty(PropertyName = "profileType")] + private readonly string profileType = "LIFECYCLE"; + } +} diff --git a/Osmanagementhub/models/CreateLifecycleStageDetails.cs b/Osmanagementhub/models/CreateLifecycleStageDetails.cs new file mode 100644 index 0000000000..9d1966f6df --- /dev/null +++ b/Osmanagementhub/models/CreateLifecycleStageDetails.cs @@ -0,0 +1,63 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The information about a lifecycle stage. + /// + public class CreateLifecycleStageDetails + { + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// User specified rank for the lifecycle stage. + /// Rank determines the hierarchy of the lifecycle stages for a given lifecycle environment. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "Rank is required.")] + [JsonProperty(PropertyName = "rank")] + public System.Nullable Rank { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/CreateManagedInstanceGroupDetails.cs b/Osmanagementhub/models/CreateManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..d3c0c79c47 --- /dev/null +++ b/Osmanagementhub/models/CreateManagedInstanceGroupDetails.cs @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The information about new managed instance group. + /// + public class CreateManagedInstanceGroupDetails + { + + /// + /// A user-friendly name for the managed instance group. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Details about the managed instance group. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The OCID of the tenancy containing the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The operating system type of the managed instance(s) that this managed instance group will contain. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "OsFamily is required.")] + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The CPU architecture type of the managed instance(s) that this managed instance group will contain. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "ArchType is required.")] + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// The software source vendor name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorName is required.")] + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable VendorName { get; set; } + + /// + /// The list of software source OCIDs available to the managed instances in the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceIds is required.")] + [JsonProperty(PropertyName = "softwareSourceIds")] + public System.Collections.Generic.List SoftwareSourceIds { get; set; } + + /// + /// The list of managed instance OCIDs to be added to the managed instance group. + /// + [JsonProperty(PropertyName = "managedInstanceIds")] + public System.Collections.Generic.List ManagedInstanceIds { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/CreateManagementStationDetails.cs b/Osmanagementhub/models/CreateManagementStationDetails.cs new file mode 100644 index 0000000000..2fafd15177 --- /dev/null +++ b/Osmanagementhub/models/CreateManagementStationDetails.cs @@ -0,0 +1,91 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Information for creating an ManagementStation + /// + public class CreateManagementStationDetails + { + + /// + /// The OCID of the tenancy containing the Management Station. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// Management Station name + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Details describing the Management Station config. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Name of the host + /// + /// + /// Required + /// + [Required(ErrorMessage = "Hostname is required.")] + [JsonProperty(PropertyName = "hostname")] + public string Hostname { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "Proxy is required.")] + [JsonProperty(PropertyName = "proxy")] + public CreateProxyConfigurationDetails Proxy { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "Mirror is required.")] + [JsonProperty(PropertyName = "mirror")] + public CreateMirrorConfigurationDetails Mirror { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/CreateMirrorConfigurationDetails.cs b/Osmanagementhub/models/CreateMirrorConfigurationDetails.cs new file mode 100644 index 0000000000..916131795c --- /dev/null +++ b/Osmanagementhub/models/CreateMirrorConfigurationDetails.cs @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Information for creating a mirror configuration + /// + public class CreateMirrorConfigurationDetails + { + + /// + /// Directory for the mirroring + /// + /// + /// Required + /// + [Required(ErrorMessage = "Directory is required.")] + [JsonProperty(PropertyName = "directory")] + public string Directory { get; set; } + + /// + /// Default port for the mirror + /// + /// + /// Required + /// + [Required(ErrorMessage = "Port is required.")] + [JsonProperty(PropertyName = "port")] + public string Port { get; set; } + + /// + /// Default sslport for the mirror + /// + /// + /// Required + /// + [Required(ErrorMessage = "Sslport is required.")] + [JsonProperty(PropertyName = "sslport")] + public string Sslport { get; set; } + + /// + /// Local path for the sslcert + /// + [JsonProperty(PropertyName = "sslcert")] + public string Sslcert { get; set; } + + } +} diff --git a/Osmanagementhub/models/CreateProfileDetails.cs b/Osmanagementhub/models/CreateProfileDetails.cs new file mode 100644 index 0000000000..d51c5672df --- /dev/null +++ b/Osmanagementhub/models/CreateProfileDetails.cs @@ -0,0 +1,113 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The information about new registration profile. + /// + [JsonConverter(typeof(CreateProfileDetailsModelConverter))] + public class CreateProfileDetails + { + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The OCID of the tenancy containing the registration profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The description of the registration profile. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The OCID of the management station. + /// + [JsonProperty(PropertyName = "managementStationId")] + public string ManagementStationId { get; set; } + + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } + + public class CreateProfileDetailsModelConverter : JsonConverter + { + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(CreateProfileDetails); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(CreateProfileDetails); + var discriminator = jsonObject["profileType"].Value(); + switch (discriminator) + { + case "GROUP": + obj = new CreateGroupProfileDetails(); + break; + case "STATION": + obj = new CreateStationProfileDetails(); + break; + case "SOFTWARESOURCE": + obj = new CreateSoftwareSourceProfileDetails(); + break; + case "LIFECYCLE": + obj = new CreateLifecycleProfileDetails(); + break; + } + serializer.Populate(jsonObject.CreateReader(), obj); + return obj; + } + } +} diff --git a/Osmanagementhub/models/CreateProxyConfigurationDetails.cs b/Osmanagementhub/models/CreateProxyConfigurationDetails.cs new file mode 100644 index 0000000000..41ede34b0b --- /dev/null +++ b/Osmanagementhub/models/CreateProxyConfigurationDetails.cs @@ -0,0 +1,53 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Information for creating a proxy configuration + /// + public class CreateProxyConfigurationDetails + { + + /// + /// To enable or disable the proxy (default true) + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsEnabled is required.")] + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + /// + /// List of hosts + /// + [JsonProperty(PropertyName = "hosts")] + public System.Collections.Generic.List Hosts { get; set; } + + /// + /// Port that the proxy will use + /// + [JsonProperty(PropertyName = "port")] + public string Port { get; set; } + + /// + /// URL that the proxy will forward to + /// + [JsonProperty(PropertyName = "forward")] + public string Forward { get; set; } + + } +} diff --git a/Osmanagementhub/models/CreateScheduledJobDetails.cs b/Osmanagementhub/models/CreateScheduledJobDetails.cs new file mode 100644 index 0000000000..31d7565cdb --- /dev/null +++ b/Osmanagementhub/models/CreateScheduledJobDetails.cs @@ -0,0 +1,138 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Information for creating a scheduled job. + /// + public class CreateScheduledJobDetails + { + + /// + /// The OCID of the compartment containing the scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// Scheduled job name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Details describing the scheduled job. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The type of scheduling this scheduled job follows. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ScheduleType is required.")] + [JsonProperty(PropertyName = "scheduleType")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable ScheduleType { get; set; } + + /// + /// The desired time for the next execution of this scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeNextExecution is required.")] + [JsonProperty(PropertyName = "timeNextExecution")] + public System.Nullable TimeNextExecution { get; set; } + + /// + /// The recurring rule for a recurring scheduled job. + /// + [JsonProperty(PropertyName = "recurringRule")] + public string RecurringRule { get; set; } + + /// + /// The list of managed instance OCIDs this scheduled job operates on. Either this or + /// managedInstanceGroupIds, or managedCompartmentIds, or lifecycleStageIds must be supplied. + /// + /// + [JsonProperty(PropertyName = "managedInstanceIds")] + public System.Collections.Generic.List ManagedInstanceIds { get; set; } + + /// + /// The list of managed instance group OCIDs this scheduled job operates on. Either this or + /// managedInstanceIds, or managedCompartmentIds, or lifecycleStageIds must be supplied. + /// + /// + [JsonProperty(PropertyName = "managedInstanceGroupIds")] + public System.Collections.Generic.List ManagedInstanceGroupIds { get; set; } + + /// + /// The list of target compartment OCIDs if this scheduled job operates on a compartment level. + /// Either this or managedInstanceIds, or managedInstanceGroupIds, or lifecycleStageIds must be supplied. + /// + /// + [JsonProperty(PropertyName = "managedCompartmentIds")] + public System.Collections.Generic.List ManagedCompartmentIds { get; set; } + + /// + /// The list of lifecycle stage OCIDs this scheduled job operates on. Either this or + /// managedInstanceIds, or managedInstanceGroupIds, or managedCompartmentIds must be supplied. + /// + /// + [JsonProperty(PropertyName = "lifecycleStageIds")] + public System.Collections.Generic.List LifecycleStageIds { get; set; } + + /// + /// Whether to create jobs for all compartments in the tenancy when managedCompartmentIds specifies the tenancy OCID. + /// + [JsonProperty(PropertyName = "isSubcompartmentIncluded")] + public System.Nullable IsSubcompartmentIncluded { get; set; } + + /// + /// The list of operations this scheduled job needs to perform (can only support one operation if the operationType is not UPDATE_PACKAGES/UPDATE_ALL/UPDATE_SECURITY/UPDATE_BUGFIX/UPDATE_ENHANCEMENT/UPDATE_OTHER/UPDATE_KSPLICE_USERSPACE/UPDATE_KSPLICE_KERNEL). + /// + /// + /// Required + /// + [Required(ErrorMessage = "Operations is required.")] + [JsonProperty(PropertyName = "operations")] + public System.Collections.Generic.List Operations { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/CreateSoftwareSourceDetails.cs b/Osmanagementhub/models/CreateSoftwareSourceDetails.cs new file mode 100644 index 0000000000..eec89f462c --- /dev/null +++ b/Osmanagementhub/models/CreateSoftwareSourceDetails.cs @@ -0,0 +1,101 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Description of a software source to be created. + /// + [JsonConverter(typeof(CreateSoftwareSourceDetailsModelConverter))] + public class CreateSoftwareSourceDetails + { + + /// + /// The OCID of the tenancy containing the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// User friendly name for the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Information specified by the user about the software source. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } + + public class CreateSoftwareSourceDetailsModelConverter : JsonConverter + { + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(CreateSoftwareSourceDetails); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(CreateSoftwareSourceDetails); + var discriminator = jsonObject["softwareSourceType"].Value(); + switch (discriminator) + { + case "CUSTOM": + obj = new CreateCustomSoftwareSourceDetails(); + break; + case "VERSIONED": + obj = new CreateVersionedCustomSoftwareSourceDetails(); + break; + } + serializer.Populate(jsonObject.CreateReader(), obj); + return obj; + } + } +} diff --git a/Osmanagementhub/models/CreateSoftwareSourceProfileDetails.cs b/Osmanagementhub/models/CreateSoftwareSourceProfileDetails.cs new file mode 100644 index 0000000000..bb63eaf4c1 --- /dev/null +++ b/Osmanagementhub/models/CreateSoftwareSourceProfileDetails.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Description of a software source registration profile to be created. + /// + public class CreateSoftwareSourceProfileDetails : CreateProfileDetails + { + + /// + /// The software source vendor name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorName is required.")] + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable VendorName { get; set; } + + /// + /// The operating system family. + /// + /// + /// Required + /// + [Required(ErrorMessage = "OsFamily is required.")] + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The architecture type. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ArchType is required.")] + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// The list of software source OCIDs that the registration profile will use. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceIds is required.")] + [JsonProperty(PropertyName = "softwareSourceIds")] + public System.Collections.Generic.List SoftwareSourceIds { get; set; } + + [JsonProperty(PropertyName = "profileType")] + private readonly string profileType = "SOFTWARESOURCE"; + } +} diff --git a/Osmanagementhub/models/CreateStationProfileDetails.cs b/Osmanagementhub/models/CreateStationProfileDetails.cs new file mode 100644 index 0000000000..6243092b8b --- /dev/null +++ b/Osmanagementhub/models/CreateStationProfileDetails.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Description of a group registration profile to be created. + /// + public class CreateStationProfileDetails : CreateProfileDetails + { + + /// + /// The software source vendor name. + /// + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable VendorName { get; set; } + + /// + /// The operating system family. + /// + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The architecture type. + /// + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable ArchType { get; set; } + + [JsonProperty(PropertyName = "profileType")] + private readonly string profileType = "STATION"; + } +} diff --git a/Osmanagementhub/models/CreateVersionedCustomSoftwareSourceDetails.cs b/Osmanagementhub/models/CreateVersionedCustomSoftwareSourceDetails.cs new file mode 100644 index 0000000000..5533388d6a --- /dev/null +++ b/Osmanagementhub/models/CreateVersionedCustomSoftwareSourceDetails.cs @@ -0,0 +1,50 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Description of a versioned custom software source to be created. + /// + public class CreateVersionedCustomSoftwareSourceDetails : CreateSoftwareSourceDetails + { + + /// + /// List of vendor software sources. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorSoftwareSources is required.")] + [JsonProperty(PropertyName = "vendorSoftwareSources")] + public System.Collections.Generic.List VendorSoftwareSources { get; set; } + + [JsonProperty(PropertyName = "customSoftwareSourceFilter")] + public CustomSoftwareSourceFilter CustomSoftwareSourceFilter { get; set; } + + /// + /// The version to assign to this custom software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceVersion is required.")] + [JsonProperty(PropertyName = "softwareSourceVersion")] + public string SoftwareSourceVersion { get; set; } + + [JsonProperty(PropertyName = "softwareSourceType")] + private readonly string softwareSourceType = "VERSIONED"; + } +} diff --git a/Osmanagementhub/models/CustomSoftwareSource.cs b/Osmanagementhub/models/CustomSoftwareSource.cs new file mode 100644 index 0000000000..29d2bfd1a7 --- /dev/null +++ b/Osmanagementhub/models/CustomSoftwareSource.cs @@ -0,0 +1,46 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// A custom software source contains a custom collection of packages. + /// + public class CustomSoftwareSource : SoftwareSource + { + + /// + /// List of vendor software sources. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorSoftwareSources is required.")] + [JsonProperty(PropertyName = "vendorSoftwareSources")] + public System.Collections.Generic.List VendorSoftwareSources { get; set; } + + [JsonProperty(PropertyName = "customSoftwareSourceFilter")] + public CustomSoftwareSourceFilter CustomSoftwareSourceFilter { get; set; } + + /// + /// Indicates whether service should automatically update the custom software source for the user. + /// + [JsonProperty(PropertyName = "isAutomaticallyUpdated")] + public System.Nullable IsAutomaticallyUpdated { get; set; } + + [JsonProperty(PropertyName = "softwareSourceType")] + private readonly string softwareSourceType = "CUSTOM"; + } +} diff --git a/Osmanagementhub/models/CustomSoftwareSourceFilter.cs b/Osmanagementhub/models/CustomSoftwareSourceFilter.cs new file mode 100644 index 0000000000..c2ecf9c479 --- /dev/null +++ b/Osmanagementhub/models/CustomSoftwareSourceFilter.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Used to apply filters to a VendorSoftwareSource to create/update CustomSoftwareSources. + /// + public class CustomSoftwareSourceFilter + { + + /// + /// The list of package filters. + /// + [JsonProperty(PropertyName = "packageFilters")] + public System.Collections.Generic.List PackageFilters { get; set; } + + /// + /// The list of module stream/profile filters. + /// + [JsonProperty(PropertyName = "moduleStreamProfileFilters")] + public System.Collections.Generic.List ModuleStreamProfileFilters { get; set; } + + /// + /// The list of group filters. + /// + [JsonProperty(PropertyName = "packageGroupFilters")] + public System.Collections.Generic.List PackageGroupFilters { get; set; } + + } +} diff --git a/Osmanagementhub/models/CustomSoftwareSourceSummary.cs b/Osmanagementhub/models/CustomSoftwareSourceSummary.cs new file mode 100644 index 0000000000..00fa453150 --- /dev/null +++ b/Osmanagementhub/models/CustomSoftwareSourceSummary.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// A custom software source contains a custom collection of packages. + /// + public class CustomSoftwareSourceSummary : SoftwareSourceSummary + { + + /// + /// List of vendor software sources. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorSoftwareSources is required.")] + [JsonProperty(PropertyName = "vendorSoftwareSources")] + public System.Collections.Generic.List VendorSoftwareSources { get; set; } + + [JsonProperty(PropertyName = "softwareSourceType")] + private readonly string softwareSourceType = "CUSTOM"; + } +} diff --git a/Osmanagementhub/models/DetachManagedInstancesFromLifecycleStageDetails.cs b/Osmanagementhub/models/DetachManagedInstancesFromLifecycleStageDetails.cs new file mode 100644 index 0000000000..3a5160150f --- /dev/null +++ b/Osmanagementhub/models/DetachManagedInstancesFromLifecycleStageDetails.cs @@ -0,0 +1,28 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The managed instances to detach from the lifecycle stage. + /// + public class DetachManagedInstancesFromLifecycleStageDetails + { + + [JsonProperty(PropertyName = "managedInstanceDetails")] + public ManagedInstancesDetails ManagedInstanceDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/DetachManagedInstancesFromManagedInstanceGroupDetails.cs b/Osmanagementhub/models/DetachManagedInstancesFromManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..44f34980f9 --- /dev/null +++ b/Osmanagementhub/models/DetachManagedInstancesFromManagedInstanceGroupDetails.cs @@ -0,0 +1,31 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The managed instance OCIDs to detach from the managed instance group. + /// + public class DetachManagedInstancesFromManagedInstanceGroupDetails + { + + /// + /// The list of managed instance OCIDs to be detached. + /// + [JsonProperty(PropertyName = "managedInstances")] + public System.Collections.Generic.List ManagedInstances { get; set; } + + } +} diff --git a/Osmanagementhub/models/DetachSoftwareSourcesFromManagedInstanceDetails.cs b/Osmanagementhub/models/DetachSoftwareSourcesFromManagedInstanceDetails.cs new file mode 100644 index 0000000000..fff662daf5 --- /dev/null +++ b/Osmanagementhub/models/DetachSoftwareSourcesFromManagedInstanceDetails.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details about the software sources to be detached. + /// + public class DetachSoftwareSourcesFromManagedInstanceDetails + { + + /// + /// The list of software source OCIDs to be attached/detached. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSources is required.")] + [JsonProperty(PropertyName = "softwareSources")] + public System.Collections.Generic.List SoftwareSources { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/DetachSoftwareSourcesFromManagedInstanceGroupDetails.cs b/Osmanagementhub/models/DetachSoftwareSourcesFromManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..1653507998 --- /dev/null +++ b/Osmanagementhub/models/DetachSoftwareSourcesFromManagedInstanceGroupDetails.cs @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The software sources OCIDs to detach from the managed instance group. + /// + public class DetachSoftwareSourcesFromManagedInstanceGroupDetails + { + + /// + /// The list of software sources OCIDs to be detached. + /// + [JsonProperty(PropertyName = "softwareSources")] + public System.Collections.Generic.List SoftwareSources { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/DisableModuleStreamOnManagedInstanceDetails.cs b/Osmanagementhub/models/DisableModuleStreamOnManagedInstanceDetails.cs new file mode 100644 index 0000000000..58c43bf7bb --- /dev/null +++ b/Osmanagementhub/models/DisableModuleStreamOnManagedInstanceDetails.cs @@ -0,0 +1,44 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details of the module stream to be disabled on a managed instance. + /// + public class DisableModuleStreamOnManagedInstanceDetails + { + + /// + /// The name of a module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/DisableModuleStreamOnManagedInstanceGroupDetails.cs b/Osmanagementhub/models/DisableModuleStreamOnManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..7462ee0b0e --- /dev/null +++ b/Osmanagementhub/models/DisableModuleStreamOnManagedInstanceGroupDetails.cs @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The work request details for the module stream operation on the managed instance group. + /// + public class DisableModuleStreamOnManagedInstanceGroupDetails + { + + /// + /// The name of a module. + /// + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/EnableModuleStreamOnManagedInstanceDetails.cs b/Osmanagementhub/models/EnableModuleStreamOnManagedInstanceDetails.cs new file mode 100644 index 0000000000..74650bee49 --- /dev/null +++ b/Osmanagementhub/models/EnableModuleStreamOnManagedInstanceDetails.cs @@ -0,0 +1,44 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details of the module stream to be enabled on a managed instance. + /// + public class EnableModuleStreamOnManagedInstanceDetails + { + + /// + /// The name of a module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/EnableModuleStreamOnManagedInstanceGroupDetails.cs b/Osmanagementhub/models/EnableModuleStreamOnManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..23019cf50f --- /dev/null +++ b/Osmanagementhub/models/EnableModuleStreamOnManagedInstanceGroupDetails.cs @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The work request details for the module stream operation on the managed instance group. + /// + public class EnableModuleStreamOnManagedInstanceGroupDetails + { + + /// + /// The name of a module. + /// + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/EntitlementCollection.cs b/Osmanagementhub/models/EntitlementCollection.cs new file mode 100644 index 0000000000..3401c7149d --- /dev/null +++ b/Osmanagementhub/models/EntitlementCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a Entitlement search. Contains boh EntitlementSummary items and other information, such as metadata. + /// + public class EntitlementCollection + { + + /// + /// List of Entitlement. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/EntitlementSummary.cs b/Osmanagementhub/models/EntitlementSummary.cs new file mode 100644 index 0000000000..1aa97a7b36 --- /dev/null +++ b/Osmanagementhub/models/EntitlementSummary.cs @@ -0,0 +1,55 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// A summary of an entitlement. + /// + public class EntitlementSummary + { + + /// + /// The OCID of the tenancy containing the entitlement. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The Customer Support Identifier (CSI). CSI is a unique key given to a customer to unlock software sources. It uniquely identifies the entitlement. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Csi is required.")] + [JsonProperty(PropertyName = "csi")] + public string Csi { get; set; } + + /// + /// The vendor for the entitlement. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorName is required.")] + [JsonProperty(PropertyName = "vendorName")] + public string VendorName { get; set; } + + } +} diff --git a/Osmanagementhub/models/Erratum.cs b/Osmanagementhub/models/Erratum.cs new file mode 100644 index 0000000000..6a8862d652 --- /dev/null +++ b/Osmanagementhub/models/Erratum.cs @@ -0,0 +1,119 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Details about the erratum. + /// + public class Erratum + { + + /// + /// Advisory name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Summary description of the erratum. + /// + [JsonProperty(PropertyName = "synopsis")] + public string Synopsis { get; set; } + + /// + /// Date the erratum was issued, as described + /// in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeIssued")] + public System.Nullable TimeIssued { get; set; } + + /// + /// Details describing the erratum. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Most recent date the erratum was updated, as described + /// in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeUpdated")] + public System.Nullable TimeUpdated { get; set; } + + /// + /// Type of the erratum. + /// + [JsonProperty(PropertyName = "classificationType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ClassificationType { get; set; } + + /// + /// Information specifying from where the erratum was release. + /// + [JsonProperty(PropertyName = "from")] + public string From { get; set; } + + /// + /// Information describing how the erratum can be resolved. + /// + [JsonProperty(PropertyName = "solution")] + public string Solution { get; set; } + + /// + /// Information describing how to find more information about. the erratum. + /// + [JsonProperty(PropertyName = "references")] + public string References { get; set; } + + /// + /// List of CVEs applicable to this erratum. + /// + [JsonProperty(PropertyName = "relatedCves")] + public System.Collections.Generic.List RelatedCves { get; set; } + + /// + /// List of repository identifiers. + /// + [JsonProperty(PropertyName = "repositories")] + public System.Collections.Generic.List Repositories { get; set; } + + /// + /// List of Packages affected by this erratum. + /// + [JsonProperty(PropertyName = "packages")] + public System.Collections.Generic.List Packages { get; set; } + + /// + /// List of affected OS families. + /// + [JsonProperty(PropertyName = "osFamilies")] + public System.Collections.Generic.List OsFamilies { get; set; } + + /// + /// The severity for a security advisory, otherwise, null. + /// + [JsonProperty(PropertyName = "advisorySeverity")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable AdvisorySeverity { get; set; } + + } +} diff --git a/Osmanagementhub/models/ErratumCollection.cs b/Osmanagementhub/models/ErratumCollection.cs new file mode 100644 index 0000000000..9efff4a9ae --- /dev/null +++ b/Osmanagementhub/models/ErratumCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a Erratum search. Contains boh ErratumSummary items and other information, such as metadata. + /// + public class ErratumCollection + { + + /// + /// List of Errata. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ErratumSummary.cs b/Osmanagementhub/models/ErratumSummary.cs new file mode 100644 index 0000000000..61e1fc16e3 --- /dev/null +++ b/Osmanagementhub/models/ErratumSummary.cs @@ -0,0 +1,83 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Important changes for software. This can include security advisories, bug fixes, or enhancements. + /// + public class ErratumSummary + { + + /// + /// Advisory name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Summary description of the erratum. + /// + [JsonProperty(PropertyName = "synopsis")] + public string Synopsis { get; set; } + + /// + /// Date the erratum was issued, as described + /// in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeIssued")] + public System.Nullable TimeIssued { get; set; } + + /// + /// Most recent date the erratum was updated, as described + /// in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeUpdated")] + public System.Nullable TimeUpdated { get; set; } + + /// + /// Type of the erratum. + /// + [JsonProperty(PropertyName = "classificationType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ClassificationType { get; set; } + + /// + /// List of CVEs applicable to this erratum. + /// + [JsonProperty(PropertyName = "relatedCves")] + public System.Collections.Generic.List RelatedCves { get; set; } + + /// + /// List of affected OS families. + /// + [JsonProperty(PropertyName = "osFamilies")] + public System.Collections.Generic.List OsFamilies { get; set; } + + /// + /// The severity advisory. Only valid for security type advisories. + /// + [JsonProperty(PropertyName = "advisorySeverity")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable AdvisorySeverity { get; set; } + + } +} diff --git a/Osmanagementhub/models/FilterType.cs b/Osmanagementhub/models/FilterType.cs new file mode 100644 index 0000000000..1e48165ada --- /dev/null +++ b/Osmanagementhub/models/FilterType.cs @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible CustomSoftwareSource filter types. + /// + public enum FilterType { + /// 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 = "INCLUDE")] + Include, + [EnumMember(Value = "EXCLUDE")] + Exclude + } +} diff --git a/Osmanagementhub/models/GroupProfile.cs b/Osmanagementhub/models/GroupProfile.cs new file mode 100644 index 0000000000..0ef6e8bbe0 --- /dev/null +++ b/Osmanagementhub/models/GroupProfile.cs @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Definition of a registration profile of type GROUP. + /// + public class GroupProfile : Profile + { + + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroup is required.")] + [JsonProperty(PropertyName = "managedInstanceGroup")] + public ManagedInstanceGroupDetails ManagedInstanceGroup { get; set; } + + [JsonProperty(PropertyName = "profileType")] + private readonly string profileType = "GROUP"; + } +} diff --git a/Osmanagementhub/models/Id.cs b/Osmanagementhub/models/Id.cs new file mode 100644 index 0000000000..dbc7cf3e6c --- /dev/null +++ b/Osmanagementhub/models/Id.cs @@ -0,0 +1,45 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// An id along with a name to simplify display for a user. + /// + public class Id + { + + /// + /// The OCID of the resource that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "IdProp is required.")] + [JsonProperty(PropertyName = "id")] + public string IdProp { get; set; } + + /// + /// User friendly name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + } +} diff --git a/Osmanagementhub/models/InstallModuleStreamProfileOnManagedInstanceDetails.cs b/Osmanagementhub/models/InstallModuleStreamProfileOnManagedInstanceDetails.cs new file mode 100644 index 0000000000..e5e82a4593 --- /dev/null +++ b/Osmanagementhub/models/InstallModuleStreamProfileOnManagedInstanceDetails.cs @@ -0,0 +1,50 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details of the module stream profile to be installed on a managed instance. + /// + public class InstallModuleStreamProfileOnManagedInstanceDetails + { + + /// + /// The name of a module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + /// + /// The name of a profile of the specified module stream. + /// + [JsonProperty(PropertyName = "profileName")] + public string ProfileName { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/InstallModuleStreamProfileOnManagedInstanceGroupDetails.cs b/Osmanagementhub/models/InstallModuleStreamProfileOnManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..c071780407 --- /dev/null +++ b/Osmanagementhub/models/InstallModuleStreamProfileOnManagedInstanceGroupDetails.cs @@ -0,0 +1,46 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The work request details for the module stream profile operation on the managed instance group. + /// + public class InstallModuleStreamProfileOnManagedInstanceGroupDetails + { + + /// + /// The name of a module. + /// + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + /// + /// The name of a profile of the specified module stream. + /// + [JsonProperty(PropertyName = "profileName")] + public string ProfileName { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/InstallPackagesOnManagedInstanceDetails.cs b/Osmanagementhub/models/InstallPackagesOnManagedInstanceDetails.cs new file mode 100644 index 0000000000..f415a7f7c8 --- /dev/null +++ b/Osmanagementhub/models/InstallPackagesOnManagedInstanceDetails.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details about the software packages to be installed. + /// + public class InstallPackagesOnManagedInstanceDetails + { + + /// + /// The list of package names. + /// + /// + /// Required + /// + [Required(ErrorMessage = "PackageNames is required.")] + [JsonProperty(PropertyName = "packageNames")] + public System.Collections.Generic.List PackageNames { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/InstallPackagesOnManagedInstanceGroupDetails.cs b/Osmanagementhub/models/InstallPackagesOnManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..cde9b958d7 --- /dev/null +++ b/Osmanagementhub/models/InstallPackagesOnManagedInstanceGroupDetails.cs @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The names of the packages to be installed on the managed instance group. + /// + public class InstallPackagesOnManagedInstanceGroupDetails + { + + /// + /// The list of package names. + /// + [JsonProperty(PropertyName = "packageNames")] + public System.Collections.Generic.List PackageNames { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/InstalledPackageCollection.cs b/Osmanagementhub/models/InstalledPackageCollection.cs new file mode 100644 index 0000000000..cddf3c574b --- /dev/null +++ b/Osmanagementhub/models/InstalledPackageCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of an installed package search on a managed instance. + /// + public class InstalledPackageCollection + { + + /// + /// List of installed packages. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/InstalledPackageSummary.cs b/Osmanagementhub/models/InstalledPackageSummary.cs new file mode 100644 index 0000000000..3440d3b2b4 --- /dev/null +++ b/Osmanagementhub/models/InstalledPackageSummary.cs @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// A software package installed on a managed instance. + /// + public class InstalledPackageSummary : PackageSummary + { + + /// + /// The date and time the package was installed, as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeInstalled is required.")] + [JsonProperty(PropertyName = "timeInstalled")] + public System.Nullable TimeInstalled { get; set; } + + /// + /// The date and time the package was issued by a providing erratum (if available), as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeIssued")] + public System.Nullable TimeIssued { get; set; } + + [JsonProperty(PropertyName = "packageClassification")] + private readonly string packageClassification = "INSTALLED"; + } +} diff --git a/Osmanagementhub/models/LifecycleEnvironment.cs b/Osmanagementhub/models/LifecycleEnvironment.cs new file mode 100644 index 0000000000..b1a799d166 --- /dev/null +++ b/Osmanagementhub/models/LifecycleEnvironment.cs @@ -0,0 +1,182 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Contains versioned software source content and lifecycle stages for a managed instance. + /// + public class LifecycleEnvironment + { + + /// + /// The OCID of the resource that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The OCID of the tenancy containing the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// User specified information about the lifecycle environment. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// User specified list of lifecycle stages to be created for the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Stages is required.")] + [JsonProperty(PropertyName = "stages")] + public System.Collections.Generic.List Stages { get; set; } + + /// + /// The list of managed instance OCIDs specified in the lifecycle stage. + /// + [JsonProperty(PropertyName = "managedInstanceIds")] + public System.Collections.Generic.List ManagedInstanceIds { get; set; } + /// + /// + /// The current state of the lifecycle environment. + /// + /// + public enum LifecycleStateEnum { + /// 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 = "CREATING")] + Creating, + [EnumMember(Value = "UPDATING")] + Updating, + [EnumMember(Value = "ACTIVE")] + Active, + [EnumMember(Value = "DELETING")] + Deleting, + [EnumMember(Value = "DELETED")] + Deleted, + [EnumMember(Value = "FAILED")] + Failed + }; + + /// + /// The current state of the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleState is required.")] + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// The operating system type of the target instances. + /// + /// + /// Required + /// + [Required(ErrorMessage = "OsFamily is required.")] + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The CPU architecture of the target instances. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ArchType is required.")] + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// The software source vendor name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorName is required.")] + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable VendorName { get; set; } + + /// + /// The time the lifecycle environment was created. An RFC3339 formatted datetime string. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeCreated is required.")] + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The time the lifecycle environment was last modified. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeModified")] + public System.Nullable TimeModified { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/LifecycleEnvironmentCollection.cs b/Osmanagementhub/models/LifecycleEnvironmentCollection.cs new file mode 100644 index 0000000000..9ddb1879dd --- /dev/null +++ b/Osmanagementhub/models/LifecycleEnvironmentCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a lifecycle environment search. Contains both lifecycle environment summary items and other data. + /// + public class LifecycleEnvironmentCollection + { + + /// + /// List of lifecycle environments. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/LifecycleEnvironmentDetails.cs b/Osmanagementhub/models/LifecycleEnvironmentDetails.cs new file mode 100644 index 0000000000..bc81b3a2c4 --- /dev/null +++ b/Osmanagementhub/models/LifecycleEnvironmentDetails.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Identifying information for the specified lifecycle environment. + /// + public class LifecycleEnvironmentDetails + { + + /// + /// The OCID of the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Lifecycle environment name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + } +} diff --git a/Osmanagementhub/models/LifecycleEnvironmentSummary.cs b/Osmanagementhub/models/LifecycleEnvironmentSummary.cs new file mode 100644 index 0000000000..7bceab3373 --- /dev/null +++ b/Osmanagementhub/models/LifecycleEnvironmentSummary.cs @@ -0,0 +1,150 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Summary of the lifecycle environment. + /// + public class LifecycleEnvironmentSummary + { + + /// + /// The lifecycle environment OCID that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The OCID of the tenancy containing the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// User specified information about the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Description is required.")] + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// User specified list of lifecycle stages to be created for the lLifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Stages is required.")] + [JsonProperty(PropertyName = "stages")] + public System.Collections.Generic.List Stages { get; set; } + + /// + /// The current state of the lifecycle environment. + /// + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// The CPU architecture of the target managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ArchType is required.")] + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// The operating system type of the target managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "OsFamily is required.")] + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The software source vendor name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorName is required.")] + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable VendorName { get; set; } + + /// + /// The time the lifecycle environment was created. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The time the lifecycle environment was modified. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeModified")] + public System.Nullable TimeModified { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/LifecycleProfile.cs b/Osmanagementhub/models/LifecycleProfile.cs new file mode 100644 index 0000000000..e1ab470c6c --- /dev/null +++ b/Osmanagementhub/models/LifecycleProfile.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Definition of a registration profile of type LIFECYCLE. + /// + public class LifecycleProfile : Profile + { + + [JsonProperty(PropertyName = "lifecycleEnvironment")] + public LifecycleEnvironmentDetails LifecycleEnvironment { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleStage is required.")] + [JsonProperty(PropertyName = "lifecycleStage")] + public LifecycleStageDetails LifecycleStage { get; set; } + + [JsonProperty(PropertyName = "profileType")] + private readonly string profileType = "LIFECYCLE"; + } +} diff --git a/Osmanagementhub/models/LifecycleStage.cs b/Osmanagementhub/models/LifecycleStage.cs new file mode 100644 index 0000000000..bf10435be0 --- /dev/null +++ b/Osmanagementhub/models/LifecycleStage.cs @@ -0,0 +1,163 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Defines the lifecycle stage. + /// + public class LifecycleStage + { + + /// + /// The lifecycle stage OCID that is immutable on creation. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The OCID of the tenancy containing the lifecycle stage. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The OCID of the lifecycle environment for the lifecycle stage. + /// + [JsonProperty(PropertyName = "lifecycleEnvironmentId")] + public string LifecycleEnvironmentId { get; set; } + + /// + /// User specified rank for the lifecycle stage. + /// Rank determines the hierarchy of the lifecycle stages for a given lifecycle environment. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "Rank is required.")] + [JsonProperty(PropertyName = "rank")] + public System.Nullable Rank { get; set; } + + /// + /// The operating system type of the target instances. + /// + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The CPU architecture of the target instances. + /// + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// The software source vendor name. + /// + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable VendorName { get; set; } + + /// + /// The list of managed instances specified lifecycle stage. + /// + [JsonProperty(PropertyName = "managedInstanceIds")] + public System.Collections.Generic.List ManagedInstanceIds { get; set; } + + [JsonProperty(PropertyName = "softwareSourceId")] + public SoftwareSourceDetails SoftwareSourceId { get; set; } + + /// + /// The time the lifecycle stage was created. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The time the lifecycle stage was last modified. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeModified")] + public System.Nullable TimeModified { get; set; } + /// + /// + /// The current state of the lifecycle stage. + /// + /// + public enum LifecycleStateEnum { + /// 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 = "CREATING")] + Creating, + [EnumMember(Value = "UPDATING")] + Updating, + [EnumMember(Value = "ACTIVE")] + Active, + [EnumMember(Value = "DELETING")] + Deleting, + [EnumMember(Value = "DELETED")] + Deleted, + [EnumMember(Value = "FAILED")] + Failed + }; + + /// + /// The current state of the lifecycle stage. + /// + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/LifecycleStageCollection.cs b/Osmanagementhub/models/LifecycleStageCollection.cs new file mode 100644 index 0000000000..27dd80508a --- /dev/null +++ b/Osmanagementhub/models/LifecycleStageCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a lifecycle stage search. Contains both lifecycle stage summary items and other data. + /// + public class LifecycleStageCollection + { + + /// + /// List of lifecycle stages. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/LifecycleStageDetails.cs b/Osmanagementhub/models/LifecycleStageDetails.cs new file mode 100644 index 0000000000..781c03496d --- /dev/null +++ b/Osmanagementhub/models/LifecycleStageDetails.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Identifying information for the specified lifecycle stage. + /// + public class LifecycleStageDetails + { + + /// + /// The OCID of the lifecycle stage. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Lifecycle stage name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + } +} diff --git a/Osmanagementhub/models/LifecycleStageSummary.cs b/Osmanagementhub/models/LifecycleStageSummary.cs new file mode 100644 index 0000000000..318a4f0910 --- /dev/null +++ b/Osmanagementhub/models/LifecycleStageSummary.cs @@ -0,0 +1,147 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Defines the lifecycle stage summary. + /// + public class LifecycleStageSummary + { + + /// + /// The lifecycle stage OCID that is immutable on creation. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The OCID of the tenancy containing the lifecycle stage. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The OCID of the lifecycle environment for the lifecycle stage. + /// + [JsonProperty(PropertyName = "lifecycleEnvironmentId")] + public string LifecycleEnvironmentId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "lifecycleEnvironmentDisplayName")] + public string LifecycleEnvironmentDisplayName { get; set; } + + /// + /// User specified rank for the lifecycle stage. + /// Rank determines the hierarchy of the lifecycle stages for a given lifecycle environment. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "Rank is required.")] + [JsonProperty(PropertyName = "rank")] + public System.Nullable Rank { get; set; } + + /// + /// The operating system type of the target instances. + /// + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The CPU architecture of the target instances. + /// + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// The software source vendor name. + /// + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable VendorName { get; set; } + + /// + /// The number of managed instances attached to the lifecycle stage. + /// + [JsonProperty(PropertyName = "managedInstances")] + public System.Nullable ManagedInstances { get; set; } + + [JsonProperty(PropertyName = "softwareSourceId")] + public SoftwareSourceDetails SoftwareSourceId { get; set; } + + /// + /// The time the lifecycle stage was created. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The time the lifecycle stage was last modified. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeModified")] + public System.Nullable TimeModified { get; set; } + + /// + /// The current state of the lifecycle environment. + /// + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManageModuleStreamsInScheduledJobDetails.cs b/Osmanagementhub/models/ManageModuleStreamsInScheduledJobDetails.cs new file mode 100644 index 0000000000..112732d63d --- /dev/null +++ b/Osmanagementhub/models/ManageModuleStreamsInScheduledJobDetails.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.OsmanagementhubService.Models +{ + /// + /// The set of changes to make to the state of the modules, streams, and profiles on the managed target. + /// + public class ManageModuleStreamsInScheduledJobDetails + { + + /// + /// The set of module streams to enable. + /// + [JsonProperty(PropertyName = "enable")] + public System.Collections.Generic.List Enable { get; set; } + + /// + /// The set of module streams to disable. + /// + [JsonProperty(PropertyName = "disable")] + public System.Collections.Generic.List Disable { get; set; } + + /// + /// The set of module stream profiles to install. + /// + [JsonProperty(PropertyName = "install")] + public System.Collections.Generic.List Install { get; set; } + + /// + /// The set of module stream profiles to remove. + /// + [JsonProperty(PropertyName = "remove")] + public System.Collections.Generic.List Remove { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManageModuleStreamsOnManagedInstanceDetails.cs b/Osmanagementhub/models/ManageModuleStreamsOnManagedInstanceDetails.cs new file mode 100644 index 0000000000..c32db6d3b3 --- /dev/null +++ b/Osmanagementhub/models/ManageModuleStreamsOnManagedInstanceDetails.cs @@ -0,0 +1,63 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The set of changes to make to the state of the modules, streams, and profiles on a managed instance + /// + public class ManageModuleStreamsOnManagedInstanceDetails + { + + /// + /// Indicates if this operation is a dry run or if the operation + /// should be committed. If set to true, the result of the operation + /// will be evaluated but not committed. If set to false, the + /// operation is committed to the managed instance. The default is + /// false. + /// + /// + [JsonProperty(PropertyName = "isDryRun")] + public System.Nullable IsDryRun { get; set; } + + /// + /// The set of module streams to enable. + /// + [JsonProperty(PropertyName = "enable")] + public System.Collections.Generic.List Enable { get; set; } + + /// + /// The set of module streams to disable. + /// + [JsonProperty(PropertyName = "disable")] + public System.Collections.Generic.List Disable { get; set; } + + /// + /// The set of module stream profiles to install. + /// + [JsonProperty(PropertyName = "install")] + public System.Collections.Generic.List Install { get; set; } + + /// + /// The set of module stream profiles to remove. + /// + [JsonProperty(PropertyName = "remove")] + public System.Collections.Generic.List Remove { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManageModuleStreamsOnManagedInstanceGroupDetails.cs b/Osmanagementhub/models/ManageModuleStreamsOnManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..858125a350 --- /dev/null +++ b/Osmanagementhub/models/ManageModuleStreamsOnManagedInstanceGroupDetails.cs @@ -0,0 +1,63 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The set of changes to make to the state of the modules, streams, and profiles on a managed instance group. + /// + public class ManageModuleStreamsOnManagedInstanceGroupDetails + { + + /// + /// Indicates if this operation is a dry run or if the operation + /// should be committed. If set to true, the result of the operation + /// will be evaluated but not committed. If set to false, the + /// operation is committed to the managed instance(s). The default is + /// false. + /// + /// + [JsonProperty(PropertyName = "isDryRun")] + public System.Nullable IsDryRun { get; set; } + + /// + /// The set of module streams to enable. + /// + [JsonProperty(PropertyName = "enable")] + public System.Collections.Generic.List Enable { get; set; } + + /// + /// The set of module streams to disable. + /// + [JsonProperty(PropertyName = "disable")] + public System.Collections.Generic.List Disable { get; set; } + + /// + /// The set of module stream profiles to install. + /// + [JsonProperty(PropertyName = "install")] + public System.Collections.Generic.List Install { get; set; } + + /// + /// The set of module stream profiles to remove. + /// + [JsonProperty(PropertyName = "remove")] + public System.Collections.Generic.List Remove { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstance.cs b/Osmanagementhub/models/ManagedInstance.cs new file mode 100644 index 0000000000..abfe6339d4 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstance.cs @@ -0,0 +1,252 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Detail information for an OCI Compute instance that is being managed. + /// + public class ManagedInstance + { + + /// + /// The OCID for the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Managed instance identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Information specified by the user about the managed instance. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The OCID for the tenancy this managed instance resides in. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TenancyId is required.")] + [JsonProperty(PropertyName = "tenancyId")] + public string TenancyId { get; set; } + + /// + /// The OCID for the compartment this managed instance resides in. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// location of the managed instance. + /// + [JsonProperty(PropertyName = "location")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Location { get; set; } + + /// + /// Time at which the instance last checked in, as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeLastCheckin")] + public System.Nullable TimeLastCheckin { get; set; } + + /// + /// Time at which the instance last booted, as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeLastBoot")] + public System.Nullable TimeLastBoot { get; set; } + + /// + /// Operating System Name. + /// + [JsonProperty(PropertyName = "osName")] + public string OsName { get; set; } + + /// + /// Operating System Version. + /// + [JsonProperty(PropertyName = "osVersion")] + public string OsVersion { get; set; } + + /// + /// Operating System Kernel Version. + /// + [JsonProperty(PropertyName = "osKernelVersion")] + public string OsKernelVersion { get; set; } + + /// + /// The ksplice effective kernel version. + /// + [JsonProperty(PropertyName = "kspliceEffectiveKernelVersion")] + public string KspliceEffectiveKernelVersion { get; set; } + + /// + /// The CPU architecture type of the managed instance. + /// + [JsonProperty(PropertyName = "architecture")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Architecture { get; set; } + + /// + /// The Operating System type of the managed instance. + /// + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// status of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Status is required.")] + [JsonProperty(PropertyName = "status")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Status { get; set; } + + /// + /// The content profile of this instance. + /// + [JsonProperty(PropertyName = "profile")] + public string Profile { get; set; } + + /// + /// Whether this managed instance is acting as an on-premise management station. + /// + [JsonProperty(PropertyName = "isManagementStation")] + public System.Nullable IsManagementStation { get; set; } + + /// + /// The OCID of a management station to be used as the preferred primary. + /// + [JsonProperty(PropertyName = "primaryManagementStationId")] + public string PrimaryManagementStationId { get; set; } + + /// + /// The OCID of a management station to be used as the preferred secondary. + /// + [JsonProperty(PropertyName = "secondaryManagementStationId")] + public string SecondaryManagementStationId { get; set; } + + /// + /// The list of software sources currently attached to the managed instance. + /// + [JsonProperty(PropertyName = "softwareSources")] + public System.Collections.Generic.List SoftwareSources { get; set; } + + [JsonProperty(PropertyName = "managedInstanceGroup")] + public Id ManagedInstanceGroup { get; set; } + + [JsonProperty(PropertyName = "lifecycleEnvironment")] + public Id LifecycleEnvironment { get; set; } + + [JsonProperty(PropertyName = "lifecycleStage")] + public Id LifecycleStage { get; set; } + + /// + /// Indicates whether a reboot is required to complete installation of updates. + /// + [JsonProperty(PropertyName = "isRebootRequired")] + public System.Nullable IsRebootRequired { get; set; } + + /// + /// Number of packages installed on the system. + /// + [JsonProperty(PropertyName = "installedPackages")] + public System.Nullable InstalledPackages { get; set; } + + /// + /// Number of updates available to be installed. + /// + [JsonProperty(PropertyName = "updatesAvailable")] + public System.Nullable UpdatesAvailable { get; set; } + + /// + /// Number of security type updates available to be installed. + /// + [JsonProperty(PropertyName = "securityUpdatesAvailable")] + public System.Nullable SecurityUpdatesAvailable { get; set; } + + /// + /// Number of bug fix type updates available to be installed. + /// + [JsonProperty(PropertyName = "bugUpdatesAvailable")] + public System.Nullable BugUpdatesAvailable { get; set; } + + /// + /// Number of enhancement type updates available to be installed. + /// + [JsonProperty(PropertyName = "enhancementUpdatesAvailable")] + public System.Nullable EnhancementUpdatesAvailable { get; set; } + + /// + /// Number of non-classified updates available to be installed. + /// + [JsonProperty(PropertyName = "otherUpdatesAvailable")] + public System.Nullable OtherUpdatesAvailable { get; set; } + + /// + /// Number of scheduled jobs associated with this instance. + /// + [JsonProperty(PropertyName = "scheduledJobCount")] + public System.Nullable ScheduledJobCount { get; set; } + + /// + /// Number of work requests associated with this instance. + /// + [JsonProperty(PropertyName = "workRequestCount")] + public System.Nullable WorkRequestCount { get; set; } + + /// + /// The date and time the work request was created, as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The date and time the work request was updated, as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeUpdated")] + public System.Nullable TimeUpdated { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceAnalyticCollection.cs b/Osmanagementhub/models/ManagedInstanceAnalyticCollection.cs new file mode 100644 index 0000000000..0b5696a8c5 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceAnalyticCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Collection of ManagedInstanceAnalyticSummary. + /// + public class ManagedInstanceAnalyticCollection + { + + /// + /// List of managed instance analytic summary. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceAnalyticSummary.cs b/Osmanagementhub/models/ManagedInstanceAnalyticSummary.cs new file mode 100644 index 0000000000..03cd98b4a0 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceAnalyticSummary.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// A metric emitted by managed instance resource. + /// + public class ManagedInstanceAnalyticSummary + { + + /// + /// The name of this metric. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Name { get; set; } + + /// + /// Qualifiers provided in a metric definition. Available dimensions vary by metric namespace. + /// Each dimension takes the form of a key-value pair. + ///
+ /// Example: "managedInstanceId": "ocid1.managementagent.123" + ///
+ /// + /// Required + /// + [Required(ErrorMessage = "Dimensions is required.")] + [JsonProperty(PropertyName = "dimensions")] + public System.Collections.Generic.Dictionary Dimensions { get; set; } + + /// + /// The value of this metric. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Count is required.")] + [JsonProperty(PropertyName = "count")] + public System.Nullable Count { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceCollection.cs b/Osmanagementhub/models/ManagedInstanceCollection.cs new file mode 100644 index 0000000000..7675f5ec9d --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a managed instance search. Contains both managed instance summary items and other data. + /// + public class ManagedInstanceCollection + { + + /// + /// List of managed instances. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceDetails.cs b/Osmanagementhub/models/ManagedInstanceDetails.cs new file mode 100644 index 0000000000..d6e2570f9c --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceDetails.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Identifying information for the specified managed instance. + /// + public class ManagedInstanceDetails + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Managed instance name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceErratumSummary.cs b/Osmanagementhub/models/ManagedInstanceErratumSummary.cs new file mode 100644 index 0000000000..cc0bcf7b77 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceErratumSummary.cs @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// An erratum associated with a managed instance. + /// + public class ManagedInstanceErratumSummary + { + + /// + /// The identifier of the erratum. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The type of the erratum. + /// + /// + /// Required + /// + [Required(ErrorMessage = "AdvisoryType is required.")] + [JsonProperty(PropertyName = "advisoryType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable AdvisoryType { get; set; } + + /// + /// The date and time the package was issued by a providing erratum (if available), as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeIssued")] + public System.Nullable TimeIssued { get; set; } + + /// + /// Summary description of the erratum. + /// + [JsonProperty(PropertyName = "synopsis")] + public string Synopsis { get; set; } + + /// + /// List of CVEs applicable to this erratum. + /// + [JsonProperty(PropertyName = "relatedCves")] + public System.Collections.Generic.List RelatedCves { get; set; } + + /// + /// The list of Packages affected by this erratum. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Packages is required.")] + [JsonProperty(PropertyName = "packages")] + public System.Collections.Generic.List Packages { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceErratumSummaryCollection.cs b/Osmanagementhub/models/ManagedInstanceErratumSummaryCollection.cs new file mode 100644 index 0000000000..7d32233570 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceErratumSummaryCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of an errata search on a managed instance. + /// + public class ManagedInstanceErratumSummaryCollection + { + + /// + /// List of errata. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroup.cs b/Osmanagementhub/models/ManagedInstanceGroup.cs new file mode 100644 index 0000000000..8bc850106d --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceGroup.cs @@ -0,0 +1,170 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Description of managed instance group. + /// + public class ManagedInstanceGroup + { + + /// + /// The managed instance group OCID that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The OCID of the tenancy containing the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Details describing the managed instance group. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The time the managed instance group was created. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The time the managed instance group was last modified. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeModified")] + public System.Nullable TimeModified { get; set; } + /// + /// + /// The current state of the managed instance group. + /// + /// + public enum LifecycleStateEnum { + /// 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 = "CREATING")] + Creating, + [EnumMember(Value = "UPDATING")] + Updating, + [EnumMember(Value = "ACTIVE")] + Active, + [EnumMember(Value = "DELETING")] + Deleting, + [EnumMember(Value = "DELETED")] + Deleted, + [EnumMember(Value = "FAILED")] + Failed + }; + + /// + /// The current state of the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleState is required.")] + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// The operating system type of the instances in the managed instance group. + /// + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The CPU architecture of the instances in the managed instance group. + /// + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// The software source vendor name. + /// + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable VendorName { get; set; } + + /// + /// The list of software sources that the managed instance group will use. + /// + [JsonProperty(PropertyName = "softwareSourceIds")] + public System.Collections.Generic.List SoftwareSourceIds { get; set; } + + /// + /// The list of managed instances OCIDs attached to the managed instance group. + /// + [JsonProperty(PropertyName = "managedInstanceIds")] + public System.Collections.Generic.List ManagedInstanceIds { get; set; } + + /// + /// The number of Managed Instances in the managed instance group. + /// + [JsonProperty(PropertyName = "managedInstanceCount")] + public System.Nullable ManagedInstanceCount { get; set; } + + /// + /// The number of scheduled jobs pending against the managed instance group. + /// + [JsonProperty(PropertyName = "pendingJobCount")] + public System.Nullable PendingJobCount { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroupAvailableModuleCollection.cs b/Osmanagementhub/models/ManagedInstanceGroupAvailableModuleCollection.cs new file mode 100644 index 0000000000..2c29162d49 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceGroupAvailableModuleCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a module stream profile search. Contains both ModuleStreamProfileSummary items and other information, such as metadata. + /// + public class ManagedInstanceGroupAvailableModuleCollection + { + + /// + /// List of module stream profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroupAvailableModuleSummary.cs b/Osmanagementhub/models/ManagedInstanceGroupAvailableModuleSummary.cs new file mode 100644 index 0000000000..e9222ce51a --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceGroupAvailableModuleSummary.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Summary information pertaining to a module stream profile provided by a software source. + /// + public class ManagedInstanceGroupAvailableModuleSummary + { + + /// + /// The name of the module that is available to be enabled on the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The OCID of the software source that provides this module. + /// + [JsonProperty(PropertyName = "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroupAvailablePackageCollection.cs b/Osmanagementhub/models/ManagedInstanceGroupAvailablePackageCollection.cs new file mode 100644 index 0000000000..5b23f4cfa8 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceGroupAvailablePackageCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of an available package search on a managed instance group. + /// + public class ManagedInstanceGroupAvailablePackageCollection + { + + /// + /// List of available packages. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroupAvailablePackageSummary.cs b/Osmanagementhub/models/ManagedInstanceGroupAvailablePackageSummary.cs new file mode 100644 index 0000000000..aba45d743b --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceGroupAvailablePackageSummary.cs @@ -0,0 +1,84 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Summary information pertaining to an available package for a managed instance group. + /// + public class ManagedInstanceGroupAvailablePackageSummary + { + + /// + /// Package name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Unique identifier for the package. NOTE - This is not an OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Type of the package. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Type is required.")] + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Version of the installed package. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Version is required.")] + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + /// + /// The architecture for which this package was built. + /// + [JsonProperty(PropertyName = "architecture")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Architecture { get; set; } + + /// + /// List of software sources that provide the software package. + /// + [JsonProperty(PropertyName = "softwareSources")] + public System.Collections.Generic.List SoftwareSources { get; set; } + + /// + /// Flag to return only latest package versions. + /// + [JsonProperty(PropertyName = "isLatest")] + public System.Nullable IsLatest { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroupCollection.cs b/Osmanagementhub/models/ManagedInstanceGroupCollection.cs new file mode 100644 index 0000000000..b24fec66f7 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceGroupCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a managed instance group search. Contains both managed instance group summary items and other data. + /// + public class ManagedInstanceGroupCollection + { + + /// + /// List of managed instance groups. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroupDetails.cs b/Osmanagementhub/models/ManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..c7e7b3f4d9 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceGroupDetails.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Identifying information for the specified managed instance group. + /// + public class ManagedInstanceGroupDetails + { + + /// + /// The OCID of the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Managed instance group displayName. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroupInstalledPackageCollection.cs b/Osmanagementhub/models/ManagedInstanceGroupInstalledPackageCollection.cs new file mode 100644 index 0000000000..f8506fe285 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceGroupInstalledPackageCollection.cs @@ -0,0 +1,36 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Results of a search for installed packages on a managed instance group. + /// + /// + public class ManagedInstanceGroupInstalledPackageCollection + { + + /// + /// List of installed packages. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroupInstalledPackageSummary.cs b/Osmanagementhub/models/ManagedInstanceGroupInstalledPackageSummary.cs new file mode 100644 index 0000000000..ebfaa2555c --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceGroupInstalledPackageSummary.cs @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Summary information pertaining to an installed package on a managed instance group. + /// + public class ManagedInstanceGroupInstalledPackageSummary + { + + /// + /// The name of the package that is installed on the managed instance group. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The architecture of the package that is installed on the managed instance group. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "Architecture is required.")] + [JsonProperty(PropertyName = "architecture")] + public string Architecture { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroupModuleCollection.cs b/Osmanagementhub/models/ManagedInstanceGroupModuleCollection.cs new file mode 100644 index 0000000000..b783c98909 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceGroupModuleCollection.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a search for module streams on a managed instance group. + /// Contains both ModuleStreamOnManagedInstanceGroupSummary items and other data. + /// + /// + public class ManagedInstanceGroupModuleCollection + { + + /// + /// List of module streams. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroupModuleSummary.cs b/Osmanagementhub/models/ManagedInstanceGroupModuleSummary.cs new file mode 100644 index 0000000000..d9b9917511 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceGroupModuleSummary.cs @@ -0,0 +1,53 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Summary information pertaining to a module on a managed instance group. + /// + public class ManagedInstanceGroupModuleSummary + { + + /// + /// The name of the module that contains the stream. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The name of the module that contains the stream. + /// + [JsonProperty(PropertyName = "enabledStream")] + public string EnabledStream { get; set; } + + /// + /// The list of installed profiles under the currently enabled module stream. + /// + [JsonProperty(PropertyName = "installedProfiles")] + public System.Collections.Generic.List InstalledProfiles { get; set; } + + /// + /// The OCID of the software source that provides this module stream. + /// + [JsonProperty(PropertyName = "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceGroupSummary.cs b/Osmanagementhub/models/ManagedInstanceGroupSummary.cs new file mode 100644 index 0000000000..7c4ddffde9 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceGroupSummary.cs @@ -0,0 +1,130 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Summary of the managed instance group. + /// + public class ManagedInstanceGroupSummary + { + + /// + /// Unique identifier that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy containing the managed instance groups to list. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A user-friendly name for the managed instance group. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// managed instance group Description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The number of Managed Instances in the managed instance group. + /// + [JsonProperty(PropertyName = "managedInstanceCount")] + public System.Nullable ManagedInstanceCount { get; set; } + + /// + /// The time the managed instance group was created. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The time the managed instance group was last modified. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeModified")] + public System.Nullable TimeModified { get; set; } + + /// + /// The current state of the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleState is required.")] + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// The operating system type of the instances in the managed instance group. + /// + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The CPU architecture of the instances in the managed instance group. + /// + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// The software source vendor name. + /// + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable VendorName { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceLocation.cs b/Osmanagementhub/models/ManagedInstanceLocation.cs new file mode 100644 index 0000000000..de80eaaa5e --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceLocation.cs @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible managed instance locations. + /// + public enum ManagedInstanceLocation { + /// 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 = "ON_PREMISE")] + OnPremise, + [EnumMember(Value = "OCI_COMPUTE")] + OciCompute, + [EnumMember(Value = "AZURE")] + Azure, + [EnumMember(Value = "EC2")] + Ec2 + } +} diff --git a/Osmanagementhub/models/ManagedInstanceModuleCollection.cs b/Osmanagementhub/models/ManagedInstanceModuleCollection.cs new file mode 100644 index 0000000000..b91634a03c --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceModuleCollection.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a search for module streams on a managed instance. + /// Contains both ManagedInstanceModuleSummary items and other data. + /// + /// + public class ManagedInstanceModuleCollection + { + + /// + /// List of module streams. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceModuleSummary.cs b/Osmanagementhub/models/ManagedInstanceModuleSummary.cs new file mode 100644 index 0000000000..4985a211db --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceModuleSummary.cs @@ -0,0 +1,67 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Summary information pertaining to a module on a managed instance. + /// + public class ManagedInstanceModuleSummary + { + + /// + /// The module name. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The stream that is enabled in the module. + /// + /// + [JsonProperty(PropertyName = "enabledStream")] + public string EnabledStream { get; set; } + + /// + /// List of installed profiles in the enabled stream of the module. + /// + [JsonProperty(PropertyName = "installedProfiles")] + public System.Collections.Generic.List InstalledProfiles { get; set; } + + /// + /// List of streams that are active in the module. + /// + [JsonProperty(PropertyName = "activeStreams")] + public System.Collections.Generic.List ActiveStreams { get; set; } + + /// + /// List of streams that are disabled in the module. + /// + [JsonProperty(PropertyName = "disabledStreams")] + public System.Collections.Generic.List DisabledStreams { get; set; } + + /// + /// The OCID of the software source that provides this module and the associated streams. + /// + [JsonProperty(PropertyName = "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstanceStatus.cs b/Osmanagementhub/models/ManagedInstanceStatus.cs new file mode 100644 index 0000000000..b95bcd25aa --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceStatus.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// status of the managed instance. + /// + public enum ManagedInstanceStatus { + /// 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 = "NORMAL")] + Normal, + [EnumMember(Value = "UNREACHABLE")] + Unreachable, + [EnumMember(Value = "ERROR")] + Error, + [EnumMember(Value = "WARNING")] + Warning, + [EnumMember(Value = "REGISTRATION_ERROR")] + RegistrationError + } +} diff --git a/Osmanagementhub/models/ManagedInstanceSummary.cs b/Osmanagementhub/models/ManagedInstanceSummary.cs new file mode 100644 index 0000000000..20b608258c --- /dev/null +++ b/Osmanagementhub/models/ManagedInstanceSummary.cs @@ -0,0 +1,130 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Summary of the ManagedInstance. + /// + public class ManagedInstanceSummary + { + + /// + /// The OCID for the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Managed instance identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Information specified by the user about the managed instance. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The OCID for the tenancy this managed instance resides in. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TenancyId is required.")] + [JsonProperty(PropertyName = "tenancyId")] + public string TenancyId { get; set; } + + /// + /// The OCID for the compartment this managed instance resides in. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// Location of the managed instance. + /// + [JsonProperty(PropertyName = "location")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Location { get; set; } + + /// + /// The CPU architecture type of the managed instance. + /// + [JsonProperty(PropertyName = "architecture")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Architecture { get; set; } + + /// + /// The Operating System type of the managed instance. + /// + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// status of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Status is required.")] + [JsonProperty(PropertyName = "status")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Status { get; set; } + + [JsonProperty(PropertyName = "managedInstanceGroup")] + public Id ManagedInstanceGroup { get; set; } + + [JsonProperty(PropertyName = "lifecycleEnvironment")] + public Id LifecycleEnvironment { get; set; } + + [JsonProperty(PropertyName = "lifecycleStage")] + public Id LifecycleStage { get; set; } + + /// + /// Indicates whether a reboot is required to complete installation of updates. + /// + [JsonProperty(PropertyName = "isRebootRequired")] + public System.Nullable IsRebootRequired { get; set; } + + /// + /// Number of updates available to be installed. + /// + [JsonProperty(PropertyName = "updatesAvailable")] + public System.Nullable UpdatesAvailable { get; set; } + + /// + /// Whether this managed instance is acting as an on-premise management station. + /// + [JsonProperty(PropertyName = "isManagementStation")] + public System.Nullable IsManagementStation { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagedInstancesDetails.cs b/Osmanagementhub/models/ManagedInstancesDetails.cs new file mode 100644 index 0000000000..fa181aab02 --- /dev/null +++ b/Osmanagementhub/models/ManagedInstancesDetails.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details about the managed instances. + /// + public class ManagedInstancesDetails + { + + /// + /// The list of managed instance OCIDs to be attached/detached. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstances is required.")] + [JsonProperty(PropertyName = "managedInstances")] + public System.Collections.Generic.List ManagedInstances { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagementStation.cs b/Osmanagementhub/models/ManagementStation.cs new file mode 100644 index 0000000000..6bd25c2ff3 --- /dev/null +++ b/Osmanagementhub/models/ManagementStation.cs @@ -0,0 +1,183 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Detailed information about an ManagementStation config + /// + public class ManagementStation + { + + /// + /// OCID for the ManagementStation config + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// OCID for the Instance associated with the Management Station. + /// + [JsonProperty(PropertyName = "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// The OCID of the tenancy containing the Management Station. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// OCID of the Scheduled Job for mirror sync + /// + [JsonProperty(PropertyName = "scheduledJobId")] + public string ScheduledJobId { get; set; } + + /// + /// OCID of the Profile associated with the Station + /// + [JsonProperty(PropertyName = "profileId")] + public string ProfileId { get; set; } + + /// + /// ManagementStation name + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Details describing the ManagementStation config. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Name of the host + /// + /// + /// Required + /// + [Required(ErrorMessage = "Hostname is required.")] + [JsonProperty(PropertyName = "hostname")] + public string Hostname { get; set; } + + /// + /// Current state of the mirroring + /// + [JsonProperty(PropertyName = "overallState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OverallState { get; set; } + + /// + /// A decimal number representing the completeness percentage + /// + [JsonProperty(PropertyName = "overallPercentage")] + public System.Nullable OverallPercentage { get; set; } + + /// + /// A decimal number representing the mirror capacity + /// + [JsonProperty(PropertyName = "mirrorCapacity")] + public System.Nullable MirrorCapacity { get; set; } + + /// + /// A decimal number representing the total of repos + /// + [JsonProperty(PropertyName = "totalMirrors")] + public System.Nullable TotalMirrors { get; set; } + + [JsonProperty(PropertyName = "mirrorSyncStatus")] + public MirrorSyncStatus MirrorSyncStatus { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "Proxy is required.")] + [JsonProperty(PropertyName = "proxy")] + public ProxyConfiguration Proxy { get; set; } + + /// + /// Required + /// + [Required(ErrorMessage = "Mirror is required.")] + [JsonProperty(PropertyName = "mirror")] + public MirrorConfiguration Mirror { get; set; } + /// + /// + /// The current state of the Management Station config. + /// + /// + public enum LifecycleStateEnum { + /// 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 = "CREATING")] + Creating, + [EnumMember(Value = "UPDATING")] + Updating, + [EnumMember(Value = "ACTIVE")] + Active, + [EnumMember(Value = "DELETING")] + Deleting, + [EnumMember(Value = "DELETED")] + Deleted, + [EnumMember(Value = "FAILED")] + Failed + }; + + /// + /// The current state of the Management Station config. + /// + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagementStationCollection.cs b/Osmanagementhub/models/ManagementStationCollection.cs new file mode 100644 index 0000000000..dd859893a5 --- /dev/null +++ b/Osmanagementhub/models/ManagementStationCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a managementstation search. Contains boh ManagementStationSummary items and other information, such as metadata. + /// + public class ManagementStationCollection + { + + /// + /// List of managementStations. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagementStationDetails.cs b/Osmanagementhub/models/ManagementStationDetails.cs new file mode 100644 index 0000000000..01f65d5ea5 --- /dev/null +++ b/Osmanagementhub/models/ManagementStationDetails.cs @@ -0,0 +1,44 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The config details of the management stations to be configured for a managed instance. + /// + public class ManagementStationDetails + { + + /// + /// The OCID of a management station to be used as the preferred primary. + /// + /// + /// Required + /// + [Required(ErrorMessage = "PrimaryManagementStationId is required.")] + [JsonProperty(PropertyName = "primaryManagementStationId")] + public string PrimaryManagementStationId { get; set; } + + /// + /// The OCID of a management station to be used as the preferred secondary. + /// + [JsonProperty(PropertyName = "secondaryManagementStationId")] + public string SecondaryManagementStationId { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/ManagementStationSummary.cs b/Osmanagementhub/models/ManagementStationSummary.cs new file mode 100644 index 0000000000..29c8f8db63 --- /dev/null +++ b/Osmanagementhub/models/ManagementStationSummary.cs @@ -0,0 +1,144 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Summary of the Management Station. + /// + public class ManagementStationSummary + { + + /// + /// OCID for the Management Station + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// OCID for the Instance associated with the Management Station + /// + [JsonProperty(PropertyName = "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// The OCID of the tenancy containing the Management Station. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// OCID of the Registration Profile associated with the Management Station + /// + [JsonProperty(PropertyName = "profileId")] + public string ProfileId { get; set; } + + /// + /// OCID of the Scheduled Job for mirror sync + /// + [JsonProperty(PropertyName = "scheduledJobId")] + public string ScheduledJobId { get; set; } + + /// + /// the time/date of the next scheduled execution of the Scheduled Job + /// + [JsonProperty(PropertyName = "timeNextExecution")] + public System.Nullable TimeNextExecution { get; set; } + + /// + /// ManagementStation name + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Details describing the Management Station config. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Name of the host + /// + /// + /// Required + /// + [Required(ErrorMessage = "Hostname is required.")] + [JsonProperty(PropertyName = "hostname")] + public string Hostname { get; set; } + + /// + /// Current state of the mirroring + /// + [JsonProperty(PropertyName = "overallState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OverallState { get; set; } + + /// + /// A decimal number representing the completeness percentage + /// + [JsonProperty(PropertyName = "overallPercentage")] + public System.Nullable OverallPercentage { get; set; } + + /// + /// A decimal number representing the mirror capacity + /// + [JsonProperty(PropertyName = "mirrorCapacity")] + public System.Nullable MirrorCapacity { get; set; } + + /// + /// The current state of the Management Station config. + /// + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/MetricName.cs b/Osmanagementhub/models/MetricName.cs new file mode 100644 index 0000000000..ee400aa30a --- /dev/null +++ b/Osmanagementhub/models/MetricName.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible metric names. + /// + public enum MetricName { + /// 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 = "TOTAL_INSTANCE_COUNT")] + TotalInstanceCount, + [EnumMember(Value = "INSTANCE_WITH_AVAILABLE_SECURITY_UPDATES_COUNT")] + InstanceWithAvailableSecurityUpdatesCount, + [EnumMember(Value = "INSTANCE_WITH_AVAILABLE_BUGFIX_UPDATES_COUNT")] + InstanceWithAvailableBugfixUpdatesCount, + [EnumMember(Value = "NORMAL_INSTANCE_COUNT")] + NormalInstanceCount, + [EnumMember(Value = "ERROR_INSTANCE_COUNT")] + ErrorInstanceCount, + [EnumMember(Value = "WARNING_INSTANCE_COUNT")] + WarningInstanceCount, + [EnumMember(Value = "UNREACHABLE_INSTANCE_COUNT")] + UnreachableInstanceCount, + [EnumMember(Value = "REGISTRATION_FAILED_INSTANCE_COUNT")] + RegistrationFailedInstanceCount, + [EnumMember(Value = "INSTANCE_SECURITY_UPDATES_COUNT")] + InstanceSecurityUpdatesCount, + [EnumMember(Value = "INSTANCE_BUGFIX_UPDATES_COUNT")] + InstanceBugfixUpdatesCount + } +} diff --git a/Osmanagementhub/models/MirrorConfiguration.cs b/Osmanagementhub/models/MirrorConfiguration.cs new file mode 100644 index 0000000000..a8996b24e6 --- /dev/null +++ b/Osmanagementhub/models/MirrorConfiguration.cs @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Information for a mirror configuration + /// + public class MirrorConfiguration + { + + /// + /// Directory for the mirroring + /// + /// + /// Required + /// + [Required(ErrorMessage = "Directory is required.")] + [JsonProperty(PropertyName = "directory")] + public string Directory { get; set; } + + /// + /// Default port for the mirror + /// + /// + /// Required + /// + [Required(ErrorMessage = "Port is required.")] + [JsonProperty(PropertyName = "port")] + public string Port { get; set; } + + /// + /// Default sslport for the mirror + /// + /// + /// Required + /// + [Required(ErrorMessage = "Sslport is required.")] + [JsonProperty(PropertyName = "sslport")] + public string Sslport { get; set; } + + /// + /// Local path for the sslcert + /// + [JsonProperty(PropertyName = "sslcert")] + public string Sslcert { get; set; } + + } +} diff --git a/Osmanagementhub/models/MirrorState.cs b/Osmanagementhub/models/MirrorState.cs new file mode 100644 index 0000000000..f01ca96411 --- /dev/null +++ b/Osmanagementhub/models/MirrorState.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Mirror overall state. + /// + public enum MirrorState { + /// 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 = "UNSYNCED")] + Unsynced, + [EnumMember(Value = "QUEUED")] + Queued, + [EnumMember(Value = "SYNCING")] + Syncing, + [EnumMember(Value = "SYNCED")] + Synced, + [EnumMember(Value = "FAILED")] + Failed + } +} diff --git a/Osmanagementhub/models/MirrorSummary.cs b/Osmanagementhub/models/MirrorSummary.cs new file mode 100644 index 0000000000..7cf5fc72b3 --- /dev/null +++ b/Osmanagementhub/models/MirrorSummary.cs @@ -0,0 +1,103 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Summary of a Mirror + /// + public class MirrorSummary + { + + /// + /// OCID of a software source + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Display name of the mirror + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Type of the mirror + /// + [JsonProperty(PropertyName = "type")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Type { get; set; } + + /// + /// The OS family the Software Source belongs to + /// + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The architecture type supported by the Software Source + /// + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// Current state of the mirror + /// + /// + /// Required + /// + [Required(ErrorMessage = "State is required.")] + [JsonProperty(PropertyName = "state")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable State { get; set; } + + /// + /// A decimal number representing the completness percentage + /// + /// + /// Required + /// + [Required(ErrorMessage = "Percentage is required.")] + [JsonProperty(PropertyName = "percentage")] + public System.Nullable Percentage { get; set; } + + /// + /// Timestamp of the last time the mirror was sync + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeLastSynced is required.")] + [JsonProperty(PropertyName = "timeLastSynced")] + public System.Nullable TimeLastSynced { get; set; } + + /// + /// The current log from the management station plugin. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Log is required.")] + [JsonProperty(PropertyName = "log")] + public string Log { get; set; } + + } +} diff --git a/Osmanagementhub/models/MirrorSyncStatus.cs b/Osmanagementhub/models/MirrorSyncStatus.cs new file mode 100644 index 0000000000..0ca75757d3 --- /dev/null +++ b/Osmanagementhub/models/MirrorSyncStatus.cs @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Status summary of all repos + /// + public class MirrorSyncStatus + { + + /// + /// Total of mirrors in 'failed' state + /// + /// + /// Required + /// + [Required(ErrorMessage = "Unsynced is required.")] + [JsonProperty(PropertyName = "unsynced")] + public System.Nullable Unsynced { get; set; } + + /// + /// Total of mirrors in 'queued' state + /// + /// + /// Required + /// + [Required(ErrorMessage = "Queued is required.")] + [JsonProperty(PropertyName = "queued")] + public System.Nullable Queued { get; set; } + + /// + /// Total of mirrors in 'syncing' state + /// + /// + /// Required + /// + [Required(ErrorMessage = "Syncing is required.")] + [JsonProperty(PropertyName = "syncing")] + public System.Nullable Syncing { get; set; } + + /// + /// Total of mirrors in 'synced' state + /// + /// + /// Required + /// + [Required(ErrorMessage = "Synced is required.")] + [JsonProperty(PropertyName = "synced")] + public System.Nullable Synced { get; set; } + + /// + /// Total of mirrors in 'failed' state + /// + /// + /// Required + /// + [Required(ErrorMessage = "Failed is required.")] + [JsonProperty(PropertyName = "failed")] + public System.Nullable Failed { get; set; } + + } +} diff --git a/Osmanagementhub/models/MirrorType.cs b/Osmanagementhub/models/MirrorType.cs new file mode 100644 index 0000000000..ed452ff7f7 --- /dev/null +++ b/Osmanagementhub/models/MirrorType.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Mirror type. + /// + public enum MirrorType { + /// 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 = "CUSTOM")] + Custom, + [EnumMember(Value = "VENDOR")] + Vendor, + [EnumMember(Value = "VERSIONED")] + Versioned + } +} diff --git a/Osmanagementhub/models/MirrorsCollection.cs b/Osmanagementhub/models/MirrorsCollection.cs new file mode 100644 index 0000000000..e895c35eec --- /dev/null +++ b/Osmanagementhub/models/MirrorsCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// List of mirrors associated with a Management Station + /// + public class MirrorsCollection + { + + /// + /// List of mirrors + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleCollection.cs b/Osmanagementhub/models/ModuleCollection.cs new file mode 100644 index 0000000000..c0b9d90392 --- /dev/null +++ b/Osmanagementhub/models/ModuleCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a Module search. Contains module summary items and other information, such as metadata. + /// + public class ModuleCollection + { + + /// + /// List of Modules. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleSpecDetails.cs b/Osmanagementhub/models/ModuleSpecDetails.cs new file mode 100644 index 0000000000..cbf56aadd9 --- /dev/null +++ b/Osmanagementhub/models/ModuleSpecDetails.cs @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Details about a specific appstream module. + /// + public class ModuleSpecDetails + { + + /// + /// Name of the module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The stream of the module. + /// + [JsonProperty(PropertyName = "stream")] + public string Stream { get; set; } + + /// + /// The module profile to be used. + /// + [JsonProperty(PropertyName = "profile")] + public string Profile { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleStream.cs b/Osmanagementhub/models/ModuleStream.cs new file mode 100644 index 0000000000..18a58ac2e0 --- /dev/null +++ b/Osmanagementhub/models/ModuleStream.cs @@ -0,0 +1,96 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// A module stream provided by a software source. + /// + public class ModuleStream + { + + /// + /// The name of the module that contains the stream. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of the stream. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Indicates if this stream is the default for its module. + /// + [JsonProperty(PropertyName = "isDefault")] + public System.Nullable IsDefault { get; set; } + + /// + /// The OCID of the software source that provides this module stream. + /// + [JsonProperty(PropertyName = "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// The architecture for which the packages in this module stream were built. + /// + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// A description of the contents of the module stream. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// A list of profiles that are part of the stream. Each element in + /// the list is the name of a profile. The name is suitable to use as + /// an argument to other OS Management Hub APIs that interact directly with + /// module stream profiles. However, it is not URL encoded. + /// + /// + [JsonProperty(PropertyName = "profiles")] + public System.Collections.Generic.List Profiles { get; set; } + + /// + /// A list of packages that are contained by the stream. Each element + /// in the list is the name of a package. The name is suitable to use + /// as an argument to other OS Management Hub APIs that interact directly + /// with packages. + /// + /// + [JsonProperty(PropertyName = "packages")] + public System.Collections.Generic.List Packages { get; set; } + + /// + /// Indicates whether this module stream is the latest. + /// + [JsonProperty(PropertyName = "isLatest")] + public System.Nullable IsLatest { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleStreamCollection.cs b/Osmanagementhub/models/ModuleStreamCollection.cs new file mode 100644 index 0000000000..59dea9e8b2 --- /dev/null +++ b/Osmanagementhub/models/ModuleStreamCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a ModuleStream search. Contains both ModuleStreamSummary items and other information, such as metadata. + /// + public class ModuleStreamCollection + { + + /// + /// List of ModuleStream. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleStreamDetails.cs b/Osmanagementhub/models/ModuleStreamDetails.cs new file mode 100644 index 0000000000..0168a6802a --- /dev/null +++ b/Osmanagementhub/models/ModuleStreamDetails.cs @@ -0,0 +1,45 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Updatable information for a module stream. + /// + public class ModuleStreamDetails + { + + /// + /// The name of a module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "StreamName is required.")] + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleStreamDetailsBody.cs b/Osmanagementhub/models/ModuleStreamDetailsBody.cs new file mode 100644 index 0000000000..99d78a45a7 --- /dev/null +++ b/Osmanagementhub/models/ModuleStreamDetailsBody.cs @@ -0,0 +1,44 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details of the module stream to be enabled/disabled on a managed instance. + /// + public class ModuleStreamDetailsBody + { + + /// + /// The name of a module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleStreamProfile.cs b/Osmanagementhub/models/ModuleStreamProfile.cs new file mode 100644 index 0000000000..093f2537fb --- /dev/null +++ b/Osmanagementhub/models/ModuleStreamProfile.cs @@ -0,0 +1,81 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// A module stream profile provided by a software source. + /// + public class ModuleStreamProfile + { + + /// + /// The name of the module that contains the stream profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of the stream that contains the profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "StreamName is required.")] + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + /// + /// The name of the profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Indicates if this profile is the default for its module stream. + /// + [JsonProperty(PropertyName = "isDefault")] + public System.Nullable IsDefault { get; set; } + + /// + /// A description of the contents of the module stream profile. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// A list of packages that constitute the profile. Each element + /// in the list is the name of a package. The name is suitable to + /// use as an argument to other OS Management Hub APIs that interact + /// directly with packages. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "Packages is required.")] + [JsonProperty(PropertyName = "packages")] + public System.Collections.Generic.List Packages { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleStreamProfileCollection.cs b/Osmanagementhub/models/ModuleStreamProfileCollection.cs new file mode 100644 index 0000000000..3f4fc370e1 --- /dev/null +++ b/Osmanagementhub/models/ModuleStreamProfileCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a ModuleStreamProfile search. Contains both ModuleStreamProfileSummary items and other information, such as metadata. + /// + public class ModuleStreamProfileCollection + { + + /// + /// List of ModuleStreamProfile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleStreamProfileDetails.cs b/Osmanagementhub/models/ModuleStreamProfileDetails.cs new file mode 100644 index 0000000000..b1b2838097 --- /dev/null +++ b/Osmanagementhub/models/ModuleStreamProfileDetails.cs @@ -0,0 +1,55 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Updatable information for a module stream profile. + /// + public class ModuleStreamProfileDetails + { + + /// + /// The name of a module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "StreamName is required.")] + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + /// + /// The name of a profile of the specified module stream. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ProfileName is required.")] + [JsonProperty(PropertyName = "profileName")] + public string ProfileName { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleStreamProfileDetailsBody.cs b/Osmanagementhub/models/ModuleStreamProfileDetailsBody.cs new file mode 100644 index 0000000000..ca8bc69fdd --- /dev/null +++ b/Osmanagementhub/models/ModuleStreamProfileDetailsBody.cs @@ -0,0 +1,50 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details of the module stream profile to be installed/removed on a managed instance. + /// + public class ModuleStreamProfileDetailsBody + { + + /// + /// The name of a module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + /// + /// The name of a profile of the specified module stream. + /// + [JsonProperty(PropertyName = "profileName")] + public string ProfileName { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleStreamProfileFilter.cs b/Osmanagementhub/models/ModuleStreamProfileFilter.cs new file mode 100644 index 0000000000..6b296ceb9e --- /dev/null +++ b/Osmanagementhub/models/ModuleStreamProfileFilter.cs @@ -0,0 +1,58 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Used to select module stream/profiles from VendorSoftwareSources to create/update CustomSoftwareSources. + /// + public class ModuleStreamProfileFilter + { + + /// + /// Module name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// Profile name. + /// + [JsonProperty(PropertyName = "profileName")] + public string ProfileName { get; set; } + + /// + /// Stream name. + /// + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + /// + /// The type of the filter, which can be of two types - INCLUDE or EXCLUDE. + /// + /// + /// Required + /// + [Required(ErrorMessage = "FilterType is required.")] + [JsonProperty(PropertyName = "filterType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable FilterType { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleStreamProfileStatus.cs b/Osmanagementhub/models/ModuleStreamProfileStatus.cs new file mode 100644 index 0000000000..5705084ed5 --- /dev/null +++ b/Osmanagementhub/models/ModuleStreamProfileStatus.cs @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The status of a module stream profile. + /// + public enum ModuleStreamProfileStatus { + [EnumMember(Value = "INSTALLED")] + Installed, + [EnumMember(Value = "AVAILABLE")] + Available + } +} diff --git a/Osmanagementhub/models/ModuleStreamProfileSummary.cs b/Osmanagementhub/models/ModuleStreamProfileSummary.cs new file mode 100644 index 0000000000..cc9842cb60 --- /dev/null +++ b/Osmanagementhub/models/ModuleStreamProfileSummary.cs @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Summary information pertaining to a module stream profile provided by a software source. + /// + public class ModuleStreamProfileSummary + { + + /// + /// The name of the module that contains the stream profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of the stream that contains the profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "StreamName is required.")] + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + /// + /// The name of the profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Indicates if this profile is the default for its module stream. + /// + [JsonProperty(PropertyName = "isDefault")] + public System.Nullable IsDefault { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleStreamStatus.cs b/Osmanagementhub/models/ModuleStreamStatus.cs new file mode 100644 index 0000000000..c89342fbf1 --- /dev/null +++ b/Osmanagementhub/models/ModuleStreamStatus.cs @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The status of a module stream. + /// + public enum ModuleStreamStatus { + [EnumMember(Value = "ENABLED")] + Enabled, + [EnumMember(Value = "DISABLED")] + Disabled, + [EnumMember(Value = "ACTIVE")] + Active + } +} diff --git a/Osmanagementhub/models/ModuleStreamSummary.cs b/Osmanagementhub/models/ModuleStreamSummary.cs new file mode 100644 index 0000000000..4f0ad7e1fd --- /dev/null +++ b/Osmanagementhub/models/ModuleStreamSummary.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Summary information pertaining to a module stream provided by a software source. + /// + public class ModuleStreamSummary + { + + /// + /// The name of the stream. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// The name of the module that contains the stream. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// List of profiles in the stream. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Profiles is required.")] + [JsonProperty(PropertyName = "profiles")] + public System.Collections.Generic.List Profiles { get; set; } + + /// + /// Indicates whether this module stream is the latest. + /// + [JsonProperty(PropertyName = "isLatest")] + public System.Nullable IsLatest { get; set; } + + /// + /// The software source id for the the module stream. + /// + /// + [JsonProperty(PropertyName = "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + } +} diff --git a/Osmanagementhub/models/ModuleSummary.cs b/Osmanagementhub/models/ModuleSummary.cs new file mode 100644 index 0000000000..5c4803eaff --- /dev/null +++ b/Osmanagementhub/models/ModuleSummary.cs @@ -0,0 +1,53 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Summary information pertaining to a module provided by a software source. + /// + public class ModuleSummary + { + + /// + /// The name of the module. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// List of stream names. + /// + [JsonProperty(PropertyName = "streams")] + public System.Collections.Generic.List Streams { get; set; } + + /// + /// The software source that provides the module. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [JsonProperty(PropertyName = "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + } +} diff --git a/Osmanagementhub/models/OperationStatus.cs b/Osmanagementhub/models/OperationStatus.cs new file mode 100644 index 0000000000..8b1aebc4f2 --- /dev/null +++ b/Osmanagementhub/models/OperationStatus.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible operation statuses. + /// + public enum OperationStatus { + /// 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 = "ACCEPTED")] + Accepted, + [EnumMember(Value = "IN_PROGRESS")] + InProgress, + [EnumMember(Value = "FAILED")] + Failed, + [EnumMember(Value = "SUCCEEDED")] + Succeeded, + [EnumMember(Value = "CANCELING")] + Canceling, + [EnumMember(Value = "CANCELED")] + Canceled + } +} diff --git a/Osmanagementhub/models/OperationTypes.cs b/Osmanagementhub/models/OperationTypes.cs new file mode 100644 index 0000000000..dbd8b351cb --- /dev/null +++ b/Osmanagementhub/models/OperationTypes.cs @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible scheduled job operation types. + /// + public enum OperationTypes { + /// 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 = "INSTALL_PACKAGES")] + InstallPackages, + [EnumMember(Value = "UPDATE_PACKAGES")] + UpdatePackages, + [EnumMember(Value = "REMOVE_PACKAGES")] + RemovePackages, + [EnumMember(Value = "UPDATE_ALL")] + UpdateAll, + [EnumMember(Value = "UPDATE_SECURITY")] + UpdateSecurity, + [EnumMember(Value = "UPDATE_BUGFIX")] + UpdateBugfix, + [EnumMember(Value = "UPDATE_ENHANCEMENT")] + UpdateEnhancement, + [EnumMember(Value = "UPDATE_OTHER")] + UpdateOther, + [EnumMember(Value = "UPDATE_KSPLICE_USERSPACE")] + UpdateKspliceUserspace, + [EnumMember(Value = "UPDATE_KSPLICE_KERNEL")] + UpdateKspliceKernel, + [EnumMember(Value = "MANAGE_MODULE_STREAMS")] + ManageModuleStreams, + [EnumMember(Value = "SWITCH_MODULE_STREAM")] + SwitchModuleStream, + [EnumMember(Value = "ATTACH_SOFTWARE_SOURCES")] + AttachSoftwareSources, + [EnumMember(Value = "DETACH_SOFTWARE_SOURCES")] + DetachSoftwareSources, + [EnumMember(Value = "SYNC_MANAGEMENT_STATION_MIRROR")] + SyncManagementStationMirror, + [EnumMember(Value = "PROMOTE_LIFECYCLE")] + PromoteLifecycle + } +} diff --git a/Osmanagementhub/models/OsFamily.cs b/Osmanagementhub/models/OsFamily.cs new file mode 100644 index 0000000000..bd5d468be1 --- /dev/null +++ b/Osmanagementhub/models/OsFamily.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Operating system types. + /// + public enum OsFamily { + /// 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 = "ORACLE_LINUX_9")] + OracleLinux9, + [EnumMember(Value = "ORACLE_LINUX_8")] + OracleLinux8, + [EnumMember(Value = "ORACLE_LINUX_7")] + OracleLinux7 + } +} diff --git a/Osmanagementhub/models/OverallState.cs b/Osmanagementhub/models/OverallState.cs new file mode 100644 index 0000000000..797f03396d --- /dev/null +++ b/Osmanagementhub/models/OverallState.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Mirror overall state. + /// + public enum OverallState { + /// 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 = "NORMAL")] + Normal, + [EnumMember(Value = "REGISTRATIONERROR")] + Registrationerror, + [EnumMember(Value = "SYNCING")] + Syncing, + [EnumMember(Value = "SYNCFAILED")] + Syncfailed, + [EnumMember(Value = "WARNING")] + Warning, + [EnumMember(Value = "ERROR")] + Error, + [EnumMember(Value = "UNAVAILABLE")] + Unavailable + } +} diff --git a/Osmanagementhub/models/PackageFilter.cs b/Osmanagementhub/models/PackageFilter.cs new file mode 100644 index 0000000000..01a269303d --- /dev/null +++ b/Osmanagementhub/models/PackageFilter.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.OsmanagementhubService.Models +{ + /// + /// Used to select packages from VendorSoftwareSources to create/update CustomSoftwareSources. + /// + public class PackageFilter + { + + /// + /// The package name. + /// + [JsonProperty(PropertyName = "packageName")] + public string PackageName { get; set; } + + /// + /// The package name pattern. + /// + [JsonProperty(PropertyName = "packageNamePattern")] + public string PackageNamePattern { get; set; } + + /// + /// The package version, which is denoted by 'version-release', or 'epoch:version-release'. + /// + [JsonProperty(PropertyName = "packageVersion")] + public string PackageVersion { get; set; } + + /// + /// The type of the filter, which can be of two types - INCLUDE or EXCLUDE. + /// + /// + /// Required + /// + [Required(ErrorMessage = "FilterType is required.")] + [JsonProperty(PropertyName = "filterType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable FilterType { get; set; } + + } +} diff --git a/Osmanagementhub/models/PackageGroup.cs b/Osmanagementhub/models/PackageGroup.cs new file mode 100644 index 0000000000..6f028f279a --- /dev/null +++ b/Osmanagementhub/models/PackageGroup.cs @@ -0,0 +1,108 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Yum/DNF package group, category or environment. + /// + public class PackageGroup + { + + /// + /// Package group identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Package group name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// the IDs of the package group's repositories. + /// + [JsonProperty(PropertyName = "repositories")] + public System.Collections.Generic.List Repositories { get; set; } + + /// + /// description of the package group. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Indicates if this package group is visible by users. + /// + [JsonProperty(PropertyName = "isUserVisible")] + public System.Nullable IsUserVisible { get; set; } + + /// + /// Indicates if this package group is the default. + /// + [JsonProperty(PropertyName = "isDefault")] + public System.Nullable IsDefault { get; set; } + /// + /// + /// Indicates if this is a group, category or environment. + /// + /// + public enum GroupTypeEnum { + /// 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 = "GROUP")] + Group, + [EnumMember(Value = "ENVIRONMENT")] + Environment, + [EnumMember(Value = "CATEGORY")] + Category + }; + + /// + /// Indicates if this is a group, category or environment. + /// + [JsonProperty(PropertyName = "groupType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable GroupType { get; set; } + + /// + /// Indicates the order to display category or environment. + /// + [JsonProperty(PropertyName = "displayOrder")] + public System.Nullable DisplayOrder { get; set; } + + /// + /// The list of packages in the package group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Packages is required.")] + [JsonProperty(PropertyName = "packages")] + public System.Collections.Generic.List Packages { get; set; } + + } +} diff --git a/Osmanagementhub/models/PackageGroupCollection.cs b/Osmanagementhub/models/PackageGroupCollection.cs new file mode 100644 index 0000000000..0a559d28c1 --- /dev/null +++ b/Osmanagementhub/models/PackageGroupCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a package group search. Contains both package group summary items and other information, such as metadata. + /// + public class PackageGroupCollection + { + + /// + /// List of package groups. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/PackageGroupFilter.cs b/Osmanagementhub/models/PackageGroupFilter.cs new file mode 100644 index 0000000000..5c66439909 --- /dev/null +++ b/Osmanagementhub/models/PackageGroupFilter.cs @@ -0,0 +1,42 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Used to select groups from VendorSoftwareSources to create/update CustomSoftwareSources. + /// + public class PackageGroupFilter + { + + /// + /// List of package group names. + /// + [JsonProperty(PropertyName = "packageGroups")] + public System.Collections.Generic.List PackageGroups { get; set; } + + /// + /// The type of the filter, which can be of two types - INCLUDE or EXCLUDE. + /// + /// + /// Required + /// + [Required(ErrorMessage = "FilterType is required.")] + [JsonProperty(PropertyName = "filterType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable FilterType { get; set; } + + } +} diff --git a/Osmanagementhub/models/PackageGroupSummary.cs b/Osmanagementhub/models/PackageGroupSummary.cs new file mode 100644 index 0000000000..16d46dbcea --- /dev/null +++ b/Osmanagementhub/models/PackageGroupSummary.cs @@ -0,0 +1,82 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Yum/DNF package group that associated with a software source. + /// + public class PackageGroupSummary + { + + /// + /// Package group identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Package group name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// description of the package group. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Indicates if this package group is visible by users. + /// + [JsonProperty(PropertyName = "isUserVisible")] + public System.Nullable IsUserVisible { get; set; } + + /// + /// Indicates if this package group is the default. + /// + [JsonProperty(PropertyName = "isDefault")] + public System.Nullable IsDefault { get; set; } + + /// + /// the IDs of the package group's repositories. + /// + [JsonProperty(PropertyName = "repositories")] + public System.Collections.Generic.List Repositories { get; set; } + + /// + /// Indicates if this is a group, category or environment. + /// + [JsonProperty(PropertyName = "groupType")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable GroupType { get; set; } + + /// + /// Indicates the order to display category or environment. + /// + [JsonProperty(PropertyName = "displayOrder")] + public System.Nullable DisplayOrder { get; set; } + + } +} diff --git a/Osmanagementhub/models/PackageNameSummary.cs b/Osmanagementhub/models/PackageNameSummary.cs new file mode 100644 index 0000000000..02649020d8 --- /dev/null +++ b/Osmanagementhub/models/PackageNameSummary.cs @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// A simple representation of a package using its displayName and NEVRA parts. + /// + public class PackageNameSummary + { + + /// + /// Full package NEVRA name - this value should be unique. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The name of the software package. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Type of the package. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Version of the installed package. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + /// + /// The architecture for which this package was built. + /// + [JsonProperty(PropertyName = "architecture")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Architecture { get; set; } + + } +} diff --git a/Osmanagementhub/models/PackageSummary.cs b/Osmanagementhub/models/PackageSummary.cs new file mode 100644 index 0000000000..46687b5b7b --- /dev/null +++ b/Osmanagementhub/models/PackageSummary.cs @@ -0,0 +1,128 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// A software package summary. + /// + [JsonConverter(typeof(PackageSummaryModelConverter))] + public class PackageSummary + { + + /// + /// Package name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Unique identifier for the package. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Type of the package. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Type is required.")] + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Version of the installed package. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Version is required.")] + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + /// + /// The architecture for which this package was built. + /// + [JsonProperty(PropertyName = "architecture")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable Architecture { get; set; } + + /// + /// list of software sources that provide the software package. + /// + [JsonProperty(PropertyName = "softwareSources")] + public System.Collections.Generic.List SoftwareSources { get; set; } + /// + /// + /// classifier for child instances of this object. + /// + /// + public enum PackageClassificationEnum { + [EnumMember(Value = "INSTALLED")] + Installed, + [EnumMember(Value = "AVAILABLE")] + Available, + [EnumMember(Value = "UPDATABLE")] + Updatable + }; + + + } + + public class PackageSummaryModelConverter : JsonConverter + { + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(PackageSummary); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(PackageSummary); + var discriminator = jsonObject["packageClassification"].Value(); + switch (discriminator) + { + case "AVAILABLE": + obj = new AvailablePackageSummary(); + break; + case "INSTALLED": + obj = new InstalledPackageSummary(); + break; + case "UPDATABLE": + obj = new UpdatablePackageSummary(); + break; + } + serializer.Populate(jsonObject.CreateReader(), obj); + return obj; + } + } +} diff --git a/Osmanagementhub/models/Profile.cs b/Osmanagementhub/models/Profile.cs new file mode 100644 index 0000000000..0259e22741 --- /dev/null +++ b/Osmanagementhub/models/Profile.cs @@ -0,0 +1,203 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Description of registration profile. + /// + [JsonConverter(typeof(ProfileModelConverter))] + public class Profile + { + + /// + /// The OCID of the profile that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The OCID of the tenancy containing the registration profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The description of the registration profile. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The OCID of the management station. + /// + [JsonProperty(PropertyName = "managementStationId")] + public string ManagementStationId { get; set; } + + + /// + /// The software source vendor name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorName is required.")] + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable VendorName { get; set; } + + /// + /// The operating system family. + /// + /// + /// Required + /// + [Required(ErrorMessage = "OsFamily is required.")] + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The architecture type. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ArchType is required.")] + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// The time the the registration profile was created. An RFC3339 formatted datetime string. + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + /// + /// + /// The current state of the registration profile. + /// + /// + public enum LifecycleStateEnum { + [EnumMember(Value = "CREATING")] + Creating, + [EnumMember(Value = "UPDATING")] + Updating, + [EnumMember(Value = "ACTIVE")] + Active, + [EnumMember(Value = "DELETING")] + Deleting, + [EnumMember(Value = "DELETED")] + Deleted, + [EnumMember(Value = "FAILED")] + Failed + }; + + /// + /// The current state of the registration profile. + /// + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } + + public class ProfileModelConverter : JsonConverter + { + private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(Profile); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(Profile); + var discriminator = jsonObject["profileType"].Value(); + switch (discriminator) + { + case "LIFECYCLE": + obj = new LifecycleProfile(); + break; + case "SOFTWARESOURCE": + obj = new SoftwareSourceProfile(); + break; + case "GROUP": + obj = new GroupProfile(); + break; + case "STATION": + obj = new StationProfile(); + break; + } + if (obj != null) + { + serializer.Populate(jsonObject.CreateReader(), obj); + } + else + { + logger.Warn($"The type {discriminator} is not present under Profile! Returning null value."); + } + return obj; + } + } +} diff --git a/Osmanagementhub/models/ProfileCollection.cs b/Osmanagementhub/models/ProfileCollection.cs new file mode 100644 index 0000000000..8609eb57ca --- /dev/null +++ b/Osmanagementhub/models/ProfileCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a registration profile search. Contains both registration profile summary items and other data. + /// + public class ProfileCollection + { + + /// + /// List of registration profiles. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ProfileSummary.cs b/Osmanagementhub/models/ProfileSummary.cs new file mode 100644 index 0000000000..880bed2261 --- /dev/null +++ b/Osmanagementhub/models/ProfileSummary.cs @@ -0,0 +1,127 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Summary of the registration profile. + /// + public class ProfileSummary + { + + /// + /// The OCID of the profile that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The description of the registration profile. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The OCID of the tenancy containing the registration profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The OCID of the management station. + /// + [JsonProperty(PropertyName = "managementStationId")] + public string ManagementStationId { get; set; } + + /// + /// The type of registration profile. Either SOFTWARESOURCE, GROUP or LIFECYCLE. + /// + [JsonProperty(PropertyName = "profileType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ProfileType { get; set; } + + /// + /// The software source vendor name. + /// + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable VendorName { get; set; } + + /// + /// The operating system family. + /// + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The architecture type. + /// + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// The time the the Onboarding was created. An RFC3339 formatted datetime string + /// + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The current state of the registration profile. + /// + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/ProfileType.cs b/Osmanagementhub/models/ProfileType.cs new file mode 100644 index 0000000000..31874e1f22 --- /dev/null +++ b/Osmanagementhub/models/ProfileType.cs @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible registration profile types. + /// + public enum ProfileType { + /// 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 = "SOFTWARESOURCE")] + Softwaresource, + [EnumMember(Value = "GROUP")] + Group, + [EnumMember(Value = "LIFECYCLE")] + Lifecycle, + [EnumMember(Value = "STATION")] + Station + } +} diff --git a/Osmanagementhub/models/PromoteSoftwareSourceToLifecycleStageDetails.cs b/Osmanagementhub/models/PromoteSoftwareSourceToLifecycleStageDetails.cs new file mode 100644 index 0000000000..ca1d4e3e61 --- /dev/null +++ b/Osmanagementhub/models/PromoteSoftwareSourceToLifecycleStageDetails.cs @@ -0,0 +1,50 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// A versioned custom software source OCID (softwareSourceId) + /// is required when promoting software source content to + /// lifecycle stage rank one. Software source content must be + /// promoted to lifecycle stage rank one before being + /// eligible for promotion to subsequent lifecycle stages, + /// else an error is returned. Software source content is + /// expected to be promoted in order starting with + /// lifecycle stage rank one, followed by rank two, then rank + /// three and so on. + ///
+ /// When promoting software source content to lifecycle stage + /// rank two, three, four or five, softwareSourceId is optional. + /// If a softwareSourceId is provided for a lifecycle stage + /// between two and five, the system validates that the + /// softwareSourceId is already promoted to the previous lifecycle stage. + /// If the softwareSourceId from the previous lifecycle stage + /// does not match the provided softwareSourceId an error returns. + /// If a softwareSourceId is not provided for a lifecycle stage + /// between two and five, the system promotes the + /// softwareSourceId from the previous lifecycle stage. If the + /// previous lifecycle stage has no SourceSource content + /// an error returns. + /// + ///
+ public class PromoteSoftwareSourceToLifecycleStageDetails + { + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/ProxyConfiguration.cs b/Osmanagementhub/models/ProxyConfiguration.cs new file mode 100644 index 0000000000..c227bf3e7b --- /dev/null +++ b/Osmanagementhub/models/ProxyConfiguration.cs @@ -0,0 +1,53 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Information for a proxy configuration + /// + public class ProxyConfiguration + { + + /// + /// To enable or disable the proxy (default true) + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsEnabled is required.")] + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + /// + /// List of hosts + /// + [JsonProperty(PropertyName = "hosts")] + public System.Collections.Generic.List Hosts { get; set; } + + /// + /// Port that the proxy will use + /// + [JsonProperty(PropertyName = "port")] + public string Port { get; set; } + + /// + /// URL that the proxy will forward to + /// + [JsonProperty(PropertyName = "forward")] + public string Forward { get; set; } + + } +} diff --git a/Osmanagementhub/models/RemoveModuleStreamProfileFromManagedInstanceDetails.cs b/Osmanagementhub/models/RemoveModuleStreamProfileFromManagedInstanceDetails.cs new file mode 100644 index 0000000000..a20662b6e8 --- /dev/null +++ b/Osmanagementhub/models/RemoveModuleStreamProfileFromManagedInstanceDetails.cs @@ -0,0 +1,50 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details of the module stream profile to be removed on a managed instance. + /// + public class RemoveModuleStreamProfileFromManagedInstanceDetails + { + + /// + /// The name of a module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + /// + /// The name of a profile of the specified module stream. + /// + [JsonProperty(PropertyName = "profileName")] + public string ProfileName { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/RemoveModuleStreamProfileFromManagedInstanceGroupDetails.cs b/Osmanagementhub/models/RemoveModuleStreamProfileFromManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..effda0f087 --- /dev/null +++ b/Osmanagementhub/models/RemoveModuleStreamProfileFromManagedInstanceGroupDetails.cs @@ -0,0 +1,46 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The work request details for the module stream profile operation on the managed instance group. + /// + public class RemoveModuleStreamProfileFromManagedInstanceGroupDetails + { + + /// + /// The name of a module. + /// + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + /// + /// The name of a profile of the specified module stream. + /// + [JsonProperty(PropertyName = "profileName")] + public string ProfileName { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/RemovePackagesFromManagedInstanceDetails.cs b/Osmanagementhub/models/RemovePackagesFromManagedInstanceDetails.cs new file mode 100644 index 0000000000..a36837f955 --- /dev/null +++ b/Osmanagementhub/models/RemovePackagesFromManagedInstanceDetails.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details about the software packages to be removed. + /// + public class RemovePackagesFromManagedInstanceDetails + { + + /// + /// The list of package names. + /// + /// + /// Required + /// + [Required(ErrorMessage = "PackageNames is required.")] + [JsonProperty(PropertyName = "packageNames")] + public System.Collections.Generic.List PackageNames { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/RemovePackagesFromManagedInstanceGroupDetails.cs b/Osmanagementhub/models/RemovePackagesFromManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..01212a359e --- /dev/null +++ b/Osmanagementhub/models/RemovePackagesFromManagedInstanceGroupDetails.cs @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The names of the packages to be removed from the managed instance group. + /// + public class RemovePackagesFromManagedInstanceGroupDetails + { + + /// + /// The list of package names. + /// + [JsonProperty(PropertyName = "packageNames")] + public System.Collections.Generic.List PackageNames { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/ScheduleTypes.cs b/Osmanagementhub/models/ScheduleTypes.cs new file mode 100644 index 0000000000..37c754256f --- /dev/null +++ b/Osmanagementhub/models/ScheduleTypes.cs @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible schedule types. + /// + public enum ScheduleTypes { + /// 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 = "ONETIME")] + Onetime, + [EnumMember(Value = "RECURRING")] + Recurring + } +} diff --git a/Osmanagementhub/models/ScheduledJob.cs b/Osmanagementhub/models/ScheduledJob.cs new file mode 100644 index 0000000000..82818a9cff --- /dev/null +++ b/Osmanagementhub/models/ScheduledJob.cs @@ -0,0 +1,232 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Detailed information about a scheduled job. + /// + public class ScheduledJob + { + + /// + /// The OCID of the scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Scheduled job name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The OCID of the compartment containing the scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// Details describing the scheduled job. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The type of scheduling this scheduled job follows. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ScheduleType is required.")] + [JsonProperty(PropertyName = "scheduleType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ScheduleType { get; set; } + + /// + /// The time of the next execution of this scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeNextExecution is required.")] + [JsonProperty(PropertyName = "timeNextExecution")] + public System.Nullable TimeNextExecution { get; set; } + + /// + /// The time of the last execution of this scheduled job. + /// + [JsonProperty(PropertyName = "timeLastExecution")] + public System.Nullable TimeLastExecution { get; set; } + + /// + /// The recurring rule for a RECURRING scheduled job. + /// + [JsonProperty(PropertyName = "recurringRule")] + public string RecurringRule { get; set; } + + /// + /// The list of managed instance OCIDs this scheduled job operates on (mutually exclusive with managedInstanceGroupIds, managedCompartmentIds and lifecycleStageIds). + /// + [JsonProperty(PropertyName = "managedInstanceIds")] + public System.Collections.Generic.List ManagedInstanceIds { get; set; } + + /// + /// The list of managed instance group OCIDs this scheduled job operates on (mutually exclusive with managedInstances, managedCompartmentIds and lifecycleStageIds). + /// + [JsonProperty(PropertyName = "managedInstanceGroupIds")] + public System.Collections.Generic.List ManagedInstanceGroupIds { get; set; } + + /// + /// The list of target compartment OCIDs if this scheduled job operates on a compartment level (mutually exclusive with managedInstances, managedInstanceGroupIds and lifecycleStageIds). + /// + [JsonProperty(PropertyName = "managedCompartmentIds")] + public System.Collections.Generic.List ManagedCompartmentIds { get; set; } + + /// + /// The list of target lifecycle stage OCIDs if this scheduled job operates on lifecycle stages (mutually exclusive with managedInstances, managedInstanceGroupIds and managedCompartmentIds). + /// + [JsonProperty(PropertyName = "lifecycleStageIds")] + public System.Collections.Generic.List LifecycleStageIds { get; set; } + + /// + /// Whether to create jobs for all compartments in the tenancy when managedCompartmentIds specifies the tenancy OCID. + /// + [JsonProperty(PropertyName = "isSubcompartmentIncluded")] + public System.Nullable IsSubcompartmentIncluded { get; set; } + + /// + /// The list of operations this scheduled job needs to perform (can only support one operation if the operationType is not UPDATE_PACKAGES/UPDATE_ALL/UPDATE_SECURITY/UPDATE_BUGFIX/UPDATE_ENHANCEMENT/UPDATE_OTHER/UPDATE_KSPLICE_USERSPACE/UPDATE_KSPLICE_KERNEL). + /// + /// + /// Required + /// + [Required(ErrorMessage = "Operations is required.")] + [JsonProperty(PropertyName = "operations")] + public System.Collections.Generic.List Operations { get; set; } + + /// + /// The list of work request OCIDs associated with this scheduled job. + /// + [JsonProperty(PropertyName = "workRequestIds")] + public System.Collections.Generic.List WorkRequestIds { get; set; } + + /// + /// The time this scheduled job was created. An RFC3339 formatted datetime string. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeCreated is required.")] + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The time this scheduled job was updated. An RFC3339 formatted datetime string. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeUpdated is required.")] + [JsonProperty(PropertyName = "timeUpdated")] + public System.Nullable TimeUpdated { get; set; } + /// + /// + /// The current state of the scheduled job. + /// + /// + public enum LifecycleStateEnum { + /// 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 = "CREATING")] + Creating, + [EnumMember(Value = "UPDATING")] + Updating, + [EnumMember(Value = "ACTIVE")] + Active, + [EnumMember(Value = "INACTIVE")] + Inactive, + [EnumMember(Value = "DELETING")] + Deleting, + [EnumMember(Value = "DELETED")] + Deleted, + [EnumMember(Value = "FAILED")] + Failed + }; + + /// + /// The current state of the scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleState is required.")] + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + /// + /// Required + /// + [Required(ErrorMessage = "FreeformTags is required.")] + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + /// + /// Required + /// + [Required(ErrorMessage = "DefinedTags is required.")] + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + /// + /// true, if the schedule job has its update/deletion capabilities restricted. (Used to track scheduled job for management station syncing). + /// + [JsonProperty(PropertyName = "isRestricted")] + public System.Nullable IsRestricted { get; set; } + + } +} diff --git a/Osmanagementhub/models/ScheduledJobCollection.cs b/Osmanagementhub/models/ScheduledJobCollection.cs new file mode 100644 index 0000000000..fb083f625d --- /dev/null +++ b/Osmanagementhub/models/ScheduledJobCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a scheduled job search. Contains boh ScheduledJobSummary items and other information, such as metadata. + /// + public class ScheduledJobCollection + { + + /// + /// List of scheduled jobs. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/ScheduledJobOperation.cs b/Osmanagementhub/models/ScheduledJobOperation.cs new file mode 100644 index 0000000000..a07265a62c --- /dev/null +++ b/Osmanagementhub/models/ScheduledJobOperation.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.OsmanagementhubService.Models +{ + /// + /// Defines an operation in a scheduled job. + /// + public class ScheduledJobOperation + { + + /// + /// The type of operation this scheduled job performs. + /// + /// + /// Required + /// + [Required(ErrorMessage = "OperationType is required.")] + [JsonProperty(PropertyName = "operationType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OperationType { get; set; } + + /// + /// The names of the target packages (only if operation type is INSTALL_PACKAGES/UPDATE_PACKAGES/REMOVE_PACKAGES). + /// + [JsonProperty(PropertyName = "packageNames")] + public System.Collections.Generic.List PackageNames { get; set; } + + [JsonProperty(PropertyName = "manageModuleStreamsDetails")] + public ManageModuleStreamsInScheduledJobDetails ManageModuleStreamsDetails { get; set; } + + [JsonProperty(PropertyName = "switchModuleStreamsDetails")] + public ModuleStreamDetails SwitchModuleStreamsDetails { get; set; } + + /// + /// The OCIDs for the software sources (only if operation type is ATTACH_SOFTWARE_SOURCES/DETACH_SOFTWARE_SOURCES). + /// + [JsonProperty(PropertyName = "softwareSourceIds")] + public System.Collections.Generic.List SoftwareSourceIds { get; set; } + + } +} diff --git a/Osmanagementhub/models/ScheduledJobSummary.cs b/Osmanagementhub/models/ScheduledJobSummary.cs new file mode 100644 index 0000000000..920abb4f53 --- /dev/null +++ b/Osmanagementhub/models/ScheduledJobSummary.cs @@ -0,0 +1,184 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Summary of the scheduled job. + /// + public class ScheduledJobSummary + { + + /// + /// The OCID of the scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Scheduled job name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The OCID of the compartment containing the scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The type of scheduling this scheduled job follows. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ScheduleType is required.")] + [JsonProperty(PropertyName = "scheduleType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ScheduleType { get; set; } + + /// + /// The time this scheduled job was created. An RFC3339 formatted datetime string. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeCreated is required.")] + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The time this scheduled job was updated. An RFC3339 formatted datetime string. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeUpdated is required.")] + [JsonProperty(PropertyName = "timeUpdated")] + public System.Nullable TimeUpdated { get; set; } + + /// + /// The time/date of the next scheduled execution of this scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeNextExecution is required.")] + [JsonProperty(PropertyName = "timeNextExecution")] + public System.Nullable TimeNextExecution { get; set; } + + /// + /// The time/date of the last execution of this scheduled job. + /// + [JsonProperty(PropertyName = "timeLastExecution")] + public System.Nullable TimeLastExecution { get; set; } + + /// + /// The list of managed instance OCIDs this scheduled job operates on (mutually exclusive with managedInstanceGroupIds, managedCompartmentIds and lifecycleStageIds). + /// + [JsonProperty(PropertyName = "managedInstanceIds")] + public System.Collections.Generic.List ManagedInstanceIds { get; set; } + + /// + /// The list of managed instance group OCIDs this scheduled job operates on (mutually exclusive with managedInstances, managedCompartmentIds and lifecycleStageIds). + /// + [JsonProperty(PropertyName = "managedInstanceGroupIds")] + public System.Collections.Generic.List ManagedInstanceGroupIds { get; set; } + + /// + /// The list of target compartment OCIDs if this scheduled job operates on a compartment level (mutually exclusive with managedInstances, managedInstanceGroupIds and lifecycleStageIds). + /// + [JsonProperty(PropertyName = "managedCompartmentIds")] + public System.Collections.Generic.List ManagedCompartmentIds { get; set; } + + /// + /// The list of target lifecycle stage OCIDs if this scheduled job operates on lifecycle stages (mutually exclusive with managedInstances, managedInstanceGroupIds and managedCompartmentIds). + /// + [JsonProperty(PropertyName = "lifecycleStageIds")] + public System.Collections.Generic.List LifecycleStageIds { get; set; } + + /// + /// The list of operations this scheduled job needs to perform (can only support one operation if the operationType is not UPDATE_PACKAGES/UPDATE_ALL/UPDATE_SECURITY/UPDATE_BUGFIX/UPDATE_ENHANCEMENT/UPDATE_OTHER/UPDATE_KSPLICE_USERSPACE/UPDATE_KSPLICE_KERNEL). + /// + /// + /// Required + /// + [Required(ErrorMessage = "Operations is required.")] + [JsonProperty(PropertyName = "operations")] + public System.Collections.Generic.List Operations { get; set; } + + /// + /// The current state of the scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleState is required.")] + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + /// + /// Required + /// + [Required(ErrorMessage = "FreeformTags is required.")] + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + /// + /// Required + /// + [Required(ErrorMessage = "DefinedTags is required.")] + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// true, if the schedule job has its update/deletion capabilities restricted. (Used to track scheduled job for management station syncing). + /// + [JsonProperty(PropertyName = "isRestricted")] + public System.Nullable IsRestricted { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/SearchSoftwareSourceModuleStreamsDetails.cs b/Osmanagementhub/models/SearchSoftwareSourceModuleStreamsDetails.cs new file mode 100644 index 0000000000..b85e150a32 --- /dev/null +++ b/Osmanagementhub/models/SearchSoftwareSourceModuleStreamsDetails.cs @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Contains a list of software sources to get the combined list of module streams from all of those software sources. + /// + public class SearchSoftwareSourceModuleStreamsDetails + { + + /// + /// List of software source OCIDs. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceIds is required.")] + [JsonProperty(PropertyName = "softwareSourceIds")] + public System.Collections.Generic.List SoftwareSourceIds { get; set; } + /// + /// + /// The sort order. + /// + /// + public enum SortOrderEnum { + [EnumMember(Value = "ASC")] + Asc, + [EnumMember(Value = "DESC")] + Desc + }; + + /// + /// The sort order. + /// + [JsonProperty(PropertyName = "sortOrder")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable SortOrder { get; set; } + + /// + /// The name of a module. + /// + /// + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + /// + /// + /// The field to sort by. + /// + /// + public enum SortByEnum { + [EnumMember(Value = "MODULENAME")] + Modulename + }; + + /// + /// The field to sort by. + /// + [JsonProperty(PropertyName = "sortBy")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable SortBy { get; set; } + + } +} diff --git a/Osmanagementhub/models/SearchSoftwareSourceModulesDetails.cs b/Osmanagementhub/models/SearchSoftwareSourceModulesDetails.cs new file mode 100644 index 0000000000..55cc149323 --- /dev/null +++ b/Osmanagementhub/models/SearchSoftwareSourceModulesDetails.cs @@ -0,0 +1,82 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Contains a list of software sources to get the combined list of modules from all of those software sources. + /// + public class SearchSoftwareSourceModulesDetails + { + + /// + /// List of software source OCIDs. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceIds is required.")] + [JsonProperty(PropertyName = "softwareSourceIds")] + public System.Collections.Generic.List SoftwareSourceIds { get; set; } + /// + /// + /// The sort order. + /// + /// + public enum SortOrderEnum { + [EnumMember(Value = "ASC")] + Asc, + [EnumMember(Value = "DESC")] + Desc + }; + + /// + /// The sort order. + /// + [JsonProperty(PropertyName = "sortOrder")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable SortOrder { get; set; } + + /// + /// The name of a module. + /// + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// filters results, allowing only those with a name which contains the string. + /// + [JsonProperty(PropertyName = "nameContains")] + public string NameContains { get; set; } + /// + /// + /// The field to sort by. + /// + /// + public enum SortByEnum { + [EnumMember(Value = "NAME")] + Name + }; + + /// + /// The field to sort by. + /// + [JsonProperty(PropertyName = "sortBy")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable SortBy { get; set; } + + } +} diff --git a/Osmanagementhub/models/SearchSoftwareSourcePackageGroupsDetails.cs b/Osmanagementhub/models/SearchSoftwareSourcePackageGroupsDetails.cs new file mode 100644 index 0000000000..9362fb0e36 --- /dev/null +++ b/Osmanagementhub/models/SearchSoftwareSourcePackageGroupsDetails.cs @@ -0,0 +1,82 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Contains a list of software sources to get the list of associated package groups. + /// + public class SearchSoftwareSourcePackageGroupsDetails + { + + /// + /// List of software source OCIDs. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceIds is required.")] + [JsonProperty(PropertyName = "softwareSourceIds")] + public System.Collections.Generic.List SoftwareSourceIds { get; set; } + /// + /// + /// The sort order. + /// + /// + public enum SortOrderEnum { + [EnumMember(Value = "ASC")] + Asc, + [EnumMember(Value = "DESC")] + Desc + }; + + /// + /// The sort order. + /// + [JsonProperty(PropertyName = "sortOrder")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable SortOrder { get; set; } + /// + /// + /// The field to sort by. + /// + /// + public enum SortByEnum { + [EnumMember(Value = "NAME")] + Name + }; + + /// + /// The field to sort by. + /// + [JsonProperty(PropertyName = "sortBy")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable SortBy { get; set; } + + /// + /// filters results, allowing only those with a Name which contains the string. + /// + [JsonProperty(PropertyName = "nameContains")] + public string NameContains { get; set; } + + /// + /// Indicates if this is a group, category or environment. + /// + [JsonProperty(PropertyName = "groupType")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable GroupType { get; set; } + + } +} diff --git a/Osmanagementhub/models/SoftwarePackage.cs b/Osmanagementhub/models/SoftwarePackage.cs new file mode 100644 index 0000000000..912c5ba496 --- /dev/null +++ b/Osmanagementhub/models/SoftwarePackage.cs @@ -0,0 +1,125 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details for a software package. + /// + public class SoftwarePackage + { + + /// + /// Package name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Unique identifier for the package. NOTE - This is not an OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Type of the package. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Type is required.")] + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Version of the package. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Version is required.")] + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + /// + /// The architecture for which this software was built + /// + [JsonProperty(PropertyName = "architecture")] + public string Architecture { get; set; } + + /// + /// Date of the last update to the package. + /// + [JsonProperty(PropertyName = "lastModifiedDate")] + public string LastModifiedDate { get; set; } + + /// + /// Checksum of the package. + /// + [JsonProperty(PropertyName = "checksum")] + public string Checksum { get; set; } + + /// + /// Type of the checksum. + /// + [JsonProperty(PropertyName = "checksumType")] + public string ChecksumType { get; set; } + + /// + /// Description of the package. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Size of the package in bytes. + /// + [JsonProperty(PropertyName = "sizeInBytes")] + public System.Nullable SizeInBytes { get; set; } + + /// + /// List of dependencies for the software package. + /// + [JsonProperty(PropertyName = "dependencies")] + public System.Collections.Generic.List Dependencies { get; set; } + + /// + /// List of files for the software package. + /// + [JsonProperty(PropertyName = "files")] + public System.Collections.Generic.List Files { get; set; } + + /// + /// List of software sources that provide the software package. + /// + [JsonProperty(PropertyName = "softwareSources")] + public System.Collections.Generic.List SoftwareSources { get; set; } + + /// + /// Indicates whether this package is the latest version. + /// + [JsonProperty(PropertyName = "isLatest")] + public System.Nullable IsLatest { get; set; } + + } +} diff --git a/Osmanagementhub/models/SoftwarePackageCollection.cs b/Osmanagementhub/models/SoftwarePackageCollection.cs new file mode 100644 index 0000000000..77c5abe54c --- /dev/null +++ b/Osmanagementhub/models/SoftwarePackageCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a software package search. Contains boh software package summary items and other information, such as metadata. + /// + public class SoftwarePackageCollection + { + + /// + /// List of software packages. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/SoftwarePackageDependency.cs b/Osmanagementhub/models/SoftwarePackageDependency.cs new file mode 100644 index 0000000000..04dd56b609 --- /dev/null +++ b/Osmanagementhub/models/SoftwarePackageDependency.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// A dependency for a software package. + /// + public class SoftwarePackageDependency + { + + /// + /// The software package's dependency. + /// + [JsonProperty(PropertyName = "dependency")] + public string Dependency { get; set; } + + /// + /// The type of the dependency. + /// + [JsonProperty(PropertyName = "dependencyType")] + public string DependencyType { get; set; } + + /// + /// The modifier for the dependency. + /// + [JsonProperty(PropertyName = "dependencyModifier")] + public string DependencyModifier { get; set; } + + } +} diff --git a/Osmanagementhub/models/SoftwarePackageFile.cs b/Osmanagementhub/models/SoftwarePackageFile.cs new file mode 100644 index 0000000000..a3c778dd33 --- /dev/null +++ b/Osmanagementhub/models/SoftwarePackageFile.cs @@ -0,0 +1,63 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// A file associated with a package. + /// + public class SoftwarePackageFile + { + + /// + /// File path. + /// + [JsonProperty(PropertyName = "path")] + public string Path { get; set; } + + /// + /// Type of the file. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// The date and time of the last modification to this file, as described + /// in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeModified")] + public System.Nullable TimeModified { get; set; } + + /// + /// Checksum of the file. + /// + [JsonProperty(PropertyName = "checksum")] + public string Checksum { get; set; } + + /// + /// Type of the checksum. + /// + [JsonProperty(PropertyName = "checksumType")] + public string ChecksumType { get; set; } + + /// + /// Size of the file in bytes. + /// + [JsonProperty(PropertyName = "sizeInBytes")] + public System.Nullable SizeInBytes { get; set; } + + } +} diff --git a/Osmanagementhub/models/SoftwarePackageSummary.cs b/Osmanagementhub/models/SoftwarePackageSummary.cs new file mode 100644 index 0000000000..914a072623 --- /dev/null +++ b/Osmanagementhub/models/SoftwarePackageSummary.cs @@ -0,0 +1,95 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Summary information for a software package. + /// + public class SoftwarePackageSummary + { + + /// + /// Package name. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Unique identifier for the package. NOTE - This is not an OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Type of the package. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Type is required.")] + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Version of the package. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Version is required.")] + [JsonProperty(PropertyName = "version")] + public string Version { get; set; } + + /// + /// The architecture for which this software was built. + /// + [JsonProperty(PropertyName = "architecture")] + public string Architecture { get; set; } + + /// + /// Checksum of the package. + /// + [JsonProperty(PropertyName = "checksum")] + public string Checksum { get; set; } + + /// + /// Type of the checksum. + /// + [JsonProperty(PropertyName = "checksumType")] + public string ChecksumType { get; set; } + + /// + /// Indicates whether this package is the latest version. + /// + [JsonProperty(PropertyName = "isLatest")] + public System.Nullable IsLatest { get; set; } + + /// + /// List of software sources that provide the software package. + /// + [JsonProperty(PropertyName = "softwareSources")] + public System.Collections.Generic.List SoftwareSources { get; set; } + + } +} diff --git a/Osmanagementhub/models/SoftwarePackagesDetails.cs b/Osmanagementhub/models/SoftwarePackagesDetails.cs new file mode 100644 index 0000000000..511fdf1ad8 --- /dev/null +++ b/Osmanagementhub/models/SoftwarePackagesDetails.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details about the software packages to be installed/removed/updated. + /// + public class SoftwarePackagesDetails + { + + /// + /// The list of package names. + /// + /// + /// Required + /// + [Required(ErrorMessage = "PackageNames is required.")] + [JsonProperty(PropertyName = "packageNames")] + public System.Collections.Generic.List PackageNames { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/SoftwareSource.cs b/Osmanagementhub/models/SoftwareSource.cs new file mode 100644 index 0000000000..2082daafc0 --- /dev/null +++ b/Osmanagementhub/models/SoftwareSource.cs @@ -0,0 +1,251 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// A software source contains a collection of packages. + /// + [JsonConverter(typeof(SoftwareSourceModelConverter))] + public class SoftwareSource + { + + /// + /// OCID for the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The OCID of the tenancy containing the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// User friendly name for the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The date and time the software source was created, as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeCreated is required.")] + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// Information specified by the user about the software source. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + + /// + /// Possible availabilities of a software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Availability is required.")] + [JsonProperty(PropertyName = "availability")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Availability { get; set; } + + /// + /// The Repo ID for the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "RepoId is required.")] + [JsonProperty(PropertyName = "repoId")] + public string RepoId { get; set; } + + /// + /// The OS family the software source belongs to. + /// + /// + /// Required + /// + [Required(ErrorMessage = "OsFamily is required.")] + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The architecture type supported by the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ArchType is required.")] + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ArchType { get; set; } + /// + /// + /// The current state of the software source. + /// + /// + public enum LifecycleStateEnum { + [EnumMember(Value = "CREATING")] + Creating, + [EnumMember(Value = "UPDATING")] + Updating, + [EnumMember(Value = "ACTIVE")] + Active, + [EnumMember(Value = "DELETING")] + Deleting, + [EnumMember(Value = "DELETED")] + Deleted, + [EnumMember(Value = "FAILED")] + Failed + }; + + /// + /// The current state of the software source. + /// + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// Number of packages. + /// + [JsonProperty(PropertyName = "packageCount")] + public System.Nullable PackageCount { get; set; } + + /// + /// URL for the repository. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Url is required.")] + [JsonProperty(PropertyName = "url")] + public string Url { get; set; } + + /// + /// The yum repository checksum type used by this software source. + /// + [JsonProperty(PropertyName = "checksumType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ChecksumType { get; set; } + + /// + /// URL of the GPG key for this software source. + /// + [JsonProperty(PropertyName = "gpgKeyUrl")] + public string GpgKeyUrl { get; set; } + + /// + /// ID of the GPG key for this software source. + /// + [JsonProperty(PropertyName = "gpgKeyId")] + public string GpgKeyId { get; set; } + + /// + /// Fingerprint of the GPG key for this software source. + /// + [JsonProperty(PropertyName = "gpgKeyFingerprint")] + public string GpgKeyFingerprint { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } + + public class SoftwareSourceModelConverter : JsonConverter + { + private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(SoftwareSource); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(SoftwareSource); + var discriminator = jsonObject["softwareSourceType"].Value(); + switch (discriminator) + { + case "VENDOR": + obj = new VendorSoftwareSource(); + break; + case "CUSTOM": + obj = new CustomSoftwareSource(); + break; + case "VERSIONED": + obj = new VersionedCustomSoftwareSource(); + break; + } + if (obj != null) + { + serializer.Populate(jsonObject.CreateReader(), obj); + } + else + { + logger.Warn($"The type {discriminator} is not present under SoftwareSource! Returning null value."); + } + return obj; + } + } +} diff --git a/Osmanagementhub/models/SoftwareSourceAvailability.cs b/Osmanagementhub/models/SoftwareSourceAvailability.cs new file mode 100644 index 0000000000..231d8dfc8c --- /dev/null +++ b/Osmanagementhub/models/SoftwareSourceAvailability.cs @@ -0,0 +1,46 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// An object that contains a software source OCID and its availability. + /// + public class SoftwareSourceAvailability + { + + /// + /// The OCID for a vendor software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [JsonProperty(PropertyName = "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// Possible availabilities of a software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Availability is required.")] + [JsonProperty(PropertyName = "availability")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable Availability { get; set; } + + } +} diff --git a/Osmanagementhub/models/SoftwareSourceCollection.cs b/Osmanagementhub/models/SoftwareSourceCollection.cs new file mode 100644 index 0000000000..cf79a6638d --- /dev/null +++ b/Osmanagementhub/models/SoftwareSourceCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a SoftwareSource search. Contains boh SoftwareSourceSummary items and other information, such as metadata. + /// + public class SoftwareSourceCollection + { + + /// + /// List of SoftwareSources. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/SoftwareSourceDetails.cs b/Osmanagementhub/models/SoftwareSourceDetails.cs new file mode 100644 index 0000000000..83707138d7 --- /dev/null +++ b/Osmanagementhub/models/SoftwareSourceDetails.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.OsmanagementhubService.Models +{ + /// + /// Identifying information for the specified software source. + /// + public class SoftwareSourceDetails + { + + /// + /// The OCID of the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Software source name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Software source description. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Type of the software source. + /// + [JsonProperty(PropertyName = "softwareSourceType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable SoftwareSourceType { get; set; } + + } +} diff --git a/Osmanagementhub/models/SoftwareSourceProfile.cs b/Osmanagementhub/models/SoftwareSourceProfile.cs new file mode 100644 index 0000000000..565cad134a --- /dev/null +++ b/Osmanagementhub/models/SoftwareSourceProfile.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Definition of a registration profile of type SoftwareSource. + /// + public class SoftwareSourceProfile : Profile + { + + /// + /// The list of software sources that the registration profile will use. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSources is required.")] + [JsonProperty(PropertyName = "softwareSources")] + public System.Collections.Generic.List SoftwareSources { get; set; } + + [JsonProperty(PropertyName = "profileType")] + private readonly string profileType = "SOFTWARESOURCE"; + } +} diff --git a/Osmanagementhub/models/SoftwareSourceSummary.cs b/Osmanagementhub/models/SoftwareSourceSummary.cs new file mode 100644 index 0000000000..aa3eee6cc7 --- /dev/null +++ b/Osmanagementhub/models/SoftwareSourceSummary.cs @@ -0,0 +1,219 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// A software source contains a collection of packages. + /// + [JsonConverter(typeof(SoftwareSourceSummaryModelConverter))] + public class SoftwareSourceSummary + { + + /// + /// The OCID for the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// The OCID of the tenancy containing the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// User friendly name for the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisplayName is required.")] + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// The Repo ID for the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "RepoId is required.")] + [JsonProperty(PropertyName = "repoId")] + public string RepoId { get; set; } + + /// + /// URL for the repository. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Url is required.")] + [JsonProperty(PropertyName = "url")] + public string Url { get; set; } + + /// + /// The date and time the software source was created, as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeCreated is required.")] + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The date and time of when the software source was updated as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeUpdated is required.")] + [JsonProperty(PropertyName = "timeUpdated")] + public System.Nullable TimeUpdated { get; set; } + + /// + /// Information specified by the user about the software source. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + + /// + /// Possible availabilities of a software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Availability is required.")] + [JsonProperty(PropertyName = "availability")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Availability { get; set; } + + /// + /// The OS family the software source belongs to. + /// + /// + /// Required + /// + [Required(ErrorMessage = "OsFamily is required.")] + [JsonProperty(PropertyName = "osFamily")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OsFamily { get; set; } + + /// + /// The architecture type supported by the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ArchType is required.")] + [JsonProperty(PropertyName = "archType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ArchType { get; set; } + + /// + /// Number of packages. + /// + [JsonProperty(PropertyName = "packageCount")] + public System.Nullable PackageCount { get; set; } + + /// + /// The current state of the software source. + /// + [JsonProperty(PropertyName = "lifecycleState")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable LifecycleState { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + /// + /// System tags for this resource. Each key is predefined and scoped to a namespace. + /// Example: {"orcl-cloud": {"free-tier-retained": "true"}} + /// + [JsonProperty(PropertyName = "systemTags")] + public System.Collections.Generic.Dictionary> SystemTags { get; set; } + + } + + public class SoftwareSourceSummaryModelConverter : JsonConverter + { + private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(SoftwareSourceSummary); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(SoftwareSourceSummary); + var discriminator = jsonObject["softwareSourceType"].Value(); + switch (discriminator) + { + case "VENDOR": + obj = new VendorSoftwareSourceSummary(); + break; + case "VERSIONED": + obj = new VersionedCustomSoftwareSourceSummary(); + break; + case "CUSTOM": + obj = new CustomSoftwareSourceSummary(); + break; + } + if (obj != null) + { + serializer.Populate(jsonObject.CreateReader(), obj); + } + else + { + logger.Warn($"The type {discriminator} is not present under SoftwareSourceSummary! Returning null value."); + } + return obj; + } + } +} diff --git a/Osmanagementhub/models/SoftwareSourceType.cs b/Osmanagementhub/models/SoftwareSourceType.cs new file mode 100644 index 0000000000..a0c2baf8bd --- /dev/null +++ b/Osmanagementhub/models/SoftwareSourceType.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible software source types. + /// + public enum SoftwareSourceType { + /// 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 = "VENDOR")] + Vendor, + [EnumMember(Value = "CUSTOM")] + Custom, + [EnumMember(Value = "VERSIONED")] + Versioned + } +} diff --git a/Osmanagementhub/models/SoftwareSourceVendorCollection.cs b/Osmanagementhub/models/SoftwareSourceVendorCollection.cs new file mode 100644 index 0000000000..4fc59ebdd8 --- /dev/null +++ b/Osmanagementhub/models/SoftwareSourceVendorCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a SoftwareSourceVendor search. Contains boh SoftwareSourceVendorSummary items and other information, such as metadata. + /// + public class SoftwareSourceVendorCollection + { + + /// + /// List of SoftwareSourceVendor. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/SoftwareSourceVendorSummary.cs b/Osmanagementhub/models/SoftwareSourceVendorSummary.cs new file mode 100644 index 0000000000..46fa0bebb3 --- /dev/null +++ b/Osmanagementhub/models/SoftwareSourceVendorSummary.cs @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Software vendor name, list of osFamily and archType. + /// + public class SoftwareSourceVendorSummary + { + + /// + /// Name of the vendor providing the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [JsonProperty(PropertyName = "name")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Name { get; set; } + + /// + /// List of corresponding osFamilies. + /// + /// + /// Required + /// + [Required(ErrorMessage = "OsFamilies is required.")] + [JsonProperty(PropertyName = "osFamilies", ItemConverterType = typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Collections.Generic.List OsFamilies { get; set; } + + /// + /// List of corresponding archTypes. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ArchTypes is required.")] + [JsonProperty(PropertyName = "archTypes", ItemConverterType = typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Collections.Generic.List ArchTypes { get; set; } + + } +} diff --git a/Osmanagementhub/models/SoftwareSourcesDetails.cs b/Osmanagementhub/models/SoftwareSourcesDetails.cs new file mode 100644 index 0000000000..ac222a4991 --- /dev/null +++ b/Osmanagementhub/models/SoftwareSourcesDetails.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details about the software sources to be attached/detached. + /// + public class SoftwareSourcesDetails + { + + /// + /// The list of software source OCIDs to be attached/detached. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSources is required.")] + [JsonProperty(PropertyName = "softwareSources")] + public System.Collections.Generic.List SoftwareSources { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/SortOrder.cs b/Osmanagementhub/models/SortOrder.cs new file mode 100644 index 0000000000..575bd32b20 --- /dev/null +++ b/Osmanagementhub/models/SortOrder.cs @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Sort orders. + /// + public enum SortOrder { + [EnumMember(Value = "ASC")] + Asc, + [EnumMember(Value = "DESC")] + Desc + } +} diff --git a/Osmanagementhub/models/StationProfile.cs b/Osmanagementhub/models/StationProfile.cs new file mode 100644 index 0000000000..e44534896f --- /dev/null +++ b/Osmanagementhub/models/StationProfile.cs @@ -0,0 +1,27 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Definition of a registration profile of type STATION. + /// + public class StationProfile : Profile + { + + [JsonProperty(PropertyName = "profileType")] + private readonly string profileType = "STATION"; + } +} diff --git a/Osmanagementhub/models/SwitchModuleStreamOnManagedInstanceDetails.cs b/Osmanagementhub/models/SwitchModuleStreamOnManagedInstanceDetails.cs new file mode 100644 index 0000000000..9814f55725 --- /dev/null +++ b/Osmanagementhub/models/SwitchModuleStreamOnManagedInstanceDetails.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The details of the module stream to be version switched on a managed instance. + /// + public class SwitchModuleStreamOnManagedInstanceDetails + { + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + /// + /// The name of a module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [JsonProperty(PropertyName = "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of a stream of the specified module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "StreamName is required.")] + [JsonProperty(PropertyName = "streamName")] + public string StreamName { get; set; } + + } +} diff --git a/Osmanagementhub/models/SynchronizeMirrorsDetails.cs b/Osmanagementhub/models/SynchronizeMirrorsDetails.cs new file mode 100644 index 0000000000..23648b6d42 --- /dev/null +++ b/Osmanagementhub/models/SynchronizeMirrorsDetails.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Details for syncing selected mirrors + /// + public class SynchronizeMirrorsDetails + { + + /// + /// List of Software Source OCIDs to synchronize + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceList is required.")] + [JsonProperty(PropertyName = "softwareSourceList")] + public System.Collections.Generic.List SoftwareSourceList { get; set; } + + } +} diff --git a/Osmanagementhub/models/TargetResourceEntityType.cs b/Osmanagementhub/models/TargetResourceEntityType.cs new file mode 100644 index 0000000000..4e6d8f4670 --- /dev/null +++ b/Osmanagementhub/models/TargetResourceEntityType.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The type of resources that a work request can act on. + /// + public enum TargetResourceEntityType { + /// 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 = "INSTANCE")] + Instance, + [EnumMember(Value = "GROUP")] + Group, + [EnumMember(Value = "COMPARTMENT")] + Compartment, + [EnumMember(Value = "LIFECYCLE_ENVIRONMENT")] + LifecycleEnvironment, + [EnumMember(Value = "SOFTWARE_SOURCE")] + SoftwareSource + } +} diff --git a/Osmanagementhub/models/UpdatablePackageCollection.cs b/Osmanagementhub/models/UpdatablePackageCollection.cs new file mode 100644 index 0000000000..f721ae1ed5 --- /dev/null +++ b/Osmanagementhub/models/UpdatablePackageCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of an updatable package search on a managed instance. + /// + public class UpdatablePackageCollection + { + + /// + /// List of updatable packages. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdatablePackageSummary.cs b/Osmanagementhub/models/UpdatablePackageSummary.cs new file mode 100644 index 0000000000..68252e06ce --- /dev/null +++ b/Osmanagementhub/models/UpdatablePackageSummary.cs @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// A software package available for install on a managed instance. + /// + public class UpdatablePackageSummary : PackageSummary + { + + /// + /// The version of this upgradable package already installed on the instance. + /// + [JsonProperty(PropertyName = "installedVersion")] + public string InstalledVersion { get; set; } + + /// + /// The classification of this update. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateType is required.")] + [JsonProperty(PropertyName = "updateType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable UpdateType { get; set; } + + /// + /// List of errata containing this update. + /// + [JsonProperty(PropertyName = "errata")] + public System.Collections.Generic.List Errata { get; set; } + + /// + /// List of CVEs applicable to this erratum. + /// + [JsonProperty(PropertyName = "relatedCves")] + public System.Collections.Generic.List RelatedCves { get; set; } + + [JsonProperty(PropertyName = "packageClassification")] + private readonly string packageClassification = "UPDATABLE"; + } +} diff --git a/Osmanagementhub/models/UpdateAllPackagesOnManagedInstanceGroupDetails.cs b/Osmanagementhub/models/UpdateAllPackagesOnManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..d24c49d5c9 --- /dev/null +++ b/Osmanagementhub/models/UpdateAllPackagesOnManagedInstanceGroupDetails.cs @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The work request details for the update operation on the managed instance group. + /// + public class UpdateAllPackagesOnManagedInstanceGroupDetails + { + + /// + /// The type of updates to be applied. + /// + [JsonProperty(PropertyName = "updateTypes", ItemConverterType = typeof(StringEnumConverter))] + public System.Collections.Generic.List UpdateTypes { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdateAllPackagesOnManagedInstancesInCompartmentDetails.cs b/Osmanagementhub/models/UpdateAllPackagesOnManagedInstancesInCompartmentDetails.cs new file mode 100644 index 0000000000..e3c27c4e36 --- /dev/null +++ b/Osmanagementhub/models/UpdateAllPackagesOnManagedInstancesInCompartmentDetails.cs @@ -0,0 +1,44 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The details about the package types to be updated. + /// + public class UpdateAllPackagesOnManagedInstancesInCompartmentDetails + { + + /// + /// The compartment being targeted by this operation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The type of updates to be applied. + /// + [JsonProperty(PropertyName = "updateTypes", ItemConverterType = typeof(StringEnumConverter))] + public System.Collections.Generic.List UpdateTypes { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdateCustomSoftwareSourceDetails.cs b/Osmanagementhub/models/UpdateCustomSoftwareSourceDetails.cs new file mode 100644 index 0000000000..7c18303052 --- /dev/null +++ b/Osmanagementhub/models/UpdateCustomSoftwareSourceDetails.cs @@ -0,0 +1,42 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Information for updating a custom or software source. + /// + public class UpdateCustomSoftwareSourceDetails : UpdateSoftwareSourceDetails + { + + /// + /// List of vendor software sources. + /// + [JsonProperty(PropertyName = "vendorSoftwareSources")] + public System.Collections.Generic.List VendorSoftwareSources { get; set; } + + [JsonProperty(PropertyName = "customSoftwareSourceFilter")] + public CustomSoftwareSourceFilter CustomSoftwareSourceFilter { get; set; } + + /// + /// Indicates whether service should automatically update the custom software source for the user. + /// + [JsonProperty(PropertyName = "isAutomaticallyUpdated")] + public System.Nullable IsAutomaticallyUpdated { get; set; } + + [JsonProperty(PropertyName = "softwareSourceType")] + private readonly string softwareSourceType = "CUSTOM"; + } +} diff --git a/Osmanagementhub/models/UpdateLifecycleEnvironmentDetails.cs b/Osmanagementhub/models/UpdateLifecycleEnvironmentDetails.cs new file mode 100644 index 0000000000..3bde69adff --- /dev/null +++ b/Osmanagementhub/models/UpdateLifecycleEnvironmentDetails.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The information to be updated. + /// + public class UpdateLifecycleEnvironmentDetails + { + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// User specified information about the lifecycle environment. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The list of lifecycle stages to be updated. + /// + [JsonProperty(PropertyName = "stages")] + public System.Collections.Generic.List Stages { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdateLifecycleStageDetails.cs b/Osmanagementhub/models/UpdateLifecycleStageDetails.cs new file mode 100644 index 0000000000..146074f871 --- /dev/null +++ b/Osmanagementhub/models/UpdateLifecycleStageDetails.cs @@ -0,0 +1,57 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The information to be updated. + /// + public class UpdateLifecycleStageDetails + { + + /// + /// The lifecycle stage OCID that is immutable on creation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdateManagedInstanceDetails.cs b/Osmanagementhub/models/UpdateManagedInstanceDetails.cs new file mode 100644 index 0000000000..7bf3b68893 --- /dev/null +++ b/Osmanagementhub/models/UpdateManagedInstanceDetails.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The information to be updated. + /// + public class UpdateManagedInstanceDetails + { + + /// + /// The OCID of a management station to be used as the preferred primary. + /// + [JsonProperty(PropertyName = "primaryManagementStationId")] + public string PrimaryManagementStationId { get; set; } + + /// + /// The OCID of a management station to be used as the preferred secondary. + /// + [JsonProperty(PropertyName = "secondaryManagementStationId")] + public string SecondaryManagementStationId { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdateManagedInstanceGroupDetails.cs b/Osmanagementhub/models/UpdateManagedInstanceGroupDetails.cs new file mode 100644 index 0000000000..5221cff4b8 --- /dev/null +++ b/Osmanagementhub/models/UpdateManagedInstanceGroupDetails.cs @@ -0,0 +1,53 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The information to be updated. + /// + public class UpdateManagedInstanceGroupDetails + { + + /// + /// A user-friendly name for the managed instance group job. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// User specified information about the managed instance group. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdateManagementStationDetails.cs b/Osmanagementhub/models/UpdateManagementStationDetails.cs new file mode 100644 index 0000000000..ff24b71505 --- /dev/null +++ b/Osmanagementhub/models/UpdateManagementStationDetails.cs @@ -0,0 +1,65 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Information for updating an ManagementStation + /// + public class UpdateManagementStationDetails + { + + /// + /// ManagementStation name + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Details describing the ManagementStation config. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Name of the host + /// + [JsonProperty(PropertyName = "hostname")] + public string Hostname { get; set; } + + [JsonProperty(PropertyName = "proxy")] + public UpdateProxyConfigurationDetails Proxy { get; set; } + + [JsonProperty(PropertyName = "mirror")] + public UpdateMirrorConfigurationDetails Mirror { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdateMirrorConfigurationDetails.cs b/Osmanagementhub/models/UpdateMirrorConfigurationDetails.cs new file mode 100644 index 0000000000..53620c2777 --- /dev/null +++ b/Osmanagementhub/models/UpdateMirrorConfigurationDetails.cs @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Information for updating a mirror configuration + /// + public class UpdateMirrorConfigurationDetails + { + + /// + /// Directory for the mirroring + /// + /// + /// Required + /// + [Required(ErrorMessage = "Directory is required.")] + [JsonProperty(PropertyName = "directory")] + public string Directory { get; set; } + + /// + /// Default port for the mirror + /// + /// + /// Required + /// + [Required(ErrorMessage = "Port is required.")] + [JsonProperty(PropertyName = "port")] + public string Port { get; set; } + + /// + /// Default sslport for the mirror + /// + /// + /// Required + /// + [Required(ErrorMessage = "Sslport is required.")] + [JsonProperty(PropertyName = "sslport")] + public string Sslport { get; set; } + + /// + /// Local path for the sslcert + /// + [JsonProperty(PropertyName = "sslcert")] + public string Sslcert { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdatePackagesOnManagedInstanceDetails.cs b/Osmanagementhub/models/UpdatePackagesOnManagedInstanceDetails.cs new file mode 100644 index 0000000000..648d8406f4 --- /dev/null +++ b/Osmanagementhub/models/UpdatePackagesOnManagedInstanceDetails.cs @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The details about the software packages to be updated. + /// + public class UpdatePackagesOnManagedInstanceDetails + { + + /// + /// The list of package names. + /// + [JsonProperty(PropertyName = "packageNames")] + public System.Collections.Generic.List PackageNames { get; set; } + + /// + /// The type of updates to be applied. + /// + [JsonProperty(PropertyName = "updateTypes", ItemConverterType = typeof(StringEnumConverter))] + public System.Collections.Generic.List UpdateTypes { get; set; } + + [JsonProperty(PropertyName = "workRequestDetails")] + public WorkRequestDetails WorkRequestDetails { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdateProfileDetails.cs b/Osmanagementhub/models/UpdateProfileDetails.cs new file mode 100644 index 0000000000..cdaaf2a681 --- /dev/null +++ b/Osmanagementhub/models/UpdateProfileDetails.cs @@ -0,0 +1,53 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Information for updating a registration profile + /// + public class UpdateProfileDetails + { + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Details describing the scheduled job. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdateProxyConfigurationDetails.cs b/Osmanagementhub/models/UpdateProxyConfigurationDetails.cs new file mode 100644 index 0000000000..1042f28330 --- /dev/null +++ b/Osmanagementhub/models/UpdateProxyConfigurationDetails.cs @@ -0,0 +1,53 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Information for updating a proxy configuration + /// + public class UpdateProxyConfigurationDetails + { + + /// + /// To enable or disable the proxy (default true) + /// + /// + /// Required + /// + [Required(ErrorMessage = "IsEnabled is required.")] + [JsonProperty(PropertyName = "isEnabled")] + public System.Nullable IsEnabled { get; set; } + + /// + /// List of hosts + /// + [JsonProperty(PropertyName = "hosts")] + public System.Collections.Generic.List Hosts { get; set; } + + /// + /// Port that the proxy will use + /// + [JsonProperty(PropertyName = "port")] + public string Port { get; set; } + + /// + /// URL that the proxy will forward to + /// + [JsonProperty(PropertyName = "forward")] + public string Forward { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdateScheduledJobDetails.cs b/Osmanagementhub/models/UpdateScheduledJobDetails.cs new file mode 100644 index 0000000000..1681a19665 --- /dev/null +++ b/Osmanagementhub/models/UpdateScheduledJobDetails.cs @@ -0,0 +1,78 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Information for updating a scheduled job. + /// + public class UpdateScheduledJobDetails + { + + /// + /// Scheduled job name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Details describing the scheduled job. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// The type of scheduling this scheduled job follows. + /// + [JsonProperty(PropertyName = "scheduleType")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable ScheduleType { get; set; } + + /// + /// The desired time for the next execution of this scheduled job. + /// + [JsonProperty(PropertyName = "timeNextExecution")] + public System.Nullable TimeNextExecution { get; set; } + + /// + /// The recurring rule for a recurring scheduled job. + /// + [JsonProperty(PropertyName = "recurringRule")] + public string RecurringRule { get; set; } + + /// + /// The list of operations this scheduled job needs to perform (can only support one operation if the operationType is not UPDATE_PACKAGES/UPDATE_ALL/UPDATE_SECURITY/UPDATE_BUGFIX/UPDATE_ENHANCEMENT/UPDATE_OTHER/UPDATE_KSPLICE_USERSPACE/UPDATE_KSPLICE_KERNEL). + /// + [JsonProperty(PropertyName = "operations")] + public System.Collections.Generic.List Operations { get; set; } + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } +} diff --git a/Osmanagementhub/models/UpdateSoftwareSourceDetails.cs b/Osmanagementhub/models/UpdateSoftwareSourceDetails.cs new file mode 100644 index 0000000000..3332d87313 --- /dev/null +++ b/Osmanagementhub/models/UpdateSoftwareSourceDetails.cs @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Information for updating a software source. + /// + [JsonConverter(typeof(UpdateSoftwareSourceDetailsModelConverter))] + public class UpdateSoftwareSourceDetails + { + + /// + /// The OCID of the tenancy containing the software source. + /// + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// User friendly name for the software source. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// Information specified by the user about the software source. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + + /// + /// Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Department": "Finance"} + /// + [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. + /// For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + /// Example: {"Operations": {"CostCenter": "42"}} + /// + [JsonProperty(PropertyName = "definedTags")] + public System.Collections.Generic.Dictionary> DefinedTags { get; set; } + + } + + public class UpdateSoftwareSourceDetailsModelConverter : JsonConverter + { + public override bool CanWrite => false; + public override bool CanRead => true; + public override bool CanConvert(System.Type type) + { + return type == typeof(UpdateSoftwareSourceDetails); + } + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.InvalidOperationException("Use default serialization."); + } + + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + var jsonObject = JObject.Load(reader); + var obj = default(UpdateSoftwareSourceDetails); + var discriminator = jsonObject["softwareSourceType"].Value(); + switch (discriminator) + { + case "CUSTOM": + obj = new UpdateCustomSoftwareSourceDetails(); + break; + case "VENDOR": + obj = new UpdateVendorSoftwareSourceDetails(); + break; + } + serializer.Populate(jsonObject.CreateReader(), obj); + return obj; + } + } +} diff --git a/Osmanagementhub/models/UpdateTypes.cs b/Osmanagementhub/models/UpdateTypes.cs new file mode 100644 index 0000000000..9a69d3202e --- /dev/null +++ b/Osmanagementhub/models/UpdateTypes.cs @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible update classification types. + /// + public enum UpdateTypes { + [EnumMember(Value = "SECURITY")] + Security, + [EnumMember(Value = "BUGFIX")] + Bugfix, + [EnumMember(Value = "ENHANCEMENT")] + Enhancement, + [EnumMember(Value = "OTHER")] + Other, + [EnumMember(Value = "KSPLICE_KERNEL")] + KspliceKernel, + [EnumMember(Value = "KSPLICE_USERSPACE")] + KspliceUserspace, + [EnumMember(Value = "ALL")] + All + } +} diff --git a/Osmanagementhub/models/UpdateVendorSoftwareSourceDetails.cs b/Osmanagementhub/models/UpdateVendorSoftwareSourceDetails.cs new file mode 100644 index 0000000000..3c20a89d4d --- /dev/null +++ b/Osmanagementhub/models/UpdateVendorSoftwareSourceDetails.cs @@ -0,0 +1,27 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Information for updating a vendor source. Tags only. + /// + public class UpdateVendorSoftwareSourceDetails : UpdateSoftwareSourceDetails + { + + [JsonProperty(PropertyName = "softwareSourceType")] + private readonly string softwareSourceType = "VENDOR"; + } +} diff --git a/Osmanagementhub/models/UpdateWorkRequestDetails.cs b/Osmanagementhub/models/UpdateWorkRequestDetails.cs new file mode 100644 index 0000000000..fa9308419b --- /dev/null +++ b/Osmanagementhub/models/UpdateWorkRequestDetails.cs @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Detail information for updating a work request. + /// + public class UpdateWorkRequestDetails + { + + /// + /// status of current work request. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Status is required.")] + [JsonProperty(PropertyName = "status")] + [JsonConverter(typeof(StringEnumConverter))] + public System.Nullable Status { get; set; } + + /// + /// The percentage complete of the operation tracked by this work request. + /// + [JsonProperty(PropertyName = "percentComplete")] + public System.Nullable PercentComplete { get; set; } + + /// + /// The date and time the object was finished, as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + /// + /// + [JsonProperty(PropertyName = "timeFinished")] + public System.Nullable TimeFinished { get; set; } + + /// + /// A short description about the work request. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// A short display for about the work request. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + } +} diff --git a/Osmanagementhub/models/VendorName.cs b/Osmanagementhub/models/VendorName.cs new file mode 100644 index 0000000000..51aebdb62c --- /dev/null +++ b/Osmanagementhub/models/VendorName.cs @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible vendor names. + /// + public enum VendorName { + /// 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 = "ORACLE")] + Oracle + } +} diff --git a/Osmanagementhub/models/VendorSoftwareSource.cs b/Osmanagementhub/models/VendorSoftwareSource.cs new file mode 100644 index 0000000000..a507de4b29 --- /dev/null +++ b/Osmanagementhub/models/VendorSoftwareSource.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// A vendor software source contains a collection of packages. + /// + public class VendorSoftwareSource : SoftwareSource + { + + /// + /// Name of the vendor providing the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorName is required.")] + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable VendorName { get; set; } + + [JsonProperty(PropertyName = "softwareSourceType")] + private readonly string softwareSourceType = "VENDOR"; + } +} diff --git a/Osmanagementhub/models/VendorSoftwareSourceSummary.cs b/Osmanagementhub/models/VendorSoftwareSourceSummary.cs new file mode 100644 index 0000000000..7c469e4e5b --- /dev/null +++ b/Osmanagementhub/models/VendorSoftwareSourceSummary.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// A vendor software source summary summarizes a vendor software source. + /// + public class VendorSoftwareSourceSummary : SoftwareSourceSummary + { + + /// + /// Name of the vendor providing the software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorName is required.")] + [JsonProperty(PropertyName = "vendorName")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable VendorName { get; set; } + + [JsonProperty(PropertyName = "softwareSourceType")] + private readonly string softwareSourceType = "VENDOR"; + } +} diff --git a/Osmanagementhub/models/VersionedCustomSoftwareSource.cs b/Osmanagementhub/models/VersionedCustomSoftwareSource.cs new file mode 100644 index 0000000000..cc6404bc2c --- /dev/null +++ b/Osmanagementhub/models/VersionedCustomSoftwareSource.cs @@ -0,0 +1,50 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// An immutable custom software source that is assigned a version and contains a custom collection of packages. + /// + public class VersionedCustomSoftwareSource : SoftwareSource + { + + /// + /// List of vendor software sources. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorSoftwareSources is required.")] + [JsonProperty(PropertyName = "vendorSoftwareSources")] + public System.Collections.Generic.List VendorSoftwareSources { get; set; } + + [JsonProperty(PropertyName = "customSoftwareSourceFilter")] + public CustomSoftwareSourceFilter CustomSoftwareSourceFilter { get; set; } + + /// + /// The version to assign to this custom software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceVersion is required.")] + [JsonProperty(PropertyName = "softwareSourceVersion")] + public string SoftwareSourceVersion { get; set; } + + [JsonProperty(PropertyName = "softwareSourceType")] + private readonly string softwareSourceType = "VERSIONED"; + } +} diff --git a/Osmanagementhub/models/VersionedCustomSoftwareSourceSummary.cs b/Osmanagementhub/models/VersionedCustomSoftwareSourceSummary.cs new file mode 100644 index 0000000000..dfda799b82 --- /dev/null +++ b/Osmanagementhub/models/VersionedCustomSoftwareSourceSummary.cs @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// An immutable custom software source that is assigned a version and contains a custom collection of packages. + /// + public class VersionedCustomSoftwareSourceSummary : SoftwareSourceSummary + { + + /// + /// List of vendor software sources. + /// + /// + /// Required + /// + [Required(ErrorMessage = "VendorSoftwareSources is required.")] + [JsonProperty(PropertyName = "vendorSoftwareSources")] + public System.Collections.Generic.List VendorSoftwareSources { get; set; } + + /// + /// The version to assign to this custom software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceVersion is required.")] + [JsonProperty(PropertyName = "softwareSourceVersion")] + public string SoftwareSourceVersion { get; set; } + + [JsonProperty(PropertyName = "softwareSourceType")] + private readonly string softwareSourceType = "VERSIONED"; + } +} diff --git a/Osmanagementhub/models/WorkRequest.cs b/Osmanagementhub/models/WorkRequest.cs new file mode 100644 index 0000000000..87a8b973a8 --- /dev/null +++ b/Osmanagementhub/models/WorkRequest.cs @@ -0,0 +1,179 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// Describes a work request. + /// + public class WorkRequest + { + + /// + /// Type of the work request. + /// + /// + /// Required + /// + [Required(ErrorMessage = "OperationType is required.")] + [JsonProperty(PropertyName = "operationType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OperationType { get; set; } + + /// + /// Status of the work request. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Status is required.")] + [JsonProperty(PropertyName = "status")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Status { get; set; } + + /// + /// The OCID of the work request. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// A short description about the work request. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// A short display name for the work request. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// A progress or error message, if there is any. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// The OCID of the parent work request, if there is any. + /// + [JsonProperty(PropertyName = "parentId")] + public string ParentId { get; set; } + + /// + /// The list of OCIDs for the child work requests. + /// + [JsonProperty(PropertyName = "childrenId")] + public System.Collections.Generic.List ChildrenId { get; set; } + + /// + /// The OCID of the compartment that contains the work request. Work requests should be scoped to + /// the same compartment as the resource it affects. If the work request affects multiple resources, + /// and those resources are not in the same compartment, it is up to the service team to pick the primary + /// resource whose compartment should be used. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The list of OCIDs for the resources affected by the work request. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Resources is required.")] + [JsonProperty(PropertyName = "resources")] + public System.Collections.Generic.List Resources { get; set; } + + /// + /// A list of package names to be installed/updated/removed. + /// + [JsonProperty(PropertyName = "packageNames")] + public System.Collections.Generic.List PackageNames { get; set; } + + /// + /// The list of appstream modules being operated on. + /// + [JsonProperty(PropertyName = "moduleSpecs")] + public System.Collections.Generic.List ModuleSpecs { get; set; } + + /// + /// The percentage complete of the operation tracked by this work request. + /// + /// + /// Required + /// + [Required(ErrorMessage = "PercentComplete is required.")] + [JsonProperty(PropertyName = "percentComplete")] + public System.Nullable PercentComplete { get; set; } + + /// + /// The date and time the work request was created - as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeCreated is required.")] + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + /// + /// The date and time the work request was created - as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeUpdated")] + public System.Nullable TimeUpdated { get; set; } + + /// + /// The date and time the work request was started - as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), + /// section 14.29. + /// + /// + [JsonProperty(PropertyName = "timeStarted")] + public System.Nullable TimeStarted { get; set; } + + /// + /// The date and time the work request was finished - as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339). + /// + /// + [JsonProperty(PropertyName = "timeFinished")] + public System.Nullable TimeFinished { get; set; } + + /// + /// The OCID of the resource that initiated the work request. + /// + [JsonProperty(PropertyName = "initiatorId")] + public string InitiatorId { get; set; } + + [JsonProperty(PropertyName = "managementStation")] + public WorkRequestManagementStationDetails ManagementStation { get; set; } + + } +} diff --git a/Osmanagementhub/models/WorkRequestDetails.cs b/Osmanagementhub/models/WorkRequestDetails.cs new file mode 100644 index 0000000000..e19d8fa09d --- /dev/null +++ b/Osmanagementhub/models/WorkRequestDetails.cs @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// The details of the user-friendly names to be used for actions. + /// + public class WorkRequestDetails + { + + /// + /// A user-friendly name for the resulting job. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// User specified information about the resulting job. Does not have to be unique, and it's changeable. Avoid entering confidential information. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + } +} diff --git a/Osmanagementhub/models/WorkRequestError.cs b/Osmanagementhub/models/WorkRequestError.cs new file mode 100644 index 0000000000..e5c3e905c3 --- /dev/null +++ b/Osmanagementhub/models/WorkRequestError.cs @@ -0,0 +1,57 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// An error encountered while executing a work request. + /// + public class WorkRequestError + { + + /// + /// A machine-usable code for the error that occured. Error codes are listed on + /// (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm). + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "Code is required.")] + [JsonProperty(PropertyName = "code")] + public string Code { get; set; } + + /// + /// A human readable description of the issue encountered. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Message is required.")] + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// The time the error occured. An RFC3339 formatted datetime string. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Timestamp is required.")] + [JsonProperty(PropertyName = "timestamp")] + public System.Nullable Timestamp { get; set; } + + } +} diff --git a/Osmanagementhub/models/WorkRequestErrorCollection.cs b/Osmanagementhub/models/WorkRequestErrorCollection.cs new file mode 100644 index 0000000000..664f5a9c09 --- /dev/null +++ b/Osmanagementhub/models/WorkRequestErrorCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a work request error search. Contains both work request error items and other information, such as metadata. + /// + public class WorkRequestErrorCollection + { + + /// + /// List of work request error objects. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/WorkRequestLogEntry.cs b/Osmanagementhub/models/WorkRequestLogEntry.cs new file mode 100644 index 0000000000..428455d9d6 --- /dev/null +++ b/Osmanagementhub/models/WorkRequestLogEntry.cs @@ -0,0 +1,45 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// A log message from the execution of a work request. + /// + public class WorkRequestLogEntry + { + + /// + /// A human readable log message. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Message is required.")] + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// The time the log message was written. An RFC3339 formatted datetime string. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Timestamp is required.")] + [JsonProperty(PropertyName = "timestamp")] + public System.Nullable Timestamp { get; set; } + + } +} diff --git a/Osmanagementhub/models/WorkRequestLogEntryCollection.cs b/Osmanagementhub/models/WorkRequestLogEntryCollection.cs new file mode 100644 index 0000000000..b181a08b17 --- /dev/null +++ b/Osmanagementhub/models/WorkRequestLogEntryCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a work request log search. Contains both work request log items and other information, such as metadata. + /// + public class WorkRequestLogEntryCollection + { + + /// + /// List of work request log entries. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/models/WorkRequestManagementStationDetails.cs b/Osmanagementhub/models/WorkRequestManagementStationDetails.cs new file mode 100644 index 0000000000..e620b3f26a --- /dev/null +++ b/Osmanagementhub/models/WorkRequestManagementStationDetails.cs @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Details about management station actions. + /// + public class WorkRequestManagementStationDetails + { + + /// + /// Target version to update the management station software. + /// + [JsonProperty(PropertyName = "managementStationVersion")] + public string ManagementStationVersion { get; set; } + + /// + /// Target config needed for set management station config. + /// + [JsonProperty(PropertyName = "config")] + public System.Byte[] Config { get; set; } + + /// + /// Optional list for mirrors to sync. + /// + [JsonProperty(PropertyName = "softwareSourceIds")] + public System.Collections.Generic.List SoftwareSourceIds { get; set; } + + } +} diff --git a/Osmanagementhub/models/WorkRequestOperationType.cs b/Osmanagementhub/models/WorkRequestOperationType.cs new file mode 100644 index 0000000000..63a831ce75 --- /dev/null +++ b/Osmanagementhub/models/WorkRequestOperationType.cs @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible operation types. + /// + public enum WorkRequestOperationType { + /// 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 = "INSTALL_PACKAGES")] + InstallPackages, + [EnumMember(Value = "REMOVE_PACKAGES")] + RemovePackages, + [EnumMember(Value = "UPDATE_PACKAGES")] + UpdatePackages, + [EnumMember(Value = "UPDATE_ALL_PACKAGES")] + UpdateAllPackages, + [EnumMember(Value = "UPDATE_SECURITY")] + UpdateSecurity, + [EnumMember(Value = "UPDATE_BUGFIX")] + UpdateBugfix, + [EnumMember(Value = "UPDATE_ENHANCEMENT")] + UpdateEnhancement, + [EnumMember(Value = "UPDATE_OTHER")] + UpdateOther, + [EnumMember(Value = "UPDATE_KSPLICE_KERNEL")] + UpdateKspliceKernel, + [EnumMember(Value = "UPDATE_KSPLICE_USERSPACE")] + UpdateKspliceUserspace, + [EnumMember(Value = "ENABLE_MODULE_STREAMS")] + EnableModuleStreams, + [EnumMember(Value = "DISABLE_MODULE_STREAMS")] + DisableModuleStreams, + [EnumMember(Value = "SWITCH_MODULE_STREAM")] + SwitchModuleStream, + [EnumMember(Value = "INSTALL_MODULE_PROFILES")] + InstallModuleProfiles, + [EnumMember(Value = "REMOVE_MODULE_PROFILES")] + RemoveModuleProfiles, + [EnumMember(Value = "SET_SOFTWARE_SOURCES")] + SetSoftwareSources, + [EnumMember(Value = "LIST_PACKAGES")] + ListPackages, + [EnumMember(Value = "SET_MANAGEMENT_STATION_CONFIG")] + SetManagementStationConfig, + [EnumMember(Value = "SYNC_MANAGEMENT_STATION_MIRROR")] + SyncManagementStationMirror, + [EnumMember(Value = "UPDATE_MANAGEMENT_STATION_SOFTWARE")] + UpdateManagementStationSoftware, + [EnumMember(Value = "UPDATE")] + Update, + [EnumMember(Value = "MODULE_ACTIONS")] + ModuleActions, + [EnumMember(Value = "LIFECYCLE_PROMOTION")] + LifecyclePromotion, + [EnumMember(Value = "CREATE_SOFTWARE_SOURCE")] + CreateSoftwareSource, + [EnumMember(Value = "UPDATE_SOFTWARE_SOURCE")] + UpdateSoftwareSource + } +} diff --git a/Osmanagementhub/models/WorkRequestResource.cs b/Osmanagementhub/models/WorkRequestResource.cs new file mode 100644 index 0000000000..96806db30d --- /dev/null +++ b/Osmanagementhub/models/WorkRequestResource.cs @@ -0,0 +1,80 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// A resource created or operated on by a work request. + /// + public class WorkRequestResource + { + + /// + /// The resource type that the work request affects. + /// + /// + /// Required + /// + [Required(ErrorMessage = "EntityType is required.")] + [JsonProperty(PropertyName = "entityType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable EntityType { get; set; } + + /// + /// The way in which this resource is affected by the work tracked in the work request. + /// A resource being created, updated, or deleted will remain in the IN_PROGRESS state until + /// work is complete for that resource at which point it will transition to CREATED, UPDATED, + /// or DELETED, respectively. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "ActionType is required.")] + [JsonProperty(PropertyName = "actionType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable ActionType { get; set; } + + /// + /// The identifier of the resource the work request affects. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Identifier is required.")] + [JsonProperty(PropertyName = "identifier")] + public string Identifier { get; set; } + + /// + /// The URI path that the user can do a GET on to access the resource metadata. + /// + [JsonProperty(PropertyName = "entityUri")] + public string EntityUri { get; set; } + + /// + /// The name of the resource. Not all resources will have a name specified. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Additional information that helps to explain the resource. + /// + [JsonProperty(PropertyName = "metadata")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Collections.Generic.Dictionary Metadata { get; set; } + + } +} diff --git a/Osmanagementhub/models/WorkRequestResourceMetadataKey.cs b/Osmanagementhub/models/WorkRequestResourceMetadataKey.cs new file mode 100644 index 0000000000..eebb17dd99 --- /dev/null +++ b/Osmanagementhub/models/WorkRequestResourceMetadataKey.cs @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Possible metadata keys for work request resource metadata. + /// + public enum WorkRequestResourceMetadataKey { + /// 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 = "IS_DRY_RUN")] + IsDryRun + } +} diff --git a/Osmanagementhub/models/WorkRequestSummary.cs b/Osmanagementhub/models/WorkRequestSummary.cs new file mode 100644 index 0000000000..ef026f85c7 --- /dev/null +++ b/Osmanagementhub/models/WorkRequestSummary.cs @@ -0,0 +1,119 @@ +/* + * 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.OsmanagementhubService.Models +{ + /// + /// The summary of a work request. + /// + public class WorkRequestSummary + { + + /// + /// Type of the work request. + /// + /// + /// Required + /// + [Required(ErrorMessage = "OperationType is required.")] + [JsonProperty(PropertyName = "operationType")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable OperationType { get; set; } + + /// + /// Status of the work request. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Status is required.")] + [JsonProperty(PropertyName = "status")] + [JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))] + public System.Nullable Status { get; set; } + + /// + /// The OCID of the work request. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Id is required.")] + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// A short description about the work request. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// A short display name for the work request. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; set; } + + /// + /// A progress or error message, if there is any. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; set; } + + /// + /// The OCID of the parent work request. + /// + [JsonProperty(PropertyName = "parentId")] + public string ParentId { get; set; } + + /// + /// The list of OCIDs for the child work requests. + /// + [JsonProperty(PropertyName = "childrenId")] + public System.Collections.Generic.List ChildrenId { get; set; } + + /// + /// The OCID of the compartment that contains the work request. Work requests should be scoped to + /// the same compartment as the resource the work request affects. If the work request affects multiple resources, + /// and those resources are not in the same compartment, it is up to the service team to pick the primary + /// resource whose compartment should be used. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [JsonProperty(PropertyName = "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The percentage complete of the operation tracked by this work request. + /// + [JsonProperty(PropertyName = "percentComplete")] + public System.Nullable PercentComplete { get; set; } + + /// + /// The date and time the request was created - as described in + /// [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "TimeCreated is required.")] + [JsonProperty(PropertyName = "timeCreated")] + public System.Nullable TimeCreated { get; set; } + + } +} diff --git a/Osmanagementhub/models/WorkRequestSummaryCollection.cs b/Osmanagementhub/models/WorkRequestSummaryCollection.cs new file mode 100644 index 0000000000..75a654424c --- /dev/null +++ b/Osmanagementhub/models/WorkRequestSummaryCollection.cs @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + + +namespace Oci.OsmanagementhubService.Models +{ + /// + /// Results of a work request search. Contains both work request items and other information, such as metadata. + /// + public class WorkRequestSummaryCollection + { + + /// + /// List of work request summary objects. + /// + /// + /// Required + /// + [Required(ErrorMessage = "Items is required.")] + [JsonProperty(PropertyName = "items")] + public System.Collections.Generic.List Items { get; set; } + + } +} diff --git a/Osmanagementhub/requests/AttachManagedInstancesToLifecycleStageRequest.cs b/Osmanagementhub/requests/AttachManagedInstancesToLifecycleStageRequest.cs new file mode 100644 index 0000000000..7179ad48e0 --- /dev/null +++ b/Osmanagementhub/requests/AttachManagedInstancesToLifecycleStageRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use AttachManagedInstancesToLifecycleStage request. + /// + public class AttachManagedInstancesToLifecycleStageRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the lifecycle stage. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleStageId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "lifecycleStageId")] + public string LifecycleStageId { get; set; } + + /// + /// Details for managed instances to attach to the lifecycle stage. + /// + /// + /// Required + /// + [Required(ErrorMessage = "AttachManagedInstancesToLifecycleStageDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public AttachManagedInstancesToLifecycleStageDetails AttachManagedInstancesToLifecycleStageDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/AttachManagedInstancesToManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/AttachManagedInstancesToManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..ce13f5ecf9 --- /dev/null +++ b/Osmanagementhub/requests/AttachManagedInstancesToManagedInstanceGroupRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use AttachManagedInstancesToManagedInstanceGroup request. + /// + public class AttachManagedInstancesToManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// Details for managed instances to attach to the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "AttachManagedInstancesToManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public AttachManagedInstancesToManagedInstanceGroupDetails AttachManagedInstancesToManagedInstanceGroupDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/AttachSoftwareSourcesToManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/AttachSoftwareSourcesToManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..a83f2e9a80 --- /dev/null +++ b/Osmanagementhub/requests/AttachSoftwareSourcesToManagedInstanceGroupRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use AttachSoftwareSourcesToManagedInstanceGroup request. + /// + public class AttachSoftwareSourcesToManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// Details for software sources to attach to the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "AttachSoftwareSourcesToManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public AttachSoftwareSourcesToManagedInstanceGroupDetails AttachSoftwareSourcesToManagedInstanceGroupDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/AttachSoftwareSourcesToManagedInstanceRequest.cs b/Osmanagementhub/requests/AttachSoftwareSourcesToManagedInstanceRequest.cs new file mode 100644 index 0000000000..15b51fa01f --- /dev/null +++ b/Osmanagementhub/requests/AttachSoftwareSourcesToManagedInstanceRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use AttachSoftwareSourcesToManagedInstance request. + /// + public class AttachSoftwareSourcesToManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// Details of software sources to be attached to a managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "AttachSoftwareSourcesToManagedInstanceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public AttachSoftwareSourcesToManagedInstanceDetails AttachSoftwareSourcesToManagedInstanceDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/ChangeAvailabilityOfSoftwareSourcesRequest.cs b/Osmanagementhub/requests/ChangeAvailabilityOfSoftwareSourcesRequest.cs new file mode 100644 index 0000000000..6074a2dd59 --- /dev/null +++ b/Osmanagementhub/requests/ChangeAvailabilityOfSoftwareSourcesRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ChangeAvailabilityOfSoftwareSources request. + /// + public class ChangeAvailabilityOfSoftwareSourcesRequest : Oci.Common.IOciRequest + { + + /// + /// Request body that contains a list of software sources whose availability needs to be updated. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ChangeAvailabilityOfSoftwareSourcesDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ChangeAvailabilityOfSoftwareSourcesDetails ChangeAvailabilityOfSoftwareSourcesDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/CreateEntitlementRequest.cs b/Osmanagementhub/requests/CreateEntitlementRequest.cs new file mode 100644 index 0000000000..aa0b9c7054 --- /dev/null +++ b/Osmanagementhub/requests/CreateEntitlementRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use CreateEntitlement request. + /// + public class CreateEntitlementRequest : Oci.Common.IOciRequest + { + + /// + /// Details for creating entitlements. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CreateEntitlementDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public CreateEntitlementDetails CreateEntitlementDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/CreateLifecycleEnvironmentRequest.cs b/Osmanagementhub/requests/CreateLifecycleEnvironmentRequest.cs new file mode 100644 index 0000000000..2a8f9f2f67 --- /dev/null +++ b/Osmanagementhub/requests/CreateLifecycleEnvironmentRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use CreateLifecycleEnvironment request. + /// + public class CreateLifecycleEnvironmentRequest : Oci.Common.IOciRequest + { + + /// + /// Details for the new lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CreateLifecycleEnvironmentDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public CreateLifecycleEnvironmentDetails CreateLifecycleEnvironmentDetails { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/CreateManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/CreateManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..a52f9b5c16 --- /dev/null +++ b/Osmanagementhub/requests/CreateManagedInstanceGroupRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use CreateManagedInstanceGroup request. + /// + public class CreateManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// Details for the new managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CreateManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public CreateManagedInstanceGroupDetails CreateManagedInstanceGroupDetails { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/CreateManagementStationRequest.cs b/Osmanagementhub/requests/CreateManagementStationRequest.cs new file mode 100644 index 0000000000..95e2810d4a --- /dev/null +++ b/Osmanagementhub/requests/CreateManagementStationRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use CreateManagementStation request. + /// + public class CreateManagementStationRequest : Oci.Common.IOciRequest + { + + /// + /// Details for the new ManagementStation. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CreateManagementStationDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public CreateManagementStationDetails CreateManagementStationDetails { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/CreateProfileRequest.cs b/Osmanagementhub/requests/CreateProfileRequest.cs new file mode 100644 index 0000000000..88963874a2 --- /dev/null +++ b/Osmanagementhub/requests/CreateProfileRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use CreateProfile request. + /// + public class CreateProfileRequest : Oci.Common.IOciRequest + { + + /// + /// Details for the new registration profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CreateProfileDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public CreateProfileDetails CreateProfileDetails { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/CreateScheduledJobRequest.cs b/Osmanagementhub/requests/CreateScheduledJobRequest.cs new file mode 100644 index 0000000000..92086e1cc1 --- /dev/null +++ b/Osmanagementhub/requests/CreateScheduledJobRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use CreateScheduledJob request. + /// + public class CreateScheduledJobRequest : Oci.Common.IOciRequest + { + + /// + /// Details for the new scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CreateScheduledJobDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public CreateScheduledJobDetails CreateScheduledJobDetails { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/CreateSoftwareSourceRequest.cs b/Osmanagementhub/requests/CreateSoftwareSourceRequest.cs new file mode 100644 index 0000000000..5cc9904879 --- /dev/null +++ b/Osmanagementhub/requests/CreateSoftwareSourceRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use CreateSoftwareSource request. + /// + public class CreateSoftwareSourceRequest : Oci.Common.IOciRequest + { + + /// + /// Details for the new software source. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CreateSoftwareSourceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public CreateSoftwareSourceDetails CreateSoftwareSourceDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/DeleteLifecycleEnvironmentRequest.cs b/Osmanagementhub/requests/DeleteLifecycleEnvironmentRequest.cs new file mode 100644 index 0000000000..b767d6df03 --- /dev/null +++ b/Osmanagementhub/requests/DeleteLifecycleEnvironmentRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use DeleteLifecycleEnvironment request. + /// + public class DeleteLifecycleEnvironmentRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleEnvironmentId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "lifecycleEnvironmentId")] + public string LifecycleEnvironmentId { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/DeleteManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/DeleteManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..c8221f3103 --- /dev/null +++ b/Osmanagementhub/requests/DeleteManagedInstanceGroupRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use DeleteManagedInstanceGroup request. + /// + public class DeleteManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/DeleteManagementStationRequest.cs b/Osmanagementhub/requests/DeleteManagementStationRequest.cs new file mode 100644 index 0000000000..8d69958bbd --- /dev/null +++ b/Osmanagementhub/requests/DeleteManagementStationRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use DeleteManagementStation request. + /// + public class DeleteManagementStationRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the management station. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagementStationId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managementStationId")] + public string ManagementStationId { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/DeleteProfileRequest.cs b/Osmanagementhub/requests/DeleteProfileRequest.cs new file mode 100644 index 0000000000..e5195ae8b6 --- /dev/null +++ b/Osmanagementhub/requests/DeleteProfileRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use DeleteProfile request. + /// + public class DeleteProfileRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the registration profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ProfileId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "profileId")] + public string ProfileId { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/DeleteScheduledJobRequest.cs b/Osmanagementhub/requests/DeleteScheduledJobRequest.cs new file mode 100644 index 0000000000..c1a89e71d0 --- /dev/null +++ b/Osmanagementhub/requests/DeleteScheduledJobRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use DeleteScheduledJob request. + /// + public class DeleteScheduledJobRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ScheduledJobId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "scheduledJobId")] + public string ScheduledJobId { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/DeleteSoftwareSourceRequest.cs b/Osmanagementhub/requests/DeleteSoftwareSourceRequest.cs new file mode 100644 index 0000000000..05b18eb678 --- /dev/null +++ b/Osmanagementhub/requests/DeleteSoftwareSourceRequest.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 Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use DeleteSoftwareSource request. + /// + public class DeleteSoftwareSourceRequest : Oci.Common.IOciRequest + { + + /// + /// The software source OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "softwareSourceId")] + public string SoftwareSourceId { 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/Osmanagementhub/requests/DetachManagedInstancesFromLifecycleStageRequest.cs b/Osmanagementhub/requests/DetachManagedInstancesFromLifecycleStageRequest.cs new file mode 100644 index 0000000000..8127226f92 --- /dev/null +++ b/Osmanagementhub/requests/DetachManagedInstancesFromLifecycleStageRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use DetachManagedInstancesFromLifecycleStage request. + /// + public class DetachManagedInstancesFromLifecycleStageRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the lifecycle stage. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleStageId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "lifecycleStageId")] + public string LifecycleStageId { get; set; } + + /// + /// Details for managed instances to detach from the lifecycle stage. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DetachManagedInstancesFromLifecycleStageDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DetachManagedInstancesFromLifecycleStageDetails DetachManagedInstancesFromLifecycleStageDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/DetachManagedInstancesFromManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/DetachManagedInstancesFromManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..11b5f0430a --- /dev/null +++ b/Osmanagementhub/requests/DetachManagedInstancesFromManagedInstanceGroupRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use DetachManagedInstancesFromManagedInstanceGroup request. + /// + public class DetachManagedInstancesFromManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// Details for managed instances to detach from the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DetachManagedInstancesFromManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DetachManagedInstancesFromManagedInstanceGroupDetails DetachManagedInstancesFromManagedInstanceGroupDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/DetachSoftwareSourcesFromManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/DetachSoftwareSourcesFromManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..5fc92b5e0b --- /dev/null +++ b/Osmanagementhub/requests/DetachSoftwareSourcesFromManagedInstanceGroupRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use DetachSoftwareSourcesFromManagedInstanceGroup request. + /// + public class DetachSoftwareSourcesFromManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// Details for software sources to attach to the specified managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DetachSoftwareSourcesFromManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DetachSoftwareSourcesFromManagedInstanceGroupDetails DetachSoftwareSourcesFromManagedInstanceGroupDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/DetachSoftwareSourcesFromManagedInstanceRequest.cs b/Osmanagementhub/requests/DetachSoftwareSourcesFromManagedInstanceRequest.cs new file mode 100644 index 0000000000..3403fa509a --- /dev/null +++ b/Osmanagementhub/requests/DetachSoftwareSourcesFromManagedInstanceRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use DetachSoftwareSourcesFromManagedInstance request. + /// + public class DetachSoftwareSourcesFromManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// Details of software sources to be detached from a managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DetachSoftwareSourcesFromManagedInstanceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DetachSoftwareSourcesFromManagedInstanceDetails DetachSoftwareSourcesFromManagedInstanceDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/DisableModuleStreamOnManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/DisableModuleStreamOnManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..30d05eedf6 --- /dev/null +++ b/Osmanagementhub/requests/DisableModuleStreamOnManagedInstanceGroupRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use DisableModuleStreamOnManagedInstanceGroup request. + /// + public class DisableModuleStreamOnManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// Details for modules to disable on the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisableModuleStreamOnManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DisableModuleStreamOnManagedInstanceGroupDetails DisableModuleStreamOnManagedInstanceGroupDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/DisableModuleStreamOnManagedInstanceRequest.cs b/Osmanagementhub/requests/DisableModuleStreamOnManagedInstanceRequest.cs new file mode 100644 index 0000000000..ca428cda69 --- /dev/null +++ b/Osmanagementhub/requests/DisableModuleStreamOnManagedInstanceRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use DisableModuleStreamOnManagedInstance request. + /// + public class DisableModuleStreamOnManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// The details of the module stream to be disabled on a managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "DisableModuleStreamOnManagedInstanceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public DisableModuleStreamOnManagedInstanceDetails DisableModuleStreamOnManagedInstanceDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/EnableModuleStreamOnManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/EnableModuleStreamOnManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..a023bd28f6 --- /dev/null +++ b/Osmanagementhub/requests/EnableModuleStreamOnManagedInstanceGroupRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use EnableModuleStreamOnManagedInstanceGroup request. + /// + public class EnableModuleStreamOnManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// Details for modules to enable on the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "EnableModuleStreamOnManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public EnableModuleStreamOnManagedInstanceGroupDetails EnableModuleStreamOnManagedInstanceGroupDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/EnableModuleStreamOnManagedInstanceRequest.cs b/Osmanagementhub/requests/EnableModuleStreamOnManagedInstanceRequest.cs new file mode 100644 index 0000000000..635e8968a8 --- /dev/null +++ b/Osmanagementhub/requests/EnableModuleStreamOnManagedInstanceRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use EnableModuleStreamOnManagedInstance request. + /// + public class EnableModuleStreamOnManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// The details of the module stream to be enabled on a managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "EnableModuleStreamOnManagedInstanceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public EnableModuleStreamOnManagedInstanceDetails EnableModuleStreamOnManagedInstanceDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/GetErratumRequest.cs b/Osmanagementhub/requests/GetErratumRequest.cs new file mode 100644 index 0000000000..05b5305cb8 --- /dev/null +++ b/Osmanagementhub/requests/GetErratumRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetErratum request. + /// + public class GetErratumRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. This parameter is required. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The erratum name (e.g. ELSA-2023-34678). + /// + /// + /// Required + /// + [Required(ErrorMessage = "Name is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "name")] + public string Name { 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/Osmanagementhub/requests/GetLifecycleEnvironmentRequest.cs b/Osmanagementhub/requests/GetLifecycleEnvironmentRequest.cs new file mode 100644 index 0000000000..bf751cf95d --- /dev/null +++ b/Osmanagementhub/requests/GetLifecycleEnvironmentRequest.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetLifecycleEnvironment request. + /// + public class GetLifecycleEnvironmentRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleEnvironmentId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "lifecycleEnvironmentId")] + public string LifecycleEnvironmentId { 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/Osmanagementhub/requests/GetLifecycleStageRequest.cs b/Osmanagementhub/requests/GetLifecycleStageRequest.cs new file mode 100644 index 0000000000..cd90ac3f03 --- /dev/null +++ b/Osmanagementhub/requests/GetLifecycleStageRequest.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetLifecycleStage request. + /// + public class GetLifecycleStageRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the lifecycle stage. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleStageId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "lifecycleStageId")] + public string LifecycleStageId { 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/Osmanagementhub/requests/GetManagedInstanceAnalyticContentRequest.cs b/Osmanagementhub/requests/GetManagedInstanceAnalyticContentRequest.cs new file mode 100644 index 0000000000..110591c1a2 --- /dev/null +++ b/Osmanagementhub/requests/GetManagedInstanceAnalyticContentRequest.cs @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetManagedInstanceAnalyticContent request. + /// + public class GetManagedInstanceAnalyticContentRequest : Oci.Common.IOciRequest + { + + /// + /// This compartmentId is used to list managed instances within a compartment. + /// Or serve as an additional filter to restrict only managed instances with in certain compartment if other filter presents. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The OCID of the managed instance group for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// The OCID of the lifecycle environment. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleEnvironmentId")] + public string LifecycleEnvironmentId { get; set; } + + /// + /// The OCID of the lifecycle stage for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleStageId")] + public string LifecycleStageId { get; set; } + + /// + /// A filter to return only instances whose managed instance status matches the given status. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "status", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List Status { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// Filter instances by Location. Used when report target type is compartment or group. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "instanceLocation")] + public System.Nullable InstanceLocation { get; set; } + + /// + /// A filter to return instances with number of available security updates equals to the number specified. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "securityUpdatesAvailableEqualsTo")] + public System.Nullable SecurityUpdatesAvailableEqualsTo { get; set; } + + /// + /// A filter to return instances with number of available bug updates equals to the number specified. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "bugUpdatesAvailableEqualsTo")] + public System.Nullable BugUpdatesAvailableEqualsTo { get; set; } + + /// + /// A filter to return instances with number of available security updates greater than the number specified. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "securityUpdatesAvailableGreaterThan")] + public System.Nullable SecurityUpdatesAvailableGreaterThan { get; set; } + + /// + /// A filter to return instances with number of available bug updates greater than the number specified. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "bugUpdatesAvailableGreaterThan")] + public System.Nullable BugUpdatesAvailableGreaterThan { 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/Osmanagementhub/requests/GetManagedInstanceContentRequest.cs b/Osmanagementhub/requests/GetManagedInstanceContentRequest.cs new file mode 100644 index 0000000000..f6cce4e405 --- /dev/null +++ b/Osmanagementhub/requests/GetManagedInstanceContentRequest.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetManagedInstanceContent request. + /// + public class GetManagedInstanceContentRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// The assigned erratum name. It's unique and not changeable. + ///
+ /// Example: ELSA-2020-5804 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "advisoryName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List AdvisoryName { get; set; } + + /// + /// A filter to return resources that may partially match the erratum advisory name given. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "advisoryNameContains")] + public string AdvisoryNameContains { get; set; } + + /// + /// + /// A filter to return only errata that match the given advisory types. + /// + /// + public enum AdvisoryTypeEnum { + [EnumMember(Value = "SECURITY")] + Security, + [EnumMember(Value = "BUGFIX")] + Bugfix, + [EnumMember(Value = "ENHANCEMENT")] + Enhancement + }; + + /// + /// A filter to return only errata that match the given advisory types. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "advisoryType", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List AdvisoryType { 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/Osmanagementhub/requests/GetManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/GetManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..03c8fd86eb --- /dev/null +++ b/Osmanagementhub/requests/GetManagedInstanceGroupRequest.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetManagedInstanceGroup request. + /// + public class GetManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { 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/Osmanagementhub/requests/GetManagedInstanceRequest.cs b/Osmanagementhub/requests/GetManagedInstanceRequest.cs new file mode 100644 index 0000000000..84dbb485b6 --- /dev/null +++ b/Osmanagementhub/requests/GetManagedInstanceRequest.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetManagedInstance request. + /// + public class GetManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { 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/Osmanagementhub/requests/GetManagementStationRequest.cs b/Osmanagementhub/requests/GetManagementStationRequest.cs new file mode 100644 index 0000000000..9532395eaf --- /dev/null +++ b/Osmanagementhub/requests/GetManagementStationRequest.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetManagementStation request. + /// + public class GetManagementStationRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the management station. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagementStationId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managementStationId")] + public string ManagementStationId { 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/Osmanagementhub/requests/GetModuleStreamProfileRequest.cs b/Osmanagementhub/requests/GetModuleStreamProfileRequest.cs new file mode 100644 index 0000000000..987c1009c1 --- /dev/null +++ b/Osmanagementhub/requests/GetModuleStreamProfileRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetModuleStreamProfile request. + /// + public class GetModuleStreamProfileRequest : Oci.Common.IOciRequest + { + + /// + /// The software source OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// The name of the profile of the containing module stream. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ProfileName is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "profileName")] + public string ProfileName { get; set; } + + /// + /// The name of a module. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of the stream of the containing module. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "StreamName is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "streamName")] + public string StreamName { 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/Osmanagementhub/requests/GetModuleStreamRequest.cs b/Osmanagementhub/requests/GetModuleStreamRequest.cs new file mode 100644 index 0000000000..6891c94bb5 --- /dev/null +++ b/Osmanagementhub/requests/GetModuleStreamRequest.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetModuleStream request. + /// + public class GetModuleStreamRequest : Oci.Common.IOciRequest + { + + /// + /// The software source OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// The name of the module. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ModuleName is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of the stream of the containing module. + /// + /// + /// + /// Required + /// + [Required(ErrorMessage = "StreamName is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "streamName")] + public string StreamName { 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/Osmanagementhub/requests/GetPackageGroupRequest.cs b/Osmanagementhub/requests/GetPackageGroupRequest.cs new file mode 100644 index 0000000000..296519db7f --- /dev/null +++ b/Osmanagementhub/requests/GetPackageGroupRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetPackageGroup request. + /// + public class GetPackageGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The software source OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// The unique package group identifier. + /// + /// + /// Required + /// + [Required(ErrorMessage = "PackageGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "packageGroupId")] + public string PackageGroupId { 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/Osmanagementhub/requests/GetProfileRequest.cs b/Osmanagementhub/requests/GetProfileRequest.cs new file mode 100644 index 0000000000..dba77a76cd --- /dev/null +++ b/Osmanagementhub/requests/GetProfileRequest.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetProfile request. + /// + public class GetProfileRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the registration profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ProfileId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "profileId")] + public string ProfileId { 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/Osmanagementhub/requests/GetScheduledJobRequest.cs b/Osmanagementhub/requests/GetScheduledJobRequest.cs new file mode 100644 index 0000000000..f886d5eaba --- /dev/null +++ b/Osmanagementhub/requests/GetScheduledJobRequest.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetScheduledJob request. + /// + public class GetScheduledJobRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ScheduledJobId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "scheduledJobId")] + public string ScheduledJobId { 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/Osmanagementhub/requests/GetSoftwarePackageRequest.cs b/Osmanagementhub/requests/GetSoftwarePackageRequest.cs new file mode 100644 index 0000000000..7608feaed4 --- /dev/null +++ b/Osmanagementhub/requests/GetSoftwarePackageRequest.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetSoftwarePackage request. + /// + public class GetSoftwarePackageRequest : Oci.Common.IOciRequest + { + + /// + /// The software source OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// The name of the software package. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwarePackageName is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "softwarePackageName")] + public string SoftwarePackageName { 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/Osmanagementhub/requests/GetSoftwareSourceRequest.cs b/Osmanagementhub/requests/GetSoftwareSourceRequest.cs new file mode 100644 index 0000000000..b9ed54abe3 --- /dev/null +++ b/Osmanagementhub/requests/GetSoftwareSourceRequest.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetSoftwareSource request. + /// + public class GetSoftwareSourceRequest : Oci.Common.IOciRequest + { + + /// + /// The software source OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "softwareSourceId")] + public string SoftwareSourceId { 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/Osmanagementhub/requests/GetWorkRequestRequest.cs b/Osmanagementhub/requests/GetWorkRequestRequest.cs new file mode 100644 index 0000000000..ce2562a1b7 --- /dev/null +++ b/Osmanagementhub/requests/GetWorkRequestRequest.cs @@ -0,0 +1,38 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use GetWorkRequest request. + /// + public class GetWorkRequestRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the work request. + /// + /// + /// Required + /// + [Required(ErrorMessage = "WorkRequestId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "workRequestId")] + public string WorkRequestId { 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/Osmanagementhub/requests/InstallModuleStreamProfileOnManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/InstallModuleStreamProfileOnManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..2ec43cf97d --- /dev/null +++ b/Osmanagementhub/requests/InstallModuleStreamProfileOnManagedInstanceGroupRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use InstallModuleStreamProfileOnManagedInstanceGroup request. + /// + public class InstallModuleStreamProfileOnManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// Details for profiles to install on the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "InstallModuleStreamProfileOnManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public InstallModuleStreamProfileOnManagedInstanceGroupDetails InstallModuleStreamProfileOnManagedInstanceGroupDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/InstallModuleStreamProfileOnManagedInstanceRequest.cs b/Osmanagementhub/requests/InstallModuleStreamProfileOnManagedInstanceRequest.cs new file mode 100644 index 0000000000..74a1486a5d --- /dev/null +++ b/Osmanagementhub/requests/InstallModuleStreamProfileOnManagedInstanceRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use InstallModuleStreamProfileOnManagedInstance request. + /// + public class InstallModuleStreamProfileOnManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// The details of the module stream profile to be installed on a managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "InstallModuleStreamProfileOnManagedInstanceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public InstallModuleStreamProfileOnManagedInstanceDetails InstallModuleStreamProfileOnManagedInstanceDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/InstallPackagesOnManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/InstallPackagesOnManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..3d8101b886 --- /dev/null +++ b/Osmanagementhub/requests/InstallPackagesOnManagedInstanceGroupRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use InstallPackagesOnManagedInstanceGroup request. + /// + public class InstallPackagesOnManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// Details for packages to install on the specified managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "InstallPackagesOnManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public InstallPackagesOnManagedInstanceGroupDetails InstallPackagesOnManagedInstanceGroupDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/InstallPackagesOnManagedInstanceRequest.cs b/Osmanagementhub/requests/InstallPackagesOnManagedInstanceRequest.cs new file mode 100644 index 0000000000..cfdb38244d --- /dev/null +++ b/Osmanagementhub/requests/InstallPackagesOnManagedInstanceRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use InstallPackagesOnManagedInstance request. + /// + public class InstallPackagesOnManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// Details about packages to be installed on a managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "InstallPackagesOnManagedInstanceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public InstallPackagesOnManagedInstanceDetails InstallPackagesOnManagedInstanceDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListEntitlementsRequest.cs b/Osmanagementhub/requests/ListEntitlementsRequest.cs new file mode 100644 index 0000000000..c1b5df50e6 --- /dev/null +++ b/Osmanagementhub/requests/ListEntitlementsRequest.cs @@ -0,0 +1,94 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListEntitlements request. + /// + public class ListEntitlementsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. This parameter is required. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A filter to return entitlements that match the given CSI. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "csi")] + public string Csi { get; set; } + + /// + /// A filter to return only profiles that match the given vendorName. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "vendorName")] + public System.Nullable VendorName { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort entitlements by. Only one sort order may be provided. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "csi")] + Csi, + [EnumMember(Value = "vendorName")] + VendorName + }; + + /// + /// The field to sort entitlements by. Only one sort order may be provided. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListErrataRequest.cs b/Osmanagementhub/requests/ListErrataRequest.cs new file mode 100644 index 0000000000..4b27cadffa --- /dev/null +++ b/Osmanagementhub/requests/ListErrataRequest.cs @@ -0,0 +1,131 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListErrata request. + /// + public class ListErrataRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. This parameter is required. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The assigned erratum name. It's unique and not changeable. + ///
+ /// Example: ELSA-2020-5804 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "name", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List Name { get; set; } + + /// + /// A filter to return resources that may partially match the erratum name given. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "nameContains")] + public string NameContains { get; set; } + + /// + /// A filter to return only packages that match the given update classification type. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "classificationType", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List ClassificationType { get; set; } + + /// + /// A filter to return only profiles that match the given osFamily. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "osFamily")] + public System.Nullable OsFamily { get; set; } + + /// + /// The advisory severity. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "advisorySeverity", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List AdvisorySeverity { get; set; } + + /// + /// The issue date after which to list all errata, in ISO 8601 format + ///
+ /// Example: 2017-07-14T02:40:00.000Z + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "timeIssueDateStart")] + public System.Nullable TimeIssueDateStart { get; set; } + + /// + /// The issue date before which to list all errata, in ISO 8601 format + ///
+ /// Example: 2017-07-14T02:40:00.000Z + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "timeIssueDateEnd")] + public System.Nullable TimeIssueDateEnd { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort errata by. Only one sort order may be provided. Default order for timeIssued is descending. Default order for name is ascending. If no value is specified timeIssued is default. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeIssued")] + TimeIssued, + [EnumMember(Value = "name")] + Name + }; + + /// + /// The field to sort errata by. Only one sort order may be provided. Default order for timeIssued is descending. Default order for name is ascending. If no value is specified timeIssued is default. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListLifecycleEnvironmentsRequest.cs b/Osmanagementhub/requests/ListLifecycleEnvironmentsRequest.cs new file mode 100644 index 0000000000..d8a4c3f037 --- /dev/null +++ b/Osmanagementhub/requests/ListLifecycleEnvironmentsRequest.cs @@ -0,0 +1,116 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListLifecycleEnvironments request. + /// + public class ListLifecycleEnvironmentsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// The OCID of the lifecycle environment. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleEnvironmentId")] + public string LifecycleEnvironmentId { get; set; } + + /// + /// A filter to return only profiles that match the given archType. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "archType")] + public System.Nullable ArchType { get; set; } + + /// + /// A filter to return only profiles that match the given osFamily. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "osFamily")] + public System.Nullable OsFamily { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// A filter to return only the lifecycle environments that match the display name given. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleState")] + public System.Nullable LifecycleState { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListLifecycleStageInstalledPackagesRequest.cs b/Osmanagementhub/requests/ListLifecycleStageInstalledPackagesRequest.cs new file mode 100644 index 0000000000..0572fa89b7 --- /dev/null +++ b/Osmanagementhub/requests/ListLifecycleStageInstalledPackagesRequest.cs @@ -0,0 +1,108 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListLifecycleStageInstalledPackages request. + /// + public class ListLifecycleStageInstalledPackagesRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the lifecycle stage. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleStageId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "lifecycleStageId")] + public string LifecycleStageId { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// A filter to return only lifecycle stage whose lifecycle state matches the given lifecycle state. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleState")] + public System.Nullable LifecycleState { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListLifecycleStagesRequest.cs b/Osmanagementhub/requests/ListLifecycleStagesRequest.cs new file mode 100644 index 0000000000..00cbd704f5 --- /dev/null +++ b/Osmanagementhub/requests/ListLifecycleStagesRequest.cs @@ -0,0 +1,122 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListLifecycleStages request. + /// + public class ListLifecycleStagesRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// The OCID of the lifecycle stage. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleStageId")] + public string LifecycleStageId { get; set; } + + /// + /// The OCID for the software source. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// A filter to return only profiles that match the given archType. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "archType")] + public System.Nullable ArchType { get; set; } + + /// + /// A filter to return only profiles that match the given osFamily. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "osFamily")] + public System.Nullable OsFamily { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// A filter to return only lifecycle stage whose lifecycle state matches the given lifecycle state. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleState")] + public System.Nullable LifecycleState { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagedInstanceAvailablePackagesRequest.cs b/Osmanagementhub/requests/ListManagedInstanceAvailablePackagesRequest.cs new file mode 100644 index 0000000000..2f14ffca6e --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstanceAvailablePackagesRequest.cs @@ -0,0 +1,100 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstanceAvailablePackages request. + /// + public class ListManagedInstanceAvailablePackagesRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagedInstanceAvailableSoftwareSourcesRequest.cs b/Osmanagementhub/requests/ListManagedInstanceAvailableSoftwareSourcesRequest.cs new file mode 100644 index 0000000000..942ed5b6df --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstanceAvailableSoftwareSourcesRequest.cs @@ -0,0 +1,100 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstanceAvailableSoftwareSources request. + /// + public class ListManagedInstanceAvailableSoftwareSourcesRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagedInstanceErrataRequest.cs b/Osmanagementhub/requests/ListManagedInstanceErrataRequest.cs new file mode 100644 index 0000000000..61a496915d --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstanceErrataRequest.cs @@ -0,0 +1,122 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstanceErrata request. + /// + public class ListManagedInstanceErrataRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// + /// A filter to return only errata that match the given advisory types. + /// + /// + public enum AdvisoryTypeEnum { + [EnumMember(Value = "SECURITY")] + Security, + [EnumMember(Value = "BUGFIX")] + Bugfix, + [EnumMember(Value = "ENHANCEMENT")] + Enhancement + }; + + /// + /// A filter to return only errata that match the given advisory types. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "advisoryType", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List AdvisoryType { get; set; } + + /// + /// The assigned erratum name. It's unique and not changeable. + ///
+ /// Example: ELSA-2020-5804 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "name", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List Name { get; set; } + + /// + /// A filter to return resources that may partially match the erratum name given. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "nameContains")] + public string NameContains { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort errata by. Only one sort order may be provided. Default order for timeIssued is descending. Default order for name is ascending. If no value is specified timeIssued is default. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeIssued")] + TimeIssued, + [EnumMember(Value = "name")] + Name + }; + + /// + /// The field to sort errata by. Only one sort order may be provided. Default order for timeIssued is descending. Default order for name is ascending. If no value is specified timeIssued is default. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagedInstanceGroupAvailableModulesRequest.cs b/Osmanagementhub/requests/ListManagedInstanceGroupAvailableModulesRequest.cs new file mode 100644 index 0000000000..d58caab586 --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstanceGroupAvailableModulesRequest.cs @@ -0,0 +1,99 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstanceGroupAvailableModules request. + /// + public class ListManagedInstanceGroupAvailableModulesRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The resource name. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "name")] + public string Name { get; set; } + + /// + /// A filter to return resources that may partially match the name given. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "nameContains")] + public string NameContains { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for name is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "name")] + Name + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for name is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagedInstanceGroupAvailablePackagesRequest.cs b/Osmanagementhub/requests/ListManagedInstanceGroupAvailablePackagesRequest.cs new file mode 100644 index 0000000000..286a846f26 --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstanceGroupAvailablePackagesRequest.cs @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstanceGroupAvailablePackages request. + /// + public class ListManagedInstanceGroupAvailablePackagesRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// A boolean variable that is used to list only the latest versions of packages, module streams, + /// and stream profiles when set to true. All packages, module streams, and stream profiles are + /// returned when set to false. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isLatest")] + public System.Nullable IsLatest { 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/Osmanagementhub/requests/ListManagedInstanceGroupAvailableSoftwareSourcesRequest.cs b/Osmanagementhub/requests/ListManagedInstanceGroupAvailableSoftwareSourcesRequest.cs new file mode 100644 index 0000000000..fc3eee7ee1 --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstanceGroupAvailableSoftwareSourcesRequest.cs @@ -0,0 +1,100 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstanceGroupAvailableSoftwareSources request. + /// + public class ListManagedInstanceGroupAvailableSoftwareSourcesRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagedInstanceGroupInstalledPackagesRequest.cs b/Osmanagementhub/requests/ListManagedInstanceGroupInstalledPackagesRequest.cs new file mode 100644 index 0000000000..8a0a13cf81 --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstanceGroupInstalledPackagesRequest.cs @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstanceGroupInstalledPackages request. + /// + public class ListManagedInstanceGroupInstalledPackagesRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// The install date after which to list all packages, in ISO 8601 format + ///
+ /// Example: 2017-07-14T02:40:00.000Z + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "timeInstallDateStart")] + public System.Nullable TimeInstallDateStart { get; set; } + + /// + /// The install date before which to list all packages, in ISO 8601 format. + ///
+ /// Example: 2017-07-14T02:40:00.000Z + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "timeInstallDateEnd")] + public System.Nullable TimeInstallDateEnd { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeInstalled is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeInstalled")] + TimeInstalled, + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeInstalled is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagedInstanceGroupModulesRequest.cs b/Osmanagementhub/requests/ListManagedInstanceGroupModulesRequest.cs new file mode 100644 index 0000000000..1fefea211f --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstanceGroupModulesRequest.cs @@ -0,0 +1,107 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstanceGroupModules request. + /// + public class ListManagedInstanceGroupModulesRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The resource name. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "name")] + public string Name { get; set; } + + /// + /// A filter to return resources that may partially match the name given. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "nameContains")] + public string NameContains { get; set; } + + /// + /// The name of the stream of the containing module. This parameter + /// is required if a profileName is specified. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "streamName")] + public string StreamName { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for name is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "name")] + Name + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for name is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagedInstanceGroupsRequest.cs b/Osmanagementhub/requests/ListManagedInstanceGroupsRequest.cs new file mode 100644 index 0000000000..8433ffcaf7 --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstanceGroupsRequest.cs @@ -0,0 +1,120 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstanceGroups request. + /// + public class ListManagedInstanceGroupsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The OCID of the managed instance group for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// The OCID for the software source. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// A filter to return only profiles that match the given archType. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "archType")] + public System.Nullable ArchType { get; set; } + + /// + /// A filter to return only profiles that match the given osFamily. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "osFamily")] + public System.Nullable OsFamily { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// A filter to return only resources their lifecycle state matches the given lifecycle state. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleState")] + public System.Nullable LifecycleState { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagedInstanceInstalledPackagesRequest.cs b/Osmanagementhub/requests/ListManagedInstanceInstalledPackagesRequest.cs new file mode 100644 index 0000000000..76cf8416d1 --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstanceInstalledPackagesRequest.cs @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstanceInstalledPackages request. + /// + public class ListManagedInstanceInstalledPackagesRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// The install date after which to list all packages, in ISO 8601 format + ///
+ /// Example: 2017-07-14T02:40:00.000Z + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "timeInstallDateStart")] + public System.Nullable TimeInstallDateStart { get; set; } + + /// + /// The install date before which to list all packages, in ISO 8601 format. + ///
+ /// Example: 2017-07-14T02:40:00.000Z + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "timeInstallDateEnd")] + public System.Nullable TimeInstallDateEnd { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeInstalled is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeInstalled")] + TimeInstalled, + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeInstalled is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagedInstanceModulesRequest.cs b/Osmanagementhub/requests/ListManagedInstanceModulesRequest.cs new file mode 100644 index 0000000000..a5388ce6bd --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstanceModulesRequest.cs @@ -0,0 +1,99 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstanceModules request. + /// + public class ListManagedInstanceModulesRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The resource name. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "name")] + public string Name { get; set; } + + /// + /// A filter to return resources that may partially match the name given. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "nameContains")] + public string NameContains { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for name is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "name")] + Name + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for name is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagedInstanceUpdatablePackagesRequest.cs b/Osmanagementhub/requests/ListManagedInstanceUpdatablePackagesRequest.cs new file mode 100644 index 0000000000..7a8594b88e --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstanceUpdatablePackagesRequest.cs @@ -0,0 +1,114 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstanceUpdatablePackages request. + /// + public class ListManagedInstanceUpdatablePackagesRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// A filter to return only packages that match the given update classification type. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "classificationType", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List ClassificationType { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// The assigned erratum name. It's unique and not changeable. + ///
+ /// Example: ELSA-2020-5804 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "advisoryName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List AdvisoryName { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagedInstancesRequest.cs b/Osmanagementhub/requests/ListManagedInstancesRequest.cs new file mode 100644 index 0000000000..5b0aa9d69f --- /dev/null +++ b/Osmanagementhub/requests/ListManagedInstancesRequest.cs @@ -0,0 +1,164 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagedInstances request. + /// + public class ListManagedInstancesRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// The OCID of the managed instance for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// A filter to return only instances whose managed instance status matches the given status. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "status", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List Status { get; set; } + + /// + /// A filter to return only instances whose architecture type matches the given architecture. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "archType", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List ArchType { get; set; } + + /// + /// A filter to return only instances whose OS family type matches the given OS family. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "osFamily", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List OsFamily { get; set; } + + /// + /// A filter to return only managed instances acting as management stations. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isManagementStation")] + public System.Nullable IsManagementStation { get; set; } + + /// + /// A filter to return only managed instances that are attached to the specified group. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "group")] + public string Group { get; set; } + + /// + /// A filter to return only managed instances that are NOT attached to the specified group. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "groupNotEqualTo")] + public string GroupNotEqualTo { get; set; } + + /// + /// A filter to return only managed instances that are associated with the specified lifecycle environment. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleStage")] + public string LifecycleStage { get; set; } + + /// + /// A filter to return only managed instances that are NOT associated with the specified lifecycle environment. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleStageNotEqualTo")] + public string LifecycleStageNotEqualTo { get; set; } + + /// + /// A filter to return only managed instances that are attached to the specified group or lifecycle environment. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isAttachedToGroupOrLifecycleStage")] + public System.Nullable IsAttachedToGroupOrLifecycleStage { get; set; } + + /// + /// The OCID for the software source. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// The assigned erratum name. It's unique and not changeable. + ///
+ /// Example: ELSA-2020-5804 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "advisoryName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List AdvisoryName { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListManagementStationsRequest.cs b/Osmanagementhub/requests/ListManagementStationsRequest.cs new file mode 100644 index 0000000000..7cb7038a0c --- /dev/null +++ b/Osmanagementhub/requests/ListManagementStationsRequest.cs @@ -0,0 +1,110 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListManagementStations request. + /// + public class ListManagementStationsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. + ///
+ /// Example: My new resource + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName")] + public string DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// The current lifecycle state for the object. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleState")] + public System.Nullable LifecycleState { get; set; } + + /// + /// The OCID of the managed instance for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The OCID of the management station. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "id")] + public string Id { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListMirrorsRequest.cs b/Osmanagementhub/requests/ListMirrorsRequest.cs new file mode 100644 index 0000000000..3186b53103 --- /dev/null +++ b/Osmanagementhub/requests/ListMirrorsRequest.cs @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListMirrors request. + /// + public class ListMirrorsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the management station. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagementStationId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managementStationId")] + public string ManagementStationId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. + ///
+ /// Example: My new resource + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName")] + public string DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// List of Mirror state to filter by + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "mirrorStates", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List MirrorStates { 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/Osmanagementhub/requests/ListModuleStreamProfilesRequest.cs b/Osmanagementhub/requests/ListModuleStreamProfilesRequest.cs new file mode 100644 index 0000000000..5c15cb959e --- /dev/null +++ b/Osmanagementhub/requests/ListModuleStreamProfilesRequest.cs @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListModuleStreamProfiles request. + /// + public class ListModuleStreamProfilesRequest : Oci.Common.IOciRequest + { + + /// + /// The software source OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// The name of a module. This parameter is required if a + /// streamName is specified. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of the stream of the containing module. This parameter + /// is required if a profileName is specified. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "streamName")] + public string StreamName { get; set; } + + /// + /// The name of the entity to be queried. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "name")] + public string Name { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for moduleName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "moduleName")] + ModuleName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for moduleName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListModuleStreamsRequest.cs b/Osmanagementhub/requests/ListModuleStreamsRequest.cs new file mode 100644 index 0000000000..f2ac143c4e --- /dev/null +++ b/Osmanagementhub/requests/ListModuleStreamsRequest.cs @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListModuleStreams request. + /// + public class ListModuleStreamsRequest : Oci.Common.IOciRequest + { + + /// + /// The software source OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// The name of a module. This parameter is required if a + /// streamName is specified. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "moduleName")] + public string ModuleName { get; set; } + + /// + /// The name of the entity to be queried. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "name")] + public string Name { get; set; } + + /// + /// A boolean variable that is used to list only the latest versions of packages, module streams, + /// and stream profiles when set to true. All packages, module streams, and stream profiles are + /// returned when set to false. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isLatest")] + public System.Nullable IsLatest { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for moduleName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "moduleName")] + ModuleName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for moduleName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// A filter to return resources that may partially match the module name given. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "moduleNameContains")] + public string ModuleNameContains { 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/Osmanagementhub/requests/ListPackageGroupsRequest.cs b/Osmanagementhub/requests/ListPackageGroupsRequest.cs new file mode 100644 index 0000000000..5a1fdc466e --- /dev/null +++ b/Osmanagementhub/requests/ListPackageGroupsRequest.cs @@ -0,0 +1,106 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListPackageGroups request. + /// + public class ListPackageGroupsRequest : Oci.Common.IOciRequest + { + + /// + /// The software source OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The name of the entity to be queried. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "name")] + public string Name { get; set; } + + /// + /// A filter to return resources that may partially match the name given. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "nameContains")] + public string NameContains { get; set; } + + /// + /// A filter to return only package groups of the specified type. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "groupType", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List GroupType { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListProfilesRequest.cs b/Osmanagementhub/requests/ListProfilesRequest.cs new file mode 100644 index 0000000000..fd386cc0d2 --- /dev/null +++ b/Osmanagementhub/requests/ListProfilesRequest.cs @@ -0,0 +1,130 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListProfiles request. + /// + public class ListProfilesRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// A filter to return registration profiles that match the given profileType. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "profileType", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List ProfileType { get; set; } + + /// + /// The OCID of the registration profile. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "profileId")] + public string ProfileId { get; set; } + + /// + /// A filter to return only profiles that match the given osFamily. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "osFamily")] + public System.Nullable OsFamily { get; set; } + + /// + /// A filter to return only profiles that match the given archType. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "archType")] + public System.Nullable ArchType { get; set; } + + /// + /// A filter to return only profiles that match the given vendorName. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "vendorName")] + public System.Nullable VendorName { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// A filter to return only registration profile whose lifecycleState matches the given lifecycleState. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleState")] + public System.Nullable LifecycleState { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. + /// Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. + /// Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListScheduledJobsRequest.cs b/Osmanagementhub/requests/ListScheduledJobsRequest.cs new file mode 100644 index 0000000000..3c39ba5d98 --- /dev/null +++ b/Osmanagementhub/requests/ListScheduledJobsRequest.cs @@ -0,0 +1,168 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListScheduledJobs request. + /// + public class ListScheduledJobsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. + ///
+ /// Example: My new resource + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName")] + public string DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// A filter to return only resources their lifecycleState matches the given lifecycleState. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleState")] + public System.Nullable LifecycleState { get; set; } + + /// + /// The OCID of the managed instance for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// The OCID of the managed instance group for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// The OCID of the managed compartment for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "managedCompartmentId")] + public string ManagedCompartmentId { get; set; } + + /// + /// The OCID of the lifecycle stage for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleStageId")] + public string LifecycleStageId { get; set; } + + /// + /// The operation type for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "operationType")] + public System.Nullable OperationType { get; set; } + + /// + /// The schedule type for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "scheduleType")] + public System.Nullable ScheduleType { get; set; } + + /// + /// The start time after which to list all schedules, in ISO 8601 format. + ///
+ /// Example: 2017-07-14T02:40:00.000Z + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "timeStart")] + public System.Nullable TimeStart { get; set; } + + /// + /// The cut-off time before which to list all upcoming schedules, in ISO 8601 format. + ///
+ /// Example: 2017-07-14T02:40:00.000Z + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "timeEnd")] + public System.Nullable TimeEnd { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// If true, will only filter out restricted scheduled job. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isRestricted")] + public System.Nullable IsRestricted { get; set; } + + /// + /// The OCID of the scheduled job. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "id")] + public string Id { get; set; } + + /// + /// Default is false. When set to true ,returns results from {compartmentId} or any of its subcompartment. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentIdInSubtree")] + public System.Nullable CompartmentIdInSubtree { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListSoftwarePackagesRequest.cs b/Osmanagementhub/requests/ListSoftwarePackagesRequest.cs new file mode 100644 index 0000000000..daae8c38cf --- /dev/null +++ b/Osmanagementhub/requests/ListSoftwarePackagesRequest.cs @@ -0,0 +1,105 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListSoftwarePackages request. + /// + public class ListSoftwarePackagesRequest : Oci.Common.IOciRequest + { + + /// + /// The software source OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. + ///
+ /// Example: My new resource + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName")] + public string DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// A boolean variable that is used to list only the latest versions of packages, module streams, + /// and stream profiles when set to true. All packages, module streams, and stream profiles are + /// returned when set to false. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "isLatest")] + public System.Nullable IsLatest { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListSoftwareSourceVendorsRequest.cs b/Osmanagementhub/requests/ListSoftwareSourceVendorsRequest.cs new file mode 100644 index 0000000000..a986d69ea2 --- /dev/null +++ b/Osmanagementhub/requests/ListSoftwareSourceVendorsRequest.cs @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListSoftwareSourceVendors request. + /// + public class ListSoftwareSourceVendorsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. This parameter is required. + /// + /// + /// Required + /// + [Required(ErrorMessage = "CompartmentId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort software source vendors by. Only one sort order may be provided. Default order for name is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "name")] + Name + }; + + /// + /// The field to sort software source vendors by. Only one sort order may be provided. Default order for name is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// The name of the entity to be queried. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "name")] + public string Name { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListSoftwareSourcesRequest.cs b/Osmanagementhub/requests/ListSoftwareSourcesRequest.cs new file mode 100644 index 0000000000..6599db8403 --- /dev/null +++ b/Osmanagementhub/requests/ListSoftwareSourcesRequest.cs @@ -0,0 +1,140 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListSoftwareSources request. + /// + public class ListSoftwareSourcesRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The OCID for the software source. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// The type of the software source. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "softwareSourceType", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List SoftwareSourceType { get; set; } + + /// + /// A filter to return only profiles that match the given vendorName. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "vendorName")] + public System.Nullable VendorName { get; set; } + + /// + /// A filter to return only instances whose OS family type matches the given OS family. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "osFamily", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List OsFamily { get; set; } + + /// + /// A filter to return only instances whose architecture type matches the given architecture. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "archType", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List ArchType { get; set; } + + /// + /// The availabilities of the software source for a tenant. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "availability", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List Availability { get; set; } + + /// + /// A user-friendly name. Does not have to be unique, and it's changeable. + ///
+ /// Example: My new resource + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName")] + public string DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// A multi filter to return resources that do not contains the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameNotEqualTo", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayNameNotEqualTo { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// A filter to return only resources whose lifecycleState matches the given lifecycleStates. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleState", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List LifecycleState { 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/Osmanagementhub/requests/ListWorkRequestErrorsRequest.cs b/Osmanagementhub/requests/ListWorkRequestErrorsRequest.cs new file mode 100644 index 0000000000..d30fb8b156 --- /dev/null +++ b/Osmanagementhub/requests/ListWorkRequestErrorsRequest.cs @@ -0,0 +1,84 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListWorkRequestErrors request. + /// + public class ListWorkRequestErrorsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the work request. + /// + /// + /// Required + /// + [Required(ErrorMessage = "WorkRequestId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "workRequestId")] + public string WorkRequestId { 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 list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListWorkRequestLogsRequest.cs b/Osmanagementhub/requests/ListWorkRequestLogsRequest.cs new file mode 100644 index 0000000000..86a3b5dd4b --- /dev/null +++ b/Osmanagementhub/requests/ListWorkRequestLogsRequest.cs @@ -0,0 +1,84 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListWorkRequestLogs request. + /// + public class ListWorkRequestLogsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the work request. + /// + /// + /// Required + /// + [Required(ErrorMessage = "WorkRequestId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "workRequestId")] + public string WorkRequestId { 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 list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + } +} diff --git a/Osmanagementhub/requests/ListWorkRequestsRequest.cs b/Osmanagementhub/requests/ListWorkRequestsRequest.cs new file mode 100644 index 0000000000..9ef5082e26 --- /dev/null +++ b/Osmanagementhub/requests/ListWorkRequestsRequest.cs @@ -0,0 +1,129 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ListWorkRequests request. + /// + public class ListWorkRequestsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the compartment that contains the resources to list. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The OCID of the work request. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "workRequestId")] + public string WorkRequestId { get; set; } + + /// + /// A filter to return work requests that match the given status. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "status", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List Status { get; set; } + + /// + /// The OCID of the resource affected by the work request. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "resourceId")] + public string ResourceId { 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 list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "timeCreated")] + TimeCreated, + [EnumMember(Value = "displayName")] + DisplayName + }; + + /// + /// The field to sort by. Only one sort order may be provided. + /// Default order for timeCreated is descending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// The OCID of the schedule job that initiated the work request. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "initiatorId")] + public string InitiatorId { get; set; } + + /// + /// The OCID of the parent work request. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "parentId")] + public string ParentId { get; set; } + + /// + /// A filter to return the resources whose parent resources are not the same as the given resource OCID(s). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "parentResourcesNotEqualTo", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List ParentResourcesNotEqualTo { get; set; } + + /// + /// The asynchronous operation tracked by this work request. The filter returns only resources that match the given OperationType. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "operationType", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List OperationType { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + } +} diff --git a/Osmanagementhub/requests/ManageModuleStreamsOnManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/ManageModuleStreamsOnManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..09e0c6d943 --- /dev/null +++ b/Osmanagementhub/requests/ManageModuleStreamsOnManagedInstanceGroupRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ManageModuleStreamsOnManagedInstanceGroup request. + /// + public class ManageModuleStreamsOnManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// A description of an operation to perform against the modules, streams, and profiles of a managed instance group + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManageModuleStreamsOnManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManageModuleStreamsOnManagedInstanceGroupDetails ManageModuleStreamsOnManagedInstanceGroupDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/ManageModuleStreamsOnManagedInstanceRequest.cs b/Osmanagementhub/requests/ManageModuleStreamsOnManagedInstanceRequest.cs new file mode 100644 index 0000000000..fa31db4c02 --- /dev/null +++ b/Osmanagementhub/requests/ManageModuleStreamsOnManagedInstanceRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use ManageModuleStreamsOnManagedInstance request. + /// + public class ManageModuleStreamsOnManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// A description of an operation to perform against the modules, streams, and profiles of a managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManageModuleStreamsOnManagedInstanceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManageModuleStreamsOnManagedInstanceDetails ManageModuleStreamsOnManagedInstanceDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/PromoteSoftwareSourceToLifecycleStageRequest.cs b/Osmanagementhub/requests/PromoteSoftwareSourceToLifecycleStageRequest.cs new file mode 100644 index 0000000000..704ffe0539 --- /dev/null +++ b/Osmanagementhub/requests/PromoteSoftwareSourceToLifecycleStageRequest.cs @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use PromoteSoftwareSourceToLifecycleStage request. + /// + public class PromoteSoftwareSourceToLifecycleStageRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the lifecycle stage. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleStageId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "lifecycleStageId")] + public string LifecycleStageId { get; set; } + + /// + /// Details for the software source promotion job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "PromoteSoftwareSourceToLifecycleStageDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public PromoteSoftwareSourceToLifecycleStageDetails PromoteSoftwareSourceToLifecycleStageDetails { get; set; } + + /// + /// The OCID for the software source. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/RefreshSoftwareOnManagedInstanceRequest.cs b/Osmanagementhub/requests/RefreshSoftwareOnManagedInstanceRequest.cs new file mode 100644 index 0000000000..b43602ae9d --- /dev/null +++ b/Osmanagementhub/requests/RefreshSoftwareOnManagedInstanceRequest.cs @@ -0,0 +1,60 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use RefreshSoftwareOnManagedInstance request. + /// + public class RefreshSoftwareOnManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/RemoveModuleStreamProfileFromManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/RemoveModuleStreamProfileFromManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..1466599a3b --- /dev/null +++ b/Osmanagementhub/requests/RemoveModuleStreamProfileFromManagedInstanceGroupRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use RemoveModuleStreamProfileFromManagedInstanceGroup request. + /// + public class RemoveModuleStreamProfileFromManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// Details for profiles to remove from the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "RemoveModuleStreamProfileFromManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public RemoveModuleStreamProfileFromManagedInstanceGroupDetails RemoveModuleStreamProfileFromManagedInstanceGroupDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/RemoveModuleStreamProfileFromManagedInstanceRequest.cs b/Osmanagementhub/requests/RemoveModuleStreamProfileFromManagedInstanceRequest.cs new file mode 100644 index 0000000000..42174c1eeb --- /dev/null +++ b/Osmanagementhub/requests/RemoveModuleStreamProfileFromManagedInstanceRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use RemoveModuleStreamProfileFromManagedInstance request. + /// + public class RemoveModuleStreamProfileFromManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// The details of the module stream profile to be removed from a managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "RemoveModuleStreamProfileFromManagedInstanceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public RemoveModuleStreamProfileFromManagedInstanceDetails RemoveModuleStreamProfileFromManagedInstanceDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/RemovePackagesFromManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/RemovePackagesFromManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..946f299e17 --- /dev/null +++ b/Osmanagementhub/requests/RemovePackagesFromManagedInstanceGroupRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use RemovePackagesFromManagedInstanceGroup request. + /// + public class RemovePackagesFromManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// Details for packages to remove from the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "RemovePackagesFromManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public RemovePackagesFromManagedInstanceGroupDetails RemovePackagesFromManagedInstanceGroupDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/RemovePackagesFromManagedInstanceRequest.cs b/Osmanagementhub/requests/RemovePackagesFromManagedInstanceRequest.cs new file mode 100644 index 0000000000..e14e2d7c6f --- /dev/null +++ b/Osmanagementhub/requests/RemovePackagesFromManagedInstanceRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use RemovePackagesFromManagedInstance request. + /// + public class RemovePackagesFromManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// Details about packages to be removed on a managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "RemovePackagesFromManagedInstanceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public RemovePackagesFromManagedInstanceDetails RemovePackagesFromManagedInstanceDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/RunScheduledJobNowRequest.cs b/Osmanagementhub/requests/RunScheduledJobNowRequest.cs new file mode 100644 index 0000000000..d18b066f86 --- /dev/null +++ b/Osmanagementhub/requests/RunScheduledJobNowRequest.cs @@ -0,0 +1,60 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use RunScheduledJobNow request. + /// + public class RunScheduledJobNowRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ScheduledJobId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "scheduledJobId")] + public string ScheduledJobId { 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; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/SearchSoftwareSourceModuleStreamsRequest.cs b/Osmanagementhub/requests/SearchSoftwareSourceModuleStreamsRequest.cs new file mode 100644 index 0000000000..7955ce00d2 --- /dev/null +++ b/Osmanagementhub/requests/SearchSoftwareSourceModuleStreamsRequest.cs @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use SearchSoftwareSourceModuleStreams request. + /// + public class SearchSoftwareSourceModuleStreamsRequest : Oci.Common.IOciRequest + { + + /// + /// Request body that takes a list of software sources and any search filters. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SearchSoftwareSourceModuleStreamsDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SearchSoftwareSourceModuleStreamsDetails SearchSoftwareSourceModuleStreamsDetails { 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 list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + } +} diff --git a/Osmanagementhub/requests/SearchSoftwareSourceModulesRequest.cs b/Osmanagementhub/requests/SearchSoftwareSourceModulesRequest.cs new file mode 100644 index 0000000000..7e506f5ab2 --- /dev/null +++ b/Osmanagementhub/requests/SearchSoftwareSourceModulesRequest.cs @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use SearchSoftwareSourceModules request. + /// + public class SearchSoftwareSourceModulesRequest : Oci.Common.IOciRequest + { + + /// + /// Request body that takes a list of software sources and any search filters. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SearchSoftwareSourceModulesDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SearchSoftwareSourceModulesDetails SearchSoftwareSourceModulesDetails { 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 list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + } +} diff --git a/Osmanagementhub/requests/SearchSoftwareSourcePackageGroupsRequest.cs b/Osmanagementhub/requests/SearchSoftwareSourcePackageGroupsRequest.cs new file mode 100644 index 0000000000..9fca5f78b8 --- /dev/null +++ b/Osmanagementhub/requests/SearchSoftwareSourcePackageGroupsRequest.cs @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use SearchSoftwareSourcePackageGroups request. + /// + public class SearchSoftwareSourcePackageGroupsRequest : Oci.Common.IOciRequest + { + + /// + /// Request body that takes in a list of software sources and other search parameters. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SearchSoftwareSourcePackageGroupsDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SearchSoftwareSourcePackageGroupsDetails SearchSoftwareSourcePackageGroupsDetails { 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 list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + } +} diff --git a/Osmanagementhub/requests/SummarizeManagedInstanceAnalyticsRequest.cs b/Osmanagementhub/requests/SummarizeManagedInstanceAnalyticsRequest.cs new file mode 100644 index 0000000000..5618f9349b --- /dev/null +++ b/Osmanagementhub/requests/SummarizeManagedInstanceAnalyticsRequest.cs @@ -0,0 +1,130 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use SummarizeManagedInstanceAnalytics request. + /// + public class SummarizeManagedInstanceAnalyticsRequest : Oci.Common.IOciRequest + { + + /// + /// A filter to return only metrics whose name matches the given metric names. + /// + /// + /// Required + /// + [Required(ErrorMessage = "MetricNames is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "metricNames", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List MetricNames { get; set; } + + /// + /// This compartmentId is used to list managed instances within a compartment. + /// Or serve as an additional filter to restrict only managed instances with in certain compartment if other filter presents. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "compartmentId")] + public string CompartmentId { get; set; } + + /// + /// The OCID of the managed instance group for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// The OCID of the lifecycle environment. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleEnvironmentId")] + public string LifecycleEnvironmentId { get; set; } + + /// + /// The OCID of the lifecycle stage for which to list resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "lifecycleStageId")] + public string LifecycleStageId { get; set; } + + /// + /// A filter to return only instances whose managed instance status matches the given status. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "status", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List Status { get; set; } + + /// + /// A filter to return resources that match the given display names. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayName", Oci.Common.Http.CollectionFormatType.Multi)] + public System.Collections.Generic.List DisplayName { get; set; } + + /// + /// A filter to return resources that may partially match the given display name. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "displayNameContains")] + public string DisplayNameContains { get; set; } + + /// + /// Filter instances by Location. Used when report target type is compartment or group. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "instanceLocation")] + public System.Nullable InstanceLocation { get; set; } + + /// + /// For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 50 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "limit")] + public System.Nullable Limit { get; set; } + + /// + /// For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. + /// For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + ///
+ /// Example: 3 + ///
+ [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "page")] + public string Page { get; set; } + + /// + /// + /// The field to sort by. Only one sort order may be provided. Default order for name is ascending. + /// + /// + /// + public enum SortByEnum { + [EnumMember(Value = "name")] + Name + }; + + /// + /// The field to sort by. Only one sort order may be provided. Default order for name is ascending. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortBy")] + public System.Nullable SortBy { get; set; } + + /// + /// The sort order to use, either 'ASC' or 'DESC'. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Query, "sortOrder")] + public System.Nullable SortOrder { 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/Osmanagementhub/requests/SwitchModuleStreamOnManagedInstanceRequest.cs b/Osmanagementhub/requests/SwitchModuleStreamOnManagedInstanceRequest.cs new file mode 100644 index 0000000000..0a1dbf1b99 --- /dev/null +++ b/Osmanagementhub/requests/SwitchModuleStreamOnManagedInstanceRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use SwitchModuleStreamOnManagedInstance request. + /// + public class SwitchModuleStreamOnManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// The details of the module stream to be switched on a managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SwitchModuleStreamOnManagedInstanceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SwitchModuleStreamOnManagedInstanceDetails SwitchModuleStreamOnManagedInstanceDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/SynchronizeMirrorsRequest.cs b/Osmanagementhub/requests/SynchronizeMirrorsRequest.cs new file mode 100644 index 0000000000..49962afa65 --- /dev/null +++ b/Osmanagementhub/requests/SynchronizeMirrorsRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use SynchronizeMirrors request. + /// + public class SynchronizeMirrorsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the management station. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagementStationId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managementStationId")] + public string ManagementStationId { get; set; } + + /// + /// Details for syncing mirrors + /// + /// + /// Required + /// + [Required(ErrorMessage = "SynchronizeMirrorsDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SynchronizeMirrorsDetails SynchronizeMirrorsDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/SynchronizeSingleMirrorsRequest.cs b/Osmanagementhub/requests/SynchronizeSingleMirrorsRequest.cs new file mode 100644 index 0000000000..7d2371021c --- /dev/null +++ b/Osmanagementhub/requests/SynchronizeSingleMirrorsRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use SynchronizeSingleMirrors request. + /// + public class SynchronizeSingleMirrorsRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the management station. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagementStationId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managementStationId")] + public string ManagementStationId { get; set; } + + /// + /// Unique Software Source identifier + /// + /// + /// Required + /// + [Required(ErrorMessage = "MirrorId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "mirrorId")] + public string MirrorId { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/UpdateAllPackagesOnManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/UpdateAllPackagesOnManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..745a538bfd --- /dev/null +++ b/Osmanagementhub/requests/UpdateAllPackagesOnManagedInstanceGroupRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use UpdateAllPackagesOnManagedInstanceGroup request. + /// + public class UpdateAllPackagesOnManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// Details for update operation on the managed instance group. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateAllPackagesOnManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateAllPackagesOnManagedInstanceGroupDetails UpdateAllPackagesOnManagedInstanceGroupDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/UpdateAllPackagesOnManagedInstancesInCompartmentRequest.cs b/Osmanagementhub/requests/UpdateAllPackagesOnManagedInstancesInCompartmentRequest.cs new file mode 100644 index 0000000000..9dfee9e620 --- /dev/null +++ b/Osmanagementhub/requests/UpdateAllPackagesOnManagedInstancesInCompartmentRequest.cs @@ -0,0 +1,60 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use UpdateAllPackagesOnManagedInstancesInCompartment request. + /// + public class UpdateAllPackagesOnManagedInstancesInCompartmentRequest : Oci.Common.IOciRequest + { + + /// + /// The details about package types are to be updated on all managed instances in a compartment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateAllPackagesOnManagedInstancesInCompartmentDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateAllPackagesOnManagedInstancesInCompartmentDetails UpdateAllPackagesOnManagedInstancesInCompartmentDetails { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + + /// + /// 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/Osmanagementhub/requests/UpdateLifecycleEnvironmentRequest.cs b/Osmanagementhub/requests/UpdateLifecycleEnvironmentRequest.cs new file mode 100644 index 0000000000..986338b6ed --- /dev/null +++ b/Osmanagementhub/requests/UpdateLifecycleEnvironmentRequest.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use UpdateLifecycleEnvironment request. + /// + public class UpdateLifecycleEnvironmentRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the lifecycle environment. + /// + /// + /// Required + /// + [Required(ErrorMessage = "LifecycleEnvironmentId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "lifecycleEnvironmentId")] + public string LifecycleEnvironmentId { get; set; } + + /// + /// The information to be updated. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateLifecycleEnvironmentDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateLifecycleEnvironmentDetails UpdateLifecycleEnvironmentDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/UpdateManagedInstanceGroupRequest.cs b/Osmanagementhub/requests/UpdateManagedInstanceGroupRequest.cs new file mode 100644 index 0000000000..8e66929119 --- /dev/null +++ b/Osmanagementhub/requests/UpdateManagedInstanceGroupRequest.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use UpdateManagedInstanceGroup request. + /// + public class UpdateManagedInstanceGroupRequest : Oci.Common.IOciRequest + { + + /// + /// The managed instance group OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceGroupId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceGroupId")] + public string ManagedInstanceGroupId { get; set; } + + /// + /// The information to be updated. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateManagedInstanceGroupDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateManagedInstanceGroupDetails UpdateManagedInstanceGroupDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/UpdateManagedInstanceRequest.cs b/Osmanagementhub/requests/UpdateManagedInstanceRequest.cs new file mode 100644 index 0000000000..e224d48df3 --- /dev/null +++ b/Osmanagementhub/requests/UpdateManagedInstanceRequest.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use UpdateManagedInstance request. + /// + public class UpdateManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// Details about a managed instance to be updated. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateManagedInstanceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateManagedInstanceDetails UpdateManagedInstanceDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/UpdateManagementStationRequest.cs b/Osmanagementhub/requests/UpdateManagementStationRequest.cs new file mode 100644 index 0000000000..b73f1e56dd --- /dev/null +++ b/Osmanagementhub/requests/UpdateManagementStationRequest.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use UpdateManagementStation request. + /// + public class UpdateManagementStationRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the management station. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagementStationId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managementStationId")] + public string ManagementStationId { get; set; } + + /// + /// The information to be updated. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateManagementStationDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateManagementStationDetails UpdateManagementStationDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/UpdatePackagesOnManagedInstanceRequest.cs b/Osmanagementhub/requests/UpdatePackagesOnManagedInstanceRequest.cs new file mode 100644 index 0000000000..69c1a561e6 --- /dev/null +++ b/Osmanagementhub/requests/UpdatePackagesOnManagedInstanceRequest.cs @@ -0,0 +1,70 @@ +/* + * 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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use UpdatePackagesOnManagedInstance request. + /// + public class UpdatePackagesOnManagedInstanceRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ManagedInstanceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "managedInstanceId")] + public string ManagedInstanceId { get; set; } + + /// + /// Details about packages to be updated on a managed instance. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdatePackagesOnManagedInstanceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdatePackagesOnManagedInstanceDetails UpdatePackagesOnManagedInstanceDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// A token that uniquely identifies a request so it can be retried in case of a timeout or + /// server error without risk of executing that same action again. Retry tokens expire after 24 + /// hours, but can be invalidated before then due to conflicting operations. For example, if a resource + /// has been deleted and purged from the system, then a retry of the original creation request + /// might be rejected. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-retry-token")] + public string OpcRetryToken { get; set; } + } +} diff --git a/Osmanagementhub/requests/UpdateProfileRequest.cs b/Osmanagementhub/requests/UpdateProfileRequest.cs new file mode 100644 index 0000000000..e7dc5cce47 --- /dev/null +++ b/Osmanagementhub/requests/UpdateProfileRequest.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use UpdateProfile request. + /// + public class UpdateProfileRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the registration profile. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ProfileId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "profileId")] + public string ProfileId { get; set; } + + /// + /// The information to be updated. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateProfileDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateProfileDetails UpdateProfileDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/UpdateScheduledJobRequest.cs b/Osmanagementhub/requests/UpdateScheduledJobRequest.cs new file mode 100644 index 0000000000..7b15f9d22f --- /dev/null +++ b/Osmanagementhub/requests/UpdateScheduledJobRequest.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use UpdateScheduledJob request. + /// + public class UpdateScheduledJobRequest : Oci.Common.IOciRequest + { + + /// + /// The OCID of the scheduled job. + /// + /// + /// Required + /// + [Required(ErrorMessage = "ScheduledJobId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "scheduledJobId")] + public string ScheduledJobId { get; set; } + + /// + /// The information to be updated. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateScheduledJobDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateScheduledJobDetails UpdateScheduledJobDetails { get; set; } + + /// + /// For optimistic concurrency control. In the PUT or DELETE call + /// for a resource, set the `if-match` parameter to the value of the + /// etag from a previous GET or POST response for that resource. + /// The resource will be updated or deleted only if the etag you + /// provide matches the resource's current etag value. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "if-match")] + public string IfMatch { get; set; } + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + } +} diff --git a/Osmanagementhub/requests/UpdateSoftwareSourceRequest.cs b/Osmanagementhub/requests/UpdateSoftwareSourceRequest.cs new file mode 100644 index 0000000000..bc55f83211 --- /dev/null +++ b/Osmanagementhub/requests/UpdateSoftwareSourceRequest.cs @@ -0,0 +1,59 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Requests +{ + /// + /// Click here to see an example of how to use UpdateSoftwareSource request. + /// + public class UpdateSoftwareSourceRequest : Oci.Common.IOciRequest + { + + /// + /// The software source OCID. + /// + /// + /// Required + /// + [Required(ErrorMessage = "SoftwareSourceId is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Path, "softwareSourceId")] + public string SoftwareSourceId { get; set; } + + /// + /// The information to be updated. + /// + /// + /// Required + /// + [Required(ErrorMessage = "UpdateSoftwareSourceDetails is required.")] + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdateSoftwareSourceDetails UpdateSoftwareSourceDetails { 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/Osmanagementhub/responses/AttachManagedInstancesToLifecycleStageResponse.cs b/Osmanagementhub/responses/AttachManagedInstancesToLifecycleStageResponse.cs new file mode 100644 index 0000000000..2662bf2b50 --- /dev/null +++ b/Osmanagementhub/responses/AttachManagedInstancesToLifecycleStageResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class AttachManagedInstancesToLifecycleStageResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-work-request-id")] + public string OpcWorkRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/AttachManagedInstancesToManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/AttachManagedInstancesToManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..5b492f0640 --- /dev/null +++ b/Osmanagementhub/responses/AttachManagedInstancesToManagedInstanceGroupResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class AttachManagedInstancesToManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/AttachSoftwareSourcesToManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/AttachSoftwareSourcesToManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..8ea75f53ef --- /dev/null +++ b/Osmanagementhub/responses/AttachSoftwareSourcesToManagedInstanceGroupResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class AttachSoftwareSourcesToManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/AttachSoftwareSourcesToManagedInstanceResponse.cs b/Osmanagementhub/responses/AttachSoftwareSourcesToManagedInstanceResponse.cs new file mode 100644 index 0000000000..e4debef499 --- /dev/null +++ b/Osmanagementhub/responses/AttachSoftwareSourcesToManagedInstanceResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class AttachSoftwareSourcesToManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/ChangeAvailabilityOfSoftwareSourcesResponse.cs b/Osmanagementhub/responses/ChangeAvailabilityOfSoftwareSourcesResponse.cs new file mode 100644 index 0000000000..dca2596a41 --- /dev/null +++ b/Osmanagementhub/responses/ChangeAvailabilityOfSoftwareSourcesResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ChangeAvailabilityOfSoftwareSourcesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/CreateEntitlementResponse.cs b/Osmanagementhub/responses/CreateEntitlementResponse.cs new file mode 100644 index 0000000000..9557f15bfc --- /dev/null +++ b/Osmanagementhub/responses/CreateEntitlementResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class CreateEntitlementResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/CreateLifecycleEnvironmentResponse.cs b/Osmanagementhub/responses/CreateLifecycleEnvironmentResponse.cs new file mode 100644 index 0000000000..c326da3d1b --- /dev/null +++ b/Osmanagementhub/responses/CreateLifecycleEnvironmentResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class CreateLifecycleEnvironmentResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned LifecycleEnvironment instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public LifecycleEnvironment LifecycleEnvironment { get; set; } + + } +} diff --git a/Osmanagementhub/responses/CreateManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/CreateManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..bbd9c5d7c8 --- /dev/null +++ b/Osmanagementhub/responses/CreateManagedInstanceGroupResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class CreateManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned ManagedInstanceGroup instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstanceGroup ManagedInstanceGroup { get; set; } + + } +} diff --git a/Osmanagementhub/responses/CreateManagementStationResponse.cs b/Osmanagementhub/responses/CreateManagementStationResponse.cs new file mode 100644 index 0000000000..8e361b3df3 --- /dev/null +++ b/Osmanagementhub/responses/CreateManagementStationResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class CreateManagementStationResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + /// + /// The returned ManagementStation instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagementStation ManagementStation { get; set; } + + } +} diff --git a/Osmanagementhub/responses/CreateProfileResponse.cs b/Osmanagementhub/responses/CreateProfileResponse.cs new file mode 100644 index 0000000000..67afeeedf4 --- /dev/null +++ b/Osmanagementhub/responses/CreateProfileResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class CreateProfileResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned Profile instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public Profile Profile { get; set; } + + } +} diff --git a/Osmanagementhub/responses/CreateScheduledJobResponse.cs b/Osmanagementhub/responses/CreateScheduledJobResponse.cs new file mode 100644 index 0000000000..3b700d6030 --- /dev/null +++ b/Osmanagementhub/responses/CreateScheduledJobResponse.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class CreateScheduledJobResponse : Oci.Common.IOciResponse + { + + /// + /// A link to the created scheduled job. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "Location")] + public string Location { 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. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + /// + /// The returned ScheduledJob instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ScheduledJob ScheduledJob { get; set; } + + } +} diff --git a/Osmanagementhub/responses/CreateSoftwareSourceResponse.cs b/Osmanagementhub/responses/CreateSoftwareSourceResponse.cs new file mode 100644 index 0000000000..a66f82a41b --- /dev/null +++ b/Osmanagementhub/responses/CreateSoftwareSourceResponse.cs @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class CreateSoftwareSourceResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// URL for the created software source, the software source OCID will be generated after this request is sent. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "location")] + public string Location { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-work-request-id")] + public string OpcWorkRequestId { get; set; } + + /// + /// The returned SoftwareSource instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SoftwareSource SoftwareSource { get; set; } + + } +} diff --git a/Osmanagementhub/responses/DeleteLifecycleEnvironmentResponse.cs b/Osmanagementhub/responses/DeleteLifecycleEnvironmentResponse.cs new file mode 100644 index 0000000000..7089996040 --- /dev/null +++ b/Osmanagementhub/responses/DeleteLifecycleEnvironmentResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class DeleteLifecycleEnvironmentResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/DeleteManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/DeleteManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..e6ce36f71c --- /dev/null +++ b/Osmanagementhub/responses/DeleteManagedInstanceGroupResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class DeleteManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/DeleteManagementStationResponse.cs b/Osmanagementhub/responses/DeleteManagementStationResponse.cs new file mode 100644 index 0000000000..da745c084a --- /dev/null +++ b/Osmanagementhub/responses/DeleteManagementStationResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class DeleteManagementStationResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/DeleteProfileResponse.cs b/Osmanagementhub/responses/DeleteProfileResponse.cs new file mode 100644 index 0000000000..f10da977e0 --- /dev/null +++ b/Osmanagementhub/responses/DeleteProfileResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class DeleteProfileResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/DeleteScheduledJobResponse.cs b/Osmanagementhub/responses/DeleteScheduledJobResponse.cs new file mode 100644 index 0000000000..b7137dc7ed --- /dev/null +++ b/Osmanagementhub/responses/DeleteScheduledJobResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class DeleteScheduledJobResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/DeleteSoftwareSourceResponse.cs b/Osmanagementhub/responses/DeleteSoftwareSourceResponse.cs new file mode 100644 index 0000000000..b532bce51a --- /dev/null +++ b/Osmanagementhub/responses/DeleteSoftwareSourceResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class DeleteSoftwareSourceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/DetachManagedInstancesFromLifecycleStageResponse.cs b/Osmanagementhub/responses/DetachManagedInstancesFromLifecycleStageResponse.cs new file mode 100644 index 0000000000..9ee2c23682 --- /dev/null +++ b/Osmanagementhub/responses/DetachManagedInstancesFromLifecycleStageResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class DetachManagedInstancesFromLifecycleStageResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-work-request-id")] + public string OpcWorkRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/DetachManagedInstancesFromManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/DetachManagedInstancesFromManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..91d4e3fc7d --- /dev/null +++ b/Osmanagementhub/responses/DetachManagedInstancesFromManagedInstanceGroupResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class DetachManagedInstancesFromManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/DetachSoftwareSourcesFromManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/DetachSoftwareSourcesFromManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..fb4adbd7e1 --- /dev/null +++ b/Osmanagementhub/responses/DetachSoftwareSourcesFromManagedInstanceGroupResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class DetachSoftwareSourcesFromManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/DetachSoftwareSourcesFromManagedInstanceResponse.cs b/Osmanagementhub/responses/DetachSoftwareSourcesFromManagedInstanceResponse.cs new file mode 100644 index 0000000000..c086ad2c95 --- /dev/null +++ b/Osmanagementhub/responses/DetachSoftwareSourcesFromManagedInstanceResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class DetachSoftwareSourcesFromManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/DisableModuleStreamOnManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/DisableModuleStreamOnManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..5cd6210dfc --- /dev/null +++ b/Osmanagementhub/responses/DisableModuleStreamOnManagedInstanceGroupResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class DisableModuleStreamOnManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/DisableModuleStreamOnManagedInstanceResponse.cs b/Osmanagementhub/responses/DisableModuleStreamOnManagedInstanceResponse.cs new file mode 100644 index 0000000000..d13ebb2a38 --- /dev/null +++ b/Osmanagementhub/responses/DisableModuleStreamOnManagedInstanceResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class DisableModuleStreamOnManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/EnableModuleStreamOnManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/EnableModuleStreamOnManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..3cbddf1252 --- /dev/null +++ b/Osmanagementhub/responses/EnableModuleStreamOnManagedInstanceGroupResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class EnableModuleStreamOnManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/EnableModuleStreamOnManagedInstanceResponse.cs b/Osmanagementhub/responses/EnableModuleStreamOnManagedInstanceResponse.cs new file mode 100644 index 0000000000..6bdaefd930 --- /dev/null +++ b/Osmanagementhub/responses/EnableModuleStreamOnManagedInstanceResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class EnableModuleStreamOnManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/GetErratumResponse.cs b/Osmanagementhub/responses/GetErratumResponse.cs new file mode 100644 index 0000000000..e86d11b1a7 --- /dev/null +++ b/Osmanagementhub/responses/GetErratumResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetErratumResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned Erratum instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public Erratum Erratum { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetLifecycleEnvironmentResponse.cs b/Osmanagementhub/responses/GetLifecycleEnvironmentResponse.cs new file mode 100644 index 0000000000..dc086d033b --- /dev/null +++ b/Osmanagementhub/responses/GetLifecycleEnvironmentResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetLifecycleEnvironmentResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned LifecycleEnvironment instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public LifecycleEnvironment LifecycleEnvironment { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetLifecycleStageResponse.cs b/Osmanagementhub/responses/GetLifecycleStageResponse.cs new file mode 100644 index 0000000000..26885002b9 --- /dev/null +++ b/Osmanagementhub/responses/GetLifecycleStageResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetLifecycleStageResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned LifecycleStage instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public LifecycleStage LifecycleStage { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetManagedInstanceAnalyticContentResponse.cs b/Osmanagementhub/responses/GetManagedInstanceAnalyticContentResponse.cs new file mode 100644 index 0000000000..7f90a6241f --- /dev/null +++ b/Osmanagementhub/responses/GetManagedInstanceAnalyticContentResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetManagedInstanceAnalyticContentResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned System.IO.Stream instance. Caller must always close the stream to avoid holding resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public System.IO.Stream InputStream { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetManagedInstanceContentResponse.cs b/Osmanagementhub/responses/GetManagedInstanceContentResponse.cs new file mode 100644 index 0000000000..65d29eb7d1 --- /dev/null +++ b/Osmanagementhub/responses/GetManagedInstanceContentResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetManagedInstanceContentResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned System.IO.Stream instance. Caller must always close the stream to avoid holding resources. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public System.IO.Stream InputStream { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/GetManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..68c2116d78 --- /dev/null +++ b/Osmanagementhub/responses/GetManagedInstanceGroupResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned ManagedInstanceGroup instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstanceGroup ManagedInstanceGroup { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetManagedInstanceResponse.cs b/Osmanagementhub/responses/GetManagedInstanceResponse.cs new file mode 100644 index 0000000000..1be414c718 --- /dev/null +++ b/Osmanagementhub/responses/GetManagedInstanceResponse.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// A decimal number representing the number of seconds the client should wait before polling this endpoint again. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "retry-after")] + public System.Nullable RetryAfter { get; set; } + + /// + /// The returned ManagedInstance instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstance ManagedInstance { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetManagementStationResponse.cs b/Osmanagementhub/responses/GetManagementStationResponse.cs new file mode 100644 index 0000000000..bf180589cc --- /dev/null +++ b/Osmanagementhub/responses/GetManagementStationResponse.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetManagementStationResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// A decimal number representing the number of seconds the client should wait before polling this endpoint again. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "retry-after")] + public System.Nullable RetryAfter { get; set; } + + /// + /// The returned ManagementStation instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagementStation ManagementStation { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetModuleStreamProfileResponse.cs b/Osmanagementhub/responses/GetModuleStreamProfileResponse.cs new file mode 100644 index 0000000000..1f25bd6fb7 --- /dev/null +++ b/Osmanagementhub/responses/GetModuleStreamProfileResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetModuleStreamProfileResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned ModuleStreamProfile instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ModuleStreamProfile ModuleStreamProfile { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetModuleStreamResponse.cs b/Osmanagementhub/responses/GetModuleStreamResponse.cs new file mode 100644 index 0000000000..05ac10c0d0 --- /dev/null +++ b/Osmanagementhub/responses/GetModuleStreamResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetModuleStreamResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned ModuleStream instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ModuleStream ModuleStream { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetPackageGroupResponse.cs b/Osmanagementhub/responses/GetPackageGroupResponse.cs new file mode 100644 index 0000000000..e4ca707634 --- /dev/null +++ b/Osmanagementhub/responses/GetPackageGroupResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetPackageGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned PackageGroup instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public PackageGroup PackageGroup { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetProfileResponse.cs b/Osmanagementhub/responses/GetProfileResponse.cs new file mode 100644 index 0000000000..46810acd8e --- /dev/null +++ b/Osmanagementhub/responses/GetProfileResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetProfileResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned Profile instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public Profile Profile { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetScheduledJobResponse.cs b/Osmanagementhub/responses/GetScheduledJobResponse.cs new file mode 100644 index 0000000000..d4031f4ca3 --- /dev/null +++ b/Osmanagementhub/responses/GetScheduledJobResponse.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetScheduledJobResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// A decimal number representing the number of seconds the client should wait before polling this endpoint again. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "retry-after")] + public System.Nullable RetryAfter { get; set; } + + /// + /// The returned ScheduledJob instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ScheduledJob ScheduledJob { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetSoftwarePackageResponse.cs b/Osmanagementhub/responses/GetSoftwarePackageResponse.cs new file mode 100644 index 0000000000..3ca3b4dc51 --- /dev/null +++ b/Osmanagementhub/responses/GetSoftwarePackageResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetSoftwarePackageResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SoftwarePackage instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SoftwarePackage SoftwarePackage { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetSoftwareSourceResponse.cs b/Osmanagementhub/responses/GetSoftwareSourceResponse.cs new file mode 100644 index 0000000000..6e7c2de379 --- /dev/null +++ b/Osmanagementhub/responses/GetSoftwareSourceResponse.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetSoftwareSourceResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// A decimal number representing the number of seconds the client should wait before polling this endpoint again. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "retry-after")] + public System.Nullable RetryAfter { get; set; } + + /// + /// The returned SoftwareSource instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SoftwareSource SoftwareSource { get; set; } + + } +} diff --git a/Osmanagementhub/responses/GetWorkRequestResponse.cs b/Osmanagementhub/responses/GetWorkRequestResponse.cs new file mode 100644 index 0000000000..e68c753a16 --- /dev/null +++ b/Osmanagementhub/responses/GetWorkRequestResponse.cs @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class GetWorkRequestResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// A decimal number representing the number of seconds the client should wait before polling this endpoint again. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "retry-after")] + public System.Nullable RetryAfter { get; set; } + + /// + /// The returned WorkRequest instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public WorkRequest WorkRequest { get; set; } + + } +} diff --git a/Osmanagementhub/responses/InstallModuleStreamProfileOnManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/InstallModuleStreamProfileOnManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..386e208c7c --- /dev/null +++ b/Osmanagementhub/responses/InstallModuleStreamProfileOnManagedInstanceGroupResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class InstallModuleStreamProfileOnManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/InstallModuleStreamProfileOnManagedInstanceResponse.cs b/Osmanagementhub/responses/InstallModuleStreamProfileOnManagedInstanceResponse.cs new file mode 100644 index 0000000000..f8afa54fbd --- /dev/null +++ b/Osmanagementhub/responses/InstallModuleStreamProfileOnManagedInstanceResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class InstallModuleStreamProfileOnManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/InstallPackagesOnManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/InstallPackagesOnManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..e84249928c --- /dev/null +++ b/Osmanagementhub/responses/InstallPackagesOnManagedInstanceGroupResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class InstallPackagesOnManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/InstallPackagesOnManagedInstanceResponse.cs b/Osmanagementhub/responses/InstallPackagesOnManagedInstanceResponse.cs new file mode 100644 index 0000000000..803781ba2a --- /dev/null +++ b/Osmanagementhub/responses/InstallPackagesOnManagedInstanceResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class InstallPackagesOnManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/ListEntitlementsResponse.cs b/Osmanagementhub/responses/ListEntitlementsResponse.cs new file mode 100644 index 0000000000..74255d1f7f --- /dev/null +++ b/Osmanagementhub/responses/ListEntitlementsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListEntitlementsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned EntitlementCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public EntitlementCollection EntitlementCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListErrataResponse.cs b/Osmanagementhub/responses/ListErrataResponse.cs new file mode 100644 index 0000000000..0ea89569cf --- /dev/null +++ b/Osmanagementhub/responses/ListErrataResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListErrataResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ErratumCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ErratumCollection ErratumCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListLifecycleEnvironmentsResponse.cs b/Osmanagementhub/responses/ListLifecycleEnvironmentsResponse.cs new file mode 100644 index 0000000000..dbeeadfdab --- /dev/null +++ b/Osmanagementhub/responses/ListLifecycleEnvironmentsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListLifecycleEnvironmentsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned LifecycleEnvironmentCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public LifecycleEnvironmentCollection LifecycleEnvironmentCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListLifecycleStageInstalledPackagesResponse.cs b/Osmanagementhub/responses/ListLifecycleStageInstalledPackagesResponse.cs new file mode 100644 index 0000000000..fdb3f162ed --- /dev/null +++ b/Osmanagementhub/responses/ListLifecycleStageInstalledPackagesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListLifecycleStageInstalledPackagesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned InstalledPackageCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public InstalledPackageCollection InstalledPackageCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListLifecycleStagesResponse.cs b/Osmanagementhub/responses/ListLifecycleStagesResponse.cs new file mode 100644 index 0000000000..6e7d846b0f --- /dev/null +++ b/Osmanagementhub/responses/ListLifecycleStagesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListLifecycleStagesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned LifecycleStageCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public LifecycleStageCollection LifecycleStageCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstanceAvailablePackagesResponse.cs b/Osmanagementhub/responses/ListManagedInstanceAvailablePackagesResponse.cs new file mode 100644 index 0000000000..7cecb85ed2 --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstanceAvailablePackagesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstanceAvailablePackagesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned AvailablePackageCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public AvailablePackageCollection AvailablePackageCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstanceAvailableSoftwareSourcesResponse.cs b/Osmanagementhub/responses/ListManagedInstanceAvailableSoftwareSourcesResponse.cs new file mode 100644 index 0000000000..89a14c18b7 --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstanceAvailableSoftwareSourcesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstanceAvailableSoftwareSourcesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned AvailableSoftwareSourceCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public AvailableSoftwareSourceCollection AvailableSoftwareSourceCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstanceErrataResponse.cs b/Osmanagementhub/responses/ListManagedInstanceErrataResponse.cs new file mode 100644 index 0000000000..96ba0aa557 --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstanceErrataResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstanceErrataResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ManagedInstanceErratumSummaryCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstanceErratumSummaryCollection ManagedInstanceErratumSummaryCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstanceGroupAvailableModulesResponse.cs b/Osmanagementhub/responses/ListManagedInstanceGroupAvailableModulesResponse.cs new file mode 100644 index 0000000000..2f0ad83fbf --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstanceGroupAvailableModulesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstanceGroupAvailableModulesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ManagedInstanceGroupAvailableModuleCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstanceGroupAvailableModuleCollection ManagedInstanceGroupAvailableModuleCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstanceGroupAvailablePackagesResponse.cs b/Osmanagementhub/responses/ListManagedInstanceGroupAvailablePackagesResponse.cs new file mode 100644 index 0000000000..b84dc823ca --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstanceGroupAvailablePackagesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstanceGroupAvailablePackagesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ManagedInstanceGroupAvailablePackageCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstanceGroupAvailablePackageCollection ManagedInstanceGroupAvailablePackageCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstanceGroupAvailableSoftwareSourcesResponse.cs b/Osmanagementhub/responses/ListManagedInstanceGroupAvailableSoftwareSourcesResponse.cs new file mode 100644 index 0000000000..2729d36479 --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstanceGroupAvailableSoftwareSourcesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstanceGroupAvailableSoftwareSourcesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned AvailableSoftwareSourceCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public AvailableSoftwareSourceCollection AvailableSoftwareSourceCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstanceGroupInstalledPackagesResponse.cs b/Osmanagementhub/responses/ListManagedInstanceGroupInstalledPackagesResponse.cs new file mode 100644 index 0000000000..35ee392def --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstanceGroupInstalledPackagesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstanceGroupInstalledPackagesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ManagedInstanceGroupInstalledPackageCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstanceGroupInstalledPackageCollection ManagedInstanceGroupInstalledPackageCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstanceGroupModulesResponse.cs b/Osmanagementhub/responses/ListManagedInstanceGroupModulesResponse.cs new file mode 100644 index 0000000000..133f26a828 --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstanceGroupModulesResponse.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.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstanceGroupModulesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ManagedInstanceGroupModuleCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstanceGroupModuleCollection ManagedInstanceGroupModuleCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstanceGroupsResponse.cs b/Osmanagementhub/responses/ListManagedInstanceGroupsResponse.cs new file mode 100644 index 0000000000..cc9196c065 --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstanceGroupsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstanceGroupsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ManagedInstanceGroupCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstanceGroupCollection ManagedInstanceGroupCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstanceInstalledPackagesResponse.cs b/Osmanagementhub/responses/ListManagedInstanceInstalledPackagesResponse.cs new file mode 100644 index 0000000000..d632e681ae --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstanceInstalledPackagesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstanceInstalledPackagesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned InstalledPackageCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public InstalledPackageCollection InstalledPackageCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstanceModulesResponse.cs b/Osmanagementhub/responses/ListManagedInstanceModulesResponse.cs new file mode 100644 index 0000000000..016d88e950 --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstanceModulesResponse.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.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstanceModulesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ManagedInstanceModuleCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstanceModuleCollection ManagedInstanceModuleCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstanceUpdatablePackagesResponse.cs b/Osmanagementhub/responses/ListManagedInstanceUpdatablePackagesResponse.cs new file mode 100644 index 0000000000..337c9326f5 --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstanceUpdatablePackagesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstanceUpdatablePackagesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned UpdatablePackageCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public UpdatablePackageCollection UpdatablePackageCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagedInstancesResponse.cs b/Osmanagementhub/responses/ListManagedInstancesResponse.cs new file mode 100644 index 0000000000..5fd72f3b22 --- /dev/null +++ b/Osmanagementhub/responses/ListManagedInstancesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagedInstancesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ManagedInstanceCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstanceCollection ManagedInstanceCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListManagementStationsResponse.cs b/Osmanagementhub/responses/ListManagementStationsResponse.cs new file mode 100644 index 0000000000..8034a7aa19 --- /dev/null +++ b/Osmanagementhub/responses/ListManagementStationsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListManagementStationsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ManagementStationCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagementStationCollection ManagementStationCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListMirrorsResponse.cs b/Osmanagementhub/responses/ListMirrorsResponse.cs new file mode 100644 index 0000000000..7006e79611 --- /dev/null +++ b/Osmanagementhub/responses/ListMirrorsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListMirrorsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned MirrorsCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public MirrorsCollection MirrorsCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListModuleStreamProfilesResponse.cs b/Osmanagementhub/responses/ListModuleStreamProfilesResponse.cs new file mode 100644 index 0000000000..76ea16c456 --- /dev/null +++ b/Osmanagementhub/responses/ListModuleStreamProfilesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListModuleStreamProfilesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ModuleStreamProfileCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ModuleStreamProfileCollection ModuleStreamProfileCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListModuleStreamsResponse.cs b/Osmanagementhub/responses/ListModuleStreamsResponse.cs new file mode 100644 index 0000000000..f02502854c --- /dev/null +++ b/Osmanagementhub/responses/ListModuleStreamsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListModuleStreamsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ModuleStreamCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ModuleStreamCollection ModuleStreamCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListPackageGroupsResponse.cs b/Osmanagementhub/responses/ListPackageGroupsResponse.cs new file mode 100644 index 0000000000..4e24ea0d6e --- /dev/null +++ b/Osmanagementhub/responses/ListPackageGroupsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListPackageGroupsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned PackageGroupCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public PackageGroupCollection PackageGroupCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListProfilesResponse.cs b/Osmanagementhub/responses/ListProfilesResponse.cs new file mode 100644 index 0000000000..da969734a7 --- /dev/null +++ b/Osmanagementhub/responses/ListProfilesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListProfilesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ProfileCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ProfileCollection ProfileCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListScheduledJobsResponse.cs b/Osmanagementhub/responses/ListScheduledJobsResponse.cs new file mode 100644 index 0000000000..9db26c6c16 --- /dev/null +++ b/Osmanagementhub/responses/ListScheduledJobsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListScheduledJobsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ScheduledJobCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ScheduledJobCollection ScheduledJobCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListSoftwarePackagesResponse.cs b/Osmanagementhub/responses/ListSoftwarePackagesResponse.cs new file mode 100644 index 0000000000..b4bd427541 --- /dev/null +++ b/Osmanagementhub/responses/ListSoftwarePackagesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListSoftwarePackagesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned SoftwarePackageCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SoftwarePackageCollection SoftwarePackageCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListSoftwareSourceVendorsResponse.cs b/Osmanagementhub/responses/ListSoftwareSourceVendorsResponse.cs new file mode 100644 index 0000000000..256442ee62 --- /dev/null +++ b/Osmanagementhub/responses/ListSoftwareSourceVendorsResponse.cs @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListSoftwareSourceVendorsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned SoftwareSourceVendorCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SoftwareSourceVendorCollection SoftwareSourceVendorCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListSoftwareSourcesResponse.cs b/Osmanagementhub/responses/ListSoftwareSourcesResponse.cs new file mode 100644 index 0000000000..7e3aa209d1 --- /dev/null +++ b/Osmanagementhub/responses/ListSoftwareSourcesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListSoftwareSourcesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned SoftwareSourceCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SoftwareSourceCollection SoftwareSourceCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListWorkRequestErrorsResponse.cs b/Osmanagementhub/responses/ListWorkRequestErrorsResponse.cs new file mode 100644 index 0000000000..4d6a13d31c --- /dev/null +++ b/Osmanagementhub/responses/ListWorkRequestErrorsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListWorkRequestErrorsResponse : Oci.Common.IOciResponse + { + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned WorkRequestErrorCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public WorkRequestErrorCollection WorkRequestErrorCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListWorkRequestLogsResponse.cs b/Osmanagementhub/responses/ListWorkRequestLogsResponse.cs new file mode 100644 index 0000000000..2e2a778839 --- /dev/null +++ b/Osmanagementhub/responses/ListWorkRequestLogsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListWorkRequestLogsResponse : Oci.Common.IOciResponse + { + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned WorkRequestLogEntryCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public WorkRequestLogEntryCollection WorkRequestLogEntryCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ListWorkRequestsResponse.cs b/Osmanagementhub/responses/ListWorkRequestsResponse.cs new file mode 100644 index 0000000000..fc69cf3c4f --- /dev/null +++ b/Osmanagementhub/responses/ListWorkRequestsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ListWorkRequestsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned WorkRequestSummaryCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public WorkRequestSummaryCollection WorkRequestSummaryCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/ManageModuleStreamsOnManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/ManageModuleStreamsOnManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..7cb4c03de2 --- /dev/null +++ b/Osmanagementhub/responses/ManageModuleStreamsOnManagedInstanceGroupResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ManageModuleStreamsOnManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/ManageModuleStreamsOnManagedInstanceResponse.cs b/Osmanagementhub/responses/ManageModuleStreamsOnManagedInstanceResponse.cs new file mode 100644 index 0000000000..8da91be293 --- /dev/null +++ b/Osmanagementhub/responses/ManageModuleStreamsOnManagedInstanceResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class ManageModuleStreamsOnManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/PromoteSoftwareSourceToLifecycleStageResponse.cs b/Osmanagementhub/responses/PromoteSoftwareSourceToLifecycleStageResponse.cs new file mode 100644 index 0000000000..126a814968 --- /dev/null +++ b/Osmanagementhub/responses/PromoteSoftwareSourceToLifecycleStageResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class PromoteSoftwareSourceToLifecycleStageResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/RefreshSoftwareOnManagedInstanceResponse.cs b/Osmanagementhub/responses/RefreshSoftwareOnManagedInstanceResponse.cs new file mode 100644 index 0000000000..5e3346b09f --- /dev/null +++ b/Osmanagementhub/responses/RefreshSoftwareOnManagedInstanceResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class RefreshSoftwareOnManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/RemoveModuleStreamProfileFromManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/RemoveModuleStreamProfileFromManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..d025a46f8a --- /dev/null +++ b/Osmanagementhub/responses/RemoveModuleStreamProfileFromManagedInstanceGroupResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class RemoveModuleStreamProfileFromManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/RemoveModuleStreamProfileFromManagedInstanceResponse.cs b/Osmanagementhub/responses/RemoveModuleStreamProfileFromManagedInstanceResponse.cs new file mode 100644 index 0000000000..41cd84d6b3 --- /dev/null +++ b/Osmanagementhub/responses/RemoveModuleStreamProfileFromManagedInstanceResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class RemoveModuleStreamProfileFromManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/RemovePackagesFromManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/RemovePackagesFromManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..3bfe5a6fae --- /dev/null +++ b/Osmanagementhub/responses/RemovePackagesFromManagedInstanceGroupResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class RemovePackagesFromManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/RemovePackagesFromManagedInstanceResponse.cs b/Osmanagementhub/responses/RemovePackagesFromManagedInstanceResponse.cs new file mode 100644 index 0000000000..0001c71e0b --- /dev/null +++ b/Osmanagementhub/responses/RemovePackagesFromManagedInstanceResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class RemovePackagesFromManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/RunScheduledJobNowResponse.cs b/Osmanagementhub/responses/RunScheduledJobNowResponse.cs new file mode 100644 index 0000000000..dd28a5f249 --- /dev/null +++ b/Osmanagementhub/responses/RunScheduledJobNowResponse.cs @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class RunScheduledJobNowResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + + } +} diff --git a/Osmanagementhub/responses/SearchSoftwareSourceModuleStreamsResponse.cs b/Osmanagementhub/responses/SearchSoftwareSourceModuleStreamsResponse.cs new file mode 100644 index 0000000000..d913c1890d --- /dev/null +++ b/Osmanagementhub/responses/SearchSoftwareSourceModuleStreamsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class SearchSoftwareSourceModuleStreamsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ModuleStreamCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ModuleStreamCollection ModuleStreamCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/SearchSoftwareSourceModulesResponse.cs b/Osmanagementhub/responses/SearchSoftwareSourceModulesResponse.cs new file mode 100644 index 0000000000..93141d61cf --- /dev/null +++ b/Osmanagementhub/responses/SearchSoftwareSourceModulesResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class SearchSoftwareSourceModulesResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ModuleCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ModuleCollection ModuleCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/SearchSoftwareSourcePackageGroupsResponse.cs b/Osmanagementhub/responses/SearchSoftwareSourcePackageGroupsResponse.cs new file mode 100644 index 0000000000..2f4ed1a84a --- /dev/null +++ b/Osmanagementhub/responses/SearchSoftwareSourcePackageGroupsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class SearchSoftwareSourcePackageGroupsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned PackageGroupCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public PackageGroupCollection PackageGroupCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/SummarizeManagedInstanceAnalyticsResponse.cs b/Osmanagementhub/responses/SummarizeManagedInstanceAnalyticsResponse.cs new file mode 100644 index 0000000000..b51b043a14 --- /dev/null +++ b/Osmanagementhub/responses/SummarizeManagedInstanceAnalyticsResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class SummarizeManagedInstanceAnalyticsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// For list pagination. When this header appears in the response, additional pages of results remain. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-next-page")] + public string OpcNextPage { get; set; } + + /// + /// The returned ManagedInstanceAnalyticCollection instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstanceAnalyticCollection ManagedInstanceAnalyticCollection { get; set; } + + } +} diff --git a/Osmanagementhub/responses/SwitchModuleStreamOnManagedInstanceResponse.cs b/Osmanagementhub/responses/SwitchModuleStreamOnManagedInstanceResponse.cs new file mode 100644 index 0000000000..8f77826a42 --- /dev/null +++ b/Osmanagementhub/responses/SwitchModuleStreamOnManagedInstanceResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class SwitchModuleStreamOnManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/SynchronizeMirrorsResponse.cs b/Osmanagementhub/responses/SynchronizeMirrorsResponse.cs new file mode 100644 index 0000000000..aeea5a13c6 --- /dev/null +++ b/Osmanagementhub/responses/SynchronizeMirrorsResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class SynchronizeMirrorsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/SynchronizeSingleMirrorsResponse.cs b/Osmanagementhub/responses/SynchronizeSingleMirrorsResponse.cs new file mode 100644 index 0000000000..51f961fbed --- /dev/null +++ b/Osmanagementhub/responses/SynchronizeSingleMirrorsResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class SynchronizeSingleMirrorsResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/UpdateAllPackagesOnManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/UpdateAllPackagesOnManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..7c90af25c3 --- /dev/null +++ b/Osmanagementhub/responses/UpdateAllPackagesOnManagedInstanceGroupResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class UpdateAllPackagesOnManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/UpdateAllPackagesOnManagedInstancesInCompartmentResponse.cs b/Osmanagementhub/responses/UpdateAllPackagesOnManagedInstancesInCompartmentResponse.cs new file mode 100644 index 0000000000..ef4936520d --- /dev/null +++ b/Osmanagementhub/responses/UpdateAllPackagesOnManagedInstancesInCompartmentResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class UpdateAllPackagesOnManagedInstancesInCompartmentResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/UpdateLifecycleEnvironmentResponse.cs b/Osmanagementhub/responses/UpdateLifecycleEnvironmentResponse.cs new file mode 100644 index 0000000000..e48dcb42ba --- /dev/null +++ b/Osmanagementhub/responses/UpdateLifecycleEnvironmentResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class UpdateLifecycleEnvironmentResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned LifecycleEnvironment instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public LifecycleEnvironment LifecycleEnvironment { get; set; } + + } +} diff --git a/Osmanagementhub/responses/UpdateManagedInstanceGroupResponse.cs b/Osmanagementhub/responses/UpdateManagedInstanceGroupResponse.cs new file mode 100644 index 0000000000..c62615bc4b --- /dev/null +++ b/Osmanagementhub/responses/UpdateManagedInstanceGroupResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class UpdateManagedInstanceGroupResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned ManagedInstanceGroup instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstanceGroup ManagedInstanceGroup { get; set; } + + } +} diff --git a/Osmanagementhub/responses/UpdateManagedInstanceResponse.cs b/Osmanagementhub/responses/UpdateManagedInstanceResponse.cs new file mode 100644 index 0000000000..11c1bce182 --- /dev/null +++ b/Osmanagementhub/responses/UpdateManagedInstanceResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class UpdateManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned ManagedInstance instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagedInstance ManagedInstance { get; set; } + + } +} diff --git a/Osmanagementhub/responses/UpdateManagementStationResponse.cs b/Osmanagementhub/responses/UpdateManagementStationResponse.cs new file mode 100644 index 0000000000..3e4eaacc1b --- /dev/null +++ b/Osmanagementhub/responses/UpdateManagementStationResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class UpdateManagementStationResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned ManagementStation instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ManagementStation ManagementStation { get; set; } + + } +} diff --git a/Osmanagementhub/responses/UpdatePackagesOnManagedInstanceResponse.cs b/Osmanagementhub/responses/UpdatePackagesOnManagedInstanceResponse.cs new file mode 100644 index 0000000000..7dd4a152ad --- /dev/null +++ b/Osmanagementhub/responses/UpdatePackagesOnManagedInstanceResponse.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.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class UpdatePackagesOnManagedInstanceResponse : Oci.Common.IOciResponse + { + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [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/Osmanagementhub/responses/UpdateProfileResponse.cs b/Osmanagementhub/responses/UpdateProfileResponse.cs new file mode 100644 index 0000000000..a1df415562 --- /dev/null +++ b/Osmanagementhub/responses/UpdateProfileResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class UpdateProfileResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned Profile instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public Profile Profile { get; set; } + + } +} diff --git a/Osmanagementhub/responses/UpdateScheduledJobResponse.cs b/Osmanagementhub/responses/UpdateScheduledJobResponse.cs new file mode 100644 index 0000000000..3b662b5ae8 --- /dev/null +++ b/Osmanagementhub/responses/UpdateScheduledJobResponse.cs @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ + +// NOTE: Code generated by OracleSDKGenerator. +// DO NOT EDIT this file manually. + + +using System.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class UpdateScheduledJobResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + /// + /// The returned ScheduledJob instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public ScheduledJob ScheduledJob { get; set; } + + } +} diff --git a/Osmanagementhub/responses/UpdateSoftwareSourceResponse.cs b/Osmanagementhub/responses/UpdateSoftwareSourceResponse.cs new file mode 100644 index 0000000000..5c57c07d2d --- /dev/null +++ b/Osmanagementhub/responses/UpdateSoftwareSourceResponse.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.Runtime.Serialization; +using Oci.OsmanagementhubService.Models; + +namespace Oci.OsmanagementhubService.Responses +{ + public class UpdateSoftwareSourceResponse : Oci.Common.IOciResponse + { + + /// + /// For optimistic concurrency control. See `if-match`. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "etag")] + public string Etag { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the request. If you need to contact + /// Oracle about a particular request, please provide the request ID. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-request-id")] + public string OpcRequestId { get; set; } + + + /// + /// Unique Oracle-assigned identifier for the asynchronous work. You can use this to query its status. + /// + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Header, "opc-work-request-id")] + public string OpcWorkRequestId { get; set; } + + /// + /// The returned SoftwareSource instance. + /// + [Oci.Common.Http.HttpConverter(Oci.Common.Http.TargetEnum.Body)] + public SoftwareSource SoftwareSource { get; set; } + + } +} diff --git a/oci-dotnet-sdk.sln b/oci-dotnet-sdk.sln index 247ddd5ab3..af9ba2873c 100644 --- a/oci-dotnet-sdk.sln +++ b/oci-dotnet-sdk.sln @@ -261,6 +261,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.DotNetSDK.Accessgoverna EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.DotNetSDK.Ocicontrolcenter", "Ocicontrolcenter\OCI.DotNetSDK.Ocicontrolcenter.csproj", "{5652C988-D920-48B4-BA93-A9829725EE10}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.DotNetSDK.Osmanagementhub", "Osmanagementhub\OCI.DotNetSDK.Osmanagementhub.csproj", "{49FE3E97-4B35-4C4A-AF9E-40C3261A0410}" +EndProject Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -2425,5 +2427,17 @@ Global {5652C988-D920-48B4-BA93-A9829725EE10}.Release|x64.Build.0 = Release|Any CPU {5652C988-D920-48B4-BA93-A9829725EE10}.Release|x86.ActiveCfg = Release|Any CPU {5652C988-D920-48B4-BA93-A9829725EE10}.Release|x86.Build.0 = Release|Any CPU + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410}.Debug|Any CPU.Build.0 = Debug|Any CPU + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410}.Debug|x64.ActiveCfg = Debug|Any CPU + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410}.Debug|x64.Build.0 = Debug|Any CPU + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410}.Debug|x86.ActiveCfg = Debug|Any CPU + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410}.Debug|x86.Build.0 = Debug|Any CPU + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410}.Release|Any CPU.ActiveCfg = Release|Any CPU + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410}.Release|Any CPU.Build.0 = Release|Any CPU + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410}.Release|x64.ActiveCfg = Release|Any CPU + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410}.Release|x64.Build.0 = Release|Any CPU + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410}.Release|x86.ActiveCfg = Release|Any CPU + {49FE3E97-4B35-4C4A-AF9E-40C3261A0410}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal