azure_mgmt_event_hub 0.18.1 → 0.18.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2014-09-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +1 -1
  3. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +1 -1
  4. data/lib/2017-04-01/generated/azure_mgmt_event_hub.rb +15 -28
  5. data/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb +5 -5
  6. data/lib/2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb +239 -239
  7. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +5 -5
  8. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb +278 -272
  9. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/error_response.rb +1 -1
  10. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions.rb +1 -1
  11. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_properties.rb +1 -2
  12. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/resource.rb +4 -4
  13. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb +3 -3
  14. data/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb +198 -1678
  15. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub.rb +24 -18
  16. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/clusters.rb +74 -56
  17. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/configuration.rb +7 -7
  18. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/{event_hub2018preview_management_client.rb → event_hub_management_client.rb} +18 -14
  19. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster.rb +6 -6
  20. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/{operation.rb → connection_state.rb} +16 -16
  21. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace.rb +12 -12
  22. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/encryption.rb +11 -3
  23. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/end_point_provisioning_state.rb +20 -0
  24. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/error_response.rb +1 -1
  25. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/key_vault_properties.rb +11 -0
  26. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/network_rule_set.rb +12 -0
  27. data/lib/{2017-04-01/generated/azure_mgmt_event_hub/models/subnet.rb → 2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint.rb} +8 -8
  28. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint_connection.rb +100 -0
  29. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/{operation_list_result.rb → private_endpoint_connection_list_result.rb} +13 -16
  30. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_connection_status.rb +18 -0
  31. data/lib/{2017-04-01/generated/azure_mgmt_event_hub/models/network_rule_set.rb → 2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_resource.rb} +55 -50
  32. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_resources_list_result.rb +67 -0
  33. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/resource.rb +4 -4
  34. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/tracked_resource.rb +3 -3
  35. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/namespaces.rb +395 -395
  36. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/private_endpoint_connections.rb +625 -0
  37. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/private_link_resources.rb +127 -0
  38. data/lib/azure_mgmt_event_hub.rb +2 -2
  39. data/lib/profiles/latest/modules/eventhub_profile_module.rb +211 -63
  40. data/lib/version.rb +1 -1
  41. metadata +14 -21
  42. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/default_action.rb +0 -16
  43. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/ehnamespace.rb +0 -200
  44. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb +0 -99
  45. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_plan.rb +0 -134
  46. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/network_rule_ipaction.rb +0 -15
  47. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/network_rule_set_list_result.rb +0 -100
  48. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/nwrule_set_ip_rules.rb +0 -59
  49. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/nwrule_set_virtual_network_rules.rb +0 -59
  50. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/sku.rb +0 -75
  51. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/sku_name.rb +0 -16
  52. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/sku_tier.rb +0 -16
  53. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation_display.rb +0 -72
  54. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/operations.rb +0 -220
