azure_mgmt_container_registry 0.18.4 → 0.18.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-06-27-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  3. data/lib/2017-03-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  4. data/lib/2017-06-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  5. data/lib/2017-10-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  6. data/lib/2018-02-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  7. data/lib/2018-09-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  8. data/lib/2019-04-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  9. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry.rb +11 -7
  10. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  11. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/active_directory_object.rb +62 -0
  12. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/created_by_type.rb +18 -0
  13. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/generate_credentials_parameters.rb +2 -4
  14. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/last_modified_by_type.rb +18 -0
  15. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/proxy_resource.rb +14 -0
  16. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/scope_map.rb +12 -2
  17. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/system_data.rb +105 -0
  18. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token.rb +12 -14
  19. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_credentials_properties.rb +12 -0
  20. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_password.rb +2 -2
  21. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/{status.rb → token_status.rb} +2 -2
  22. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/models/token_update_parameters.rb +2 -2
  23. data/lib/2019-05-01-preview/generated/azure_mgmt_container_registry/scope_maps.rb +4 -4
  24. data/lib/2019-05-01/generated/azure_mgmt_container_registry/container_registry_management_client.rb +1 -1
  25. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/operation_service_specification_definition.rb +1 -1
  26. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/quarantine_policy.rb +3 -1
  27. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/retention_policy.rb +6 -3
  28. data/lib/2019-05-01/generated/azure_mgmt_container_registry/models/trust_policy.rb +5 -2
  29. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry.rb +37 -22
  30. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/agent_pools.rb +958 -0
  31. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/container_registry_management_client.rb +9 -1
  32. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/agent_pool.rb +157 -0
  33. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/agent_pool_list_result.rb +99 -0
  34. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/agent_pool_queue_status.rb +46 -0
  35. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/agent_pool_update_parameters.rb +65 -0
  36. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/created_by_type.rb +18 -0
  37. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/docker_build_request.rb +16 -0
  38. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/encoded_task_run_request.rb +16 -0
  39. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/error_response.rb +48 -0
  40. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/error_response_body.rb +81 -0
  41. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/file_task_run_request.rb +16 -0
  42. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/inner_error_description.rb +68 -0
  43. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/last_modified_by_type.rb +18 -0
  44. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/proxy_resource.rb +14 -0
  45. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/resource.rb +14 -0
  46. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run.rb +34 -0
  47. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_filter.rb +12 -0
  48. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_get_log_result.rb +12 -0
  49. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/run_request.rb +23 -0
  50. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/system_data.rb +105 -0
  51. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task.rb +48 -2
  52. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_run.rb +149 -0
  53. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_run_list_result.rb +99 -0
  54. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_run_request.rb +16 -0
  55. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_run_update_parameters.rb +103 -0
  56. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/models/task_update_parameters.rb +23 -0
  57. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/registries.rb +2 -2
  58. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/runs.rb +6 -6
  59. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/task_runs.rb +953 -0
  60. data/lib/2019-06-01-preview/generated/azure_mgmt_container_registry/tasks.rb +7 -7
  61. data/lib/azure_mgmt_container_registry.rb +5 -5
  62. data/lib/profiles/latest/modules/containerregistry_profile_module.rb +211 -83
  63. data/lib/version.rb +1 -1
  64. metadata +23 -4
@@ -0,0 +1,105 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
7
+ module Models
8
+ #
9
+ # Metadata pertaining to creation and last modification of the resource.
10
+ #
11
+ class SystemData
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The identity that created the resource.
16
+ attr_accessor :created_by
17
+
18
+ # @return [CreatedByType] The type of identity that created the resource.
19
+ # Possible values include: 'User', 'Application', 'ManagedIdentity',
20
+ # 'Key'
21
+ attr_accessor :created_by_type
22
+
23
+ # @return [DateTime] The timestamp of resource creation (UTC).
24
+ attr_accessor :created_at
25
+
26
+ # @return [String] The identity that last modified the resource.
27
+ attr_accessor :last_modified_by
28
+
29
+ # @return [LastModifiedByType] The type of identity that last modified
30
+ # the resource. Possible values include: 'User', 'Application',
31
+ # 'ManagedIdentity', 'Key'
32
+ attr_accessor :last_modified_by_type
33
+
34
+ # @return [DateTime] The timestamp of resource modification (UTC).
35
+ attr_accessor :last_modified_at
36
+
37
+
38
+ #
39
+ # Mapper for SystemData class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'SystemData',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'SystemData',
50
+ model_properties: {
51
+ created_by: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'createdBy',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ created_by_type: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'createdByType',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ created_at: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'createdAt',
71
+ type: {
72
+ name: 'DateTime'
73
+ }
74
+ },
75
+ last_modified_by: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'lastModifiedBy',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ last_modified_by_type: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'lastModifiedByType',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ last_modified_at: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'lastModifiedAt',
95
+ type: {
96
+ name: 'DateTime'
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ end
103
+ end
104
+ end
105
+ end
@@ -35,6 +35,9 @@ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
35
35
  # @return [AgentProperties] The machine configuration of the run agent.
36
36
  attr_accessor :agent_configuration
37
37
 
38
+ # @return [String] The dedicated agent pool for the task.
39
+ attr_accessor :agent_pool_name
40
+
38
41
  # @return [Integer] Run timeout in seconds. Default value: 3600 .
39
42
  attr_accessor :timeout
40
43
 
@@ -49,6 +52,14 @@ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
49
52
  # credentials that will be used when this run is invoked.
50
53
  attr_accessor :credentials
51
54
 
55
+ # @return [String] The template that describes the repository and tag
56
+ # information for run log artifact.
57
+ attr_accessor :log_template
58
+
59
+ # @return [Boolean] The value of this property indicates whether the task
60
+ # resource is system task or not. Default value: false .
61
+ attr_accessor :is_system_task
62
+
52
63
 
53
64
  #
54
65
  # Mapper for Task class as Ruby Hash.
@@ -114,6 +125,16 @@ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
114
125
  }
