azure_mgmt_analysis_services 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_analysis_services.rb +6 -5
- data/lib/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb +1 -1
- data/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb +8 -8
- data/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb +8 -8
- data/lib/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb +2 -1
- data/lib/generated/azure_mgmt_analysis_services/models/provisioning_state.rb +1 -1
- data/lib/generated/azure_mgmt_analysis_services/models/resource.rb +2 -1
- data/lib/generated/azure_mgmt_analysis_services/models/resource_sku.rb +4 -6
- data/lib/generated/azure_mgmt_analysis_services/models/server_administrators.rb +2 -1
- data/lib/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb +46 -0
- data/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb +54 -0
- data/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb +54 -0
- data/lib/generated/azure_mgmt_analysis_services/models/sku_tier.rb +2 -1
- data/lib/generated/azure_mgmt_analysis_services/models/state.rb +1 -1
- data/lib/generated/azure_mgmt_analysis_services/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_analysis_services/servers.rb +343 -99
- data/lib/generated/azure_mgmt_analysis_services/version.rb +2 -2
- metadata +7 -6
- data/lib/generated/azure_mgmt_analysis_services/models/backup_configuration.rb +0 -66
- data/lib/generated/azure_mgmt_analysis_services/models/sku_name.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b731de0a7e76dd6032236ce48dd46ebf539dd70c
|
4
|
+
data.tar.gz: aebaf6896b931d5c2a4c3aa55ef295ef26720cb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8e20471e4170a1a18da5e378e05b43ca8917a3375149c115219983502bdbb550d8f75322b572e2480de6dc83f8e02f071bec4ef3a43039a0c0e9524ae063642
|
7
|
+
data.tar.gz: e8b554b9dc36384f92dd5019ecc343eacb40e3b364fc7bea988d9dd05a33b60d1f53a42dbd7bd03cba27c46ff8991d9f3013d07286d17273dea8d9df4381eab1
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -24,14 +24,15 @@ module Azure::ARM::AnalysisServices
|
|
24
24
|
autoload :AnalysisServicesManagementClient, 'generated/azure_mgmt_analysis_services/analysis_services_management_client.rb'
|
25
25
|
|
26
26
|
module Models
|
27
|
-
autoload :AnalysisServicesServers, 'generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb'
|
28
27
|
autoload :ServerAdministrators, 'generated/azure_mgmt_analysis_services/models/server_administrators.rb'
|
28
|
+
autoload :AnalysisServicesServerUpdateParameters, 'generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb'
|
29
29
|
autoload :Resource, 'generated/azure_mgmt_analysis_services/models/resource.rb'
|
30
|
-
autoload :
|
30
|
+
autoload :SkuEnumerationForNewResourceResult, 'generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb'
|
31
|
+
autoload :AnalysisServicesServers, 'generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb'
|
32
|
+
autoload :SkuDetailsForExistingResource, 'generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb'
|
31
33
|
autoload :ResourceSku, 'generated/azure_mgmt_analysis_services/models/resource_sku.rb'
|
32
|
-
autoload :
|
34
|
+
autoload :SkuEnumerationForExistingResourceResult, 'generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb'
|
33
35
|
autoload :AnalysisServicesServer, 'generated/azure_mgmt_analysis_services/models/analysis_services_server.rb'
|
34
|
-
autoload :SkuName, 'generated/azure_mgmt_analysis_services/models/sku_name.rb'
|
35
36
|
autoload :SkuTier, 'generated/azure_mgmt_analysis_services/models/sku_tier.rb'
|
36
37
|
autoload :State, 'generated/azure_mgmt_analysis_services/models/state.rb'
|
37
38
|
autoload :ProvisioningState, 'generated/azure_mgmt_analysis_services/models/provisioning_state.rb'
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,11 +12,12 @@ module Azure::ARM::AnalysisServices
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [ServerAdministrators] A collection of AS server administrators
|
16
17
|
attr_accessor :as_administrators
|
17
18
|
|
18
|
-
# @return [
|
19
|
-
attr_accessor :
|
19
|
+
# @return [String] The container URI of backup blob.
|
20
|
+
attr_accessor :backup_blob_container_uri
|
20
21
|
|
21
22
|
# @return [State] The current state of Analysis Services resource. The
|
22
23
|
# state is to indicate more states outside of resource provisioning.
|
@@ -109,12 +110,11 @@ module Azure::ARM::AnalysisServices
|
|
109
110
|
class_name: 'ServerAdministrators'
|
110
111
|
}
|
111
112
|
},
|
112
|
-
|
113
|
+
backup_blob_container_uri: {
|
113
114
|
required: false,
|
114
|
-
serialized_name: 'properties.
|
115
|
+
serialized_name: 'properties.backupBlobContainerUri',
|
115
116
|
type: {
|
116
|
-
name: '
|
117
|
-
class_name: 'BackupConfiguration'
|
117
|
+
name: 'String'
|
118
118
|
}
|
119
119
|
},
|
120
120
|
state: {
|
data/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::AnalysisServices
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [ResourceSku] The SKU of the Analysis Services resource.
|
16
17
|
attr_accessor :sku
|
17
18
|
|
@@ -19,11 +20,11 @@ module Azure::ARM::AnalysisServices
|
|
19
20
|
# provisioning properties.
|
20
21
|
attr_accessor :tags
|
21
22
|
|
22
|
-
# @return [ServerAdministrators]
|
23
|
+
# @return [ServerAdministrators] A collection of AS server administrators
|
23
24
|
attr_accessor :as_administrators
|
24
25
|
|
25
|
-
# @return [
|
26
|
-
attr_accessor :
|
26
|
+
# @return [String] The container URI of backup blob.
|
27
|
+
attr_accessor :backup_blob_container_uri
|
27
28
|
|
28
29
|
|
29
30
|
#
|
@@ -68,12 +69,11 @@ module Azure::ARM::AnalysisServices
|
|
68
69
|
class_name: 'ServerAdministrators'
|
69
70
|
}
|
70
71
|
},
|
71
|
-
|
72
|
+
backup_blob_container_uri: {
|
72
73
|
required: false,
|
73
|
-
serialized_name: 'properties.
|
74
|
+
serialized_name: 'properties.backupBlobContainerUri',
|
74
75
|
type: {
|
75
|
-
name: '
|
76
|
-
class_name: 'BackupConfiguration'
|
76
|
+
name: 'String'
|
77
77
|
}
|
78
78
|
}
|
79
79
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::AnalysisServices
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<AnalysisServicesServer>] An array of Analysis Services
|
16
17
|
# resources.
|
17
18
|
attr_accessor :value
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::AnalysisServices
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [ResourceSku] The SKU of the Analysis Services resource.
|
16
17
|
attr_accessor :sku
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -13,14 +13,12 @@ module Azure::ARM::AnalysisServices
|
|
13
13
|
|
14
14
|
include MsRestAzure
|
15
15
|
|
16
|
-
|
17
|
-
#
|
18
|
-
# values include: 'S1', 'S2', 'S4', 'D1'
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [String] Name of the SKU level.
|
19
18
|
attr_accessor :name
|
20
19
|
|
21
20
|
# @return [SkuTier] The name of the Azure pricing tier to which the SKU
|
22
|
-
# applies. Possible values
|
23
|
-
# values include: 'Development', 'Standard'
|
21
|
+
# applies. Possible values include: 'Development', 'Basic', 'Standard'
|
24
22
|
attr_accessor :tier
|
25
23
|
|
26
24
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -12,6 +12,7 @@ module Azure::ARM::AnalysisServices
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<String>] An array of administrator user identities.
|
16
17
|
attr_accessor :members
|
17
18
|
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::AnalysisServices
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An object that represents SKU details for existing resources
|
10
|
+
#
|
11
|
+
class SkuDetailsForExistingResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [ResourceSku] The SKU in SKU details for existing resources.
|
17
|
+
attr_accessor :sku
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for SkuDetailsForExistingResource class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'SkuDetailsForExistingResource',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'SkuDetailsForExistingResource',
|
31
|
+
model_properties: {
|
32
|
+
sku: {
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'sku',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'ResourceSku'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::AnalysisServices
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An object that represents enumerating SKUs for existing resources
|
10
|
+
#
|
11
|
+
class SkuEnumerationForExistingResourceResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<SkuDetailsForExistingResource>] The collection of
|
17
|
+
# available SKUs for existing resources
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
|
21
|
+
#
|
22
|
+
# Mapper for SkuEnumerationForExistingResourceResult class as Ruby Hash.
|
23
|
+
# This will be used for serialization/deserialization.
|
24
|
+
#
|
25
|
+
def self.mapper()
|
26
|
+
{
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'SkuEnumerationForExistingResourceResult',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'SkuEnumerationForExistingResourceResult',
|
32
|
+
model_properties: {
|
33
|
+
value: {
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'value',
|
36
|
+
type: {
|
37
|
+
name: 'Sequence',
|
38
|
+
element: {
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'SkuDetailsForExistingResourceElementType',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'SkuDetailsForExistingResource'
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
data/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::AnalysisServices
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An object that represents enumerating SKUs for new resources
|
10
|
+
#
|
11
|
+
class SkuEnumerationForNewResourceResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<ResourceSku>] The collection of available SKUs for new
|
17
|
+
# resources
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
|
21
|
+
#
|
22
|
+
# Mapper for SkuEnumerationForNewResourceResult class as Ruby Hash.
|
23
|
+
# This will be used for serialization/deserialization.
|
24
|
+
#
|
25
|
+
def self.mapper()
|
26
|
+
{
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'SkuEnumerationForNewResourceResult',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'SkuEnumerationForNewResourceResult',
|
32
|
+
model_properties: {
|
33
|
+
value: {
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'value',
|
36
|
+
type: {
|
37
|
+
name: 'Sequence',
|
38
|
+
element: {
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'ResourceSkuElementType',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'ResourceSku'
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -10,6 +10,7 @@ module Azure::ARM::AnalysisServices
|
|
10
10
|
#
|
11
11
|
module SkuTier
|
12
12
|
Development = "Development"
|
13
|
+
Basic = "Basic"
|
13
14
|
Standard = "Standard"
|
14
15
|
end
|
15
16
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
@@ -10,7 +10,6 @@ module Azure::ARM::AnalysisServices
|
|
10
10
|
# Services servers
|
11
11
|
#
|
12
12
|
class Servers
|
13
|
-
include Azure::ARM::AnalysisServices::Models
|
14
13
|
include MsRestAzure
|
15
14
|
|
16
15
|
#
|
@@ -84,7 +83,7 @@ module Azure::ARM::AnalysisServices
|
|
84
83
|
# Set Headers
|
85
84
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
86
85
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
87
|
-
path_template = '
|
86
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}'
|
88
87
|
|
89
88
|
request_url = @base_url || @client.base_url
|
90
89
|
|
@@ -111,8 +110,8 @@ module Azure::ARM::AnalysisServices
|
|
111
110
|
if status_code == 200
|
112
111
|
begin
|
113
112
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
114
|
-
result_mapper = AnalysisServicesServer.mapper()
|
115
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
113
|
+
result_mapper = Azure::ARM::AnalysisServices::Models::AnalysisServicesServer.mapper()
|
114
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
116
115
|
rescue Exception => e
|
117
116
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
118
117
|
end
|
@@ -166,8 +165,8 @@ module Azure::ARM::AnalysisServices
|
|
166
165
|
promise = promise.then do |response|
|
167
166
|
# Defining deserialization method.
|
168
167
|
deserialize_method = lambda do |parsed_response|
|
169
|
-
result_mapper = AnalysisServicesServer.mapper()
|
170
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response
|
168
|
+
result_mapper = Azure::ARM::AnalysisServices::Models::AnalysisServicesServer.mapper()
|
169
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
171
170
|
end
|
172
171
|
|
173
172
|
# Waiting for response.
|
@@ -241,8 +240,6 @@ module Azure::ARM::AnalysisServices
|
|
241
240
|
response.body unless response.nil?
|
242
241
|
end
|
243
242
|
|
244
|
-
#
|
245
|
-
# Updates the current state of the specified Analysis Services server.
|
246
243
|
#
|
247
244
|
# @param resource_group_name [String] The name of the Azure Resource group of
|
248
245
|
# which a given Analysis Services server is part. This name must be at least 1
|
@@ -254,87 +251,25 @@ module Azure::ARM::AnalysisServices
|
|
254
251
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
255
252
|
# will be added to the HTTP request.
|
256
253
|
#
|
257
|
-
# @return [
|
258
|
-
#
|
259
|
-
def update_with_http_info(resource_group_name, server_name, server_update_parameters, custom_headers = nil)
|
260
|
-
update_async(resource_group_name, server_name, server_update_parameters, custom_headers).value!
|
261
|
-
end
|
262
|
-
|
263
|
-
#
|
264
|
-
# Updates the current state of the specified Analysis Services server.
|
265
|
-
#
|
266
|
-
# @param resource_group_name [String] The name of the Azure Resource group of
|
267
|
-
# which a given Analysis Services server is part. This name must be at least 1
|
268
|
-
# character in length, and no more than 90.
|
269
|
-
# @param server_name [String] The name of the Analysis Services server. It must
|
270
|
-
# be at least 3 characters in length, and no more than 63.
|
271
|
-
# @param server_update_parameters [AnalysisServicesServerUpdateParameters]
|
272
|
-
# Request object that contains the updated information for the server.
|
273
|
-
# @param [Hash{String => String}] A hash of custom headers that will be added
|
274
|
-
# to the HTTP request.
|
275
|
-
#
|
276
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
254
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
255
|
+
# response.
|
277
256
|
#
|
278
257
|
def update_async(resource_group_name, server_name, server_update_parameters, custom_headers = nil)
|
279
|
-
|
280
|
-
|
281
|
-
fail ArgumentError, 'server_update_parameters is nil' if server_update_parameters.nil?
|
282
|
-
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
283
|
-
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
284
|
-
|
285
|
-
|
286
|
-
request_headers = {}
|
287
|
-
|
288
|
-
# Set Headers
|
289
|
-
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
290
|
-
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
291
|
-
|
292
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
293
|
-
|
294
|
-
# Serialize Request
|
295
|
-
request_mapper = AnalysisServicesServerUpdateParameters.mapper()
|
296
|
-
request_content = @client.serialize(request_mapper, server_update_parameters, 'server_update_parameters')
|
297
|
-
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
298
|
-
|
299
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}'
|
300
|
-
|
301
|
-
request_url = @base_url || @client.base_url
|
302
|
-
|
303
|
-
options = {
|
304
|
-
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
305
|
-
path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'subscriptionId' => @client.subscription_id},
|
306
|
-
query_params: {'api-version' => @client.api_version},
|
307
|
-
body: request_content,
|
308
|
-
headers: request_headers.merge(custom_headers || {}),
|
309
|
-
base_url: request_url
|
310
|
-
}
|
311
|
-
promise = @client.make_request_async(:patch, path_template, options)
|
312
|
-
|
313
|
-
promise = promise.then do |result|
|
314
|
-
http_response = result.response
|
315
|
-
status_code = http_response.status
|
316
|
-
response_content = http_response.body
|
317
|
-
unless status_code == 200
|
318
|
-
error_model = JSON.load(response_content)
|
319
|
-
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
320
|
-
end
|
258
|
+
# Send request
|
259
|
+
promise = begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers)
|
321
260
|
|
322
|
-
|
323
|
-
#
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
result_mapper = AnalysisServicesServer.mapper()
|
328
|
-
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
329
|
-
rescue Exception => e
|
330
|
-
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
331
|
-
end
|
261
|
+
promise = promise.then do |response|
|
262
|
+
# Defining deserialization method.
|
263
|
+
deserialize_method = lambda do |parsed_response|
|
264
|
+
result_mapper = Azure::ARM::AnalysisServices::Models::AnalysisServicesServer.mapper()
|
265
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
332
266
|
end
|
333
267
|
|
334
|
-
|
268
|
+
# Waiting for response.
|
269
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
335
270
|
end
|
336
271
|
|
337
|
-
promise
|
272
|
+
promise
|
338
273
|
end
|
339
274
|
|
340
275
|
#
|
@@ -478,7 +413,7 @@ module Azure::ARM::AnalysisServices
|
|
478
413
|
# Set Headers
|
479
414
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
480
415
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
481
|
-
path_template = '
|
416
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers'
|
482
417
|
|
483
418
|
request_url = @base_url || @client.base_url
|
484
419
|
|
@@ -505,8 +440,8 @@ module Azure::ARM::AnalysisServices
|
|
505
440
|
if status_code == 200
|
506
441
|
begin
|
507
442
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
508
|
-
result_mapper = AnalysisServicesServers.mapper()
|
509
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
443
|
+
result_mapper = Azure::ARM::AnalysisServices::Models::AnalysisServicesServers.mapper()
|
444
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
510
445
|
rescue Exception => e
|
511
446
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
512
447
|
end
|
@@ -561,7 +496,7 @@ module Azure::ARM::AnalysisServices
|
|
561
496
|
# Set Headers
|
562
497
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
563
498
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
564
|
-
path_template = '
|
499
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/servers'
|
565
500
|
|
566
501
|
request_url = @base_url || @client.base_url
|
567
502
|
|
@@ -588,8 +523,191 @@ module Azure::ARM::AnalysisServices
|
|
588
523
|
if status_code == 200
|
589
524
|
begin
|
590
525
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
591
|
-
result_mapper = AnalysisServicesServers.mapper()
|
592
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
526
|
+
result_mapper = Azure::ARM::AnalysisServices::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::ARM::AnalysisServices::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::ARM::AnalysisServices::Models::SkuEnumerationForExistingResourceResult.mapper()
|
710
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
593
711
|
rescue Exception => e
|
594
712
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
595
713
|
end
|
@@ -675,11 +793,11 @@ module Azure::ARM::AnalysisServices
|
|
675
793
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
676
794
|
|
677
795
|
# Serialize Request
|
678
|
-
request_mapper = AnalysisServicesServer.mapper()
|
679
|
-
request_content = @client.serialize(request_mapper, server_parameters
|
796
|
+
request_mapper = Azure::ARM::AnalysisServices::Models::AnalysisServicesServer.mapper()
|
797
|
+
request_content = @client.serialize(request_mapper, server_parameters)
|
680
798
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
681
799
|
|
682
|
-
path_template = '
|
800
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}'
|
683
801
|
|
684
802
|
request_url = @base_url || @client.base_url
|
685
803
|
|
@@ -707,8 +825,8 @@ module Azure::ARM::AnalysisServices
|
|
707
825
|
if status_code == 200
|
708
826
|
begin
|
709
827
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
710
|
-
result_mapper = AnalysisServicesServer.mapper()
|
711
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
828
|
+
result_mapper = Azure::ARM::AnalysisServices::Models::AnalysisServicesServer.mapper()
|
829
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
712
830
|
rescue Exception => e
|
713
831
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
714
832
|
end
|
@@ -717,8 +835,8 @@ module Azure::ARM::AnalysisServices
|
|
717
835
|
if status_code == 201
|
718
836
|
begin
|
719
837
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
720
|
-
result_mapper = AnalysisServicesServer.mapper()
|
721
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
838
|
+
result_mapper = Azure::ARM::AnalysisServices::Models::AnalysisServicesServer.mapper()
|
839
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
722
840
|
rescue Exception => e
|
723
841
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
724
842
|
end
|
@@ -789,7 +907,7 @@ module Azure::ARM::AnalysisServices
|
|
789
907
|
# Set Headers
|
790
908
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
791
909
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
792
|
-
path_template = '
|
910
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}'
|
793
911
|
|
794
912
|
request_url = @base_url || @client.base_url
|
795
913
|
|
@@ -819,6 +937,132 @@ module Azure::ARM::AnalysisServices
|
|
819
937
|
promise.execute
|
820
938
|
end
|
821
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::ARM::AnalysisServices::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::ARM::AnalysisServices::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::ARM::AnalysisServices::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
|
+
|
822
1066
|
#
|
823
1067
|
# Supends operation of the specified Analysis Services server instance.
|
824
1068
|
#
|
@@ -878,7 +1122,7 @@ module Azure::ARM::AnalysisServices
|
|
878
1122
|
# Set Headers
|
879
1123
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
880
1124
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
881
|
-
path_template = '
|
1125
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/suspend'
|
882
1126
|
|
883
1127
|
request_url = @base_url || @client.base_url
|
884
1128
|
|
@@ -967,7 +1211,7 @@ module Azure::ARM::AnalysisServices
|
|
967
1211
|
# Set Headers
|
968
1212
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
969
1213
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
970
|
-
path_template = '
|
1214
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/resume'
|
971
1215
|
|
972
1216
|
request_url = @base_url || @client.base_url
|
973
1217
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::AnalysisServices
|
7
|
-
VERSION = '0.
|
7
|
+
VERSION = '0.11.0'
|
8
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_analysis_services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.8.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.8.0
|
83
83
|
description: Microsoft Azure Analysis Services Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -93,12 +93,13 @@ files:
|
|
93
93
|
- lib/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb
|
94
94
|
- lib/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb
|
95
95
|
- lib/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb
|
96
|
-
- lib/generated/azure_mgmt_analysis_services/models/backup_configuration.rb
|
97
96
|
- lib/generated/azure_mgmt_analysis_services/models/provisioning_state.rb
|
98
97
|
- lib/generated/azure_mgmt_analysis_services/models/resource.rb
|
99
98
|
- lib/generated/azure_mgmt_analysis_services/models/resource_sku.rb
|
100
99
|
- lib/generated/azure_mgmt_analysis_services/models/server_administrators.rb
|
101
|
-
- lib/generated/azure_mgmt_analysis_services/models/
|
100
|
+
- lib/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb
|
101
|
+
- lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb
|
102
|
+
- lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb
|
102
103
|
- lib/generated/azure_mgmt_analysis_services/models/sku_tier.rb
|
103
104
|
- lib/generated/azure_mgmt_analysis_services/models/state.rb
|
104
105
|
- lib/generated/azure_mgmt_analysis_services/module_definition.rb
|
@@ -1,66 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::AnalysisServices
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# An object that represents backup configurations
|
10
|
-
#
|
11
|
-
class BackupConfiguration
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Storage account full resource id for backup
|
16
|
-
# configuration
|
17
|
-
attr_accessor :storage_account
|
18
|
-
|
19
|
-
# @return [String] The name of blob container for backup configuration
|
20
|
-
attr_accessor :blob_container
|
21
|
-
|
22
|
-
# @return [String] The access key of storage account used for backup
|
23
|
-
# configuration
|
24
|
-
attr_accessor :access_key
|
25
|
-
|
26
|
-
|
27
|
-
#
|
28
|
-
# Mapper for BackupConfiguration class as Ruby Hash.
|
29
|
-
# This will be used for serialization/deserialization.
|
30
|
-
#
|
31
|
-
def self.mapper()
|
32
|
-
{
|
33
|
-
required: false,
|
34
|
-
serialized_name: 'BackupConfiguration',
|
35
|
-
type: {
|
36
|
-
name: 'Composite',
|
37
|
-
class_name: 'BackupConfiguration',
|
38
|
-
model_properties: {
|
39
|
-
storage_account: {
|
40
|
-
required: true,
|
41
|
-
serialized_name: 'storageAccount',
|
42
|
-
type: {
|
43
|
-
name: 'String'
|
44
|
-
}
|
45
|
-
},
|
46
|
-
blob_container: {
|
47
|
-
required: true,
|
48
|
-
serialized_name: 'blobContainer',
|
49
|
-
type: {
|
50
|
-
name: 'String'
|
51
|
-
}
|
52
|
-
},
|
53
|
-
access_key: {
|
54
|
-
required: false,
|
55
|
-
serialized_name: 'accessKey',
|
56
|
-
type: {
|
57
|
-
name: 'String'
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
3
|
-
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
-
# regenerated.
|
5
|
-
|
6
|
-
module Azure::ARM::AnalysisServices
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Defines values for SkuName
|
10
|
-
#
|
11
|
-
module SkuName
|
12
|
-
S1 = "S1"
|
13
|
-
S2 = "S2"
|
14
|
-
S4 = "S4"
|
15
|
-
D1 = "D1"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|