azure_mgmt_service_fabric 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/cluster_versions.rb +1 -1
  3. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/clusters.rb +1 -1
  4. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/operations.rb +1 -1
  5. data/lib/2016-09-01/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +7 -6
  6. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/application.rb +1 -1
  7. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/application_type.rb +1 -1
  8. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/cluster_versions.rb +1 -1
  9. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/clusters.rb +1 -1
  10. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/operations.rb +1 -1
  11. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/service.rb +1 -1
  12. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +7 -6
  13. data/lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/version.rb +1 -1
  14. data/lib/2018-02-01/generated/azure_mgmt_service_fabric.rb +61 -0
  15. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/cluster_versions.rb +456 -0
  16. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/clusters.rb +753 -0
  17. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/application_delta_health_policy.rb +73 -0
  18. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/application_health_policy.rb +71 -0
  19. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/available_operation_display.rb +79 -0
  20. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/azure_active_directory.rb +68 -0
  21. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/certificate_description.rb +70 -0
  22. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/client_certificate_common_name.rb +70 -0
  23. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/client_certificate_thumbprint.rb +59 -0
  24. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster.rb +476 -0
  25. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_code_versions_list_result.rb +66 -0
  26. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_code_versions_result.rb +102 -0
  27. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_health_policy.rb +121 -0
  28. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_list_result.rb +66 -0
  29. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_update_parameters.rb +276 -0
  30. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_delta_health_policy.rb +125 -0
  31. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb +156 -0
  32. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_version_details.rb +69 -0
  33. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/diagnostics_storage_account_config.rb +91 -0
  34. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/endpoint_range_description.rb +57 -0
  35. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/error_model.rb +47 -0
  36. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/error_model_error.rb +57 -0
  37. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/node_type_description.rb +198 -0
  38. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/operation_list_result.rb +101 -0
  39. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/operation_result.rb +81 -0
  40. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/provisioning_state.rb +18 -0
  41. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/resource.rb +101 -0
  42. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/server_certificate_common_name.rb +57 -0
  43. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/server_certificate_common_names.rb +71 -0
  44. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_delta_health_policy.rb +60 -0
  45. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb +55 -0
  46. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/settings_parameter_description.rb +57 -0
  47. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/models/settings_section_description.rb +67 -0
  48. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/module_definition.rb +9 -0
  49. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/operations.rb +237 -0
  50. data/lib/2018-02-01/generated/azure_mgmt_service_fabric/service_fabric_management_client.rb +141 -0
  51. data/lib/azure_mgmt_service_fabric.rb +2 -1
  52. data/lib/profiles/latest/modules/servicefabric_profile_module.rb +136 -112
  53. data/lib/version.rb +1 -1
  54. metadata +42 -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.0"
138
+ add_user_agent_information(sdk_information)
139
+ end
140
+ end
141
+ end
@@ -2,6 +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 '2016-09-01/generated/azure_mgmt_service_fabric'
6
5
  require '2017-07-01-preview/generated/azure_mgmt_service_fabric'
6
+ require '2018-02-01/generated/azure_mgmt_service_fabric'
7
+ require '2016-09-01/generated/azure_mgmt_service_fabric'
7
8
  require 'profiles/latest/servicefabric_latest_profile_client'
@@ -6,55 +6,30 @@ require 'azure_mgmt_service_fabric'
6
6
 
7
7
  module Azure::ServiceFabric::Profiles::Latest
8
8
  module Mgmt
9
- Clusters = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Clusters
10
- ClusterVersions = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::ClusterVersions
11
- Operations = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Operations
12
9
  ApplicationType = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::ApplicationType
13
10
  Version = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Version
14
11
  Application = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Application
15
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
16
16
 
17
17
  module Models
18
18
  ServicePropertiesBase = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePropertiesBase
19
- ErrorModel = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ErrorModel
20
19
  ServiceTypeHealthPolicyMapItem = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicyMapItem
21
- OperationListResult = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::OperationListResult
22
20
  ApplicationMetricDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationMetricDescription
23
- OperationResult = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::OperationResult
24
21
  ServiceCorrelationDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceCorrelationDescription
25
22
  ServicePlacementPolicyDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePlacementPolicyDescription
