azure_mgmt_service_bus 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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_resource.rb +0 -12
- data/lib/2015-08-01/generated/azure_mgmt_service_bus/queues.rb +111 -0
- 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 +111 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus.rb +20 -17
- 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 +12 -0
- 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/migration_config_list_result.rb +100 -0
- data/lib/2017-04-01/generated/azure_mgmt_service_bus/models/migration_config_properties.rb +109 -0
- 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/queues.rb +36 -8
- 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 +36 -8
- data/lib/azure_mgmt_service_bus.rb +1 -1
- data/lib/profiles/latest/modules/servicebus_profile_module.rb +64 -54
- data/lib/version.rb +1 -1
- metadata +8 -5
@@ -18,6 +18,9 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
18
18
|
# 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed'
|
19
19
|
attr_accessor :provisioning_state
|
20
20
|
|
21
|
+
# @return [Integer] Number of entities pending to be replicated.
|
22
|
+
attr_accessor :pending_replication_operations_count
|
23
|
+
|
21
24
|
# @return [String] ARM Id of the Primary/Secondary eventhub namespace
|
22
25
|
# name, which is part of GEO DR pairning
|
23
26
|
attr_accessor :partner_namespace
|
@@ -82,6 +85,15 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
82
85
|
module: 'ProvisioningStateDR'
|
83
86
|
}
|
84
87
|
},
|
88
|
+
pending_replication_operations_count: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
read_only: true,
|
92
|
+
serialized_name: 'properties.pendingReplicationOperationsCount',
|
93
|
+
type: {
|
94
|
+
name: 'Number'
|
95
|
+
}
|
96
|
+
},
|
85
97
|
partner_namespace: {
|
86
98
|
client_side_validation: true,
|
87
99
|
required: false,
|
@@ -12,6 +12,9 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
# @return [Hash{String => String}] dictionary object for custom filters
|
16
|
+
attr_accessor :properties
|
17
|
+
|
15
18
|
# @return [String] Identifier of the correlation.
|
16
19
|
attr_accessor :correlation_id
|
17
20
|
|
@@ -54,6 +57,22 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
54
57
|
name: 'Composite',
|
55
58
|
class_name: 'CorrelationFilter',
|
56
59
|
model_properties: {
|
60
|
+
properties: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'properties',
|
64
|
+
type: {
|
65
|
+
name: 'Dictionary',
|
66
|
+
value: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'StringElementType',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
},
|
57
76
|
correlation_id: {
|
58
77
|
client_side_validation: true,
|
59
78
|
required: false,
|
@@ -0,0 +1,100 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ServiceBus::Mgmt::V2017_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The result of the List migrationConfigurations operation.
|
10
|
+
#
|
11
|
+
class MigrationConfigListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<MigrationConfigProperties>] List of Migration Configs
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] Link to the next set of results. Not empty if Value
|
20
|
+
# contains incomplete list of migrationConfigurations
|
21
|
+
attr_accessor :next_link
|
22
|
+
|
23
|
+
# return [Proc] with next page method call.
|
24
|
+
attr_accessor :next_method
|
25
|
+
|
26
|
+
#
|
27
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
28
|
+
#
|
29
|
+
# @return [Array<MigrationConfigProperties>] operation results.
|
30
|
+
#
|
31
|
+
def get_all_items
|
32
|
+
items = @value
|
33
|
+
page = self
|
34
|
+
while page.next_link != nil do
|
35
|
+
page = page.get_next_page
|
36
|
+
items.concat(page.value)
|
37
|
+
end
|
38
|
+
items
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets the next page of results.
|
43
|
+
#
|
44
|
+
# @return [MigrationConfigListResult] with next page content.
|
45
|
+
#
|
46
|
+
def get_next_page
|
47
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
48
|
+
unless response.nil?
|
49
|
+
@next_link = response.body.next_link
|
50
|
+
@value = response.body.value
|
51
|
+
self
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Mapper for MigrationConfigListResult class as Ruby Hash.
|
57
|
+
# This will be used for serialization/deserialization.
|
58
|
+
#
|
59
|
+
def self.mapper()
|
60
|
+
{
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'MigrationConfigListResult',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'MigrationConfigListResult',
|
67
|
+
model_properties: {
|
68
|
+
value: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'value',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'MigrationConfigPropertiesElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'MigrationConfigProperties'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
next_link: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
read_only: true,
|
89
|
+
serialized_name: 'nextLink',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,109 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ServiceBus::Mgmt::V2017_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Single item in List or Get Migration Config operation
|
10
|
+
#
|
11
|
+
class MigrationConfigProperties < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Provisioning state of Migration Configuration
|
16
|
+
attr_accessor :provisioning_state
|
17
|
+
|
18
|
+
# @return [Integer] Number of entities pending to be replicated.
|
19
|
+
attr_accessor :pending_replication_operations_count
|
20
|
+
|
21
|
+
# @return [String] Existing premium Namespace ARM Id name which has no
|
22
|
+
# entities, will be used for migration
|
23
|
+
attr_accessor :target_namespace
|
24
|
+
|
25
|
+
# @return [String] Name to access Standard Namespace after migration
|
26
|
+
attr_accessor :post_migration_name
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for MigrationConfigProperties class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'MigrationConfigProperties',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'MigrationConfigProperties',
|
41
|
+
model_properties: {
|
42
|
+
id: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
read_only: true,
|
46
|
+
serialized_name: 'id',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
name: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
read_only: true,
|
55
|
+
serialized_name: 'name',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
type: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
read_only: true,
|
64
|
+
serialized_name: 'type',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
provisioning_state: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'properties.provisioningState',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
pending_replication_operations_count: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
read_only: true,
|
82
|
+
serialized_name: 'properties.pendingReplicationOperationsCount',
|
83
|
+
type: {
|
84
|
+
name: 'Number'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
target_namespace: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'properties.targetNamespace',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
},
|
95
|
+
post_migration_name: {
|
96
|
+
client_side_validation: true,
|
97
|
+
required: false,
|
98
|
+
serialized_name: 'properties.postMigrationName',
|
99
|
+
type: {
|
100
|
+
name: 'String'
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
@@ -75,6 +75,10 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
75
75
|
# 'Renaming', 'Unknown'
|
76
76
|
attr_accessor :status
|
77
77
|
|
78
|
+
# @return [Boolean] Value that indicates whether server-side batched
|
79
|
+
# operations are enabled.
|
80
|
+
attr_accessor :enable_batched_operations
|
81
|
+
|
78
82
|
# @return [Duration] ISO 8061 timeSpan idle interval after which the
|
79
83
|
# queue is automatically deleted. The minimum duration is 5 minutes.
|
80
84
|
attr_accessor :auto_delete_on_idle
|
@@ -263,6 +267,14 @@ module Azure::ServiceBus::Mgmt::V2017_04_01
|
|
263
267
|
module: 'EntityStatus'
|
264
268
|
}
|
265
269
|
},
|
270
|
+
enable_batched_operations: {
|
271
|
+
client_side_validation: true,
|
272
|
+
required: false,
|
273
|
+
serialized_name: 'properties.enableBatchedOperations',
|
274
|
+
type: {
|
275
|
+
name: 'Boolean'
|
276
|
+
}
|
277
|
+
},
|
266
278
|
auto_delete_on_idle: {
|
267
279
|
client_side_validation: true,
|
268
280
|
required: false,
|
@@ -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
|
}
|
@@ -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|
|