@@ -23,7 +23,7 @@ class ArtifactsOperations(object):
23
23
:param config: Configuration of service client.
24
24
:param serializer: An object model serializer.
25
25
:param deserializer: An object model deserializer.
26
- :ivar api_version: Client Api Version. Constant value: "2017 -11-11 -preview".
26
+ :ivar api_version: Client Api Version. Constant value: "2018 -11-01 -preview".
27
27
"""
28
28
29
29
models = models
@@ -33,16 +33,19 @@ def __init__(self, client, config, serializer, deserializer):
33
33
self ._client = client
34
34
self ._serialize = serializer
35
35
self ._deserialize = deserializer
36
- self .api_version = "2017 -11-11 -preview"
36
+ self .api_version = "2018 -11-01 -preview"
37
37
38
38
self .config = config
39
39
40
40
def create_or_update (
41
- self , management_group_name , blueprint_name , artifact_name , artifact , custom_headers = None , raw = False , ** operation_config ):
41
+ self , scope , blueprint_name , artifact_name , artifact , custom_headers = None , raw = False , ** operation_config ):
42
42
"""Create or update Blueprint artifact.
43
43
44
- :param management_group_name: ManagementGroup where blueprint stores.
45
- :type management_group_name: str
44
+ :param scope: The scope of the resource. Valid scopes are: management
45
+ group (format:
46
+ '/providers/Microsoft.Management/managementGroups/{managementGroup}'),
47
+ subscription (format: '/subscriptions/{subscriptionId}').
48
+ :type scope: str
46
49
:param blueprint_name: name of the blueprint.
47
50
:type blueprint_name: str
48
51
:param artifact_name: name of the artifact.
@@ -62,7 +65,7 @@ def create_or_update(
62
65
# Construct URL
63
66
url = self .create_or_update .metadata ['url' ]
64
67
path_format_arguments = {
65
- 'managementGroupName ' : self ._serialize .url ("management_group_name " , management_group_name , 'str' ),
68
+ 'scope ' : self ._serialize .url ("scope " , scope , 'str' , skip_quote = True ),
66
69
'blueprintName' : self ._serialize .url ("blueprint_name" , blueprint_name , 'str' ),
67
70
'artifactName' : self ._serialize .url ("artifact_name" , artifact_name , 'str' )
68
71
}
@@ -105,14 +108,17 @@ def create_or_update(
105
108
return client_raw_response
106
109
107
110
return deserialized
108
- create_or_update .metadata = {'url' : '/providers/Microsoft.Management/managementGroups/{managementGroupName }/providers/Microsoft.Blueprint/blueprints/{blueprintName}/artifacts/{artifactName}' }
111
+ create_or_update .metadata = {'url' : '/{scope }/providers/Microsoft.Blueprint/blueprints/{blueprintName}/artifacts/{artifactName}' }
109
112
110
113
def get (
111
- self , management_group_name , blueprint_name , artifact_name , custom_headers = None , raw = False , ** operation_config ):
114
+ self , scope , blueprint_name , artifact_name , custom_headers = None , raw = False , ** operation_config ):
112
115
"""Get a Blueprint artifact.
113
116
114
- :param management_group_name: ManagementGroup where blueprint stores.
115
- :type management_group_name: str
117
+ :param scope: The scope of the resource. Valid scopes are: management
118
+ group (format:
119
+ '/providers/Microsoft.Management/managementGroups/{managementGroup}'),
120
+ subscription (format: '/subscriptions/{subscriptionId}').
121
+ :type scope: str
116
122
:param blueprint_name: name of the blueprint.
117
123
:type blueprint_name: str
118
124
:param artifact_name: name of the artifact.
@@ -130,7 +136,7 @@ def get(
130
136
# Construct URL
131
137
url = self .get .metadata ['url' ]
132
138
path_format_arguments = {
133
- 'managementGroupName ' : self ._serialize .url ("management_group_name " , management_group_name , 'str' ),
139
+ 'scope ' : self ._serialize .url ("scope " , scope , 'str' , skip_quote = True ),
134
140
'blueprintName' : self ._serialize .url ("blueprint_name" , blueprint_name , 'str' ),
135
141
'artifactName' : self ._serialize .url ("artifact_name" , artifact_name , 'str' )
136
142
}
@@ -169,14 +175,17 @@ def get(
169
175
return client_raw_response
170
176
171
177
return deserialized
172
- get .metadata = {'url' : '/providers/Microsoft.Management/managementGroups/{managementGroupName }/providers/Microsoft.Blueprint/blueprints/{blueprintName}/artifacts/{artifactName}' }
178
+ get .metadata = {'url' : '/{scope }/providers/Microsoft.Blueprint/blueprints/{blueprintName}/artifacts/{artifactName}' }
173
179
174
180
def delete (
175
- self , management_group_name , blueprint_name , artifact_name , custom_headers = None , raw = False , ** operation_config ):
181
+ self , scope , blueprint_name , artifact_name , custom_headers = None , raw = False , ** operation_config ):
176
182
"""Delete a Blueprint artifact.
177
183
178
- :param management_group_name: ManagementGroup where blueprint stores.
179
- :type management_group_name: str
184
+ :param scope: The scope of the resource. Valid scopes are: management
185
+ group (format:
186
+ '/providers/Microsoft.Management/managementGroups/{managementGroup}'),
187
+ subscription (format: '/subscriptions/{subscriptionId}').
188
+ :type scope: str
180
189
:param blueprint_name: name of the blueprint.
181
190
:type blueprint_name: str
182
191
:param artifact_name: name of the artifact.
@@ -194,7 +203,7 @@ def delete(
194
203
# Construct URL
195
204
url = self .delete .metadata ['url' ]
196
205
path_format_arguments = {
197
- 'managementGroupName ' : self ._serialize .url ("management_group_name " , management_group_name , 'str' ),
206
+ 'scope ' : self ._serialize .url ("scope " , scope , 'str' , skip_quote = True ),
198
207
'blueprintName' : self ._serialize .url ("blueprint_name" , blueprint_name , 'str' ),
199
208
'artifactName' : self ._serialize .url ("artifact_name" , artifact_name , 'str' )
200
209
}
@@ -233,14 +242,17 @@ def delete(
233
242
return client_raw_response
234
243
235
244
return deserialized
236
- delete .metadata = {'url' : '/providers/Microsoft.Management/managementGroups/{managementGroupName }/providers/Microsoft.Blueprint/blueprints/{blueprintName}/artifacts/{artifactName}' }
245
+ delete .metadata = {'url' : '/{scope }/providers/Microsoft.Blueprint/blueprints/{blueprintName}/artifacts/{artifactName}' }
237
246
238
247
def list (
239
- self , management_group_name , blueprint_name , custom_headers = None , raw = False , ** operation_config ):
248
+ self , scope , blueprint_name , custom_headers = None , raw = False , ** operation_config ):
240
249
"""List artifacts for a given Blueprint.
241
250
242
- :param management_group_name: ManagementGroup where blueprint stores.
243
- :type management_group_name: str
251
+ :param scope: The scope of the resource. Valid scopes are: management
252
+ group (format:
253
+ '/providers/Microsoft.Management/managementGroups/{managementGroup}'),
254
+ subscription (format: '/subscriptions/{subscriptionId}').
255
+ :type scope: str
244
256
:param blueprint_name: name of the blueprint.
245
257
:type blueprint_name: str
246
258
:param dict custom_headers: headers that will be added to the request
@@ -259,7 +271,7 @@ def internal_paging(next_link=None, raw=False):
259
271
# Construct URL
260
272
url = self .list .metadata ['url' ]
261
273
path_format_arguments = {
262
- 'managementGroupName ' : self ._serialize .url ("management_group_name " , management_group_name , 'str' ),
274
+ 'scope ' : self ._serialize .url ("scope " , scope , 'str' , skip_quote = True ),
263
275
'blueprintName' : self ._serialize .url ("blueprint_name" , blueprint_name , 'str' )
264
276
}
265
277
url = self ._client .format_url (url , ** path_format_arguments )
@@ -302,4 +314,4 @@ def internal_paging(next_link=None, raw=False):
302
314
return client_raw_response
303
315
304
316
return deserialized
305
- list .metadata = {'url' : '/providers/Microsoft.Management/managementGroups/{managementGroupName }/providers/Microsoft.Blueprint/blueprints/{blueprintName}/artifacts' }
317
+ list .metadata = {'url' : '/{scope }/providers/Microsoft.Blueprint/blueprints/{blueprintName}/artifacts' }
0 commit comments