26
- ServiceTypeDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeDeltaHealthPolicy
27
- ApplicationHealthPolicy = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationHealthPolicy
28
- ClusterUpdateParameters = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterUpdateParameters
29
23
  ApplicationParameter = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationParameter
30
- ClusterCodeVersionsListResult = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterCodeVersionsListResult
31
24
  ServiceLoadMetricDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceLoadMetricDescription
32
- ClusterCodeVersionsResult = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterCodeVersionsResult
33
25
  PartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::PartitionSchemeDescription
34
26
  ProxyResource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProxyResource
35
- DiagnosticsStorageAccountConfig = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::DiagnosticsStorageAccountConfig
36
27
  RollingUpgradeMonitoringPolicy = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::RollingUpgradeMonitoringPolicy
37
- Resource = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::Resource
38
- ClusterUpgradePolicy = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterUpgradePolicy
39
- AvailableOperationDisplay = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::AvailableOperationDisplay
40
- ClusterHealthPolicy = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterHealthPolicy
41
- AzureActiveDirectory = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::AzureActiveDirectory
42
- ServiceTypeHealthPolicy = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicy
43
- CertificateDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::CertificateDescription
44
28
  ApplicationTypeResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResourceList
45
- ClientCertificateCommonName = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClientCertificateCommonName
46
29
  ApplicationResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceList
47
- ClientCertificateThumbprint = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClientCertificateThumbprint
48
- ClusterUpgradeDeltaHealthPolicy = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterUpgradeDeltaHealthPolicy
49
- ClusterVersionDetails = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterVersionDetails
50
- ClusterListResult = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterListResult
51
- SettingsParameterDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::SettingsParameterDescription
52
30
  ApplicationUpgradePolicy = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationUpgradePolicy
53
- SettingsSectionDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::SettingsSectionDescription
54
31
  VersionResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::VersionResourceList
55
- EndpointRangeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::EndpointRangeDescription
56
32
  ServiceResourceList = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceList
57
- NodeTypeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::NodeTypeDescription
58
33
  NamedPartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::NamedPartitionSchemeDescription
59
34
  SingletonPartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::SingletonPartitionSchemeDescription
60
35
  UniformInt64RangePartitionSchemeDescription = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::UniformInt64RangePartitionSchemeDescription
@@ -70,15 +45,44 @@ module Azure::ServiceFabric::Profiles::Latest
70
45
  StatelessServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatelessServiceUpdateProperties
71
46
  StatefulServiceProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceProperties
72
47
  StatefulServiceUpdateProperties = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceUpdateProperties
73
- Cluster = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::Cluster
74
- ProvisioningState = Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProvisioningState
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
75
79
  end
76
80
 
77
81
  #
78
82
  # ServiceFabricManagementClass
79
83
  #
80
84
  class ServiceFabricManagementClass
81
- attr_reader :clusters, :cluster_versions, :operations, :application_type, :version, :application, :service, :configurable, :base_url, :options, :model_classes
85
+ attr_reader :application_type, :version, :application, :service, :clusters, :cluster_versions, :operations, :configurable, :base_url, :options, :model_classes
82
86
 
83
87
  def initialize(options = {})
84
88
  if options.is_a?(Hash) && options.length == 0
@@ -98,14 +102,20 @@ module Azure::ServiceFabric::Profiles::Latest
98
102
  @client_0.subscription_id = configurable.subscription_id
99
103
  end
100
104
  add_telemetry(@client_0)
101
- @clusters = @client_0.clusters
102
- @cluster_versions = @client_0.cluster_versions
103
- @operations = @client_0.operations
104
105
  @application_type = @client_0.application_type
105
106
  @version = @client_0.version
106
107
  @application = @client_0.application
107
108
  @service = @client_0.service
108
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
118
+
109
119
  @model_classes = ModelClasses.new
110
120
  end
111
121
 
@@ -115,7 +125,9 @@ module Azure::ServiceFabric::Profiles::Latest
115
125
  end
116
126
 
117
127
  def method_missing(method, *args)
