azure_mgmt_container_instance 0.17.0 → 0.17.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  3. data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  4. data/lib/2017-08-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
  5. data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  6. data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  7. data/lib/2017-10-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
  8. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  9. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  10. data/lib/2017-12-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
  11. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  12. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  13. data/lib/2018-02-01-preview/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
  14. data/lib/2018-04-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  15. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  16. data/lib/2018-04-01/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
  17. data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_groups.rb +221 -0
  18. data/lib/2018-06-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +1 -1
  19. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +1 -1
  20. data/lib/2018-06-01/generated/azure_mgmt_container_instance/models/resource.rb +9 -0
  21. data/lib/2018-09-01/generated/azure_mgmt_container_instance.rb +74 -0
  22. data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_group_usage.rb +113 -0
  23. data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_groups.rb +1205 -0
  24. data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +145 -0
  25. data/lib/2018-09-01/generated/azure_mgmt_container_instance/container_operations.rb +258 -0
  26. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
  27. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container.rb +192 -0
  28. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec.rb +54 -0
  29. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
  30. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
  31. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
  32. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group.rb +242 -0
  33. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb +47 -0
  34. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb +16 -0
  35. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
  36. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_network_profile.rb +46 -0
  37. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
  38. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
  39. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
  40. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_http_get.rb +68 -0
  41. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
  42. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
  43. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
  44. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_probe.rb +114 -0
  45. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
  46. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/container_state.rb +94 -0
  47. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +68 -0
  48. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/event.rb +101 -0
  49. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
  50. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
  51. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/ip_address.rb +101 -0
  52. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/log_analytics.rb +88 -0
  53. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/log_analytics_log_type.rb +16 -0
  54. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/logs.rb +46 -0
  55. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
  56. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operation.rb +70 -0
  57. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operation_display.rb +79 -0
  58. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
  59. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
  60. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource.rb +110 -0
  61. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +57 -0
  62. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +57 -0
  63. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
  64. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
  65. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
  66. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
  67. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
  68. data/lib/2018-09-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
  69. data/lib/2018-09-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
  70. data/lib/2018-09-01/generated/azure_mgmt_container_instance/operations.rb +107 -0
  71. data/lib/2018-10-01/generated/azure_mgmt_container_instance.rb +81 -0
  72. data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_group_usage.rb +113 -0
  73. data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_groups.rb +1332 -0
  74. data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_instance_management_client.rb +149 -0
  75. data/lib/2018-10-01/generated/azure_mgmt_container_instance/container_operations.rb +258 -0
  76. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb +84 -0
  77. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container.rb +192 -0
  78. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec.rb +54 -0
  79. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_request.rb +58 -0
  80. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_request_terminal_size.rb +57 -0
  81. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_exec_response.rb +57 -0
  82. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group.rb +268 -0
  83. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_diagnostics.rb +47 -0
  84. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_identity.rb +102 -0
  85. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_identity_user_assigned_identities_value.rb +61 -0
  86. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_ip_address_type.rb +16 -0
  87. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_list_result.rb +99 -0
  88. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_network_profile.rb +46 -0
  89. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_network_protocol.rb +16 -0
  90. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_properties_instance_view.rb +69 -0
  91. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_group_restart_policy.rb +17 -0
  92. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_http_get.rb +68 -0
  93. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_instance_operations_origin.rb +16 -0
  94. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_network_protocol.rb +16 -0
  95. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_port.rb +58 -0
  96. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_probe.rb +114 -0
  97. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_properties_instance_view.rb +95 -0
  98. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/container_state.rb +94 -0
  99. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/dns_configuration.rb +77 -0
  100. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/environment_variable.rb +68 -0
  101. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/event.rb +101 -0
  102. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/git_repo_volume.rb +72 -0
  103. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/gpu_resource.rb +58 -0
  104. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/gpu_sku.rb +17 -0
  105. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/image_registry_credential.rb +69 -0
  106. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/ip_address.rb +102 -0
  107. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/log_analytics.rb +88 -0
  108. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/log_analytics_log_type.rb +16 -0
  109. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/logs.rb +46 -0
  110. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operating_system_types.rb +16 -0
  111. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operation.rb +70 -0
  112. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operation_display.rb +79 -0
  113. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/operation_list_result.rb +67 -0
  114. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/port.rb +58 -0
  115. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource.rb +110 -0
  116. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_identity_type.rb +18 -0
  117. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_limits.rb +69 -0
  118. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requests.rb +69 -0
  119. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/resource_requirements.rb +61 -0
  120. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/usage.rb +84 -0
  121. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/usage_list_result.rb +56 -0
  122. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/usage_name.rb +59 -0
  123. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume.rb +100 -0
  124. data/lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume_mount.rb +70 -0
  125. data/lib/2018-10-01/generated/azure_mgmt_container_instance/module_definition.rb +9 -0
  126. data/lib/2018-10-01/generated/azure_mgmt_container_instance/operations.rb +107 -0
  127. data/lib/2018-10-01/generated/azure_mgmt_container_instance/service_association_link.rb +119 -0
  128. data/lib/azure_mgmt_container_instance.rb +2 -0
  129. data/lib/profiles/latest/modules/containerinstance_profile_module.rb +139 -101
  130. data/lib/version.rb +1 -1
  131. metadata +112 -5
