ContainerRegistryContentClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ContainerRegistryContentClient() |
Initializes a new instance of ContainerRegistryContentClient for mocking. |
ContainerRegistryContentClient(Uri, String) |
Initializes a new instance of the ContainerRegistryContentClient for managing container images and artifacts, using anonymous access to the registry. Only operations that support anonymous access are enabled. Other service methods will throw RequestFailedException if called from this client. |
ContainerRegistryContentClient(Uri, String, ContainerRegistryClientOptions) |
Initializes a new instance of the ContainerRegistryContentClient for managing container images and artifacts, using anonymous access to the registry. Only operations that support anonymous access are enabled. Other service methods will throw RequestFailedException if called from this client. |
ContainerRegistryContentClient(Uri, String, TokenCredential) |
Initializes a new instance of the ContainerRegistryContentClient for managing container images and artifacts. |
ContainerRegistryContentClient(Uri, String, TokenCredential, ContainerRegistryClientOptions) |
Initializes a new instance of the ContainerRegistryContentClient for managing container images and artifacts. |
ContainerRegistryContentClient()
Initializes a new instance of ContainerRegistryContentClient for mocking.
protected ContainerRegistryContentClient ();
Protected Sub New ()
Applies to
ContainerRegistryContentClient(Uri, String)
Initializes a new instance of the ContainerRegistryContentClient for managing container images and artifacts, using anonymous access to the registry. Only operations that support anonymous access are enabled. Other service methods will throw RequestFailedException if called from this client.
public ContainerRegistryContentClient (Uri endpoint, string repositoryName);
new Azure.Containers.ContainerRegistry.ContainerRegistryContentClient : Uri * string -> Azure.Containers.ContainerRegistry.ContainerRegistryContentClient
Public Sub New (endpoint As Uri, repositoryName As String)
Parameters
- endpoint
- Uri
The URI endpoint of the container registry. This is likely to be similar to "https://{registry-name}.azurecr.io".
- repositoryName
- String
The name of the repository that logically groups the artifact parts.
Exceptions
Thrown when the endpoint
or repositoryName
is null.
Applies to
ContainerRegistryContentClient(Uri, String, ContainerRegistryClientOptions)
Initializes a new instance of the ContainerRegistryContentClient for managing container images and artifacts, using anonymous access to the registry. Only operations that support anonymous access are enabled. Other service methods will throw RequestFailedException if called from this client.
public ContainerRegistryContentClient (Uri endpoint, string repositoryName, Azure.Containers.ContainerRegistry.ContainerRegistryClientOptions options);
new Azure.Containers.ContainerRegistry.ContainerRegistryContentClient : Uri * string * Azure.Containers.ContainerRegistry.ContainerRegistryClientOptions -> Azure.Containers.ContainerRegistry.ContainerRegistryContentClient
Public Sub New (endpoint As Uri, repositoryName As String, options As ContainerRegistryClientOptions)
Parameters
- endpoint
- Uri
The URI endpoint of the container registry. This is likely to be similar to "https://{registry-name}.azurecr.io".
- repositoryName
- String
The name of the repository that logically groups the artifact parts.
- options
- ContainerRegistryClientOptions
Client configuration options for connecting to Azure Container Registry.
Exceptions
Thrown when the endpoint
or repositoryName
is null.
Applies to
ContainerRegistryContentClient(Uri, String, TokenCredential)
Initializes a new instance of the ContainerRegistryContentClient for managing container images and artifacts.
public ContainerRegistryContentClient (Uri endpoint, string repositoryName, Azure.Core.TokenCredential credential);
new Azure.Containers.ContainerRegistry.ContainerRegistryContentClient : Uri * string * Azure.Core.TokenCredential -> Azure.Containers.ContainerRegistry.ContainerRegistryContentClient
Public Sub New (endpoint As Uri, repositoryName As String, credential As TokenCredential)
Parameters
- endpoint
- Uri
The URI endpoint of the container registry. This is likely to be similar to "https://{registry-name}.azurecr.io".
- repositoryName
- String
The name of the repository that logically groups the artifact parts.
- credential
- TokenCredential
The API key credential used to authenticate requests against the container registry.
Exceptions
Thrown when the endpoint
, credential
, or repositoryName
is null.
Applies to
ContainerRegistryContentClient(Uri, String, TokenCredential, ContainerRegistryClientOptions)
Initializes a new instance of the ContainerRegistryContentClient for managing container images and artifacts.
public ContainerRegistryContentClient (Uri endpoint, string repositoryName, Azure.Core.TokenCredential credential, Azure.Containers.ContainerRegistry.ContainerRegistryClientOptions options);
new Azure.Containers.ContainerRegistry.ContainerRegistryContentClient : Uri * string * Azure.Core.TokenCredential * Azure.Containers.ContainerRegistry.ContainerRegistryClientOptions -> Azure.Containers.ContainerRegistry.ContainerRegistryContentClient
Public Sub New (endpoint As Uri, repositoryName As String, credential As TokenCredential, options As ContainerRegistryClientOptions)
Parameters
- endpoint
- Uri
The URI endpoint of the container registry. This is likely to be similar to "https://{registry-name}.azurecr.io".
- repositoryName
- String
The name of the repository that logically groups the artifact parts.
- credential
- TokenCredential
The API key credential used to authenticate requests against the container registry.
- options
- ContainerRegistryClientOptions
Client configuration options for connecting to Azure Container Registry.
Exceptions
Thrown when the endpoint
, credential
, or repositoryName
is null.