118
- if @client_0.respond_to?method
128
+ if @client_1.respond_to?method
129
+ @client_1.send(method, *args)
130
+ elsif @client_0.respond_to?method
119
131
  @client_0.send(method, *args)
120
132
  else
121
133
  super
@@ -128,123 +140,48 @@ module Azure::ServiceFabric::Profiles::Latest
128
140
  def service_properties_base
129
141
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePropertiesBase
130
142
  end
131
- def error_model
132
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ErrorModel
133
- end
134
143
  def service_type_health_policy_map_item
135
144
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicyMapItem
136
145
  end
137
- def operation_list_result
138
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::OperationListResult
139
- end
140
146
  def application_metric_description
141
147
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationMetricDescription
142
148
  end
143
- def operation_result
144
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::OperationResult
145
- end
146
149
  def service_correlation_description
147
150
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceCorrelationDescription
148
151
  end
149
152
  def service_placement_policy_description
150
153
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServicePlacementPolicyDescription
151
154
  end
152
- def service_type_delta_health_policy
153
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeDeltaHealthPolicy
154
- end
155
- def application_health_policy
156
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationHealthPolicy
157
- end
158
- def cluster_update_parameters
159
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterUpdateParameters
160
- end
161
155
  def application_parameter
162
156
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationParameter
163
157
  end
164
- def cluster_code_versions_list_result
165
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterCodeVersionsListResult
166
- end
167
158
  def service_load_metric_description
168
159
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceLoadMetricDescription
169
160
  end
170
- def cluster_code_versions_result
171
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterCodeVersionsResult
172
- end
173
161
  def partition_scheme_description
174
162
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::PartitionSchemeDescription
175
163
  end
176
164
  def proxy_resource
177
165
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProxyResource
178
166
  end
179
- def diagnostics_storage_account_config
180
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::DiagnosticsStorageAccountConfig
181
- end
182
167
  def rolling_upgrade_monitoring_policy
183
168
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::RollingUpgradeMonitoringPolicy
184
169
  end
185
- def resource
186
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::Resource
187
- end
188
- def cluster_upgrade_policy
189
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterUpgradePolicy
190
- end
191
- def available_operation_display
192
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::AvailableOperationDisplay
193
- end
194
- def cluster_health_policy
195
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterHealthPolicy
196
- end
197
- def azure_active_directory
198
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::AzureActiveDirectory
199
- end
200
- def service_type_health_policy
201
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicy
202
- end
203
- def certificate_description
204
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::CertificateDescription
205
- end
206
170
  def application_type_resource_list
207
171
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationTypeResourceList
208
172
  end
209
- def client_certificate_common_name
210
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClientCertificateCommonName
211
- end
212
173
  def application_resource_list
213
174
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationResourceList
214
175
  end
215
- def client_certificate_thumbprint
216
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClientCertificateThumbprint
217
- end
218
- def cluster_upgrade_delta_health_policy
219
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterUpgradeDeltaHealthPolicy
220
- end
221
- def cluster_version_details
222
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterVersionDetails
223
- end
224
- def cluster_list_result
225
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ClusterListResult
226
- end
227
- def settings_parameter_description
228
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::SettingsParameterDescription
229
- end
230
176
  def application_upgrade_policy
231
177
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ApplicationUpgradePolicy
232
178
  end
233
- def settings_section_description
234
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::SettingsSectionDescription
235
- end
236
179
  def version_resource_list
237
180
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::VersionResourceList
238
181
  end
239
- def endpoint_range_description
240
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::EndpointRangeDescription
241
- end
242
182
  def service_resource_list
243
183
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceResourceList
244
184
  end
245
- def node_type_description
246
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::NodeTypeDescription
247
- end
248
185
  def named_partition_scheme_description
249
186
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::NamedPartitionSchemeDescription
250
187
  end
@@ -290,11 +227,98 @@ module Azure::ServiceFabric::Profiles::Latest
290
227
  def stateful_service_update_properties
291
228
  Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::StatefulServiceUpdateProperties
292
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
293
317
  def cluster
294
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::Cluster
318
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::Cluster
295
319
  end
296
320
  def provisioning_state
297
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ProvisioningState
321
+ Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ProvisioningState
298
322
  end
299
323
  end
300
324
  end