azure_mgmt_service_bus 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/azure_mgmt_service_bus.rb +5 -0
- data/lib/generated/azure_mgmt_service_bus.rb +57 -0
- data/lib/generated/azure_mgmt_service_bus/models/access_rights.rb +17 -0
- data/lib/generated/azure_mgmt_service_bus/models/entity_availability_status.rb +19 -0
- data/lib/generated/azure_mgmt_service_bus/models/entity_status.rb +23 -0
- data/lib/generated/azure_mgmt_service_bus/models/message_count_details.rb +86 -0
- data/lib/generated/azure_mgmt_service_bus/models/namespace_create_or_update_parameters.rb +147 -0
- data/lib/generated/azure_mgmt_service_bus/models/namespace_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_service_bus/models/namespace_resource.rb +165 -0
- data/lib/generated/azure_mgmt_service_bus/models/namespace_state.rb +27 -0
- data/lib/generated/azure_mgmt_service_bus/models/policykey.rb +16 -0
- data/lib/generated/azure_mgmt_service_bus/models/queue_create_or_update_parameters.rb +301 -0
- data/lib/generated/azure_mgmt_service_bus/models/queue_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_service_bus/models/queue_resource.rb +326 -0
- data/lib/generated/azure_mgmt_service_bus/models/regenerate_keys_parameters.rb +46 -0
- data/lib/generated/azure_mgmt_service_bus/models/resource_list_keys.rb +88 -0
- data/lib/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_create_or_update_parameters.rb +74 -0
- data/lib/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_list_result.rb +97 -0
- data/lib/generated/azure_mgmt_service_bus/models/shared_access_authorization_rule_resource.rb +97 -0
- data/lib/generated/azure_mgmt_service_bus/models/sku.rb +66 -0
- data/lib/generated/azure_mgmt_service_bus/models/sku_name.rb +17 -0
- data/lib/generated/azure_mgmt_service_bus/models/sku_tier.rb +17 -0
- data/lib/generated/azure_mgmt_service_bus/models/subscription_create_or_update_parameters.rb +232 -0
- data/lib/generated/azure_mgmt_service_bus/models/subscription_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_service_bus/models/subscription_resource.rb +257 -0
- data/lib/generated/azure_mgmt_service_bus/models/topic_create_or_update_parameters.rb +288 -0
- data/lib/generated/azure_mgmt_service_bus/models/topic_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_service_bus/models/topic_resource.rb +313 -0
- data/lib/generated/azure_mgmt_service_bus/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_service_bus/namespaces.rb +1494 -0
- data/lib/generated/azure_mgmt_service_bus/queues.rb +1236 -0
- data/lib/generated/azure_mgmt_service_bus/service_bus_management_client.rb +144 -0
- data/lib/generated/azure_mgmt_service_bus/subscriptions.rb +533 -0
- data/lib/generated/azure_mgmt_service_bus/topics.rb +1236 -0
- data/lib/generated/azure_mgmt_service_bus/version.rb +8 -0
- metadata +150 -0
@@ -0,0 +1,94 @@
|
|
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::ServiceBus
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response to the List Queues operation.
|
10
|
+
#
|
11
|
+
class QueueListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<QueueResource>] Result of the List Queues operation.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] Link to the next set of results. Not empty if Value
|
19
|
+
# contains incomplete list of queues.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<QueueResource>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [QueueListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for QueueListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'QueueListResult',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'QueueListResult',
|
65
|
+
model_properties: {
|
66
|
+
value: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'value',
|
69
|
+
type: {
|
70
|
+
name: 'Sequence',
|
71
|
+
element: {
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'QueueResourceElementType',
|
74
|
+
type: {
|
75
|
+
name: 'Composite',
|
76
|
+
class_name: 'QueueResource'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
next_link: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'nextLink',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,326 @@
|
|
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::ServiceBus
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Description of queue Resource.
|
10
|
+
#
|
11
|
+
class QueueResource < MsRestAzure::Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The duration of a peek-lock; that is, the amount of
|
16
|
+
# time that the message is locked for other receivers. The maximum value
|
17
|
+
# for LockDuration is 5 minutes; the default value is 1 minute.
|
18
|
+
attr_accessor :lock_duration
|
19
|
+
|
20
|
+
# @return [DateTime] Last time a message was sent, or the last time there
|
21
|
+
# was a receive request to this queue.
|
22
|
+
attr_accessor :accessed_at
|
23
|
+
|
24
|
+
# @return [String] the TimeSpan idle interval after which the queue is
|
25
|
+
# automatically deleted. The minimum duration is 5 minutes.
|
26
|
+
attr_accessor :auto_delete_on_idle
|
27
|
+
|
28
|
+
# @return [EntityAvailabilityStatus] Entity availability status for the
|
29
|
+
# queue. Possible values include: 'Available', 'Limited', 'Renaming',
|
30
|
+
# 'Restoring', 'Unknown'
|
31
|
+
attr_accessor :entity_availability_status
|
32
|
+
|
33
|
+
# @return [DateTime] The exact time the message was created.
|
34
|
+
attr_accessor :created_at
|
35
|
+
|
36
|
+
# @return [String] The default message time to live value. This is the
|
37
|
+
# duration after which the message expires, starting from when the
|
38
|
+
# message is sent to Service Bus. This is the default value used when
|
39
|
+
# TimeToLive is not set on a message itself.
|
40
|
+
attr_accessor :default_message_time_to_live
|
41
|
+
|
42
|
+
# @return [String] TimeSpan structure that defines the duration of the
|
43
|
+
# duplicate detection history. The default value is 10 minutes.
|
44
|
+
attr_accessor :duplicate_detection_history_time_window
|
45
|
+
|
46
|
+
# @return [Boolean] A value that indicates whether server-side batched
|
47
|
+
# operations are enabled.
|
48
|
+
attr_accessor :enable_batched_operations
|
49
|
+
|
50
|
+
# @return [Boolean] A value that indicates whether this queue has dead
|
51
|
+
# letter support when a message expires.
|
52
|
+
attr_accessor :dead_lettering_on_message_expiration
|
53
|
+
|
54
|
+
# @return [Boolean] A value that indicates whether Express Entities are
|
55
|
+
# enabled. An express queue holds a message in memory temporarily before
|
56
|
+
# writing it to persistent storage.
|
57
|
+
attr_accessor :enable_express
|
58
|
+
|
59
|
+
# @return [Boolean] A value that indicates whether the queue is to be
|
60
|
+
# partitioned across multiple message brokers.
|
61
|
+
attr_accessor :enable_partitioning
|
62
|
+
|
63
|
+
# @return [Boolean] A value that indicates whether the message is
|
64
|
+
# accessible anonymously.
|
65
|
+
attr_accessor :is_anonymous_accessible
|
66
|
+
|
67
|
+
# @return [Integer] The maximum delivery count. A message is
|
68
|
+
# automatically deadlettered after this number of deliveries.
|
69
|
+
attr_accessor :max_delivery_count
|
70
|
+
|
71
|
+
# @return [Integer] The maximum size of the queue in megabytes, which is
|
72
|
+
# the size of memory allocated for the queue.
|
73
|
+
attr_accessor :max_size_in_megabytes
|
74
|
+
|
75
|
+
# @return [Integer] The number of messages in the queue.
|
76
|
+
attr_accessor :message_count
|
77
|
+
|
78
|
+
# @return [MessageCountDetails]
|
79
|
+
attr_accessor :count_details
|
80
|
+
|
81
|
+
# @return [Boolean] A value indicating if this queue requires duplicate
|
82
|
+
# detection.
|
83
|
+
attr_accessor :requires_duplicate_detection
|
84
|
+
|
85
|
+
# @return [Boolean] A value that indicates whether the queue supports the
|
86
|
+
# concept of sessions.
|
87
|
+
attr_accessor :requires_session
|
88
|
+
|
89
|
+
# @return [Integer] The size of the queue, in bytes.
|
90
|
+
attr_accessor :size_in_bytes
|
91
|
+
|
92
|
+
# @return [EntityStatus] Enumerates the possible values for the status of
|
93
|
+
# a messaging entity. Possible values include: 'Active', 'Creating',
|
94
|
+
# 'Deleting', 'Disabled', 'ReceiveDisabled', 'Renaming', 'Restoring',
|
95
|
+
# 'SendDisabled', 'Unknown'
|
96
|
+
attr_accessor :status
|
97
|
+
|
98
|
+
# @return [Boolean] A value that indicates whether the queue supports
|
99
|
+
# ordering.
|
100
|
+
attr_accessor :support_ordering
|
101
|
+
|
102
|
+
# @return [DateTime] The exact time the message was updated.
|
103
|
+
attr_accessor :updated_at
|
104
|
+
|
105
|
+
|
106
|
+
#
|
107
|
+
# Mapper for QueueResource class as Ruby Hash.
|
108
|
+
# This will be used for serialization/deserialization.
|
109
|
+
#
|
110
|
+
def self.mapper()
|
111
|
+
{
|
112
|
+
required: false,
|
113
|
+
serialized_name: 'QueueResource',
|
114
|
+
type: {
|
115
|
+
name: 'Composite',
|
116
|
+
class_name: 'QueueResource',
|
117
|
+
model_properties: {
|
118
|
+
id: {
|
119
|
+
required: false,
|
120
|
+
read_only: true,
|
121
|
+
serialized_name: 'id',
|
122
|
+
type: {
|
123
|
+
name: 'String'
|
124
|
+
}
|
125
|
+
},
|
126
|
+
name: {
|
127
|
+
required: false,
|
128
|
+
read_only: true,
|
129
|
+
serialized_name: 'name',
|
130
|
+
type: {
|
131
|
+
name: 'String'
|
132
|
+
}
|
133
|
+
},
|
134
|
+
type: {
|
135
|
+
required: false,
|
136
|
+
read_only: true,
|
137
|
+
serialized_name: 'type',
|
138
|
+
type: {
|
139
|
+
name: 'String'
|
140
|
+
}
|
141
|
+
},
|
142
|
+
location: {
|
143
|
+
required: true,
|
144
|
+
serialized_name: 'location',
|
145
|
+
type: {
|
146
|
+
name: 'String'
|
147
|
+
}
|
148
|
+
},
|
149
|
+
tags: {
|
150
|
+
required: false,
|
151
|
+
serialized_name: 'tags',
|
152
|
+
type: {
|
153
|
+
name: 'Dictionary',
|
154
|
+
value: {
|
155
|
+
required: false,
|
156
|
+
serialized_name: 'StringElementType',
|
157
|
+
type: {
|
158
|
+
name: 'String'
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
},
|
163
|
+
lock_duration: {
|
164
|
+
required: false,
|
165
|
+
serialized_name: 'properties.lockDuration ',
|
166
|
+
type: {
|
167
|
+
name: 'String'
|
168
|
+
}
|
169
|
+
},
|
170
|
+
accessed_at: {
|
171
|
+
required: false,
|
172
|
+
serialized_name: 'properties.accessedAt',
|
173
|
+
type: {
|
174
|
+
name: 'DateTime'
|
175
|
+
}
|
176
|
+
},
|
177
|
+
auto_delete_on_idle: {
|
178
|
+
required: false,
|
179
|
+
serialized_name: 'properties.autoDeleteOnIdle',
|
180
|
+
type: {
|
181
|
+
name: 'String'
|
182
|
+
}
|
183
|
+
},
|
184
|
+
entity_availability_status: {
|
185
|
+
required: false,
|
186
|
+
serialized_name: 'properties.entityAvailabilityStatus ',
|
187
|
+
type: {
|
188
|
+
name: 'Enum',
|
189
|
+
module: 'EntityAvailabilityStatus'
|
190
|
+
}
|
191
|
+
},
|
192
|
+
created_at: {
|
193
|
+
required: false,
|
194
|
+
serialized_name: 'properties.createdAt',
|
195
|
+
type: {
|
196
|
+
name: 'DateTime'
|
197
|
+
}
|
198
|
+
},
|
199
|
+
default_message_time_to_live: {
|
200
|
+
required: false,
|
201
|
+
serialized_name: 'properties.defaultMessageTimeToLive',
|
202
|
+
type: {
|
203
|
+
name: 'String'
|
204
|
+
}
|
205
|
+
},
|
206
|
+
duplicate_detection_history_time_window: {
|
207
|
+
required: false,
|
208
|
+
serialized_name: 'properties.duplicateDetectionHistoryTimeWindow ',
|
209
|
+
type: {
|
210
|
+
name: 'String'
|
211
|
+
}
|
212
|
+
},
|
213
|
+
enable_batched_operations: {
|
214
|
+
required: false,
|
215
|
+
serialized_name: 'properties.enableBatchedOperations',
|
216
|
+
type: {
|
217
|
+
name: 'Boolean'
|
218
|
+
}
|
219
|
+
},
|
220
|
+
dead_lettering_on_message_expiration: {
|
221
|
+
required: false,
|
222
|
+
serialized_name: 'properties.deadLetteringOnMessageExpiration',
|
223
|
+
type: {
|
224
|
+
name: 'Boolean'
|
225
|
+
}
|
226
|
+
},
|
227
|
+
enable_express: {
|
228
|
+
required: false,
|
229
|
+
serialized_name: 'properties.enableExpress',
|
230
|
+
type: {
|
231
|
+
name: 'Boolean'
|
232
|
+
}
|
233
|
+
},
|
234
|
+
enable_partitioning: {
|
235
|
+
required: false,
|
236
|
+
serialized_name: 'properties.enablePartitioning',
|
237
|
+
type: {
|
238
|
+
name: 'Boolean'
|
239
|
+
}
|
240
|
+
},
|
241
|
+
is_anonymous_accessible: {
|
242
|
+
required: false,
|
243
|
+
serialized_name: 'properties.isAnonymousAccessible',
|
244
|
+
type: {
|
245
|
+
name: 'Boolean'
|
246
|
+
}
|
247
|
+
},
|
248
|
+
max_delivery_count: {
|
249
|
+
required: false,
|
250
|
+
serialized_name: 'properties.maxDeliveryCount ',
|
251
|
+
type: {
|
252
|
+
name: 'Number'
|
253
|
+
}
|
254
|
+
},
|
255
|
+
max_size_in_megabytes: {
|
256
|
+
required: false,
|
257
|
+
serialized_name: 'properties.maxSizeInMegabytes',
|
258
|
+
type: {
|
259
|
+
name: 'Number'
|
260
|
+
}
|
261
|
+
},
|
262
|
+
message_count: {
|
263
|
+
required: false,
|
264
|
+
serialized_name: 'properties.messageCount ',
|
265
|
+
type: {
|
266
|
+
name: 'Number'
|
267
|
+
}
|
268
|
+
},
|
269
|
+
count_details: {
|
270
|
+
required: false,
|
271
|
+
serialized_name: 'properties.countDetails',
|
272
|
+
type: {
|
273
|
+
name: 'Composite',
|
274
|
+
class_name: 'MessageCountDetails'
|
275
|
+
}
|
276
|
+
},
|
277
|
+
requires_duplicate_detection: {
|
278
|
+
required: false,
|
279
|
+
serialized_name: 'properties.requiresDuplicateDetection',
|
280
|
+
type: {
|
281
|
+
name: 'Boolean'
|
282
|
+
}
|
283
|
+
},
|
284
|
+
requires_session: {
|
285
|
+
required: false,
|
286
|
+
serialized_name: 'properties.requiresSession',
|
287
|
+
type: {
|
288
|
+
name: 'Boolean'
|
289
|
+
}
|
290
|
+
},
|
291
|
+
size_in_bytes: {
|
292
|
+
required: false,
|
293
|
+
serialized_name: 'properties.sizeInBytes ',
|
294
|
+
type: {
|
295
|
+
name: 'Number'
|
296
|
+
}
|
297
|
+
},
|
298
|
+
status: {
|
299
|
+
required: false,
|
300
|
+
serialized_name: 'properties.status',
|
301
|
+
type: {
|
302
|
+
name: 'Enum',
|
303
|
+
module: 'EntityStatus'
|
304
|
+
}
|
305
|
+
},
|
306
|
+
support_ordering: {
|
307
|
+
required: false,
|
308
|
+
serialized_name: 'properties.supportOrdering',
|
309
|
+
type: {
|
310
|
+
name: 'Boolean'
|
311
|
+
}
|
312
|
+
},
|
313
|
+
updated_at: {
|
314
|
+
required: false,
|
315
|
+
serialized_name: 'properties.updatedAt',
|
316
|
+
type: {
|
317
|
+
name: 'DateTime'
|
318
|
+
}
|
319
|
+
}
|
320
|
+
}
|
321
|
+
}
|
322
|
+
}
|
323
|
+
end
|
324
|
+
end
|
325
|
+
end
|
326
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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::ServiceBus
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters supplied to the Regenerate Authorization Rule operation.
|
10
|
+
#
|
11
|
+
class RegenerateKeysParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Policykey] Key that needs to be regenerated. Possible values
|
16
|
+
# include: 'PrimaryKey', 'SecondaryKey'
|
17
|
+
attr_accessor :policykey
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for RegenerateKeysParameters class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'RegenerateKeysParameters',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'RegenerateKeysParameters',
|
31
|
+
model_properties: {
|
32
|
+
policykey: {
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'Policykey',
|
35
|
+
type: {
|
36
|
+
name: 'Enum',
|
37
|
+
module: 'Policykey'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|