azure_mgmt_machine_learning 0.15.2 → 0.17.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2bbee39fcaec4d4512aa4318987284d2a30dd500
4
- data.tar.gz: 8b5920f48401900669121a201c707a9b6e05a880
2
+ SHA256:
3
+ metadata.gz: d85a0f1c12d8037db6d71df3fed5b4d22746fe8f4dc55508a0099c2a16164e2f
4
+ data.tar.gz: 62f6a7cc4c5eea05e3191450875f5fd40f8ef3f03b3b578d83e0849a07216c12
5
5
  SHA512:
6
- metadata.gz: ed476b4c0fb30d09236f46cd052f292156ff58b7366803f8c71901182293e566aa549efd5213d77200192b8d0d15f78ad990c3c72a5d4c9cdb8ddefcfd54dd94
7
- data.tar.gz: e301b3781acfb7a1c29b8d3e0d3d30057518572dcf0c6c61515c09026540a898a981300815da41f5cb39b6415f6caa13e1f65363125e1d5173e2b1f53500f84a
6
+ metadata.gz: ac52fed9e04fcb4a6addea6c9602ab6993a7aa0b3b9ba8800e3a1c3b78b7a5ba4a23e67bf1b3ec2cb92a4a0b4f6e962ba530bac4e1a0082ae78a967b99445776
7
+ data.tar.gz: 4f70f3cc47d62b46d98318cb16df43aa44ff8a429972a93ff88e11e18f3c50a97678cde75d27475a67f1a4151c7205115c451863d144acaecd52fbdf331040fa
@@ -20,37 +20,41 @@ require '2017-01-01/generated/azure_mgmt_machine_learning/module_definition'
20
20
  require 'ms_rest_azure'
21
21
 
22
22
  module Azure::MachineLearning::Mgmt::V2017_01_01
23
+ autoload :Operations, '2017-01-01/generated/azure_mgmt_machine_learning/operations.rb'
23
24
  autoload :WebServices, '2017-01-01/generated/azure_mgmt_machine_learning/web_services.rb'
24
25
  autoload :AzureMLWebServicesManagementClient, '2017-01-01/generated/azure_mgmt_machine_learning/azure_mlweb_services_management_client.rb'
25
26
 
26
27
  module Models
27
- autoload :ModeValueInfo, '2017-01-01/generated/azure_mgmt_machine_learning/models/mode_value_info.rb'
28
- autoload :ModuleAssetParameter, '2017-01-01/generated/azure_mgmt_machine_learning/models/module_asset_parameter.rb'
29
- autoload :WebServiceKeys, '2017-01-01/generated/azure_mgmt_machine_learning/models/web_service_keys.rb'
30
28
  autoload :AssetItem, '2017-01-01/generated/azure_mgmt_machine_learning/models/asset_item.rb'
31
- autoload :DiagnosticsConfiguration, '2017-01-01/generated/azure_mgmt_machine_learning/models/diagnostics_configuration.rb'
29
+ autoload :Resource, '2017-01-01/generated/azure_mgmt_machine_learning/models/resource.rb'
32
30
  autoload :WebServiceParameter, '2017-01-01/generated/azure_mgmt_machine_learning/models/web_service_parameter.rb'
33
- autoload :MachineLearningWorkspace, '2017-01-01/generated/azure_mgmt_machine_learning/models/machine_learning_workspace.rb'
31
+ autoload :RealtimeConfiguration, '2017-01-01/generated/azure_mgmt_machine_learning/models/realtime_configuration.rb'
34
32
  autoload :WebServiceProperties, '2017-01-01/generated/azure_mgmt_machine_learning/models/web_service_properties.rb'
35
- autoload :ColumnSpecification, '2017-01-01/generated/azure_mgmt_machine_learning/models/column_specification.rb'
33
+ autoload :StorageAccount, '2017-01-01/generated/azure_mgmt_machine_learning/models/storage_account.rb'
34
+ autoload :MachineLearningWorkspace, '2017-01-01/generated/azure_mgmt_machine_learning/models/machine_learning_workspace.rb'
35
+ autoload :CommitmentPlan, '2017-01-01/generated/azure_mgmt_machine_learning/models/commitment_plan.rb'
36
36
  autoload :TableSpecification, '2017-01-01/generated/azure_mgmt_machine_learning/models/table_specification.rb'
37
- autoload :ServiceInputOutputSpecification, '2017-01-01/generated/azure_mgmt_machine_learning/models/service_input_output_specification.rb'
38
- autoload :BlobLocation, '2017-01-01/generated/azure_mgmt_machine_learning/models/blob_location.rb'
39
37
  autoload :GraphNode, '2017-01-01/generated/azure_mgmt_machine_learning/models/graph_node.rb'