@@ -0,0 +1,127 @@
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
+ # Azure Event Hubs client for managing Event Hubs Cluster, IPFilter Rules and
9
+ # VirtualNetworkRules resources.
10
+ #
11
+ class PrivateLinkResources
12
+ include MsRestAzure
13
+
14
+ #
15
+ # Creates and initializes a new instance of the PrivateLinkResources class.
16
+ # @param client service class for accessing basic functionality.
17
+ #
18
+ def initialize(client)
19
+ @client = client
20
+ end
21
+
22
+ # @return [EventHubManagementClient] reference to the EventHubManagementClient
23
+ attr_reader :client
24
+
25
+ #
26
+ # Gets lists of resources that supports Privatelinks.
27
+ #
28
+ # @param resource_group_name [String] Name of the resource group within the
29
+ # azure subscription.
30
+ # @param namespace_name [String] The Namespace name
31
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
+ # will be added to the HTTP request.
33
+ #
34
+ # @return [PrivateLinkResourcesListResult] operation results.
35
+ #
36
+ def get(resource_group_name, namespace_name, custom_headers:nil)
37
+ response = get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
38
+ response.body unless response.nil?
39
+ end
40
+
41
+ #
42
+ # Gets lists of resources that supports Privatelinks.
43
+ #
44
+ # @param resource_group_name [String] Name of the resource group within the
45
+ # azure subscription.
46
+ # @param namespace_name [String] The Namespace name
47
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
48
+ # will be added to the HTTP request.
49
+ #
50
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
51
+ #
52
+ def get_with_http_info(resource_group_name, namespace_name, custom_headers:nil)
53
+ get_async(resource_group_name, namespace_name, custom_headers:custom_headers).value!
54
+ end
55
+
56
+ #
57
+ # Gets lists of resources that supports Privatelinks.
58
+ #
59
+ # @param resource_group_name [String] Name of the resource group within the
60
+ # azure subscription.
61
+ # @param namespace_name [String] The Namespace name
62
+ # @param [Hash{String => String}] A hash of custom headers that will be added
63
+ # to the HTTP request.
64
+ #
65
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
66
+ #
67
+ def get_async(resource_group_name, namespace_name, custom_headers:nil)
68
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
69
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
70
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
71
+ fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
72
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MaxLength': '50'" if !namespace_name.nil? && namespace_name.length > 50
73
+ fail ArgumentError, "'namespace_name' should satisfy the constraint - 'MinLength': '6'" if !namespace_name.nil? && namespace_name.length < 6
74
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
75
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
76
+
77
+
78
+ request_headers = {}
79
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
80
+
81
+ # Set Headers
82
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
83
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
84
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateLinkResources'
85
+
86
+ request_url = @base_url || @client.base_url
87
+
88
+ options = {
89
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
90
+ path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'subscriptionId' => @client.subscription_id},
91
+ query_params: {'api-version' => @client.api_version},
92
+ headers: request_headers.merge(custom_headers || {}),
93
+ base_url: request_url
94
+ }
95
+ promise = @client.make_request_async(:get, path_template, options)
96
+
97
+ promise = promise.then do |result|
98
+ http_response = result.response
99
+ status_code = http_response.status
100
+ response_content = http_response.body
101
+ unless status_code == 200
102
+ error_model = JSON.load(response_content)
103
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
104
+ end
105
+
106
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
107
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
108
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
109
+ # Deserialize Response
110
+ if status_code == 200
111
+ begin
112
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
113
+ result_mapper = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateLinkResourcesListResult.mapper()
114
+ result.body = @client.deserialize(result_mapper, parsed_response)
115
+ rescue Exception => e
116
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
117
+ end
118
+ end
119
+
120
+ result
121
+ end
122
+
123
+ promise.execute
124
+ end
125
+
126
+ end
127
+ end
@@ -2,8 +2,8 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
- require '2014-09-01/generated/azure_mgmt_event_hub'
6
5
  require '2015-08-01/generated/azure_mgmt_event_hub'
7
- require '2017-04-01/generated/azure_mgmt_event_hub'
8
6
  require '2018-01-01-preview/generated/azure_mgmt_event_hub'
7
+ require '2017-04-01/generated/azure_mgmt_event_hub'
8
+ require '2014-09-01/generated/azure_mgmt_event_hub'
9
9
  require 'profiles/latest/eventhub_latest_profile_client'
@@ -6,54 +6,92 @@ require 'azure_mgmt_event_hub'
6
6
 
7
7
  module Azure::EventHub::Profiles::Latest
8
8
  module Mgmt
9
- Operations = Azure::EventHub::Mgmt::V2018_01_01_preview::Operations
10
9
  Clusters = Azure::EventHub::Mgmt::V2018_01_01_preview::Clusters
10
+ PrivateEndpointConnections = Azure::EventHub::Mgmt::V2018_01_01_preview::PrivateEndpointConnections
11
+ PrivateLinkResources = Azure::EventHub::Mgmt::V2018_01_01_preview::PrivateLinkResources
11
12
  Configuration = Azure::EventHub::Mgmt::V2018_01_01_preview::Configuration
12
- Namespaces = Azure::EventHub::Mgmt::V2018_01_01_preview::Namespaces
13
+ Namespaces = Azure::EventHub::Mgmt::V2017_04_01::Namespaces
14
+ DisasterRecoveryConfigs = Azure::EventHub::Mgmt::V2017_04_01::DisasterRecoveryConfigs
15
+ EventHubs = Azure::EventHub::Mgmt::V2017_04_01::EventHubs
16
+ ConsumerGroups = Azure::EventHub::Mgmt::V2017_04_01::ConsumerGroups
17
+ Operations = Azure::EventHub::Mgmt::V2017_04_01::Operations
18
+ Regions = Azure::EventHub::Mgmt::V2017_04_01::Regions
13
19
 