@@ -0,0 +1,56 @@
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_10_01
7
+ module Models
8
+ #
9
+ # The response containing the usage data
10
+ #
11
+ class UsageListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Usage>]
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for UsageListResult class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'UsageListResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'UsageListResult',
31
+ model_properties: {
32
+ value: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ read_only: true,
36
+ serialized_name: 'value',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'UsageElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'Usage'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ 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_10_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_10_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_10_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_10_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_10_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_10_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
@@ -0,0 +1,119 @@
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_10_01
7
+ #
8
+ # ServiceAssociationLink
9
+ #
10
+ class ServiceAssociationLink
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the ServiceAssociationLink 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
+ # Delete the container instance service association link for the subnet.
26
+ #
27
+ # Delete the container instance service association link for the subnet. This
28
+ # operation unblocks user from deleting subnet.
29
+ #
30
+ # @param resource_group_name [String] The name of the resource group.
31
+ # @param virtual_network_name [String] The name of the virtual network.
32
+ # @param subnet_name [String] The name of the subnet.
33
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
34
+ # will be added to the HTTP request.
35
+ #
36
+ #
37
+ def delete(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil)
38
+ response = delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value!
39
+ nil
40
+ end
41
+
42
+ #
43
+ # Delete the container instance service association link for the subnet.
44
+ #
45
+ # Delete the container instance service association link for the subnet. This
46
+ # operation unblocks user from deleting subnet.
47
+ #
48
+ # @param resource_group_name [String] The name of the resource group.
49
+ # @param virtual_network_name [String] The name of the virtual network.
50
+ # @param subnet_name [String] The name of the subnet.
51
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
52
+ # will be added to the HTTP request.
53
+ #
54
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
55
+ #
56
+ def delete_with_http_info(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil)
57
+ delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:custom_headers).value!
58
+ end
59
+
60
+ #
61
+ # Delete the container instance service association link for the subnet.
62
+ #
63
+ # Delete the container instance service association link for the subnet. This
64
+ # operation unblocks user from deleting subnet.
65
+ #
66
+ # @param resource_group_name [String] The name of the resource group.
67
+ # @param virtual_network_name [String] The name of the virtual network.
68
+ # @param subnet_name [String] The name of the subnet.
69
+ # @param [Hash{String => String}] A hash of custom headers that will be added
70
+ # to the HTTP request.
71
+ #
72
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
73
+ #
74
+ def delete_async(resource_group_name, virtual_network_name, subnet_name, custom_headers:nil)
75
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
76
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
78
+ fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
79
+ fail ArgumentError, 'subnet_name is nil' if subnet_name.nil?
80
+
81
+
82
+ request_headers = {}
83
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
84
+
85
+ # Set Headers
86
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
87
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
88
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default'
89
+
90
+ request_url = @base_url || @client.base_url
91
+
92
+ options = {
93
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
94
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'virtualNetworkName' => virtual_network_name,'subnetName' => subnet_name},
95
+ query_params: {'api-version' => @client.api_version},
96
+ headers: request_headers.merge(custom_headers || {}),
97
+ base_url: request_url
98
+ }
99
+ promise = @client.make_request_async(:delete, path_template, options)
100
+
101
+ promise = promise.then do |result|
102
+ http_response = result.response
103
+ status_code = http_response.status
104
+ response_content = http_response.body
105
+ unless status_code == 200 || status_code == 204
106
+ error_model = JSON.load(response_content)
107
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
108
+ end
109
+
110
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
111
+
112
+ result
113
+ end
114
+
115
+ promise.execute
116
+ end
117
+
118
+ end
119
+ end