azure_mgmt_event_hub 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_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,165 @@
|
|
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 a namespace resource.
|
10
|
+
#
|
11
|
+
class NamespaceResource < MsRestAzure::Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Sku]
|
16
|
+
attr_accessor :sku
|
17
|
+
|
18
|
+
# @return [String] Provisioning state of the namespace.
|
19
|
+
attr_accessor :provisioning_state
|
20
|
+
|
21
|
+
# @return [NamespaceState] State of the namespace. Possible values
|
22
|
+
# include: 'Unknown', 'Creating', 'Created', 'Activating', 'Enabling',
|
23
|
+
# 'Active', 'Disabling', 'Disabled', 'SoftDeleting', 'SoftDeleted',
|
24
|
+
# 'Removing', 'Removed', 'Failed'
|
25
|
+
attr_accessor :status
|
26
|
+
|
27
|
+
# @return [DateTime] The time the namespace was created.
|
28
|
+
attr_accessor :created_at
|
29
|
+
|
30
|
+
# @return [DateTime] The time the namespace was updated.
|
31
|
+
attr_accessor :updated_at
|
32
|
+
|
33
|
+
# @return [String] Endpoint you can use to perform Service Bus
|
34
|
+
# operations.
|
35
|
+
attr_accessor :service_bus_endpoint
|
36
|
+
|
37
|
+
# @return [Boolean] Indicates whether to create an ACS namespace.
|
38
|
+
attr_accessor :create_acsnamespace
|
39
|
+
|
40
|
+
# @return [Boolean] Specifies whether this instance is enabled.
|
41
|
+
attr_accessor :enabled
|
42
|
+
|
43
|
+
|
44
|
+
#
|
45
|
+
# Mapper for NamespaceResource class as Ruby Hash.
|
46
|
+
# This will be used for serialization/deserialization.
|
47
|
+
#
|
48
|
+
def self.mapper()
|
49
|
+
{
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'NamespaceResource',
|
52
|
+
type: {
|
53
|
+
name: 'Composite',
|
54
|
+
class_name: 'NamespaceResource',
|
55
|
+
model_properties: {
|
56
|
+
id: {
|
57
|
+
required: false,
|
58
|
+
read_only: true,
|
59
|
+
serialized_name: 'id',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
name: {
|
65
|
+
required: false,
|
66
|
+
read_only: true,
|
67
|
+
serialized_name: 'name',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
type: {
|
73
|
+
required: false,
|
74
|
+
read_only: true,
|
75
|
+
serialized_name: 'type',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
location: {
|
81
|
+
required: true,
|
82
|
+
serialized_name: 'location',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
tags: {
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'tags',
|
90
|
+
type: {
|
91
|
+
name: 'Dictionary',
|
92
|
+
value: {
|
93
|
+
required: false,
|
94
|
+
serialized_name: 'StringElementType',
|
95
|
+
type: {
|
96
|
+
name: 'String'
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
},
|
101
|
+
sku: {
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'sku',
|
104
|
+
type: {
|
105
|
+
name: 'Composite',
|
106
|
+
class_name: 'Sku'
|
107
|
+
}
|
108
|
+
},
|
109
|
+
provisioning_state: {
|
110
|
+
required: false,
|
111
|
+
serialized_name: 'properties.provisioningState',
|
112
|
+
type: {
|
113
|
+
name: 'String'
|
114
|
+
}
|
115
|
+
},
|
116
|
+
status: {
|
117
|
+
required: false,
|
118
|
+
serialized_name: 'properties.status',
|
119
|
+
type: {
|
120
|
+
name: 'Enum',
|
121
|
+
module: 'NamespaceState'
|
122
|
+
}
|
123
|
+
},
|
124
|
+
created_at: {
|
125
|
+
required: false,
|
126
|
+
serialized_name: 'properties.createdAt',
|
127
|
+
type: {
|
128
|
+
name: 'DateTime'
|
129
|
+
}
|
130
|
+
},
|
131
|
+
updated_at: {
|
132
|
+
required: false,
|
133
|
+
serialized_name: 'properties.updatedAt',
|
134
|
+
type: {
|
135
|
+
name: 'DateTime'
|
136
|
+
}
|
137
|
+
},
|
138
|
+
service_bus_endpoint: {
|
139
|
+
required: false,
|
140
|
+
serialized_name: 'properties.serviceBusEndpoint',
|
141
|
+
type: {
|
142
|
+
name: 'String'
|
143
|
+
}
|
144
|
+
},
|
145
|
+
create_acsnamespace: {
|
146
|
+
required: false,
|
147
|
+
serialized_name: 'properties.createACSNamespace',
|
148
|
+
type: {
|
149
|
+
name: 'Boolean'
|
150
|
+
}
|
151
|
+
},
|
152
|
+
enabled: {
|
153
|
+
required: false,
|
154
|
+
serialized_name: 'properties.enabled',
|
155
|
+
type: {
|
156
|
+
name: 'Boolean'
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
@@ -0,0 +1,27 @@
|
|
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
|
+
# Defines values for NamespaceState
|
10
|
+
#
|
11
|
+
module NamespaceState
|
12
|
+
Unknown = "Unknown"
|
13
|
+
Creating = "Creating"
|
14
|
+
Created = "Created"
|
15
|
+
Activating = "Activating"
|
16
|
+
Enabling = "Enabling"
|
17
|
+
Active = "Active"
|
18
|
+
Disabling = "Disabling"
|
19
|
+
Disabled = "Disabled"
|
20
|
+
SoftDeleting = "SoftDeleting"
|
21
|
+
SoftDeleted = "SoftDeleted"
|
22
|
+
Removing = "Removing"
|
23
|
+
Removed = "Removed"
|
24
|
+
Failed = "Failed"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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
|
+
# Defines values for Policykey
|
10
|
+
#
|
11
|
+
module Policykey
|
12
|
+
PrimaryKey = "PrimaryKey"
|
13
|
+
SecondaryKey = "SecondaryKey"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
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::EventHub
|
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
|
@@ -0,0 +1,88 @@
|
|
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
|
+
# Namespace/EventHub Connection String
|
10
|
+
#
|
11
|
+
class ResourceListKeys
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Primary connection string of the created namespace
|
16
|
+
# authorization rule.
|
17
|
+
attr_accessor :primary_connection_string
|
18
|
+
|
19
|
+
# @return [String] Secondary connection string of the created namespace
|
20
|
+
# authorization rule.
|
21
|
+
attr_accessor :secondary_connection_string
|
22
|
+
|
23
|
+
# @return [String] A base64-encoded 256-bit primary key for signing and
|
24
|
+
# validating the SAS token.
|
25
|
+
attr_accessor :primary_key
|
26
|
+
|
27
|
+
# @return [String] A base64-encoded 256-bit primary key for signing and
|
28
|
+
# validating the SAS token.
|
29
|
+
attr_accessor :secondary_key
|
30
|
+
|
31
|
+
# @return [String] A string that describes the authorization rule.
|
32
|
+
attr_accessor :key_name
|
33
|
+
|
34
|
+
|
35
|
+
#
|
36
|
+
# Mapper for ResourceListKeys class as Ruby Hash.
|
37
|
+
# This will be used for serialization/deserialization.
|
38
|
+
#
|
39
|
+
def self.mapper()
|
40
|
+
{
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'ResourceListKeys',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'ResourceListKeys',
|
46
|
+
model_properties: {
|
47
|
+
primary_connection_string: {
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'primaryConnectionString',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
secondary_connection_string: {
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'secondaryConnectionString',
|
57
|
+
type: {
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
primary_key: {
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'primaryKey',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
secondary_key: {
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'secondaryKey',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
key_name: {
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'keyName',
|
78
|
+
type: {
|
79
|
+
name: 'String'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,74 @@
|
|
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 Authorization Rules
|
10
|
+
# operation.
|
11
|
+
#
|
12
|
+
class SharedAccessAuthorizationRuleCreateOrUpdateParameters
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Data center location.
|
17
|
+
attr_accessor :location
|
18
|
+
|
19
|
+
# @return [String] Name of the authorization rule.
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
# @return [Array<AccessRights>] The rights associated with the rule.
|
23
|
+
attr_accessor :rights
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for SharedAccessAuthorizationRuleCreateOrUpdateParameters class
|
28
|
+
# as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'SharedAccessAuthorizationRuleCreateOrUpdateParameters',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'SharedAccessAuthorizationRuleCreateOrUpdateParameters',
|
38
|
+
model_properties: {
|
39
|
+
location: {
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'location',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
name: {
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'name',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
rights: {
|
54
|
+
required: true,
|
55
|
+
serialized_name: 'properties.rights',
|
56
|
+
type: {
|
57
|
+
name: 'Sequence',
|
58
|
+
element: {
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'AccessRightsElementType',
|
61
|
+
type: {
|
62
|
+
name: 'Enum',
|
63
|
+
module: 'AccessRights'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
data/lib/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb
ADDED
@@ -0,0 +1,97 @@
|
|
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 from the List Namespace operation.
|
10
|
+
#
|
11
|
+
class SharedAccessAuthorizationRuleListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<SharedAccessAuthorizationRuleResource>] Result of the
|
16
|
+
# List Authorization Rules operation.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] Link to the next set of results. Not empty if Value
|
20
|
+
# contains an incomplete list of Authorization Rules
|
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<SharedAccessAuthorizationRuleResource>] operation
|
30
|
+
# 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 [SharedAccessAuthorizationRuleListResult] with next page
|
46
|
+
# content.
|
47
|
+
#
|
48
|
+
def get_next_page
|
49
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
50
|
+
unless response.nil?
|
51
|
+
@next_link = response.body.next_link
|
52
|
+
@value = response.body.value
|
53
|
+
self
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Mapper for SharedAccessAuthorizationRuleListResult class as Ruby Hash.
|
59
|
+
# This will be used for serialization/deserialization.
|
60
|
+
#
|
61
|
+
def self.mapper()
|
62
|
+
{
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'SharedAccessAuthorizationRuleListResult',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'SharedAccessAuthorizationRuleListResult',
|
68
|
+
model_properties: {
|
69
|
+
value: {
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'value',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'SharedAccessAuthorizationRuleResourceElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'SharedAccessAuthorizationRuleResource'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
next_link: {
|
85
|
+
required: false,
|
86
|
+
serialized_name: 'nextLink',
|
87
|
+
type: {
|
88
|
+
name: 'String'
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|