azure.mgmt.containerregistry.v2017_06_01_preview.models module

class azure.mgmt.containerregistry.v2017_06_01_preview.models.RegistryNameCheckRequest(name)[source]

Bases: msrest.serialization.Model

A request to check whether a container registry name is available.

Variables are only populated by the server, and will be ignored when sending a request.

Parameters:name (str) – The name of the container registry.
Variables:type (str) – The resource type of the container registry. This field must be set to ‘Microsoft.ContainerRegistry/registries’. Default value: “Microsoft.ContainerRegistry/registries” .
type = 'Microsoft.ContainerRegistry/registries'
class azure.mgmt.containerregistry.v2017_06_01_preview.models.RegistryNameStatus(name_available=None, reason=None, message=None)[source]

Bases: msrest.serialization.Model

The result of a request to check the availability of a container registry name.

Parameters:
  • name_available (bool) – The value that indicates whether the name is available.
  • reason (str) – If any, the reason that the name is not available.
  • message (str) – If any, the error message that provides more detail for the reason that the name is not available.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.OperationDisplayDefinition(provider=None, resource=None, operation=None, description=None)[source]

Bases: msrest.serialization.Model

The display information for a container registry operation.

Parameters:
  • provider (str) – The resource provider name: Microsoft.ContainerRegistry.
  • resource (str) – The resource on which the operation is performed.
  • operation (str) – The operation that users can perform.
  • description (str) – The description for the operation.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.OperationDefinition(name=None, display=None)[source]

Bases: msrest.serialization.Model

The definition of a container registry operation.

Parameters:
  • name (str) – Operation name: {provider}/{resource}/{operation}.
  • display (OperationDisplayDefinition) – The display information for the container registry operation.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.Sku(name)[source]

Bases: msrest.serialization.Model

The SKU of a container registry.

Variables are only populated by the server, and will be ignored when sending a request.

Parameters:name (str or SkuName) – The SKU name of the the container registry. Required for registry creation. Possible values include: ‘Basic’, ‘Managed_Basic’, ‘Managed_Standard’, ‘Managed_Premium’
Variables:tier (str or SkuTier) – The SKU tier based on the SKU name. Possible values include: ‘Basic’, ‘Managed’
class azure.mgmt.containerregistry.v2017_06_01_preview.models.Status[source]

Bases: msrest.serialization.Model

The status of an Azure resource at the time the operation was called.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • display_status (str) – The short label for the status.
  • message (str) – The detailed message for the status, including alerts and error messages.
  • timestamp (datetime) – The timestamp when the status was changed to the current value.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.StorageAccountProperties(id)[source]

Bases: msrest.serialization.Model

The properties of a storage account for a container registry. Only applicable to Basic SKU.

Parameters:id (str) – The resource ID of the storage account.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.Registry(location, sku, tags=None, admin_user_enabled=False, storage_account=None)[source]

Bases: azure.mgmt.containerregistry.v2017_06_01_preview.models.resource.Resource

An object that represents a container registry.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The resource ID.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • login_server (str) – The URL that can be used to log into the container registry.
  • creation_date (datetime) – The creation date of the container registry in ISO8601 format.
  • provisioning_state (str or ProvisioningState) – The provisioning state of the container registry at the time the operation was called. Possible values include: ‘Creating’, ‘Updating’, ‘Deleting’, ‘Succeeded’, ‘Failed’, ‘Canceled’
  • status (Status) – The status of the container registry at the time the operation was called.
Parameters:
  • location (str) – The location of the resource. This cannot be changed after the resource is created.
  • tags (dict) – The tags of the resource.
  • sku (Sku) – The SKU of the container registry.
  • admin_user_enabled (bool) – The value that indicates whether the admin user is enabled. Default value: False .
  • storage_account (StorageAccountProperties) – The properties of the storage account for the container registry. Only applicable to Basic SKU.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.RegistryUpdateParameters(tags=None, sku=None, admin_user_enabled=None, storage_account=None)[source]

Bases: msrest.serialization.Model

The parameters for updating a container registry.

Parameters:
  • tags (dict) – The tags for the container registry.
  • sku (Sku) – The SKU of the container registry.
  • admin_user_enabled (bool) – The value that indicates whether the admin user is enabled.
  • storage_account (StorageAccountProperties) – The parameters of a storage account for the container registry. Only applicable to Basic SKU. If specified, the storage account must be in the same physical location as the container registry.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.RegistryPassword(name=None, value=None)[source]

Bases: msrest.serialization.Model

The login password for the container registry.

Parameters:
  • name (str or PasswordName) – The password name. Possible values include: ‘password’, ‘password2’
  • value (str) – The password value.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.RegistryListCredentialsResult(username=None, passwords=None)[source]

Bases: msrest.serialization.Model

The response from the ListCredentials operation.

Parameters:
  • username (str) – The username for a container registry.
  • passwords (list of RegistryPassword) – The list of passwords for a container registry.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.RegenerateCredentialParameters(name)[source]

Bases: msrest.serialization.Model

The parameters used to regenerate the login credential.

