Skip to content

Commit

Permalink
Releasing version 64.2.0
Browse files Browse the repository at this point in the history
Releasing version 64.2.0
  • Loading branch information
oci-dex-release-bot authored Jun 27, 2023
2 parents 8b6ed07 + ebc3943 commit 96ed2d0
Show file tree
Hide file tree
Showing 653 changed files with 43,240 additions and 279 deletions.
112 changes: 112 additions & 0 deletions Artifacts/ArtifactsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1534,6 +1534,118 @@ public async Task<UpdateContainerConfigurationResponse> UpdateContainerConfigura
}
}

/// <summary>
/// Modify the properties of a container image. Avoid entering confidential information.
/// </summary>
/// <param name="request">The request object containing the details to send. Required.</param>
/// <param name="retryConfiguration">The retry configuration that will be used by to send this request. Optional.</param>
/// <param name="cancellationToken">The cancellation token to cancel this operation. Optional.</param>
/// <param name="completionOption">The completion option for this operation. Optional.</param>
/// <returns>A response object containing details about the completed operation</returns>
/// <example>Click <a href="https://docs.cloud.oracle.com/en-us/iaas/tools/dot-net-examples/latest/artifacts/UpdateContainerImage.cs.html">here</a> to see an example of how to use UpdateContainerImage API.</example>
public async Task<UpdateContainerImageResponse> 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<UpdateContainerImageResponse>(responseMessage);
}
catch (OciException e)
{
logger.Error(e);
throw;
}
catch (Exception e)
{
logger.Error($"UpdateContainerImage failed with error: {e.Message}");
throw;
}
}

/// <summary>
/// Modify the properties of a container image signature. Avoid entering confidential information.
/// </summary>
/// <param name="request">The request object containing the details to send. Required.</param>
/// <param name="retryConfiguration">The retry configuration that will be used by to send this request. Optional.</param>
/// <param name="cancellationToken">The cancellation token to cancel this operation. Optional.</param>
/// <param name="completionOption">The completion option for this operation. Optional.</param>
/// <returns>A response object containing details about the completed operation</returns>
/// <example>Click <a href="https://docs.cloud.oracle.com/en-us/iaas/tools/dot-net-examples/latest/artifacts/UpdateContainerImageSignature.cs.html">here</a> to see an example of how to use UpdateContainerImageSignature API.</example>
public async Task<UpdateContainerImageSignatureResponse> 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<UpdateContainerImageSignatureResponse>(responseMessage);
}
catch (OciException e)
{
logger.Error(e);
throw;
}
catch (Exception e)
{
logger.Error($"UpdateContainerImageSignature failed with error: {e.Message}");
throw;
}
}

/// <summary>
/// Modify the properties of a container repository. Avoid entering confidential information.
/// </summary>
Expand Down
28 changes: 28 additions & 0 deletions Artifacts/ArtifactsWaiters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,34 @@ public Waiter<GetContainerImageRequest, GetContainerImageResponse> ForContainerI
/// <param name="request">Request to send.</param>
/// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param>
/// <returns>a new Oci.common.Waiter instance</returns>
public Waiter<GetContainerImageSignatureRequest, GetContainerImageSignatureResponse> ForContainerImageSignature(GetContainerImageSignatureRequest request, params ContainerImageSignature.LifecycleStateEnum[] targetStates)
{
return this.ForContainerImageSignature(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates);
}

/// <summary>
/// Creates a waiter using the provided configuration.
/// </summary>
/// <param name="request">Request to send.</param>
/// <param name="config">Wait Configuration</param>
/// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param>
/// <returns>a new Oci.common.Waiter instance</returns>
public Waiter<GetContainerImageSignatureRequest, GetContainerImageSignatureResponse> ForContainerImageSignature(GetContainerImageSignatureRequest request, WaiterConfiguration config, params ContainerImageSignature.LifecycleStateEnum[] targetStates)
{
var agent = new WaiterAgent<GetContainerImageSignatureRequest, GetContainerImageSignatureResponse>(
request,
request => client.GetContainerImageSignature(request),
response => targetStates.Contains(response.ContainerImageSignature.LifecycleState.Value),
targetStates.Contains(ContainerImageSignature.LifecycleStateEnum.Deleted)
);
return new Waiter<GetContainerImageSignatureRequest, GetContainerImageSignatureResponse>(config, agent);
}
/// <summary>
/// Creates a waiter using default wait configuration.
/// </summary>
/// <param name="request">Request to send.</param>
/// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param>
/// <returns>a new Oci.common.Waiter instance</returns>
public Waiter<GetContainerRepositoryRequest, GetContainerRepositoryResponse> ForContainerRepository(GetContainerRepositoryRequest request, params ContainerRepository.LifecycleStateEnum[] targetStates)
{
return this.ForContainerRepository(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates);
Expand Down
37 changes: 37 additions & 0 deletions Artifacts/models/ContainerImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,42 @@ public enum LifecycleStateEnum {
[JsonProperty(PropertyName = "versions")]
public System.Collections.Generic.List<ContainerVersion> Versions { get; set; }

/// <value>
/// 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).
/// <br/>
/// Example: {&quot;Department&quot;: &quot;Finance&quot;}
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "FreeformTags is required.")]
[JsonProperty(PropertyName = "freeformTags")]
public System.Collections.Generic.Dictionary<string, string> FreeformTags { get; set; }

