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,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_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The name object of the resource
|
10
|
+
#
|
11
|
+
class UsageName
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the resource
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] The localized name of the resource
|
19
|
+
attr_accessor :localized_value
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for UsageName 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: 'Usage_name',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'UsageName',
|
34
|
+
model_properties: {
|
35
|
+
value: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'value',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
localized_value: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'localizedValue',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,100 @@
|
|
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_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties of the volume.
|
10
|
+
#
|
11
|
+
class Volume
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the volume.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [AzureFileVolume] The Azure File volume.
|
19
|
+
attr_accessor :azure_file
|
20
|
+
|
21
|
+
# @return The empty directory volume.
|
22
|
+
attr_accessor :empty_dir
|
23
|
+
|
24
|
+
# @return [Hash{String => String}] The secret volume.
|
25
|
+
attr_accessor :secret
|
26
|
+
|
27
|
+
# @return [GitRepoVolume] The git repo volume.
|
28
|
+
attr_accessor :git_repo
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for Volume class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'Volume',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'Volume',
|
43
|
+
model_properties: {
|
44
|
+
name: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: true,
|
47
|
+
serialized_name: 'name',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
azure_file: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'azureFile',
|
56
|
+
type: {
|
57
|
+
name: 'Composite',
|
58
|
+
class_name: 'AzureFileVolume'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
empty_dir: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'emptyDir',
|
65
|
+
type: {
|
66
|
+
name: 'Object'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
secret: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'secret',
|
73
|
+
type: {
|
74
|
+
name: 'Dictionary',
|
75
|
+
value: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'StringElementType',
|
79
|
+
type: {
|
80
|
+
name: 'String'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
git_repo: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'gitRepo',
|
89
|
+
type: {
|
90
|
+
name: 'Composite',
|
91
|
+
class_name: 'GitRepoVolume'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,70 @@
|
|
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_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties of the volume mount.
|
10
|
+
#
|
11
|
+
class VolumeMount
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the volume mount.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] The path within the container where the volume should
|
19
|
+
# be mounted. Must not contain colon (:).
|
20
|
+
attr_accessor :mount_path
|
21
|
+
|
22
|
+
# @return [Boolean] The flag indicating whether the volume mount is
|
23
|
+
# read-only.
|
24
|
+
attr_accessor :read_only
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for VolumeMount class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'VolumeMount',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'VolumeMount',
|
39
|
+
model_properties: {
|
40
|
+
name: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: true,
|
43
|
+
serialized_name: 'name',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
mount_path: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: true,
|
51
|
+
serialized_name: 'mountPath',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
read_only: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'readOnly',
|
60
|
+
type: {
|
61
|
+
name: 'Boolean'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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 end
|
7
|
+
module Azure::ContainerInstance end
|
8
|
+
module Azure::ContainerInstance::Mgmt end
|
9
|
+
module Azure::ContainerInstance::Mgmt::V2018_06_01 end
|
@@ -0,0 +1,107 @@
|
|
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_06_01
|
7
|
+
#
|
8
|
+
# Operations
|
9
|
+
#
|
10
|
+
class Operations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Operations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [ContainerInstanceManagementClient] reference to the ContainerInstanceManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# List the operations for Azure Container Instance service.
|
26
|
+
#
|
27
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
28
|
+
# will be added to the HTTP request.
|
29
|
+
#
|
30
|
+
# @return [OperationListResult] operation results.
|
31
|
+
#
|
32
|
+
def list(custom_headers:nil)
|
33
|
+
response = list_async(custom_headers:custom_headers).value!
|
34
|
+
response.body unless response.nil?
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# List the operations for Azure Container Instance service.
|
39
|
+
#
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
|
+
#
|
45
|
+
def list_with_http_info(custom_headers:nil)
|
46
|
+
list_async(custom_headers:custom_headers).value!
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# List the operations for Azure Container Instance service.
|
51
|
+
#
|
52
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
53
|
+
# to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
|
+
#
|
57
|
+
def list_async(custom_headers:nil)
|
58
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
|
+
|
60
|
+
|
61
|
+
request_headers = {}
|
62
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
63
|
+
|
64
|
+
# Set Headers
|
65
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
66
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
67
|
+
path_template = 'providers/Microsoft.ContainerInstance/operations'
|
68
|
+
|
69
|
+
request_url = @base_url || @client.base_url
|
70
|
+
|
71
|
+
options = {
|
72
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
73
|
+
query_params: {'api-version' => @client.api_version},
|
74
|
+
headers: request_headers.merge(custom_headers || {}),
|
75
|
+
base_url: request_url
|
76
|
+
}
|
77
|
+
promise = @client.make_request_async(:get, path_template, options)
|
78
|
+
|
79
|
+
promise = promise.then do |result|
|
80
|
+
http_response = result.response
|
81
|
+
status_code = http_response.status
|
82
|
+
response_content = http_response.body
|
83
|
+
unless status_code == 200
|
84
|
+
error_model = JSON.load(response_content)
|
85
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
86
|
+
end
|
87
|
+
|
88
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
89
|
+
# Deserialize Response
|
90
|
+
if status_code == 200
|
91
|
+
begin
|
92
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
93
|
+
result_mapper = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationListResult.mapper()
|
94
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
95
|
+
rescue Exception => e
|
96
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
result
|
101
|
+
end
|
102
|
+
|
103
|
+
promise.execute
|
104
|
+
end
|
105
|
+
|
106
|
+
end
|
107
|
+
end
|
@@ -3,7 +3,9 @@
|
|
3
3
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
4
|
|
5
5
|
require '2017-08-01-preview/generated/azure_mgmt_container_instance'
|
6
|
-
require '
|
6
|
+
require '2018-06-01/generated/azure_mgmt_container_instance'
|
7
|
+
require '2018-04-01/generated/azure_mgmt_container_instance'
|
7
8
|
require '2017-12-01-preview/generated/azure_mgmt_container_instance'
|
8
9
|
require '2018-02-01-preview/generated/azure_mgmt_container_instance'
|
10
|
+
require '2017-10-01-preview/generated/azure_mgmt_container_instance'
|
9
11
|
require 'profiles/latest/containerinstance_latest_profile_client'
|
@@ -6,51 +6,59 @@ require 'azure_mgmt_container_instance'
|
|
6
6
|
|
7
7
|
module Azure::ContainerInstance::Profiles::Latest
|
8
8
|
module Mgmt
|
9
|
-
ContainerGroups = Azure::ContainerInstance::Mgmt::
|
10
|
-
Operations = Azure::ContainerInstance::Mgmt::
|
11
|
-
ContainerGroupUsage = Azure::ContainerInstance::Mgmt::
|
12
|
-
|
9
|
+
ContainerGroups = Azure::ContainerInstance::Mgmt::V2018_06_01::ContainerGroups
|
10
|
+
Operations = Azure::ContainerInstance::Mgmt::V2018_06_01::Operations
|
11
|
+
ContainerGroupUsage = Azure::ContainerInstance::Mgmt::V2018_06_01::ContainerGroupUsage
|
12
|
+
ContainerOperations = Azure::ContainerInstance::Mgmt::V2018_06_01::ContainerOperations
|
13
13
|
|
14
14
|
module Models
|
15
|
-
|
16
|
-
|
17
|
-
EnvironmentVariable = Azure::ContainerInstance::Mgmt::
|
18
|
-
|
19
|
-
Event = Azure::ContainerInstance::Mgmt::
|
20
|
-
|
21
|
-
ResourceRequests = Azure::ContainerInstance::Mgmt::
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
15
|
+
Port = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Port
|
16
|
+
IpAddress = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::IpAddress
|
17
|
+
EnvironmentVariable = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::EnvironmentVariable
|
18
|
+
ContainerGroupPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupPropertiesInstanceView
|
19
|
+
Event = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Event
|
20
|
+
LogAnalytics = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::LogAnalytics
|
21
|
+
ResourceRequests = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceRequests
|
22
|
+
ContainerGroupDiagnostics = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupDiagnostics
|
23
|
+
ResourceRequirements = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceRequirements
|
24
|
+
VolumeMount = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::VolumeMount
|
25
|
+
ContainerHttpGet = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerHttpGet
|
26
|
+
OperationDisplay = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationDisplay
|
27
|
+
Container = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Container
|
28
|
+
Operation = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Operation
|
29
|
+
GitRepoVolume = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::GitRepoVolume
|
30
|
+
OperationListResult = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationListResult
|
31
|
+
ImageRegistryCredential = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ImageRegistryCredential
|
32
|
+
UsageName = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageName
|
33
|
+
ContainerState = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerState
|
34
|
+
Usage = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Usage
|
35
|
+
ResourceLimits = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceLimits
|
36
|
+
UsageListResult = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageListResult
|
37
|
+
ContainerProbe = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerProbe
|
38
|
+
ContainerGroupListResult = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupListResult
|
39
|
+
Volume = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Volume
|
40
|
+
Logs = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Logs
|
41
|
+
ContainerPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerPropertiesInstanceView
|
42
|
+
ContainerExecRequestTerminalSize = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecRequestTerminalSize
|
43
|
+
AzureFileVolume = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::AzureFileVolume
|
44
|
+
ContainerExecRequest = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecRequest
|
45
|
+
ContainerExec = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExec
|
46
|
+
ContainerExecResponse = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecResponse
|
47
|
+
ContainerPort = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerPort
|
48
|
+
Resource = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Resource
|
49
|
+
ContainerGroup = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroup
|
50
|
+
ContainerNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerNetworkProtocol
|
51
|
+
ContainerGroupRestartPolicy = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupRestartPolicy
|
52
|
+
ContainerGroupNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupNetworkProtocol
|
53
|
+
OperatingSystemTypes = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperatingSystemTypes
|
54
|
+
ContainerInstanceOperationsOrigin = Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerInstanceOperationsOrigin
|
47
55
|
end
|
48
56
|
|
49
57
|
#
|
50
58
|
# ContainerInstanceManagementClass
|
51
59
|
#
|
52
60
|
class ContainerInstanceManagementClass
|
53
|
-
attr_reader :container_groups, :operations, :container_group_usage, :
|
61
|
+
attr_reader :container_groups, :operations, :container_group_usage, :container_operations, :configurable, :base_url, :options, :model_classes
|
54
62
|
|
55
63
|
def initialize(options = {})
|
56
64
|
if options.is_a?(Hash) && options.length == 0
|
@@ -65,7 +73,7 @@ module Azure::ContainerInstance::Profiles::Latest
|
|
65
73
|
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
66
74
|
@options = options[:options].nil? ? nil:options[:options]
|
67
75
|
|
68
|
-
@client_0 = Azure::ContainerInstance::Mgmt::
|
76
|
+
@client_0 = Azure::ContainerInstance::Mgmt::V2018_06_01::ContainerInstanceManagementClient.new(configurable.credentials, base_url, options)
|
69
77
|
if(@client_0.respond_to?(:subscription_id))
|
70
78
|
@client_0.subscription_id = configurable.subscription_id
|
71
79
|
end
|
@@ -73,7 +81,7 @@ module Azure::ContainerInstance::Profiles::Latest
|
|
73
81
|
@container_groups = @client_0.container_groups
|
74
82
|
@operations = @client_0.operations
|
75
83
|
@container_group_usage = @client_0.container_group_usage
|
76
|
-
@
|
84
|
+
@container_operations = @client_0.container_operations
|
77
85
|
|
78
86
|
@model_classes = ModelClasses.new
|
79
87
|
end
|
@@ -94,101 +102,125 @@ module Azure::ContainerInstance::Profiles::Latest
|
|
94
102
|
end
|
95
103
|
|
96
104
|
class ModelClasses
|
97
|
-
def image_registry_credential
|
98
|
-
Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ImageRegistryCredential
|
99
|
-
end
|
100
105
|
def port
|
101
|
-
Azure::ContainerInstance::Mgmt::
|
106
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Port
|
107
|
+
end
|
108
|
+
def ip_address
|
109
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::IpAddress
|
102
110
|
end
|
103
111
|
def environment_variable
|
104
|
-
Azure::ContainerInstance::Mgmt::
|
112
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::EnvironmentVariable
|
105
113
|
end
|
106
|
-
def
|
107
|
-
Azure::ContainerInstance::Mgmt::
|
114
|
+
def container_group_properties_instance_view
|
115
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupPropertiesInstanceView
|
108
116
|
end
|
109
117
|
def event
|
110
|
-
Azure::ContainerInstance::Mgmt::
|
118
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Event
|
111
119
|
end
|
112
|
-
def
|
113
|
-
Azure::ContainerInstance::Mgmt::
|
120
|
+
def log_analytics
|
121
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::LogAnalytics
|
114
122
|
end
|
115
123
|
def resource_requests
|
116
|
-
Azure::ContainerInstance::Mgmt::
|
124
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceRequests
|
117
125
|
end
|
118
|
-
def
|
119
|
-
Azure::ContainerInstance::Mgmt::
|
126
|
+
def container_group_diagnostics
|
127
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupDiagnostics
|
128
|
+
end
|
129
|
+
def resource_requirements
|
130
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceRequirements
|
120
131
|
end
|
121
132
|
def volume_mount
|
122
|
-
Azure::ContainerInstance::Mgmt::
|
133
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::VolumeMount
|
134
|
+
end
|
135
|
+
def container_http_get
|
136
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerHttpGet
|
123
137
|
end
|
124
138
|
def operation_display
|
125
|
-
Azure::ContainerInstance::Mgmt::
|
139
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationDisplay
|
126
140
|
end
|
127
|
-
def
|
128
|
-
Azure::ContainerInstance::Mgmt::
|
141
|
+
def container
|
142
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Container
|
129
143
|
end
|
130
144
|
def operation
|
131
|
-
Azure::ContainerInstance::Mgmt::
|
145
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Operation
|
132
146
|
end
|
133
|
-
def
|
134
|
-
Azure::ContainerInstance::Mgmt::
|
147
|
+
def git_repo_volume
|
148
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::GitRepoVolume
|
135
149
|
end
|
136
150
|
def operation_list_result
|
137
|
-
Azure::ContainerInstance::Mgmt::
|
151
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationListResult
|
138
152
|
end
|
139
|
-
def
|
140
|
-
Azure::ContainerInstance::Mgmt::
|
153
|
+
def image_registry_credential
|
154
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ImageRegistryCredential
|
141
155
|
end
|
142
156
|
def usage_name
|
143
|
-
Azure::ContainerInstance::Mgmt::
|
157
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageName
|
144
158
|
end
|
145
|
-
def
|
146
|
-
Azure::ContainerInstance::Mgmt::
|
159
|
+
def container_state
|
160
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerState
|
147
161
|
end
|
148
162
|
def usage
|
149
|
-
Azure::ContainerInstance::Mgmt::
|
163
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Usage
|
150
164
|
end
|
151
|
-
def
|
152
|
-
Azure::ContainerInstance::Mgmt::
|
165
|
+
def resource_limits
|
166
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceLimits
|
153
167
|
end
|
154
168
|
def usage_list_result
|
155
|
-
Azure::ContainerInstance::Mgmt::
|
169
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageListResult
|
156
170
|
end
|
157
|
-
def
|
158
|
-
Azure::ContainerInstance::Mgmt::
|
171
|
+
def container_probe
|
172
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerProbe
|
159
173
|
end
|
160
174
|
def container_group_list_result
|
161
|
-
Azure::ContainerInstance::Mgmt::
|
175
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupListResult
|
162
176
|
end
|
163
|
-
def
|
164
|
-
Azure::ContainerInstance::Mgmt::
|
177
|
+
def volume
|
178
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Volume
|
165
179
|
end
|
166
180
|
def logs
|
167
|
-
Azure::ContainerInstance::Mgmt::
|
181
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Logs
|
168
182
|
end
|
169
|
-
def
|
170
|
-
Azure::ContainerInstance::Mgmt::
|
183
|
+
def container_properties_instance_view
|
184
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerPropertiesInstanceView
|
185
|
+
end
|
186
|
+
def container_exec_request_terminal_size
|
187
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecRequestTerminalSize
|
188
|
+
end
|
189
|
+
def azure_file_volume
|
190
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::AzureFileVolume
|
191
|
+
end
|
192
|
+
def container_exec_request
|
193
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecRequest
|
194
|
+
end
|
195
|
+
def container_exec
|
196
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExec
|
197
|
+
end
|
198
|
+
def container_exec_response
|
199
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerExecResponse
|
200
|
+
end
|
201
|
+
def container_port
|
202
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerPort
|
171
203
|
end
|
172
204
|
def resource
|
173
|
-
Azure::ContainerInstance::Mgmt::
|
205
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Resource
|
174
206
|
end
|
175
207
|
def container_group
|
176
|
-
Azure::ContainerInstance::Mgmt::
|
208
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroup
|
177
209
|
end
|
178
210
|
def container_network_protocol
|
179
|
-
Azure::ContainerInstance::Mgmt::
|
211
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerNetworkProtocol
|
180
212
|
end
|
181
213
|
def container_group_restart_policy
|
182
|
-
Azure::ContainerInstance::Mgmt::
|
214
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupRestartPolicy
|
183
215
|
end
|
184
216
|
def container_group_network_protocol
|
185
|
-
Azure::ContainerInstance::Mgmt::
|
217
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupNetworkProtocol
|
186
218
|
end
|
187
219
|
def operating_system_types
|
188
|
-
Azure::ContainerInstance::Mgmt::
|
220
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperatingSystemTypes
|
189
221
|
end
|
190
222
|
def container_instance_operations_origin
|
191
|
-
Azure::ContainerInstance::Mgmt::
|
223
|
+
Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerInstanceOperationsOrigin
|
192
224
|
end
|
193
225
|
end
|
194
226
|
end
|