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
@@ -35,12 +35,18 @@ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
35
35
  # generated and included in each request. Default is true.
36
36
  attr_accessor :generate_client_request_id
37
37
 
38
+ # @return [AgentPools] agent_pools
39
+ attr_reader :agent_pools
40
+
38
41
  # @return [Registries] registries
39
42
  attr_reader :registries
40
43
 
41
44
  # @return [Runs] runs
42
45
  attr_reader :runs
43
46
 
47
+ # @return [TaskRuns] task_runs
48
+ attr_reader :task_runs
49
+
44
50
  # @return [Tasks] tasks
45
51
  attr_reader :tasks
46
52
 
@@ -57,8 +63,10 @@ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
57
63
  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
58
64
  @credentials = credentials
59
65
 
66
+ @agent_pools = AgentPools.new(self)
60
67
  @registries = Registries.new(self)
61
68
  @runs = Runs.new(self)
69
+ @task_runs = TaskRuns.new(self)
62
70
  @tasks = Tasks.new(self)
63
71
  @api_version = '2019-06-01-preview'
64
72
  @accept_language = 'en-US'
@@ -132,7 +140,7 @@ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
132
140
  #
133
141
  def add_telemetry
134
142
  sdk_information = 'azure_mgmt_container_registry'
135
- sdk_information = "#{sdk_information}/0.18.4"
143
+ sdk_information = "#{sdk_information}/0.18.5"
136
144
  add_user_agent_information(sdk_information)
137
145
  end
138
146
  end
@@ -0,0 +1,157 @@
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 agentpool that has the ARM resource and properties.
10
+ # The agentpool will have all information to create an agent pool.
11
+ #
12
+ class AgentPool < Resource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Integer] The count of agent machine
17
+ attr_accessor :count
18
+
19
+ # @return [String] The Tier of agent machine
20
+ attr_accessor :tier
21
+
22
+ # @return [OS] The OS of agent machine. Possible values include:
23
+ # 'Windows', 'Linux'
24
+ attr_accessor :os
25
+
26
+ # @return [String] The Virtual Network Subnet Resource Id of the agent
27
+ # machine
28
+ attr_accessor :virtual_network_subnet_resource_id
29
+
30
+ # @return [ProvisioningState] The provisioning state of this agent pool.
31
+ # Possible values include: 'Creating', 'Updating', 'Deleting',
32
+ # 'Succeeded', 'Failed', 'Canceled'
33
+ attr_accessor :provisioning_state
34
+
35
+
36
+ #
37
+ # Mapper for AgentPool class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'AgentPool',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'AgentPool',
48
+ model_properties: {
49
+ id: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ read_only: true,
53
+ serialized_name: 'id',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ name: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'name',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ type: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'type',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ location: {
77
+ client_side_validation: true,
78
+ required: true,
79
+ serialized_name: 'location',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ tags: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'tags',
88
+ type: {
89
+ name: 'Dictionary',
90
+ value: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ serialized_name: 'StringElementType',
94
+ type: {
95
+ name: 'String'
96
+ }
97
+ }
98
+ }
99
+ },
100
+ system_data: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ read_only: true,
104
+ serialized_name: 'systemData',
105
+ type: {
106
+ name: 'Composite',
107
+ class_name: 'SystemData'
108
+ }
109
+ },
110
+ count: {
111
+ client_side_validation: true,
112
+ required: false,
113
+ serialized_name: 'properties.count',
114
+ type: {
115
+ name: 'Number'
116
+ }
117
+ },
118
+ tier: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ serialized_name: 'properties.tier',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ },
126
+ os: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ serialized_name: 'properties.os',
130
+ type: {
131
+ name: 'String'
132
+ }
133
+ },
134
+ virtual_network_subnet_resource_id: {
135
+ client_side_validation: true,
136
+ required: false,
137
+ serialized_name: 'properties.virtualNetworkSubnetResourceId',
138
+ type: {
139
+ name: 'String'
140
+ }
141
+ },
142
+ provisioning_state: {
143
+ client_side_validation: true,
144
+ required: false,
145
+ read_only: true,
146
+ serialized_name: 'properties.provisioningState',
147
+ type: {
148
+ name: 'String'
149
+ }
150
+ }
151
+ }
152
+ }
153
+ }
154
+ end
155
+ end
156
+ end
157
+ 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 agent pools.
10
+ #
11
+ class AgentPoolListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<AgentPool>] 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<AgentPool>] 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 [AgentPoolListResult] 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 AgentPoolListResult 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: 'AgentPoolListResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'AgentPoolListResult',
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: 'AgentPoolElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'AgentPool'
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
@@ -0,0 +1,46 @@
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 QueueStatus of Agent Pool
10
+ #
11
+ class AgentPoolQueueStatus
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The number of pending runs in the queue
16
+ attr_accessor :count
17
+
18
+
19
+ #
20
+ # Mapper for AgentPoolQueueStatus class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'AgentPoolQueueStatus',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'AgentPoolQueueStatus',
31
+ model_properties: {
32
+ count: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'count',
36
+ type: {
37
+ name: 'Number'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,65 @@
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 parameters for updating an agent pool.
10
+ #
11
+ class AgentPoolUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The count of agent machine
16
+ attr_accessor :count
17
+
18
+ # @return [Hash{String => String}] The ARM resource tags.
19
+ attr_accessor :tags
20
+
21
+
22
+ #
23
+ # Mapper for AgentPoolUpdateParameters class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'AgentPoolUpdateParameters',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'AgentPoolUpdateParameters',
34
+ model_properties: {
35
+ count: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'properties.count',
39
+ type: {
40
+ name: 'Number'
41
+ }
42
+ },
43
+ tags: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'tags',
47
+ type: {
48
+ name: 'Dictionary',
49
+ value: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'StringElementType',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,18 @@
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
+ # Defines values for CreatedByType
10
+ #
11
+ module CreatedByType
12
+ User = "User"
13
+ Application = "Application"
14
+ ManagedIdentity = "ManagedIdentity"
15
+ Key = "Key"
16
+ end
17
+ end
18
+ end
@@ -86,6 +86,22 @@ module Azure::ContainerRegistry::Mgmt::V2019_06_01_preview
86
86
  name: 'Boolean'
87
87
  }
88
88
  },
89
+ agent_pool_name: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ serialized_name: 'agentPoolName',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ },
97
+ log_template: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ serialized_name: 'logTemplate',
101
+ type: {
102
+ name: 'String'
103
+ }
104
+ },
89
105
  type: {
90
106
  client_side_validation: true,
91
107
  required: true,