azure_mgmt_container_instance 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/azure_mgmt_container_instance.rb +6 -0
  4. data/lib/generated/azure_mgmt_container_instance.rb +51 -0
  5. data/lib/generated/azure_mgmt_container_instance/container_groups.rb +838 -0
  6. data/lib/generated/azure_mgmt_container_instance/container_instance_management_client.rb +135 -0
  7. data/lib/generated/azure_mgmt_container_instance/container_logs.rb +144 -0
  8. data/lib/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +79 -0
  9. data/lib/generated/azure_mgmt_container_instance/models/container.rb +155 -0
  10. data/lib/generated/azure_mgmt_container_instance/models/container_event.rb +84 -0
  11. data/lib/generated/azure_mgmt_container_instance/models/container_group.rb +194 -0
  12. data/lib/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +95 -0
  13. data/lib/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
  14. data/lib/generated/azure_mgmt_container_instance/models/container_port.rb +44 -0
  15. data/lib/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +85 -0
  16. data/lib/generated/azure_mgmt_container_instance/models/container_restart_policy.rb +15 -0
  17. data/lib/generated/azure_mgmt_container_instance/models/container_state.rb +88 -0
  18. data/lib/generated/azure_mgmt_container_instance/models/environment_variable.rb +54 -0
  19. data/lib/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +65 -0
  20. data/lib/generated/azure_mgmt_container_instance/models/ip_address.rb +75 -0
  21. data/lib/generated/azure_mgmt_container_instance/models/logs.rb +44 -0
  22. data/lib/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
  23. data/lib/generated/azure_mgmt_container_instance/models/port.rb +55 -0
  24. data/lib/generated/azure_mgmt_container_instance/models/resource.rb +94 -0
  25. data/lib/generated/azure_mgmt_container_instance/models/resource_limits.rb +54 -0
  26. data/lib/generated/azure_mgmt_container_instance/models/resource_requests.rb +54 -0
  27. data/lib/generated/azure_mgmt_container_instance/models/resource_requirements.rb +58 -0
  28. data/lib/generated/azure_mgmt_container_instance/models/volume.rb +55 -0
  29. data/lib/generated/azure_mgmt_container_instance/models/volume_mount.rb +66 -0
  30. data/lib/generated/azure_mgmt_container_instance/module_definition.rb +8 -0
  31. data/lib/generated/azure_mgmt_container_instance/version.rb +8 -0
  32. metadata +143 -0