14
20
  module Models
15
- Sku = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Sku
16
- OperationDisplay = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationDisplay
17
- Identity = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Identity
18
- OperationListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationListResult
21
+ Encryption = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Encryption
19
22
  KeyVaultProperties = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::KeyVaultProperties
20
- Operation = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Operation
23
+ AvailableClustersList = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::AvailableClustersList
21
24
  AvailableCluster = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::AvailableCluster
22
25
  ClusterSku = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterSku
23
26
  ClusterListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterListResult
24
- ErrorResponse = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ErrorResponse
25
- Encryption = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Encryption
26
- Resource = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Resource
27
- NWRuleSetVirtualNetworkRules = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NWRuleSetVirtualNetworkRules
28
- EHNamespaceIdListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceIdListResult
29
27
  EHNamespaceListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceListResult
30
- ClusterQuotaConfigurationProperties = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties
28
+ EHNamespaceIdListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceIdListResult
29
+ PrivateEndpoint = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateEndpoint
30
+ Subnet = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Subnet
31
31
  NWRuleSetIpRules = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NWRuleSetIpRules
32
+ Sku = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Sku
33
+ ConnectionState = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ConnectionState
34
+ NWRuleSetVirtualNetworkRules = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NWRuleSetVirtualNetworkRules
32
35
  EHNamespaceIdContainer = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceIdContainer
36
+ PrivateEndpointConnectionListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateEndpointConnectionListResult
37
+ Identity = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Identity
38
+ PrivateLinkResource = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateLinkResource
33
39
  IpFilterRuleListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRuleListResult
40
+ PrivateLinkResourcesListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateLinkResourcesListResult
34
41
  VirtualNetworkRuleListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRuleListResult
35
- AvailableClustersList = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::AvailableClustersList
36
- Subnet = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Subnet
37
- TrackedResource = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::TrackedResource
42
+ ClusterQuotaConfigurationProperties = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties
38
43
  Cluster = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Cluster
39
- EHNamespace = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespace
40
44
  IpFilterRule = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRule
45
+ EHNamespace = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespace
46
+ PrivateEndpointConnection = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateEndpointConnection
41
47
  VirtualNetworkRule = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRule
42
48
  NetworkRuleSet = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NetworkRuleSet
49
+ IPAction = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction
43
50
  SkuName = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuName
44
51
  SkuTier = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuTier
45
52
  IdentityType = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IdentityType
46
53
  KeySource = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::KeySource
47
- IPAction = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction
54
+ PrivateLinkConnectionStatus = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateLinkConnectionStatus
55
+ EndPointProvisioningState = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EndPointProvisioningState
48
56
  NetworkRuleIPAction = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NetworkRuleIPAction
49
57
  DefaultAction = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::DefaultAction
