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.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object 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, polling=True, **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) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response

  • polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy

Returns

An instance of LROPoller that returns Registry or ClientRawResponse<Registry> if raw==True

Return type

AzureOperationPoller[Registry] or AzureOperationPoller[ClientRawResponse[Registry]]

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
  • 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[Registry]

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[Registry]

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

models = <module 'azure.mgmt.containerregistry.v2017_03_01.models' from '/builddir/build/BUILD/azure-sdk-for-python-2b2cfd46758e7b9d55346f79f05592d7488c1bd0/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01/models/__init__.py'>
class azure.mgmt.containerregistry.v2017_03_01.operations.Operations(client, config, serializer, deserializer)[source]

Bases: object

Operations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object 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
  • 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 OperationDefinition

Return type

OperationDefinitionPaged[OperationDefinition]

Raises

CloudError

models = <module 'azure.mgmt.containerregistry.v2017_03_01.models' from '/builddir/build/BUILD/azure-sdk-for-python-2b2cfd46758e7b9d55346f79f05592d7488c1bd0/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01/models/__init__.py'>