@@ -33,13 +33,29 @@ def __init__(self, content=None, is_base64_encoded=None, path=None):
33
33
self .path = path
34
34
35
35
36
+ class CreatedResources (Model ):
37
+ """CreatedResources.
38
+
39
+ :param error:
40
+ :type error: str
41
+ :param resources:
42
+ :type resources: dict
43
+ """
44
+
45
+ _attribute_map = {
46
+ 'error' : {'key' : 'error' , 'type' : 'str' },
47
+ 'resources' : {'key' : 'resources' , 'type' : '{object}' }
48
+ }
49
+
50
+ def __init__ (self , error = None , resources = None ):
51
+ super (CreatedResources , self ).__init__ ()
52
+ self .error = error
53
+ self .resources = resources
54
+
55
+
36
56
class CreatePipelineConnectionInputs (Model ):
37
57
"""CreatePipelineConnectionInputs.
38
58
39
- :param configuration_file_path: The path to the VSTS YAML file in the repository. (use only forward slashes as path separators)
40
- :type configuration_file_path: str
41
- :param create_build_definition: Use true to create a build definition for this connection. Requires repository information be supplied.
42
- :type create_build_definition: bool
43
59
:param project: The team project settings for an existing team project or for a new team project.
44
60
:type project: :class:`TeamProject <azure.devops.v5_1.pipelines.models.TeamProject>`
45
61
:param provider_data: This dictionary contains information that is specific to the provider. This data is opaque to the rest of the Pipelines infrastructure and does NOT contribute to the resources Token. The format of the string and its contents depend on the implementation of the provider.
@@ -48,45 +64,25 @@ class CreatePipelineConnectionInputs(Model):
48
64
:type provider_id: str
49
65
:param redirect_url: If provided, this will be the URL returned with the PipelineConnection. This will override any other redirect URL that would have been generated for the connection.
50
66
:type redirect_url: str
51
- :param repository_id: The repository id for which the connection is being made. This may be the same as the name.
52
- :type repository_id: str
53
- :param repository_name: The repository name for which the connection is being made.
54
- :type repository_name: str
55
67
:param request_source: Where the request to create the pipeline originated (such as 'GitHub Marketplace' or 'Azure DevOps')
56
68
:type request_source: str
57
- :param routing_method: The method used to identify the target hostd.
58
- :type routing_method: object
59
- :param target_branch: The target branch for which the connection is being made.
60
- :type target_branch: str
61
69
"""
62
70
63
71
_attribute_map = {
64
- 'configuration_file_path' : {'key' : 'configurationFilePath' , 'type' : 'str' },
65
- 'create_build_definition' : {'key' : 'createBuildDefinition' , 'type' : 'bool' },
66
72
'project' : {'key' : 'project' , 'type' : 'TeamProject' },
67
73
'provider_data' : {'key' : 'providerData' , 'type' : '{str}' },
68
74
'provider_id' : {'key' : 'providerId' , 'type' : 'str' },
69
75
'redirect_url' : {'key' : 'redirectUrl' , 'type' : 'str' },
70
- 'repository_id' : {'key' : 'repositoryId' , 'type' : 'str' },
71
- 'repository_name' : {'key' : 'repositoryName' , 'type' : 'str' },
72
- 'request_source' : {'key' : 'requestSource' , 'type' : 'str' },
73
- 'routing_method' : {'key' : 'routingMethod' , 'type' : 'object' },
74
- 'target_branch' : {'key' : 'targetBranch' , 'type' : 'str' }
76
+ 'request_source' : {'key' : 'requestSource' , 'type' : 'str' }
75
77
}
76
78
77
- def __init__ (self , configuration_file_path = None , create_build_definition = None , project = None , provider_data = None , provider_id = None , redirect_url = None , repository_id = None , repository_name = None , request_source = None , routing_method = None , target_branch = None ):
79
+ def __init__ (self , project = None , provider_data = None , provider_id = None , redirect_url = None , request_source = None ):
78
80
super (CreatePipelineConnectionInputs , self ).__init__ ()
79
- self .configuration_file_path = configuration_file_path
80
- self .create_build_definition = create_build_definition
81
81
self .project = project
82
82
self .provider_data = provider_data
83
83
self .provider_id = provider_id
84
84
self .redirect_url = redirect_url
85
- self .repository_id = repository_id
86
- self .repository_name = repository_name
87
85
self .request_source = request_source
88
- self .routing_method = routing_method
89
- self .target_branch = target_branch
90
86
91
87
92
88
class DetectedBuildFramework (Model ):
@@ -233,6 +229,26 @@ def __init__(self, links=None):
233
229
self .links = links
234
230
235
231
232
+ class ResourceCreationParameter (Model ):
233
+ """ResourceCreationParameter.
234
+
235
+ :param resource_to_create:
236
+ :type resource_to_create: :class:`object <azure.devops.v5_1.pipelines.models.object>`
237
+ :param type:
238
+ :type type: str
239
+ """
240
+
241
+ _attribute_map = {
242
+ 'resource_to_create' : {'key' : 'resourceToCreate' , 'type' : 'object' },
243
+ 'type' : {'key' : 'type' , 'type' : 'str' }
244
+ }
245
+
246
+ def __init__ (self , resource_to_create = None , type = None ):
247
+ super (ResourceCreationParameter , self ).__init__ ()
248
+ self .resource_to_create = resource_to_create
249
+ self .type = type
250
+
251
+
236
252
class TeamProjectReference (Model ):
237
253
"""TeamProjectReference.
238
254
@@ -288,6 +304,8 @@ def __init__(self, abbreviation=None, default_team_image_url=None, description=N
288
304
class Template (Model ):
289
305
"""Template.
290
306
307
+ :param assets:
308
+ :type assets: list of :class:`TemplateAsset <azure.devops.v5_1.pipelines.models.TemplateAsset>`
291
309
:param content:
292
310
:type content: str
293
311
:param description:
@@ -305,6 +323,7 @@ class Template(Model):
305
323
"""
306
324
307
325
_attribute_map = {
326
+ 'assets' : {'key' : 'assets' , 'type' : '[TemplateAsset]' },
308
327
'content' : {'key' : 'content' , 'type' : 'str' },
309
328
'description' : {'key' : 'description' , 'type' : 'str' },
310
329
'icon_url' : {'key' : 'iconUrl' , 'type' : 'str' },
@@ -314,8 +333,9 @@ class Template(Model):
314
333
'recommended_weight' : {'key' : 'recommendedWeight' , 'type' : 'int' }
315
334
}
316
335
317
- def __init__ (self , content = None , description = None , icon_url = None , id = None , name = None , parameters = None , recommended_weight = None ):
336
+ def __init__ (self , assets = None , content = None , description = None , icon_url = None , id = None , name = None , parameters = None , recommended_weight = None ):
318
337
super (Template , self ).__init__ ()
338
+ self .assets = assets
319
339
self .content = content
320
340
self .description = description
321
341
self .icon_url = icon_url
@@ -325,9 +345,45 @@ def __init__(self, content=None, description=None, icon_url=None, id=None, name=
325
345
self .recommended_weight = recommended_weight
326
346
327
347
348
+ class TemplateAsset (Model ):
349
+ """TemplateAsset.
350
+
351
+ :param content:
352
+ :type content: str
353
+ :param description:
354
+ :type description: str
355
+ :param destination_path:
356
+ :type destination_path: str
357
+ :param path:
358
+ :type path: str
359
+ :param type:
360
+ :type type: str
361
+ """
362
+
363
+ _attribute_map = {
364
+ 'content' : {'key' : 'content' , 'type' : 'str' },
365
+ 'description' : {'key' : 'description' , 'type' : 'str' },
366
+ 'destination_path' : {'key' : 'destinationPath' , 'type' : 'str' },
367
+ 'path' : {'key' : 'path' , 'type' : 'str' },
368
+ 'type' : {'key' : 'type' , 'type' : 'str' }
369
+ }
370
+
371
+ def __init__ (self , content = None , description = None , destination_path = None , path = None , type = None ):
372
+ super (TemplateAsset , self ).__init__ ()
373
+ self .content = content
374
+ self .description = description
375
+ self .destination_path = destination_path
376
+ self .path = path
377
+ self .type = type
378
+
379
+
328
380
class TemplateParameterDefinition (Model ):
329
381
"""TemplateParameterDefinition.
330
382
383
+ :param default_value:
384
+ :type default_value: str
385
+ :param display_name:
386
+ :type display_name: str
331
387
:param name:
332
388
:type name: str
333
389
:param required:
@@ -337,13 +393,17 @@ class TemplateParameterDefinition(Model):
337
393
"""
338
394
339
395
_attribute_map = {
396
+ 'default_value' : {'key' : 'defaultValue' , 'type' : 'str' },
397
+ 'display_name' : {'key' : 'displayName' , 'type' : 'str' },
340
398
'name' : {'key' : 'name' , 'type' : 'str' },
341
399
'required' : {'key' : 'required' , 'type' : 'bool' },
342
400
'type' : {'key' : 'type' , 'type' : 'str' }
343
401
}
344
402
345
- def __init__ (self , name = None , required = None , type = None ):
403
+ def __init__ (self , default_value = None , display_name = None , name = None , required = None , type = None ):
346
404
super (TemplateParameterDefinition , self ).__init__ ()
405
+ self .default_value = default_value
406
+ self .display_name = display_name
347
407
self .name = name
348
408
self .required = required
349
409
self .type = type
@@ -357,7 +417,7 @@ class TemplateParameters(Model):
357
417
"""
358
418
359
419
_attribute_map = {
360
- 'tokens' : {'key' : 'tokens' , 'type' : '{str }' }
420
+ 'tokens' : {'key' : 'tokens' , 'type' : '{object }' }
361
421
}
362
422
363
423
def __init__ (self , tokens = None ):
@@ -485,15 +545,18 @@ def __init__(self, abbreviation=None, default_team_image_url=None, description=N
485
545
486
546
__all__ = [
487
547
'ConfigurationFile' ,
548
+ 'CreatedResources' ,
488
549
'CreatePipelineConnectionInputs' ,
489
550
'DetectedBuildFramework' ,
490
551
'DetectedBuildTarget' ,
491
552
'OperationReference' ,
492
553
'OperationResultReference' ,
493
554
'PipelineConnection' ,
494
555
'ReferenceLinks' ,
556
+ 'ResourceCreationParameter' ,
495
557
'TeamProjectReference' ,
496
558
'Template' ,
559
+ 'TemplateAsset' ,
497
560
'TemplateParameterDefinition' ,
498
561
'TemplateParameters' ,
499
562
'WebApiTeamRef' ,
0 commit comments