azure.mgmt.containerregistry.v2017_03_01.operations module

class azure.mgmt.containerregistry.v2017_03_01.operations.RegistriesOperations(client, config, serializer, deserializer)[source]

Bases: object

RegistriesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – The client API version. Constant value: “2017-03-01”.

check_name_availability(name, custom_headers=None, raw=False, **operation_config)[source]

Checks whether the container registry name is available for use. The name must contain only alphanumeric characters, be globally unique, and between 5 and 50 characters in length.

Parameters:
  • name (str) – The name of the container registry.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

RegistryNameStatus or ClientRawResponse if raw=true

Return type:

RegistryNameStatus or ClientRawResponse

Raises:

CloudError

create(resource_group_name, registry_name, registry_create_parameters, custom_headers=None, raw=False, **operation_config)[source]

Creates a container registry with the specified parameters.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • registry_name (str) – The name of the container registry.
  • registry_create_parameters (RegistryCreateParameters) – The parameters for creating a container registry.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
Returns:

AzureOperationPoller instance that returns Registry or ClientRawResponse if raw=true

Return type:

AzureOperationPoller or ClientRawResponse

Raises:

CloudError

delete(resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config)[source]

Deletes a container registry.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • registry_name (str) – The name of the container registry.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

None or ClientRawResponse if raw=true

Return type:

None or ClientRawResponse

Raises:

CloudError

get(resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config)[source]

Gets the properties of the specified container registry.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • registry_name (str) – The name of the container registry.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Registry or ClientRawResponse if raw=true

Return type:

Registry or ClientRawResponse

Raises:

CloudError

list(custom_headers=None, raw=False, **operation_config)[source]

Lists all the container registries under the specified subscription.

Parameters:
Returns:

An iterator like instance of Registry

Return type:

RegistryPaged

Raises:

CloudError

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Lists all the container registries under the specified resource group.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

An iterator like instance of Registry

Return type:

RegistryPaged

Raises:

CloudError

list_credentials(resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config)[source]

Lists the login credentials for the specified container registry.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • registry_name (str) – The name of the container registry.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

RegistryListCredentialsResult or ClientRawResponse if raw=true

Return type:

RegistryListCredentialsResult or ClientRawResponse

Raises:

CloudError

regenerate_credential(resource_group_name, registry_name, name, custom_headers=None, raw=False, **operation_config)[source]

Regenerates one of the login credentials for the specified container registry.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • registry_name (str) – The name of the container registry.
  • name (str or PasswordName) – Specifies name of the password which should be regenerated – password or password2. Possible values include: ‘password’, ‘password2’
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

RegistryListCredentialsResult or ClientRawResponse if raw=true

Return type:

RegistryListCredentialsResult or ClientRawResponse

Raises:

CloudError

update(resource_group_name, registry_name, registry_update_parameters, custom_headers=None, raw=False, **operation_config)[source]

Updates a container registry with the specified parameters.

Parameters:
  • resource_group_name (str) – The name of the resource group to which the container registry belongs.
  • registry_name (str) – The name of the container registry.
  • registry_update_parameters (RegistryUpdateParameters) – The parameters for updating a container registry.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Returns:

Registry or ClientRawResponse if raw=true

Return type:

Registry or ClientRawResponse

Raises:

CloudError

class azure.mgmt.containerregistry.v2017_03_01.operations.Operations(client, config, serializer, deserializer)[source]

Bases: object

Operations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – The client API version. Constant value: “2017-03-01”.

list(custom_headers=None, raw=False, **operation_config)[source]

Lists all of the available Azure Container Registry REST API operations.

Parameters:
Returns:

An iterator like instance of OperationDefinition

Return type:

OperationDefinitionPaged

Raises:

CloudError