azure_mgmt_powerbi_dedicated 0.17.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 +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated.rb +47 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/capacities.rb +1423 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/check_capacity_name_availability_parameters.rb +64 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/check_capacity_name_availability_result.rb +68 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/dedicated_capacities.rb +56 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/dedicated_capacity.rb +140 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/dedicated_capacity_administrators.rb +54 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/dedicated_capacity_update_parameters.rb +80 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/error_response.rb +57 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/operation.rb +59 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/operation_display.rb +72 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/operation_list_result.rb +103 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/provisioning_state.rb +26 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/resource.rb +124 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/resource_sku.rb +59 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/sku_details_for_existing_resource.rb +47 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/sku_enumeration_for_existing_resource_result.rb +56 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/sku_enumeration_for_new_resource_result.rb +56 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/sku_tier.rb +15 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/models/state.rb +26 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/module_definition.rb +9 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/operations.rb +221 -0
- data/lib/2017-10-01/generated/azure_mgmt_powerbi_dedicated/power_bidedicated_management_client.rb +136 -0
- data/lib/azure_mgmt_powerbi_dedicated.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/powerbidedicated_profile_module.rb +135 -0
- data/lib/profiles/latest/powerbidedicated_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/powerbidedicated_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +147 -0
@@ -0,0 +1,59 @@
|
|
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::PowerBiDedicated::Mgmt::V2017_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Represents the SKU name and Azure pricing tier for PowerBI Dedicated
|
10
|
+
# resource.
|
11
|
+
#
|
12
|
+
class ResourceSku
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Name of the SKU level.
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# @return [SkuTier] The name of the Azure pricing tier to which the SKU
|
20
|
+
# applies. Possible values include: 'PBIE_Azure'
|
21
|
+
attr_accessor :tier
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for ResourceSku class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'ResourceSku',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'ResourceSku',
|
36
|
+
model_properties: {
|
37
|
+
name: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: true,
|
40
|
+
serialized_name: 'name',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
tier: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'tier',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,47 @@
|
|
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::PowerBiDedicated::Mgmt::V2017_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An object that represents SKU details for existing resources
|
10
|
+
#
|
11
|
+
class SkuDetailsForExistingResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [ResourceSku] The SKU in SKU details for existing resources.
|
16
|
+
attr_accessor :sku
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for SkuDetailsForExistingResource class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'SkuDetailsForExistingResource',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'SkuDetailsForExistingResource',
|
31
|
+
model_properties: {
|
32
|
+
sku: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'sku',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'ResourceSku'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::PowerBiDedicated::Mgmt::V2017_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An object that represents enumerating SKUs for existing resources
|
10
|
+
#
|
11
|
+
class SkuEnumerationForExistingResourceResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<SkuDetailsForExistingResource>] The collection of
|
16
|
+
# available SKUs for existing resources
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for SkuEnumerationForExistingResourceResult class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'SkuEnumerationForExistingResourceResult',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'SkuEnumerationForExistingResourceResult',
|
32
|
+
model_properties: {
|
33
|
+
value: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'value',
|
37
|
+
type: {
|
38
|
+
name: 'Sequence',
|
39
|
+
element: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'SkuDetailsForExistingResourceElementType',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'SkuDetailsForExistingResource'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::PowerBiDedicated::Mgmt::V2017_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An object that represents enumerating SKUs for new resources
|
10
|
+
#
|
11
|
+
class SkuEnumerationForNewResourceResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<ResourceSku>] The collection of available SKUs for new
|
16
|
+
# resources
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for SkuEnumerationForNewResourceResult class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'SkuEnumerationForNewResourceResult',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'SkuEnumerationForNewResourceResult',
|
32
|
+
model_properties: {
|
33
|
+
value: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'value',
|
37
|
+
type: {
|
38
|
+
name: 'Sequence',
|
39
|
+
element: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'ResourceSkuElementType',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'ResourceSku'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::PowerBiDedicated::Mgmt::V2017_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for SkuTier
|
10
|
+
#
|
11
|
+
module SkuTier
|
12
|
+
PBIEAzure = "PBIE_Azure"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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::PowerBiDedicated::Mgmt::V2017_10_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for State
|
10
|
+
#
|
11
|
+
module State
|
12
|
+
Deleting = "Deleting"
|
13
|
+
Succeeded = "Succeeded"
|
14
|
+
Failed = "Failed"
|
15
|
+
Paused = "Paused"
|
16
|
+
Suspended = "Suspended"
|
17
|
+
Provisioning = "Provisioning"
|
18
|
+
Updating = "Updating"
|
19
|
+
Suspending = "Suspending"
|
20
|
+
Pausing = "Pausing"
|
21
|
+
Resuming = "Resuming"
|
22
|
+
Preparing = "Preparing"
|
23
|
+
Scaling = "Scaling"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure end
|
7
|
+
module Azure::PowerBiDedicated end
|
8
|
+
module Azure::PowerBiDedicated::Mgmt end
|
9
|
+
module Azure::PowerBiDedicated::Mgmt::V2017_10_01 end
|
@@ -0,0 +1,221 @@
|
|
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::PowerBiDedicated::Mgmt::V2017_10_01
|
7
|
+
#
|
8
|
+
# PowerBI Dedicated Web API provides a RESTful set of web services that
|
9
|
+
# enables users to create, retrieve, update, and delete Power BI dedicated
|
10
|
+
# capacities
|
11
|
+
#
|
12
|
+
class Operations
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
#
|
16
|
+
# Creates and initializes a new instance of the Operations class.
|
17
|
+
# @param client service class for accessing basic functionality.
|
18
|
+
#
|
19
|
+
def initialize(client)
|
20
|
+
@client = client
|
21
|
+
end
|
22
|
+
|
23
|
+
# @return [PowerBIDedicatedManagementClient] reference to the PowerBIDedicatedManagementClient
|
24
|
+
attr_reader :client
|
25
|
+
|
26
|
+
#
|
27
|
+
# Lists all of the available PowerBIDedicated REST API operations.
|
28
|
+
#
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
# @return [Array<Operation>] operation results.
|
33
|
+
#
|
34
|
+
def list(custom_headers:nil)
|
35
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
36
|
+
first_page.get_all_items
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Lists all of the available PowerBIDedicated REST API operations.
|
41
|
+
#
|
42
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
43
|
+
# will be added to the HTTP request.
|
44
|
+
#
|
45
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
46
|
+
#
|
47
|
+
def list_with_http_info(custom_headers:nil)
|
48
|
+
list_async(custom_headers:custom_headers).value!
|
49
|
+
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# Lists all of the available PowerBIDedicated REST API operations.
|
53
|
+
#
|
54
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
55
|
+
# to the HTTP request.
|
56
|
+
#
|
57
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
58
|
+
#
|
59
|
+
def list_async(custom_headers:nil)
|
60
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
61
|
+
|
62
|
+
|
63
|
+
request_headers = {}
|
64
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
65
|
+
|
66
|
+
# Set Headers
|
67
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
68
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
69
|
+
path_template = 'providers/Microsoft.PowerBIDedicated/operations'
|
70
|
+
|
71
|
+
request_url = @base_url || @client.base_url
|
72
|
+
|
73
|
+
options = {
|
74
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
75
|
+
query_params: {'api-version' => @client.api_version},
|
76
|
+
headers: request_headers.merge(custom_headers || {}),
|
77
|
+
base_url: request_url
|
78
|
+
}
|
79
|
+
promise = @client.make_request_async(:get, path_template, options)
|
80
|
+
|
81
|
+
promise = promise.then do |result|
|
82
|
+
http_response = result.response
|
83
|
+
status_code = http_response.status
|
84
|
+
response_content = http_response.body
|
85
|
+
unless status_code == 200
|
86
|
+
error_model = JSON.load(response_content)
|
87
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
88
|
+
end
|
89
|
+
|
90
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
91
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
92
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
93
|
+
# Deserialize Response
|
94
|
+
if status_code == 200
|
95
|
+
begin
|
96
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
97
|
+
result_mapper = Azure::PowerBiDedicated::Mgmt::V2017_10_01::Models::OperationListResult.mapper()
|
98
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
99
|
+
rescue Exception => e
|
100
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
result
|
105
|
+
end
|
106
|
+
|
107
|
+
promise.execute
|
108
|
+
end
|
109
|
+
|
110
|
+
#
|
111
|
+
# Lists all of the available PowerBIDedicated REST API operations.
|
112
|
+
#
|
113
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
114
|
+
# to List operation.
|
115
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
116
|
+
# will be added to the HTTP request.
|
117
|
+
#
|
118
|
+
# @return [OperationListResult] operation results.
|
119
|
+
#
|
120
|
+
def list_next(next_page_link, custom_headers:nil)
|
121
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
122
|
+
response.body unless response.nil?
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Lists all of the available PowerBIDedicated REST API operations.
|
127
|
+
#
|
128
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
129
|
+
# to List operation.
|
130
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
131
|
+
# will be added to the HTTP request.
|
132
|
+
#
|
133
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
134
|
+
#
|
135
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
136
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
137
|
+
end
|
138
|
+
|
139
|
+
#
|
140
|
+
# Lists all of the available PowerBIDedicated REST API operations.
|
141
|
+
#
|
142
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
143
|
+
# to List operation.
|
144
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
145
|
+
# to the HTTP request.
|
146
|
+
#
|
147
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
148
|
+
#
|
149
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
150
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
151
|
+
|
152
|
+
|
153
|
+
request_headers = {}
|
154
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
155
|
+
|
156
|
+
# Set Headers
|
157
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
158
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
159
|
+
path_template = '{nextLink}'
|
160
|
+
|
161
|
+
request_url = @base_url || @client.base_url
|
162
|
+
|
163
|
+
options = {
|
164
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
165
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
166
|
+
headers: request_headers.merge(custom_headers || {}),
|
167
|
+
base_url: request_url
|
168
|
+
}
|
169
|
+
promise = @client.make_request_async(:get, path_template, options)
|
170
|
+
|
171
|
+
promise = promise.then do |result|
|
172
|
+
http_response = result.response
|
173
|
+
status_code = http_response.status
|
174
|
+
response_content = http_response.body
|
175
|
+
unless status_code == 200
|
176
|
+
error_model = JSON.load(response_content)
|
177
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
178
|
+
end
|
179
|
+
|
180
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
181
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
182
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
183
|
+
# Deserialize Response
|
184
|
+
if status_code == 200
|
185
|
+
begin
|
186
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
187
|
+
result_mapper = Azure::PowerBiDedicated::Mgmt::V2017_10_01::Models::OperationListResult.mapper()
|
188
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
189
|
+
rescue Exception => e
|
190
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
result
|
195
|
+
end
|
196
|
+
|
197
|
+
promise.execute
|
198
|
+
end
|
199
|
+
|
200
|
+
#
|
201
|
+
# Lists all of the available PowerBIDedicated REST API operations.
|
202
|
+
#
|
203
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
204
|
+
# will be added to the HTTP request.
|
205
|
+
#
|
206
|
+
# @return [OperationListResult] which provide lazy access to pages of the
|
207
|
+
# response.
|
208
|
+
#
|
209
|
+
def list_as_lazy(custom_headers:nil)
|
210
|
+
response = list_async(custom_headers:custom_headers).value!
|
211
|
+
unless response.nil?
|
212
|
+
page = response.body
|
213
|
+
page.next_method = Proc.new do |next_page_link|
|
214
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
215
|
+
end
|
216
|
+
page
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
end
|
221
|
+
end
|