58
+ ConsumerGroupListResult = Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroupListResult
59
+ EventHubListResult = Azure::EventHub::Mgmt::V2017_04_01::Models::EventHubListResult
60
+ AuthorizationRuleListResult = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult
61
+ MessagingRegionsListResult = Azure::EventHub::Mgmt::V2017_04_01::Models::MessagingRegionsListResult
62
+ RegenerateAccessKeyParameters = Azure::EventHub::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters
63
+ Resource = Azure::EventHub::Mgmt::V2017_04_01::Models::Resource
64
+ ArmDisasterRecoveryListResult = Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecoveryListResult
65
+ CheckNameAvailabilityParameter = Azure::EventHub::Mgmt::V2017_04_01::Models::CheckNameAvailabilityParameter
66
+ OperationDisplay = Azure::EventHub::Mgmt::V2017_04_01::Models::OperationDisplay
67
+ AccessKeys = Azure::EventHub::Mgmt::V2017_04_01::Models::AccessKeys
68
+ Operation = Azure::EventHub::Mgmt::V2017_04_01::Models::Operation
69
+ ErrorResponse = Azure::EventHub::Mgmt::V2017_04_01::Models::ErrorResponse
70
+ OperationListResult = Azure::EventHub::Mgmt::V2017_04_01::Models::OperationListResult
71
+ MessagingRegionsProperties = Azure::EventHub::Mgmt::V2017_04_01::Models::MessagingRegionsProperties
72
+ Destination = Azure::EventHub::Mgmt::V2017_04_01::Models::Destination
73
+ CheckNameAvailabilityResult = Azure::EventHub::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult
74
+ CaptureDescription = Azure::EventHub::Mgmt::V2017_04_01::Models::CaptureDescription
75
+ AuthorizationRule = Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRule
76
+ TrackedResource = Azure::EventHub::Mgmt::V2017_04_01::Models::TrackedResource
77
+ ConsumerGroup = Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroup
78
+ ArmDisasterRecovery = Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecovery
79
+ Eventhub = Azure::EventHub::Mgmt::V2017_04_01::Models::Eventhub
80
+ MessagingRegions = Azure::EventHub::Mgmt::V2017_04_01::Models::MessagingRegions
81
+ AccessRights = Azure::EventHub::Mgmt::V2017_04_01::Models::AccessRights
82
+ KeyType = Azure::EventHub::Mgmt::V2017_04_01::Models::KeyType
83
+ UnavailableReason = Azure::EventHub::Mgmt::V2017_04_01::Models::UnavailableReason
84
+ ProvisioningStateDR = Azure::EventHub::Mgmt::V2017_04_01::Models::ProvisioningStateDR
85
+ RoleDisasterRecovery = Azure::EventHub::Mgmt::V2017_04_01::Models::RoleDisasterRecovery
86
+ EncodingCaptureDescription = Azure::EventHub::Mgmt::V2017_04_01::Models::EncodingCaptureDescription
87
+ EntityStatus = Azure::EventHub::Mgmt::V2017_04_01::Models::EntityStatus
50
88
  end
51
89
 
52
90
  #
53
91
  # EventHubManagementClass
54
92
  #
55
93
  class EventHubManagementClass
56
- attr_reader :operations, :clusters, :configuration, :namespaces, :configurable, :base_url, :options, :model_classes
94
+ attr_reader :clusters, :private_endpoint_connections, :private_link_resources, :configuration, :namespaces, :disaster_recovery_configs, :event_hubs, :consumer_groups, :operations, :regions, :configurable, :base_url, :options, :model_classes
57
95
 
58
96
  def initialize(options = {})
59
97
  if options.is_a?(Hash) && options.length == 0
@@ -68,15 +106,27 @@ module Azure::EventHub::Profiles::Latest
68
106
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
69
107
  @options = options[:options].nil? ? nil:options[:options]
70
108
 
71
- @client_0 = Azure::EventHub::Mgmt::V2018_01_01_preview::EventHub2018PreviewManagementClient.new(configurable.credentials, base_url, options)
109
+ @client_0 = Azure::EventHub::Mgmt::V2018_01_01_preview::EventHubManagementClient.new(configurable.credentials, base_url, options)
72
110
  if(@client_0.respond_to?(:subscription_id))
73
111
  @client_0.subscription_id = configurable.subscription_id
74
112
  end
75
113
  add_telemetry(@client_0)
76
- @operations = @client_0.operations
77
114
  @clusters = @client_0.clusters
115
+ @private_endpoint_connections = @client_0.private_endpoint_connections
116
+ @private_link_resources = @client_0.private_link_resources
78
117
  @configuration = @client_0.configuration
79
- @namespaces = @client_0.namespaces
118
+
119
+ @client_1 = Azure::EventHub::Mgmt::V2017_04_01::EventHubManagementClient.new(configurable.credentials, base_url, options)
120
+ if(@client_1.respond_to?(:subscription_id))
121
+ @client_1.subscription_id = configurable.subscription_id
122
+ end
123
+ add_telemetry(@client_1)
124
+ @namespaces = @client_1.namespaces
125
+ @disaster_recovery_configs = @client_1.disaster_recovery_configs
126
+ @event_hubs = @client_1.event_hubs
127
+ @consumer_groups = @client_1.consumer_groups
128
+ @operations = @client_1.operations
129
+ @regions = @client_1.regions
80
130
 
81
131
  @model_classes = ModelClasses.new
82
132
  end
@@ -87,7 +137,9 @@ module Azure::EventHub::Profiles::Latest
87
137
  end
88
138
 
