azure.mgmt.containerregistry.v2018_02_01_preview.operations module¶
-
class
azure.mgmt.containerregistry.v2018_02_01_preview.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.
-
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
- Returns
RegistryNameStatus or ClientRawResponse if raw=true
- Return type
RegistryNameStatus or ClientRawResponse
- Raises
CloudError
-
create
(resource_group_name, registry_name, registry, 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 (Registry) – 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, polling=True, **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) – 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 None or ClientRawResponse<None> if raw==True
- Return type
AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]
- 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_config – Operation configuration overrides.
- Returns
Registry or ClientRawResponse if raw=true
- Return type
Registry or ClientRawResponse
- Raises
CloudError
-
get_build_source_upload_url
(resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config)[source]¶ Get the upload location for the user to be able to upload the source.
- 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_config – Operation configuration overrides.
- Returns
SourceUploadDefinition or ClientRawResponse if raw=true
- Return type
SourceUploadDefinition or ClientRawResponse
- Raises
CloudError
-
import_image
(resource_group_name, registry_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Copies an image to this container registry from 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.
parameters (ImportImageParameters) – The parameters specifying the image to copy and the source 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 None or ClientRawResponse<None> if raw==True
- Return type
AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]
- 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
- 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
- Returns
An iterator like instance of Registry
- Return type
- 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_config – Operation configuration overrides.
- Returns
RegistryListCredentialsResult or ClientRawResponse if raw=true
- Return type
RegistryListCredentialsResult or ClientRawResponse
- Raises
CloudError
-
list_policies
(resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config)[source]¶ Lists the policies 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_config – Operation configuration overrides.
- Returns
RegistryPolicies or ClientRawResponse if raw=true
- Return type
RegistryPolicies or ClientRawResponse
- Raises
CloudError
-
list_usages
(resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config)[source]¶ Gets the quota usages 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_config – Operation configuration overrides.
- Returns
RegistryUsageListResult or ClientRawResponse if raw=true
- Return type
RegistryUsageListResult or ClientRawResponse
- Raises
CloudError
-
queue_build
(resource_group_name, registry_name, build_request, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Creates a new build based on the request parameters and add it to the build queue.
- 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.
build_request (QueueBuildRequest) – The parameters of a build that needs to queued.
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 Build or ClientRawResponse<Build> if raw==True
- Return type
AzureOperationPoller[Build] or AzureOperationPoller[ClientRawResponse[Build]]
- 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_config – Operation 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, polling=True, **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) – 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
-
update_policies
(resource_group_name, registry_name, quarantine_policy=None, trust_policy=None, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Updates the policies 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.
quarantine_policy (QuarantinePolicy) – An object that represents quarantine policy for a container registry.
trust_policy (TrustPolicy) – An object that represents content trust policy for 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 RegistryPolicies or ClientRawResponse<RegistryPolicies> if raw==True
- Return type
AzureOperationPoller[RegistryPolicies] or AzureOperationPoller[ClientRawResponse[RegistryPolicies]]
- Raises
CloudError
-
models
= <module 'azure.mgmt.containerregistry.v2018_02_01_preview.models' from '/usr/lib/python3/dist-packages/azure/mgmt/containerregistry/v2018_02_01_preview/models/__init__.py'>¶
-
class
azure.mgmt.containerregistry.v2018_02_01_preview.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-10-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
- Raises
CloudError
-
models
= <module 'azure.mgmt.containerregistry.v2018_02_01_preview.models' from '/usr/lib/python3/dist-packages/azure/mgmt/containerregistry/v2018_02_01_preview/models/__init__.py'>¶
-
class
azure.mgmt.containerregistry.v2018_02_01_preview.operations.
ReplicationsOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
ReplicationsOperations 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-10-01”.
-
create
(resource_group_name, registry_name, replication_name, location, tags=None, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Creates a replication for 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.
replication_name (str) – The name of the replication.
location (str) – The location of the resource. This cannot be changed after the resource is created.
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 Replication or ClientRawResponse<Replication> if raw==True
- Return type
AzureOperationPoller[Replication] or AzureOperationPoller[ClientRawResponse[Replication]]
- Raises
CloudError
-
delete
(resource_group_name, registry_name, replication_name, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Deletes a replication from 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.
replication_name (str) – The name of the replication.
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 None or ClientRawResponse<None> if raw==True
- Return type
AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]
- Raises
CloudError
-
get
(resource_group_name, registry_name, replication_name, custom_headers=None, raw=False, **operation_config)[source]¶ Gets the properties of the specified replication.
- 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.
replication_name (str) – The name of the replication.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
Replication or ClientRawResponse if raw=true
- Return type
Replication or ClientRawResponse
- Raises
CloudError
-
list
(resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config)[source]¶ Lists all the replications 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_config – Operation configuration overrides.
- Returns
An iterator like instance of Replication
- Return type
- Raises
CloudError
-
update
(resource_group_name, registry_name, replication_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Updates a replication for 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.
replication_name (str) – The name of the replication.
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 Replication or ClientRawResponse<Replication> if raw==True
- Return type
AzureOperationPoller[Replication] or AzureOperationPoller[ClientRawResponse[Replication]]
- Raises
CloudError
-
models
= <module 'azure.mgmt.containerregistry.v2018_02_01_preview.models' from '/usr/lib/python3/dist-packages/azure/mgmt/containerregistry/v2018_02_01_preview/models/__init__.py'>¶
-
class
azure.mgmt.containerregistry.v2018_02_01_preview.operations.
WebhooksOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
WebhooksOperations 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-10-01”.
-
create
(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Creates a webhook for 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.
webhook_name (str) – The name of the webhook.
webhook_create_parameters (WebhookCreateParameters) – The parameters for creating a webhook.
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 Webhook or ClientRawResponse<Webhook> if raw==True
- Return type
AzureOperationPoller[Webhook] or AzureOperationPoller[ClientRawResponse[Webhook]]
- Raises
CloudError
-
delete
(resource_group_name, registry_name, webhook_name, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Deletes a webhook from 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.
webhook_name (str) – The name of the webhook.
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 None or ClientRawResponse<None> if raw==True
- Return type
AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]
- Raises
CloudError
-
get
(resource_group_name, registry_name, webhook_name, custom_headers=None, raw=False, **operation_config)[source]¶ Gets the properties of the specified webhook.
- 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.
webhook_name (str) – The name of the webhook.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
Webhook or ClientRawResponse if raw=true
- Return type
Webhook or ClientRawResponse
- Raises
CloudError
-
get_callback_config
(resource_group_name, registry_name, webhook_name, custom_headers=None, raw=False, **operation_config)[source]¶ Gets the configuration of service URI and custom headers for the webhook.
- 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.
webhook_name (str) – The name of the webhook.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
CallbackConfig or ClientRawResponse if raw=true
- Return type
CallbackConfig or ClientRawResponse
- Raises
CloudError
-
list
(resource_group_name, registry_name, custom_headers=None, raw=False, **operation_config)[source]¶ Lists all the webhooks 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_config – Operation configuration overrides.
- Returns
An iterator like instance of Webhook
- Return type
- Raises
CloudError
-
list_events
(resource_group_name, registry_name, webhook_name, custom_headers=None, raw=False, **operation_config)[source]¶ Lists recent events for the specified webhook.
- 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.
webhook_name (str) – The name of the webhook.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
An iterator like instance of Event
- Return type
- Raises
CloudError
-
ping
(resource_group_name, registry_name, webhook_name, custom_headers=None, raw=False, **operation_config)[source]¶ Triggers a ping event to be sent to the webhook.
- 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.
webhook_name (str) – The name of the webhook.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
EventInfo or ClientRawResponse if raw=true
- Return type
EventInfo or ClientRawResponse
- Raises
CloudError
-
update
(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Updates a webhook 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.
webhook_name (str) – The name of the webhook.
webhook_update_parameters (WebhookUpdateParameters) – The parameters for updating a webhook.
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 Webhook or ClientRawResponse<Webhook> if raw==True
- Return type
AzureOperationPoller[Webhook] or AzureOperationPoller[ClientRawResponse[Webhook]]
- Raises
CloudError
-
models
= <module 'azure.mgmt.containerregistry.v2018_02_01_preview.models' from '/usr/lib/python3/dist-packages/azure/mgmt/containerregistry/v2018_02_01_preview/models/__init__.py'>¶
-
class
azure.mgmt.containerregistry.v2018_02_01_preview.operations.
BuildsOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
BuildsOperations 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: “2018-02-01-preview”.
-
cancel
(resource_group_name, registry_name, build_id, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Cancel an existing build.
- 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.
build_id (str) – The build ID.
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 None or ClientRawResponse<None> if raw==True
- Return type
AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]
- Raises
CloudError
-
get
(resource_group_name, registry_name, build_id, custom_headers=None, raw=False, **operation_config)[source]¶ Gets the detailed information for a given build.
- 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.
build_id (str) – The build ID.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
Build or ClientRawResponse if raw=true
- Return type
Build or ClientRawResponse
- Raises
CloudError
-
get_log_link
(resource_group_name, registry_name, build_id, custom_headers=None, raw=False, **operation_config)[source]¶ Gets a link to download the build logs.
- 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.
build_id (str) – The build ID.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
BuildGetLogResult or ClientRawResponse if raw=true
- Return type
BuildGetLogResult or ClientRawResponse
- Raises
CloudError
-
list
(resource_group_name, registry_name, filter=None, top=None, skip_token=None, custom_headers=None, raw=False, **operation_config)[source]¶ Gets all the builds for a 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.
filter (str) – The builds filter to apply on the operation.
top (int) – $top is supported for get list of builds, which limits the maximum number of builds to return.
skip_token (str) – $skipToken is supported on get list of builds, which provides the next page in the list of builds.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
An iterator like instance of Build
- Return type
- Raises
CloudError
-
update
(resource_group_name, registry_name, build_id, is_archive_enabled=None, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Patch the build properties.
- 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.
build_id (str) – The build ID.
is_archive_enabled (bool) – The value that indicates whether archiving is enabled or not.
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 Build or ClientRawResponse<Build> if raw==True
- Return type
AzureOperationPoller[Build] or AzureOperationPoller[ClientRawResponse[Build]]
- Raises
CloudError
-
models
= <module 'azure.mgmt.containerregistry.v2018_02_01_preview.models' from '/usr/lib/python3/dist-packages/azure/mgmt/containerregistry/v2018_02_01_preview/models/__init__.py'>¶
-
class
azure.mgmt.containerregistry.v2018_02_01_preview.operations.
BuildStepsOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
BuildStepsOperations 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: “2018-02-01-preview”.
-
create
(resource_group_name, registry_name, build_task_name, step_name, properties=None, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Creates a build step for a build task.
- 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.
build_task_name (str) – The name of the container registry build task.
step_name (str) – The name of a build step for a container registry build task.
properties (BuildStepProperties) – The properties of a build step.
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 BuildStep or ClientRawResponse<BuildStep> if raw==True
- Return type
AzureOperationPoller[BuildStep] or AzureOperationPoller[ClientRawResponse[BuildStep]]
- Raises
CloudError
-
delete
(resource_group_name, registry_name, build_task_name, step_name, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Deletes a build step from the build task.
- 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.
build_task_name (str) – The name of the container registry build task.
step_name (str) – The name of a build step for a container registry build task.
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 None or ClientRawResponse<None> if raw==True
- Return type
AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]
- Raises
CloudError
-
get
(resource_group_name, registry_name, build_task_name, step_name, custom_headers=None, raw=False, **operation_config)[source]¶ Gets the build step for a build task.
- 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.
build_task_name (str) – The name of the container registry build task.
step_name (str) – The name of a build step for a container registry build task.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
BuildStep or ClientRawResponse if raw=true
- Return type
BuildStep or ClientRawResponse
- Raises
CloudError
-
list
(resource_group_name, registry_name, build_task_name, custom_headers=None, raw=False, **operation_config)[source]¶ List all the build steps for a given build task.
- 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.
build_task_name (str) – The name of the container registry build task.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
An iterator like instance of BuildStep
- Return type
- Raises
CloudError
-
list_build_arguments
(resource_group_name, registry_name, build_task_name, step_name, custom_headers=None, raw=False, **operation_config)[source]¶ List the build arguments for a step including the secret arguments.
- 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.
build_task_name (str) – The name of the container registry build task.
step_name (str) – The name of a build step for a container registry build task.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
An iterator like instance of BuildArgument
- Return type
- Raises
CloudError
-
update
(resource_group_name, registry_name, build_task_name, step_name, properties=None, tags=None, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Updates a build step in a build task.
- 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.
build_task_name (str) – The name of the container registry build task.
step_name (str) – The name of a build step for a container registry build task.
properties (BuildStepPropertiesUpdateParameters) – The properties for updating a build step.
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 BuildStep or ClientRawResponse<BuildStep> if raw==True
- Return type
AzureOperationPoller[BuildStep] or AzureOperationPoller[ClientRawResponse[BuildStep]]
- Raises
CloudError
-
models
= <module 'azure.mgmt.containerregistry.v2018_02_01_preview.models' from '/usr/lib/python3/dist-packages/azure/mgmt/containerregistry/v2018_02_01_preview/models/__init__.py'>¶
-
class
azure.mgmt.containerregistry.v2018_02_01_preview.operations.
BuildTasksOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
BuildTasksOperations 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: “2018-02-01-preview”.
-
create
(resource_group_name, registry_name, build_task_name, build_task_create_parameters, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Creates a build task for 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.
build_task_name (str) – The name of the container registry build task.
build_task_create_parameters (BuildTask) – The parameters for creating a build task.
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 BuildTask or ClientRawResponse<BuildTask> if raw==True
- Return type
AzureOperationPoller[BuildTask] or AzureOperationPoller[ClientRawResponse[BuildTask]]
- Raises
CloudError
-
delete
(resource_group_name, registry_name, build_task_name, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Deletes a specified build task.
- 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.
build_task_name (str) – The name of the container registry build task.
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 None or ClientRawResponse<None> if raw==True
- Return type
AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]
- Raises
CloudError
-
get
(resource_group_name, registry_name, build_task_name, custom_headers=None, raw=False, **operation_config)[source]¶ Get the properties of a specified build task.
- 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.
build_task_name (str) – The name of the container registry build task.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
BuildTask or ClientRawResponse if raw=true
- Return type
BuildTask or ClientRawResponse
- Raises
CloudError
-
list
(resource_group_name, registry_name, filter=None, skip_token=None, custom_headers=None, raw=False, **operation_config)[source]¶ Lists all the build tasks for a 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.
filter (str) – The build task filter to apply on the operation.
skip_token (str) – $skipToken is supported on get list of build tasks, which provides the next page in the list of tasks.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
An iterator like instance of BuildTask
- Return type
- Raises
CloudError
-
list_source_repository_properties
(resource_group_name, registry_name, build_task_name, custom_headers=None, raw=False, **operation_config)[source]¶ Get the source control properties for a build task.
- 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.
build_task_name (str) – The name of the container registry build task.
custom_headers (dict) – headers that will be added to the request
raw (bool) – returns the direct response alongside the deserialized response
operation_config – Operation configuration overrides.
- Returns
SourceRepositoryProperties or ClientRawResponse if raw=true
- Return type
SourceRepositoryProperties or ClientRawResponse
- Raises
CloudError
-
update
(resource_group_name, registry_name, build_task_name, build_task_update_parameters, custom_headers=None, raw=False, polling=True, **operation_config)[source]¶ Updates a build task 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.
build_task_name (str) – The name of the container registry build task.
build_task_update_parameters (BuildTaskUpdateParameters) – The parameters for updating a build task.
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 BuildTask or ClientRawResponse<BuildTask> if raw==True
- Return type
AzureOperationPoller[BuildTask] or AzureOperationPoller[ClientRawResponse[BuildTask]]
- Raises
CloudError
-
models
= <module 'azure.mgmt.containerregistry.v2018_02_01_preview.models' from '/usr/lib/python3/dist-packages/azure/mgmt/containerregistry/v2018_02_01_preview/models/__init__.py'>¶