azure_mgmt_service_fabric 0.15.2 → 0.17.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/cluster_versions.rb +52 -45
  3. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/clusters.rb +63 -59
  4. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb +1 -1
  5. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb +1 -1
  6. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/models/operation_list_result.rb +1 -1
  7. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/models/resource.rb +9 -0
  8. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/operations.rb +16 -14
  9. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +10 -6
  10. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric.rb +91 -0
  11. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/application.rb +691 -0
  12. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/application_type.rb +487 -0
  13. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/cluster_versions.rb +471 -0
  14. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/clusters.rb +778 -0
  15. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_health_policy.rb +104 -0
  16. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_metric_description.rb +113 -0
  17. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_parameter.rb +58 -0
  18. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource.rb +206 -0
  19. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_list.rb +55 -0
  20. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_resource_update.rb +182 -0
  21. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_type_resource.rb +83 -0
  22. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_type_resource_list.rb +55 -0
  23. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/application_upgrade_policy.rb +81 -0
  24. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/available_operation_display.rb +79 -0
  25. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/azure_active_directory.rb +68 -0
  26. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/certificate_description.rb +70 -0
  27. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb +70 -0
  28. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb +59 -0
  29. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster.rb +398 -0
  30. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb +66 -0
  31. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb +102 -0
  32. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb +70 -0
  33. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb +66 -0
  34. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb +246 -0
  35. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb +97 -0
  36. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb +156 -0
  37. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/cluster_version_details.rb +69 -0
  38. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb +91 -0
  39. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb +57 -0
  40. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/error_model.rb +57 -0
  41. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/named_partition_scheme_description.rb +81 -0
  42. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/node_type_description.rb +189 -0
  43. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/operation_list_result.rb +101 -0
  44. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/operation_result.rb +81 -0
  45. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/partition_scheme_description.rb +48 -0
  46. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/provisioning_state.rb +18 -0
  47. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/proxy_resource.rb +82 -0
  48. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/resource.rb +110 -0
  49. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/rolling_upgrade_monitoring_policy.rb +90 -0
  50. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_correlation_description.rb +58 -0
  51. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_load_metric_description.rb +98 -0
  52. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_placement_policy_description.rb +46 -0
  53. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_properties.rb +151 -0
  54. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_properties_base.rb +123 -0
  55. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_resource.rb +207 -0
  56. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_resource_list.rb +55 -0
  57. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_resource_update.rb +169 -0
  58. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb +51 -0
  59. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb +108 -0
  60. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_health_policy_map_item.rb +60 -0
  61. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_update_properties.rb +113 -0
  62. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb +57 -0
  63. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/settings_section_description.rb +67 -0
  64. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/singleton_partition_scheme_description.rb +51 -0
  65. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/stateful_service_properties.rb +227 -0
  66. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/stateful_service_update_properties.rb +186 -0
  67. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/stateless_service_properties.rb +161 -0
  68. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/stateless_service_update_properties.rb +133 -0
  69. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/uniform_int64range_partition_scheme_description.rb +91 -0
  70. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/version_resource.rb +115 -0
  71. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/version_resource_list.rb +55 -0
  72. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/module_definition.rb +9 -0
  73. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/operations.rb +230 -0
  74. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/service.rb +735 -0
  75. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +148 -0
  76. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/version.rb +559 -0
  77. data/lib/2018-02-01/generated/azure_mgmt_service_fabric.rb +61 -0
  78. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/cluster_versions.rb +456 -0
  79. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/clusters.rb +753 -0
  80. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/application_delta_health_policy.rb +73 -0
  81. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/application_health_policy.rb +71 -0
  82. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/available_operation_display.rb +79 -0
  83. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/azure_active_directory.rb +68 -0
  84. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/certificate_description.rb +70 -0
  85. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb +70 -0
  86. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb +59 -0
  87. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster.rb +476 -0
  88. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb +66 -0
  89. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb +102 -0
  90. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb +121 -0
  91. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb +66 -0
  92. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb +276 -0
  93. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb +125 -0
  94. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb +156 -0
  95. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_version_details.rb +69 -0
  96. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb +91 -0
  97. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb +57 -0
  98. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/error_model.rb +47 -0
  99. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/error_model_error.rb +57 -0
  100. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/node_type_description.rb +198 -0
  101. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/operation_list_result.rb +101 -0
  102. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/operation_result.rb +81 -0
  103. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/provisioning_state.rb +18 -0
  104. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/resource.rb +110 -0
  105. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/server_certificate_common_name.rb +57 -0
  106. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/server_certificate_common_names.rb +71 -0
  107. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb +60 -0
  108. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb +55 -0
  109. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb +57 -0
  110. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/settings_section_description.rb +67 -0
  111. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/module_definition.rb +9 -0
  112. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/operations.rb +237 -0
  113. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +141 -0
  114. data/lib/azure_mgmt_service_fabric.rb +2 -0
  115. data/lib/profiles/latest/modules/servicefabric_profile_module.rb +293 -114
  116. data/lib/profiles/latest/servicefabric_latest_profile_client.rb +28 -9
  117. data/lib/profiles/latest/servicefabric_module_definition.rb +0 -1
  118. data/lib/version.rb +1 -1
  119. metadata +109 -5