Parameters:name (str or PasswordName) – Specifies name of the password which should be regenerated – password or password2. Possible values include: ‘password’, ‘password2’
class azure.mgmt.containerregistry.v2017_06_01_preview.models.RegistryUsage(name=None, limit=None, current_value=None, unit=None)[source]

Bases: msrest.serialization.Model

The quota usage for a container registry.

Parameters:
  • name (str) – The name of the usage.
  • limit (long) – The limit of the usage.
  • current_value (long) – The current value of the usage.
  • unit (str or RegistryUsageUnit) – The unit of measurement. Possible values include: ‘Count’, ‘Bytes’
class azure.mgmt.containerregistry.v2017_06_01_preview.models.RegistryUsageListResult(value=None)[source]

Bases: msrest.serialization.Model

The result of a request to get container registry quota usages.

Parameters:value (list of RegistryUsage) – The list of container registry quota usages.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.Replication(location, tags=None)[source]

Bases: azure.mgmt.containerregistry.v2017_06_01_preview.models.resource.Resource

An object that represents a replication for a container registry.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The resource ID.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • provisioning_state (str or ProvisioningState) – The provisioning state of the replication at the time the operation was called. Possible values include: ‘Creating’, ‘Updating’, ‘Deleting’, ‘Succeeded’, ‘Failed’, ‘Canceled’
  • status (Status) – The status of the replication at the time the operation was called.
Parameters:
  • location (str) – The location of the resource. This cannot be changed after the resource is created.
  • tags (dict) – The tags of the resource.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.Webhook(location, actions, tags=None, status=None, scope=None)[source]

Bases: azure.mgmt.containerregistry.v2017_06_01_preview.models.resource.Resource

An object that represents a webhook for a container registry.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The resource ID.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
  • provisioning_state (str or ProvisioningState) – The provisioning state of the webhook at the time the operation was called. Possible values include: ‘Creating’, ‘Updating’, ‘Deleting’, ‘Succeeded’, ‘Failed’, ‘Canceled’
Parameters:
  • location (str) – The location of the resource. This cannot be changed after the resource is created.
  • tags (dict) – The tags of the resource.
  • status (str or WebhookStatus) – The status of the webhook at the time the operation was called. Possible values include: ‘enabled’, ‘disabled’
  • scope (str) – The scope of repositories where the event can be triggered. For example, ‘foo:*‘ means events for all tags under repository ‘foo’. ‘foo:bar’ means events for ‘foo:bar’ only. ‘foo’ is equivalent to ‘foo:latest’. Empty means all events.
  • actions (list of str or WebhookAction) – The list of actions that trigger the webhook to post notifications.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.WebhookCreateParameters(location, service_uri, actions, tags=None, custom_headers=None, status=None, scope=None)[source]

Bases: msrest.serialization.Model

The parameters for creating a webhook.

Parameters:
  • tags (dict) – The tags for the webhook.
  • location (str) – The location of the webhook. This cannot be changed after the resource is created.
  • service_uri (str) – The service URI for the webhook to post notifications.
  • custom_headers (dict) – Custom headers that will be added to the webhook notifications.
  • status (str or WebhookStatus) – The status of the webhook at the time the operation was called. Possible values include: ‘enabled’, ‘disabled’
  • scope (str) – The scope of repositories where the event can be triggered. For example, ‘foo:*‘ means events for all tags under repository ‘foo’. ‘foo:bar’ means events for ‘foo:bar’ only. ‘foo’ is equivalent to ‘foo:latest’. Empty means all events.
  • actions (list of str or WebhookAction) – The list of actions that trigger the webhook to post notifications.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.WebhookUpdateParameters(tags=None, service_uri=None, custom_headers=None, status=None, scope=None, actions=None)[source]

Bases: msrest.serialization.Model

The parameters for updating a webhook.

Parameters:
  • tags (dict) – The tags for the webhook.
  • service_uri (str) – The service URI for the webhook to post notifications.
  • custom_headers (dict) – Custom headers that will be added to the webhook notifications.
  • status (str or WebhookStatus) – The status of the webhook at the time the operation was called. Possible values include: ‘enabled’, ‘disabled’
  • scope (str) – The scope of repositories where the event can be triggered. For example, ‘foo:*‘ means events for all tags under repository ‘foo’. ‘foo:bar’ means events for ‘foo:bar’ only. ‘foo’ is equivalent to ‘foo:latest’. Empty means all events.
  • actions (list of str or WebhookAction) – The list of actions that trigger the webhook to post notifications.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.EventInfo(id=None)[source]

Bases: msrest.serialization.Model

The basic information of an event.

Parameters:id (str) – The event ID.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.CallbackConfig(service_uri, custom_headers=None)[source]

Bases: msrest.serialization.Model

The configuration of service URI and custom headers for the webhook.

Parameters:
  • service_uri (str) – The service URI for the webhook to post notifications.
  • custom_headers (dict) – Custom headers that will be added to the webhook notifications.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.Target(media_type=None, size=None, digest=None, length=None, repository=None, url=None, tag=None)[source]

Bases: msrest.serialization.Model

The target of the event.

