Class: Azure::Logic::Mgmt::V2015_02_01_preview::Workflows
- Inherits:
-
Object
- Object
- Azure::Logic::Mgmt::V2015_02_01_preview::Workflows
- Includes:
- MsRestAzure
- Defined in:
- lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb
Overview
REST API for Azure Logic Apps.
Instance Attribute Summary collapse
-
#client ⇒ LogicManagementClient
readonly
Reference to the LogicManagementClient.
Instance Method Summary collapse
-
#begin_run(resource_group_name, workflow_name, parameters, custom_headers: nil) ⇒ WorkflowRun
Runs a workflow.
-
#begin_run_async(resource_group_name, workflow_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Runs a workflow.
-
#begin_run_with_http_info(resource_group_name, workflow_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Runs a workflow.
-
#create_or_update(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ Workflow
Creates or updates a workflow.
-
#create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ Concurrent::Promise
Creates or updates a workflow.
-
#create_or_update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates or updates a workflow.
-
#delete(resource_group_name, workflow_name, custom_headers: nil) ⇒ Object
Deletes a workflow.
-
#delete_async(resource_group_name, workflow_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a workflow.
-
#delete_with_http_info(resource_group_name, workflow_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a workflow.
-
#disable(resource_group_name, workflow_name, custom_headers: nil) ⇒ Object
Disables a workflow.
-
#disable_async(resource_group_name, workflow_name, custom_headers: nil) ⇒ Concurrent::Promise
Disables a workflow.
-
#disable_with_http_info(resource_group_name, workflow_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Disables a workflow.
-
#enable(resource_group_name, workflow_name, custom_headers: nil) ⇒ Object
Enables a workflow.
-
#enable_async(resource_group_name, workflow_name, custom_headers: nil) ⇒ Concurrent::Promise
Enables a workflow.
-
#enable_with_http_info(resource_group_name, workflow_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Enables a workflow.
-
#get(resource_group_name, workflow_name, custom_headers: nil) ⇒ Workflow
Gets a workflow.
-
#get_async(resource_group_name, workflow_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a workflow.
-
#get_with_http_info(resource_group_name, workflow_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a workflow.
-
#initialize(client) ⇒ Workflows
constructor
Creates and initializes a new instance of the Workflows class.
-
#list_by_resource_group(resource_group_name, top: nil, filter: nil, custom_headers: nil) ⇒ Array<Workflow>
Gets a list of workflows by resource group.
-
#list_by_resource_group_as_lazy(resource_group_name, top: nil, filter: nil, custom_headers: nil) ⇒ WorkflowListResult
Gets a list of workflows by resource group.
-
#list_by_resource_group_async(resource_group_name, top: nil, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of workflows by resource group.
-
#list_by_resource_group_next(next_page_link, custom_headers: nil) ⇒ WorkflowListResult
Gets a list of workflows by resource group.
-
#list_by_resource_group_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of workflows by resource group.
-
#list_by_resource_group_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of workflows by resource group.
-
#list_by_resource_group_with_http_info(resource_group_name, top: nil, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of workflows by resource group.
-
#list_by_subscription(top: nil, filter: nil, custom_headers: nil) ⇒ Array<Workflow>
Gets a list of workflows by subscription.
-
#list_by_subscription_as_lazy(top: nil, filter: nil, custom_headers: nil) ⇒ WorkflowListResult
Gets a list of workflows by subscription.
-
#list_by_subscription_async(top: nil, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of workflows by subscription.
-
#list_by_subscription_next(next_page_link, custom_headers: nil) ⇒ WorkflowListResult
Gets a list of workflows by subscription.
-
#list_by_subscription_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of workflows by subscription.
-
#list_by_subscription_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of workflows by subscription.
-
#list_by_subscription_with_http_info(top: nil, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of workflows by subscription.
-
#run(resource_group_name, workflow_name, parameters, custom_headers: nil) ⇒ WorkflowRun
Runs a workflow.
-
#run_async(resource_group_name, workflow_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
-
#update(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ Workflow
Updates a workflow.
-
#update_async(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ Concurrent::Promise
Updates a workflow.
-
#update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates a workflow.
-
#validate(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ Object
Validates a workflow.
-
#validate_async(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ Concurrent::Promise
Validates a workflow.
-
#validate_with_http_info(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Validates a workflow.
Constructor Details
#initialize(client) ⇒ Workflows
Creates and initializes a new instance of the Workflows class.
17 18 19 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 17 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ LogicManagementClient (readonly)
Returns reference to the LogicManagementClient.
22 23 24 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 22 def client @client end |
Instance Method Details
#begin_run(resource_group_name, workflow_name, parameters, custom_headers: nil) ⇒ WorkflowRun
Runs a workflow.
will be added to the HTTP request.
906 907 908 909 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 906 def begin_run(resource_group_name, workflow_name, parameters, custom_headers:nil) response = begin_run_async(resource_group_name, workflow_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#begin_run_async(resource_group_name, workflow_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
Runs a workflow.
to the HTTP request.
937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 937 def begin_run_async(resource_group_name, workflow_name, parameters, 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, 'workflow_name is nil' if workflow_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'parameters is nil' if parameters.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::Logic::Mgmt::V2015_02_01_preview::Models::RunWorkflowParameters.mapper() request_content = @client.serialize(request_mapper, parameters) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/run' 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,'workflowName' => workflow_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 == 202 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.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? # Deserialize Response if status_code == 202 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Logic::Mgmt::V2015_02_01_preview::Models::WorkflowRun.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_run_with_http_info(resource_group_name, workflow_name, parameters, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Runs a workflow.
will be added to the HTTP request.
922 923 924 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 922 def begin_run_with_http_info(resource_group_name, workflow_name, parameters, custom_headers:nil) begin_run_async(resource_group_name, workflow_name, parameters, custom_headers:custom_headers).value! end |
#create_or_update(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ Workflow
Creates or updates a workflow.
will be added to the HTTP request.
311 312 313 314 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 311 def create_or_update(resource_group_name, workflow_name, workflow, custom_headers:nil) response = create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! response.body unless response.nil? end |
#create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ Concurrent::Promise
Creates or updates a workflow.
to the HTTP request.
342 343 344 345 346 347 348 349 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 404 405 406 407 408 409 410 411 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 342 def create_or_update_async(resource_group_name, workflow_name, workflow, 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, 'workflow_name is nil' if workflow_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'workflow is nil' if workflow.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::Logic::Mgmt::V2015_02_01_preview::Models::Workflow.mapper() request_content = @client.serialize(request_mapper, workflow) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}' 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,'workflowName' => workflow_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 MsRestAzure::AzureOperationError.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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Logic::Mgmt::V2015_02_01_preview::Models::Workflow.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::Logic::Mgmt::V2015_02_01_preview::Models::Workflow.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_or_update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Creates or updates a workflow.
will be added to the HTTP request.
327 328 329 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 327 def create_or_update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers:nil) create_or_update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! end |
#delete(resource_group_name, workflow_name, custom_headers: nil) ⇒ Object
Deletes a workflow.
will be added to the HTTP request.
525 526 527 528 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 525 def delete(resource_group_name, workflow_name, custom_headers:nil) response = delete_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! nil end |
#delete_async(resource_group_name, workflow_name, custom_headers: nil) ⇒ Concurrent::Promise
Deletes a workflow.
to the HTTP request.
554 555 556 557 558 559 560 561 562 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 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 554 def delete_async(resource_group_name, workflow_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, 'workflow_name is nil' if workflow_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.Logic/workflows/{workflowName}' 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,'workflowName' => workflow_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 == 204 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.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 end promise.execute end |
#delete_with_http_info(resource_group_name, workflow_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Deletes a workflow.
will be added to the HTTP request.
540 541 542 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 540 def delete_with_http_info(resource_group_name, workflow_name, custom_headers:nil) delete_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end |
#disable(resource_group_name, workflow_name, custom_headers: nil) ⇒ Object
Disables a workflow.
will be added to the HTTP request.
650 651 652 653 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 650 def disable(resource_group_name, workflow_name, custom_headers:nil) response = disable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! nil end |
#disable_async(resource_group_name, workflow_name, custom_headers: nil) ⇒ Concurrent::Promise
Disables a workflow.
to the HTTP request.
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 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 679 def disable_async(resource_group_name, workflow_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, 'workflow_name is nil' if workflow_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.Logic/workflows/{workflowName}/disable' 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,'workflowName' => workflow_name}, query_params: {'api-version' => @client.api_version}, 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 MsRestAzure::AzureOperationError.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 end promise.execute end |
#disable_with_http_info(resource_group_name, workflow_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Disables a workflow.
will be added to the HTTP request.
665 666 667 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 665 def disable_with_http_info(resource_group_name, workflow_name, custom_headers:nil) disable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end |
#enable(resource_group_name, workflow_name, custom_headers: nil) ⇒ Object
Enables a workflow.
will be added to the HTTP request.
731 732 733 734 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 731 def enable(resource_group_name, workflow_name, custom_headers:nil) response = enable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! nil end |
#enable_async(resource_group_name, workflow_name, custom_headers: nil) ⇒ Concurrent::Promise
Enables a workflow.
to the HTTP request.
760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 760 def enable_async(resource_group_name, workflow_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, 'workflow_name is nil' if workflow_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.Logic/workflows/{workflowName}/enable' 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,'workflowName' => workflow_name}, query_params: {'api-version' => @client.api_version}, 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 MsRestAzure::AzureOperationError.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 end promise.execute end |
#enable_with_http_info(resource_group_name, workflow_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Enables a workflow.
will be added to the HTTP request.
746 747 748 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 746 def enable_with_http_info(resource_group_name, workflow_name, custom_headers:nil) enable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end |
#get(resource_group_name, workflow_name, custom_headers: nil) ⇒ Workflow
Gets a workflow.
will be added to the HTTP request.
218 219 220 221 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 218 def get(resource_group_name, workflow_name, custom_headers:nil) response = get_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! response.body unless response.nil? end |
#get_async(resource_group_name, workflow_name, custom_headers: nil) ⇒ Concurrent::Promise
Gets a workflow.
to the HTTP request.
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 247 def get_async(resource_group_name, workflow_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, 'workflow_name is nil' if workflow_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.Logic/workflows/{workflowName}' 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,'workflowName' => workflow_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 MsRestAzure::AzureOperationError.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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Logic::Mgmt::V2015_02_01_preview::Models::Workflow.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, workflow_name, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a workflow.
will be added to the HTTP request.
233 234 235 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 233 def get_with_http_info(resource_group_name, workflow_name, custom_headers:nil) get_async(resource_group_name, workflow_name, custom_headers:custom_headers).value! end |
#list_by_resource_group(resource_group_name, top: nil, filter: nil, custom_headers: nil) ⇒ Array<Workflow>
Gets a list of workflows by resource group.
will be added to the HTTP request.
125 126 127 128 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 125 def list_by_resource_group(resource_group_name, top:nil, filter:nil, custom_headers:nil) first_page = list_by_resource_group_as_lazy(resource_group_name, top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end |
#list_by_resource_group_as_lazy(resource_group_name, top: nil, filter: nil, custom_headers: nil) ⇒ WorkflowListResult
Gets a list of workflows by resource group.
will be added to the HTTP request.
response.
1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 1208 def list_by_resource_group_as_lazy(resource_group_name, top:nil, filter:nil, custom_headers:nil) response = list_by_resource_group_async(resource_group_name, top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_by_resource_group_async(resource_group_name, top: nil, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of workflows by resource group.
to the HTTP request.
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 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 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 156 def list_by_resource_group_async(resource_group_name, top:nil, filter: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, '@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.Logic/workflows' 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}, query_params: {'api-version' => @client.api_version,'$top' => top,'$filter' => filter}, 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 MsRestAzure::AzureOperationError.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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Logic::Mgmt::V2015_02_01_preview::Models::WorkflowListResult.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_resource_group_next(next_page_link, custom_headers: nil) ⇒ WorkflowListResult
Gets a list of workflows by resource group.
to List operation. will be added to the HTTP request.
1096 1097 1098 1099 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 1096 def list_by_resource_group_next(next_page_link, custom_headers:nil) response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_by_resource_group_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of workflows by resource group.
to List operation. to the HTTP request.
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 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 1125 def list_by_resource_group_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 MsRestAzure::AzureOperationError.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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Logic::Mgmt::V2015_02_01_preview::Models::WorkflowListResult.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_resource_group_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of workflows by resource group.
to List operation. will be added to the HTTP request.
1111 1112 1113 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 1111 def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_by_resource_group_with_http_info(resource_group_name, top: nil, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of workflows by resource group.
will be added to the HTTP request.
141 142 143 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 141 def list_by_resource_group_with_http_info(resource_group_name, top:nil, filter:nil, custom_headers:nil) list_by_resource_group_async(resource_group_name, top:top, filter:filter, custom_headers:custom_headers).value! end |
#list_by_subscription(top: nil, filter: nil, custom_headers: nil) ⇒ Array<Workflow>
Gets a list of workflows by subscription.
will be added to the HTTP request.
34 35 36 37 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 34 def list_by_subscription(top:nil, filter:nil, custom_headers:nil) first_page = list_by_subscription_as_lazy(top:top, filter:filter, custom_headers:custom_headers) first_page.get_all_items end |
#list_by_subscription_as_lazy(top: nil, filter: nil, custom_headers: nil) ⇒ WorkflowListResult
Gets a list of workflows by subscription.
will be added to the HTTP request.
response.
1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 1185 def list_by_subscription_as_lazy(top:nil, filter:nil, custom_headers:nil) response = list_by_subscription_async(top:top, filter:filter, custom_headers:custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| list_by_subscription_next_async(next_page_link, custom_headers:custom_headers) end page end end |
#list_by_subscription_async(top: nil, filter: nil, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of workflows by subscription.
to the HTTP request.
63 64 65 66 67 68 69 70 71 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 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 63 def list_by_subscription_async(top:nil, filter:nil, custom_headers:nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.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}/providers/Microsoft.Logic/workflows' request_url = @base_url || @client.base_url = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], path_params: {'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version,'$top' => top,'$filter' => filter}, 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 MsRestAzure::AzureOperationError.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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Logic::Mgmt::V2015_02_01_preview::Models::WorkflowListResult.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_subscription_next(next_page_link, custom_headers: nil) ⇒ WorkflowListResult
Gets a list of workflows by subscription.
to List operation. will be added to the HTTP request.
1008 1009 1010 1011 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 1008 def list_by_subscription_next(next_page_link, custom_headers:nil) response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! response.body unless response.nil? end |
#list_by_subscription_next_async(next_page_link, custom_headers: nil) ⇒ Concurrent::Promise
Gets a list of workflows by subscription.
to List operation. to the HTTP request.
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 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 1037 def list_by_subscription_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 MsRestAzure::AzureOperationError.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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Logic::Mgmt::V2015_02_01_preview::Models::WorkflowListResult.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_subscription_next_with_http_info(next_page_link, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of workflows by subscription.
to List operation. will be added to the HTTP request.
1023 1024 1025 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 1023 def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil) list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value! end |
#list_by_subscription_with_http_info(top: nil, filter: nil, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Gets a list of workflows by subscription.
will be added to the HTTP request.
49 50 51 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 49 def list_by_subscription_with_http_info(top:nil, filter:nil, custom_headers:nil) list_by_subscription_async(top:top, filter:filter, custom_headers:custom_headers).value! end |
#run(resource_group_name, workflow_name, parameters, custom_headers: nil) ⇒ WorkflowRun
Runs a workflow.
will be added to the HTTP request.
608 609 610 611 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 608 def run(resource_group_name, workflow_name, parameters, custom_headers:nil) response = run_async(resource_group_name, workflow_name, parameters, custom_headers:custom_headers).value! response.body unless response.nil? end |
#run_async(resource_group_name, workflow_name, parameters, custom_headers: nil) ⇒ Concurrent::Promise
will be added to the HTTP request.
response.
623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 623 def run_async(resource_group_name, workflow_name, parameters, custom_headers:nil) # Send request promise = begin_run_async(resource_group_name, workflow_name, parameters, custom_headers:custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| result_mapper = Azure::Logic::Mgmt::V2015_02_01_preview::Models::WorkflowRun.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 |
#update(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ Workflow
Updates a workflow.
will be added to the HTTP request.
424 425 426 427 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 424 def update(resource_group_name, workflow_name, workflow, custom_headers:nil) response = update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! response.body unless response.nil? end |
#update_async(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ Concurrent::Promise
Updates a workflow.
to the HTTP request.
455 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 511 512 513 514 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 455 def update_async(resource_group_name, workflow_name, workflow, 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, 'workflow_name is nil' if workflow_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'workflow is nil' if workflow.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::Logic::Mgmt::V2015_02_01_preview::Models::Workflow.mapper() request_content = @client.serialize(request_mapper, workflow) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}' 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,'workflowName' => workflow_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(:patch, 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 MsRestAzure::AzureOperationError.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? # Deserialize Response if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = Azure::Logic::Mgmt::V2015_02_01_preview::Models::Workflow.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 |
#update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Updates a workflow.
will be added to the HTTP request.
440 441 442 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 440 def update_with_http_info(resource_group_name, workflow_name, workflow, custom_headers:nil) update_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! end |
#validate(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ Object
Validates a workflow.
will be added to the HTTP request.
813 814 815 816 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 813 def validate(resource_group_name, workflow_name, workflow, custom_headers:nil) response = validate_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! nil end |
#validate_async(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ Concurrent::Promise
Validates a workflow.
to the HTTP request.
844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 844 def validate_async(resource_group_name, workflow_name, workflow, 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, 'workflow_name is nil' if workflow_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'workflow is nil' if workflow.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::Logic::Mgmt::V2015_02_01_preview::Models::Workflow.mapper() request_content = @client.serialize(request_mapper, workflow) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/validate' 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,'workflowName' => workflow_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 error_model = JSON.load(response_content) fail MsRestAzure::AzureOperationError.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 end promise.execute end |
#validate_with_http_info(resource_group_name, workflow_name, workflow, custom_headers: nil) ⇒ MsRestAzure::AzureOperationResponse
Validates a workflow.
will be added to the HTTP request.
829 830 831 |
# File 'lib/2015-02-01-preview/generated/azure_mgmt_logic/workflows.rb', line 829 def validate_with_http_info(resource_group_name, workflow_name, workflow, custom_headers:nil) validate_async(resource_group_name, workflow_name, workflow, custom_headers:custom_headers).value! end |