Skip to content

Commit f6b3505

Browse files
author
SDK Automation
committed
Generated from a33a1c147af3db9e393bf69a9c50ae3fd313504d
restore newline
1 parent 3f0516b commit f6b3505

16 files changed

+791
-248
lines changed

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

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

3+
## 3.0.0rc13(2020-05-15)
4+
5+
**Features**
6+
7+
- Model Replication has a new parameter region_endpoint_enabled
8+
- Model ReplicationUpdateParameters has a new parameter region_endpoint_enabled
9+
10+
**Breaking changes**
11+
12+
- Operation ReplicationsOperations.create has a new signature
13+
- Operation ReplicationsOperations.update has a new signature
14+
- Operation ReplicationsOperations.create has a new signature
15+
316
## 3.0.0rc12(2020-05-06)
417

518
**Features**

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
from ._models_py3 import SourceUploadDefinition
9797
from ._models_py3 import Status
9898
from ._models_py3 import StorageAccountProperties
99+
from ._models_py3 import SystemData
99100
from ._models_py3 import Target
100101
from ._models_py3 import Task
101102
from ._models_py3 import TaskRun
@@ -207,6 +208,7 @@
207208
from ._models import SourceUploadDefinition
208209
from ._models import Status
209210
from ._models import StorageAccountProperties
211+
from ._models import SystemData
210212
from ._models import Target
211213
from ._models import Task
212214
from ._models import TaskRun
@@ -255,6 +257,7 @@
255257
RegistryUsageUnit,
256258
WebhookStatus,
257259
WebhookAction,
260+
CreatedByType,
258261
OS,
259262
RunStatus,
260263
RunType,
@@ -363,6 +366,7 @@
363366
'SourceUploadDefinition',
364367
'Status',
365368
'StorageAccountProperties',
369+
'SystemData',
366370
'Target',
367371
'Task',
368372
'TaskRun',
@@ -410,6 +414,7 @@
410414
'RegistryUsageUnit',
411415
'WebhookStatus',
412416
'WebhookAction',
417+
'CreatedByType',
413418
'OS',
414419
'RunStatus',
415420
'RunType',

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

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

9595

96+
class CreatedByType(str, Enum):
97+
98+
user = "User"
99+
application = "Application"
100+
managed_identity = "ManagedIdentity"
101+
key = "Key"
102+
103+
96104
class OS(str, Enum):
97105

