Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from .status_py3 import Status
from .storage_account_properties_py3 import StorageAccountProperties
from .registry_py3 import Registry
from .registry_identity_py3 import RegistryIdentity
from .registry_update_parameters_py3 import RegistryUpdateParameters
from .registry_password_py3 import RegistryPassword
from .registry_list_credentials_result_py3 import RegistryListCredentialsResult
Expand Down Expand Up @@ -60,6 +61,7 @@
from .status import Status
from .storage_account_properties import StorageAccountProperties
from .registry import Registry
from .registry_identity import RegistryIdentity
from .registry_update_parameters import RegistryUpdateParameters
from .registry_password import RegistryPassword
from .registry_list_credentials_result import RegistryListCredentialsResult
Expand Down Expand Up @@ -116,6 +118,7 @@
'Status',
'StorageAccountProperties',
'Registry',
'RegistryIdentity',
'RegistryUpdateParameters',
'RegistryPassword',
'RegistryListCredentialsResult',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class RegistryIdentity(Model):
"""Identity of the container registry.

:param identity_type: The type of identity used for registry.
:type identity_type: str
:param identity_principal_id: The principal ID of registry identity.
:type identity_principal_id: str
:param tenant_id: The tenant ID of registry.
:type tenant_id: str
"""

_attribute_map = {
'identity_type': {'key': 'identityType', 'type': 'str'},
'identity_principal_id': {'key': 'identityPrincipalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(RegistryIdentity, self).__init__(**kwargs)
self.identity_type = kwargs.get('identity_type', None)
self.identity_principal_id = kwargs.get('identity_principal_id', None)
self.tenant_id = kwargs.get('tenant_id', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class RegistryIdentity(Model):
"""Identity of the container registry.

:param identity_type: The type of identity used for registry.
:type identity_type: str
:param identity_principal_id: The principal ID of registry identity.
:type identity_principal_id: str
:param tenant_id: The tenant ID of registry.
:type tenant_id: str
"""

_attribute_map = {
'identity_type': {'key': 'identityType', 'type': 'str'},
'identity_principal_id': {'key': 'identityPrincipalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, *, identity_type: str=None, identity_principal_id: str=None, tenant_id: str=None, **kwargs) -> None:
super(RegistryIdentity, self).__init__(**kwargs)
self.identity_type = identity_type
self.identity_principal_id = identity_principal_id
self.tenant_id = tenant_id
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from .status_py3 import Status
from .storage_account_properties_py3 import StorageAccountProperties
from .registry_py3 import Registry
from .registry_identity_py3 import RegistryIdentity
from .registry_update_parameters_py3 import RegistryUpdateParameters
from .registry_password_py3 import RegistryPassword
from .registry_list_credentials_result_py3 import RegistryListCredentialsResult
Expand Down Expand Up @@ -87,6 +88,7 @@
from .status import Status
from .storage_account_properties import StorageAccountProperties
from .registry import Registry
from .registry_identity import RegistryIdentity
from .registry_update_parameters import RegistryUpdateParameters
from .registry_password import RegistryPassword
from .registry_list_credentials_result import RegistryListCredentialsResult
Expand Down Expand Up @@ -182,6 +184,7 @@
'Status',
'StorageAccountProperties',
'Registry',
'RegistryIdentity',
'RegistryUpdateParameters',
'RegistryPassword',
'RegistryListCredentialsResult',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class RegistryIdentity(Model):
"""Identity of the container registry.

:param identity_type: The type of identity used for registry.
:type identity_type: str
:param identity_principal_id: The principal ID of registry identity.
:type identity_principal_id: str
:param tenant_id: The tenant ID of registry.
:type tenant_id: str
"""

_attribute_map = {
'identity_type': {'key': 'identityType', 'type': 'str'},
'identity_principal_id': {'key': 'identityPrincipalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(RegistryIdentity, self).__init__(**kwargs)
self.identity_type = kwargs.get('identity_type', None)
self.identity_principal_id = kwargs.get('identity_principal_id', None)
self.tenant_id = kwargs.get('tenant_id', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class RegistryIdentity(Model):
"""Identity of the container registry.

:param identity_type: The type of identity used for registry.
:type identity_type: str
:param identity_principal_id: The principal ID of registry identity.
:type identity_principal_id: str
:param tenant_id: The tenant ID of registry.
:type tenant_id: str
"""

_attribute_map = {
'identity_type': {'key': 'identityType', 'type': 'str'},
'identity_principal_id': {'key': 'identityPrincipalId', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, *, identity_type: str=None, identity_principal_id: str=None, tenant_id: str=None, **kwargs) -> None:
super(RegistryIdentity, self).__init__(**kwargs)
self.identity_type = identity_type
self.identity_principal_id = identity_principal_id
self.tenant_id = tenant_id
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from .status_py3 import Status
from .storage_account_properties_py3 import StorageAccountProperties
from .registry_py3 import Registry
from .registry_identity_py3 import RegistryIdentity
from .registry_update_parameters_py3 import RegistryUpdateParameters
from .registry_password_py3 import RegistryPassword
from .registry_list_credentials_result_py3 import RegistryListCredentialsResult
Expand Down Expand Up @@ -100,6 +101,7 @@
from .status import Status
from .storage_account_properties import StorageAccountProperties
from .registry import Registry
from .registry_identity import RegistryIdentity
from .registry_update_parameters import RegistryUpdateParameters
from .registry_password import RegistryPassword
from .registry_list_credentials_result import RegistryListCredentialsResult
Expand Down Expand Up @@ -210,6 +212,7 @@
'Status',
'StorageAccountProperties',
'Registry',
'RegistryIdentity',
'RegistryUpdateParameters',
'RegistryPassword',
'RegistryListCredentialsResult',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class BaseImageTrigger(Model):
base image dependency updates. Possible values include: 'All', 'Runtime'
:type base_image_trigger_type: str or
~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageTriggerType
:param status: The current status of build trigger. Possible values
include: 'Disabled', 'Enabled'
:param status: The current status of trigger. Possible values include:
'Disabled', 'Enabled'
:type status: str or
~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus
:param name: Required. The name of the trigger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class BaseImageTrigger(Model):
base image dependency updates. Possible values include: 'All', 'Runtime'
:type base_image_trigger_type: str or
~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageTriggerType
:param status: The current status of build trigger. Possible values
include: 'Disabled', 'Enabled'
:param status: The current status of trigger. Possible values include:
'Disabled', 'Enabled'
:type status: str or
~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus
:param name: Required. The name of the trigger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class BaseImageTriggerUpdateParameters(Model):
image dependency updates. Possible values include: 'All', 'Runtime'
:type base_image_trigger_type: str or
~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageTriggerType
:param status: The current status of build trigger. Possible values
include: 'Disabled', 'Enabled'
:param status: The current status of trigger. Possible values include:
'Disabled', 'Enabled'
:type status: str or
~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus
:param name: Required. The name of the trigger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class BaseImageTriggerUpdateParameters(Model):
image dependency updates. Possible values include: 'All', 'Runtime'
:type base_image_trigger_type: str or
~azure.mgmt.containerregistry.v2018_09_01.models.BaseImageTriggerType
:param status: The current status of build trigger. Possible values
include: 'Disabled', 'Enabled'
:param status: The current status of trigger. Possible values include:
'Disabled', 'Enabled'
:type status: str or
~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus
:param name: Required. The name of the trigger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ class RunStatus(str, Enum):
class RunType(str, Enum):

quick_build = "QuickBuild"
quick_run = "QuickRun"
auto_build = "AutoBuild"
auto_run = "AutoRun"


class OS(str, Enum):
Expand Down Expand Up @@ -145,6 +147,7 @@ class TokenType(str, Enum):
class SourceTriggerEvent(str, Enum):

commit = "commit"
pullrequest = "pullrequest"


class TriggerStatus(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,25 @@ class DockerBuildRequest(RunRequest):
executing the run.
:type arguments:
list[~azure.mgmt.containerregistry.v2018_09_01.models.Argument]
:param source_location: Required. The URL(absolute or relative) of the
source that needs to be built. For Docker build, it can be an URL to a tar
or github repoistory as supported by Docker.
If it is relative URL, the relative path should be obtained from calling
getSourceUploadUrl API.
:type source_location: str
:param timeout: Build timeout in seconds. Default value: 3600 .
:param timeout: Run timeout in seconds. Default value: 3600 .
:type timeout: int
:param platform: Required. The platform properties against which the build
will happen.
:param platform: Required. The platform properties against which the run
has to happen.
:type platform:
~azure.mgmt.containerregistry.v2018_09_01.models.PlatformProperties
:param agent_configuration: The machine configuration of the build agent.
:param agent_configuration: The machine configuration of the run agent.
:type agent_configuration:
~azure.mgmt.containerregistry.v2018_09_01.models.AgentProperties
:param source_location: The URL(absolute or relative) of the source
context. It can be an URL to a tar or git repoistory.
If it is relative URL, the relative path should be obtained from calling
listBuildSourceUploadUrl API.
:type source_location: str
"""

_validation = {
'type': {'required': True},
'docker_file_path': {'required': True},
'source_location': {'required': True},
'timeout': {'maximum': 28800, 'minimum': 300},
'platform': {'required': True},
}
Expand All @@ -71,10 +69,10 @@ class DockerBuildRequest(RunRequest):
'no_cache': {'key': 'noCache', 'type': 'bool'},
'docker_file_path': {'key': 'dockerFilePath', 'type': 'str'},
'arguments': {'key': 'arguments', 'type': '[Argument]'},
'source_location': {'key': 'sourceLocation', 'type': 'str'},
'timeout': {'key': 'timeout', 'type': 'int'},
'platform': {'key': 'platform', 'type': 'PlatformProperties'},
'agent_configuration': {'key': 'agentConfiguration', 'type': 'AgentProperties'},
'source_location': {'key': 'sourceLocation', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -84,8 +82,8 @@ def __init__(self, **kwargs):
self.no_cache = kwargs.get('no_cache', False)
self.docker_file_path = kwargs.get('docker_file_path', None)
self.arguments = kwargs.get('arguments', None)
self.source_location = kwargs.get('source_location', None)
self.timeout = kwargs.get('timeout', 3600)
self.platform = kwargs.get('platform', None)
self.agent_configuration = kwargs.get('agent_configuration', None)
self.source_location = kwargs.get('source_location', None)
self.type = 'DockerBuildRequest'
Loading