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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +7 -6
  3. data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +7 -6
  4. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +7 -6
  5. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance.rb +18 -14
  6. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_groups.rb +120 -71
  7. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +11 -6
  8. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
  9. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
  10. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
  11. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/start_container.rb +144 -0
  12. data/lib/2018-04-01/generated/azure_mgmt_container_instance.rb +67 -0
  13. data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_group_usage.rb +113 -0
  14. data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_groups.rb +984 -0
  15. data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +149 -0
  16. data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_logs.rb +139 -0
  17. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
  18. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container.rb +168 -0
  19. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
  20. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
  21. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +59 -0
  22. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group.rb +216 -0
  23. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
  24. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
  25. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
  26. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
  27. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
  28. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
  29. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
  30. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
  31. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_state.rb +99 -0
  32. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +57 -0
  33. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/event.rb +107 -0
  34. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
  35. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
  36. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/ip_address.rb +103 -0
  37. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/logs.rb +47 -0
  38. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
  39. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/operation.rb +72 -0
  40. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/operation_display.rb +83 -0
  41. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
  42. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
  43. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource.rb +101 -0
  44. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +57 -0
  45. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +57 -0
  46. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
  47. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
  48. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
  49. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
  50. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
  51. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
  52. data/lib/2018-04-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
  53. data/lib/2018-04-01/generated/azure_mgmt_container_instance/operations.rb +107 -0
  54. data/lib/2018-04-01/generated/azure_mgmt_container_instance/start_container.rb +144 -0
  55. data/lib/2018-06-01/generated/azure_mgmt_container_instance.rb +71 -0
  56. data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_group_usage.rb +113 -0
  57. data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_groups.rb +984 -0
  58. data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +145 -0
  59. data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_operations.rb +258 -0
  60. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
  61. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container.rb +192 -0
  62. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_exec.rb +54 -0
  63. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
  64. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
  65. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
  66. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group.rb +229 -0
  67. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb +47 -0
  68. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
  69. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
  70. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
  71. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
  72. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_http_get.rb +68 -0
  73. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
  74. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
  75. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
  76. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_probe.rb +114 -0
  77. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
  78. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_state.rb +94 -0
  79. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +68 -0
  80. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/event.rb +101 -0
  81. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
  82. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
  83. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/ip_address.rb +103 -0
  84. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/log_analytics.rb +57 -0
  85. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/logs.rb +46 -0
  86. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
  87. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/operation.rb +70 -0
  88. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/operation_display.rb +79 -0
  89. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
  90. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
  91. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource.rb +101 -0
  92. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +57 -0
  93. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +57 -0
  94. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
  95. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
  96. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
  97. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
  98. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
  99. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
  100. data/lib/2018-06-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
  101. data/lib/2018-06-01/generated/azure_mgmt_container_instance/operations.rb +107 -0
  102. data/lib/azure_mgmt_container_instance.rb +3 -1
  103. data/lib/profiles/latest/modules/containerinstance_profile_module.rb +116 -84
  104. data/lib/version.rb +1 -1
  105. 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 '2017-10-01-preview/generated/azure_mgmt_container_instance'
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::V2018_02_01_preview::ContainerGroups
10
- Operations = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Operations
11
- ContainerGroupUsage = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::ContainerGroupUsage
12
- ContainerLogs = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::ContainerLogs
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
- ImageRegistryCredential = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ImageRegistryCredential
16
- Port = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Port
17
- EnvironmentVariable = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::EnvironmentVariable
18
- IpAddress = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::IpAddress
19
- Event = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Event
20
- ContainerGroupPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupPropertiesInstanceView
21
- ResourceRequests = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequests
22
- ResourceLimits = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits
23
- VolumeMount = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::VolumeMount
24
- OperationDisplay = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperationDisplay
25
- AzureFileVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume
26
- Operation = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Operation
27
- Volume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Volume
28
- OperationListResult = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperationListResult
29
- ContainerState = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerState
30
- UsageName = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageName
31
- ResourceRequirements = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequirements
32
- Usage = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Usage
33
- GitRepoVolume = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume
34
- UsageListResult = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::UsageListResult
35
- ContainerPropertiesInstanceView = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPropertiesInstanceView
36
- ContainerGroupListResult = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupListResult
37
- ContainerPort = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPort
38
- Logs = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Logs
39
- Container = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Container
40
- Resource = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Resource
41
- ContainerGroup = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup
42
- ContainerNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerNetworkProtocol
43
- ContainerGroupRestartPolicy = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupRestartPolicy
44
- ContainerGroupNetworkProtocol = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupNetworkProtocol
45
- OperatingSystemTypes = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperatingSystemTypes
46
- ContainerInstanceOperationsOrigin = Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerInstanceOperationsOrigin
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, :container_logs, :configurable, :base_url, :options, :model_classes
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::V2018_02_01_preview::ContainerInstanceManagementClient.new(configurable.credentials, base_url, options)
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
- @container_logs = @client_0.container_logs
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::V2018_02_01_preview::Models::Port
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::V2018_02_01_preview::Models::EnvironmentVariable
112
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::EnvironmentVariable
105
113
  end
