Class GenericArtifactsContentClient
Service client instance for GenericArtifactsContent.
Implements
Inherited Members
Namespace: Oci.GenericartifactscontentService
Assembly: OCI.DotNetSDK.Genericartifactscontent.dll
Syntax
public class GenericArtifactsContentClient : RegionalClientBase, IDisposable
Constructors
GenericArtifactsContentClient(IBasicAuthenticationDetailsProvider, ClientConfiguration, string)
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.
Declaration
public GenericArtifactsContentClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null)
Parameters
Type | Name | Description |
---|---|---|
IBasicAuthenticationDetailsProvider | authenticationDetailsProvider | The authentication details provider. Required. |
ClientConfiguration | clientConfiguration | The client configuration that contains settings to adjust REST client behaviors. Optional. |
string | endpoint | 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. |
Methods
GetGenericArtifactContent(GetGenericArtifactContentRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets the specified artifact's content.
Declaration
public Task<GetGenericArtifactContentResponse> GetGenericArtifactContent(GetGenericArtifactContentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetGenericArtifactContentRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<GetGenericArtifactContentResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetGenericArtifactContent API.
GetGenericArtifactContentByPath(GetGenericArtifactContentByPathRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets the content of an artifact with a specified artifactPath
and version
.
Declaration
public Task<GetGenericArtifactContentByPathResponse> GetGenericArtifactContentByPath(GetGenericArtifactContentByPathRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetGenericArtifactContentByPathRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<GetGenericArtifactContentByPathResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetGenericArtifactContentByPath API.
PutGenericArtifactContentByPath(PutGenericArtifactContentByPathRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Uploads an artifact. Provide artifactPath
, version
and content. Avoid entering confidential information when you define the path and version.
Declaration
public Task<PutGenericArtifactContentByPathResponse> PutGenericArtifactContentByPath(PutGenericArtifactContentByPathRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
PutGenericArtifactContentByPathRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<PutGenericArtifactContentByPathResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use PutGenericArtifactContentByPath API.