@@ -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::ServiceFabric end
8
+ module Azure::ServiceFabric::Mgmt end
9
+ module Azure::ServiceFabric::Mgmt::V2018_02_01 end
@@ -0,0 +1,237 @@
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::ServiceFabric::Mgmt::V2018_02_01
7
+ #
8
+ # Azure Service Fabric Resource Provider API 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 [ServiceFabricManagementClient] reference to the ServiceFabricManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Lists all of the available Service Fabric resource provider API operations.
26
+ #
27
+ # Get the list of available Service Fabric resource provider API operations.
28
+ #
29
+ # @param api_version [String] The version of the Service Fabric resouce
30
+ # provider API
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [Array<OperationResult>] operation results.
35
+ #
36
+ def list(api_version, custom_headers:nil)
37
+ first_page = list_as_lazy(api_version, custom_headers:custom_headers)
38
+ first_page.get_all_items
39
+ end
40
+
41
+ #
42
+ # Lists all of the available Service Fabric resource provider API operations.
43
+ #
44
+ # Get the list of available Service Fabric resource provider API operations.
45
+ #
46
+ # @param api_version [String] The version of the Service Fabric resouce
47
+ # provider API
48
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
49
+ # will be added to the HTTP request.
50
+ #
51
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
+ #
53
+ def list_with_http_info(api_version, custom_headers:nil)
54
+ list_async(api_version, custom_headers:custom_headers).value!
55
+ end
56
+
57
+ #
58
+ # Lists all of the available Service Fabric resource provider API operations.
59
+ #
60
+ # Get the list of available Service Fabric resource provider API operations.
61
+ #
62
+ # @param api_version [String] The version of the Service Fabric resouce
63
+ # provider API
64
+ # @param [Hash{String => String}] A hash of custom headers that will be added
65
+ # to the HTTP request.
66
+ #
67
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
+ #
69
+ def list_async(api_version, custom_headers:nil)
70
+ fail ArgumentError, 'api_version is nil' if api_version.nil?
71
+
72
+
73
+ request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
+
76
+ # Set Headers
77
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
78
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
79
+ path_template = 'providers/Microsoft.ServiceFabric/operations'
80
+
81
+ request_url = @base_url || @client.base_url
82
+
83
+ options = {
84
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
85
+ query_params: {'api-version' => api_version},
86
+ headers: request_headers.merge(custom_headers || {}),
87
+ base_url: request_url
88
+ }
89
+ promise = @client.make_request_async(:get, path_template, options)
90
+
91
+ promise = promise.then do |result|
92
+ http_response = result.response
93
+ status_code = http_response.status
94
+ response_content = http_response.body
95
+ unless status_code == 200
96
+ error_model = JSON.load(response_content)
97
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
98
+ end
99
+
100
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
101
+ # Deserialize Response
102
+ if status_code == 200
103
+ begin
104
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
105
+ result_mapper = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationListResult.mapper()
106
+ result.body = @client.deserialize(result_mapper, parsed_response)
107
+ rescue Exception => e
108
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
109
+ end
110
+ end
111
+
112
+ result
113
+ end
114
+
115
+ promise.execute
116
+ end
117
+
118
+ #
119
+ # Lists all of the available Service Fabric resource provider API operations.
120
+ #
121
+ # Get the list of available Service Fabric resource provider API operations.
122
+ #
123
+ # @param next_page_link [String] The NextLink from the previous successful call
124
+ # to List operation.
125
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
126
+ # will be added to the HTTP request.
127
+ #
128
+ # @return [OperationListResult] operation results.
129
+ #
130
+ def list_next(next_page_link, custom_headers:nil)
131
+ response = list_next_async(next_page_link, custom_headers:custom_headers).value!
132
+ response.body unless response.nil?
133
+ end
134
+
135
+ #
136
+ # Lists all of the available Service Fabric resource provider API operations.
137
+ #
138
+ # Get the list of available Service Fabric resource provider API operations.
139
+ #
140
+ # @param next_page_link [String] The NextLink from the previous successful call
141
+ # to List operation.
142
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
143
+ # will be added to the HTTP request.
144
+ #
145
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
146
+ #
147
+ def list_next_with_http_info(next_page_link, custom_headers:nil)
148
+ list_next_async(next_page_link, custom_headers:custom_headers).value!
149
+ end
150
+
151
+ #
152
+ # Lists all of the available Service Fabric resource provider API operations.
153
+ #
154
+ # Get the list of available Service Fabric resource provider API operations.
155
+ #
156
+ # @param next_page_link [String] The NextLink from the previous successful call
157
+ # to List operation.
158
+ # @param [Hash{String => String}] A hash of custom headers that will be added
159
+ # to the HTTP request.
160
+ #
161
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
162
+ #
163
+ def list_next_async(next_page_link, custom_headers:nil)
164
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
165
+
166
+
167
+ request_headers = {}
168
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
169
+
170
+ # Set Headers
171
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
172
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
173
+ path_template = '{nextLink}'
174
+
175
+ request_url = @base_url || @client.base_url
176
+
177
+ options = {
178
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
179
+ skip_encoding_path_params: {'nextLink' => next_page_link},
180
+ headers: request_headers.merge(custom_headers || {}),
181
+ base_url: request_url
182
+ }
183
+ promise = @client.make_request_async(:get, path_template, options)
184
+
185
+ promise = promise.then do |result|
186
+ http_response = result.response
187
+ status_code = http_response.status
188
+ response_content = http_response.body
189
+ unless status_code == 200
190
+ error_model = JSON.load(response_content)
191
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
192
+ end
193
+
194
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
195
+ # Deserialize Response
196
+ if status_code == 200
197
+ begin
198
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
199
+ result_mapper = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationListResult.mapper()
200
+ result.body = @client.deserialize(result_mapper, parsed_response)
201
+ rescue Exception => e
202
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
203
+ end
204
+ end
205
+
206
+ result
207
+ end
208
+
209
+ promise.execute
210
+ end
211
+
212
+ #
213
+ # Lists all of the available Service Fabric resource provider API operations.
214
+ #
215
+ # Get the list of available Service Fabric resource provider API operations.
216
+ #
217
+ # @param api_version [String] The version of the Service Fabric resouce
218
+ # provider API
219
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
220
+ # will be added to the HTTP request.
221
+ #
222
+ # @return [OperationListResult] which provide lazy access to pages of the
223
+ # response.
224
+ #
225
+ def list_as_lazy(api_version, custom_headers:nil)
226
+ response = list_async(api_version, custom_headers:custom_headers).value!
227
+ unless response.nil?
228
+ page = response.body
229
+ page.next_method = Proc.new do |next_page_link|
230
+ list_next_async(next_page_link, custom_headers:custom_headers)
231
+ end
232
+ page
233
+ end
234
+ end
235
+
236
+ end
237
+ end
@@ -0,0 +1,141 @@
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::ServiceFabric::Mgmt::V2018_02_01
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class ServiceFabricManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] The version of the Service Fabric resource provider API.
21
+ # This is a required parameter and it's value must be "2018-02-01" for this
22
+ # specification.
23
+ attr_reader :api_version
24
+
25
+ # @return [String] The customer subscription identifier.
26
+ attr_accessor :subscription_id
27
+
28
+ # @return [String] The preferred language for the response.
29
+ attr_accessor :accept_language
30
+
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
+ attr_accessor :long_running_operation_retry_timeout
34
+
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
38
+ attr_accessor :generate_client_request_id
39
+
40
+ # @return [Clusters] clusters
41
+ attr_reader :clusters
42
+
43
+ # @return [ClusterVersions] cluster_versions
44
+ attr_reader :cluster_versions
45
+
46
+ # @return [Operations] operations
47
+ attr_reader :operations
48
+
49
+ #
50
+ # Creates initializes a new instance of the ServiceFabricManagementClient class.
51
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
52
+ # @param base_url [String] the base URI of the service.
53
+ # @param options [Array] filters to be applied to the HTTP requests.
54
+ #
55
+ def initialize(credentials = nil, base_url = nil, options = nil)
56
+ super(credentials, options)
57
+ @base_url = base_url || 'https://management.azure.com'
58
+
59
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
60
+ @credentials = credentials
61
+
62
+ @clusters = Clusters.new(self)
63
+ @cluster_versions = ClusterVersions.new(self)
64
+ @operations = Operations.new(self)
65
+ @api_version = '2018-02-01'
66
+ @accept_language = 'en-US'
67
+ @long_running_operation_retry_timeout = 30
68
+ @generate_client_request_id = true
69
+ add_telemetry
70
+ end
71
+
72
+ #
73
+ # Makes a request and returns the body of the response.
74
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
75
+ # @param path [String] the path, relative to {base_url}.
76
+ # @param options [Hash{String=>String}] specifying any request options like :body.
77
+ # @return [Hash{String=>String}] containing the body of the response.
78
+ # Example:
79
+ #
80
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
81
+ # path = "/path"
82
+ # options = {
83
+ # body: request_content,
84
+ # query_params: {'api-version' => '2016-02-01'}
85
+ # }
86
+ # result = @client.make_request(:put, path, options)
87
+ #
88
+ def make_request(method, path, options = {})
89
+ result = make_request_with_http_info(method, path, options)
90
+ result.body unless result.nil?
91
+ end
92
+
93
+ #
94
+ # Makes a request and returns the operation response.
95
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
96
+ # @param path [String] the path, relative to {base_url}.
97
+ # @param options [Hash{String=>String}] specifying any request options like :body.
98
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
99
+ #
100
+ def make_request_with_http_info(method, path, options = {})
101
+ result = make_request_async(method, path, options).value!
102
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
103
+ result
104
+ end
105
+
106
+ #
107
+ # Makes a request asynchronously.
108
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
109
+ # @param path [String] the path, relative to {base_url}.
110
+ # @param options [Hash{String=>String}] specifying any request options like :body.
111
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
112
+ #
113
+ def make_request_async(method, path, options = {})
114
+ fail ArgumentError, 'method is nil' if method.nil?
115
+ fail ArgumentError, 'path is nil' if path.nil?
116
+
117
+ request_url = options[:base_url] || @base_url
118
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
119
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
120
+ end
121
+
122
+ request_headers = @request_headers
123
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
124
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
125
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
126
+
127
+ super(request_url, method, path, options)
128
+ end
129
+
130
+
131
+ private
132
+ #
133
+ # Adds telemetry information.
134
+ #
135
+ def add_telemetry
136
+ sdk_information = 'azure_mgmt_service_fabric'
137
+ sdk_information = "#{sdk_information}/0.17.3"
138
+ add_user_agent_information(sdk_information)
139
+ end
140
+ end
141
+ end
@@ -2,5 +2,7 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
+ require '2017-07-01-preview/generated/azure_mgmt_service_fabric'
6
+ require '2018-02-01/generated/azure_mgmt_service_fabric'
5
7
  require '2016-09-01/generated/azure_mgmt_service_fabric'