98106
windows = "Windows"

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

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,18 @@ class Resource(Model):
7575
:type location: str
7676
:param tags: The tags of the resource.
7777
:type tags: dict[str, str]
78+
:ivar system_data: Metadata pertaining to creation and last modification
79+
of the resource.
80+
:vartype system_data:
81+
~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData
7882
"""
7983

8084
_validation = {
8185
'id': {'readonly': True},
8286
'name': {'readonly': True},
8387
'type': {'readonly': True},
8488
'location': {'required': True},
89+
'system_data': {'readonly': True},
8590
}
8691

8792
_attribute_map = {
@@ -90,6 +95,7 @@ class Resource(Model):
9095
'type': {'key': 'type', 'type': 'str'},
9196
'location': {'key': 'location', 'type': 'str'},
9297
'tags': {'key': 'tags', 'type': '{str}'},
98+
'system_data': {'key': 'systemData', 'type': 'SystemData'},
9399
}
94100

95101
def __init__(self, **kwargs):
@@ -99,6 +105,7 @@ def __init__(self, **kwargs):
99105
self.type = None
100106
self.location = kwargs.get('location', None)
101107
self.tags = kwargs.get('tags', None)
108+
self.system_data = None
102109

103110

104111
class AgentPool(Resource):
@@ -121,6 +128,10 @@ class AgentPool(Resource):
121128
:type location: str
122129
:param tags: The tags of the resource.
123130
:type tags: dict[str, str]
131+
:ivar system_data: Metadata pertaining to creation and last modification
132+
of the resource.
133+
:vartype system_data:
134+
~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData
124135
:param count: The count of agent machine
125136
:type count: int
126137
:param tier: The Tier of agent machine
@@ -144,6 +155,7 @@ class AgentPool(Resource):
144155
'name': {'readonly': True},
145156
'type': {'readonly': True},
146157
'location': {'required': True},
158+
'system_data': {'readonly': True},
147159
'provisioning_state': {'readonly': True},
148160
}
149161

@@ -153,6 +165,7 @@ class AgentPool(Resource):
153165
'type': {'key': 'type', 'type': 'str'},
154166
'location': {'key': 'location', 'type': 'str'},
155167
'tags': {'key': 'tags', 'type': '{str}'},
168+
'system_data': {'key': 'systemData', 'type': 'SystemData'},
156169
'count': {'key': 'properties.count', 'type': 'int'},
157170
'tier': {'key': 'properties.tier', 'type': 'str'},
158171
'os': {'key': 'properties.os', 'type': 'str'},
@@ -2168,6 +2181,10 @@ class Registry(Resource):
21682181
:type location: str
21692182
:param tags: The tags of the resource.
21702183
:type tags: dict[str, str]
2184+
:ivar system_data: Metadata pertaining to creation and last modification
2185+
of the resource.
2186+
:vartype system_data:
2187+
~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData
21712188
:param sku: Required. The SKU of the container registry.
21722189
:type sku: ~azure.mgmt.containerregistry.v2019_06_01_preview.models.Sku
21732190
:ivar login_server: The URL that can be used to log into the container
@@ -2205,6 +2222,7 @@ class Registry(Resource):
22052222
'name': {'readonly': True},
22062223
'type': {'readonly': True},
22072224
'location': {'required': True},
2225+
'system_data': {'readonly': True},
22082226
'sku': {'required': True},
22092227
'login_server': {'readonly': True},
22102228
'creation_date': {'readonly': True},
@@ -2218,6 +2236,7 @@ class Registry(Resource):
22182236
'type': {'key': 'type', 'type': 'str'},
22192237
'location': {'key': 'location', 'type': 'str'},
22202238
'tags': {'key': 'tags', 'type': '{str}'},
2239+
'system_data': {'key': 'systemData', 'type': 'SystemData'},
22212240
'sku': {'key': 'sku', 'type': 'Sku'},
22222241
'login_server': {'key': 'properties.loginServer', 'type': 'str'},
22232242
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
@@ -2446,6 +2465,10 @@ class Replication(Resource):
24462465
:type location: str
24472466
:param tags: The tags of the resource.
24482467
:type tags: dict[str, str]
2468+
:ivar system_data: Metadata pertaining to creation and last modification
2469+
of the resource.
2470+
:vartype system_data:
2471+
~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData
24492472
:ivar provisioning_state: The provisioning state of the replication at the
24502473
time the operation was called. Possible values include: 'Creating',
24512474
'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
@@ -2462,6 +2485,7 @@ class Replication(Resource):
24622485
'name': {'readonly': True},
24632486
'type': {'readonly': True},
24642487
'location': {'required': True},
2488+
'system_data': {'readonly': True},
24652489
'provisioning_state': {'readonly': True},
24662490
'status': {'readonly': True},
24672491
}
@@ -2472,6 +2496,7 @@ class Replication(Resource):
24722496
'type': {'key': 'type', 'type': 'str'},
24732497
'location': {'key': 'location', 'type': 'str'},
24742498
'tags': {'key': 'tags', 'type': '{str}'},
2499+
'system_data': {'key': 'systemData', 'type': 'SystemData'},
24752500
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
24762501
'status': {'key': 'properties.status', 'type': 'Status'},
24772502
}
@@ -3294,6 +3319,48 @@ def __init__(self, **kwargs):
32943319
self.id = kwargs.get('id', None)
32953320

32963321

3322+
class SystemData(Model):
3323+
"""Metadata pertaining to creation and last modification of the resource.
3324+
3325+
:param created_by: The identity that created the resource.
3326+
:type created_by: str
3327+
:param created_by_type: The type of identity that created the resource.
3328+
Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key'
3329+
:type created_by_type: str or
3330+
~azure.mgmt.containerregistry.v2019_06_01_preview.models.CreatedByType
3331+
:param created_at: The timestamp of resource creation (UTC).
3332+
:type created_at: datetime
3333+
:param last_modified_by: The identity that last modified the resource.
3334+
:type last_modified_by: str
3335+
:param last_modified_by_type: The type of identity that last modified the
3336+
resource. Possible values include: 'User', 'Application',
3337+
'ManagedIdentity', 'Key'
3338+
:type last_modified_by_type: str or
3339+
~azure.mgmt.containerregistry.v2019_06_01_preview.models.CreatedByType
3340+
:param last_modified_at: The type of identity that last modified the
3341+
resource.
3342+
:type last_modified_at: datetime
3343+
"""
3344+
3345+
_attribute_map = {
3346+
'created_by': {'key': 'createdBy', 'type': 'str'},
3347+
'created_by_type': {'key': 'createdByType', 'type': 'str'},
3348+
'created_at': {'key': 'createdAt', 'type': 'iso-8601'},
3349+
'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'},
3350+
'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'},
3351+
'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'},
3352+
}
3353+
3354+
def __init__(self, **kwargs):
3355+
super(SystemData, self).__init__(**kwargs)
3356+
self.created_by = kwargs.get('created_by', None)
3357+
self.created_by_type = kwargs.get('created_by_type', None)
3358+
self.created_at = kwargs.get('created_at', None)
3359+
self.last_modified_by = kwargs.get('last_modified_by', None)
3360+
self.last_modified_by_type = kwargs.get('last_modified_by_type', None)
3361+
self.last_modified_at = kwargs.get('last_modified_at', None)
3362+
3363+
32973364
class Target(Model):
32983365
"""The target of the event.
32993366
@@ -3363,6 +3430,10 @@ class Task(Resource):
33633430
:type location: str
33643431
:param tags: The tags of the resource.
33653432
:type tags: dict[str, str]
3433+
:ivar system_data: Metadata pertaining to creation and last modification
3434+
of the resource.
3435+
:vartype system_data:
3436+
~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData
33663437
:param identity: Identity for the resource.
33673438
:type identity:
33683439
~azure.mgmt.containerregistry.v2019_06_01_preview.models.IdentityProperties
@@ -3405,6 +3476,7 @@ class Task(Resource):
34053476
'name': {'readonly': True},
34063477
'type': {'readonly': True},
34073478
'location': {'required': True},
3479+
'system_data': {'readonly': True},
34083480
'provisioning_state': {'readonly': True},
34093481
'creation_date': {'readonly': True},
34103482
'platform': {'required': True},
@@ -3418,6 +3490,7 @@ class Task(Resource):
34183490
'type': {'key': 'type', 'type': 'str'},
34193491
'location': {'key': 'location', 'type': 'str'},
34203492
'tags': {'key': 'tags', 'type': '{str}'},
3493+
'system_data': {'key': 'systemData', 'type': 'SystemData'},
34213494
'identity': {'key': 'identity', 'type': 'IdentityProperties'},
34223495
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
34233496
'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'},
@@ -3466,6 +3539,10 @@ class TaskRun(Resource):
34663539
:type location: str
34673540
:param tags: The tags of the resource.
34683541
:type tags: dict[str, str]
3542+
:ivar system_data: Metadata pertaining to creation and last modification
3543+
of the resource.
3544+
:vartype system_data:
3545+
~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData
34693546
:param identity: Identity for the resource.
34703547
:type identity:
34713548
~azure.mgmt.containerregistry.v2019_06_01_preview.models.IdentityProperties
@@ -3490,6 +3567,7 @@ class TaskRun(Resource):
34903567
'name': {'readonly': True},
34913568
'type': {'readonly': True},
34923569
'location': {'required': True},
3570+
'system_data': {'readonly': True},
34933571
'provisioning_state': {'readonly': True},
34943572
'run_result': {'readonly': True},
34953573
}
@@ -3500,6 +3578,7 @@ class TaskRun(Resource):
35003578
'type': {'key': 'type', 'type': 'str'},
35013579
'location': {'key': 'location', 'type': 'str'},
35023580
'tags': {'key': 'tags', 'type': '{str}'},
3581+
'system_data': {'key': 'systemData', 'type': 'SystemData'},
35033582
'identity': {'key': 'identity', 'type': 'IdentityProperties'},
35043583
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
35053584
'run_request': {'key': 'properties.runRequest', 'type': 'RunRequest'},
@@ -4070,6 +4149,10 @@ class Webhook(Resource):
40704149
:type location: str
40714150
:param tags: The tags of the resource.
40724151
:type tags: dict[str, str]
4152+
:ivar system_data: Metadata pertaining to creation and last modification
4153+
of the resource.
4154+
:vartype system_data:
4155+
~azure.mgmt.containerregistry.v2019_06_01_preview.models.SystemData
40734156
:param status: The status of the webhook at the time the operation was
40744157
called. Possible values include: 'enabled', 'disabled'
40754158
:type status: str or
@@ -4095,6 +4178,7 @@ class Webhook(Resource):
40954178
'name': {'readonly': True},
40964179
'type': {'readonly': True},
40974180
'location': {'required': True},
4181+
'system_data': {'readonly': True},
40984182
'actions': {'required': True},
40994183
'provisioning_state': {'readonly': True},
41004184
}
@@ -4105,6 +4189,7 @@ class Webhook(Resource):
41054189
'type': {'key': 'type', 'type': 'str'},
41064190
'location': {'key': 'location', 'type': 'str'},
41074191
'tags': {'key': 'tags', 'type': '{str}'},
4192+
'system_data': {'key': 'systemData', 'type': 'SystemData'},
41084193
'status': {'key': 'properties.status', 'type': 'str'},
41094194
'scope': {'key': 'properties.scope', 'type': 'str'},
41104195
'actions': {'key': 'properties.actions', 'type': '[str]'},

0 commit comments

Comments
 (0)