azure_mgmt_analysis_services 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2016-05-16/generated/azure_mgmt_analysis_services.rb +40 -0
- data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/analysis_services_management_client.rb +4 -8
- data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb +149 -0
- data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb +84 -0
- data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/analysis_services_servers.rb +1 -1
- data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/provisioning_state.rb +1 -1
- data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/resource.rb +1 -1
- data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/resource_sku.rb +1 -17
- data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/server_administrators.rb +2 -2
- data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb +2 -2
- data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb +3 -3
- data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb +3 -3
- data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/sku_tier.rb +1 -1
- data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/state.rb +1 -1
- data/lib/2016-05-16/generated/azure_mgmt_analysis_services/module_definition.rb +9 -0
- data/lib/2016-05-16/generated/azure_mgmt_analysis_services/servers.rb +1245 -0
- data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/version.rb +2 -2
- data/lib/2017-07-14/generated/azure_mgmt_analysis_services.rb +45 -0
- data/lib/2017-07-14/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb +130 -0
- data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/analysis_services_server.rb +1 -31
- data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb +1 -31
- data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb +53 -0
- data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/gateway_details.rb +1 -1
- data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/gateway_error.rb +2 -2
- data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/gateway_list_status_error.rb +2 -2
- data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/gateway_list_status_live.rb +2 -2
- data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/provisioning_state.rb +26 -0
- data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/resource.rb +107 -0
- data/lib/{generated/azure_mgmt_analysis_services/models/operation.rb → 2017-07-14/generated/azure_mgmt_analysis_services/models/resource_sku.rb} +15 -15
- data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/server_administrators.rb +51 -0
- data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb +45 -0
- data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb +53 -0
- data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb +53 -0
- data/lib/{generated/azure_mgmt_analysis_services/models/connection_mode.rb → 2017-07-14/generated/azure_mgmt_analysis_services/models/sku_tier.rb} +6 -5
- data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/state.rb +26 -0
- data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/status.rb +1 -1
- data/lib/2017-07-14/generated/azure_mgmt_analysis_services/module_definition.rb +9 -0
- data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/servers.rb +21 -18
- data/lib/{generated/azure_mgmt_analysis_services/module_definition.rb → 2017-07-14/generated/azure_mgmt_analysis_services/version.rb} +3 -3
- data/lib/azure_mgmt_analysis_services.rb +3 -1
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/common/configurable.rb +73 -0
- data/lib/profiles/common/default.rb +68 -0
- data/lib/profiles/latest/analysisservices_latest_profile_client.rb +33 -0
- data/lib/profiles/latest/analysisservices_module_definition.rb +9 -0
- data/lib/profiles/latest/modules/analysisservices_profile_module.rb +110 -0
- data/lib/version.rb +7 -0
- metadata +48 -32
- data/lib/generated/azure_mgmt_analysis_services.rb +0 -53
- data/lib/generated/azure_mgmt_analysis_services/models/error_response.rb +0 -54
- data/lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_rule.rb +0 -64
- data/lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_settings.rb +0 -62
- data/lib/generated/azure_mgmt_analysis_services/models/operation_display.rb +0 -68
- data/lib/generated/azure_mgmt_analysis_services/models/operation_list_result.rb +0 -99
- data/lib/generated/azure_mgmt_analysis_services/operations.rb +0 -215
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
6
|
-
module Azure::
|
|
6
|
+
module Azure::AnalysisServices::Mgmt::V2016_05_16
|
|
7
7
|
module Models
|
|
8
8
|
#
|
|
9
|
-
# An object that represents enumerating SKUs for new resources
|
|
9
|
+
# An object that represents enumerating SKUs for new resources
|
|
10
10
|
#
|
|
11
11
|
class SkuEnumerationForNewResourceResult
|
|
12
12
|
|
|
13
13
|
include MsRestAzure
|
|
14
14
|
|
|
15
15
|
# @return [Array<ResourceSku>] The collection of available SKUs for new
|
|
16
|
-
# resources
|
|
16
|
+
# resources
|
|
17
17
|
attr_accessor :value
|
|
18
18
|
|
|
19
19
|
|
|
@@ -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::AnalysisServices end
|
|
8
|
+
module Azure::AnalysisServices::Mgmt end
|
|
9
|
+
module Azure::AnalysisServices::Mgmt::V2016_05_16 end
|
|
@@ -0,0 +1,1245 @@
|
|
|
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::AnalysisServices::Mgmt::V2016_05_16
|
|
7
|
+
#
|
|
8
|
+
# The Azure Analysis Services Web API provides a RESTful set of web services
|
|
9
|
+
# that enables users to create, retrieve, update, and delete Analysis
|
|
10
|
+
# Services servers
|
|
11
|
+
#
|
|
12
|
+
class Servers
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
#
|
|
16
|
+
# Creates and initializes a new instance of the Servers class.
|
|
17
|
+
# @param client service class for accessing basic functionality.
|
|
18
|
+
#
|
|
19
|
+
def initialize(client)
|
|
20
|
+
@client = client
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# @return [AnalysisServicesManagementClient] reference to the AnalysisServicesManagementClient
|
|
24
|
+
attr_reader :client
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
# Gets details about the specified Analysis Services server.
|
|
28
|
+
#
|
|
29
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
30
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
31
|
+
# character in length, and no more than 90.
|
|
32
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
33
|
+
# be a minimum of 3 characters, and a maximum of 63.
|
|
34
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
35
|
+
# will be added to the HTTP request.
|
|
36
|
+
#
|
|
37
|
+
# @return [AnalysisServicesServer] operation results.
|
|
38
|
+
#
|
|
39
|
+
def get_details(resource_group_name, server_name, custom_headers = nil)
|
|
40
|
+
response = get_details_async(resource_group_name, server_name, custom_headers).value!
|
|
41
|
+
response.body unless response.nil?
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
#
|
|
45
|
+
# Gets details about the specified Analysis Services server.
|
|
46
|
+
#
|
|
47
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
48
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
49
|
+
# character in length, and no more than 90.
|
|
50
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
51
|
+
# be a minimum of 3 characters, and a maximum of 63.
|
|
52
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
53
|
+
# will be added to the HTTP request.
|
|
54
|
+
#
|
|
55
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
56
|
+
#
|
|
57
|
+
def get_details_with_http_info(resource_group_name, server_name, custom_headers = nil)
|
|
58
|
+
get_details_async(resource_group_name, server_name, custom_headers).value!
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
#
|
|
62
|
+
# Gets details about the specified Analysis Services server.
|
|
63
|
+
#
|
|
64
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
65
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
66
|
+
# character in length, and no more than 90.
|
|
67
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
68
|
+
# be a minimum of 3 characters, and a maximum of 63.
|
|
69
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
70
|
+
# to the HTTP request.
|
|
71
|
+
#
|
|
72
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
73
|
+
#
|
|
74
|
+
def get_details_async(resource_group_name, server_name, custom_headers = nil)
|
|
75
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
76
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
|
77
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
78
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
request_headers = {}
|
|
82
|
+
|
|
83
|
+
# Set Headers
|
|
84
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
85
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
86
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}'
|
|
87
|
+
|
|
88
|
+
request_url = @base_url || @client.base_url
|
|
89
|
+
|
|
90
|
+
options = {
|
|
91
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
92
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'subscriptionId' => @client.subscription_id},
|
|
93
|
+
query_params: {'api-version' => @client.api_version},
|
|
94
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
95
|
+
base_url: request_url
|
|
96
|
+
}
|
|
97
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
98
|
+
|
|
99
|
+
promise = promise.then do |result|
|
|
100
|
+
http_response = result.response
|
|
101
|
+
status_code = http_response.status
|
|
102
|
+
response_content = http_response.body
|
|
103
|
+
unless status_code == 200
|
|
104
|
+
error_model = JSON.load(response_content)
|
|
105
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
109
|
+
# Deserialize Response
|
|
110
|
+
if status_code == 200
|
|
111
|
+
begin
|
|
112
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
113
|
+
result_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::AnalysisServicesServer.mapper()
|
|
114
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
115
|
+
rescue Exception => e
|
|
116
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
result
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
promise.execute
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
#
|
|
127
|
+
# Provisions the specified Analysis Services server based on the configuration
|
|
128
|
+
# specified in the request.
|
|
129
|
+
#
|
|
130
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
131
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
132
|
+
# character in length, and no more than 90.
|
|
133
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
134
|
+
# be a minimum of 3 characters, and a maximum of 63.
|
|
135
|
+
# @param server_parameters [AnalysisServicesServer] Contains the information
|
|
136
|
+
# used to provision the Analysis Services server.
|
|
137
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
138
|
+
# will be added to the HTTP request.
|
|
139
|
+
#
|
|
140
|
+
# @return [AnalysisServicesServer] operation results.
|
|
141
|
+
#
|
|
142
|
+
def create(resource_group_name, server_name, server_parameters, custom_headers = nil)
|
|
143
|
+
response = create_async(resource_group_name, server_name, server_parameters, custom_headers).value!
|
|
144
|
+
response.body unless response.nil?
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
#
|
|
148
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
149
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
150
|
+
# character in length, and no more than 90.
|
|
151
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
152
|
+
# be a minimum of 3 characters, and a maximum of 63.
|
|
153
|
+
# @param server_parameters [AnalysisServicesServer] Contains the information
|
|
154
|
+
# used to provision the Analysis Services server.
|
|
155
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
156
|
+
# will be added to the HTTP request.
|
|
157
|
+
#
|
|
158
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
159
|
+
# response.
|
|
160
|
+
#
|
|
161
|
+
def create_async(resource_group_name, server_name, server_parameters, custom_headers = nil)
|
|
162
|
+
# Send request
|
|
163
|
+
promise = begin_create_async(resource_group_name, server_name, server_parameters, custom_headers)
|
|
164
|
+
|
|
165
|
+
promise = promise.then do |response|
|
|
166
|
+
# Defining deserialization method.
|
|
167
|
+
deserialize_method = lambda do |parsed_response|
|
|
168
|
+
result_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::AnalysisServicesServer.mapper()
|
|
169
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Waiting for response.
|
|
173
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
promise
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
#
|
|
180
|
+
# Deletes the specified Analysis Services server.
|
|
181
|
+
#
|
|
182
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
183
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
184
|
+
# character in length, and no more than 90.
|
|
185
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
186
|
+
# be at least 3 characters in length, and no more than 63.
|
|
187
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
188
|
+
# will be added to the HTTP request.
|
|
189
|
+
#
|
|
190
|
+
def delete(resource_group_name, server_name, custom_headers = nil)
|
|
191
|
+
response = delete_async(resource_group_name, server_name, custom_headers).value!
|
|
192
|
+
nil
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
#
|
|
196
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
197
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
198
|
+
# character in length, and no more than 90.
|
|
199
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
200
|
+
# be at least 3 characters in length, and no more than 63.
|
|
201
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
202
|
+
# will be added to the HTTP request.
|
|
203
|
+
#
|
|
204
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
205
|
+
# response.
|
|
206
|
+
#
|
|
207
|
+
def delete_async(resource_group_name, server_name, custom_headers = nil)
|
|
208
|
+
# Send request
|
|
209
|
+
promise = begin_delete_async(resource_group_name, server_name, custom_headers)
|
|
210
|
+
|
|
211
|
+
promise = promise.then do |response|
|
|
212
|
+
# Defining deserialization method.
|
|
213
|
+
deserialize_method = lambda do |parsed_response|
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Waiting for response.
|
|
217
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
promise
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
#
|
|
224
|
+
# Updates the current state of the specified Analysis Services server.
|
|
225
|
+
#
|
|
226
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
227
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
228
|
+
# character in length, and no more than 90.
|
|
229
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
230
|
+
# be at least 3 characters in length, and no more than 63.
|
|
231
|
+
# @param server_update_parameters [AnalysisServicesServerUpdateParameters]
|
|
232
|
+
# Request object that contains the updated information for the server.
|
|
233
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
234
|
+
# will be added to the HTTP request.
|
|
235
|
+
#
|
|
236
|
+
# @return [AnalysisServicesServer] operation results.
|
|
237
|
+
#
|
|
238
|
+
def update(resource_group_name, server_name, server_update_parameters, custom_headers = nil)
|
|
239
|
+
response = update_async(resource_group_name, server_name, server_update_parameters, custom_headers).value!
|
|
240
|
+
response.body unless response.nil?
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
#
|
|
244
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
245
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
246
|
+
# character in length, and no more than 90.
|
|
247
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
248
|
+
# be at least 3 characters in length, and no more than 63.
|
|
249
|
+
# @param server_update_parameters [AnalysisServicesServerUpdateParameters]
|
|
250
|
+
# Request object that contains the updated information for the server.
|
|
251
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
252
|
+
# will be added to the HTTP request.
|
|
253
|
+
#
|
|
254
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
255
|
+
# response.
|
|
256
|
+
#
|
|
257
|
+
def update_async(resource_group_name, server_name, server_update_parameters, custom_headers = nil)
|
|
258
|
+
# Send request
|
|
259
|
+
promise = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers)
|
|
260
|
+
|
|
261
|
+
promise = promise.then do |response|
|
|
262
|
+
# Defining deserialization method.
|
|
263
|
+
deserialize_method = lambda do |parsed_response|
|
|
264
|
+
result_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::AnalysisServicesServer.mapper()
|
|
265
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Waiting for response.
|
|
269
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
promise
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
#
|
|
276
|
+
# Supends operation of the specified Analysis Services server instance.
|
|
277
|
+
#
|
|
278
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
279
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
280
|
+
# character in length, and no more than 90.
|
|
281
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
282
|
+
# be at least 3 characters in length, and no more than 63.
|
|
283
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
284
|
+
# will be added to the HTTP request.
|
|
285
|
+
#
|
|
286
|
+
def suspend(resource_group_name, server_name, custom_headers = nil)
|
|
287
|
+
response = suspend_async(resource_group_name, server_name, custom_headers).value!
|
|
288
|
+
nil
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
#
|
|
292
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
293
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
294
|
+
# character in length, and no more than 90.
|
|
295
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
296
|
+
# be at least 3 characters in length, and no more than 63.
|
|
297
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
298
|
+
# will be added to the HTTP request.
|
|
299
|
+
#
|
|
300
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
301
|
+
# response.
|
|
302
|
+
#
|
|
303
|
+
def suspend_async(resource_group_name, server_name, custom_headers = nil)
|
|
304
|
+
# Send request
|
|
305
|
+
promise = begin_suspend_async(resource_group_name, server_name, custom_headers)
|
|
306
|
+
|
|
307
|
+
promise = promise.then do |response|
|
|
308
|
+
# Defining deserialization method.
|
|
309
|
+
deserialize_method = lambda do |parsed_response|
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Waiting for response.
|
|
313
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
promise
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
#
|
|
320
|
+
# Resumes operation of the specified Analysis Services server instance.
|
|
321
|
+
#
|
|
322
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
323
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
324
|
+
# character in length, and no more than 90.
|
|
325
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
326
|
+
# be at least 3 characters in length, and no more than 63.
|
|
327
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
328
|
+
# will be added to the HTTP request.
|
|
329
|
+
#
|
|
330
|
+
def resume(resource_group_name, server_name, custom_headers = nil)
|
|
331
|
+
response = resume_async(resource_group_name, server_name, custom_headers).value!
|
|
332
|
+
nil
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
#
|
|
336
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
337
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
338
|
+
# character in length, and no more than 90.
|
|
339
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
340
|
+
# be at least 3 characters in length, and no more than 63.
|
|
341
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
342
|
+
# will be added to the HTTP request.
|
|
343
|
+
#
|
|
344
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
345
|
+
# response.
|
|
346
|
+
#
|
|
347
|
+
def resume_async(resource_group_name, server_name, custom_headers = nil)
|
|
348
|
+
# Send request
|
|
349
|
+
promise = begin_resume_async(resource_group_name, server_name, custom_headers)
|
|
350
|
+
|
|
351
|
+
promise = promise.then do |response|
|
|
352
|
+
# Defining deserialization method.
|
|
353
|
+
deserialize_method = lambda do |parsed_response|
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
# Waiting for response.
|
|
357
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
promise
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
#
|
|
364
|
+
# Gets all the Analysis Services servers for the given resource group.
|
|
365
|
+
#
|
|
366
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
367
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
368
|
+
# character in length, and no more than 90.
|
|
369
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
370
|
+
# will be added to the HTTP request.
|
|
371
|
+
#
|
|
372
|
+
# @return [AnalysisServicesServers] operation results.
|
|
373
|
+
#
|
|
374
|
+
def list_by_resource_group(resource_group_name, custom_headers = nil)
|
|
375
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
|
376
|
+
response.body unless response.nil?
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
#
|
|
380
|
+
# Gets all the Analysis Services servers for the given resource group.
|
|
381
|
+
#
|
|
382
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
383
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
384
|
+
# character in length, and no more than 90.
|
|
385
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
386
|
+
# will be added to the HTTP request.
|
|
387
|
+
#
|
|
388
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
389
|
+
#
|
|
390
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
|
|
391
|
+
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
#
|
|
395
|
+
# Gets all the Analysis Services servers for the given resource group.
|
|
396
|
+
#
|
|
397
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
398
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
399
|
+
# character in length, and no more than 90.
|
|
400
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
401
|
+
# to the HTTP request.
|
|
402
|
+
#
|
|
403
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
404
|
+
#
|
|
405
|
+
def list_by_resource_group_async(resource_group_name, custom_headers = nil)
|
|
406
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
407
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
408
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
request_headers = {}
|
|
412
|
+
|
|
413
|
+
# Set Headers
|
|
414
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
415
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
416
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers'
|
|
417
|
+
|
|
418
|
+
request_url = @base_url || @client.base_url
|
|
419
|
+
|
|
420
|
+
options = {
|
|
421
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
422
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
|
423
|
+
query_params: {'api-version' => @client.api_version},
|
|
424
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
425
|
+
base_url: request_url
|
|
426
|
+
}
|
|
427
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
428
|
+
|
|
429
|
+
promise = promise.then do |result|
|
|
430
|
+
http_response = result.response
|
|
431
|
+
status_code = http_response.status
|
|
432
|
+
response_content = http_response.body
|
|
433
|
+
unless status_code == 200
|
|
434
|
+
error_model = JSON.load(response_content)
|
|
435
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
439
|
+
# Deserialize Response
|
|
440
|
+
if status_code == 200
|
|
441
|
+
begin
|
|
442
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
443
|
+
result_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::AnalysisServicesServers.mapper()
|
|
444
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
445
|
+
rescue Exception => e
|
|
446
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
447
|
+
end
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
result
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
promise.execute
|
|
454
|
+
end
|
|
455
|
+
|
|
456
|
+
#
|
|
457
|
+
# Lists all the Analysis Services servers for the given subscription.
|
|
458
|
+
#
|
|
459
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
460
|
+
# will be added to the HTTP request.
|
|
461
|
+
#
|
|
462
|
+
# @return [AnalysisServicesServers] operation results.
|
|
463
|
+
#
|
|
464
|
+
def list(custom_headers = nil)
|
|
465
|
+
response = list_async(custom_headers).value!
|
|
466
|
+
response.body unless response.nil?
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
#
|
|
470
|
+
# Lists all the Analysis Services servers for the given subscription.
|
|
471
|
+
#
|
|
472
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
473
|
+
# will be added to the HTTP request.
|
|
474
|
+
#
|
|
475
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
476
|
+
#
|
|
477
|
+
def list_with_http_info(custom_headers = nil)
|
|
478
|
+
list_async(custom_headers).value!
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
#
|
|
482
|
+
# Lists all the Analysis Services servers for the given subscription.
|
|
483
|
+
#
|
|
484
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
485
|
+
# to the HTTP request.
|
|
486
|
+
#
|
|
487
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
488
|
+
#
|
|
489
|
+
def list_async(custom_headers = nil)
|
|
490
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
491
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
request_headers = {}
|
|
495
|
+
|
|
496
|
+
# Set Headers
|
|
497
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
498
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
499
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/servers'
|
|
500
|
+
|
|
501
|
+
request_url = @base_url || @client.base_url
|
|
502
|
+
|
|
503
|
+
options = {
|
|
504
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
505
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
|
506
|
+
query_params: {'api-version' => @client.api_version},
|
|
507
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
508
|
+
base_url: request_url
|
|
509
|
+
}
|
|
510
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
511
|
+
|
|
512
|
+
promise = promise.then do |result|
|
|
513
|
+
http_response = result.response
|
|
514
|
+
status_code = http_response.status
|
|
515
|
+
response_content = http_response.body
|
|
516
|
+
unless status_code == 200
|
|
517
|
+
error_model = JSON.load(response_content)
|
|
518
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
522
|
+
# Deserialize Response
|
|
523
|
+
if status_code == 200
|
|
524
|
+
begin
|
|
525
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
526
|
+
result_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::AnalysisServicesServers.mapper()
|
|
527
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
528
|
+
rescue Exception => e
|
|
529
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
530
|
+
end
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
result
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
promise.execute
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
#
|
|
540
|
+
# Lists eligible SKUs for Analysis Services resource provider.
|
|
541
|
+
#
|
|
542
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
543
|
+
# will be added to the HTTP request.
|
|
544
|
+
#
|
|
545
|
+
# @return [SkuEnumerationForNewResourceResult] operation results.
|
|
546
|
+
#
|
|
547
|
+
def list_skus_for_new(custom_headers = nil)
|
|
548
|
+
response = list_skus_for_new_async(custom_headers).value!
|
|
549
|
+
response.body unless response.nil?
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
#
|
|
553
|
+
# Lists eligible SKUs for Analysis Services resource provider.
|
|
554
|
+
#
|
|
555
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
556
|
+
# will be added to the HTTP request.
|
|
557
|
+
#
|
|
558
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
559
|
+
#
|
|
560
|
+
def list_skus_for_new_with_http_info(custom_headers = nil)
|
|
561
|
+
list_skus_for_new_async(custom_headers).value!
|
|
562
|
+
end
|
|
563
|
+
|
|
564
|
+
#
|
|
565
|
+
# Lists eligible SKUs for Analysis Services resource provider.
|
|
566
|
+
#
|
|
567
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
568
|
+
# to the HTTP request.
|
|
569
|
+
#
|
|
570
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
571
|
+
#
|
|
572
|
+
def list_skus_for_new_async(custom_headers = nil)
|
|
573
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
574
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
request_headers = {}
|
|
578
|
+
|
|
579
|
+
# Set Headers
|
|
580
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
581
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
582
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/skus'
|
|
583
|
+
|
|
584
|
+
request_url = @base_url || @client.base_url
|
|
585
|
+
|
|
586
|
+
options = {
|
|
587
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
588
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
|
589
|
+
query_params: {'api-version' => @client.api_version},
|
|
590
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
591
|
+
base_url: request_url
|
|
592
|
+
}
|
|
593
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
594
|
+
|
|
595
|
+
promise = promise.then do |result|
|
|
596
|
+
http_response = result.response
|
|
597
|
+
status_code = http_response.status
|
|
598
|
+
response_content = http_response.body
|
|
599
|
+
unless status_code == 200
|
|
600
|
+
error_model = JSON.load(response_content)
|
|
601
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
602
|
+
end
|
|
603
|
+
|
|
604
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
605
|
+
# Deserialize Response
|
|
606
|
+
if status_code == 200
|
|
607
|
+
begin
|
|
608
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
609
|
+
result_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::SkuEnumerationForNewResourceResult.mapper()
|
|
610
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
611
|
+
rescue Exception => e
|
|
612
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
613
|
+
end
|
|
614
|
+
end
|
|
615
|
+
|
|
616
|
+
result
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
promise.execute
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
#
|
|
623
|
+
# Lists eligible SKUs for an Analysis Services resource.
|
|
624
|
+
#
|
|
625
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
626
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
627
|
+
# character in length, and no more than 90.
|
|
628
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
629
|
+
# be at least 3 characters in length, and no more than 63.
|
|
630
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
631
|
+
# will be added to the HTTP request.
|
|
632
|
+
#
|
|
633
|
+
# @return [SkuEnumerationForExistingResourceResult] operation results.
|
|
634
|
+
#
|
|
635
|
+
def list_skus_for_existing(resource_group_name, server_name, custom_headers = nil)
|
|
636
|
+
response = list_skus_for_existing_async(resource_group_name, server_name, custom_headers).value!
|
|
637
|
+
response.body unless response.nil?
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
#
|
|
641
|
+
# Lists eligible SKUs for an Analysis Services resource.
|
|
642
|
+
#
|
|
643
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
644
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
645
|
+
# character in length, and no more than 90.
|
|
646
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
647
|
+
# be at least 3 characters in length, and no more than 63.
|
|
648
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
649
|
+
# will be added to the HTTP request.
|
|
650
|
+
#
|
|
651
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
652
|
+
#
|
|
653
|
+
def list_skus_for_existing_with_http_info(resource_group_name, server_name, custom_headers = nil)
|
|
654
|
+
list_skus_for_existing_async(resource_group_name, server_name, custom_headers).value!
|
|
655
|
+
end
|
|
656
|
+
|
|
657
|
+
#
|
|
658
|
+
# Lists eligible SKUs for an Analysis Services resource.
|
|
659
|
+
#
|
|
660
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
661
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
662
|
+
# character in length, and no more than 90.
|
|
663
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
664
|
+
# be at least 3 characters in length, and no more than 63.
|
|
665
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
666
|
+
# to the HTTP request.
|
|
667
|
+
#
|
|
668
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
669
|
+
#
|
|
670
|
+
def list_skus_for_existing_async(resource_group_name, server_name, custom_headers = nil)
|
|
671
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
672
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
|
673
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
674
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
request_headers = {}
|
|
678
|
+
|
|
679
|
+
# Set Headers
|
|
680
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
681
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
682
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/skus'
|
|
683
|
+
|
|
684
|
+
request_url = @base_url || @client.base_url
|
|
685
|
+
|
|
686
|
+
options = {
|
|
687
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
688
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'subscriptionId' => @client.subscription_id},
|
|
689
|
+
query_params: {'api-version' => @client.api_version},
|
|
690
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
691
|
+
base_url: request_url
|
|
692
|
+
}
|
|
693
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
694
|
+
|
|
695
|
+
promise = promise.then do |result|
|
|
696
|
+
http_response = result.response
|
|
697
|
+
status_code = http_response.status
|
|
698
|
+
response_content = http_response.body
|
|
699
|
+
unless status_code == 200
|
|
700
|
+
error_model = JSON.load(response_content)
|
|
701
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
702
|
+
end
|
|
703
|
+
|
|
704
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
705
|
+
# Deserialize Response
|
|
706
|
+
if status_code == 200
|
|
707
|
+
begin
|
|
708
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
709
|
+
result_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::SkuEnumerationForExistingResourceResult.mapper()
|
|
710
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
711
|
+
rescue Exception => e
|
|
712
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
713
|
+
end
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
result
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
promise.execute
|
|
720
|
+
end
|
|
721
|
+
|
|
722
|
+
#
|
|
723
|
+
# Provisions the specified Analysis Services server based on the configuration
|
|
724
|
+
# specified in the request.
|
|
725
|
+
#
|
|
726
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
727
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
728
|
+
# character in length, and no more than 90.
|
|
729
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
730
|
+
# be a minimum of 3 characters, and a maximum of 63.
|
|
731
|
+
# @param server_parameters [AnalysisServicesServer] Contains the information
|
|
732
|
+
# used to provision the Analysis Services server.
|
|
733
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
734
|
+
# will be added to the HTTP request.
|
|
735
|
+
#
|
|
736
|
+
# @return [AnalysisServicesServer] operation results.
|
|
737
|
+
#
|
|
738
|
+
def begin_create(resource_group_name, server_name, server_parameters, custom_headers = nil)
|
|
739
|
+
response = begin_create_async(resource_group_name, server_name, server_parameters, custom_headers).value!
|
|
740
|
+
response.body unless response.nil?
|
|
741
|
+
end
|
|
742
|
+
|
|
743
|
+
#
|
|
744
|
+
# Provisions the specified Analysis Services server based on the configuration
|
|
745
|
+
# specified in the request.
|
|
746
|
+
#
|
|
747
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
748
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
749
|
+
# character in length, and no more than 90.
|
|
750
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
751
|
+
# be a minimum of 3 characters, and a maximum of 63.
|
|
752
|
+
# @param server_parameters [AnalysisServicesServer] Contains the information
|
|
753
|
+
# used to provision the Analysis Services server.
|
|
754
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
755
|
+
# will be added to the HTTP request.
|
|
756
|
+
#
|
|
757
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
758
|
+
#
|
|
759
|
+
def begin_create_with_http_info(resource_group_name, server_name, server_parameters, custom_headers = nil)
|
|
760
|
+
begin_create_async(resource_group_name, server_name, server_parameters, custom_headers).value!
|
|
761
|
+
end
|
|
762
|
+
|
|
763
|
+
#
|
|
764
|
+
# Provisions the specified Analysis Services server based on the configuration
|
|
765
|
+
# specified in the request.
|
|
766
|
+
#
|
|
767
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
768
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
769
|
+
# character in length, and no more than 90.
|
|
770
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
771
|
+
# be a minimum of 3 characters, and a maximum of 63.
|
|
772
|
+
# @param server_parameters [AnalysisServicesServer] Contains the information
|
|
773
|
+
# used to provision the Analysis Services server.
|
|
774
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
775
|
+
# to the HTTP request.
|
|
776
|
+
#
|
|
777
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
778
|
+
#
|
|
779
|
+
def begin_create_async(resource_group_name, server_name, server_parameters, custom_headers = nil)
|
|
780
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
781
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
|
782
|
+
fail ArgumentError, 'server_parameters is nil' if server_parameters.nil?
|
|
783
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
784
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
request_headers = {}
|
|
788
|
+
|
|
789
|
+
# Set Headers
|
|
790
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
791
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
792
|
+
|
|
793
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
794
|
+
|
|
795
|
+
# Serialize Request
|
|
796
|
+
request_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::AnalysisServicesServer.mapper()
|
|
797
|
+
request_content = @client.serialize(request_mapper, server_parameters)
|
|
798
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
|
799
|
+
|
|
800
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}'
|
|
801
|
+
|
|
802
|
+
request_url = @base_url || @client.base_url
|
|
803
|
+
|
|
804
|
+
options = {
|
|
805
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
806
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'subscriptionId' => @client.subscription_id},
|
|
807
|
+
query_params: {'api-version' => @client.api_version},
|
|
808
|
+
body: request_content,
|
|
809
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
810
|
+
base_url: request_url
|
|
811
|
+
}
|
|
812
|
+
promise = @client.make_request_async(:put, path_template, options)
|
|
813
|
+
|
|
814
|
+
promise = promise.then do |result|
|
|
815
|
+
http_response = result.response
|
|
816
|
+
status_code = http_response.status
|
|
817
|
+
response_content = http_response.body
|
|
818
|
+
unless status_code == 200 || status_code == 201
|
|
819
|
+
error_model = JSON.load(response_content)
|
|
820
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
821
|
+
end
|
|
822
|
+
|
|
823
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
824
|
+
# Deserialize Response
|
|
825
|
+
if status_code == 200
|
|
826
|
+
begin
|
|
827
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
828
|
+
result_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::AnalysisServicesServer.mapper()
|
|
829
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
830
|
+
rescue Exception => e
|
|
831
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
832
|
+
end
|
|
833
|
+
end
|
|
834
|
+
# Deserialize Response
|
|
835
|
+
if status_code == 201
|
|
836
|
+
begin
|
|
837
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
838
|
+
result_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::AnalysisServicesServer.mapper()
|
|
839
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
840
|
+
rescue Exception => e
|
|
841
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
842
|
+
end
|
|
843
|
+
end
|
|
844
|
+
|
|
845
|
+
result
|
|
846
|
+
end
|
|
847
|
+
|
|
848
|
+
promise.execute
|
|
849
|
+
end
|
|
850
|
+
|
|
851
|
+
#
|
|
852
|
+
# Deletes the specified Analysis Services server.
|
|
853
|
+
#
|
|
854
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
855
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
856
|
+
# character in length, and no more than 90.
|
|
857
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
858
|
+
# be at least 3 characters in length, and no more than 63.
|
|
859
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
860
|
+
# will be added to the HTTP request.
|
|
861
|
+
#
|
|
862
|
+
#
|
|
863
|
+
def begin_delete(resource_group_name, server_name, custom_headers = nil)
|
|
864
|
+
response = begin_delete_async(resource_group_name, server_name, custom_headers).value!
|
|
865
|
+
nil
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
#
|
|
869
|
+
# Deletes the specified Analysis Services server.
|
|
870
|
+
#
|
|
871
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
872
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
873
|
+
# character in length, and no more than 90.
|
|
874
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
875
|
+
# be at least 3 characters in length, and no more than 63.
|
|
876
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
877
|
+
# will be added to the HTTP request.
|
|
878
|
+
#
|
|
879
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
880
|
+
#
|
|
881
|
+
def begin_delete_with_http_info(resource_group_name, server_name, custom_headers = nil)
|
|
882
|
+
begin_delete_async(resource_group_name, server_name, custom_headers).value!
|
|
883
|
+
end
|
|
884
|
+
|
|
885
|
+
#
|
|
886
|
+
# Deletes the specified Analysis Services server.
|
|
887
|
+
#
|
|
888
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
889
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
890
|
+
# character in length, and no more than 90.
|
|
891
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
892
|
+
# be at least 3 characters in length, and no more than 63.
|
|
893
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
894
|
+
# to the HTTP request.
|
|
895
|
+
#
|
|
896
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
897
|
+
#
|
|
898
|
+
def begin_delete_async(resource_group_name, server_name, custom_headers = nil)
|
|
899
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
900
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
|
901
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
902
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
request_headers = {}
|
|
906
|
+
|
|
907
|
+
# Set Headers
|
|
908
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
909
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
910
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}'
|
|
911
|
+
|
|
912
|
+
request_url = @base_url || @client.base_url
|
|
913
|
+
|
|
914
|
+
options = {
|
|
915
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
916
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'subscriptionId' => @client.subscription_id},
|
|
917
|
+
query_params: {'api-version' => @client.api_version},
|
|
918
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
919
|
+
base_url: request_url
|
|
920
|
+
}
|
|
921
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
|
922
|
+
|
|
923
|
+
promise = promise.then do |result|
|
|
924
|
+
http_response = result.response
|
|
925
|
+
status_code = http_response.status
|
|
926
|
+
response_content = http_response.body
|
|
927
|
+
unless status_code == 200 || status_code == 204 || status_code == 202
|
|
928
|
+
error_model = JSON.load(response_content)
|
|
929
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
930
|
+
end
|
|
931
|
+
|
|
932
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
933
|
+
|
|
934
|
+
result
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
promise.execute
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
#
|
|
941
|
+
# Updates the current state of the specified Analysis Services server.
|
|
942
|
+
#
|
|
943
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
944
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
945
|
+
# character in length, and no more than 90.
|
|
946
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
947
|
+
# be at least 3 characters in length, and no more than 63.
|
|
948
|
+
# @param server_update_parameters [AnalysisServicesServerUpdateParameters]
|
|
949
|
+
# Request object that contains the updated information for the server.
|
|
950
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
951
|
+
# will be added to the HTTP request.
|
|
952
|
+
#
|
|
953
|
+
# @return [AnalysisServicesServer] operation results.
|
|
954
|
+
#
|
|
955
|
+
def begin_update(resource_group_name, server_name, server_update_parameters, custom_headers = nil)
|
|
956
|
+
response = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers).value!
|
|
957
|
+
response.body unless response.nil?
|
|
958
|
+
end
|
|
959
|
+
|
|
960
|
+
#
|
|
961
|
+
# Updates the current state of the specified Analysis Services server.
|
|
962
|
+
#
|
|
963
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
964
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
965
|
+
# character in length, and no more than 90.
|
|
966
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
967
|
+
# be at least 3 characters in length, and no more than 63.
|
|
968
|
+
# @param server_update_parameters [AnalysisServicesServerUpdateParameters]
|
|
969
|
+
# Request object that contains the updated information for the server.
|
|
970
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
971
|
+
# will be added to the HTTP request.
|
|
972
|
+
#
|
|
973
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
974
|
+
#
|
|
975
|
+
def begin_update_with_http_info(resource_group_name, server_name, server_update_parameters, custom_headers = nil)
|
|
976
|
+
begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers).value!
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
#
|
|
980
|
+
# Updates the current state of the specified Analysis Services server.
|
|
981
|
+
#
|
|
982
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
983
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
984
|
+
# character in length, and no more than 90.
|
|
985
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
986
|
+
# be at least 3 characters in length, and no more than 63.
|
|
987
|
+
# @param server_update_parameters [AnalysisServicesServerUpdateParameters]
|
|
988
|
+
# Request object that contains the updated information for the server.
|
|
989
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
990
|
+
# to the HTTP request.
|
|
991
|
+
#
|
|
992
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
993
|
+
#
|
|
994
|
+
def begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers = nil)
|
|
995
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
996
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
|
997
|
+
fail ArgumentError, 'server_update_parameters is nil' if server_update_parameters.nil?
|
|
998
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
999
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
request_headers = {}
|
|
1003
|
+
|
|
1004
|
+
# Set Headers
|
|
1005
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1006
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1007
|
+
|
|
1008
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
1009
|
+
|
|
1010
|
+
# Serialize Request
|
|
1011
|
+
request_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::AnalysisServicesServerUpdateParameters.mapper()
|
|
1012
|
+
request_content = @client.serialize(request_mapper, server_update_parameters)
|
|
1013
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
|
1014
|
+
|
|
1015
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}'
|
|
1016
|
+
|
|
1017
|
+
request_url = @base_url || @client.base_url
|
|
1018
|
+
|
|
1019
|
+
options = {
|
|
1020
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1021
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'subscriptionId' => @client.subscription_id},
|
|
1022
|
+
query_params: {'api-version' => @client.api_version},
|
|
1023
|
+
body: request_content,
|
|
1024
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1025
|
+
base_url: request_url
|
|
1026
|
+
}
|
|
1027
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
|
1028
|
+
|
|
1029
|
+
promise = promise.then do |result|
|
|
1030
|
+
http_response = result.response
|
|
1031
|
+
status_code = http_response.status
|
|
1032
|
+
response_content = http_response.body
|
|
1033
|
+
unless status_code == 200 || status_code == 202
|
|
1034
|
+
error_model = JSON.load(response_content)
|
|
1035
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1036
|
+
end
|
|
1037
|
+
|
|
1038
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1039
|
+
# Deserialize Response
|
|
1040
|
+
if status_code == 200
|
|
1041
|
+
begin
|
|
1042
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1043
|
+
result_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::AnalysisServicesServer.mapper()
|
|
1044
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1045
|
+
rescue Exception => e
|
|
1046
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1047
|
+
end
|
|
1048
|
+
end
|
|
1049
|
+
# Deserialize Response
|
|
1050
|
+
if status_code == 202
|
|
1051
|
+
begin
|
|
1052
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
1053
|
+
result_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::AnalysisServicesServer.mapper()
|
|
1054
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
|
1055
|
+
rescue Exception => e
|
|
1056
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
1057
|
+
end
|
|
1058
|
+
end
|
|
1059
|
+
|
|
1060
|
+
result
|
|
1061
|
+
end
|
|
1062
|
+
|
|
1063
|
+
promise.execute
|
|
1064
|
+
end
|
|
1065
|
+
|
|
1066
|
+
#
|
|
1067
|
+
# Supends operation of the specified Analysis Services server instance.
|
|
1068
|
+
#
|
|
1069
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
1070
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
1071
|
+
# character in length, and no more than 90.
|
|
1072
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
1073
|
+
# be at least 3 characters in length, and no more than 63.
|
|
1074
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1075
|
+
# will be added to the HTTP request.
|
|
1076
|
+
#
|
|
1077
|
+
#
|
|
1078
|
+
def begin_suspend(resource_group_name, server_name, custom_headers = nil)
|
|
1079
|
+
response = begin_suspend_async(resource_group_name, server_name, custom_headers).value!
|
|
1080
|
+
nil
|
|
1081
|
+
end
|
|
1082
|
+
|
|
1083
|
+
#
|
|
1084
|
+
# Supends operation of the specified Analysis Services server instance.
|
|
1085
|
+
#
|
|
1086
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
1087
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
1088
|
+
# character in length, and no more than 90.
|
|
1089
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
1090
|
+
# be at least 3 characters in length, and no more than 63.
|
|
1091
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1092
|
+
# will be added to the HTTP request.
|
|
1093
|
+
#
|
|
1094
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1095
|
+
#
|
|
1096
|
+
def begin_suspend_with_http_info(resource_group_name, server_name, custom_headers = nil)
|
|
1097
|
+
begin_suspend_async(resource_group_name, server_name, custom_headers).value!
|
|
1098
|
+
end
|
|
1099
|
+
|
|
1100
|
+
#
|
|
1101
|
+
# Supends operation of the specified Analysis Services server instance.
|
|
1102
|
+
#
|
|
1103
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
1104
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
1105
|
+
# character in length, and no more than 90.
|
|
1106
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
1107
|
+
# be at least 3 characters in length, and no more than 63.
|
|
1108
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1109
|
+
# to the HTTP request.
|
|
1110
|
+
#
|
|
1111
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1112
|
+
#
|
|
1113
|
+
def begin_suspend_async(resource_group_name, server_name, custom_headers = nil)
|
|
1114
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
1115
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
|
1116
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
1117
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
request_headers = {}
|
|
1121
|
+
|
|
1122
|
+
# Set Headers
|
|
1123
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1124
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1125
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/suspend'
|
|
1126
|
+
|
|
1127
|
+
request_url = @base_url || @client.base_url
|
|
1128
|
+
|
|
1129
|
+
options = {
|
|
1130
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1131
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'subscriptionId' => @client.subscription_id},
|
|
1132
|
+
query_params: {'api-version' => @client.api_version},
|
|
1133
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1134
|
+
base_url: request_url
|
|
1135
|
+
}
|
|
1136
|
+
promise = @client.make_request_async(:post, path_template, options)
|
|
1137
|
+
|
|
1138
|
+
promise = promise.then do |result|
|
|
1139
|
+
http_response = result.response
|
|
1140
|
+
status_code = http_response.status
|
|
1141
|
+
response_content = http_response.body
|
|
1142
|
+
unless status_code == 200 || status_code == 202
|
|
1143
|
+
error_model = JSON.load(response_content)
|
|
1144
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1145
|
+
end
|
|
1146
|
+
|
|
1147
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1148
|
+
|
|
1149
|
+
result
|
|
1150
|
+
end
|
|
1151
|
+
|
|
1152
|
+
promise.execute
|
|
1153
|
+
end
|
|
1154
|
+
|
|
1155
|
+
#
|
|
1156
|
+
# Resumes operation of the specified Analysis Services server instance.
|
|
1157
|
+
#
|
|
1158
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
1159
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
1160
|
+
# character in length, and no more than 90.
|
|
1161
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
1162
|
+
# be at least 3 characters in length, and no more than 63.
|
|
1163
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1164
|
+
# will be added to the HTTP request.
|
|
1165
|
+
#
|
|
1166
|
+
#
|
|
1167
|
+
def begin_resume(resource_group_name, server_name, custom_headers = nil)
|
|
1168
|
+
response = begin_resume_async(resource_group_name, server_name, custom_headers).value!
|
|
1169
|
+
nil
|
|
1170
|
+
end
|
|
1171
|
+
|
|
1172
|
+
#
|
|
1173
|
+
# Resumes operation of the specified Analysis Services server instance.
|
|
1174
|
+
#
|
|
1175
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
1176
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
1177
|
+
# character in length, and no more than 90.
|
|
1178
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
1179
|
+
# be at least 3 characters in length, and no more than 63.
|
|
1180
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
1181
|
+
# will be added to the HTTP request.
|
|
1182
|
+
#
|
|
1183
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
1184
|
+
#
|
|
1185
|
+
def begin_resume_with_http_info(resource_group_name, server_name, custom_headers = nil)
|
|
1186
|
+
begin_resume_async(resource_group_name, server_name, custom_headers).value!
|
|
1187
|
+
end
|
|
1188
|
+
|
|
1189
|
+
#
|
|
1190
|
+
# Resumes operation of the specified Analysis Services server instance.
|
|
1191
|
+
#
|
|
1192
|
+
# @param resource_group_name [String] The name of the Azure Resource group of
|
|
1193
|
+
# which a given Analysis Services server is part. This name must be at least 1
|
|
1194
|
+
# character in length, and no more than 90.
|
|
1195
|
+
# @param server_name [String] The name of the Analysis Services server. It must
|
|
1196
|
+
# be at least 3 characters in length, and no more than 63.
|
|
1197
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
1198
|
+
# to the HTTP request.
|
|
1199
|
+
#
|
|
1200
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
1201
|
+
#
|
|
1202
|
+
def begin_resume_async(resource_group_name, server_name, custom_headers = nil)
|
|
1203
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
1204
|
+
fail ArgumentError, 'server_name is nil' if server_name.nil?
|
|
1205
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
|
1206
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
request_headers = {}
|
|
1210
|
+
|
|
1211
|
+
# Set Headers
|
|
1212
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
1213
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
1214
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/resume'
|
|
1215
|
+
|
|
1216
|
+
request_url = @base_url || @client.base_url
|
|
1217
|
+
|
|
1218
|
+
options = {
|
|
1219
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
1220
|
+
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'subscriptionId' => @client.subscription_id},
|
|
1221
|
+
query_params: {'api-version' => @client.api_version},
|
|
1222
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
1223
|
+
base_url: request_url
|
|
1224
|
+
}
|
|
1225
|
+
promise = @client.make_request_async(:post, path_template, options)
|
|
1226
|
+
|
|
1227
|
+
promise = promise.then do |result|
|
|
1228
|
+
http_response = result.response
|
|
1229
|
+
status_code = http_response.status
|
|
1230
|
+
response_content = http_response.body
|
|
1231
|
+
unless status_code == 200 || status_code == 202
|
|
1232
|
+
error_model = JSON.load(response_content)
|
|
1233
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
1234
|
+
end
|
|
1235
|
+
|
|
1236
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
1237
|
+
|
|
1238
|
+
result
|
|
1239
|
+
end
|
|
1240
|
+
|
|
1241
|
+
promise.execute
|
|
1242
|
+
end
|
|
1243
|
+
|
|
1244
|
+
end
|
|
1245
|
+
end
|