6
8
  require 'profiles/latest/servicefabric_latest_profile_client'
@@ -4,44 +4,85 @@
4
4
 
5
5
  require 'azure_mgmt_service_fabric'
6
6
 
7
- module Azure::ServiceFabric::Profiles::Latest::Mgmt
8
- Clusters = Azure::ServiceFabric::Mgmt::V2016_09_01::Clusters
9
- ClusterVersions = Azure::ServiceFabric::Mgmt::V2016_09_01::ClusterVersions
10
- Operations = Azure::ServiceFabric::Mgmt::V2016_09_01::Operations
7
+ module Azure::ServiceFabric::Profiles::Latest
8
+ module Mgmt
9
+ ApplicationType = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::ApplicationType
10
+ Version = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Version
11
+ Application = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Application
12
+ Service = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Service
13
+ Clusters = Azure::ServiceFabric::Mgmt::V2018_02_01::Clusters
14
+ ClusterVersions = Azure::ServiceFabric::Mgmt::V2018_02_01::ClusterVersions
15
+ Operations = Azure::ServiceFabric::Mgmt::V2018_02_01::Operations
11
16
 
12
17
  module Models
13
- ClusterUpgradePolicy = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpgradePolicy
14
- ClusterVersionDetails = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterVersionDetails
15
- DiagnosticsStorageAccountConfig = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::DiagnosticsStorageAccountConfig
16
- ClusterCodeVersionsListResult = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsListResult
17
- AzureActiveDirectory = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::AzureActiveDirectory
18
- SettingsParameterDescription = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::SettingsParameterDescription
19
- ClusterUpdateParameters = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpdateParameters
20
- EndpointRangeDescription = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::EndpointRangeDescription
21
- NodeTypeDescription = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::NodeTypeDescription
22
- ClientCertificateCommonName = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClientCertificateCommonName
23
- ClusterListResult = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterListResult
24
- ClusterUpgradeDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpgradeDeltaHealthPolicy
25
- AvailableOperationDisplay = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::AvailableOperationDisplay
26
- CertificateDescription = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::CertificateDescription
27
- OperationResult = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::OperationResult
28
- ClientCertificateThumbprint = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClientCertificateThumbprint
29
- OperationListResult = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::OperationListResult
30
- ClusterCodeVersionsResult = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsResult
31
- ErrorModelError = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ErrorModelError
32
- ClusterHealthPolicy = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterHealthPolicy
33
- ErrorModel = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ErrorModel
34
- SettingsSectionDescription = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::SettingsSectionDescription
35
- Resource = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Resource
36
- Cluster = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Cluster
37
- ProvisioningState = Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ProvisioningState
18
+ ServicePropertiesBase = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePropertiesBase
19
+ ServiceTypeHealthPolicyMapItem = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicyMapItem
20
+ ApplicationMetricDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationMetricDescription
21
+ ServiceCorrelationDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceCorrelationDescription
22
+ ServicePlacementPolicyDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePlacementPolicyDescription
23
+ ApplicationParameter = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationParameter
24
+ ServiceLoadMetricDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceLoadMetricDescription
25
+ PartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::PartitionSchemeDescription
26
+ ProxyResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProxyResource
27
+ RollingUpgradeMonitoringPolicy = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::RollingUpgradeMonitoringPolicy
28
+ ApplicationTypeResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResourceList
29
+ ApplicationResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceList
30
+ ApplicationUpgradePolicy = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationUpgradePolicy
31
+ VersionResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::VersionResourceList
32
+ ServiceResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceList
33
+ NamedPartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::NamedPartitionSchemeDescription
34
+ SingletonPartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::SingletonPartitionSchemeDescription
35
+ UniformInt64RangePartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::UniformInt64RangePartitionSchemeDescription
36
+ ApplicationTypeResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResource
37
+ VersionResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::VersionResource
38
+ ApplicationResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResource
39
+ ApplicationResourceUpdate = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceUpdate
40
+ ServiceProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceProperties
41
+ ServiceResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResource
42
+ ServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceUpdateProperties
43
+ ServiceResourceUpdate = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceUpdate
44
+ StatelessServiceProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceProperties
45
+ StatelessServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceUpdateProperties
46
+ StatefulServiceProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceProperties
47
+ StatefulServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceUpdateProperties
48
+ EndpointRangeDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::EndpointRangeDescription
49
+ ServiceTypeDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeDeltaHealthPolicy
50
+ NodeTypeDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::NodeTypeDescription
51
+ ServiceTypeHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeHealthPolicy
52
+ ClusterHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterHealthPolicy
53
+ AvailableOperationDisplay = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::AvailableOperationDisplay
54
+ ClusterUpgradeDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradeDeltaHealthPolicy
55
+ CertificateDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::CertificateDescription
56
+ ClusterUpgradePolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradePolicy
57
+ ClientCertificateThumbprint = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateThumbprint
58
+ ClusterVersionDetails = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterVersionDetails
59
+ ServerCertificateCommonNames = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonNames
60
+ ClusterCodeVersionsResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsResult
61
+ SettingsParameterDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsParameterDescription
62
+ ClusterCodeVersionsListResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsListResult
63
+ ApplicationDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationDeltaHealthPolicy
64
+ ClusterListResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterListResult
65
+ AzureActiveDirectory = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::AzureActiveDirectory
66
+ ClusterUpdateParameters = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpdateParameters
67
+ ServerCertificateCommonName = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonName
68
+ OperationResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationResult
69
+ SettingsSectionDescription = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsSectionDescription
70
+ OperationListResult = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationListResult
71
+ ClientCertificateCommonName = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateCommonName
72
+ Resource = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Resource
73
+ ApplicationHealthPolicy = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationHealthPolicy
74
+ ErrorModelError = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModelError
75
+ DiagnosticsStorageAccountConfig = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::DiagnosticsStorageAccountConfig
76
+ ErrorModel = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModel
77
+ Cluster = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Cluster
78
+ ProvisioningState = Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ProvisioningState
38
79
  end
