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.
Files changed (113) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2014-09-01/generated/azure_mgmt_event_hub.rb +59 -0
  3. data/lib/2014-09-01/generated/azure_mgmt_event_hub/consumer_groups.rb +598 -0
  4. 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
  5. data/lib/2014-09-01/generated/azure_mgmt_event_hub/event_hubs.rb +1239 -0
  6. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/access_rights.rb +17 -0
  7. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb +46 -0
  8. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb +75 -0
  9. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/consumer_group_create_or_update_parameters.rb +115 -0
  10. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +100 -0
  11. 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
  12. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/entity_status.rb +23 -0
  13. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/event_hub_create_or_update_parameters.rb +150 -0
  14. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +100 -0
  15. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/event_hub_resource.rb +152 -0
  16. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/namespace_create_or_update_parameters.rb +160 -0
  17. 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
  18. 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
  19. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/namespace_state.rb +27 -0
  20. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/namespace_update_parameter.rb +66 -0
  21. data/lib/{2018-01-01-preview → 2014-09-01}/generated/azure_mgmt_event_hub/models/operation.rb +1 -1
  22. data/lib/{2018-01-01-preview → 2014-09-01}/generated/azure_mgmt_event_hub/models/operation_display.rb +1 -1
  23. data/lib/{2018-01-01-preview → 2014-09-01}/generated/azure_mgmt_event_hub/models/operation_list_result.rb +2 -2
  24. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/resource.rb +91 -0
  25. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_create_or_update_parameters.rb +79 -0
  26. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb +102 -0
  27. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_post_resource.rb +175 -0
  28. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_resource.rb +90 -0
  29. data/lib/{2017-04-01 → 2014-09-01}/generated/azure_mgmt_event_hub/models/sku.rb +6 -11
  30. data/lib/{2017-04-01 → 2014-09-01}/generated/azure_mgmt_event_hub/models/sku_name.rb +1 -1
  31. data/lib/{2017-04-01 → 2014-09-01}/generated/azure_mgmt_event_hub/models/sku_tier.rb +2 -1
  32. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb +89 -0
  33. data/lib/2014-09-01/generated/azure_mgmt_event_hub/models/unavailable_reason.rb +20 -0
  34. data/lib/2014-09-01/generated/azure_mgmt_event_hub/module_definition.rb +9 -0
  35. data/lib/2014-09-01/generated/azure_mgmt_event_hub/namespaces.rb +2044 -0
  36. data/lib/{2018-01-01-preview → 2014-09-01}/generated/azure_mgmt_event_hub/operations.rb +11 -8
  37. data/lib/2015-08-01/generated/azure_mgmt_event_hub/consumer_groups.rb +10 -0
  38. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +1 -1
  39. data/lib/2015-08-01/generated/azure_mgmt_event_hub/event_hubs.rb +31 -5
  40. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +1 -1
  41. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +1 -1
  42. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/namespace_list_result.rb +1 -1
  43. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb +1 -1
  44. data/lib/2015-08-01/generated/azure_mgmt_event_hub/models/shared_access_authorization_rule_list_result.rb +1 -1
  45. data/lib/2015-08-01/generated/azure_mgmt_event_hub/namespaces.rb +32 -0
  46. data/lib/2015-08-01/generated/azure_mgmt_event_hub/operations.rb +4 -0
  47. data/lib/2017-04-01/generated/azure_mgmt_event_hub.rb +16 -22
  48. data/lib/2017-04-01/generated/azure_mgmt_event_hub/consumer_groups.rb +15 -1
  49. data/lib/2017-04-01/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb +263 -239
  50. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hub_management_client.rb +5 -5
  51. data/lib/2017-04-01/generated/azure_mgmt_event_hub/event_hubs.rb +302 -263
  52. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb +1 -1
  53. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb +1 -1
  54. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb +1 -1
  55. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/capture_description.rb +11 -0
  56. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/consumer_group.rb +1 -1
  57. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb +1 -1
  58. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/error_response.rb +1 -1
  59. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb +1 -1
  60. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions.rb +1 -1
  61. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_list_result.rb +1 -1
  62. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/messaging_regions_properties.rb +1 -2
  63. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/operation_list_result.rb +1 -1
  64. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb +1 -1
  65. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/resource.rb +4 -4
  66. data/lib/2017-04-01/generated/azure_mgmt_event_hub/models/tracked_resource.rb +3 -3
  67. data/lib/2017-04-01/generated/azure_mgmt_event_hub/namespaces.rb +193 -1212
  68. data/lib/2017-04-01/generated/azure_mgmt_event_hub/operations.rb +4 -0
  69. data/lib/2017-04-01/generated/azure_mgmt_event_hub/regions.rb +4 -0
  70. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub.rb +35 -14
  71. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/clusters.rb +530 -29
  72. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/configuration.rb +11 -7
  73. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/event_hub_management_client.rb +149 -0
  74. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/available_cluster.rb +47 -0
  75. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/available_clusters_list.rb +56 -0
  76. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster.rb +18 -6
  77. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_list_result.rb +1 -1
  78. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/connection_state.rb +59 -0
  79. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/default_action.rb +16 -0
  80. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace.rb +36 -1
  81. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_id_container.rb +46 -0
  82. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_id_list_result.rb +56 -0
  83. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb +1 -1
  84. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/encryption.rb +70 -0
  85. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/end_point_provisioning_state.rb +20 -0
  86. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/error_response.rb +1 -1
  87. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/identity.rb +72 -0
  88. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/identity_type.rb +15 -0
  89. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/ip_filter_rule_list_result.rb +1 -1
  90. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/key_source.rb +15 -0
  91. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/key_vault_properties.rb +68 -0
  92. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/network_rule_ipaction.rb +15 -0
  93. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/network_rule_set.rb +126 -0
  94. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/nwrule_set_ip_rules.rb +58 -0
  95. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/nwrule_set_virtual_network_rules.rb +59 -0
  96. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint.rb +46 -0
  97. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint_connection.rb +100 -0
  98. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint_connection_list_result.rb +100 -0
  99. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_connection_status.rb +18 -0
  100. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_resource.rb +119 -0
  101. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_resources_list_result.rb +67 -0
  102. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/resource.rb +4 -4
  103. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku.rb +1 -1
  104. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/subnet.rb +46 -0
  105. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/tracked_resource.rb +3 -3
  106. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/models/virtual_network_rule_list_result.rb +6 -6
  107. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/namespaces.rb +661 -412
  108. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/private_endpoint_connections.rb +625 -0
  109. data/lib/2018-01-01-preview/generated/azure_mgmt_event_hub/private_link_resources.rb +127 -0
  110. data/lib/azure_mgmt_event_hub.rb +3 -2
  111. data/lib/profiles/latest/modules/eventhub_profile_module.rb +254 -46
  112. data/lib/version.rb +1 -1
  113. metadata +66 -16
