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 @@ -114,6 +114,22 @@ def models(cls, api_version=DEFAULT_API_VERSION):
return models
raise NotImplementedError("APIVersion {} is not available".format(api_version))

@property
def agent_pools(self):
"""Instance depends on the API version:

* 2019-06-01-preview: :class:`AgentPoolsOperations<azure.mgmt.containerregistry.v2019_06_01_preview.operations.AgentPoolsOperations>`
* 2019-12-01-preview: :class:`AgentPoolsOperations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.AgentPoolsOperations>`
"""
api_version = self._get_api_version('agent_pools')
if api_version == '2019-06-01-preview':
from .v2019_06_01_preview.operations import AgentPoolsOperations as OperationClass
elif api_version == '2019-12-01-preview':
from .v2019_12_01_preview.operations import AgentPoolsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def build_steps(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from .operations import Operations
from .operations import ReplicationsOperations
from .operations import WebhooksOperations
from .operations import AgentPoolsOperations
from .operations import RunsOperations
from .operations import TaskRunsOperations
from .operations import TasksOperations
Expand All @@ -39,6 +40,8 @@ class ContainerRegistryManagementClient(SDKClient):
:vartype replications: azure.mgmt.containerregistry.v2019_06_01_preview.operations.ReplicationsOperations
:ivar webhooks: Webhooks operations
:vartype webhooks: azure.mgmt.containerregistry.v2019_06_01_preview.operations.WebhooksOperations
:ivar agent_pools: AgentPools operations
:vartype agent_pools: azure.mgmt.containerregistry.v2019_06_01_preview.operations.AgentPoolsOperations
:ivar runs: Runs operations
:vartype runs: azure.mgmt.containerregistry.v2019_06_01_preview.operations.RunsOperations
:ivar task_runs: TaskRuns operations
Expand Down Expand Up @@ -76,6 +79,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.webhooks = WebhooksOperations(
self._client, self.config, self._serialize, self._deserialize)
self.agent_pools = AgentPoolsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.runs = RunsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.task_runs = TaskRunsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
try:
from ._models_py3 import ActiveDirectoryObject
from ._models_py3 import Actor
from ._models_py3 import AgentPool
from ._models_py3 import AgentPoolQueueStatus
from ._models_py3 import AgentPoolUpdateParameters
from ._models_py3 import AgentProperties
from ._models_py3 import Argument
from ._models_py3 import AuthInfo
Expand Down Expand Up @@ -119,6 +122,9 @@
except (SyntaxError, ImportError):
from ._models import ActiveDirectoryObject
from ._models import Actor
from ._models import AgentPool
from ._models import AgentPoolQueueStatus
from ._models import AgentPoolUpdateParameters
from ._models import AgentProperties
from ._models import Argument
from ._models import AuthInfo
Expand Down Expand Up @@ -223,6 +229,7 @@
from ._models import Webhook
from ._models import WebhookCreateParameters
from ._models import WebhookUpdateParameters
from ._paged_models import AgentPoolPaged
from ._paged_models import EventPaged
from ._paged_models import OperationDefinitionPaged
from ._paged_models import RegistryPaged
Expand All @@ -246,9 +253,9 @@
RegistryUsageUnit,
WebhookStatus,
WebhookAction,
OS,
RunStatus,
RunType,
OS,
Architecture,
Variant,
ResourceIdentityType,
Expand All @@ -270,6 +277,9 @@
__all__ = [
'ActiveDirectoryObject',
'Actor',
'AgentPool',
'AgentPoolQueueStatus',
'AgentPoolUpdateParameters',
'AgentProperties',
'Argument',
'AuthInfo',
Expand Down Expand Up @@ -379,6 +389,7 @@
'ReplicationPaged',
'WebhookPaged',
'EventPaged',
'AgentPoolPaged',
'RunPaged',
'TaskRunPaged',
'TaskPaged',
Expand All @@ -396,9 +407,9 @@
'RegistryUsageUnit',
'WebhookStatus',
'WebhookAction',
'OS',
'RunStatus',
'RunType',
'OS',
'Architecture',
'Variant',
'ResourceIdentityType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ class WebhookAction(str, Enum):
chart_delete = "chart_delete"


class OS(str, Enum):

windows = "Windows"
linux = "Linux"


class RunStatus(str, Enum):

queued = "Queued"
Expand All @@ -113,12 +119,6 @@ class RunType(str, Enum):
auto_run = "AutoRun"


class OS(str, Enum):

windows = "Windows"
linux = "Linux"


class Architecture(str, Enum):

amd64 = "amd64"
Expand Down
Loading