Skip to content

Commit df727b3

Browse files
Zim KalinowskiAutorestCIqiaozha
authored
regenereated acr (#10253)
* regenereated acr * Packaging update of azure-mgmt-containerregistry * change version and log Co-authored-by: Azure SDK Bot <[email protected]> Co-authored-by: qiaozha <[email protected]>
1 parent 9063485 commit df727b3

22 files changed

+2090
-224
lines changed

sdk/containerregistry/azure-mgmt-containerregistry/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Release History
22

3+
## 3.0.0rc10 (2020-03-11)
4+
5+
**Features**
6+
7+
- Model FileTaskRunRequest has a new parameter agent_pool_name
8+
- Model RunRequest has a new parameter agent_pool_name
9+
- Model RunFilter has a new parameter agent_pool_name
10+
- Model DockerBuildRequest has a new parameter agent_pool_name
11+
- Model TaskRunRequest has a new parameter agent_pool_name
12+
- Model EncodedTaskRunRequest has a new parameter agent_pool_name
13+
- Model TaskUpdateParameters has a new parameter agent_pool_name
14+
- Model Run has a new parameter agent_pool_name
15+
- Model Task has a new parameter agent_pool_name
16+
- Added operation TaskRunsOperations.get_details
17+
- Added operation group AgentPoolsOperations
18+
319
## 3.0.0rc9 (2020-03-02)
420

521
**Features**

sdk/containerregistry/azure-mgmt-containerregistry/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is the Microsoft Azure Container Registry Client Library.
44
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5-
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/sdk)
5+
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)
66

77

88
# Usage

sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/_container_registry_management_client.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,22 @@ def models(cls, api_version=DEFAULT_API_VERSION):
114114
return models
115115
raise NotImplementedError("APIVersion {} is not available".format(api_version))
116116

117+
@property
118+
def agent_pools(self):
119+
"""Instance depends on the API version:
120+
121+
* 2019-06-01-preview: :class:`AgentPoolsOperations<azure.mgmt.containerregistry.v2019_06_01_preview.operations.AgentPoolsOperations>`
122+
* 2019-12-01-preview: :class:`AgentPoolsOperations<azure.mgmt.containerregistry.v2019_12_01_preview.operations.AgentPoolsOperations>`
123+
"""
124+
api_version = self._get_api_version('agent_pools')
125+
if api_version == '2019-06-01-preview':
126+
from .v2019_06_01_preview.operations import AgentPoolsOperations as OperationClass
127+
elif api_version == '2019-12-01-preview':
128+
from .v2019_12_01_preview.operations import AgentPoolsOperations as OperationClass
129+
else:
130+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
131+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
132+
117133
@property
118134
def build_steps(self):
119135
"""Instance depends on the API version:

sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/_container_registry_management_client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from .operations import Operations
1818
from .operations import ReplicationsOperations
1919
from .operations import WebhooksOperations
20+
from .operations import AgentPoolsOperations
2021
from .operations import RunsOperations
2122
from .operations import TaskRunsOperations
2223
from .operations import TasksOperations
@@ -39,6 +40,8 @@ class ContainerRegistryManagementClient(SDKClient):
3940
:vartype replications: azure.mgmt.containerregistry.v2019_06_01_preview.operations.ReplicationsOperations
4041
:ivar webhooks: Webhooks operations
4142
:vartype webhooks: azure.mgmt.containerregistry.v2019_06_01_preview.operations.WebhooksOperations
43+
:ivar agent_pools: AgentPools operations
44+
:vartype agent_pools: azure.mgmt.containerregistry.v2019_06_01_preview.operations.AgentPoolsOperations
4245
:ivar runs: Runs operations
4346
:vartype runs: azure.mgmt.containerregistry.v2019_06_01_preview.operations.RunsOperations
4447
:ivar task_runs: TaskRuns operations
@@ -76,6 +79,8 @@ def __init__(
7679
self._client, self.config, self._serialize, self._deserialize)
7780
self.webhooks = WebhooksOperations(
7881
self._client, self.config, self._serialize, self._deserialize)
82+
self.agent_pools = AgentPoolsOperations(
83+
self._client, self.config, self._serialize, self._deserialize)
7984
self.runs = RunsOperations(
8085
self._client, self.config, self._serialize, self._deserialize)
8186
self.task_runs = TaskRunsOperations(

sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/__init__.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
try:
1313
from ._models_py3 import ActiveDirectoryObject
1414
from ._models_py3 import Actor
15+
from ._models_py3 import AgentPool
16+
from ._models_py3 import AgentPoolQueueStatus
17+
from ._models_py3 import AgentPoolUpdateParameters
1518
from ._models_py3 import AgentProperties
1619
from ._models_py3 import Argument
1720
from ._models_py3 import AuthInfo
@@ -119,6 +122,9 @@
119122
except (SyntaxError, ImportError):
120123
from ._models import ActiveDirectoryObject
121124
from ._models import Actor
125+
from ._models import AgentPool
126+
from ._models import AgentPoolQueueStatus
127+
from ._models import AgentPoolUpdateParameters
122128
from ._models import AgentProperties
123129
from ._models import Argument
124130
from ._models import AuthInfo
@@ -223,6 +229,7 @@
223229
from ._models import Webhook
224230
from ._models import WebhookCreateParameters
225231
from ._models import WebhookUpdateParameters
232+
from ._paged_models import AgentPoolPaged
226233
from ._paged_models import EventPaged
227234
from ._paged_models import OperationDefinitionPaged
228235
from ._paged_models import RegistryPaged
@@ -246,9 +253,9 @@
246253
RegistryUsageUnit,
247254
WebhookStatus,
248255
WebhookAction,
256+
OS,
249257
RunStatus,
250258
RunType,
251-
OS,
252259
Architecture,
253260
Variant,
254261
ResourceIdentityType,
@@ -270,6 +277,9 @@
270277
__all__ = [
271278
'ActiveDirectoryObject',
272279
'Actor',
280+
'AgentPool',
281+
'AgentPoolQueueStatus',
282+
'AgentPoolUpdateParameters',
273283
'AgentProperties',
274284
'Argument',
275285
'AuthInfo',
@@ -379,6 +389,7 @@
379389
'ReplicationPaged',
380390
'WebhookPaged',
381391
'EventPaged',
392+
'AgentPoolPaged',
382393
'RunPaged',
383394
'TaskRunPaged',
384395
'TaskPaged',
@@ -396,9 +407,9 @@
396407
'RegistryUsageUnit',
397408
'WebhookStatus',
398409
'WebhookAction',
410+
'OS',
399411
'RunStatus',
400412
'RunType',
401-
'OS',
402413
'Architecture',
403414
'Variant',
404415
'ResourceIdentityType',

sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview/models/_container_registry_management_client_enums.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ class WebhookAction(str, Enum):
9393
chart_delete = "chart_delete"
9494

9595

96+
class OS(str, Enum):
97+
98+
windows = "Windows"
99+
linux = "Linux"
100+
101+
96102
class RunStatus(str, Enum):
97103

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

115121

116-
class OS(str, Enum):
117-
118-
windows = "Windows"
119-
linux = "Linux"
120-
121-
122122
class Architecture(str, Enum):
123123

124124
amd64 = "amd64"

0 commit comments

Comments
 (0)