Class: Azure::DataShare::Mgmt::V2019_11_01::ShareSubscriptions
- Inherits:
-
Object
- Object
- Azure::DataShare::Mgmt::V2019_11_01::ShareSubscriptions
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb
Overview
Creates a Microsoft.DataShare management client.
Instance Attribute Summary collapse
-
#client ⇒ DataShareManagementClient
readonly
Reference to the DataShareManagementClient.
Instance Method Summary collapse
-
#begin_cancel_synchronization(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers: nil) ⇒ ShareSubscriptionSynchronization
Request cancellation of a data share snapshot.
-
#begin_cancel_synchronization_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers: nil) ⇒ Concurrent::Promise
Request cancellation of a data share snapshot.
-
#begin_cancel_synchronization_with_http_info(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Request cancellation of a data share snapshot.
-
#begin_delete(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ OperationResponse
Delete shareSubscription in an account.
-
#begin_delete_async(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete shareSubscription in an account.
-
#begin_delete_with_http_info(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete shareSubscription in an account.
-
#begin_synchronize_method(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers: nil) ⇒ ShareSubscriptionSynchronization
Initiate an asynchronous data share job.
-
#begin_synchronize_method_async(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers: nil) ⇒ Concurrent::Promise
Initiate an asynchronous data share job.
-
#begin_synchronize_method_with_http_info(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Initiate an asynchronous data share job.
-
#cancel_synchronization(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers: nil) ⇒ ShareSubscriptionSynchronization
Request cancellation of a data share snapshot.
-
#cancel_synchronization_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers: nil) ⇒ Concurrent::Promise
Share Subscription Synchronization payload.
-
#create(resource_group_name, account_name, share_subscription_name, share_subscription, custom_headers: nil) ⇒ ShareSubscription
Create shareSubscription in an account.
-
#create_async(resource_group_name, account_name, share_subscription_name, share_subscription, custom_headers: nil) ⇒ Concurrent::Promise
Create shareSubscription in an account.
-
#create_with_http_info(resource_group_name, account_name, share_subscription_name, share_subscription, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create shareSubscription in an account.
-
#delete(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ OperationResponse
Delete shareSubscription in an account.
-
#delete_async(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
-
#get(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ ShareSubscription
Get shareSubscription in an account.
-
#get_async(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ Concurrent::Promise
Get shareSubscription in an account.
-
#get_with_http_info(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get shareSubscription in an account.
-
#initialize(client) ⇒ ShareSubscriptions
constructor
Creates and initializes a new instance of the ShareSubscriptions class.
-
#list_by_account(resource_group_name, account_name, skip_token: nil, custom_headers: nil) ⇒ Array<ShareSubscription>
List of available share subscriptions under an account.
-
#list_by_account_as_lazy(resource_group_name, account_name, skip_token: nil, custom_headers: nil) ⇒ ShareSubscriptionList
List of available share subscriptions under an account.
-
#list_by_account_async(resource_group_name, account_name, skip_token: nil, custom_headers: nil) ⇒ Concurrent::Promise
List of available share subscriptions under an account.
-
#list_by_account_next(next_page_link, custom_headers: nil) ⇒ ShareSubscriptionList
List of available share subscriptions under an account.
-
#list_by_account_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List of available share subscriptions under an account.
-
#list_by_account_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List of available share subscriptions under an account.
-
#list_by_account_with_http_info(resource_group_name, account_name, skip_token: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List of available share subscriptions under an account.
-
#list_source_share_synchronization_settings(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ Array<SourceShareSynchronizationSetting>
Get source share synchronization settings for a shareSubscription.
-
#list_source_share_synchronization_settings_as_lazy(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ SourceShareSynchronizationSettingList
Get source share synchronization settings for a shareSubscription.
-
#list_source_share_synchronization_settings_async(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get source share synchronization settings for a shareSubscription.
-
#list_source_share_synchronization_settings_next(next_page_link, custom_headers: nil) ⇒ SourceShareSynchronizationSettingList
Get source share synchronization settings for a shareSubscription.
-
#list_source_share_synchronization_settings_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get source share synchronization settings for a shareSubscription.
-
#list_source_share_synchronization_settings_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get source share synchronization settings for a shareSubscription.
-
#list_source_share_synchronization_settings_with_http_info(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get source share synchronization settings for a shareSubscription.
-
#list_synchronization_details(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token: nil, custom_headers: nil) ⇒ Array<SynchronizationDetails>
List data set level details for a share subscription synchronization.
-
#list_synchronization_details_as_lazy(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token: nil, custom_headers: nil) ⇒ SynchronizationDetailsList
List data set level details for a share subscription synchronization.
-
#list_synchronization_details_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token: nil, custom_headers: nil) ⇒ Concurrent::Promise
List data set level details for a share subscription synchronization.
-
#list_synchronization_details_next(next_page_link, custom_headers: nil) ⇒ SynchronizationDetailsList
List data set level details for a share subscription synchronization.
-
#list_synchronization_details_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List data set level details for a share subscription synchronization.
-
#list_synchronization_details_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List data set level details for a share subscription synchronization.
-
#list_synchronization_details_with_http_info(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List data set level details for a share subscription synchronization.
-
#list_synchronizations(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ Array<ShareSubscriptionSynchronization>
List Synchronizations in a share subscription.
-
#list_synchronizations_as_lazy(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ ShareSubscriptionSynchronizationList
List Synchronizations in a share subscription.
-
#list_synchronizations_async(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ Concurrent::Promise
List Synchronizations in a share subscription.
-
#list_synchronizations_next(next_page_link, custom_headers: nil) ⇒ ShareSubscriptionSynchronizationList
List Synchronizations in a share subscription.
-
#list_synchronizations_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List Synchronizations in a share subscription.
-
#list_synchronizations_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Synchronizations in a share subscription.
-
#list_synchronizations_with_http_info(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Synchronizations in a share subscription.
-
#synchronize_method(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers: nil) ⇒ ShareSubscriptionSynchronization
Initiate an asynchronous data share job.
-
#synchronize_method_async(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers: nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
Constructor Details
#initialize(client) ⇒ ShareSubscriptions
Creates and initializes a new instance of the ShareSubscriptions class.
17 18 19 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 17 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ DataShareManagementClient (readonly)
Returns reference to the DataShareManagementClient.
22 23 24 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 22 def client @client end |
Instance Method Details
#begin_cancel_synchronization(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers: nil) ⇒ ShareSubscriptionSynchronization
Request cancellation of a data share snapshot
Request to cancel a synchronization.
Share Subscription Synchronization payload. will be added to the HTTP request.
1082 1083 1084 1085 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1082 def begin_cancel_synchronization(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers:nil) response = begin_cancel_synchronization_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_cancel_synchronization_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers: nil) ⇒ Concurrent::Promise
Request cancellation of a data share snapshot
Request to cancel a synchronization.
Share Subscription Synchronization payload. to the HTTP request.
1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1121 def begin_cancel_synchronization_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'share_subscription_name is nil' if share_subscription_name.nil? fail ArgumentError, 'share_subscription_synchronization is nil' if share_subscription_synchronization.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscriptionSynchronization.mapper() request_content = @client.serialize(request_mapper, share_subscription_synchronization) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/cancelSynchronization' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'shareSubscriptionName' => share_subscription_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscriptionSynchronization.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 202 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscriptionSynchronization.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_cancel_synchronization_with_http_info(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Request cancellation of a data share snapshot
Request to cancel a synchronization.
Share Subscription Synchronization payload. will be added to the HTTP request.
1102 1103 1104 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1102 def begin_cancel_synchronization_with_http_info(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers:nil) begin_cancel_synchronization_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers:custom_headers).value! end |
#begin_delete(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ OperationResponse
Delete shareSubscription in an account.
Delete a shareSubscription in an account
will be added to the HTTP request.
851 852 853 854 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 851 def begin_delete(resource_group_name, account_name, share_subscription_name, custom_headers:nil) response = begin_delete_async(resource_group_name, account_name, share_subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_delete_async(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ Concurrent::Promise
Delete shareSubscription in an account.
Delete a shareSubscription in an account
to the HTTP request.
886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 886 def begin_delete_async(resource_group_name, account_name, share_subscription_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'share_subscription_name is nil' if share_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'shareSubscriptionName' => share_subscription_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:delete, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 || status_code == 204 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::OperationResponse.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_delete_with_http_info(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Delete shareSubscription in an account.
Delete a shareSubscription in an account
will be added to the HTTP request.
869 870 871 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 869 def begin_delete_with_http_info(resource_group_name, account_name, share_subscription_name, custom_headers:nil) begin_delete_async(resource_group_name, account_name, share_subscription_name, custom_headers:custom_headers).value! end |
#begin_synchronize_method(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers: nil) ⇒ ShareSubscriptionSynchronization
Initiate an asynchronous data share job
Initiate a copy
will be added to the HTTP request.
956 957 958 959 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 956 def begin_synchronize_method(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers:nil) response = begin_synchronize_method_async(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_synchronize_method_async(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers: nil) ⇒ Concurrent::Promise
Initiate an asynchronous data share job
Initiate a copy
to the HTTP request.
993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 993 def begin_synchronize_method_async(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'share_subscription_name is nil' if share_subscription_name.nil? fail ArgumentError, 'synchronize is nil' if synchronize.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::Synchronize.mapper() request_content = @client.serialize(request_mapper, synchronize) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/Synchronize' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'shareSubscriptionName' => share_subscription_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscriptionSynchronization.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 202 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscriptionSynchronization.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#begin_synchronize_method_with_http_info(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Initiate an asynchronous data share job
Initiate a copy
will be added to the HTTP request.
975 976 977 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 975 def begin_synchronize_method_with_http_info(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers:nil) begin_synchronize_method_async(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers:custom_headers).value! end |
#cancel_synchronization(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers: nil) ⇒ ShareSubscriptionSynchronization
Request cancellation of a data share snapshot
Request to cancel a synchronization.
Share Subscription Synchronization payload. will be added to the HTTP request.
803 804 805 806 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 803 def cancel_synchronization(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers:nil) response = cancel_synchronization_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers:custom_headers).value! response.body unless response.nil? end |
#cancel_synchronization_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers: nil) ⇒ Concurrent::Promise
Share Subscription Synchronization payload. will be added to the HTTP request.
response.
820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 820 def cancel_synchronization_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers:nil) # Send request promise = begin_cancel_synchronization_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscriptionSynchronization.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::AZURE_ASYNC_OPERATION) end promise end |
#create(resource_group_name, account_name, share_subscription_name, share_subscription, custom_headers: nil) ⇒ ShareSubscription
Create shareSubscription in an account.
Create a shareSubscription in an account
shareSubscription will be added to the HTTP request.
143 144 145 146 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 143 def create(resource_group_name, account_name, share_subscription_name, share_subscription, custom_headers:nil) response = create_async(resource_group_name, account_name, share_subscription_name, share_subscription, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_async(resource_group_name, account_name, share_subscription_name, share_subscription, custom_headers: nil) ⇒ Concurrent::Promise
Create shareSubscription in an account.
Create a shareSubscription in an account
shareSubscription to the HTTP request.
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 182 def create_async(resource_group_name, account_name, share_subscription_name, share_subscription, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'share_subscription_name is nil' if share_subscription_name.nil? fail ArgumentError, 'share_subscription is nil' if share_subscription.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscription.mapper() request_content = @client.serialize(request_mapper, share_subscription) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'shareSubscriptionName' => share_subscription_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:put, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 || status_code == 201 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscription.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end # Deserialize Response if status_code == 201 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscription.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#create_with_http_info(resource_group_name, account_name, share_subscription_name, share_subscription, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Create shareSubscription in an account.
Create a shareSubscription in an account
shareSubscription will be added to the HTTP request.
163 164 165 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 163 def create_with_http_info(resource_group_name, account_name, share_subscription_name, share_subscription, custom_headers:nil) create_async(resource_group_name, account_name, share_subscription_name, share_subscription, custom_headers:custom_headers).value! end |
#delete(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ OperationResponse
Delete shareSubscription in an account.
Delete a shareSubscription in an account
will be added to the HTTP request.
269 270 271 272 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 269 def delete(resource_group_name, account_name, share_subscription_name, custom_headers:nil) response = delete_async(resource_group_name, account_name, share_subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#delete_async(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
response.
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 284 def delete_async(resource_group_name, account_name, share_subscription_name, custom_headers:nil) # Send request promise = begin_delete_async(resource_group_name, account_name, share_subscription_name, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::OperationResponse.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method) end promise end |
#get(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ ShareSubscription
Get shareSubscription in an account.
Get a shareSubscription in an account
will be added to the HTTP request.
37 38 39 40 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 37 def get(resource_group_name, account_name, share_subscription_name, custom_headers:nil) response = get_async(resource_group_name, account_name, share_subscription_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_async(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ Concurrent::Promise
Get shareSubscription in an account.
Get a shareSubscription in an account
to the HTTP request.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 72 def get_async(resource_group_name, account_name, share_subscription_name, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'share_subscription_name is nil' if share_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'shareSubscriptionName' => share_subscription_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscription.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#get_with_http_info(resource_group_name, account_name, share_subscription_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get shareSubscription in an account.
Get a shareSubscription in an account
will be added to the HTTP request.
55 56 57 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 55 def get_with_http_info(resource_group_name, account_name, share_subscription_name, custom_headers:nil) get_async(resource_group_name, account_name, share_subscription_name, custom_headers:custom_headers).value! end |
#list_by_account(resource_group_name, account_name, skip_token: nil, custom_headers: nil) ⇒ Array<ShareSubscription>
List of available share subscriptions under an account.
List share subscriptions in an account
will be added to the HTTP request.
315 316 317 318 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 315 def list_by_account(resource_group_name, account_name, skip_token:nil, custom_headers:nil) first_page = list_by_account_as_lazy(resource_group_name, account_name, skip_token:skip_token, custom_headers:custom_headers) first_page.get_all_items end |
#list_by_account_as_lazy(resource_group_name, account_name, skip_token: nil, custom_headers: nil) ⇒ ShareSubscriptionList
List of available share subscriptions under an account.
List share subscriptions in an account
will be added to the HTTP request.
response.
1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1593 def list_by_account_as_lazy(resource_group_name, account_name, skip_token:nil, custom_headers:nil) response = list_by_account_async(resource_group_name, account_name, skip_token:skip_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_by_account_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_by_account_async(resource_group_name, account_name, skip_token: nil, custom_headers: nil) ⇒ Concurrent::Promise
List of available share subscriptions under an account.
List share subscriptions in an account
to the HTTP request.
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 350 def list_by_account_async(resource_group_name, account_name, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name}, query_params: {'api-version' => @client.api_version,'$skipToken' => skip_token}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscriptionList.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_account_next(next_page_link, custom_headers: nil) ⇒ ShareSubscriptionList
List of available share subscriptions under an account.
List share subscriptions in an account
to List operation. will be added to the HTTP request.
1207 1208 1209 1210 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1207 def list_by_account_next(next_page_link, custom_headers:nil) response = list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_by_account_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List of available share subscriptions under an account.
List share subscriptions in an account
to List operation. to the HTTP request.
1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1240 def list_by_account_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:get, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscriptionList.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_by_account_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List of available share subscriptions under an account.
List share subscriptions in an account
to List operation. will be added to the HTTP request.
1224 1225 1226 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1224 def list_by_account_next_with_http_info(next_page_link, custom_headers:nil) list_by_account_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_by_account_with_http_info(resource_group_name, account_name, skip_token: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List of available share subscriptions under an account.
List share subscriptions in an account
will be added to the HTTP request.
333 334 335 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 333 def list_by_account_with_http_info(resource_group_name, account_name, skip_token:nil, custom_headers:nil) list_by_account_async(resource_group_name, account_name, skip_token:skip_token, custom_headers:custom_headers).value! end |
#list_source_share_synchronization_settings(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ Array<SourceShareSynchronizationSetting>
Get source share synchronization settings for a shareSubscription.
Get synchronization settings set on a share
will be added to the HTTP request.
419 420 421 422 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 419 def list_source_share_synchronization_settings(resource_group_name, account_name, share_subscription_name, skip_token:nil, custom_headers:nil) first_page = list_source_share_synchronization_settings_as_lazy(resource_group_name, account_name, share_subscription_name, skip_token:skip_token, custom_headers:custom_headers) first_page.get_all_items end |
#list_source_share_synchronization_settings_as_lazy(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ SourceShareSynchronizationSettingList
Get source share synchronization settings for a shareSubscription.
Get synchronization settings set on a share
will be added to the HTTP request.
pages of the response.
1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1619 def list_source_share_synchronization_settings_as_lazy(resource_group_name, account_name, share_subscription_name, skip_token:nil, custom_headers:nil) response = list_source_share_synchronization_settings_async(resource_group_name, account_name, share_subscription_name, skip_token:skip_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_source_share_synchronization_settings_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_source_share_synchronization_settings_async(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ Concurrent::Promise
Get source share synchronization settings for a shareSubscription.
Get synchronization settings set on a share
to the HTTP request.
456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 456 def list_source_share_synchronization_settings_async(resource_group_name, account_name, share_subscription_name, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'share_subscription_name is nil' if share_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSourceShareSynchronizationSettings' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'shareSubscriptionName' => share_subscription_name}, query_params: {'api-version' => @client.api_version,'$skipToken' => skip_token}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::SourceShareSynchronizationSettingList.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_source_share_synchronization_settings_next(next_page_link, custom_headers: nil) ⇒ SourceShareSynchronizationSettingList
Get source share synchronization settings for a shareSubscription.
Get synchronization settings set on a share
to List operation. will be added to the HTTP request.
1303 1304 1305 1306 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1303 def list_source_share_synchronization_settings_next(next_page_link, custom_headers:nil) response = list_source_share_synchronization_settings_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_source_share_synchronization_settings_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Get source share synchronization settings for a shareSubscription.
Get synchronization settings set on a share
to List operation. to the HTTP request.
1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1336 def list_source_share_synchronization_settings_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::SourceShareSynchronizationSettingList.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_source_share_synchronization_settings_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get source share synchronization settings for a shareSubscription.
Get synchronization settings set on a share
to List operation. will be added to the HTTP request.
1320 1321 1322 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1320 def list_source_share_synchronization_settings_next_with_http_info(next_page_link, custom_headers:nil) list_source_share_synchronization_settings_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_source_share_synchronization_settings_with_http_info(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Get source share synchronization settings for a shareSubscription.
Get synchronization settings set on a share
will be added to the HTTP request.
438 439 440 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 438 def list_source_share_synchronization_settings_with_http_info(resource_group_name, account_name, share_subscription_name, skip_token:nil, custom_headers:nil) list_source_share_synchronization_settings_async(resource_group_name, account_name, share_subscription_name, skip_token:skip_token, custom_headers:custom_headers).value! end |
#list_synchronization_details(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token: nil, custom_headers: nil) ⇒ Array<SynchronizationDetails>
List data set level details for a share subscription synchronization
List synchronization details
Share Subscription Synchronization payload. will be added to the HTTP request.
635 636 637 638 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 635 def list_synchronization_details(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token:nil, custom_headers:nil) first_page = list_synchronization_details_as_lazy(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token:skip_token, custom_headers:custom_headers) first_page.get_all_items end |
#list_synchronization_details_as_lazy(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token: nil, custom_headers: nil) ⇒ SynchronizationDetailsList
List data set level details for a share subscription synchronization
List synchronization details
Share Subscription Synchronization payload. will be added to the HTTP request.
the response.
1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1673 def list_synchronization_details_as_lazy(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token:nil, custom_headers:nil) response = list_synchronization_details_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token:skip_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_synchronization_details_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_synchronization_details_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token: nil, custom_headers: nil) ⇒ Concurrent::Promise
List data set level details for a share subscription synchronization
List synchronization details
Share Subscription Synchronization payload. to the HTTP request.
676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 676 def list_synchronization_details_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'share_subscription_name is nil' if share_subscription_name.nil? fail ArgumentError, 'share_subscription_synchronization is nil' if share_subscription_synchronization.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? # Serialize Request request_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscriptionSynchronization.mapper() request_content = @client.serialize(request_mapper, share_subscription_synchronization) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSynchronizationDetails' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'shareSubscriptionName' => share_subscription_name}, query_params: {'api-version' => @client.api_version,'$skipToken' => skip_token}, body: request_content, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::SynchronizationDetailsList.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_synchronization_details_next(next_page_link, custom_headers: nil) ⇒ SynchronizationDetailsList
List data set level details for a share subscription synchronization
List synchronization details
to List operation. will be added to the HTTP request.
1495 1496 1497 1498 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1495 def list_synchronization_details_next(next_page_link, custom_headers:nil) response = list_synchronization_details_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_synchronization_details_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List data set level details for a share subscription synchronization
List synchronization details
to List operation. to the HTTP request.
1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1528 def list_synchronization_details_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::SynchronizationDetailsList.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_synchronization_details_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List data set level details for a share subscription synchronization
List synchronization details
to List operation. will be added to the HTTP request.
1512 1513 1514 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1512 def list_synchronization_details_next_with_http_info(next_page_link, custom_headers:nil) list_synchronization_details_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_synchronization_details_with_http_info(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List data set level details for a share subscription synchronization
List synchronization details
Share Subscription Synchronization payload. will be added to the HTTP request.
656 657 658 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 656 def list_synchronization_details_with_http_info(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token:nil, custom_headers:nil) list_synchronization_details_async(resource_group_name, account_name, share_subscription_name, share_subscription_synchronization, skip_token:skip_token, custom_headers:custom_headers).value! end |
#list_synchronizations(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ Array<ShareSubscriptionSynchronization>
List Synchronizations in a share subscription.
List synchronizations of a share subscription
will be added to the HTTP request.
526 527 528 529 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 526 def list_synchronizations(resource_group_name, account_name, share_subscription_name, skip_token:nil, custom_headers:nil) first_page = list_synchronizations_as_lazy(resource_group_name, account_name, share_subscription_name, skip_token:skip_token, custom_headers:custom_headers) first_page.get_all_items end |
#list_synchronizations_as_lazy(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ ShareSubscriptionSynchronizationList
List Synchronizations in a share subscription.
List synchronizations of a share subscription
will be added to the HTTP request.
pages of the response.
1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1645 def list_synchronizations_as_lazy(resource_group_name, account_name, share_subscription_name, skip_token:nil, custom_headers:nil) response = list_synchronizations_async(resource_group_name, account_name, share_subscription_name, skip_token:skip_token, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_synchronizations_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_synchronizations_async(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ Concurrent::Promise
List Synchronizations in a share subscription.
List synchronizations of a share subscription
to the HTTP request.
563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 563 def list_synchronizations_async(resource_group_name, account_name, share_subscription_name, skip_token:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'account_name is nil' if account_name.nil? fail ArgumentError, 'share_subscription_name is nil' if share_subscription_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSynchronizations' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'accountName' => account_name,'shareSubscriptionName' => share_subscription_name}, query_params: {'api-version' => @client.api_version,'$skipToken' => skip_token}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscriptionSynchronizationList.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_synchronizations_next(next_page_link, custom_headers: nil) ⇒ ShareSubscriptionSynchronizationList
List Synchronizations in a share subscription.
List synchronizations of a share subscription
to List operation. will be added to the HTTP request.
1399 1400 1401 1402 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1399 def list_synchronizations_next(next_page_link, custom_headers:nil) response = list_synchronizations_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_synchronizations_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
List Synchronizations in a share subscription.
List synchronizations of a share subscription
to List operation. to the HTTP request.
1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1432 def list_synchronizations_next_async(next_page_link, custom_headers:nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? path_template = '{nextLink}' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], skip_encoding_path_params: {'nextLink' => next_page_link}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } promise = @client.make_request_async(:post, path_template, ) promise = promise.then do |result| http_response = result.response status_code = http_response.status response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil? result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscriptionSynchronizationList.mapper() result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e., e.backtrace, result) end end result end promise.execute end |
#list_synchronizations_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Synchronizations in a share subscription.
List synchronizations of a share subscription
to List operation. will be added to the HTTP request.
1416 1417 1418 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 1416 def list_synchronizations_next_with_http_info(next_page_link, custom_headers:nil) list_synchronizations_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_synchronizations_with_http_info(resource_group_name, account_name, share_subscription_name, skip_token: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
List Synchronizations in a share subscription.
List synchronizations of a share subscription
will be added to the HTTP request.
545 546 547 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 545 def list_synchronizations_with_http_info(resource_group_name, account_name, share_subscription_name, skip_token:nil, custom_headers:nil) list_synchronizations_async(resource_group_name, account_name, share_subscription_name, skip_token:skip_token, custom_headers:custom_headers).value! end |
#synchronize_method(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers: nil) ⇒ ShareSubscriptionSynchronization
Initiate an asynchronous data share job
Initiate a copy
will be added to the HTTP request.
754 755 756 757 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 754 def synchronize_method(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers:nil) response = synchronize_method_async(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers:custom_headers).value! response.body unless response.nil? end |
#synchronize_method_async(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers: nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
response.
770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 |
# File 'lib/2019-11-01/generated/azure_mgmt_datashare/share_subscriptions.rb', line 770 def synchronize_method_async(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers:nil) # Send request promise = begin_synchronize_method_async(resource_group_name, account_name, share_subscription_name, synchronize, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::DataShare::Mgmt::V2019_11_01::Models::ShareSubscriptionSynchronization.mapper() parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @client.get_long_running_operation_result(response, deserialize_method, FinalStateVia::AZURE_ASYNC_OPERATION) end promise end |