89
139
  def method_missing(method, *args)
90
- if @client_0.respond_to?method
140
+ if @client_1.respond_to?method
141
+ @client_1.send(method, *args)
142
+ elsif @client_0.respond_to?method
91
143
  @client_0.send(method, *args)
92
144
  else
93
145
  super
@@ -97,23 +149,14 @@ module Azure::EventHub::Profiles::Latest
97
149
  end
98
150
 
99
151
  class ModelClasses
100
- def sku
101
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Sku
102
- end
103
- def operation_display
104
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationDisplay
105
- end
106
- def identity
107
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Identity
108
- end
109
- def operation_list_result
110
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationListResult
152
+ def encryption
153
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Encryption
111
154
  end
112
155
  def key_vault_properties
113
156
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::KeyVaultProperties
114
157
  end
115
- def operation
116
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Operation
158
+ def available_clusters_list
159
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::AvailableClustersList
117
160
  end
118
161
  def available_cluster
119
162
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::AvailableCluster
@@ -124,56 +167,65 @@ module Azure::EventHub::Profiles::Latest
124
167
  def cluster_list_result
125
168
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterListResult
126
169
  end
127
- def error_response
128
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ErrorResponse
129
- end
130
- def encryption
131
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Encryption
132
- end
133
- def resource
134
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Resource
135
- end
136
- def nwrule_set_virtual_network_rules
137
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NWRuleSetVirtualNetworkRules
170
+ def ehnamespace_list_result
171
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceListResult
138
172
  end
139
173
  def ehnamespace_id_list_result
140
174
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceIdListResult
141
175
  end
142
- def ehnamespace_list_result
143
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceListResult
176
+ def private_endpoint
177
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateEndpoint
144
178
  end
145
- def cluster_quota_configuration_properties
146
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties
179
+ def subnet
180
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Subnet
147
181
  end
148
182
  def nwrule_set_ip_rules
149
183
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NWRuleSetIpRules
150
184
  end
185
+ def sku
186
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Sku
187
+ end
188
+ def connection_state
189
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ConnectionState
190
+ end
191
+ def nwrule_set_virtual_network_rules
192
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NWRuleSetVirtualNetworkRules
193
+ end
151
194
  def ehnamespace_id_container
152
195
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceIdContainer
153
196
  end
197
+ def private_endpoint_connection_list_result
198
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateEndpointConnectionListResult
199
+ end
200
+ def identity
201
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Identity
202
+ end
203
+ def private_link_resource
204
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateLinkResource
205
+ end
154
206
  def ip_filter_rule_list_result
155
207
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRuleListResult
156
208
  end
209
+ def private_link_resources_list_result
210
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateLinkResourcesListResult
211
+ end
157
212
  def virtual_network_rule_list_result
158
213
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRuleListResult
159
214
  end
160
- def available_clusters_list
161
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::AvailableClustersList
162
- end
163
- def subnet
164
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Subnet
165
- end
166
- def tracked_resource
167
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::TrackedResource
215
+ def cluster_quota_configuration_properties
216
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties
168
217
  end
169
218
  def cluster
170
219
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Cluster
171
220
  end
221
+ def ip_filter_rule
222
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRule
223
+ end
172
224
  def ehnamespace
173
225
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespace
174
226
  end
175
- def ip_filter_rule
176
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRule
227
+ def private_endpoint_connection
228
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateEndpointConnection
177
229
  end
178
230
  def virtual_network_rule
179
231
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRule
@@ -181,6 +233,9 @@ module Azure::EventHub::Profiles::Latest
181
233
  def network_rule_set
182
234
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NetworkRuleSet
183
235
  end
236
+ def ipaction
237
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction
238
+ end
184
239
  def sku_name
185
240
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuName
186
241
  end
@@ -193,8 +248,11 @@ module Azure::EventHub::Profiles::Latest
193
248
  def key_source
194
249
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::KeySource
195
250
  end
196
- def ipaction
197
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction
251
+ def private_link_connection_status
252
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateLinkConnectionStatus
253
+ end
254
+ def end_point_provisioning_state
255
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EndPointProvisioningState
198
256
  end
199
257
  def network_rule_ipaction