@@ -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,7 +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 '2017-04-01/generated/azure_mgmt_event_hub'
6
- require '2018-01-01-preview/generated/azure_mgmt_event_hub'
7
5
  require '2015-08-01/generated/azure_mgmt_event_hub'
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'
8
9
  require 'profiles/latest/eventhub_latest_profile_client'
@@ -6,39 +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
- ClusterQuotaConfigurationProperties = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties
16
- OperationDisplay = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationDisplay
17
- ErrorResponse = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ErrorResponse
18
- OperationListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationListResult
19
- VirtualNetworkRuleListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRuleListResult
20
- Resource = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Resource
21
- Operation = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Operation
22
- Sku = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Sku
23
- ClusterListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterListResult
24
- IpFilterRuleListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRuleListResult
21
+ Encryption = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Encryption
22
+ KeyVaultProperties = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::KeyVaultProperties
23
+ AvailableClustersList = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::AvailableClustersList
24
+ AvailableCluster = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::AvailableCluster
25
25
  ClusterSku = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterSku
26
+ ClusterListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterListResult
26
27
  EHNamespaceListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceListResult
27
- TrackedResource = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::TrackedResource
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
+ 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
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
39
+ IpFilterRuleListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRuleListResult
40
+ PrivateLinkResourcesListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateLinkResourcesListResult
41
+ VirtualNetworkRuleListResult = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRuleListResult
42
+ ClusterQuotaConfigurationProperties = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties
28
43
  Cluster = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Cluster
29
- EHNamespace = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespace
30
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
31
47
  VirtualNetworkRule = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRule
48
+ NetworkRuleSet = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NetworkRuleSet
49
+ IPAction = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction
32
50
  SkuName = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuName
33
51
  SkuTier = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuTier
34
- IPAction = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction
52
+ IdentityType = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IdentityType
53
+ KeySource = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::KeySource
54
+ PrivateLinkConnectionStatus = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateLinkConnectionStatus
55
+ EndPointProvisioningState = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EndPointProvisioningState
56
+ NetworkRuleIPAction = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NetworkRuleIPAction
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
35
88
  end
36
89
 
37
90
  #
38
91
  # EventHubManagementClass
39
92
  #