39
80
 
40
81
  #
41
- # ServiceFabric
82
+ # ServiceFabricManagementClass
42
83
  #
43
- class ServiceFabricClass
44
- attr_reader :clusters, :cluster_versions, :operations, :configurable, :base_url, :options, :model_classes
84
+ class ServiceFabricManagementClass
85
+ attr_reader :application_type, :version, :application, :service, :clusters, :cluster_versions, :operations, :configurable, :base_url, :options, :model_classes
45
86
 
46
87
  def initialize(options = {})
47
88
  if options.is_a?(Hash) && options.length == 0
@@ -52,95 +93,233 @@ module Azure::ServiceFabric::Profiles::Latest::Mgmt
52
93
 
53
94
  reset!(options)
54
95
 
55
- @configurable, @base_url, @options = self, nil, nil
96
+ @configurable = self
97
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
98
+ @options = options[:options].nil? ? nil:options[:options]
56
99
 
57
- client_0 = Azure::ServiceFabric::Mgmt::V2016_09_01::ServiceFabricManagementClient.new(configurable.credentials, base_url, options)
58
- if(client_0.respond_to?(:subscription_id))
59
- client_0.subscription_id = configurable.subscription_id
100
+ @client_0 = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::ServiceFabricManagementClient.new(configurable.credentials, base_url, options)
101
+ if(@client_0.respond_to?(:subscription_id))
102
+ @client_0.subscription_id = configurable.subscription_id
60
103
  end
