azure_mgmt_event_hub 0.17.1 → 0.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2014-09-01/generated/azure_mgmt_event_hub.rb +59 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/consumer_groups.rb +598 -0
- data/lib/{2018-01-01-preview/generated/azure_mgmt_event_hub/event_hub2018preview_management_client.rb → 2014-09-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb} +14 -14
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/event_hubs.rb +1239 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/access_rights.rb +17 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb +46 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb +75 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/consumer_group_create_or_update_parameters.rb +115 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +100 -0
- data/lib/{2017-04-01/generated/azure_mgmt_event_hub/models/messaging_plan.rb → 2014-09-01/generated/azure_mgmt_event_hub/models/consumer_group_resource.rb} +26 -43
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/entity_status.rb +23 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/event_hub_create_or_update_parameters.rb +150 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +100 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/event_hub_resource.rb +152 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/namespace_create_or_update_parameters.rb +160 -0
- data/lib/{2017-04-01/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb → 2014-09-01/generated/azure_mgmt_event_hub/models/namespace_list_result.rb} +13 -12
- data/lib/{2017-04-01/generated/azure_mgmt_event_hub/models/ehnamespace.rb → 2014-09-01/generated/azure_mgmt_event_hub/models/namespace_resource.rb} +31 -38
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/namespace_state.rb +27 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/namespace_update_parameter.rb +66 -0
- data/lib/{2018-01-01-preview → 2014-09-01}/generated/azure_mgmt_event_hub/models/operation.rb +1 -1
- data/lib/{2018-01-01-preview → 2014-09-01}/generated/azure_mgmt_event_hub/models/operation_display.rb +1 -1
- data/lib/{2018-01-01-preview → 2014-09-01}/generated/azure_mgmt_event_hub/models/operation_list_result.rb +2 -2
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/resource.rb +91 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_create_or_update_parameters.rb +79 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb +102 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_post_resource.rb +175 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_resource.rb +90 -0
- data/lib/{2017-04-01 → 2014-09-01}/generated/azure_mgmt_event_hub/models/sku.rb +6 -11
- data/lib/{2017-04-01 → 2014-09-01}/generated/azure_mgmt_event_hub/models/sku_name.rb +1 -1
- data/lib/{2017-04-01 → 2014-09-01}/generated/azure_mgmt_event_hub/models/sku_tier.rb +2 -1
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb +89 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/unavailable_reason.rb +20 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/module_definition.rb +9 -0
- data/lib/2014-09-01/generated/azure_mgmt_event_hub/namespaces.rb +2044 -0
- data/lib/{2018-01-01-preview → 2014-09-01}/generated/azure_mgmt_event_hub/operations.rb +11 -8
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb +10 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb +31 -5
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_list_result.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb +1 -1
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb +32 -0
- data/lib/2015-08-01/generated/azure_mgmt_event_hub/operations.rb +4 -0
- data/lib/2017-04-01/generated/azure_mgmt_event_hub.rb +16 -22
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb +15 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb +263 -239
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +5 -5
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb +302 -263
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/capture_description.rb +11 -0
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/consumer_group.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/error_response.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_properties.rb +1 -2
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/resource.rb +4 -4
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb +3 -3
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb +193 -1212
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/operations.rb +4 -0
- data/lib/2017-04-01/generated/azure_mgmt_event_hub/regions.rb +4 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub.rb +35 -14
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/clusters.rb +530 -29
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/configuration.rb +11 -7
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/event_hub_management_client.rb +149 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/available_cluster.rb +47 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/available_clusters_list.rb +56 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster.rb +18 -6
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_list_result.rb +1 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/connection_state.rb +59 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/default_action.rb +16 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace.rb +36 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_id_container.rb +46 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_id_list_result.rb +56 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb +1 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/encryption.rb +70 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/end_point_provisioning_state.rb +20 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/error_response.rb +1 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/identity.rb +72 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/identity_type.rb +15 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ip_filter_rule_list_result.rb +1 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/key_source.rb +15 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/key_vault_properties.rb +68 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/network_rule_ipaction.rb +15 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/network_rule_set.rb +126 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/nwrule_set_ip_rules.rb +58 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/nwrule_set_virtual_network_rules.rb +59 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint.rb +46 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint_connection.rb +100 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint_connection_list_result.rb +100 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_connection_status.rb +18 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_resource.rb +119 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_resources_list_result.rb +67 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/resource.rb +4 -4
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku.rb +1 -1
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/subnet.rb +46 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/tracked_resource.rb +3 -3
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/virtual_network_rule_list_result.rb +6 -6
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/namespaces.rb +661 -412
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/private_endpoint_connections.rb +625 -0
- data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/private_link_resources.rb +127 -0
- data/lib/azure_mgmt_event_hub.rb +3 -2
- data/lib/profiles/latest/modules/eventhub_profile_module.rb +254 -46
- data/lib/version.rb +1 -1
- metadata +66 -16
@@ -19,7 +19,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
19
19
|
@client = client
|
20
20
|
end
|
21
21
|
|
22
|
-
# @return [
|
22
|
+
# @return [EventHubManagementClient] reference to the EventHubManagementClient
|
23
23
|
attr_reader :client
|
24
24
|
|
25
25
|
#
|
@@ -28,7 +28,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
28
28
|
# unmodified.
|
29
29
|
#
|
30
30
|
# @param resource_group_name [String] Name of the resource group within the
|
31
|
-
#
|
31
|
+
# azure subscription.
|
32
32
|
# @param cluster_name [String] The name of the Event Hubs Cluster.
|
33
33
|
# @param parameters [ClusterQuotaConfigurationProperties] Parameters for
|
34
34
|
# creating an Event Hubs Cluster resource.
|
@@ -48,7 +48,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
48
48
|
# unmodified.
|
49
49
|
#
|
50
50
|
# @param resource_group_name [String] Name of the resource group within the
|
51
|
-
#
|
51
|
+
# azure subscription.
|
52
52
|
# @param cluster_name [String] The name of the Event Hubs Cluster.
|
53
53
|
# @param parameters [ClusterQuotaConfigurationProperties] Parameters for
|
54
54
|
# creating an Event Hubs Cluster resource.
|
@@ -67,7 +67,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
67
67
|
# unmodified.
|
68
68
|
#
|
69
69
|
# @param resource_group_name [String] Name of the resource group within the
|
70
|
-
#
|
70
|
+
# azure subscription.
|
71
71
|
# @param cluster_name [String] The name of the Event Hubs Cluster.
|
72
72
|
# @param parameters [ClusterQuotaConfigurationProperties] Parameters for
|
73
73
|
# creating an Event Hubs Cluster resource.
|
@@ -124,6 +124,8 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
124
124
|
end
|
125
125
|
|
126
126
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
127
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
128
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
127
129
|
# Deserialize Response
|
128
130
|
if status_code == 200
|
129
131
|
begin
|
@@ -156,7 +158,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
156
158
|
# represent the quotas and settings imposed on the cluster.
|
157
159
|
#
|
158
160
|
# @param resource_group_name [String] Name of the resource group within the
|
159
|
-
#
|
161
|
+
# azure subscription.
|
160
162
|
# @param cluster_name [String] The name of the Event Hubs Cluster.
|
161
163
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
162
164
|
# will be added to the HTTP request.
|
@@ -173,7 +175,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
173
175
|
# represent the quotas and settings imposed on the cluster.
|
174
176
|
#
|
175
177
|
# @param resource_group_name [String] Name of the resource group within the
|
176
|
-
#
|
178
|
+
# azure subscription.
|
177
179
|
# @param cluster_name [String] The name of the Event Hubs Cluster.
|
178
180
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
179
181
|
# will be added to the HTTP request.
|
@@ -189,7 +191,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
189
191
|
# represent the quotas and settings imposed on the cluster.
|
190
192
|
#
|
191
193
|
# @param resource_group_name [String] Name of the resource group within the
|
192
|
-
#
|
194
|
+
# azure subscription.
|
193
195
|
# @param cluster_name [String] The name of the Event Hubs Cluster.
|
194
196
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
195
197
|
# to the HTTP request.
|
@@ -236,6 +238,8 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
236
238
|
end
|
237
239
|
|
238
240
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
241
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
242
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
239
243
|
# Deserialize Response
|
240
244
|
if status_code == 200
|
241
245
|
begin
|
@@ -0,0 +1,149 @@
|
|
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::EventHub::Mgmt::V2018_01_01_preview
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class EventHubManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] Client API Version.
|
21
|
+
attr_reader :api_version
|
22
|
+
|
23
|
+
# @return [String] Subscription credentials that uniquely identify a
|
24
|
+
# Microsoft Azure subscription. The subscription ID forms part of the URI
|
25
|
+
# for every service call.
|
26
|
+
attr_accessor :subscription_id
|
27
|
+
|
28
|
+
# @return [String] The preferred language for the response.
|
29
|
+
attr_accessor :accept_language
|
30
|
+
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
32
|
+
# Operations. Default value is 30.
|
33
|
+
attr_accessor :long_running_operation_retry_timeout
|
34
|
+
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
37
|
+
# generated and included in each request. Default is true.
|
38
|
+
attr_accessor :generate_client_request_id
|
39
|
+
|
40
|
+
# @return [Clusters] clusters
|
41
|
+
attr_reader :clusters
|
42
|
+
|
43
|
+
# @return [Namespaces] namespaces
|
44
|
+
attr_reader :namespaces
|
45
|
+
|
46
|
+
# @return [PrivateEndpointConnections] private_endpoint_connections
|
47
|
+
attr_reader :private_endpoint_connections
|
48
|
+
|
49
|
+
# @return [PrivateLinkResources] private_link_resources
|
50
|
+
attr_reader :private_link_resources
|
51
|
+
|
52
|
+
# @return [Configuration] configuration
|
53
|
+
attr_reader :configuration
|
54
|
+
|
55
|
+
#
|
56
|
+
# Creates initializes a new instance of the EventHubManagementClient class.
|
57
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
58
|
+
# @param base_url [String] the base URI of the service.
|
59
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
60
|
+
#
|
61
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
62
|
+
super(credentials, options)
|
63
|
+
@base_url = base_url || 'https://management.azure.com'
|
64
|
+
|
65
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
66
|
+
@credentials = credentials
|
67
|
+
|
68
|
+
@clusters = Clusters.new(self)
|
69
|
+
@namespaces = Namespaces.new(self)
|
70
|
+
@private_endpoint_connections = PrivateEndpointConnections.new(self)
|
71
|
+
@private_link_resources = PrivateLinkResources.new(self)
|
72
|
+
@configuration = Configuration.new(self)
|
73
|
+
@api_version = '2018-01-01-preview'
|
74
|
+
@accept_language = 'en-US'
|
75
|
+
@long_running_operation_retry_timeout = 30
|
76
|
+
@generate_client_request_id = true
|
77
|
+
add_telemetry
|
78
|
+
end
|
79
|
+
|
80
|
+
#
|
81
|
+
# Makes a request and returns the body of the response.
|
82
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
83
|
+
# @param path [String] the path, relative to {base_url}.
|
84
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
85
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
86
|
+
# Example:
|
87
|
+
#
|
88
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
89
|
+
# path = "/path"
|
90
|
+
# options = {
|
91
|
+
# body: request_content,
|
92
|
+
# query_params: {'api-version' => '2016-02-01'}
|
93
|
+
# }
|
94
|
+
# result = @client.make_request(:put, path, options)
|
95
|
+
#
|
96
|
+
def make_request(method, path, options = {})
|
97
|
+
result = make_request_with_http_info(method, path, options)
|
98
|
+
result.body unless result.nil?
|
99
|
+
end
|
100
|
+
|
101
|
+
#
|
102
|
+
# Makes a request and returns the operation response.
|
103
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
104
|
+
# @param path [String] the path, relative to {base_url}.
|
105
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
106
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
107
|
+
#
|
108
|
+
def make_request_with_http_info(method, path, options = {})
|
109
|
+
result = make_request_async(method, path, options).value!
|
110
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
111
|
+
result
|
112
|
+
end
|
113
|
+
|
114
|
+
#
|
115
|
+
# Makes a request asynchronously.
|
116
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
117
|
+
# @param path [String] the path, relative to {base_url}.
|
118
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
119
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
120
|
+
#
|
121
|
+
def make_request_async(method, path, options = {})
|
122
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
123
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
124
|
+
|
125
|
+
request_url = options[:base_url] || @base_url
|
126
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
127
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
128
|
+
end
|
129
|
+
|
130
|
+
request_headers = @request_headers
|
131
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
132
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
133
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
134
|
+
|
135
|
+
super(request_url, method, path, options)
|
136
|
+
end
|
137
|
+
|
138
|
+
|
139
|
+
private
|
140
|
+
#
|
141
|
+
# Adds telemetry information.
|
142
|
+
#
|
143
|
+
def add_telemetry
|
144
|
+
sdk_information = 'azure_mgmt_event_hub'
|
145
|
+
sdk_information = "#{sdk_information}/0.18.2"
|
146
|
+
add_user_agent_information(sdk_information)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
@@ -0,0 +1,47 @@
|
|
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::EventHub::Mgmt::V2018_01_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Pre-provisioned and readily available Event Hubs Cluster count per
|
10
|
+
# region.
|
11
|
+
#
|
12
|
+
class AvailableCluster
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Location fo the Available Cluster
|
17
|
+
attr_accessor :location
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for AvailableCluster class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'AvailableCluster',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'AvailableCluster',
|
32
|
+
model_properties: {
|
33
|
+
location: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'location',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,56 @@
|
|
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::EventHub::Mgmt::V2018_01_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response of the List Available Clusters operation.
|
10
|
+
#
|
11
|
+
class AvailableClustersList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<AvailableCluster>] The count of readily available and
|
16
|
+
# pre-provisioned Event Hubs Clusters per region.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for AvailableClustersList class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'AvailableClustersList',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'AvailableClustersList',
|
32
|
+
model_properties: {
|
33
|
+
value: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'value',
|
37
|
+
type: {
|
38
|
+
name: 'Sequence',
|
39
|
+
element: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'AvailableClusterElementType',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'AvailableCluster'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -16,16 +16,19 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
16
16
|
attr_accessor :sku
|
17
17
|
|
18
18
|
# @return [String] The UTC time when the Event Hubs Cluster was created.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :created_at
|
20
20
|
|
21
21
|
# @return [String] The UTC time when the Event Hubs Cluster was last
|
22
22
|
# updated.
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :updated_at
|
24
24
|
|
25
25
|
# @return [String] The metric ID of the cluster resource. Provided by the
|
26
26
|
# service and not modifiable by the user.
|
27
27
|
attr_accessor :metric_id
|
28
28
|
|
29
|
+
# @return [String] Status of the Cluster resource
|
30
|
+
attr_accessor :status
|
31
|
+
|
29
32
|
|
30
33
|
#
|
31
34
|
# Mapper for Cluster class as Ruby Hash.
|
@@ -100,20 +103,20 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
100
103
|
class_name: 'ClusterSku'
|
101
104
|
}
|
102
105
|
},
|
103
|
-
|
106
|
+
created_at: {
|
104
107
|
client_side_validation: true,
|
105
108
|
required: false,
|
106
109
|
read_only: true,
|
107
|
-
serialized_name: 'properties.
|
110
|
+
serialized_name: 'properties.createdAt',
|
108
111
|
type: {
|
109
112
|
name: 'String'
|
110
113
|
}
|
111
114
|
},
|
112
|
-
|
115
|
+
updated_at: {
|
113
116
|
client_side_validation: true,
|
114
117
|
required: false,
|
115
118
|
read_only: true,
|
116
|
-
serialized_name: 'properties.
|
119
|
+
serialized_name: 'properties.updatedAt',
|
117
120
|
type: {
|
118
121
|
name: 'String'
|
119
122
|
}
|
@@ -126,6 +129,15 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
126
129
|
type: {
|
127
130
|
name: 'String'
|
128
131
|
}
|
132
|
+
},
|
133
|
+
status: {
|
134
|
+
client_side_validation: true,
|
135
|
+
required: false,
|
136
|
+
read_only: true,
|
137
|
+
serialized_name: 'properties.status',
|
138
|
+
type: {
|
139
|
+
name: 'String'
|
140
|
+
}
|
129
141
|
}
|
130
142
|
}
|
131
143
|
}
|
@@ -32,7 +32,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
|
|
32
32
|
def get_all_items
|
33
33
|
items = @value
|
34
34
|
page = self
|
35
|
-
while page.next_link != nil do
|
35
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
36
36
|
page = page.get_next_page
|
37
37
|
items.concat(page.value)
|
38
38
|
end
|
@@ -0,0 +1,59 @@
|
|
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::EventHub::Mgmt::V2018_01_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# ConnectionState information.
|
10
|
+
#
|
11
|
+
class ConnectionState
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [PrivateLinkConnectionStatus] Status of the connection.
|
16
|
+
# Possible values include: 'Pending', 'Approved', 'Rejected',
|
17
|
+
# 'Disconnected'
|
18
|
+
attr_accessor :status
|
19
|
+
|
20
|
+
# @return [String] Description of the connection state.
|
21
|
+
attr_accessor :description
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for ConnectionState class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'ConnectionState',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'ConnectionState',
|
36
|
+
model_properties: {
|
37
|
+
status: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'status',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
description: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'description',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|