azure_mgmt_event_hub 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/azure_mgmt_event_hub.rb +5 -0
- data/lib/generated/azure_mgmt_event_hub/consumer_groups.rb +543 -0
- data/lib/generated/azure_mgmt_event_hub/event_hub_management_client.rb +140 -0
- data/lib/generated/azure_mgmt_event_hub/event_hubs.rb +1243 -0
- data/lib/generated/azure_mgmt_event_hub/models/access_rights.rb +17 -0
- data/lib/generated/azure_mgmt_event_hub/models/consumer_group_create_or_update_parameters.rb +104 -0
- data/lib/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_event_hub/models/consumer_group_resource.rb +119 -0
- data/lib/generated/azure_mgmt_event_hub/models/entity_status.rb +23 -0
- data/lib/generated/azure_mgmt_event_hub/models/event_hub_create_or_update_parameters.rb +75 -0
- data/lib/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_event_hub/models/event_hub_properties.rb +107 -0
- data/lib/generated/azure_mgmt_event_hub/models/event_hub_resource.rb +151 -0
- data/lib/generated/azure_mgmt_event_hub/models/namespace_create_or_update_parameters.rb +147 -0
- data/lib/generated/azure_mgmt_event_hub/models/namespace_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_event_hub/models/namespace_resource.rb +165 -0
- data/lib/generated/azure_mgmt_event_hub/models/namespace_state.rb +27 -0
- data/lib/generated/azure_mgmt_event_hub/models/policykey.rb +16 -0
- data/lib/generated/azure_mgmt_event_hub/models/regenerate_keys_parameters.rb +46 -0
- data/lib/generated/azure_mgmt_event_hub/models/resource_list_keys.rb +88 -0
- data/lib/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_create_or_update_parameters.rb +74 -0
- data/lib/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb +97 -0
- data/lib/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_resource.rb +97 -0
- data/lib/generated/azure_mgmt_event_hub/models/sku.rb +66 -0
- data/lib/generated/azure_mgmt_event_hub/models/sku_name.rb +17 -0
- data/lib/generated/azure_mgmt_event_hub/models/sku_tier.rb +17 -0
- data/lib/generated/azure_mgmt_event_hub/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_event_hub/namespaces.rb +1524 -0
- data/lib/generated/azure_mgmt_event_hub/version.rb +8 -0
- data/lib/generated/azure_mgmt_event_hub.rb +52 -0
- metadata +144 -0
@@ -0,0 +1,107 @@
|
|
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::EventHub
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class EventHubProperties
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [DateTime] Exact time the Event Hub was created.
|
17
|
+
attr_accessor :created_at
|
18
|
+
|
19
|
+
# @return [Integer] Number of days to retain the events for this Event
|
20
|
+
# Hub.
|
21
|
+
attr_accessor :message_retention_in_days
|
22
|
+
|
23
|
+
# @return [Integer] Number of partitions created for the Event Hub.
|
24
|
+
attr_accessor :partition_count
|
25
|
+
|
26
|
+
# @return [Array<String>] Current number of shards on the Event Hub.
|
27
|
+
attr_accessor :partition_ids
|
28
|
+
|
29
|
+
# @return [EntityStatus] Enumerates the possible values for the status of
|
30
|
+
# the Event Hub. Possible values include: 'Active', 'Disabled',
|
31
|
+
# 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
|
32
|
+
# 'Renaming', 'Unknown'
|
33
|
+
attr_accessor :status
|
34
|
+
|
35
|
+
# @return [DateTime] The exact time the message was updated.
|
36
|
+
attr_accessor :updated_at
|
37
|
+
|
38
|
+
|
39
|
+
#
|
40
|
+
# Mapper for EventHubProperties class as Ruby Hash.
|
41
|
+
# This will be used for serialization/deserialization.
|
42
|
+
#
|
43
|
+
def self.mapper()
|
44
|
+
{
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'EventHubProperties',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'EventHubProperties',
|
50
|
+
model_properties: {
|
51
|
+
created_at: {
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'createdAt',
|
54
|
+
type: {
|
55
|
+
name: 'DateTime'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
message_retention_in_days: {
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'messageRetentionInDays',
|
61
|
+
type: {
|
62
|
+
name: 'Number'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
partition_count: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'partitionCount',
|
68
|
+
type: {
|
69
|
+
name: 'Number'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
partition_ids: {
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'partitionIds',
|
75
|
+
type: {
|
76
|
+
name: 'Sequence',
|
77
|
+
element: {
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'StringElementType',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
status: {
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'status',
|
89
|
+
type: {
|
90
|
+
name: 'Enum',
|
91
|
+
module: 'EntityStatus'
|
92
|
+
}
|
93
|
+
},
|
94
|
+
updated_at: {
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'updatedAt',
|
97
|
+
type: {
|
98
|
+
name: 'DateTime'
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,151 @@
|
|
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::EventHub
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Description of the Event Hub resource.
|
10
|
+
#
|
11
|
+
class EventHubResource < MsRestAzure::Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [DateTime] Exact time the Event Hub was created.
|
16
|
+
attr_accessor :created_at
|
17
|
+
|
18
|
+
# @return [Integer] Number of days to retain the events for this Event
|
19
|
+
# Hub.
|
20
|
+
attr_accessor :message_retention_in_days
|
21
|
+
|
22
|
+
# @return [Integer] Number of partitions created for the Event Hub.
|
23
|
+
attr_accessor :partition_count
|
24
|
+
|
25
|
+
# @return [Array<String>] Current number of shards on the Event Hub.
|
26
|
+
attr_accessor :partition_ids
|
27
|
+
|
28
|
+
# @return [EntityStatus] Enumerates the possible values for the status of
|
29
|
+
# the Event Hub. Possible values include: 'Active', 'Disabled',
|
30
|
+
# 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting',
|
31
|
+
# 'Renaming', 'Unknown'
|
32
|
+
attr_accessor :status
|
33
|
+
|
34
|
+
# @return [DateTime] The exact time the message was updated.
|
35
|
+
attr_accessor :updated_at
|
36
|
+
|
37
|
+
|
38
|
+
#
|
39
|
+
# Mapper for EventHubResource class as Ruby Hash.
|
40
|
+
# This will be used for serialization/deserialization.
|
41
|
+
#
|
42
|
+
def self.mapper()
|
43
|
+
{
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'EventHubResource',
|
46
|
+
type: {
|
47
|
+
name: 'Composite',
|
48
|
+
class_name: 'EventHubResource',
|
49
|
+
model_properties: {
|
50
|
+
id: {
|
51
|
+
required: false,
|
52
|
+
read_only: true,
|
53
|
+
serialized_name: 'id',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
name: {
|
59
|
+
required: false,
|
60
|
+
read_only: true,
|
61
|
+
serialized_name: 'name',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
type: {
|
67
|
+
required: false,
|
68
|
+
read_only: true,
|
69
|
+
serialized_name: 'type',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
},
|
74
|
+
location: {
|
75
|
+
required: true,
|
76
|
+
serialized_name: 'location',
|
77
|
+
type: {
|
78
|
+
name: 'String'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
tags: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'tags',
|
84
|
+
type: {
|
85
|
+
name: 'Dictionary',
|
86
|
+
value: {
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'StringElementType',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
},
|
95
|
+
created_at: {
|
96
|
+
required: false,
|
97
|
+
serialized_name: 'properties.createdAt',
|
98
|
+
type: {
|
99
|
+
name: 'DateTime'
|
100
|
+
}
|
101
|
+
},
|
102
|
+
message_retention_in_days: {
|
103
|
+
required: false,
|
104
|
+
serialized_name: 'properties.messageRetentionInDays',
|
105
|
+
type: {
|
106
|
+
name: 'Number'
|
107
|
+
}
|
108
|
+
},
|
109
|
+
partition_count: {
|
110
|
+
required: false,
|
111
|
+
serialized_name: 'properties.partitionCount',
|
112
|
+
type: {
|
113
|
+
name: 'Number'
|
114
|
+
}
|
115
|
+
},
|
116
|
+
partition_ids: {
|
117
|
+
required: false,
|
118
|
+
serialized_name: 'properties.partitionIds',
|
119
|
+
type: {
|
120
|
+
name: 'Sequence',
|
121
|
+
element: {
|
122
|
+
required: false,
|
123
|
+
serialized_name: 'StringElementType',
|
124
|
+
type: {
|
125
|
+
name: 'String'
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
},
|
130
|
+
status: {
|
131
|
+
required: false,
|
132
|
+
serialized_name: 'properties.status',
|
133
|
+
type: {
|
134
|
+
name: 'Enum',
|
135
|
+
module: 'EntityStatus'
|
136
|
+
}
|
137
|
+
},
|
138
|
+
updated_at: {
|
139
|
+
required: false,
|
140
|
+
serialized_name: 'properties.updatedAt',
|
141
|
+
type: {
|
142
|
+
name: 'DateTime'
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
@@ -0,0 +1,147 @@
|
|
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::EventHub
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters supplied to the Create Or Update Namespace operation.
|
10
|
+
#
|
11
|
+
class NamespaceCreateOrUpdateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Namespace location.
|
16
|
+
attr_accessor :location
|
17
|
+
|
18
|
+
# @return [Sku]
|
19
|
+
attr_accessor :sku
|
20
|
+
|
21
|
+
# @return [Hash{String => String}] Namespace tags.
|
22
|
+
attr_accessor :tags
|
23
|
+
|
24
|
+
# @return [String] Provisioning state of the namespace.
|
25
|
+
attr_accessor :provisioning_state
|
26
|
+
|
27
|
+
# @return [NamespaceState] State of the namespace. Possible values
|
28
|
+
# include: 'Unknown', 'Creating', 'Created', 'Activating', 'Enabling',
|
29
|
+
# 'Active', 'Disabling', 'Disabled', 'SoftDeleting', 'SoftDeleted',
|
30
|
+
# 'Removing', 'Removed', 'Failed'
|
31
|
+
attr_accessor :status
|
32
|
+
|
33
|
+
# @return [DateTime] The time the namespace was created.
|
34
|
+
attr_accessor :created_at
|
35
|
+
|
36
|
+
# @return [DateTime] The time the namespace was updated.
|
37
|
+
attr_accessor :updated_at
|
38
|
+
|
39
|
+
# @return [String] Endpoint you can use to perform Service Bus
|
40
|
+
# operations.
|
41
|
+
attr_accessor :service_bus_endpoint
|
42
|
+
|
43
|
+
# @return [Boolean] Indicates whether to create an ACS namespace.
|
44
|
+
attr_accessor :create_acsnamespace
|
45
|
+
|
46
|
+
# @return [Boolean] Specifies whether this instance is enabled.
|
47
|
+
attr_accessor :enabled
|
48
|
+
|
49
|
+
|
50
|
+
#
|
51
|
+
# Mapper for NamespaceCreateOrUpdateParameters class as Ruby Hash.
|
52
|
+
# This will be used for serialization/deserialization.
|
53
|
+
#
|
54
|
+
def self.mapper()
|
55
|
+
{
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'NamespaceCreateOrUpdateParameters',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
class_name: 'NamespaceCreateOrUpdateParameters',
|
61
|
+
model_properties: {
|
62
|
+
location: {
|
63
|
+
required: true,
|
64
|
+
serialized_name: 'location',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
sku: {
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'sku',
|
72
|
+
type: {
|
73
|
+
name: 'Composite',
|
74
|
+
class_name: 'Sku'
|
75
|
+
}
|
76
|
+
},
|
77
|
+
tags: {
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'tags',
|
80
|
+
type: {
|
81
|
+
name: 'Dictionary',
|
82
|
+
value: {
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'StringElementType',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
},
|
91
|
+
provisioning_state: {
|
92
|
+
required: false,
|
93
|
+
serialized_name: 'properties.provisioningState',
|
94
|
+
type: {
|
95
|
+
name: 'String'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
status: {
|
99
|
+
required: false,
|
100
|
+
serialized_name: 'properties.status',
|
101
|
+
type: {
|
102
|
+
name: 'Enum',
|
103
|
+
module: 'NamespaceState'
|
104
|
+
}
|
105
|
+
},
|
106
|
+
created_at: {
|
107
|
+
required: false,
|
108
|
+
serialized_name: 'properties.createdAt',
|
109
|
+
type: {
|
110
|
+
name: 'DateTime'
|
111
|
+
}
|
112
|
+
},
|
113
|
+
updated_at: {
|
114
|
+
required: false,
|
115
|
+
serialized_name: 'properties.updatedAt',
|
116
|
+
type: {
|
117
|
+
name: 'DateTime'
|
118
|
+
}
|
119
|
+
},
|
120
|
+
service_bus_endpoint: {
|
121
|
+
required: false,
|
122
|
+
serialized_name: 'properties.serviceBusEndpoint',
|
123
|
+
type: {
|
124
|
+
name: 'String'
|
125
|
+
}
|
126
|
+
},
|
127
|
+
create_acsnamespace: {
|
128
|
+
required: false,
|
129
|
+
serialized_name: 'properties.createACSNamespace',
|
130
|
+
type: {
|
131
|
+
name: 'Boolean'
|
132
|
+
}
|
133
|
+
},
|
134
|
+
enabled: {
|
135
|
+
required: false,
|
136
|
+
serialized_name: 'properties.enabled',
|
137
|
+
type: {
|
138
|
+
name: 'Boolean'
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
@@ -0,0 +1,95 @@
|
|
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::EventHub
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response of the List Namespace operation.
|
10
|
+
#
|
11
|
+
class NamespaceListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<NamespaceResource>] Result of the List Namespace
|
16
|
+
# 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 namespaces.
|
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<NamespaceResource>] 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 [NamespaceListResult] 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 NamespaceListResult class as Ruby Hash.
|
57
|
+
# This will be used for serialization/deserialization.
|
58
|
+
#
|
59
|
+
def self.mapper()
|
60
|
+
{
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'NamespaceListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'NamespaceListResult',
|
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: 'NamespaceResourceElementType',
|
75
|
+
type: {
|
76
|
+
name: 'Composite',
|
77
|
+
class_name: 'NamespaceResource'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
},
|
82
|
+
next_link: {
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'nextLink',
|
85
|
+
type: {
|
86
|
+
name: 'String'
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|