61
- @clusters = client_0.clusters
62
- @cluster_versions = client_0.cluster_versions
63
- @operations = client_0.operations
104
+ add_telemetry(@client_0)
105
+ @application_type = @client_0.application_type
106
+ @version = @client_0.version
107
+ @application = @client_0.application
108
+ @service = @client_0.service
109
+
110
+ @client_1 = Azure::ServiceFabric::Mgmt::V2018_02_01::ServiceFabricManagementClient.new(configurable.credentials, base_url, options)
111
+ if(@client_1.respond_to?(:subscription_id))
112
+ @client_1.subscription_id = configurable.subscription_id
113
+ end
114
+ add_telemetry(@client_1)
115
+ @clusters = @client_1.clusters
116
+ @cluster_versions = @client_1.cluster_versions
117
+ @operations = @client_1.operations
64
118
 
65
119
  @model_classes = ModelClasses.new
66
120
  end
67
121
 
68
- class ModelClasses
69
- def cluster_upgrade_policy
70
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpgradePolicy
71
- end
72
- def cluster_version_details
73
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterVersionDetails
74
- end
75
- def diagnostics_storage_account_config
76
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::DiagnosticsStorageAccountConfig
77
- end
78
- def cluster_code_versions_list_result
79
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsListResult
80
- end
81
- def azure_active_directory
82
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::AzureActiveDirectory
83
- end
84
- def settings_parameter_description
85
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::SettingsParameterDescription
86
- end
87
- def cluster_update_parameters
88
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpdateParameters
89
- end
90
- def endpoint_range_description
91
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::EndpointRangeDescription
92
- end
93
- def node_type_description
94
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::NodeTypeDescription
95
- end
96
- def client_certificate_common_name
97
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClientCertificateCommonName
98
- end
99
- def cluster_list_result
100
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterListResult
101
- end
102
- def cluster_upgrade_delta_health_policy
103
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterUpgradeDeltaHealthPolicy
104
- end
105
- def available_operation_display
106
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::AvailableOperationDisplay
107
- end
108
- def certificate_description
109
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::CertificateDescription
110
- end
111
- def operation_result
112
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::OperationResult
113
- end
114
- def client_certificate_thumbprint
115
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClientCertificateThumbprint
116
- end
117
- def operation_list_result
118
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::OperationListResult
119
- end
120
- def cluster_code_versions_result
121
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterCodeVersionsResult
122
- end
123
- def error_model_error
124
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ErrorModelError
125
- end
126
- def cluster_health_policy
127
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ClusterHealthPolicy
128
- end
129
- def error_model
130
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ErrorModel
131
- end
132
- def settings_section_description
133
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::SettingsSectionDescription
134
- end
135
- def resource
136
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Resource
137
- end
138
- def cluster
139
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::Cluster
140
- end
141
- def provisioning_state
142
- Azure::ServiceFabric::Mgmt::V2016_09_01::Models::ProvisioningState
122
+ def add_telemetry(client)
123
+ profile_information = 'Profiles/Latest/ServiceFabric/Mgmt'
124
+ client.add_user_agent_information(profile_information)
125
+ end
126
+
127
+ def method_missing(method, *args)
128
+ if @client_1.respond_to?method
129
+ @client_1.send(method, *args)
130
+ elsif @client_0.respond_to?method
131
+ @client_0.send(method, *args)
132
+ else
133
+ super
143
134
  end