115
126
  }
116
127
  },
128
+ system_data: {
129
+ client_side_validation: true,
130
+ required: false,
131
+ read_only: true,
132
+ serialized_name: 'systemData',
133
+ type: {
134
+ name: 'Composite',
135
+ class_name: 'SystemData'
136
+ }
137
+ },
117
138
  identity: {
118
139
  client_side_validation: true,
119
140
  required: false,
@@ -151,7 +172,7 @@ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
151
172
  },
152
173
  platform: {
153
174
  client_side_validation: true,
154
- required: true,
175
+ required: false,
155
176
  serialized_name: 'properties.platform',
156
177
  type: {
157
178
  name: 'Composite',
@@ -167,6 +188,14 @@ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
167
188
  class_name: 'AgentProperties'
168
189
  }
169
190
  },
191
+ agent_pool_name: {
192
+ client_side_validation: true,
193
+ required: false,
194
+ serialized_name: 'properties.agentPoolName',
195
+ type: {
196
+ name: 'String'
197
+ }
198
+ },
170
199
  timeout: {
171
200
  client_side_validation: true,
172
201
  required: false,
@@ -182,7 +211,7 @@ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
182
211
  },
183
212
  step: {
184
213
  client_side_validation: true,
185
- required: true,
214
+ required: false,
186
215
  serialized_name: 'properties.step',
187
216
  type: {
188
217
  name: 'Composite',
@@ -208,6 +237,23 @@ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
208
237
  name: 'Composite',
209
238
  class_name: 'Credentials'
210
239
  }
240
+ },
241
+ log_template: {
242
+ client_side_validation: true,
243
+ required: false,
244
+ serialized_name: 'properties.logTemplate',
245
+ type: {
246
+ name: 'String'
247
+ }
248
+ },
249
+ is_system_task: {
250
+ client_side_validation: true,
251
+ required: false,
252
+ serialized_name: 'properties.isSystemTask',
253
+ default_value: false,
254
+ type: {
255
+ name: 'Boolean'
256
+ }
211
257
  }
212
258
  }
213
259
  }
@@ -0,0 +1,149 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
7
+ module Models
8
+ #
9
+ # The task run that has the ARM resource and properties.
10
+ # The task run will have the information of request and result of a run.
11
+ #
12
+ class TaskRun < ProxyResource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [IdentityProperties] Identity for the resource.
17
+ attr_accessor :identity
18
+
19
+ # @return [ProvisioningState] The provisioning state of this task run.
20
+ # Possible values include: 'Creating', 'Updating', 'Deleting',
21
+ # 'Succeeded', 'Failed', 'Canceled'
22
+ attr_accessor :provisioning_state
23
+
24
+ # @return [RunRequest] The request (parameters) for the run
25
+ attr_accessor :run_request
26
+
27
+ # @return [Run] The result of this task run
28
+ attr_accessor :run_result
29
+
30
+ # @return [String] How the run should be forced to rerun even if the run
31
+ # request configuration has not changed
32
+ attr_accessor :force_update_tag
33
+
34
+ # @return [String] The location of the resource
35
+ attr_accessor :location
36
+
37
+
38
+ #
39
+ # Mapper for TaskRun class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'TaskRun',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'TaskRun',
50
+ model_properties: {
51
+ id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'id',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ name: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'name',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ type: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'type',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ system_data: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ read_only: true,
82
+ serialized_name: 'systemData',
83
+ type: {
84
+ name: 'Composite',
85
+ class_name: 'SystemData'
86
+ }
87
+ },
88
+ identity: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'identity',
92
+ type: {
93
+ name: 'Composite',
94
+ class_name: 'IdentityProperties'
95
+ }
96
+ },
97
+ provisioning_state: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ read_only: true,
101
+ serialized_name: 'properties.provisioningState',
102
+ type: {
103
+ name: 'String'
104
+ }
105
+ },
106
+ run_request: {
107
+ client_side_validation: true,
108
+ required: false,
109
+ serialized_name: 'properties.runRequest',
110
+ type: {
111
+ name: 'Composite',
112
+ polymorphic_discriminator: 'type',
113
+ uber_parent: 'RunRequest',
114
+ class_name: 'RunRequest'
115
+ }
116
+ },
117
+ run_result: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ read_only: true,
121
+ serialized_name: 'properties.runResult',
122
+ type: {
123
+ name: 'Composite',
124
+ class_name: 'Run'
125
+ }
126
+ },
127
+ force_update_tag: {
128
+ client_side_validation: true,
129
+ required: false,
130
+ serialized_name: 'properties.forceUpdateTag',
131
+ type: {
132
+ name: 'String'
133
+ }
134
+ },
135
+ location: {
136
+ client_side_validation: true,
137
+ required: false,
138
+ serialized_name: 'location',
139
+ type: {
140
+ name: 'String'
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ end
147
+ end
148
+ end
149
+ end
@@ -0,0 +1,99 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
7
+ module Models
8
+ #
9
+ # The collection of task runs.
10
+ #
11
+ class TaskRunListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<TaskRun>] The collection value.
17
+ attr_accessor :value
18
+
19
+ # @return [String] The URI that can be used to request the next set of
20
+ # paged results.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<TaskRun>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil && !page.next_link.strip.empty? do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [TaskRunListResult] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for TaskRunListResult class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'TaskRunListResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'TaskRunListResult',
67
+ model_properties: {
68
+ value: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'TaskRunElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'TaskRun'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'nextLink',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ end
97
+ end
98
+ end
99
+ end