azure_mgmt_container_service 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-03-30/generated/azure_mgmt_container_service/container_service_client.rb +7 -6
  3. data/lib/2016-09-30/generated/azure_mgmt_container_service/container_service_client.rb +7 -6
  4. data/lib/2016-09-30/generated/azure_mgmt_container_service/container_services.rb +1 -1
  5. data/lib/2017-01-31/generated/azure_mgmt_container_service/container_service_client.rb +7 -6
  6. data/lib/2017-01-31/generated/azure_mgmt_container_service/container_services.rb +1 -1
  7. data/lib/2017-07-01/generated/azure_mgmt_container_service.rb +47 -0
  8. data/lib/2017-07-01/generated/azure_mgmt_container_service/container_service_client.rb +133 -0
  9. data/lib/2017-07-01/generated/azure_mgmt_container_service/container_services.rb +924 -0
  10. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service.rb +213 -0
  11. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_agent_pool_profile.rb +226 -0
  12. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_custom_profile.rb +46 -0
  13. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  14. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  15. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_list_result.rb +100 -0
  16. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  17. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_orchestrator_profile.rb +62 -0
  18. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_orchestrator_types.rb +19 -0
  19. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_service_principal_profile.rb +73 -0
  20. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  21. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  22. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  23. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  24. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  25. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +63 -0
  26. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/key_vault_secret_ref.rb +68 -0
  27. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  28. data/lib/2017-07-01/generated/azure_mgmt_container_service/models/resource.rb +101 -0
  29. data/lib/2017-07-01/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  30. data/lib/2017-08-31/generated/azure_mgmt_container_service.rb +48 -0
  31. data/lib/2017-08-31/generated/azure_mgmt_container_service/container_service_client.rb +133 -0
  32. data/lib/2017-08-31/generated/azure_mgmt_container_service/managed_clusters.rb +1172 -0
  33. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_agent_pool_profile.rb +226 -0
  34. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  35. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  36. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  37. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_service_principal_profile.rb +73 -0
  38. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  39. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  40. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  41. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  42. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  43. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +63 -0
  44. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/key_vault_secret_ref.rb +68 -0
  45. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster.rb +183 -0
  46. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  47. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  48. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +91 -0
  49. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  50. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +57 -0
  51. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  52. data/lib/2017-08-31/generated/azure_mgmt_container_service/models/resource.rb +101 -0
  53. data/lib/2017-08-31/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  54. data/lib/2017-09-30/generated/azure_mgmt_container_service.rb +31 -0
  55. data/lib/2017-09-30/generated/azure_mgmt_container_service/container_service_client.rb +133 -0
  56. data/lib/2017-09-30/generated/azure_mgmt_container_service/container_services.rb +131 -0
  57. data/lib/2017-09-30/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +57 -0
  58. data/lib/2017-09-30/generated/azure_mgmt_container_service/models/orchestrator_version_profile.rb +89 -0
  59. data/lib/2017-09-30/generated/azure_mgmt_container_service/models/orchestrator_version_profile_list_result.rb +92 -0
  60. data/lib/2017-09-30/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  61. data/lib/2018-03-31/generated/azure_mgmt_container_service.rb +57 -0
  62. data/lib/2018-03-31/generated/azure_mgmt_container_service/container_service_client.rb +137 -0
  63. data/lib/2018-03-31/generated/azure_mgmt_container_service/managed_clusters.rb +1227 -0
  64. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_diagnostics_profile.rb +48 -0
  65. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_linux_profile.rb +62 -0
  66. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_master_profile.rb +188 -0
  67. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_network_profile.rb +128 -0
  68. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_service_principal_profile.rb +73 -0
  69. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_ssh_configuration.rb +57 -0
  70. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_ssh_public_key.rb +48 -0
  71. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_storage_profile_types.rb +16 -0
  72. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_vmdiagnostics.rb +60 -0
  73. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_vmsize_types.rb +188 -0
  74. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/container_service_windows_profile.rb +63 -0
  75. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/key_vault_secret_ref.rb +68 -0
  76. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster.rb +255 -0
  77. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_aadprofile.rb +80 -0
  78. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_access_profile.rb +97 -0
  79. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_addon_profile.rb +66 -0
  80. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_agent_pool_profile.rb +237 -0
  81. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_list_result.rb +100 -0
  82. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_pool_upgrade_profile.rb +91 -0
  83. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/managed_cluster_upgrade_profile.rb +105 -0
  84. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/network_plugin.rb +16 -0
  85. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/network_policy.rb +15 -0
  86. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/operation_list_result.rb +56 -0
  87. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/operation_value.rb +108 -0
  88. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/orchestrator_profile.rb +57 -0
  89. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/ostype.rb +16 -0
  90. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/resource.rb +101 -0
  91. data/lib/2018-03-31/generated/azure_mgmt_container_service/models/tags_object.rb +54 -0
  92. data/lib/2018-03-31/generated/azure_mgmt_container_service/module_definition.rb +9 -0
  93. data/lib/2018-03-31/generated/azure_mgmt_container_service/operations.rb +107 -0
  94. data/lib/azure_mgmt_container_service.rb +5 -1
  95. data/lib/profiles/latest/modules/containerservice_profile_module.rb +149 -49
  96. data/lib/version.rb +1 -1
  97. metadata +91 -4
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2018_03_31
7
+ module Models
8
+ #
9
+ # Defines values for NetworkPlugin
10
+ #
11
+ module NetworkPlugin
12
+ Azure = "azure"
13
+ Kubenet = "kubenet"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
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::ContainerService::Mgmt::V2018_03_31
7
+ module Models
8
+ #
9
+ # Defines values for NetworkPolicy
10
+ #
11
+ module NetworkPolicy
12
+ Calico = "calico"
13
+ end
14
+ end
15
+ end
@@ -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::ContainerService::Mgmt::V2018_03_31
7
+ module Models
8
+ #
9
+ # The List Compute Operation operation response.
10
+ #
11
+ class OperationListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<OperationValue>] The list of compute operations
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for OperationListResult 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: 'OperationListResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'OperationListResult',
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: 'OperationValueElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'OperationValue'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,108 @@
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::ContainerService::Mgmt::V2018_03_31
7
+ module Models
8
+ #
9
+ # Describes the properties of a Compute Operation value.
10
+ #
11
+ class OperationValue
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The origin of the compute operation.
16
+ attr_accessor :origin
17
+
18
+ # @return [String] The name of the compute operation.
19
+ attr_accessor :name
20
+
21
+ # @return [String] The display name of the compute operation.
22
+ attr_accessor :operation
23
+
24
+ # @return [String] The display name of the resource the operation applies
25
+ # to.
26
+ attr_accessor :resource
27
+
28
+ # @return [String] The description of the operation.
29
+ attr_accessor :description
30
+
31
+ # @return [String] The resource provider for the operation.
32
+ attr_accessor :provider
33
+
34
+
35
+ #
36
+ # Mapper for OperationValue class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'OperationValue',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'OperationValue',
47
+ model_properties: {
48
+ origin: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'origin',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ name: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'name',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ operation: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'display.operation',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ resource: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'display.resource',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ description: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'display.description',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ provider: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'display.provider',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,57 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2018_03_31
7
+ module Models
8
+ #
9
+ # Contains information about orchestrator.
10
+ #
11
+ class OrchestratorProfile
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Orchestrator type.
16
+ attr_accessor :orchestrator_type
17
+
18
+ # @return [String] Orchestrator version (major, minor, patch).
19
+ attr_accessor :orchestrator_version
20
+
21
+
22
+ #
23
+ # Mapper for OrchestratorProfile 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: 'OrchestratorProfile',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'OrchestratorProfile',
34
+ model_properties: {
35
+ orchestrator_type: {
36
+ client_side_validation: true,
37
+ required: true,
38
+ serialized_name: 'orchestratorType',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ orchestrator_version: {
44
+ client_side_validation: true,
45
+ required: true,
46
+ serialized_name: 'orchestratorVersion',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ContainerService::Mgmt::V2018_03_31
7
+ module Models
8
+ #
9
+ # Defines values for OSType
10
+ #
11
+ module OSType
12
+ Linux = "Linux"
13
+ Windows = "Windows"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,101 @@
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::ContainerService::Mgmt::V2018_03_31
7
+ module Models
8
+ #
9
+ # The Resource model definition.
10
+ #
11
+ class Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource Id
16
+ attr_accessor :id
17
+
18
+ # @return [String] Resource name
19
+ attr_accessor :name
20
+
21
+ # @return [String] Resource type
22
+ attr_accessor :type
23
+
24
+ # @return [String] Resource location
25
+ attr_accessor :location
26
+
27
+ # @return [Hash{String => String}] Resource tags
28
+ attr_accessor :tags
29
+
30
+
31
+ #
32
+ # Mapper for Resource 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: 'Resource',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'Resource',
43
+ model_properties: {
44
+ id: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'id',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ name: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'name',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ type: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'type',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ location: {
72
+ client_side_validation: true,
73
+ required: true,
74
+ serialized_name: 'location',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ tags: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ serialized_name: 'tags',
83
+ type: {
84
+ name: 'Dictionary',
85
+ value: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'StringElementType',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,54 @@
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::ContainerService::Mgmt::V2018_03_31
7
+ module Models
8
+ #
9
+ # Tags object for patch operations.
10
+ #
11
+ class TagsObject
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => String}] Resource tags.
16
+ attr_accessor :tags
17
+
18
+
19
+ #
20
+ # Mapper for TagsObject 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: 'TagsObject',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'TagsObject',
31
+ model_properties: {
32
+ tags: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'tags',
36
+ type: {
37
+ name: 'Dictionary',
38
+ value: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'StringElementType',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ 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::ContainerService end
8
+ module Azure::ContainerService::Mgmt end
9
+ module Azure::ContainerService::Mgmt::V2018_03_31 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::ContainerService::Mgmt::V2018_03_31
7
+ #
8
+ # The Container Service Client.
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 [ContainerServiceClient] reference to the ContainerServiceClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets a list of compute operations.
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
+ # Gets a list of compute operations.
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
+ # Gets a list of compute operations.
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.ContainerService/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::ContainerService::Mgmt::V2018_03_31::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