40
- autoload :OutputPort, '2017-01-01/generated/azure_mgmt_machine_learning/models/output_port.rb'
38
+ autoload :ExampleRequest, '2017-01-01/generated/azure_mgmt_machine_learning/models/example_request.rb'
41
39
  autoload :GraphEdge, '2017-01-01/generated/azure_mgmt_machine_learning/models/graph_edge.rb'
42
- autoload :RealtimeConfiguration, '2017-01-01/generated/azure_mgmt_machine_learning/models/realtime_configuration.rb'
40
+ autoload :InputPort, '2017-01-01/generated/azure_mgmt_machine_learning/models/input_port.rb'
43
41
  autoload :GraphParameterLink, '2017-01-01/generated/azure_mgmt_machine_learning/models/graph_parameter_link.rb'
44
- autoload :CommitmentPlan, '2017-01-01/generated/azure_mgmt_machine_learning/models/commitment_plan.rb'
42
+ autoload :ModeValueInfo, '2017-01-01/generated/azure_mgmt_machine_learning/models/mode_value_info.rb'
45
43
  autoload :GraphParameter, '2017-01-01/generated/azure_mgmt_machine_learning/models/graph_parameter.rb'
46
- autoload :InputPort, '2017-01-01/generated/azure_mgmt_machine_learning/models/input_port.rb'
44
+ autoload :WebServiceKeys, '2017-01-01/generated/azure_mgmt_machine_learning/models/web_service_keys.rb'
47
45
  autoload :GraphPackage, '2017-01-01/generated/azure_mgmt_machine_learning/models/graph_package.rb'
48
- autoload :StorageAccount, '2017-01-01/generated/azure_mgmt_machine_learning/models/storage_account.rb'
49
- autoload :AsyncOperationStatus, '2017-01-01/generated/azure_mgmt_machine_learning/models/async_operation_status.rb'
50
- autoload :Resource, '2017-01-01/generated/azure_mgmt_machine_learning/models/resource.rb'
46
+ autoload :ColumnSpecification, '2017-01-01/generated/azure_mgmt_machine_learning/models/column_specification.rb'
47
+ autoload :OperationEntityListResult, '2017-01-01/generated/azure_mgmt_machine_learning/models/operation_entity_list_result.rb'
48
+ autoload :BlobLocation, '2017-01-01/generated/azure_mgmt_machine_learning/models/blob_location.rb'
51
49
  autoload :PaginatedWebServicesList, '2017-01-01/generated/azure_mgmt_machine_learning/models/paginated_web_services_list.rb'
52
- autoload :ExampleRequest, '2017-01-01/generated/azure_mgmt_machine_learning/models/example_request.rb'
50
+ autoload :ModuleAssetParameter, '2017-01-01/generated/azure_mgmt_machine_learning/models/module_asset_parameter.rb'
53
51
  autoload :AsyncOperationErrorInfo, '2017-01-01/generated/azure_mgmt_machine_learning/models/async_operation_error_info.rb'
52
+ autoload :ServiceInputOutputSpecification, '2017-01-01/generated/azure_mgmt_machine_learning/models/service_input_output_specification.rb'
53
+ autoload :AsyncOperationStatus, '2017-01-01/generated/azure_mgmt_machine_learning/models/async_operation_status.rb'
54
+ autoload :DiagnosticsConfiguration, '2017-01-01/generated/azure_mgmt_machine_learning/models/diagnostics_configuration.rb'
55
+ autoload :OperationDisplayInfo, '2017-01-01/generated/azure_mgmt_machine_learning/models/operation_display_info.rb'
56
+ autoload :OutputPort, '2017-01-01/generated/azure_mgmt_machine_learning/models/output_port.rb'
57
+ autoload :OperationEntity, '2017-01-01/generated/azure_mgmt_machine_learning/models/operation_entity.rb'
54
58
  autoload :WebService, '2017-01-01/generated/azure_mgmt_machine_learning/models/web_service.rb'
55
59
  autoload :WebServicePropertiesForGraph, '2017-01-01/generated/azure_mgmt_machine_learning/models/web_service_properties_for_graph.rb'
56
60
  autoload :ProvisioningState, '2017-01-01/generated/azure_mgmt_machine_learning/models/provisioning_state.rb'
@@ -24,17 +24,21 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
24
24
  # provider API to use.
25
25
  attr_reader :api_version
26
26
 
27
- # @return [String] Gets or sets the preferred language for the response.
27
+ # @return [String] The preferred language for the response.
28
28
  attr_accessor :accept_language
29
29
 
30
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
31
- # Running Operations. Default value is 30.
30
+ # @return [Integer] The retry timeout in seconds for Long Running
31
+ # Operations. Default value is 30.
32
32
  attr_accessor :long_running_operation_retry_timeout