/// <value>
/// 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).
/// <br/>
/// Example: {&quot;Operations&quot;: {&quot;CostCenter&quot;: &quot;42&quot;}}
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "DefinedTags is required.")]
[JsonProperty(PropertyName = "definedTags")]
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Object>> DefinedTags { get; set; }

/// <value>
/// The system tags for this resource. Each key is predefined and scoped to a namespace.
/// Example: {&quot;orcl-cloud&quot;: {&quot;free-tier-retained&quot;: &quot;true&quot;}}
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "SystemTags is required.")]
[JsonProperty(PropertyName = "systemTags")]
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Object>> SystemTags { get; set; }

}
}
64 changes: 64 additions & 0 deletions Artifacts/models/ContainerImageSignature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,70 @@ public enum SigningAlgorithmEnum {
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public System.Nullable<System.DateTime> TimeCreated { get; set; }
///
/// <value>
/// The current state of the container image signature.
/// </value>
///
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
};

/// <value>
/// The current state of the container image signature.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<LifecycleStateEnum> LifecycleState { get; set; }

/// <value>
/// 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).
/// <br/>
/// Example: {&quot;Department&quot;: &quot;Finance&quot;}
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "FreeformTags is required.")]
[JsonProperty(PropertyName = "freeformTags")]
public System.Collections.Generic.Dictionary<string, string> FreeformTags { get; set; }

/// <value>
/// 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).
/// <br/>
/// Example: {&quot;Operations&quot;: {&quot;CostCenter&quot;: &quot;42&quot;}}
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "DefinedTags is required.")]
[JsonProperty(PropertyName = "definedTags")]
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Object>> DefinedTags { get; set; }

/// <value>
/// The system tags for this resource. Each key is predefined and scoped to a namespace.
/// Example: {&quot;orcl-cloud&quot;: {&quot;free-tier-retained&quot;: &quot;true&quot;}}
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "SystemTags is required.")]
[JsonProperty(PropertyName = "systemTags")]
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Object>> SystemTags { get; set; }

}
}
48 changes: 48 additions & 0 deletions Artifacts/models/ContainerImageSignatureSummary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,53 @@ public enum SigningAlgorithmEnum {
[JsonProperty(PropertyName = "timeCreated")]
public System.Nullable<System.DateTime> TimeCreated { get; set; }

/// <value>
/// The current state of the container image signature.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<ContainerImageSignature.LifecycleStateEnum> LifecycleState { get; set; }

/// <value>
/// 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).
/// <br/>
/// Example: {&quot;Department&quot;: &quot;Finance&quot;}
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "FreeformTags is required.")]
[JsonProperty(PropertyName = "freeformTags")]
public System.Collections.Generic.Dictionary<string, string> FreeformTags { get; set; }

/// <value>
/// 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).
/// <br/>
/// Example: {&quot;Operations&quot;: {&quot;CostCenter&quot;: &quot;42&quot;}}
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "DefinedTags is required.")]
[JsonProperty(PropertyName = "definedTags")]
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Object>> DefinedTags { get; set; }

/// <value>
/// The system tags for this resource. Each key is predefined and scoped to a namespace.
/// Example: {&quot;orcl-cloud&quot;: {&quot;free-tier-retained&quot;: &quot;true&quot;}}
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "SystemTags is required.")]
[JsonProperty(PropertyName = "systemTags")]
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Object>> SystemTags { get; set; }

}
}
Loading

0 comments on commit 96ed2d0

Please sign in to comment.