@@ -0,0 +1,84 @@
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::ARM::ContainerInstance
7
+ module Models
8
+ #
9
+ # A container instance event.
10
+ #
11
+ class ContainerEvent
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The count of the event.
16
+ attr_accessor :count
17
+
18
+ # @return [DateTime] The date-time of the earliest logged event.
19
+ attr_accessor :first_timestamp
20
+
21
+ # @return [DateTime] The date-time of the latest logged event.
22
+ attr_accessor :last_timestamp
23
+
24
+ # @return [String] The event message.
25
+ attr_accessor :message
26
+
27
+ # @return [String] The event type.
28
+ attr_accessor :type
29
+
30
+
31
+ #
32
+ # Mapper for ContainerEvent class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'ContainerEvent',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'ContainerEvent',
42
+ model_properties: {
43
+ count: {
44
+ required: false,
45
+ serialized_name: 'count',
46
+ type: {
47
+ name: 'Number'
48
+ }
49
+ },
50
+ first_timestamp: {
51
+ required: false,
52
+ serialized_name: 'firstTimestamp',
53
+ type: {
54
+ name: 'DateTime'
55
+ }
56
+ },
57
+ last_timestamp: {
58
+ required: false,
59
+ serialized_name: 'lastTimestamp',
60
+ type: {
61
+ name: 'DateTime'
62
+ }
63
+ },
64
+ message: {
65
+ required: false,
66
+ serialized_name: 'message',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ type: {
72
+ required: false,
73
+ serialized_name: 'type',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,194 @@
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::ARM::ContainerInstance
7
+ module Models
8
+ #
9
+ # A container group.
10
+ #
11
+ class ContainerGroup < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The provisioning state of the container group. This
16
+ # only appears in the response.
17
+ attr_accessor :provisioning_state
18
+
19
+ # @return [Array<Container>] The containers within the container group.
20
+ attr_accessor :containers
21
+
22
+ # @return [Array<ImageRegistryCredential>] The image registry credentials
23
+ # by which the container group is created from.
24
+ attr_accessor :image_registry_credentials
25
+
26
+ # @return [ContainerRestartPolicy] Restart policy for all containers
27
+ # within the container group. Currently the only available option is
28
+ # `always`. Possible values include: 'always'
29
+ attr_accessor :restart_policy
30
+
31
+ # @return [IpAddress] The IP address type of the container group.
32
+ attr_accessor :ip_address
33
+
34
+ # @return [OperatingSystemTypes] The operating system type required by
35
+ # the containers in the container group. Possible values include:
36
+ # 'Windows', 'Linux'
37
+ attr_accessor :os_type
38
+
39
+ # @return [String] The current state of the container group. This is only
40
+ # valid for the response.
41
+ attr_accessor :state
42
+
43
+ # @return [Array<Volume>] The list of volumes that can be mounted by
44
+ # containers in this container group.
45
+ attr_accessor :volumes
46
+
47
+
48
+ #
49
+ # Mapper for ContainerGroup class as Ruby Hash.
50
+ # This will be used for serialization/deserialization.
51
+ #
52
+ def self.mapper()
53
+ {
54
+ required: false,
55
+ serialized_name: 'ContainerGroup',
56
+ type: {
57
+ name: 'Composite',
58
+ class_name: 'ContainerGroup',
59
+ model_properties: {
60
+ id: {
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'id',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ name: {
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'name',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ type: {
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'type',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ location: {
85
+ required: true,
86
+ serialized_name: 'location',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ },
91
+ tags: {
92
+ required: false,
93
+ serialized_name: 'tags',
94
+ type: {
95
+ name: 'Dictionary',
96
+ value: {
97
+ required: false,
98
+ serialized_name: 'StringElementType',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ }
103
+ }
104
+ },
105
+ provisioning_state: {
106
+ required: false,
107
+ read_only: true,
108
+ serialized_name: 'properties.provisioningState',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ containers: {
114
+ required: false,
115
+ serialized_name: 'properties.containers',
116
+ type: {
117
+ name: 'Sequence',
118
+ element: {
119
+ required: false,
120
+ serialized_name: 'ContainerElementType',
121
+ type: {
122
+ name: 'Composite',
123
+ class_name: 'Container'
124
+ }
125
+ }
126
+ }
127
+ },
128
+ image_registry_credentials: {
129
+ required: false,
130
+ serialized_name: 'properties.imageRegistryCredentials',
131
+ type: {
132
+ name: 'Sequence',
133
+ element: {
134
+ required: false,
135
+ serialized_name: 'ImageRegistryCredentialElementType',
136
+ type: {
137
+ name: 'Composite',
138
+ class_name: 'ImageRegistryCredential'
139
+ }
140
+ }
141
+ }
142
+ },
143
+ restart_policy: {
144
+ required: false,
145
+ serialized_name: 'properties.restartPolicy',
146
+ type: {
147
+ name: 'String'
148
+ }
149
+ },
150
+ ip_address: {
151
+ required: false,
152
+ serialized_name: 'properties.ipAddress',
153
+ type: {
154
+ name: 'Composite',
155
+ class_name: 'IpAddress'
156
+ }
157
+ },
158
+ os_type: {
159
+ required: false,
160
+ serialized_name: 'properties.osType',
161
+ type: {
162
+ name: 'String'
163
+ }
164
+ },
165
+ state: {
166
+ required: false,
167
+ read_only: true,
168
+ serialized_name: 'properties.state',
169
+ type: {
170
+ name: 'String'
171
+ }
172
+ },
173
+ volumes: {
174
+ required: false,
175
+ serialized_name: 'properties.volumes',
176
+ type: {
177
+ name: 'Sequence',
178
+ element: {
179
+ required: false,
180
+ serialized_name: 'VolumeElementType',
181
+ type: {
182
+ name: 'Composite',
183
+ class_name: 'Volume'
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ end
192
+ end
193
+ end
194
+ end
@@ -0,0 +1,95 @@
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::ARM::ContainerInstance
7
+ module Models
8
+ #
9
+ # The container group list response that contains the container group
10
+ # properties.
11
+ #
12
+ class ContainerGroupListResult
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [Array<ContainerGroup>] The list of container groups.
18
+ attr_accessor :value
19
+
20
+ # @return [String] The URI to fetch the next page of container groups.
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<ContainerGroup>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil 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 [ContainerGroupListResult] 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 ContainerGroupListResult class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ required: false,
62
+ serialized_name: 'ContainerGroupListResult',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'ContainerGroupListResult',
66
+ model_properties: {
67
+ value: {
68
+ required: false,
69
+ serialized_name: 'value',
70
+ type: {
71
+ name: 'Sequence',
72
+ element: {
73
+ required: false,
74
+ serialized_name: 'ContainerGroupElementType',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'ContainerGroup'
78
+ }
79
+ }
80
+ }
81
+ },
82
+ next_link: {
83
+ required: false,
84
+ serialized_name: 'nextLink',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,16 @@
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::ARM::ContainerInstance
7
+ module Models
8
+ #
9
+ # Defines values for ContainerGroupNetworkProtocol
10
+ #
11
+ module ContainerGroupNetworkProtocol
12
+ TCP = "TCP"
13
+ UDP = "UDP"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,44 @@
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::ARM::ContainerInstance
7
+ module Models
8
+ #
9
+ # The port exposed on the container instance.
10
+ #
11
+ class ContainerPort
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The port number exposed within the container group.
16
+ attr_accessor :port
17
+
18
+
19
+ #
20
+ # Mapper for ContainerPort class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'ContainerPort',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'ContainerPort',
30
+ model_properties: {
31
+ port: {
32
+ required: true,
33
+ serialized_name: 'port',
34
+ type: {
35
+ name: 'Number'
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,85 @@
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::ARM::ContainerInstance
7
+ module Models
8
+ #
9
+ # The instance view of the container instance. Only valid in response.
10
+ #
11
+ class ContainerPropertiesInstanceView
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The number of times that the container instance has
16
+ # been restarted.
17
+ attr_accessor :restart_count
18
+
19
+ # @return [ContainerState] Current container instance state.
20
+ attr_accessor :current_state
21
+
22
+ # @return [ContainerState] Previous container instance state.
23
+ attr_accessor :previous_state
24
+
25
+ # @return [Array<ContainerEvent>] The events of the container instance.
26
+ attr_accessor :events
27
+
28
+
29
+ #
30
+ # Mapper for ContainerPropertiesInstanceView class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'ContainerProperties_instanceView',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'ContainerPropertiesInstanceView',
40
+ model_properties: {
41
+ restart_count: {
42
+ required: false,
43
+ serialized_name: 'restartCount',
44
+ type: {
45
+ name: 'Number'
46
+ }
47
+ },
48
+ current_state: {
49
+ required: false,
50
+ serialized_name: 'currentState',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'ContainerState'
54
+ }
55
+ },
56
+ previous_state: {
57
+ required: false,
58
+ serialized_name: 'previousState',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'ContainerState'
62
+ }
63
+ },
64
+ events: {
65
+ required: false,
66
+ serialized_name: 'events',
67
+ type: {
68
+ name: 'Sequence',
69
+ element: {
70
+ required: false,
71
+ serialized_name: 'ContainerEventElementType',
72
+ type: {
73
+ name: 'Composite',
74
+ class_name: 'ContainerEvent'
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ end
83
+ end
84
+ end
85
+ end