azure_mgmt_container_instance 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +7 -6
- data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +7 -6
- data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +7 -6
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance.rb +18 -14
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_groups.rb +120 -71
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +11 -6
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
- data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/start_container.rb +144 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance.rb +67 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_group_usage.rb +113 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_groups.rb +984 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +149 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_logs.rb +139 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container.rb +168 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +59 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group.rb +216 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_state.rb +99 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/event.rb +107 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/ip_address.rb +103 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/logs.rb +47 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/operation.rb +72 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/operation_display.rb +83 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource.rb +101 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +57 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/operations.rb +107 -0
- data/lib/2018-04-01/generated/azure_mgmt_container_instance/start_container.rb +144 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance.rb +71 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_group_usage.rb +113 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_groups.rb +984 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +145 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_operations.rb +258 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container.rb +192 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_exec.rb +54 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group.rb +229 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb +47 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_http_get.rb +68 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_probe.rb +114 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_state.rb +94 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +68 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/event.rb +101 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/ip_address.rb +103 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/log_analytics.rb +57 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/logs.rb +46 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/operation.rb +70 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/operation_display.rb +79 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource.rb +101 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +57 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +57 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
- data/lib/2018-06-01/generated/azure_mgmt_container_instance/operations.rb +107 -0
- data/lib/azure_mgmt_container_instance.rb +3 -1
- data/lib/profiles/latest/modules/containerinstance_profile_module.rb +116 -84
- data/lib/version.rb +1 -1
- metadata +98 -4
@@ -0,0 +1,58 @@
|
|
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::ContainerInstance::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The start container exec request.
|
10
|
+
#
|
11
|
+
class ContainerExecRequest
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The command to be executed.
|
16
|
+
attr_accessor :command
|
17
|
+
|
18
|
+
# @return [ContainerExecRequestTerminalSize] The size of the terminal.
|
19
|
+
attr_accessor :terminal_size
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for ContainerExecRequest 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: 'ContainerExecRequest',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'ContainerExecRequest',
|
34
|
+
model_properties: {
|
35
|
+
command: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'command',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
terminal_size: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'terminalSize',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'ContainerExecRequestTerminalSize'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,57 @@
|
|
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::ContainerInstance::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The size of the terminal.
|
10
|
+
#
|
11
|
+
class ContainerExecRequestTerminalSize
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] The row size of the terminal
|
16
|
+
attr_accessor :row
|
17
|
+
|
18
|
+
# @return [Integer] The column size of the terminal
|
19
|
+
attr_accessor :column
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for ContainerExecRequestTerminalSize 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: 'ContainerExecRequest_terminalSize',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'ContainerExecRequestTerminalSize',
|
34
|
+
model_properties: {
|
35
|
+
row: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'row',
|
39
|
+
type: {
|
40
|
+
name: 'Number'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
column: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'column',
|
47
|
+
type: {
|
48
|
+
name: 'Number'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,59 @@
|
|
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::ContainerInstance::Mgmt::V2018_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The information for the container exec command.
|
10
|
+
#
|
11
|
+
class ContainerExecResponse
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The uri for the exec websocket.
|
16
|
+
attr_accessor :web_socket_uri
|
17
|
+
|
18
|
+
# @return [String] The password to start the exec command.
|
19
|
+
attr_accessor :password
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for ContainerExecResponse 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: 'ContainerExecResponse',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'ContainerExecResponse',
|
34
|
+
model_properties: {
|
35
|
+
web_socket_uri: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'webSocketUri',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
password: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'password',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,216 @@
|
|
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::ContainerInstance::Mgmt::V2018_04_01
|
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 [ContainerGroupRestartPolicy] Restart policy for all containers
|
27
|
+
# within the container group.
|
28
|
+
# - `Always` Always restart
|
29
|
+
# - `OnFailure` Restart on failure
|
30
|
+
# - `Never` Never restart
|
31
|
+
# . Possible values include: 'Always', 'OnFailure', 'Never'
|
32
|
+
attr_accessor :restart_policy
|
33
|
+
|
34
|
+
# @return [IpAddress] The IP address type of the container group.
|
35
|
+
attr_accessor :ip_address
|
36
|
+
|
37
|
+
# @return [OperatingSystemTypes] The operating system type required by
|
38
|
+
# the containers in the container group. Possible values include:
|
39
|
+
# 'Windows', 'Linux'
|
40
|
+
attr_accessor :os_type
|
41
|
+
|
42
|
+
# @return [Array<Volume>] The list of volumes that can be mounted by
|
43
|
+
# containers in this container group.
|
44
|
+
attr_accessor :volumes
|
45
|
+
|
46
|
+
# @return [ContainerGroupPropertiesInstanceView] The instance view of the
|
47
|
+
# container group. Only valid in response.
|
48
|
+
attr_accessor :instance_view
|
49
|
+
|
50
|
+
|
51
|
+
#
|
52
|
+
# Mapper for ContainerGroup class as Ruby Hash.
|
53
|
+
# This will be used for serialization/deserialization.
|
54
|
+
#
|
55
|
+
def self.mapper()
|
56
|
+
{
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'ContainerGroup',
|
60
|
+
type: {
|
61
|
+
name: 'Composite',
|
62
|
+
class_name: 'ContainerGroup',
|
63
|
+
model_properties: {
|
64
|
+
id: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
read_only: true,
|
68
|
+
serialized_name: 'id',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
name: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
read_only: true,
|
77
|
+
serialized_name: 'name',
|
78
|
+
type: {
|
79
|
+
name: 'String'
|
80
|
+
}
|
81
|
+
},
|
82
|
+
type: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: false,
|
85
|
+
read_only: true,
|
86
|
+
serialized_name: 'type',
|
87
|
+
type: {
|
88
|
+
name: 'String'
|
89
|
+
}
|
90
|
+
},
|
91
|
+
location: {
|
92
|
+
client_side_validation: true,
|
93
|
+
required: false,
|
94
|
+
serialized_name: 'location',
|
95
|
+
type: {
|
96
|
+
name: 'String'
|
97
|
+
}
|
98
|
+
},
|
99
|
+
tags: {
|
100
|
+
client_side_validation: true,
|
101
|
+
required: false,
|
102
|
+
serialized_name: 'tags',
|
103
|
+
type: {
|
104
|
+
name: 'Dictionary',
|
105
|
+
value: {
|
106
|
+
client_side_validation: true,
|
107
|
+
required: false,
|
108
|
+
serialized_name: 'StringElementType',
|
109
|
+
type: {
|
110
|
+
name: 'String'
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
},
|
115
|
+
provisioning_state: {
|
116
|
+
client_side_validation: true,
|
117
|
+
required: false,
|
118
|
+
read_only: true,
|
119
|
+
serialized_name: 'properties.provisioningState',
|
120
|
+
type: {
|
121
|
+
name: 'String'
|
122
|
+
}
|
123
|
+
},
|
124
|
+
containers: {
|
125
|
+
client_side_validation: true,
|
126
|
+
required: false,
|
127
|
+
serialized_name: 'properties.containers',
|
128
|
+
type: {
|
129
|
+
name: 'Sequence',
|
130
|
+
element: {
|
131
|
+
client_side_validation: true,
|
132
|
+
required: false,
|
133
|
+
serialized_name: 'ContainerElementType',
|
134
|
+
type: {
|
135
|
+
name: 'Composite',
|
136
|
+
class_name: 'Container'
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
},
|
141
|
+
image_registry_credentials: {
|
142
|
+
client_side_validation: true,
|
143
|
+
required: false,
|
144
|
+
serialized_name: 'properties.imageRegistryCredentials',
|
145
|
+
type: {
|
146
|
+
name: 'Sequence',
|
147
|
+
element: {
|
148
|
+
client_side_validation: true,
|
149
|
+
required: false,
|
150
|
+
serialized_name: 'ImageRegistryCredentialElementType',
|
151
|
+
type: {
|
152
|
+
name: 'Composite',
|
153
|
+
class_name: 'ImageRegistryCredential'
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
},
|
158
|
+
restart_policy: {
|
159
|
+
client_side_validation: true,
|
160
|
+
required: false,
|
161
|
+
serialized_name: 'properties.restartPolicy',
|
162
|
+
type: {
|
163
|
+
name: 'String'
|
164
|
+
}
|
165
|
+
},
|
166
|
+
ip_address: {
|
167
|
+
client_side_validation: true,
|
168
|
+
required: false,
|
169
|
+
serialized_name: 'properties.ipAddress',
|
170
|
+
type: {
|
171
|
+
name: 'Composite',
|
172
|
+
class_name: 'IpAddress'
|
173
|
+
}
|
174
|
+
},
|
175
|
+
os_type: {
|
176
|
+
client_side_validation: true,
|
177
|
+
required: false,
|
178
|
+
serialized_name: 'properties.osType',
|
179
|
+
type: {
|
180
|
+
name: 'String'
|
181
|
+
}
|
182
|
+
},
|
183
|
+
volumes: {
|
184
|
+
client_side_validation: true,
|
185
|
+
required: false,
|
186
|
+
serialized_name: 'properties.volumes',
|
187
|
+
type: {
|
188
|
+
name: 'Sequence',
|
189
|
+
element: {
|
190
|
+
client_side_validation: true,
|
191
|
+
required: false,
|
192
|
+
serialized_name: 'VolumeElementType',
|
193
|
+
type: {
|
194
|
+
name: 'Composite',
|
195
|
+
class_name: 'Volume'
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
},
|
200
|
+
instance_view: {
|
201
|
+
client_side_validation: true,
|
202
|
+
required: false,
|
203
|
+
read_only: true,
|
204
|
+
serialized_name: 'properties.instanceView',
|
205
|
+
type: {
|
206
|
+
name: 'Composite',
|
207
|
+
class_name: 'ContainerGroupPropertiesInstanceView'
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb
ADDED
@@ -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::ContainerInstance::Mgmt::V2018_04_01
|
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
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'ContainerGroupListResult',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'ContainerGroupListResult',
|
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: 'ContainerGroupElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'ContainerGroup'
|
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
|