azure_mgmt_service_bus 0.16.0 → 0.17.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/check_name_availability.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/namespace_list_result.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/operation_list_result.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/queue_list_result.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/resource.rb +9 -0
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_list_result.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/subscription_list_result.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_create_or_update_parameters.rb +0 -12
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_list_result.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/models/topic_resource.rb +0 -12
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/namespaces.rb +15 -15
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb +126 -15
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb +7 -6
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/topics.rb +129 -18
- data/lib/2017-04-01/generated/azure_mgmt_service_bus.rb +31 -20
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/disaster_recovery_configs.rb +9 -9
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/migration_configs.rb +777 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/arm_disaster_recovery.rb +14 -2
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/arm_disaster_recovery_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/check_name_availability.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/correlation_filter.rb +19 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/default_action.rb +16 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/error_response.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/event_hub_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/migration_config_list_result.rb +100 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/migration_config_properties.rb +123 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/name_space_type.rb +19 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/network_rule_ipaction.rb +15 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/network_rule_set.rb +114 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/nwrule_set_ip_rules.rb +59 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/nwrule_set_virtual_network_rules.rb +59 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/operation_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/premium_messaging_regions_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/regenerate_access_key_parameters.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/resource.rb +9 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/rule_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbauthorization_rule_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbnamespace.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbnamespace_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbnamespace_migrate.rb +48 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbnamespace_update_parameters.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbqueue.rb +12 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbqueue_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbsubscription_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbtopic.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/sbtopic_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/subnet.rb +46 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/namespaces.rb +326 -15
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/queues.rb +51 -23
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/rules.rb +36 -8
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/service_bus_management_client.rb +11 -6
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/subscriptions.rb +36 -8
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/topics.rb +54 -26
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus.rb +53 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/default_action.rb +16 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/error_response.rb +58 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/ip_filter_rule.rb +96 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/ip_filter_rule_list_result.rb +100 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/ipaction.rb +16 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/network_rule_ipaction.rb +15 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/network_rule_set.rb +114 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/nwrule_set_ip_rules.rb +58 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/nwrule_set_virtual_network_rules.rb +59 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/operation.rb +59 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/operation_display.rb +72 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/operation_list_result.rb +103 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/resource.rb +80 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/resource_namespace_patch.rb +92 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/sbnamespace.rb +171 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/sbnamespace_list_result.rb +99 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/sbnamespace_update_parameters.rb +171 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/sbsku.rb +73 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/sku_name.rb +17 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/sku_tier.rb +17 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/subnet.rb +46 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/tracked_resource.rb +92 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/virtual_network_rule.rb +73 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/models/virtual_network_rule_list_result.rb +100 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/module_definition.rb +9 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/namespaces.rb +2211 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/operations.rb +216 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_service_bus/service_bus_management_client.rb +137 -0
- data/lib/azure_mgmt_service_bus.rb +2 -1
- data/lib/profiles/latest/modules/servicebus_profile_module.rb +107 -65
- data/lib/version.rb +1 -1
- metadata +45 -5
@@ -27,13 +27,19 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
27
27
|
# @param resource_group_name [String] Name of the Resource group within the
|
28
28
|
# Azure subscription.
|
29
29
|
# @param namespace_name [String] The namespace name
|
30
|
+
# @param skip [Integer] Skip is only used if a previous operation returned a
|
31
|
+
# partial result. If a previous response contains a nextLink element, the value
|
32
|
+
# of the nextLink element will include a skip parameter that specifies a
|
33
|
+
# starting point to use for subsequent calls.
|
34
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
35
|
+
# recent N usageDetails.
|
30
36
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
31
37
|
# will be added to the HTTP request.
|
32
38
|
#
|
33
39
|
# @return [Array<SBQueue>] operation results.
|
34
40
|
#
|
35
|
-
def list_by_namespace(resource_group_name, namespace_name, custom_headers:nil)
|
36
|
-
first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:custom_headers)
|
41
|
+
def list_by_namespace(resource_group_name, namespace_name, skip:nil, top:nil, custom_headers:nil)
|
42
|
+
first_page = list_by_namespace_as_lazy(resource_group_name, namespace_name, skip:skip, top:top, custom_headers:custom_headers)
|
37
43
|
first_page.get_all_items
|
38
44
|
end
|
39
45
|
|
@@ -43,13 +49,19 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
43
49
|
# @param resource_group_name [String] Name of the Resource group within the
|
44
50
|
# Azure subscription.
|
45
51
|
# @param namespace_name [String] The namespace name
|
52
|
+
# @param skip [Integer] Skip is only used if a previous operation returned a
|
53
|
+
# partial result. If a previous response contains a nextLink element, the value
|
54
|
+
# of the nextLink element will include a skip parameter that specifies a
|
55
|
+
# starting point to use for subsequent calls.
|
56
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
57
|
+
# recent N usageDetails.
|
46
58
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
59
|
# will be added to the HTTP request.
|
48
60
|
#
|
49
61
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
50
62
|
#
|
51
|
-
def list_by_namespace_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
|
52
|
-
list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
63
|
+
def list_by_namespace_with_http_info(resource_group_name, namespace_name, skip:nil, top:nil, custom_headers:nil)
|
64
|
+
list_by_namespace_async(resource_group_name, namespace_name, skip:skip, top:top, custom_headers:custom_headers).value!
|
53
65
|
end
|
54
66
|
|
55
67
|
#
|
@@ -58,12 +70,18 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
58
70
|
# @param resource_group_name [String] Name of the Resource group within the
|
59
71
|
# Azure subscription.
|
60
72
|
# @param namespace_name [String] The namespace name
|
73
|
+
# @param skip [Integer] Skip is only used if a previous operation returned a
|
74
|
+
# partial result. If a previous response contains a nextLink element, the value
|
75
|
+
# of the nextLink element will include a skip parameter that specifies a
|
76
|
+
# starting point to use for subsequent calls.
|
77
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
78
|
+
# recent N usageDetails.
|
61
79
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
62
80
|
# to the HTTP request.
|
63
81
|
#
|
64
82
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
65
83
|
#
|
66
|
-
def list_by_namespace_async(resource_group_name, namespace_name, custom_headers:nil)
|
84
|
+
def list_by_namespace_async(resource_group_name, namespace_name, skip:nil, top:nil, custom_headers:nil)
|
67
85
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
68
86
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
69
87
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -72,6 +90,10 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
72
90
|
fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
|
73
91
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
74
92
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
93
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !skip.nil? && skip > 1000
|
94
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
|
95
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000
|
96
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
75
97
|
|
76
98
|
|
77
99
|
request_headers = {}
|
@@ -87,7 +109,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
87
109
|
options = {
|
88
110
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
89
111
|
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'subscriptionId' => @client.subscription_id},
|
90
|
-
query_params: {'api-version' => @client.api_version},
|
112
|
+
query_params: {'api-version' => @client.api_version,'$skip' => skip,'$top' => top},
|
91
113
|
headers: request_headers.merge(custom_headers || {}),
|
92
114
|
base_url: request_url
|
93
115
|
}
|
@@ -546,7 +568,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
546
568
|
# Azure subscription.
|
547
569
|
# @param namespace_name [String] The namespace name
|
548
570
|
# @param queue_name [String] The queue name.
|
549
|
-
# @param authorization_rule_name [String] The
|
571
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
550
572
|
# @param parameters [SBAuthorizationRule] The shared access authorization rule.
|
551
573
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
552
574
|
# will be added to the HTTP request.
|
@@ -565,7 +587,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
565
587
|
# Azure subscription.
|
566
588
|
# @param namespace_name [String] The namespace name
|
567
589
|
# @param queue_name [String] The queue name.
|
568
|
-
# @param authorization_rule_name [String] The
|
590
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
569
591
|
# @param parameters [SBAuthorizationRule] The shared access authorization rule.
|
570
592
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
571
593
|
# will be added to the HTTP request.
|
@@ -583,7 +605,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
583
605
|
# Azure subscription.
|
584
606
|
# @param namespace_name [String] The namespace name
|
585
607
|
# @param queue_name [String] The queue name.
|
586
|
-
# @param authorization_rule_name [String] The
|
608
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
587
609
|
# @param parameters [SBAuthorizationRule] The shared access authorization rule.
|
588
610
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
589
611
|
# to the HTTP request.
|
@@ -667,7 +689,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
667
689
|
# Azure subscription.
|
668
690
|
# @param namespace_name [String] The namespace name
|
669
691
|
# @param queue_name [String] The queue name.
|
670
|
-
# @param authorization_rule_name [String] The
|
692
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
671
693
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
672
694
|
# will be added to the HTTP request.
|
673
695
|
#
|
@@ -684,7 +706,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
684
706
|
# Azure subscription.
|
685
707
|
# @param namespace_name [String] The namespace name
|
686
708
|
# @param queue_name [String] The queue name.
|
687
|
-
# @param authorization_rule_name [String] The
|
709
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
688
710
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
689
711
|
# will be added to the HTTP request.
|
690
712
|
#
|
@@ -701,7 +723,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
701
723
|
# Azure subscription.
|
702
724
|
# @param namespace_name [String] The namespace name
|
703
725
|
# @param queue_name [String] The queue name.
|
704
|
-
# @param authorization_rule_name [String] The
|
726
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
705
727
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
706
728
|
# to the HTTP request.
|
707
729
|
#
|
@@ -766,7 +788,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
766
788
|
# Azure subscription.
|
767
789
|
# @param namespace_name [String] The namespace name
|
768
790
|
# @param queue_name [String] The queue name.
|
769
|
-
# @param authorization_rule_name [String] The
|
791
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
770
792
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
771
793
|
# will be added to the HTTP request.
|
772
794
|
#
|
@@ -784,7 +806,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
784
806
|
# Azure subscription.
|
785
807
|
# @param namespace_name [String] The namespace name
|
786
808
|
# @param queue_name [String] The queue name.
|
787
|
-
# @param authorization_rule_name [String] The
|
809
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
788
810
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
789
811
|
# will be added to the HTTP request.
|
790
812
|
#
|
@@ -801,7 +823,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
801
823
|
# Azure subscription.
|
802
824
|
# @param namespace_name [String] The namespace name
|
803
825
|
# @param queue_name [String] The queue name.
|
804
|
-
# @param authorization_rule_name [String] The
|
826
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
805
827
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
806
828
|
# to the HTTP request.
|
807
829
|
#
|
@@ -876,7 +898,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
876
898
|
# Azure subscription.
|
877
899
|
# @param namespace_name [String] The namespace name
|
878
900
|
# @param queue_name [String] The queue name.
|
879
|
-
# @param authorization_rule_name [String] The
|
901
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
880
902
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
881
903
|
# will be added to the HTTP request.
|
882
904
|
#
|
@@ -894,7 +916,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
894
916
|
# Azure subscription.
|
895
917
|
# @param namespace_name [String] The namespace name
|
896
918
|
# @param queue_name [String] The queue name.
|
897
|
-
# @param authorization_rule_name [String] The
|
919
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
898
920
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
899
921
|
# will be added to the HTTP request.
|
900
922
|
#
|
@@ -911,7 +933,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
911
933
|
# Azure subscription.
|
912
934
|
# @param namespace_name [String] The namespace name
|
913
935
|
# @param queue_name [String] The queue name.
|
914
|
-
# @param authorization_rule_name [String] The
|
936
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
915
937
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
916
938
|
# to the HTTP request.
|
917
939
|
#
|
@@ -986,7 +1008,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
986
1008
|
# Azure subscription.
|
987
1009
|
# @param namespace_name [String] The namespace name
|
988
1010
|
# @param queue_name [String] The queue name.
|
989
|
-
# @param authorization_rule_name [String] The
|
1011
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
990
1012
|
# @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
|
991
1013
|
# regenerate the authorization rule.
|
992
1014
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -1006,7 +1028,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
1006
1028
|
# Azure subscription.
|
1007
1029
|
# @param namespace_name [String] The namespace name
|
1008
1030
|
# @param queue_name [String] The queue name.
|
1009
|
-
# @param authorization_rule_name [String] The
|
1031
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
1010
1032
|
# @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
|
1011
1033
|
# regenerate the authorization rule.
|
1012
1034
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -1025,7 +1047,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
1025
1047
|
# Azure subscription.
|
1026
1048
|
# @param namespace_name [String] The namespace name
|
1027
1049
|
# @param queue_name [String] The queue name.
|
1028
|
-
# @param authorization_rule_name [String] The
|
1050
|
+
# @param authorization_rule_name [String] The authorization rule name.
|
1029
1051
|
# @param parameters [RegenerateAccessKeyParameters] Parameters supplied to
|
1030
1052
|
# regenerate the authorization rule.
|
1031
1053
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -1285,14 +1307,20 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
1285
1307
|
# @param resource_group_name [String] Name of the Resource group within the
|
1286
1308
|
# Azure subscription.
|
1287
1309
|
# @param namespace_name [String] The namespace name
|
1310
|
+
# @param skip [Integer] Skip is only used if a previous operation returned a
|
1311
|
+
# partial result. If a previous response contains a nextLink element, the value
|
1312
|
+
# of the nextLink element will include a skip parameter that specifies a
|
1313
|
+
# starting point to use for subsequent calls.
|
1314
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
1315
|
+
# recent N usageDetails.
|
1288
1316
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1289
1317
|
# will be added to the HTTP request.
|
1290
1318
|
#
|
1291
1319
|
# @return [SBQueueListResult] which provide lazy access to pages of the
|
1292
1320
|
# response.
|
1293
1321
|
#
|
1294
|
-
def list_by_namespace_as_lazy(resource_group_name, namespace_name, custom_headers:nil)
|
1295
|
-
response = list_by_namespace_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
|
1322
|
+
def list_by_namespace_as_lazy(resource_group_name, namespace_name, skip:nil, top:nil, custom_headers:nil)
|
1323
|
+
response = list_by_namespace_async(resource_group_name, namespace_name, skip:skip, top:top, custom_headers:custom_headers).value!
|
1296
1324
|
unless response.nil?
|
1297
1325
|
page = response.body
|
1298
1326
|
page.next_method = Proc.new do |next_page_link|
|
@@ -29,13 +29,19 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
29
29
|
# @param namespace_name [String] The namespace name
|
30
30
|
# @param topic_name [String] The topic name.
|
31
31
|
# @param subscription_name [String] The subscription name.
|
32
|
+
# @param skip [Integer] Skip is only used if a previous operation returned a
|
33
|
+
# partial result. If a previous response contains a nextLink element, the value
|
34
|
+
# of the nextLink element will include a skip parameter that specifies a
|
35
|
+
# starting point to use for subsequent calls.
|
36
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
37
|
+
# recent N usageDetails.
|
32
38
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
39
|
# will be added to the HTTP request.
|
34
40
|
#
|
35
41
|
# @return [Array<Rule>] operation results.
|
36
42
|
#
|
37
|
-
def list_by_subscriptions(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil)
|
38
|
-
first_page = list_by_subscriptions_as_lazy(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers)
|
43
|
+
def list_by_subscriptions(resource_group_name, namespace_name, topic_name, subscription_name, skip:nil, top:nil, custom_headers:nil)
|
44
|
+
first_page = list_by_subscriptions_as_lazy(resource_group_name, namespace_name, topic_name, subscription_name, skip:skip, top:top, custom_headers:custom_headers)
|
39
45
|
first_page.get_all_items
|
40
46
|
end
|
41
47
|
|
@@ -47,13 +53,19 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
47
53
|
# @param namespace_name [String] The namespace name
|
48
54
|
# @param topic_name [String] The topic name.
|
49
55
|
# @param subscription_name [String] The subscription name.
|
56
|
+
# @param skip [Integer] Skip is only used if a previous operation returned a
|
57
|
+
# partial result. If a previous response contains a nextLink element, the value
|
58
|
+
# of the nextLink element will include a skip parameter that specifies a
|
59
|
+
# starting point to use for subsequent calls.
|
60
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
61
|
+
# recent N usageDetails.
|
50
62
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
63
|
# will be added to the HTTP request.
|
52
64
|
#
|
53
65
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
66
|
#
|
55
|
-
def list_by_subscriptions_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil)
|
56
|
-
list_by_subscriptions_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers).value!
|
67
|
+
def list_by_subscriptions_with_http_info(resource_group_name, namespace_name, topic_name, subscription_name, skip:nil, top:nil, custom_headers:nil)
|
68
|
+
list_by_subscriptions_async(resource_group_name, namespace_name, topic_name, subscription_name, skip:skip, top:top, custom_headers:custom_headers).value!
|
57
69
|
end
|
58
70
|
|
59
71
|
#
|
@@ -64,12 +76,18 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
64
76
|
# @param namespace_name [String] The namespace name
|
65
77
|
# @param topic_name [String] The topic name.
|
66
78
|
# @param subscription_name [String] The subscription name.
|
79
|
+
# @param skip [Integer] Skip is only used if a previous operation returned a
|
80
|
+
# partial result. If a previous response contains a nextLink element, the value
|
81
|
+
# of the nextLink element will include a skip parameter that specifies a
|
82
|
+
# starting point to use for subsequent calls.
|
83
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
84
|
+
# recent N usageDetails.
|
67
85
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
86
|
# to the HTTP request.
|
69
87
|
#
|
70
88
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
89
|
#
|
72
|
-
def list_by_subscriptions_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil)
|
90
|
+
def list_by_subscriptions_async(resource_group_name, namespace_name, topic_name, subscription_name, skip:nil, top:nil, custom_headers:nil)
|
73
91
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
74
92
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
75
93
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -83,6 +101,10 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
83
101
|
fail ArgumentError, "'subscription_name' should satisfy the constraint - 'MinLength': '1'" if !subscription_name.nil? && subscription_name.length < 1
|
84
102
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
85
103
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
104
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !skip.nil? && skip > 1000
|
105
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
|
106
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000
|
107
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
86
108
|
|
87
109
|
|
88
110
|
request_headers = {}
|
@@ -98,7 +120,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
98
120
|
options = {
|
99
121
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
100
122
|
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'topicName' => topic_name,'subscriptionName' => subscription_name,'subscriptionId' => @client.subscription_id},
|
101
|
-
query_params: {'api-version' => @client.api_version},
|
123
|
+
query_params: {'api-version' => @client.api_version,'$skip' => skip,'$top' => top},
|
102
124
|
headers: request_headers.merge(custom_headers || {}),
|
103
125
|
base_url: request_url
|
104
126
|
}
|
@@ -575,13 +597,19 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
575
597
|
# @param namespace_name [String] The namespace name
|
576
598
|
# @param topic_name [String] The topic name.
|
577
599
|
# @param subscription_name [String] The subscription name.
|
600
|
+
# @param skip [Integer] Skip is only used if a previous operation returned a
|
601
|
+
# partial result. If a previous response contains a nextLink element, the value
|
602
|
+
# of the nextLink element will include a skip parameter that specifies a
|
603
|
+
# starting point to use for subsequent calls.
|
604
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
605
|
+
# recent N usageDetails.
|
578
606
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
579
607
|
# will be added to the HTTP request.
|
580
608
|
#
|
581
609
|
# @return [RuleListResult] which provide lazy access to pages of the response.
|
582
610
|
#
|
583
|
-
def list_by_subscriptions_as_lazy(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:nil)
|
584
|
-
response = list_by_subscriptions_async(resource_group_name, namespace_name, topic_name, subscription_name, custom_headers:custom_headers).value!
|
611
|
+
def list_by_subscriptions_as_lazy(resource_group_name, namespace_name, topic_name, subscription_name, skip:nil, top:nil, custom_headers:nil)
|
612
|
+
response = list_by_subscriptions_async(resource_group_name, namespace_name, topic_name, subscription_name, skip:skip, top:top, custom_headers:custom_headers).value!
|
585
613
|
unless response.nil?
|
586
614
|
page = response.body
|
587
615
|
page.next_method = Proc.new do |next_page_link|
|
@@ -25,15 +25,16 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
25
25
|
# @return [String] Client API version.
|
26
26
|
attr_reader :api_version
|
27
27
|
|
28
|
-
# @return [String]
|
28
|
+
# @return [String] The preferred language for the response.
|
29
29
|
attr_accessor :accept_language
|
30
30
|
|
31
|
-
# @return [Integer]
|
32
|
-
#
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
32
|
+
# Operations. Default value is 30.
|
33
33
|
attr_accessor :long_running_operation_retry_timeout
|
34
34
|
|
35
|
-
# @return [Boolean]
|
36
|
-
#
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
37
|
+
# generated and included in each request. Default is true.
|
37
38
|
attr_accessor :generate_client_request_id
|
38
39
|
|
39
40
|
# @return [Operations] operations
|
@@ -45,6 +46,9 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
45
46
|
# @return [DisasterRecoveryConfigs] disaster_recovery_configs
|
46
47
|
attr_reader :disaster_recovery_configs
|
47
48
|
|
49
|
+
# @return [MigrationConfigs] migration_configs
|
50
|
+
attr_reader :migration_configs
|
51
|
+
|
48
52
|
# @return [Queues] queues
|
49
53
|
attr_reader :queues
|
50
54
|
|
@@ -83,6 +87,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
83
87
|
@operations = Operations.new(self)
|
84
88
|
@namespaces = Namespaces.new(self)
|
85
89
|
@disaster_recovery_configs = DisasterRecoveryConfigs.new(self)
|
90
|
+
@migration_configs = MigrationConfigs.new(self)
|
86
91
|
@queues = Queues.new(self)
|
87
92
|
@topics = Topics.new(self)
|
88
93
|
@subscriptions = Subscriptions.new(self)
|
@@ -162,7 +167,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
162
167
|
#
|
163
168
|
def add_telemetry
|
164
169
|
sdk_information = 'azure_mgmt_service_bus'
|
165
|
-
sdk_information = "#{sdk_information}/0.
|
170
|
+
sdk_information = "#{sdk_information}/0.17.4"
|
166
171
|
add_user_agent_information(sdk_information)
|
167
172
|
end
|
168
173
|
end
|
@@ -28,13 +28,19 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
28
28
|
# Azure subscription.
|
29
29
|
# @param namespace_name [String] The namespace name
|
30
30
|
# @param topic_name [String] The topic name.
|
31
|
+
# @param skip [Integer] Skip is only used if a previous operation returned a
|
32
|
+
# partial result. If a previous response contains a nextLink element, the value
|
33
|
+
# of the nextLink element will include a skip parameter that specifies a
|
34
|
+
# starting point to use for subsequent calls.
|
35
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
36
|
+
# recent N usageDetails.
|
31
37
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
38
|
# will be added to the HTTP request.
|
33
39
|
#
|
34
40
|
# @return [Array<SBSubscription>] operation results.
|
35
41
|
#
|
36
|
-
def list_by_topic(resource_group_name, namespace_name, topic_name, custom_headers:nil)
|
37
|
-
first_page = list_by_topic_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers)
|
42
|
+
def list_by_topic(resource_group_name, namespace_name, topic_name, skip:nil, top:nil, custom_headers:nil)
|
43
|
+
first_page = list_by_topic_as_lazy(resource_group_name, namespace_name, topic_name, skip:skip, top:top, custom_headers:custom_headers)
|
38
44
|
first_page.get_all_items
|
39
45
|
end
|
40
46
|
|
@@ -45,13 +51,19 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
45
51
|
# Azure subscription.
|
46
52
|
# @param namespace_name [String] The namespace name
|
47
53
|
# @param topic_name [String] The topic name.
|
54
|
+
# @param skip [Integer] Skip is only used if a previous operation returned a
|
55
|
+
# partial result. If a previous response contains a nextLink element, the value
|
56
|
+
# of the nextLink element will include a skip parameter that specifies a
|
57
|
+
# starting point to use for subsequent calls.
|
58
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
59
|
+
# recent N usageDetails.
|
48
60
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
61
|
# will be added to the HTTP request.
|
50
62
|
#
|
51
63
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
64
|
#
|
53
|
-
def list_by_topic_with_http_info(resource_group_name, namespace_name, topic_name, custom_headers:nil)
|
54
|
-
list_by_topic_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value!
|
65
|
+
def list_by_topic_with_http_info(resource_group_name, namespace_name, topic_name, skip:nil, top:nil, custom_headers:nil)
|
66
|
+
list_by_topic_async(resource_group_name, namespace_name, topic_name, skip:skip, top:top, custom_headers:custom_headers).value!
|
55
67
|
end
|
56
68
|
|
57
69
|
#
|
@@ -61,12 +73,18 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
61
73
|
# Azure subscription.
|
62
74
|
# @param namespace_name [String] The namespace name
|
63
75
|
# @param topic_name [String] The topic name.
|
76
|
+
# @param skip [Integer] Skip is only used if a previous operation returned a
|
77
|
+
# partial result. If a previous response contains a nextLink element, the value
|
78
|
+
# of the nextLink element will include a skip parameter that specifies a
|
79
|
+
# starting point to use for subsequent calls.
|
80
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
81
|
+
# recent N usageDetails.
|
64
82
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
65
83
|
# to the HTTP request.
|
66
84
|
#
|
67
85
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
86
|
#
|
69
|
-
def list_by_topic_async(resource_group_name, namespace_name, topic_name, custom_headers:nil)
|
87
|
+
def list_by_topic_async(resource_group_name, namespace_name, topic_name, skip:nil, top:nil, custom_headers:nil)
|
70
88
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
89
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
72
90
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -77,6 +95,10 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
77
95
|
fail ArgumentError, "'topic_name' should satisfy the constraint - 'MinLength': '1'" if !topic_name.nil? && topic_name.length < 1
|
78
96
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
79
97
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
98
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !skip.nil? && skip > 1000
|
99
|
+
fail ArgumentError, "'skip' should satisfy the constraint - 'InclusiveMinimum': '0'" if !skip.nil? && skip < 0
|
100
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMaximum': '1000'" if !top.nil? && top > 1000
|
101
|
+
fail ArgumentError, "'top' should satisfy the constraint - 'InclusiveMinimum': '1'" if !top.nil? && top < 1
|
80
102
|
|
81
103
|
|
82
104
|
request_headers = {}
|
@@ -92,7 +114,7 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
92
114
|
options = {
|
93
115
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
94
116
|
path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'topicName' => topic_name,'subscriptionId' => @client.subscription_id},
|
95
|
-
query_params: {'api-version' => @client.api_version},
|
117
|
+
query_params: {'api-version' => @client.api_version,'$skip' => skip,'$top' => top},
|
96
118
|
headers: request_headers.merge(custom_headers || {}),
|
97
119
|
base_url: request_url
|
98
120
|
}
|
@@ -553,14 +575,20 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
553
575
|
# Azure subscription.
|
554
576
|
# @param namespace_name [String] The namespace name
|
555
577
|
# @param topic_name [String] The topic name.
|
578
|
+
# @param skip [Integer] Skip is only used if a previous operation returned a
|
579
|
+
# partial result. If a previous response contains a nextLink element, the value
|
580
|
+
# of the nextLink element will include a skip parameter that specifies a
|
581
|
+
# starting point to use for subsequent calls.
|
582
|
+
# @param top [Integer] May be used to limit the number of results to the most
|
583
|
+
# recent N usageDetails.
|
556
584
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
557
585
|
# will be added to the HTTP request.
|
558
586
|
#
|
559
587
|
# @return [SBSubscriptionListResult] which provide lazy access to pages of the
|
560
588
|
# response.
|
561
589
|
#
|
562
|
-
def list_by_topic_as_lazy(resource_group_name, namespace_name, topic_name, custom_headers:nil)
|
563
|
-
response = list_by_topic_async(resource_group_name, namespace_name, topic_name, custom_headers:custom_headers).value!
|
590
|
+
def list_by_topic_as_lazy(resource_group_name, namespace_name, topic_name, skip:nil, top:nil, custom_headers:nil)
|
591
|
+
response = list_by_topic_async(resource_group_name, namespace_name, topic_name, skip:skip, top:top, custom_headers:custom_headers).value!
|
564
592
|
unless response.nil?
|
565
593
|
page = response.body
|
566
594
|
page.next_method = Proc.new do |next_page_link|
|