azure_mgmt_datalake_analytics 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_datalake_analytics.rb +16 -11
- data/lib/generated/azure_mgmt_datalake_analytics/account.rb +44 -34
- data/lib/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb +8 -5
- data/lib/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb +3 -4
- data/lib/generated/azure_mgmt_datalake_analytics/firewall_rules.rb +674 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb +79 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_update_parameters.rb +62 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_firewall_rule_list_result.rb +96 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info.rb +17 -5
- data/lib/generated/azure_mgmt_datalake_analytics/models/firewall_allow_azure_ips_state.rb +16 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/firewall_rule.rb +79 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/firewall_state.rb +16 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/{error_details.rb → optional_sub_resource.rb} +18 -20
- data/lib/generated/azure_mgmt_datalake_analytics/models/storage_account_info.rb +17 -6
- data/lib/generated/azure_mgmt_datalake_analytics/models/{inner_error.rb → sub_resource.rb} +20 -13
- data/lib/generated/azure_mgmt_datalake_analytics/models/tier_type.rb +23 -0
- data/lib/generated/azure_mgmt_datalake_analytics/models/update_firewall_rule_parameters.rb +56 -0
- data/lib/generated/azure_mgmt_datalake_analytics/version.rb +1 -1
- metadata +13 -8
- data/lib/generated/azure_mgmt_datalake_analytics/models/create_storage_account_info.rb +0 -67
- data/lib/generated/azure_mgmt_datalake_analytics/models/error.rb +0 -99
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcf5e41b4502ab0186baf96c55cf17569339d9d7
|
4
|
+
data.tar.gz: 2952cd394e4e5d50c9c5d5a15ec885bd9decbae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a92cea9ebe01a2f592159b770d99e506c78dc869bb6330a1324813f6786fd74b40a6b4fcc857078db9322a2200f4d1e03076c6a1fbd686b6a8d090303e48a62
|
7
|
+
data.tar.gz: a9da8477840640aa82558a2e4d2d4375bfb3f5ee1de0a3633c72418e994f7c73a55fcc2494a7bba4b833b50d6c22a2c18c3883eb842bd74acd317f91738ffd1a
|
@@ -20,31 +20,36 @@ require 'generated/azure_mgmt_datalake_analytics/module_definition'
|
|
20
20
|
require 'ms_rest_azure'
|
21
21
|
|
22
22
|
module Azure::ARM::DataLakeAnalytics
|
23
|
+
autoload :FirewallRules, 'generated/azure_mgmt_datalake_analytics/firewall_rules.rb'
|
23
24
|
autoload :StorageAccounts, 'generated/azure_mgmt_datalake_analytics/storage_accounts.rb'
|
24
25
|
autoload :DataLakeStoreAccounts, 'generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb'
|
25
26
|
autoload :Account, 'generated/azure_mgmt_datalake_analytics/account.rb'
|
26
27
|
autoload :DataLakeAnalyticsAccountManagementClient, 'generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb'
|
27
28
|
|
28
29
|
module Models
|
29
|
-
autoload :AddDataLakeStoreParameters, 'generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb'
|
30
30
|
autoload :AddStorageAccountParameters, 'generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb'
|
31
|
-
autoload :
|
32
|
-
autoload :
|
31
|
+
autoload :SubResource, 'generated/azure_mgmt_datalake_analytics/models/sub_resource.rb'
|
32
|
+
autoload :AddDataLakeStoreParameters, 'generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb'
|
33
33
|
autoload :ListStorageContainersResult, 'generated/azure_mgmt_datalake_analytics/models/list_storage_containers_result.rb'
|
34
|
-
autoload :
|
34
|
+
autoload :OptionalSubResource, 'generated/azure_mgmt_datalake_analytics/models/optional_sub_resource.rb'
|
35
35
|
autoload :ListSasTokensResult, 'generated/azure_mgmt_datalake_analytics/models/list_sas_tokens_result.rb'
|
36
|
-
autoload :
|
37
|
-
autoload :DataLakeAnalyticsAccountListDataLakeStoreResult, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb'
|
38
|
-
autoload :DataLakeAnalyticsAccountListResult, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb'
|
39
|
-
autoload :StorageContainer, 'generated/azure_mgmt_datalake_analytics/models/storage_container.rb'
|
40
|
-
autoload :ErrorDetails, 'generated/azure_mgmt_datalake_analytics/models/error_details.rb'
|
36
|
+
autoload :UpdateStorageAccountParameters, 'generated/azure_mgmt_datalake_analytics/models/update_storage_account_parameters.rb'
|
41
37
|
autoload :DataLakeAnalyticsAccountListStorageAccountsResult, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb'
|
42
|
-
autoload :
|
38
|
+
autoload :DataLakeAnalyticsAccountUpdateParameters, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_update_parameters.rb'
|
39
|
+
autoload :StorageContainer, 'generated/azure_mgmt_datalake_analytics/models/storage_container.rb'
|
40
|
+
autoload :DataLakeAnalyticsAccountListResult, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb'
|
43
41
|
autoload :SasTokenInfo, 'generated/azure_mgmt_datalake_analytics/models/sas_token_info.rb'
|
44
|
-
autoload :
|
42
|
+
autoload :DataLakeAnalyticsFirewallRuleListResult, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_firewall_rule_list_result.rb'
|
43
|
+
autoload :DataLakeAnalyticsAccountListDataLakeStoreResult, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb'
|
44
|
+
autoload :UpdateFirewallRuleParameters, 'generated/azure_mgmt_datalake_analytics/models/update_firewall_rule_parameters.rb'
|
45
45
|
autoload :StorageAccountInfo, 'generated/azure_mgmt_datalake_analytics/models/storage_account_info.rb'
|
46
|
+
autoload :DataLakeStoreAccountInfo, 'generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info.rb'
|
47
|
+
autoload :FirewallRule, 'generated/azure_mgmt_datalake_analytics/models/firewall_rule.rb'
|
46
48
|
autoload :DataLakeAnalyticsAccount, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb'
|
47
49
|
autoload :DataLakeAnalyticsAccountStatus, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_status.rb'
|
48
50
|
autoload :DataLakeAnalyticsAccountState, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_state.rb'
|
51
|
+
autoload :TierType, 'generated/azure_mgmt_datalake_analytics/models/tier_type.rb'
|
52
|
+
autoload :FirewallState, 'generated/azure_mgmt_datalake_analytics/models/firewall_state.rb'
|
53
|
+
autoload :FirewallAllowAzureIpsState, 'generated/azure_mgmt_datalake_analytics/models/firewall_allow_azure_ips_state.rb'
|
49
54
|
end
|
50
55
|
end
|
@@ -431,7 +431,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
431
431
|
#
|
432
432
|
# @param resource_group_name [String] The name of the Azure resource group that
|
433
433
|
# contains the Data Lake Analytics account.the account will be associated with.
|
434
|
-
# @param
|
434
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
435
|
+
# create.
|
435
436
|
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
436
437
|
# create Data Lake Analytics account operation.
|
437
438
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -439,15 +440,16 @@ module Azure::ARM::DataLakeAnalytics
|
|
439
440
|
#
|
440
441
|
# @return [DataLakeAnalyticsAccount] operation results.
|
441
442
|
#
|
442
|
-
def create(resource_group_name,
|
443
|
-
response = create_async(resource_group_name,
|
443
|
+
def create(resource_group_name, account_name, parameters, custom_headers = nil)
|
444
|
+
response = create_async(resource_group_name, account_name, parameters, custom_headers).value!
|
444
445
|
response.body unless response.nil?
|
445
446
|
end
|
446
447
|
|
447
448
|
#
|
448
449
|
# @param resource_group_name [String] The name of the Azure resource group that
|
449
450
|
# contains the Data Lake Analytics account.the account will be associated with.
|
450
|
-
# @param
|
451
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
452
|
+
# create.
|
451
453
|
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
452
454
|
# create Data Lake Analytics account operation.
|
453
455
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -456,9 +458,9 @@ module Azure::ARM::DataLakeAnalytics
|
|
456
458
|
# @return [Concurrent::Promise] promise which provides async access to http
|
457
459
|
# response.
|
458
460
|
#
|
459
|
-
def create_async(resource_group_name,
|
461
|
+
def create_async(resource_group_name, account_name, parameters, custom_headers = nil)
|
460
462
|
# Send request
|
461
|
-
promise = begin_create_async(resource_group_name,
|
463
|
+
promise = begin_create_async(resource_group_name, account_name, parameters, custom_headers)
|
462
464
|
|
463
465
|
promise = promise.then do |response|
|
464
466
|
# Defining deserialization method.
|
@@ -480,7 +482,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
480
482
|
#
|
481
483
|
# @param resource_group_name [String] The name of the Azure resource group that
|
482
484
|
# contains the Data Lake Analytics account.
|
483
|
-
# @param
|
485
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
486
|
+
# update.
|
484
487
|
# @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
|
485
488
|
# supplied to the update Data Lake Analytics account operation.
|
486
489
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -488,15 +491,16 @@ module Azure::ARM::DataLakeAnalytics
|
|
488
491
|
#
|
489
492
|
# @return [DataLakeAnalyticsAccount] operation results.
|
490
493
|
#
|
491
|
-
def update(resource_group_name,
|
492
|
-
response = update_async(resource_group_name,
|
494
|
+
def update(resource_group_name, account_name, parameters = nil, custom_headers = nil)
|
495
|
+
response = update_async(resource_group_name, account_name, parameters, custom_headers).value!
|
493
496
|
response.body unless response.nil?
|
494
497
|
end
|
495
498
|
|
496
499
|
#
|
497
500
|
# @param resource_group_name [String] The name of the Azure resource group that
|
498
501
|
# contains the Data Lake Analytics account.
|
499
|
-
# @param
|
502
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
503
|
+
# update.
|
500
504
|
# @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
|
501
505
|
# supplied to the update Data Lake Analytics account operation.
|
502
506
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -505,9 +509,9 @@ module Azure::ARM::DataLakeAnalytics
|
|
505
509
|
# @return [Concurrent::Promise] promise which provides async access to http
|
506
510
|
# response.
|
507
511
|
#
|
508
|
-
def update_async(resource_group_name,
|
512
|
+
def update_async(resource_group_name, account_name, parameters = nil, custom_headers = nil)
|
509
513
|
# Send request
|
510
|
-
promise = begin_update_async(resource_group_name,
|
514
|
+
promise = begin_update_async(resource_group_name, account_name, parameters, custom_headers)
|
511
515
|
|
512
516
|
promise = promise.then do |response|
|
513
517
|
# Defining deserialization method.
|
@@ -618,7 +622,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
618
622
|
#
|
619
623
|
# @param resource_group_name [String] The name of the Azure resource group that
|
620
624
|
# contains the Data Lake Analytics account.the account will be associated with.
|
621
|
-
# @param
|
625
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
626
|
+
# create.
|
622
627
|
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
623
628
|
# create Data Lake Analytics account operation.
|
624
629
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -626,8 +631,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
626
631
|
#
|
627
632
|
# @return [DataLakeAnalyticsAccount] operation results.
|
628
633
|
#
|
629
|
-
def begin_create(resource_group_name,
|
630
|
-
response = begin_create_async(resource_group_name,
|
634
|
+
def begin_create(resource_group_name, account_name, parameters, custom_headers = nil)
|
635
|
+
response = begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
|
631
636
|
response.body unless response.nil?
|
632
637
|
end
|
633
638
|
|
@@ -637,7 +642,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
637
642
|
#
|
638
643
|
# @param resource_group_name [String] The name of the Azure resource group that
|
639
644
|
# contains the Data Lake Analytics account.the account will be associated with.
|
640
|
-
# @param
|
645
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
646
|
+
# create.
|
641
647
|
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
642
648
|
# create Data Lake Analytics account operation.
|
643
649
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -645,8 +651,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
645
651
|
#
|
646
652
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
647
653
|
#
|
648
|
-
def begin_create_with_http_info(resource_group_name,
|
649
|
-
begin_create_async(resource_group_name,
|
654
|
+
def begin_create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
|
655
|
+
begin_create_async(resource_group_name, account_name, parameters, custom_headers).value!
|
650
656
|
end
|
651
657
|
|
652
658
|
#
|
@@ -655,7 +661,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
655
661
|
#
|
656
662
|
# @param resource_group_name [String] The name of the Azure resource group that
|
657
663
|
# contains the Data Lake Analytics account.the account will be associated with.
|
658
|
-
# @param
|
664
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
665
|
+
# create.
|
659
666
|
# @param parameters [DataLakeAnalyticsAccount] Parameters supplied to the
|
660
667
|
# create Data Lake Analytics account operation.
|
661
668
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -663,9 +670,9 @@ module Azure::ARM::DataLakeAnalytics
|
|
663
670
|
#
|
664
671
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
665
672
|
#
|
666
|
-
def begin_create_async(resource_group_name,
|
673
|
+
def begin_create_async(resource_group_name, account_name, parameters, custom_headers = nil)
|
667
674
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
668
|
-
fail ArgumentError, '
|
675
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
669
676
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
670
677
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
671
678
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -684,13 +691,13 @@ module Azure::ARM::DataLakeAnalytics
|
|
684
691
|
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
685
692
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
686
693
|
|
687
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{
|
694
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}'
|
688
695
|
|
689
696
|
request_url = @base_url || @client.base_url
|
690
697
|
|
691
698
|
options = {
|
692
699
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
693
|
-
path_params: {'resourceGroupName' => resource_group_name,'
|
700
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
694
701
|
query_params: {'api-version' => @client.api_version},
|
695
702
|
body: request_content,
|
696
703
|
headers: request_headers.merge(custom_headers || {}),
|
@@ -741,7 +748,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
741
748
|
#
|
742
749
|
# @param resource_group_name [String] The name of the Azure resource group that
|
743
750
|
# contains the Data Lake Analytics account.
|
744
|
-
# @param
|
751
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
752
|
+
# update.
|
745
753
|
# @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
|
746
754
|
# supplied to the update Data Lake Analytics account operation.
|
747
755
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -749,8 +757,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
749
757
|
#
|
750
758
|
# @return [DataLakeAnalyticsAccount] operation results.
|
751
759
|
#
|
752
|
-
def begin_update(resource_group_name,
|
753
|
-
response = begin_update_async(resource_group_name,
|
760
|
+
def begin_update(resource_group_name, account_name, parameters = nil, custom_headers = nil)
|
761
|
+
response = begin_update_async(resource_group_name, account_name, parameters, custom_headers).value!
|
754
762
|
response.body unless response.nil?
|
755
763
|
end
|
756
764
|
|
@@ -760,7 +768,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
760
768
|
#
|
761
769
|
# @param resource_group_name [String] The name of the Azure resource group that
|
762
770
|
# contains the Data Lake Analytics account.
|
763
|
-
# @param
|
771
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
772
|
+
# update.
|
764
773
|
# @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
|
765
774
|
# supplied to the update Data Lake Analytics account operation.
|
766
775
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -768,8 +777,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
768
777
|
#
|
769
778
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
770
779
|
#
|
771
|
-
def begin_update_with_http_info(resource_group_name,
|
772
|
-
begin_update_async(resource_group_name,
|
780
|
+
def begin_update_with_http_info(resource_group_name, account_name, parameters = nil, custom_headers = nil)
|
781
|
+
begin_update_async(resource_group_name, account_name, parameters, custom_headers).value!
|
773
782
|
end
|
774
783
|
|
775
784
|
#
|
@@ -778,7 +787,8 @@ module Azure::ARM::DataLakeAnalytics
|
|
778
787
|
#
|
779
788
|
# @param resource_group_name [String] The name of the Azure resource group that
|
780
789
|
# contains the Data Lake Analytics account.
|
781
|
-
# @param
|
790
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
791
|
+
# update.
|
782
792
|
# @param parameters [DataLakeAnalyticsAccountUpdateParameters] Parameters
|
783
793
|
# supplied to the update Data Lake Analytics account operation.
|
784
794
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -786,9 +796,9 @@ module Azure::ARM::DataLakeAnalytics
|
|
786
796
|
#
|
787
797
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
788
798
|
#
|
789
|
-
def begin_update_async(resource_group_name,
|
799
|
+
def begin_update_async(resource_group_name, account_name, parameters = nil, custom_headers = nil)
|
790
800
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
791
|
-
fail ArgumentError, '
|
801
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
792
802
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
793
803
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
794
804
|
|
@@ -806,13 +816,13 @@ module Azure::ARM::DataLakeAnalytics
|
|
806
816
|
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
807
817
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
808
818
|
|
809
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{
|
819
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}'
|
810
820
|
|
811
821
|
request_url = @base_url || @client.base_url
|
812
822
|
|
813
823
|
options = {
|
814
824
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
815
|
-
path_params: {'resourceGroupName' => resource_group_name,'
|
825
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
816
826
|
query_params: {'api-version' => @client.api_version},
|
817
827
|
body: request_content,
|
818
828
|
headers: request_headers.merge(custom_headers || {}),
|
data/lib/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb
CHANGED
@@ -36,6 +36,9 @@ module Azure::ARM::DataLakeAnalytics
|
|
36
36
|
# is generated and included in each request. Default is true.
|
37
37
|
attr_accessor :generate_client_request_id
|
38
38
|
|
39
|
+
# @return [FirewallRules] firewall_rules
|
40
|
+
attr_reader :firewall_rules
|
41
|
+
|
39
42
|
# @return [StorageAccounts] storage_accounts
|
40
43
|
attr_reader :storage_accounts
|
41
44
|
|
@@ -51,14 +54,14 @@ module Azure::ARM::DataLakeAnalytics
|
|
51
54
|
# @param base_url [String] the base URI of the service.
|
52
55
|
# @param options [Array] filters to be applied to the HTTP requests.
|
53
56
|
#
|
54
|
-
def initialize(credentials, base_url = nil, options = nil)
|
57
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
55
58
|
super(credentials, options)
|
56
59
|
@base_url = base_url || 'https://management.azure.com'
|
57
60
|
|
58
|
-
fail ArgumentError, 'credentials
|
59
|
-
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
|
61
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
60
62
|
@credentials = credentials
|
61
63
|
|
64
|
+
@firewall_rules = FirewallRules.new(self)
|
62
65
|
@storage_accounts = StorageAccounts.new(self)
|
63
66
|
@data_lake_store_accounts = DataLakeStoreAccounts.new(self)
|
64
67
|
@account = Account.new(self)
|
@@ -71,7 +74,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
71
74
|
|
72
75
|
#
|
73
76
|
# Makes a request and returns the body of the response.
|
74
|
-
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
77
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
75
78
|
# @param path [String] the path, relative to {base_url}.
|
76
79
|
# @param options [Hash{String=>String}] specifying any request options like :body.
|
77
80
|
# @return [Hash{String=>String}] containing the body of the response.
|
@@ -132,7 +135,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
132
135
|
def add_telemetry
|
133
136
|
sdk_information = 'azure_mgmt_datalake_analytics'
|
134
137
|
if defined? Azure::ARM::DataLakeAnalytics::VERSION
|
135
|
-
sdk_information = "#{sdk_information}/#{Azure::ARM::DataLakeAnalytics::VERSION}"
|
138
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::DataLakeAnalytics::VERSION}"
|
136
139
|
end
|
137
140
|
add_user_agent_information(sdk_information)
|
138
141
|
end
|
@@ -241,7 +241,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
241
241
|
# will be added to the HTTP request.
|
242
242
|
#
|
243
243
|
#
|
244
|
-
def add(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers = nil)
|
244
|
+
def add(resource_group_name, account_name, data_lake_store_account_name, parameters = nil, custom_headers = nil)
|
245
245
|
response = add_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value!
|
246
246
|
nil
|
247
247
|
end
|
@@ -263,7 +263,7 @@ module Azure::ARM::DataLakeAnalytics
|
|
263
263
|
#
|
264
264
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
265
265
|
#
|
266
|
-
def add_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers = nil)
|
266
|
+
def add_with_http_info(resource_group_name, account_name, data_lake_store_account_name, parameters = nil, custom_headers = nil)
|
267
267
|
add_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers).value!
|
268
268
|
end
|
269
269
|
|
@@ -284,11 +284,10 @@ module Azure::ARM::DataLakeAnalytics
|
|
284
284
|
#
|
285
285
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
286
286
|
#
|
287
|
-
def add_async(resource_group_name, account_name, data_lake_store_account_name, parameters, custom_headers = nil)
|
287
|
+
def add_async(resource_group_name, account_name, data_lake_store_account_name, parameters = nil, custom_headers = nil)
|
288
288
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
289
289
|
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
290
290
|
fail ArgumentError, 'data_lake_store_account_name is nil' if data_lake_store_account_name.nil?
|
291
|
-
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
292
291
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
293
292
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
294
293
|
|
@@ -0,0 +1,674 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ARM::DataLakeAnalytics
|
7
|
+
#
|
8
|
+
# Creates an Azure Data Lake Analytics account management client.
|
9
|
+
#
|
10
|
+
class FirewallRules
|
11
|
+
include Azure::ARM::DataLakeAnalytics::Models
|
12
|
+
include MsRestAzure
|
13
|
+
|
14
|
+
#
|
15
|
+
# Creates and initializes a new instance of the FirewallRules class.
|
16
|
+
# @param client service class for accessing basic functionality.
|
17
|
+
#
|
18
|
+
def initialize(client)
|
19
|
+
@client = client
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [DataLakeAnalyticsAccountManagementClient] reference to the DataLakeAnalyticsAccountManagementClient
|
23
|
+
attr_reader :client
|
24
|
+
|
25
|
+
#
|
26
|
+
# Creates or updates the specified firewall rule. During update, the firewall
|
27
|
+
# rule with the specified name will be replaced with this new firewall rule.
|
28
|
+
#
|
29
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
30
|
+
# contains the Data Lake Analytics account.
|
31
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
32
|
+
# add or replace the firewall rule.
|
33
|
+
# @param firewall_rule_name [String] The name of the firewall rule to create or
|
34
|
+
# update.
|
35
|
+
# @param parameters [FirewallRule] Parameters supplied to create or update the
|
36
|
+
# firewall rule.
|
37
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
38
|
+
# will be added to the HTTP request.
|
39
|
+
#
|
40
|
+
# @return [FirewallRule] operation results.
|
41
|
+
#
|
42
|
+
def create_or_update(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers = nil)
|
43
|
+
response = create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value!
|
44
|
+
response.body unless response.nil?
|
45
|
+
end
|
46
|
+
|
47
|
+
#
|
48
|
+
# Creates or updates the specified firewall rule. During update, the firewall
|
49
|
+
# rule with the specified name will be replaced with this new firewall rule.
|
50
|
+
#
|
51
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
52
|
+
# contains the Data Lake Analytics account.
|
53
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
54
|
+
# add or replace the firewall rule.
|
55
|
+
# @param firewall_rule_name [String] The name of the firewall rule to create or
|
56
|
+
# update.
|
57
|
+
# @param parameters [FirewallRule] Parameters supplied to create or update the
|
58
|
+
# firewall rule.
|
59
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
60
|
+
# will be added to the HTTP request.
|
61
|
+
#
|
62
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
63
|
+
#
|
64
|
+
def create_or_update_with_http_info(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers = nil)
|
65
|
+
create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value!
|
66
|
+
end
|
67
|
+
|
68
|
+
#
|
69
|
+
# Creates or updates the specified firewall rule. During update, the firewall
|
70
|
+
# rule with the specified name will be replaced with this new firewall rule.
|
71
|
+
#
|
72
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
73
|
+
# contains the Data Lake Analytics account.
|
74
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
75
|
+
# add or replace the firewall rule.
|
76
|
+
# @param firewall_rule_name [String] The name of the firewall rule to create or
|
77
|
+
# update.
|
78
|
+
# @param parameters [FirewallRule] Parameters supplied to create or update the
|
79
|
+
# firewall rule.
|
80
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
81
|
+
# to the HTTP request.
|
82
|
+
#
|
83
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
84
|
+
#
|
85
|
+
def create_or_update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers = nil)
|
86
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
87
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
88
|
+
fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil?
|
89
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
90
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
91
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
92
|
+
|
93
|
+
|
94
|
+
request_headers = {}
|
95
|
+
|
96
|
+
# Set Headers
|
97
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
98
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
99
|
+
|
100
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
101
|
+
|
102
|
+
# Serialize Request
|
103
|
+
request_mapper = FirewallRule.mapper()
|
104
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
105
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
106
|
+
|
107
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}'
|
108
|
+
|
109
|
+
request_url = @base_url || @client.base_url
|
110
|
+
|
111
|
+
options = {
|
112
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
113
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'firewallRuleName' => firewall_rule_name,'subscriptionId' => @client.subscription_id},
|
114
|
+
query_params: {'api-version' => @client.api_version},
|
115
|
+
body: request_content,
|
116
|
+
headers: request_headers.merge(custom_headers || {}),
|
117
|
+
base_url: request_url
|
118
|
+
}
|
119
|
+
promise = @client.make_request_async(:put, path_template, options)
|
120
|
+
|
121
|
+
promise = promise.then do |result|
|
122
|
+
http_response = result.response
|
123
|
+
status_code = http_response.status
|
124
|
+
response_content = http_response.body
|
125
|
+
unless status_code == 200
|
126
|
+
error_model = JSON.load(response_content)
|
127
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
128
|
+
end
|
129
|
+
|
130
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
131
|
+
# Deserialize Response
|
132
|
+
if status_code == 200
|
133
|
+
begin
|
134
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
135
|
+
result_mapper = FirewallRule.mapper()
|
136
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
137
|
+
rescue Exception => e
|
138
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
result
|
143
|
+
end
|
144
|
+
|
145
|
+
promise.execute
|
146
|
+
end
|
147
|
+
|
148
|
+
#
|
149
|
+
# Updates the specified firewall rule.
|
150
|
+
#
|
151
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
152
|
+
# contains the Data Lake Analytics account.
|
153
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
154
|
+
# which to update the firewall rule.
|
155
|
+
# @param firewall_rule_name [String] The name of the firewall rule to update.
|
156
|
+
# @param parameters [UpdateFirewallRuleParameters] Parameters supplied to
|
157
|
+
# update the firewall rule.
|
158
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
159
|
+
# will be added to the HTTP request.
|
160
|
+
#
|
161
|
+
# @return [FirewallRule] operation results.
|
162
|
+
#
|
163
|
+
def update(resource_group_name, account_name, firewall_rule_name, parameters = nil, custom_headers = nil)
|
164
|
+
response = update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value!
|
165
|
+
response.body unless response.nil?
|
166
|
+
end
|
167
|
+
|
168
|
+
#
|
169
|
+
# Updates the specified firewall rule.
|
170
|
+
#
|
171
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
172
|
+
# contains the Data Lake Analytics account.
|
173
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
174
|
+
# which to update the firewall rule.
|
175
|
+
# @param firewall_rule_name [String] The name of the firewall rule to update.
|
176
|
+
# @param parameters [UpdateFirewallRuleParameters] Parameters supplied to
|
177
|
+
# update the firewall rule.
|
178
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
179
|
+
# will be added to the HTTP request.
|
180
|
+
#
|
181
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
182
|
+
#
|
183
|
+
def update_with_http_info(resource_group_name, account_name, firewall_rule_name, parameters = nil, custom_headers = nil)
|
184
|
+
update_async(resource_group_name, account_name, firewall_rule_name, parameters, custom_headers).value!
|
185
|
+
end
|
186
|
+
|
187
|
+
#
|
188
|
+
# Updates the specified firewall rule.
|
189
|
+
#
|
190
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
191
|
+
# contains the Data Lake Analytics account.
|
192
|
+
# @param account_name [String] The name of the Data Lake Analytics account to
|
193
|
+
# which to update the firewall rule.
|
194
|
+
# @param firewall_rule_name [String] The name of the firewall rule to update.
|
195
|
+
# @param parameters [UpdateFirewallRuleParameters] Parameters supplied to
|
196
|
+
# update the firewall rule.
|
197
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
198
|
+
# to the HTTP request.
|
199
|
+
#
|
200
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
201
|
+
#
|
202
|
+
def update_async(resource_group_name, account_name, firewall_rule_name, parameters = nil, custom_headers = nil)
|
203
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
204
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
205
|
+
fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil?
|
206
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
207
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
208
|
+
|
209
|
+
|
210
|
+
request_headers = {}
|
211
|
+
|
212
|
+
# Set Headers
|
213
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
214
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
215
|
+
|
216
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
217
|
+
|
218
|
+
# Serialize Request
|
219
|
+
request_mapper = UpdateFirewallRuleParameters.mapper()
|
220
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
221
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
222
|
+
|
223
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}'
|
224
|
+
|
225
|
+
request_url = @base_url || @client.base_url
|
226
|
+
|
227
|
+
options = {
|
228
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
229
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'firewallRuleName' => firewall_rule_name,'subscriptionId' => @client.subscription_id},
|
230
|
+
query_params: {'api-version' => @client.api_version},
|
231
|
+
body: request_content,
|
232
|
+
headers: request_headers.merge(custom_headers || {}),
|
233
|
+
base_url: request_url
|
234
|
+
}
|
235
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
236
|
+
|
237
|
+
promise = promise.then do |result|
|
238
|
+
http_response = result.response
|
239
|
+
status_code = http_response.status
|
240
|
+
response_content = http_response.body
|
241
|
+
unless status_code == 200
|
242
|
+
error_model = JSON.load(response_content)
|
243
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
244
|
+
end
|
245
|
+
|
246
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
247
|
+
# Deserialize Response
|
248
|
+
if status_code == 200
|
249
|
+
begin
|
250
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
251
|
+
result_mapper = FirewallRule.mapper()
|
252
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
253
|
+
rescue Exception => e
|
254
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
result
|
259
|
+
end
|
260
|
+
|
261
|
+
promise.execute
|
262
|
+
end
|
263
|
+
|
264
|
+
#
|
265
|
+
# Deletes the specified firewall rule from the specified Data Lake Analytics
|
266
|
+
# account
|
267
|
+
#
|
268
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
269
|
+
# contains the Data Lake Analytics account.
|
270
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
271
|
+
# which to delete the firewall rule.
|
272
|
+
# @param firewall_rule_name [String] The name of the firewall rule to delete.
|
273
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
274
|
+
# will be added to the HTTP request.
|
275
|
+
#
|
276
|
+
#
|
277
|
+
def delete(resource_group_name, account_name, firewall_rule_name, custom_headers = nil)
|
278
|
+
response = delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value!
|
279
|
+
nil
|
280
|
+
end
|
281
|
+
|
282
|
+
#
|
283
|
+
# Deletes the specified firewall rule from the specified Data Lake Analytics
|
284
|
+
# account
|
285
|
+
#
|
286
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
287
|
+
# contains the Data Lake Analytics account.
|
288
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
289
|
+
# which to delete the firewall rule.
|
290
|
+
# @param firewall_rule_name [String] The name of the firewall rule to delete.
|
291
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
292
|
+
# will be added to the HTTP request.
|
293
|
+
#
|
294
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
295
|
+
#
|
296
|
+
def delete_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers = nil)
|
297
|
+
delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value!
|
298
|
+
end
|
299
|
+
|
300
|
+
#
|
301
|
+
# Deletes the specified firewall rule from the specified Data Lake Analytics
|
302
|
+
# account
|
303
|
+
#
|
304
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
305
|
+
# contains the Data Lake Analytics account.
|
306
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
307
|
+
# which to delete the firewall rule.
|
308
|
+
# @param firewall_rule_name [String] The name of the firewall rule to delete.
|
309
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
310
|
+
# to the HTTP request.
|
311
|
+
#
|
312
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
313
|
+
#
|
314
|
+
def delete_async(resource_group_name, account_name, firewall_rule_name, custom_headers = nil)
|
315
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
316
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
317
|
+
fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil?
|
318
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
319
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
320
|
+
|
321
|
+
|
322
|
+
request_headers = {}
|
323
|
+
|
324
|
+
# Set Headers
|
325
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
326
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
327
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}'
|
328
|
+
|
329
|
+
request_url = @base_url || @client.base_url
|
330
|
+
|
331
|
+
options = {
|
332
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
333
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'firewallRuleName' => firewall_rule_name,'subscriptionId' => @client.subscription_id},
|
334
|
+
query_params: {'api-version' => @client.api_version},
|
335
|
+
headers: request_headers.merge(custom_headers || {}),
|
336
|
+
base_url: request_url
|
337
|
+
}
|
338
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
339
|
+
|
340
|
+
promise = promise.then do |result|
|
341
|
+
http_response = result.response
|
342
|
+
status_code = http_response.status
|
343
|
+
response_content = http_response.body
|
344
|
+
unless status_code == 200 || status_code == 204
|
345
|
+
error_model = JSON.load(response_content)
|
346
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
347
|
+
end
|
348
|
+
|
349
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
350
|
+
|
351
|
+
result
|
352
|
+
end
|
353
|
+
|
354
|
+
promise.execute
|
355
|
+
end
|
356
|
+
|
357
|
+
#
|
358
|
+
# Gets the specified Data Lake Analytics firewall rule.
|
359
|
+
#
|
360
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
361
|
+
# contains the Data Lake Analytics account.
|
362
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
363
|
+
# which to get the firewall rule.
|
364
|
+
# @param firewall_rule_name [String] The name of the firewall rule to retrieve.
|
365
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
366
|
+
# will be added to the HTTP request.
|
367
|
+
#
|
368
|
+
# @return [FirewallRule] operation results.
|
369
|
+
#
|
370
|
+
def get(resource_group_name, account_name, firewall_rule_name, custom_headers = nil)
|
371
|
+
response = get_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value!
|
372
|
+
response.body unless response.nil?
|
373
|
+
end
|
374
|
+
|
375
|
+
#
|
376
|
+
# Gets the specified Data Lake Analytics firewall rule.
|
377
|
+
#
|
378
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
379
|
+
# contains the Data Lake Analytics account.
|
380
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
381
|
+
# which to get the firewall rule.
|
382
|
+
# @param firewall_rule_name [String] The name of the firewall rule to retrieve.
|
383
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
384
|
+
# will be added to the HTTP request.
|
385
|
+
#
|
386
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
387
|
+
#
|
388
|
+
def get_with_http_info(resource_group_name, account_name, firewall_rule_name, custom_headers = nil)
|
389
|
+
get_async(resource_group_name, account_name, firewall_rule_name, custom_headers).value!
|
390
|
+
end
|
391
|
+
|
392
|
+
#
|
393
|
+
# Gets the specified Data Lake Analytics firewall rule.
|
394
|
+
#
|
395
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
396
|
+
# contains the Data Lake Analytics account.
|
397
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
398
|
+
# which to get the firewall rule.
|
399
|
+
# @param firewall_rule_name [String] The name of the firewall rule to retrieve.
|
400
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
401
|
+
# to the HTTP request.
|
402
|
+
#
|
403
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
404
|
+
#
|
405
|
+
def get_async(resource_group_name, account_name, firewall_rule_name, custom_headers = nil)
|
406
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
407
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
408
|
+
fail ArgumentError, 'firewall_rule_name is nil' if firewall_rule_name.nil?
|
409
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
410
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
411
|
+
|
412
|
+
|
413
|
+
request_headers = {}
|
414
|
+
|
415
|
+
# Set Headers
|
416
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
417
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
418
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules/{firewallRuleName}'
|
419
|
+
|
420
|
+
request_url = @base_url || @client.base_url
|
421
|
+
|
422
|
+
options = {
|
423
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
424
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'firewallRuleName' => firewall_rule_name,'subscriptionId' => @client.subscription_id},
|
425
|
+
query_params: {'api-version' => @client.api_version},
|
426
|
+
headers: request_headers.merge(custom_headers || {}),
|
427
|
+
base_url: request_url
|
428
|
+
}
|
429
|
+
promise = @client.make_request_async(:get, path_template, options)
|
430
|
+
|
431
|
+
promise = promise.then do |result|
|
432
|
+
http_response = result.response
|
433
|
+
status_code = http_response.status
|
434
|
+
response_content = http_response.body
|
435
|
+
unless status_code == 200
|
436
|
+
error_model = JSON.load(response_content)
|
437
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
438
|
+
end
|
439
|
+
|
440
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
441
|
+
# Deserialize Response
|
442
|
+
if status_code == 200
|
443
|
+
begin
|
444
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
445
|
+
result_mapper = FirewallRule.mapper()
|
446
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
447
|
+
rescue Exception => e
|
448
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
449
|
+
end
|
450
|
+
end
|
451
|
+
|
452
|
+
result
|
453
|
+
end
|
454
|
+
|
455
|
+
promise.execute
|
456
|
+
end
|
457
|
+
|
458
|
+
#
|
459
|
+
# Lists the Data Lake Analytics firewall rules within the specified Data Lake
|
460
|
+
# Analytics account.
|
461
|
+
#
|
462
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
463
|
+
# contains the Data Lake Analytics account.
|
464
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
465
|
+
# which to get the firewall rules.
|
466
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
467
|
+
# will be added to the HTTP request.
|
468
|
+
#
|
469
|
+
# @return [Array<FirewallRule>] operation results.
|
470
|
+
#
|
471
|
+
def list_by_account(resource_group_name, account_name, custom_headers = nil)
|
472
|
+
first_page = list_by_account_as_lazy(resource_group_name, account_name, custom_headers)
|
473
|
+
first_page.get_all_items
|
474
|
+
end
|
475
|
+
|
476
|
+
#
|
477
|
+
# Lists the Data Lake Analytics firewall rules within the specified Data Lake
|
478
|
+
# Analytics account.
|
479
|
+
#
|
480
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
481
|
+
# contains the Data Lake Analytics account.
|
482
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
483
|
+
# which to get the firewall rules.
|
484
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
485
|
+
# will be added to the HTTP request.
|
486
|
+
#
|
487
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
488
|
+
#
|
489
|
+
def list_by_account_with_http_info(resource_group_name, account_name, custom_headers = nil)
|
490
|
+
list_by_account_async(resource_group_name, account_name, custom_headers).value!
|
491
|
+
end
|
492
|
+
|
493
|
+
#
|
494
|
+
# Lists the Data Lake Analytics firewall rules within the specified Data Lake
|
495
|
+
# Analytics account.
|
496
|
+
#
|
497
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
498
|
+
# contains the Data Lake Analytics account.
|
499
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
500
|
+
# which to get the firewall rules.
|
501
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
502
|
+
# to the HTTP request.
|
503
|
+
#
|
504
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
505
|
+
#
|
506
|
+
def list_by_account_async(resource_group_name, account_name, custom_headers = nil)
|
507
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
508
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
509
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
510
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
511
|
+
|
512
|
+
|
513
|
+
request_headers = {}
|
514
|
+
|
515
|
+
# Set Headers
|
516
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
517
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
518
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/firewallRules'
|
519
|
+
|
520
|
+
request_url = @base_url || @client.base_url
|
521
|
+
|
522
|
+
options = {
|
523
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
524
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
525
|
+
query_params: {'api-version' => @client.api_version},
|
526
|
+
headers: request_headers.merge(custom_headers || {}),
|
527
|
+
base_url: request_url
|
528
|
+
}
|
529
|
+
promise = @client.make_request_async(:get, path_template, options)
|
530
|
+
|
531
|
+
promise = promise.then do |result|
|
532
|
+
http_response = result.response
|
533
|
+
status_code = http_response.status
|
534
|
+
response_content = http_response.body
|
535
|
+
unless status_code == 200
|
536
|
+
error_model = JSON.load(response_content)
|
537
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
538
|
+
end
|
539
|
+
|
540
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
541
|
+
# Deserialize Response
|
542
|
+
if status_code == 200
|
543
|
+
begin
|
544
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
545
|
+
result_mapper = DataLakeAnalyticsFirewallRuleListResult.mapper()
|
546
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
547
|
+
rescue Exception => e
|
548
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
552
|
+
result
|
553
|
+
end
|
554
|
+
|
555
|
+
promise.execute
|
556
|
+
end
|
557
|
+
|
558
|
+
#
|
559
|
+
# Lists the Data Lake Analytics firewall rules within the specified Data Lake
|
560
|
+
# Analytics account.
|
561
|
+
#
|
562
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
563
|
+
# to List operation.
|
564
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
565
|
+
# will be added to the HTTP request.
|
566
|
+
#
|
567
|
+
# @return [DataLakeAnalyticsFirewallRuleListResult] operation results.
|
568
|
+
#
|
569
|
+
def list_by_account_next(next_page_link, custom_headers = nil)
|
570
|
+
response = list_by_account_next_async(next_page_link, custom_headers).value!
|
571
|
+
response.body unless response.nil?
|
572
|
+
end
|
573
|
+
|
574
|
+
#
|
575
|
+
# Lists the Data Lake Analytics firewall rules within the specified Data Lake
|
576
|
+
# Analytics account.
|
577
|
+
#
|
578
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
579
|
+
# to List operation.
|
580
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
581
|
+
# will be added to the HTTP request.
|
582
|
+
#
|
583
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
584
|
+
#
|
585
|
+
def list_by_account_next_with_http_info(next_page_link, custom_headers = nil)
|
586
|
+
list_by_account_next_async(next_page_link, custom_headers).value!
|
587
|
+
end
|
588
|
+
|
589
|
+
#
|
590
|
+
# Lists the Data Lake Analytics firewall rules within the specified Data Lake
|
591
|
+
# Analytics account.
|
592
|
+
#
|
593
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
594
|
+
# to List operation.
|
595
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
596
|
+
# to the HTTP request.
|
597
|
+
#
|
598
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
599
|
+
#
|
600
|
+
def list_by_account_next_async(next_page_link, custom_headers = nil)
|
601
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
602
|
+
|
603
|
+
|
604
|
+
request_headers = {}
|
605
|
+
|
606
|
+
# Set Headers
|
607
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
608
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
609
|
+
path_template = '{nextLink}'
|
610
|
+
|
611
|
+
request_url = @base_url || @client.base_url
|
612
|
+
|
613
|
+
options = {
|
614
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
615
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
616
|
+
headers: request_headers.merge(custom_headers || {}),
|
617
|
+
base_url: request_url
|
618
|
+
}
|
619
|
+
promise = @client.make_request_async(:get, path_template, options)
|
620
|
+
|
621
|
+
promise = promise.then do |result|
|
622
|
+
http_response = result.response
|
623
|
+
status_code = http_response.status
|
624
|
+
response_content = http_response.body
|
625
|
+
unless status_code == 200
|
626
|
+
error_model = JSON.load(response_content)
|
627
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
628
|
+
end
|
629
|
+
|
630
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
631
|
+
# Deserialize Response
|
632
|
+
if status_code == 200
|
633
|
+
begin
|
634
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
635
|
+
result_mapper = DataLakeAnalyticsFirewallRuleListResult.mapper()
|
636
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
637
|
+
rescue Exception => e
|
638
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
639
|
+
end
|
640
|
+
end
|
641
|
+
|
642
|
+
result
|
643
|
+
end
|
644
|
+
|
645
|
+
promise.execute
|
646
|
+
end
|
647
|
+
|
648
|
+
#
|
649
|
+
# Lists the Data Lake Analytics firewall rules within the specified Data Lake
|
650
|
+
# Analytics account.
|
651
|
+
#
|
652
|
+
# @param resource_group_name [String] The name of the Azure resource group that
|
653
|
+
# contains the Data Lake Analytics account.
|
654
|
+
# @param account_name [String] The name of the Data Lake Analytics account from
|
655
|
+
# which to get the firewall rules.
|
656
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
657
|
+
# will be added to the HTTP request.
|
658
|
+
#
|
659
|
+
# @return [DataLakeAnalyticsFirewallRuleListResult] which provide lazy access
|
660
|
+
# to pages of the response.
|
661
|
+
#
|
662
|
+
def list_by_account_as_lazy(resource_group_name, account_name, custom_headers = nil)
|
663
|
+
response = list_by_account_async(resource_group_name, account_name, custom_headers).value!
|
664
|
+
unless response.nil?
|
665
|
+
page = response.body
|
666
|
+
page.next_method = Proc.new do |next_page_link|
|
667
|
+
list_by_account_next_async(next_page_link, custom_headers)
|
668
|
+
end
|
669
|
+
page
|
670
|
+
end
|
671
|
+
end
|
672
|
+
|
673
|
+
end
|
674
|
+
end
|