144
135
  end
136
+
137
+ end
138
+
139
+ class ModelClasses
140
+ def service_properties_base
141
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePropertiesBase
142
+ end
143
+ def service_type_health_policy_map_item
144
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicyMapItem
145
+ end
146
+ def application_metric_description
147
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationMetricDescription
148
+ end
149
+ def service_correlation_description
150
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceCorrelationDescription
151
+ end
152
+ def service_placement_policy_description
153
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePlacementPolicyDescription
154
+ end
155
+ def application_parameter
156
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationParameter
157
+ end
158
+ def service_load_metric_description
159
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceLoadMetricDescription
160
+ end
161
+ def partition_scheme_description
162
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::PartitionSchemeDescription
163
+ end
164
+ def proxy_resource
165
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProxyResource
166
+ end
167
+ def rolling_upgrade_monitoring_policy
168
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::RollingUpgradeMonitoringPolicy
169
+ end
170
+ def application_type_resource_list
171
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResourceList
172
+ end
173
+ def application_resource_list
174
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceList
175
+ end
176
+ def application_upgrade_policy
177
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationUpgradePolicy
178
+ end
179
+ def version_resource_list
180
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::VersionResourceList
181
+ end
182
+ def service_resource_list
183
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceList
184
+ end
185
+ def named_partition_scheme_description
186
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::NamedPartitionSchemeDescription
187
+ end
188
+ def singleton_partition_scheme_description
189
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::SingletonPartitionSchemeDescription
190
+ end
191
+ def uniform_int64_range_partition_scheme_description
192
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::UniformInt64RangePartitionSchemeDescription
193
+ end
194
+ def application_type_resource
195
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResource
196
+ end
197
+ def version_resource
198
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::VersionResource
199
+ end
200
+ def application_resource
201
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResource
202
+ end
203
+ def application_resource_update
204
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceUpdate
205
+ end
206
+ def service_properties
207
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceProperties
208
+ end
209
+ def service_resource
210
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResource
211
+ end
212
+ def service_update_properties
213
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceUpdateProperties
214
+ end
215
+ def service_resource_update
216
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceUpdate
217
+ end
218
+ def stateless_service_properties
219
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceProperties
220
+ end
221
+ def stateless_service_update_properties
222
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceUpdateProperties
223
+ end
224
+ def stateful_service_properties
225
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceProperties
226
+ end
227
+ def stateful_service_update_properties
228
+ Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceUpdateProperties
229
+ end
230
+ def endpoint_range_description
231
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::EndpointRangeDescription
232
+ end
233
+ def service_type_delta_health_policy
234
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeDeltaHealthPolicy
235
+ end
236
+ def node_type_description
237
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::NodeTypeDescription
238
+ end
239
+ def service_type_health_policy
240
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServiceTypeHealthPolicy
241
+ end
242
+ def cluster_health_policy
243
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterHealthPolicy
244
+ end
245
+ def available_operation_display
246
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::AvailableOperationDisplay
247
+ end
248
+ def cluster_upgrade_delta_health_policy
249
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradeDeltaHealthPolicy
250
+ end
251
+ def certificate_description
252
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::CertificateDescription
253
+ end
254
+ def cluster_upgrade_policy
255
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradePolicy
256
+ end
257
+ def client_certificate_thumbprint
258
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateThumbprint
259
+ end
260
+ def cluster_version_details
261
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterVersionDetails
262
+ end
263
+ def server_certificate_common_names
264
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonNames
265
+ end
266
+ def cluster_code_versions_result
267
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsResult
268
+ end
269
+ def settings_parameter_description
270
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsParameterDescription
271
+ end
272
+ def cluster_code_versions_list_result
273
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterCodeVersionsListResult
274
+ end
275
+ def application_delta_health_policy
276
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationDeltaHealthPolicy
277
+ end
278
+ def cluster_list_result
279
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterListResult
280
+ end
281
+ def azure_active_directory
282
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::AzureActiveDirectory
283
+ end
284
+ def cluster_update_parameters
285
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpdateParameters
286
+ end
287
+ def server_certificate_common_name
288
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ServerCertificateCommonName
289
+ end
290
+ def operation_result
291
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationResult
292
+ end
293
+ def settings_section_description
294
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::SettingsSectionDescription
295
+ end
296
+ def operation_list_result
297
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::OperationListResult
298
+ end
299
+ def client_certificate_common_name
300
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClientCertificateCommonName
301
+ end
302
+ def resource
303
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Resource
304
+ end
305
+ def application_health_policy
306
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ApplicationHealthPolicy
307
+ end
308
+ def error_model_error
309
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModelError
310
+ end
311
+ def diagnostics_storage_account_config
312
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::DiagnosticsStorageAccountConfig
313
+ end
314
+ def error_model
315
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ErrorModel
316
+ end
317
+ def cluster
318
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Cluster
319
+ end
320
+ def provisioning_state
321
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ProvisioningState
322
+ end
145
323
  end
324
+ end
146
325
  end