azure_mgmt_service_bus 0.11.0 → 0.12.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_service_bus.rb +24 -13
- data/lib/generated/azure_mgmt_service_bus/event_hubs.rb +229 -0
- data/lib/generated/azure_mgmt_service_bus/models/access_rights.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/models/capture_description.rb +103 -0
- data/lib/generated/azure_mgmt_service_bus/models/check_name_availability.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/models/check_name_availability_result.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/models/destination.rb +79 -0
- data/lib/generated/azure_mgmt_service_bus/models/encoding_capture_description.rb +16 -0
- data/lib/generated/azure_mgmt_service_bus/models/entity_status.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/models/event_hub_list_result.rb +96 -0
- data/lib/generated/azure_mgmt_service_bus/models/eventhub.rb +154 -0
- data/lib/generated/azure_mgmt_service_bus/models/message_count_details.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/models/operation.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/models/operation_display.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/models/operation_list_result.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions.rb +91 -0
- data/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions_list_result.rb +97 -0
- data/lib/generated/azure_mgmt_service_bus/models/premium_messaging_regions_properties.rb +58 -0
- data/lib/generated/azure_mgmt_service_bus/models/sku_name.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/models/sku_tier.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/models/tracked_resource.rb +1 -1
- data/lib/generated/azure_mgmt_service_bus/models/unavailable_reason.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/module_definition.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/namespaces.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/operations.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/premium_messaging_regions_operations.rb +215 -0
- data/lib/generated/azure_mgmt_service_bus/queues.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/regions.rb +220 -0
- data/lib/generated/azure_mgmt_service_bus/service_bus_management_client.rb +13 -0
- data/lib/generated/azure_mgmt_service_bus/subscriptions.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/topics.rb +0 -0
- data/lib/generated/azure_mgmt_service_bus/version.rb +1 -1
- metadata +15 -4
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
|
+
# Defines values for EncodingCaptureDescription
|
10
|
+
#
|
11
|
+
module EncodingCaptureDescription
|
12
|
+
Avro = "Avro"
|
13
|
+
AvroDeflate = "AvroDeflate"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
File without changes
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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 result of the List EventHubs operation.
|
10
|
+
#
|
11
|
+
class EventHubListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<Eventhub>] Result of the List EventHubs operation.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] Link to the next set of results. Not empty if Value
|
20
|
+
# contains incomplete list of EventHubs.
|
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<Eventhub>] 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 [EventHubListResult] 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 EventHubListResult class as Ruby Hash.
|
57
|
+
# This will be used for serialization/deserialization.
|
58
|
+
#
|
59
|
+
def self.mapper()
|
60
|
+
{
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'EventHubListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'EventHubListResult',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'value',
|
70
|
+
type: {
|
71
|
+
name: 'Sequence',
|
72
|
+
element: {
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'EventhubElementType',
|
75
|
+
type: {
|
76
|
+
name: 'Composite',
|
77
|
+
class_name: 'Eventhub'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
},
|
82
|
+
next_link: {
|
83
|
+
required: false,
|
84
|
+
read_only: true,
|
85
|
+
serialized_name: 'nextLink',
|
86
|
+
type: {
|
87
|
+
name: 'String'
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,154 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
|
+
# Single item in List or Get Event Hub operation
|
10
|
+
#
|
11
|
+
class Eventhub < MsRestAzure::Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<String>] Current number of shards on the Event Hub.
|
17
|
+
attr_accessor :partition_ids
|
18
|
+
|
19
|
+
# @return [DateTime] Exact time the Event Hub was created.
|
20
|
+
attr_accessor :created_at
|
21
|
+
|
22
|
+
# @return [DateTime] The exact time the message was updated.
|
23
|
+
attr_accessor :updated_at
|
24
|
+
|
25
|
+
# @return [Integer] Number of days to retain the events for this Event
|
26
|
+
# Hub, value should be 1 to 7 days
|
27
|
+
attr_accessor :message_retention_in_days
|
28
|
+
|
29
|
+
# @return [Integer] Number of partitions created for the Event Hub,
|
30
|
+
# allowed values are from 1 to 32 partitions.
|
31
|
+
attr_accessor :partition_count
|
32
|
+
|
33
|
+
# @return [EntityStatus] Enumerates the possible values for the status of
|
34
|
+
# the Event Hub. Possible values include: 'Active', 'Disabled',
|
35
|
+
# 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
|
36
|
+
# 'Renaming', 'Unknown'
|
37
|
+
attr_accessor :status
|
38
|
+
|
39
|
+
# @return [CaptureDescription] Properties of capture description
|
40
|
+
attr_accessor :capture_description
|
41
|
+
|
42
|
+
|
43
|
+
#
|
44
|
+
# Mapper for Eventhub class as Ruby Hash.
|
45
|
+
# This will be used for serialization/deserialization.
|
46
|
+
#
|
47
|
+
def self.mapper()
|
48
|
+
{
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'Eventhub',
|
51
|
+
type: {
|
52
|
+
name: 'Composite',
|
53
|
+
class_name: 'Eventhub',
|
54
|
+
model_properties: {
|
55
|
+
id: {
|
56
|
+
required: false,
|
57
|
+
read_only: true,
|
58
|
+
serialized_name: 'id',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
name: {
|
64
|
+
required: false,
|
65
|
+
read_only: true,
|
66
|
+
serialized_name: 'name',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
type: {
|
72
|
+
required: false,
|
73
|
+
read_only: true,
|
74
|
+
serialized_name: 'type',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
partition_ids: {
|
80
|
+
required: false,
|
81
|
+
read_only: true,
|
82
|
+
serialized_name: 'properties.partitionIds',
|
83
|
+
type: {
|
84
|
+
name: 'Sequence',
|
85
|
+
element: {
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'StringElementType',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
},
|
94
|
+
created_at: {
|
95
|
+
required: false,
|
96
|
+
read_only: true,
|
97
|
+
serialized_name: 'properties.createdAt',
|
98
|
+
type: {
|
99
|
+
name: 'DateTime'
|
100
|
+
}
|
101
|
+
},
|
102
|
+
updated_at: {
|
103
|
+
required: false,
|
104
|
+
read_only: true,
|
105
|
+
serialized_name: 'properties.updatedAt',
|
106
|
+
type: {
|
107
|
+
name: 'DateTime'
|
108
|
+
}
|
109
|
+
},
|
110
|
+
message_retention_in_days: {
|
111
|
+
required: false,
|
112
|
+
serialized_name: 'properties.messageRetentionInDays',
|
113
|
+
constraints: {
|
114
|
+
InclusiveMaximum: 7,
|
115
|
+
InclusiveMinimum: 1
|
116
|
+
},
|
117
|
+
type: {
|
118
|
+
name: 'Number'
|
119
|
+
}
|
120
|
+
},
|
121
|
+
partition_count: {
|
122
|
+
required: false,
|
123
|
+
serialized_name: 'properties.partitionCount',
|
124
|
+
constraints: {
|
125
|
+
InclusiveMaximum: 32,
|
126
|
+
InclusiveMinimum: 1
|
127
|
+
},
|
128
|
+
type: {
|
129
|
+
name: 'Number'
|
130
|
+
}
|
131
|
+
},
|
132
|
+
status: {
|
133
|
+
required: false,
|
134
|
+
serialized_name: 'properties.status',
|
135
|
+
type: {
|
136
|
+
name: 'Enum',
|
137
|
+
module: 'EntityStatus'
|
138
|
+
}
|
139
|
+
},
|
140
|
+
capture_description: {
|
141
|
+
required: false,
|
142
|
+
serialized_name: 'properties.captureDescription',
|
143
|
+
type: {
|
144
|
+
name: 'Composite',
|
145
|
+
class_name: 'CaptureDescription'
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
|
+
# Premium Messaging Region
|
10
|
+
#
|
11
|
+
class PremiumMessagingRegions < ResourceNamespacePatch
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [PremiumMessagingRegionsProperties]
|
17
|
+
attr_accessor :properties
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for PremiumMessagingRegions class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'PremiumMessagingRegions',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'PremiumMessagingRegions',
|
31
|
+
model_properties: {
|
32
|
+
id: {
|
33
|
+
required: false,
|
34
|
+
read_only: true,
|
35
|
+
serialized_name: 'id',
|
36
|
+
type: {
|
37
|
+
name: 'String'
|
38
|
+
}
|
39
|
+
},
|
40
|
+
name: {
|
41
|
+
required: false,
|
42
|
+
read_only: true,
|
43
|
+
serialized_name: 'name',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
type: {
|
49
|
+
required: false,
|
50
|
+
read_only: true,
|
51
|
+
serialized_name: 'type',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
location: {
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'location',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
tags: {
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'tags',
|
66
|
+
type: {
|
67
|
+
name: 'Dictionary',
|
68
|
+
value: {
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'StringElementType',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
},
|
77
|
+
properties: {
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'properties',
|
80
|
+
type: {
|
81
|
+
name: 'Composite',
|
82
|
+
class_name: 'PremiumMessagingRegionsProperties'
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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 of the List PremiumMessagingRegions operation.
|
10
|
+
#
|
11
|
+
class PremiumMessagingRegionsListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<PremiumMessagingRegions>] Result of the List
|
17
|
+
# PremiumMessagingRegions type.
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] Link to the next set of results. Not empty if Value
|
21
|
+
# contains incomplete list of PremiumMessagingRegions.
|
22
|
+
attr_accessor :next_link
|
23
|
+
|
24
|
+
# return [Proc] with next page method call.
|
25
|
+
attr_accessor :next_method
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
29
|
+
#
|
30
|
+
# @return [Array<PremiumMessagingRegions>] operation results.
|
31
|
+
#
|
32
|
+
def get_all_items
|
33
|
+
items = @value
|
34
|
+
page = self
|
35
|
+
while page.next_link != nil do
|
36
|
+
page = page.get_next_page
|
37
|
+
items.concat(page.value)
|
38
|
+
end
|
39
|
+
items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets the next page of results.
|
44
|
+
#
|
45
|
+
# @return [PremiumMessagingRegionsListResult] with next page content.
|
46
|
+
#
|
47
|
+
def get_next_page
|
48
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
49
|
+
unless response.nil?
|
50
|
+
@next_link = response.body.next_link
|
51
|
+
@value = response.body.value
|
52
|
+
self
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Mapper for PremiumMessagingRegionsListResult class as Ruby Hash.
|
58
|
+
# This will be used for serialization/deserialization.
|
59
|
+
#
|
60
|
+
def self.mapper()
|
61
|
+
{
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'PremiumMessagingRegionsListResult',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'PremiumMessagingRegionsListResult',
|
67
|
+
model_properties: {
|
68
|
+
value: {
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'value',
|
71
|
+
type: {
|
72
|
+
name: 'Sequence',
|
73
|
+
element: {
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'PremiumMessagingRegionsElementType',
|
76
|
+
type: {
|
77
|
+
name: 'Composite',
|
78
|
+
class_name: 'PremiumMessagingRegions'
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
},
|
83
|
+
next_link: {
|
84
|
+
required: false,
|
85
|
+
read_only: true,
|
86
|
+
serialized_name: 'nextLink',
|
87
|
+
type: {
|
88
|
+
name: 'String'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|