200
258
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NetworkRuleIPAction
@@ -202,6 +260,96 @@ module Azure::EventHub::Profiles::Latest
202
260
  def default_action
203
261
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::DefaultAction
204
262
  end
263
+ def consumer_group_list_result
264
+ Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroupListResult
265
+ end
266
+ def event_hub_list_result
267
+ Azure::EventHub::Mgmt::V2017_04_01::Models::EventHubListResult
268
+ end
269
+ def authorization_rule_list_result
270
+ Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRuleListResult
271
+ end
272
+ def messaging_regions_list_result
273
+ Azure::EventHub::Mgmt::V2017_04_01::Models::MessagingRegionsListResult
274
+ end
275
+ def regenerate_access_key_parameters
276
+ Azure::EventHub::Mgmt::V2017_04_01::Models::RegenerateAccessKeyParameters
277
+ end
278
+ def resource
279
+ Azure::EventHub::Mgmt::V2017_04_01::Models::Resource
280
+ end
281
+ def arm_disaster_recovery_list_result
282
+ Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecoveryListResult
283
+ end
284
+ def check_name_availability_parameter
285
+ Azure::EventHub::Mgmt::V2017_04_01::Models::CheckNameAvailabilityParameter
286
+ end
287
+ def operation_display
288
+ Azure::EventHub::Mgmt::V2017_04_01::Models::OperationDisplay
289
+ end
290
+ def access_keys
291
+ Azure::EventHub::Mgmt::V2017_04_01::Models::AccessKeys
292
+ end
293
+ def operation
294
+ Azure::EventHub::Mgmt::V2017_04_01::Models::Operation
295
+ end
296
+ def error_response
297
+ Azure::EventHub::Mgmt::V2017_04_01::Models::ErrorResponse
298
+ end
299
+ def operation_list_result
300
+ Azure::EventHub::Mgmt::V2017_04_01::Models::OperationListResult
301
+ end
302
+ def messaging_regions_properties
303
+ Azure::EventHub::Mgmt::V2017_04_01::Models::MessagingRegionsProperties
304
+ end
305
+ def destination
306
+ Azure::EventHub::Mgmt::V2017_04_01::Models::Destination
307
+ end
308
+ def check_name_availability_result
309
+ Azure::EventHub::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResult
310
+ end
311
+ def capture_description
312
+ Azure::EventHub::Mgmt::V2017_04_01::Models::CaptureDescription
313
+ end
314
+ def authorization_rule
315
+ Azure::EventHub::Mgmt::V2017_04_01::Models::AuthorizationRule
316
+ end
317
+ def tracked_resource
318
+ Azure::EventHub::Mgmt::V2017_04_01::Models::TrackedResource
319
+ end
320
+ def consumer_group
321
+ Azure::EventHub::Mgmt::V2017_04_01::Models::ConsumerGroup
322
+ end
323
+ def arm_disaster_recovery
324
+ Azure::EventHub::Mgmt::V2017_04_01::Models::ArmDisasterRecovery
325
+ end
326
+ def eventhub
327
+ Azure::EventHub::Mgmt::V2017_04_01::Models::Eventhub
328
+ end
329
+ def messaging_regions
330
+ Azure::EventHub::Mgmt::V2017_04_01::Models::MessagingRegions
331
+ end
332
+ def access_rights
333
+ Azure::EventHub::Mgmt::V2017_04_01::Models::AccessRights
334
+ end
335
+ def key_type
336
+ Azure::EventHub::Mgmt::V2017_04_01::Models::KeyType
337
+ end
338
+ def unavailable_reason
339
+ Azure::EventHub::Mgmt::V2017_04_01::Models::UnavailableReason
340
+ end
341
+ def provisioning_state_dr
342
+ Azure::EventHub::Mgmt::V2017_04_01::Models::ProvisioningStateDR
343
+ end
344
+ def role_disaster_recovery
345
+ Azure::EventHub::Mgmt::V2017_04_01::Models::RoleDisasterRecovery
346
+ end
347
+ def encoding_capture_description
348
+ Azure::EventHub::Mgmt::V2017_04_01::Models::EncodingCaptureDescription
349
+ end
350
+ def entity_status
351
+ Azure::EventHub::Mgmt::V2017_04_01::Models::EntityStatus
352
+ end
205
353
  end
206
354
  end
207
355
  end