33
33
 
34
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
35
- # is generated and included in each request. Default is true.
34
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
35
+ # generated. When set to true a unique x-ms-client-request-id value is
36
+ # generated and included in each request. Default is true.
36
37
  attr_accessor :generate_client_request_id
37
38
 
39
+ # @return [Operations] operations
40
+ attr_reader :operations
41
+
38
42
  # @return [WebServices] web_services
39
43
  attr_reader :web_services
40
44
 
@@ -51,6 +55,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
51
55
  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
52
56
  @credentials = credentials
53
57
 
58
+ @operations = Operations.new(self)
54
59
  @web_services = WebServices.new(self)
55
60
  @api_version = '2017-01-01'
56
61
  @accept_language = 'en-US'
@@ -105,6 +110,9 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
105
110
  fail ArgumentError, 'path is nil' if path.nil?
106
111
 
107
112
  request_url = options[:base_url] || @base_url
113
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
114
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
115
+ end
108
116
 
109
117
  request_headers = @request_headers
110
118
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -121,7 +129,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
121
129
  #
122
130
  def add_telemetry
123
131
  sdk_information = 'azure_mgmt_machine_learning'
124
- sdk_information = "#{sdk_information}/0.15.2"
132
+ sdk_information = "#{sdk_information}/0.17.3"
125
133
  add_user_agent_information(sdk_information)
126
134
  end
127
135
  end