106
- def ip_address
107
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::IpAddress
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::V2018_02_01_preview::Models::Event
118
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Event
111
119
  end
112
- def container_group_properties_instance_view
113
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupPropertiesInstanceView
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::V2018_02_01_preview::Models::ResourceRequests
124
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ResourceRequests
117
125
  end
118
- def resource_limits
119
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceLimits
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::V2018_02_01_preview::Models::VolumeMount
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::V2018_02_01_preview::Models::OperationDisplay
139
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationDisplay
126
140
  end
127
- def azure_file_volume
128
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::AzureFileVolume
141
+ def container
142
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Container
129
143
  end
130
144
  def operation
131
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Operation
145
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Operation
132
146
  end
133
- def volume
134
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Volume
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::V2018_02_01_preview::Models::OperationListResult
151
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperationListResult
138
152
  end
139
- def container_state
140
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerState
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::V2018_02_01_preview::Models::UsageName
157
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageName
144
158
  end
145
- def resource_requirements
146
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ResourceRequirements
159
+ def container_state
160
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerState
147
161
  end
148
162
  def usage
149
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Usage
163
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Usage
150
164
  end
151
- def git_repo_volume
152
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::GitRepoVolume
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::V2018_02_01_preview::Models::UsageListResult
169
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::UsageListResult
156
170
  end
157
- def container_properties_instance_view
158
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPropertiesInstanceView
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::V2018_02_01_preview::Models::ContainerGroupListResult
175
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupListResult
162
176
  end
163
- def container_port
164
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerPort
177
+ def volume
178
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Volume
165
179
  end
166
180
  def logs
167
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Logs
181
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Logs
168
182
  end
169
- def container
170
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::Container
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::V2018_02_01_preview::Models::Resource
205
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::Resource
174
206
  end
175
207
  def container_group
176
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroup
208
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroup
177
209
  end
178
210
  def container_network_protocol
179
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerNetworkProtocol
211
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerNetworkProtocol
180
212
  end
181
213
  def container_group_restart_policy
182
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupRestartPolicy
214
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupRestartPolicy
183
215
  end
184
216
  def container_group_network_protocol
185
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerGroupNetworkProtocol
217
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerGroupNetworkProtocol
186
218
  end
187
219
  def operating_system_types
188
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::OperatingSystemTypes
220
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::OperatingSystemTypes
189
221
  end
190
222
  def container_instance_operations_origin
191
- Azure::ContainerInstance::Mgmt::V2018_02_01_preview::Models::ContainerInstanceOperationsOrigin
223
+ Azure::ContainerInstance::Mgmt::V2018_06_01::Models::ContainerInstanceOperationsOrigin
192
224
  end
193
225
  end
194
226
  end