40
93
  class EventHubManagementClass
41
- 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
42
95
 
43
96
  def initialize(options = {})
44
97
  if options.is_a?(Hash) && options.length == 0
@@ -53,15 +106,27 @@ module Azure::EventHub::Profiles::Latest
53
106
  @base_url = options[:base_url].nil? ? nil:options[:base_url]
54
107
  @options = options[:options].nil? ? nil:options[:options]
55
108
 
56
- @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)
57
110
  if(@client_0.respond_to?(:subscription_id))
58
111
  @client_0.subscription_id = configurable.subscription_id
59
112
  end
60
113
  add_telemetry(@client_0)
61
- @operations = @client_0.operations
62
114
  @clusters = @client_0.clusters
115
+ @private_endpoint_connections = @client_0.private_endpoint_connections
116
+ @private_link_resources = @client_0.private_link_resources
63
117
  @configuration = @client_0.configuration
64
- @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
65
130
 
66
131
  @model_classes = ModelClasses.new
67
132
  end
@@ -72,7 +137,9 @@ module Azure::EventHub::Profiles::Latest
72
137
  end
73
138
 
74
139
  def method_missing(method, *args)
75
- 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
76
143
  @client_0.send(method, *args)
77
144
  else
78
145
  super
@@ -82,65 +149,206 @@ module Azure::EventHub::Profiles::Latest
82
149
  end
83
150
 
84
151
  class ModelClasses
85
- def cluster_quota_configuration_properties
86
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterQuotaConfigurationProperties
152
+ def encryption
153
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Encryption
87
154
  end
88
- def operation_display
89
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationDisplay
155
+ def key_vault_properties
156
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::KeyVaultProperties
90
157
  end
91
- def error_response
92
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ErrorResponse
158
+ def available_clusters_list
159
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::AvailableClustersList
93
160
  end
94
- def operation_list_result
95
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::OperationListResult
161
+ def available_cluster
162
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::AvailableCluster
96
163
  end
97
- def virtual_network_rule_list_result
98
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRuleListResult
164
+ def cluster_sku
165
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterSku
99
166
  end
100
- def resource
101
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Resource
167
+ def cluster_list_result
168
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterListResult
102
169
  end
103
- def operation
104
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Operation
170
+ def ehnamespace_list_result
171
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceListResult
172
+ end
173
+ def ehnamespace_id_list_result
174
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceIdListResult
175
+ end
176
+ def private_endpoint
177
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateEndpoint
178
+ end
179
+ def subnet
180
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Subnet
181
+ end
182
+ def nwrule_set_ip_rules
183
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NWRuleSetIpRules
105
184
  end
106
185
  def sku
107
186
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Sku
108
187
  end
109
- def cluster_list_result
110
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterListResult
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
194
+ def ehnamespace_id_container
195
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceIdContainer
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
111
205
  end
112
206
  def ip_filter_rule_list_result
113
207
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRuleListResult
114
208
  end
115
- def cluster_sku
116
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::ClusterSku
209
+ def private_link_resources_list_result
210
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateLinkResourcesListResult
117
211
  end
118
- def ehnamespace_list_result
119
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespaceListResult
212
+ def virtual_network_rule_list_result
213
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRuleListResult
120
214
  end
121
- def tracked_resource
122
- 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
123
217
  end
124
218
  def cluster
125
219
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Cluster
126
220
  end
221
+ def ip_filter_rule
222
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRule
223
+ end
127
224
  def ehnamespace
128
225
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::EHNamespace
129
226
  end
130
- def ip_filter_rule
131
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IpFilterRule
227
+ def private_endpoint_connection
228
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::PrivateEndpointConnection
132
229
  end
133
230
  def virtual_network_rule
134
231
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::VirtualNetworkRule
135
232
  end
233
+ def network_rule_set
234
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NetworkRuleSet
235
+ end
236
+ def ipaction
237
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction
238
+ end
136
239
  def sku_name
137
240
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuName
138
241
  end
139
242
  def sku_tier
140
243
  Azure::EventHub::Mgmt::V2018_01_01_preview::Models::SkuTier
141
244
  end
142
- def ipaction
143
- Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IPAction
245
+ def identity_type
246
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::IdentityType
247
+ end
248
+ def key_source
249
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::KeySource
250
+ end
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
256
+ end
257
+ def network_rule_ipaction
258
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::NetworkRuleIPAction
259
+ end
260
+ def default_action
261
+ Azure::EventHub::Mgmt::V2018_01_01_preview::Models::DefaultAction
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
144
352
  end
145
353
  end
146
354
  end