@@ -42,6 +42,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
42
42
  code: {
43
43
  client_side_validation: true,
44
44
  required: false,
45
+ read_only: true,
45
46
  serialized_name: 'code',
46
47
  type: {
47
48
  name: 'String'
@@ -50,6 +51,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
50
51
  target: {
51
52
  client_side_validation: true,
52
53
  required: false,
54
+ read_only: true,
53
55
  serialized_name: 'target',
54
56
  type: {
55
57
  name: 'String'
@@ -58,6 +60,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
58
60
  message: {
59
61
  client_side_validation: true,
60
62
  required: false,
63
+ read_only: true,
61
64
  serialized_name: 'message',
62
65
  type: {
63
66
  name: 'String'
@@ -66,6 +69,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
66
69
  details: {
67
70
  client_side_validation: true,
68
71
  required: false,
72
+ read_only: true,
69
73
  serialized_name: 'details',
70
74
  type: {
71
75
  name: 'Sequence',
@@ -54,6 +54,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
54
54
  id: {
55
55
  client_side_validation: true,
56
56
  required: false,
57
+ read_only: true,
57
58
  serialized_name: 'id',
58
59
  type: {
59
60
  name: 'String'
@@ -62,6 +63,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
62
63
  name: {
63
64
  client_side_validation: true,
64
65
  required: false,
66
+ read_only: true,
65
67
  serialized_name: 'name',
66
68
  type: {
67
69
  name: 'String'
@@ -97,6 +99,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
97
99
  percent_complete: {
98
100
  client_side_validation: true,
99
101
  required: false,
102
+ read_only: true,
100
103
  serialized_name: 'percentComplete',
101
104
  type: {
102
105
  name: 'Double'
@@ -105,6 +108,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
105
108
  error_info: {
106
109
  client_side_validation: true,
107
110
  required: false,
111
+ read_only: true,
108
112
  serialized_name: 'errorInfo',
109
113
  type: {
110
114
  name: 'Composite',
@@ -0,0 +1,84 @@
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::MachineLearning::Mgmt::V2017_01_01
7
+ module Models
8
+ #
9
+ # The API operation info.
10
+ #
11
+ class OperationDisplayInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The description of the operation.
16
+ attr_accessor :description
17
+
18
+ # @return [String] The action that users can perform, based on their
19
+ # permission level.
20
+ attr_accessor :operation
21
+
22
+ # @return [String] The service provider.
23
+ attr_accessor :provider
24
+
25
+ # @return [String] The resource on which the operation is performed.
26
+ attr_accessor :resource
27
+
28
+
29
+ #
30
+ # Mapper for OperationDisplayInfo class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'OperationDisplayInfo',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'OperationDisplayInfo',
41
+ model_properties: {
42
+ description: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'description',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ operation: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'operation',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ provider: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'provider',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ resource: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'resource',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end
@@ -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::MachineLearning::Mgmt::V2017_01_01
7
+ module Models
8
+ #
9
+ # An API operation.
10
+ #
11
+ class OperationEntity
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Operation name: {provider}/{resource}/{operation}.
16
+ attr_accessor :name
17
+
18
+ # @return [OperationDisplayInfo] The API operation info.
19
+ attr_accessor :display
20
+
21
+
22
+ #
23
+ # Mapper for OperationEntity class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'OperationEntity',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'OperationEntity',
34
+ model_properties: {
35
+ name: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ read_only: true,
39
+ serialized_name: 'name',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ display: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'display',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'OperationDisplayInfo'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ 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::MachineLearning::Mgmt::V2017_01_01
7
+ module Models
8
+ #
9
+ # The list of REST API operations.
10
+ #
11
+ class OperationEntityListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<OperationEntity>] The list of operations.
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for OperationEntityListResult 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: 'OperationEntityListResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'OperationEntityListResult',
31
+ model_properties: {
32
+ value: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ read_only: true,
36
+ serialized_name: 'value',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'OperationEntityElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'OperationEntity'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -31,7 +31,7 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
31
31
  def get_all_items
32
32
  items = @value
33
33
  page = self
34
- while page.next_link != nil do
34
+ while page.next_link != nil && !page.next_link.strip.empty? do
35
35
  page = page.get_next_page
36
36
  items.concat(page.value)
37
37
  end
@@ -29,6 +29,15 @@ module Azure::MachineLearning::Mgmt::V2017_01_01
29
29
  attr_accessor :tags
30
30
 
31
31
 
32
+ # @return [String] the name of the resource group of the resource.
33
+ def resource_group
34
+ unless self.id.nil?
35
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
36
+ groups.captures[0].strip if groups
37
+ end
38
+ end
39
+
40
+
32
41
  #
33
42
  # Mapper for Resource class as Ruby Hash.
34
43
  # This will be used for serialization/deserialization.
@@ -0,0 +1,112 @@
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::MachineLearning::Mgmt::V2017_01_01
7
+ #
8
+ # These APIs allow end users to operate on Azure Machine Learning Web
9
+ # Services resources. They support the following operations:<ul><li>Create or
10
+ # update a web service</li><li>Get a web service</li><li>Patch a web
11
+ # service</li><li>Delete a web service</li><li>Get All Web Services in a
12
+ # Resource Group </li><li>Get All Web Services in a Subscription</li><li>Get
13
+ # Web Services Keys</li></ul>
14
+ #
15
+ class Operations
16
+ include MsRestAzure
17
+
18
+ #
19
+ # Creates and initializes a new instance of the Operations class.
20
+ # @param client service class for accessing basic functionality.
21
+ #
22
+ def initialize(client)
23
+ @client = client
24
+ end
25
+
26
+ # @return [AzureMLWebServicesManagementClient] reference to the AzureMLWebServicesManagementClient
27
+ attr_reader :client
28
+
29
+ #
30
+ # Lists all the available REST API operations.
31
+ #
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ # @return [OperationEntityListResult] operation results.
36
+ #
37
+ def list(custom_headers:nil)
38
+ response = list_async(custom_headers:custom_headers).value!
39
+ response.body unless response.nil?
40
+ end
41
+
42
+ #
43
+ # Lists all the available REST API operations.
44
+ #
45
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
46
+ # will be added to the HTTP request.
47
+ #
48
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
49
+ #
50
+ def list_with_http_info(custom_headers:nil)
51
+ list_async(custom_headers:custom_headers).value!
52
+ end
53
+
54
+ #
55
+ # Lists all the available REST API operations.
56
+ #
57
+ # @param [Hash{String => String}] A hash of custom headers that will be added
58
+ # to the HTTP request.
59
+ #
60
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
61
+ #
62
+ def list_async(custom_headers:nil)
63
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
64
+
65
+
66
+ request_headers = {}
67
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
68
+
69
+ # Set Headers
70
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
71
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
72
+ path_template = 'providers/Microsoft.MachineLearning/operations'
73
+
74
+ request_url = @base_url || @client.base_url
75
+
76
+ options = {
77
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
78
+ query_params: {'api-version' => @client.api_version},
79
+ headers: request_headers.merge(custom_headers || {}),
80
+ base_url: request_url
81
+ }
82
+ promise = @client.make_request_async(:get, path_template, options)
83
+
84
+ promise = promise.then do |result|
85
+ http_response = result.response
86
+ status_code = http_response.status
87
+ response_content = http_response.body
88
+ unless status_code == 200
89
+ error_model = JSON.load(response_content)
90
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
91
+ end
92
+
93
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
94
+ # Deserialize Response
95
+ if status_code == 200
96
+ begin
97
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
98
+ result_mapper = Azure::MachineLearning::Mgmt::V2017_01_01::Models::OperationEntityListResult.mapper()
99
+ result.body = @client.deserialize(result_mapper, parsed_response)
100
+ rescue Exception => e
101
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
102
+ end
103
+ end
104
+
105
+ result
106
+ end
107
+
108
+ promise.execute
109
+ end
110
+
111
+ end
112
+ end