Parameters:
  • media_type (str) – The MIME type of the referenced object.
  • size (long) – The number of bytes of the content. Same as Length field.
  • digest (str) – The digest of the content, as defined by the Registry V2 HTTP API Specificiation.
  • length (long) – The number of bytes of the content. Same as Size field.
  • repository (str) – The repository name.
  • url (str) – The direct URL to the content.
  • tag (str) – The tag name.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.Request(id=None, addr=None, host=None, method=None, useragent=None)[source]

Bases: msrest.serialization.Model

The request that generated the event.

Parameters:
  • id (str) – The ID of the request that initiated the event.
  • addr (str) – The IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request.
  • host (str) – The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests.
  • method (str) – The request method that generated the event.
  • useragent (str) – The user agent header of the request.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.Actor(name=None)[source]

Bases: msrest.serialization.Model

The agent that initiated the event. For most situations, this could be from the authorization context of the request.

Parameters:name (str) – The subject or username associated with the request context that generated the event.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.Source(addr=None, instance_id=None)[source]

Bases: msrest.serialization.Model

The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.

Parameters:
  • addr (str) – The IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port.
  • instance_id (str) – The running instance of an application. Changes after each restart.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.EventContent(id=None, timestamp=None, action=None, target=None, request=None, actor=None, source=None)[source]

Bases: msrest.serialization.Model

The content of the event request message.

Parameters:
  • id (str) – The event ID.
  • timestamp (datetime) – The time at which the event occurred.
  • action (str) – The action that encompasses the provided event.
  • target (Target) – The target of the event.
  • request (Request) – The request that generated the event.
  • actor (Actor) – The agent that initiated the event. For most situations, this could be from the authorization context of the request.
  • source (Source) – The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.EventRequestMessage(content=None, headers=None, method=None, request_uri=None, version=None)[source]

Bases: msrest.serialization.Model

The event request message sent to the service URI.

Parameters:
  • content (EventContent) – The content of the event request message.
  • headers (dict) – The headers of the event request message.
  • method (str) – The HTTP method used to send the event request message.
  • request_uri (str) – The URI used to send the event request message.
  • version (str) – The HTTP message version.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.EventResponseMessage(content=None, headers=None, reason_phrase=None, status_code=None, version=None)[source]

Bases: msrest.serialization.Model

The event response message received from the service URI.

Parameters:
  • content (str) – The content of the event response message.
  • headers (dict) – The headers of the event response message.
  • reason_phrase (str) – The reason phrase of the event response message.
  • status_code (str) – The status code of the event response message.
  • version (str) – The HTTP message version.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.Event(id=None, event_request_message=None, event_response_message=None)[source]

Bases: azure.mgmt.containerregistry.v2017_06_01_preview.models.event_info.EventInfo

The event for a webhook.

Parameters:
  • id (str) – The event ID.
  • event_request_message (EventRequestMessage) – The event request message sent to the service URI.
  • event_response_message (EventResponseMessage) – The event response message received from the service URI.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.Resource(location, tags=None)[source]

Bases: msrest.serialization.Model

An Azure resource.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – The resource ID.
  • name (str) – The name of the resource.
  • type (str) – The type of the resource.
Parameters:
  • location (str) – The location of the resource. This cannot be changed after the resource is created.
  • tags (dict) – The tags of the resource.
class azure.mgmt.containerregistry.v2017_06_01_preview.models.RegistryPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Registry object

class azure.mgmt.containerregistry.v2017_06_01_preview.models.OperationDefinitionPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of OperationDefinition object

class azure.mgmt.containerregistry.v2017_06_01_preview.models.ReplicationPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Replication object

class azure.mgmt.containerregistry.v2017_06_01_preview.models.WebhookPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Webhook object

class azure.mgmt.containerregistry.v2017_06_01_preview.models.EventPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Event object

class azure.mgmt.containerregistry.v2017_06_01_preview.models.SkuName[source]

Bases: enum.Enum

basic = 'Basic'
managed_basic = 'Managed_Basic'
managed_premium = 'Managed_Premium'
managed_standard = 'Managed_Standard'
class azure.mgmt.containerregistry.v2017_06_01_preview.models.SkuTier[source]

Bases: enum.Enum

basic = 'Basic'
managed = 'Managed'
class azure.mgmt.containerregistry.v2017_06_01_preview.models.ProvisioningState[source]

Bases: enum.Enum

canceled = 'Canceled'
creating = 'Creating'
deleting = 'Deleting'
failed = 'Failed'
succeeded = 'Succeeded'
updating = 'Updating'
class azure.mgmt.containerregistry.v2017_06_01_preview.models.PasswordName[source]

Bases: enum.Enum

password = 'password'
password2 = 'password2'
class azure.mgmt.containerregistry.v2017_06_01_preview.models.RegistryUsageUnit[source]

Bases: enum.Enum

bytes = 'Bytes'
count = 'Count'
class azure.mgmt.containerregistry.v2017_06_01_preview.models.WebhookStatus[source]

Bases: enum.Enum

disabled = 'disabled'
enabled = 'enabled'
class azure.mgmt.containerregistry.v2017_06_01_preview.models.WebhookAction[source]

Bases: enum.Enum

delete = 'delete'
push = 'push'