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
@@ -20,46 +20,52 @@ require '2018-01-01-preview/generated/azure_mgmt_event_hub/module_definition'
20
20
  require 'ms_rest_azure'
21
21
 
22
22
  module Azure::EventHub::Mgmt::V2018_01_01_preview
23
- autoload :Operations, '2018-01-01-preview/generated/azure_mgmt_event_hub/operations.rb'
24
23
  autoload :Clusters, '2018-01-01-preview/generated/azure_mgmt_event_hub/clusters.rb'
25
- autoload :Configuration, '2018-01-01-preview/generated/azure_mgmt_event_hub/configuration.rb'
26
24
  autoload :Namespaces, '2018-01-01-preview/generated/azure_mgmt_event_hub/namespaces.rb'
27
- autoload :EventHub2018PreviewManagementClient, '2018-01-01-preview/generated/azure_mgmt_event_hub/event_hub2018preview_management_client.rb'
25
+ autoload :PrivateEndpointConnections, '2018-01-01-preview/generated/azure_mgmt_event_hub/private_endpoint_connections.rb'
26
+ autoload :PrivateLinkResources, '2018-01-01-preview/generated/azure_mgmt_event_hub/private_link_resources.rb'
27
+ autoload :Configuration, '2018-01-01-preview/generated/azure_mgmt_event_hub/configuration.rb'
28
+ autoload :EventHubManagementClient, '2018-01-01-preview/generated/azure_mgmt_event_hub/event_hub_management_client.rb'
28
29
 
29
30
  module Models
30
- autoload :Sku, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku.rb'
31
- autoload :OperationDisplay, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation_display.rb'
32
- autoload :Identity, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/identity.rb'
33
- autoload :OperationListResult, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation_list_result.rb'
31
+ autoload :Encryption, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/encryption.rb'
34
32
  autoload :KeyVaultProperties, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/key_vault_properties.rb'
35
- autoload :Operation, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/operation.rb'
33
+ autoload :AvailableClustersList, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/available_clusters_list.rb'
36
34
  autoload :AvailableCluster, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/available_cluster.rb'
37
35
  autoload :ClusterSku, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_sku.rb'
38
36
  autoload :ClusterListResult, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_list_result.rb'
39
- autoload :ErrorResponse, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/error_response.rb'
40
- autoload :Encryption, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/encryption.rb'
41
- autoload :Resource, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/resource.rb'
42
- autoload :NWRuleSetVirtualNetworkRules, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/nwrule_set_virtual_network_rules.rb'
43
- autoload :EHNamespaceIdListResult, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_id_list_result.rb'
44
37
  autoload :EHNamespaceListResult, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb'
45
- autoload :ClusterQuotaConfigurationProperties, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_quota_configuration_properties.rb'
38
+ autoload :EHNamespaceIdListResult, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_id_list_result.rb'
39
+ autoload :PrivateEndpoint, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint.rb'
40
+ autoload :Resource, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/resource.rb'
41
+ autoload :Subnet, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/subnet.rb'
46
42
  autoload :NWRuleSetIpRules, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/nwrule_set_ip_rules.rb'
43
+ autoload :Sku, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku.rb'
44
+ autoload :ConnectionState, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/connection_state.rb'
45
+ autoload :ErrorResponse, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/error_response.rb'
46
+ autoload :NWRuleSetVirtualNetworkRules, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/nwrule_set_virtual_network_rules.rb'
47
47
  autoload :EHNamespaceIdContainer, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace_id_container.rb'
48
+ autoload :PrivateEndpointConnectionListResult, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint_connection_list_result.rb'
49
+ autoload :Identity, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/identity.rb'
50
+ autoload :PrivateLinkResource, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_resource.rb'
48
51
  autoload :IpFilterRuleListResult, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/ip_filter_rule_list_result.rb'
52
+ autoload :PrivateLinkResourcesListResult, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_resources_list_result.rb'
49
53
  autoload :VirtualNetworkRuleListResult, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/virtual_network_rule_list_result.rb'
50
- autoload :AvailableClustersList, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/available_clusters_list.rb'
51
- autoload :Subnet, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/subnet.rb'
54
+ autoload :ClusterQuotaConfigurationProperties, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster_quota_configuration_properties.rb'
52
55
  autoload :TrackedResource, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/tracked_resource.rb'
53
56
  autoload :Cluster, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/cluster.rb'
54
- autoload :EHNamespace, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace.rb'
55
57
  autoload :IpFilterRule, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/ip_filter_rule.rb'
58
+ autoload :EHNamespace, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/ehnamespace.rb'
59
+ autoload :PrivateEndpointConnection, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_endpoint_connection.rb'
56
60
  autoload :VirtualNetworkRule, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/virtual_network_rule.rb'
57
61
  autoload :NetworkRuleSet, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/network_rule_set.rb'
62
+ autoload :IPAction, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/ipaction.rb'
58
63
  autoload :SkuName, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku_name.rb'
59
64
  autoload :SkuTier, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/sku_tier.rb'
60
65
  autoload :IdentityType, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/identity_type.rb'
61
66
  autoload :KeySource, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/key_source.rb'
62
- autoload :IPAction, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/ipaction.rb'
67
+ autoload :PrivateLinkConnectionStatus, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/private_link_connection_status.rb'
68
+ autoload :EndPointProvisioningState, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/end_point_provisioning_state.rb'
63
69
  autoload :NetworkRuleIPAction, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/network_rule_ipaction.rb'
64
70
  autoload :DefaultAction, '2018-01-01-preview/generated/azure_mgmt_event_hub/models/default_action.rb'
65
71
  end
@@ -19,7 +19,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
19
19
  @client = client
20
20
  end
21
21
 
22
- # @return [EventHub2018PreviewManagementClient] reference to the EventHub2018PreviewManagementClient
22
+ # @return [EventHubManagementClient] reference to the EventHubManagementClient
23
23
  attr_reader :client
24
24
 
25
25
  #
@@ -31,8 +31,8 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
31
31
  #
32
32
  # @return [AvailableClustersList] operation results.
33
33
  #
34
- def list_available_clusters(custom_headers:nil)
35
- response = list_available_clusters_async(custom_headers:custom_headers).value!
34
+ def list_available_cluster_region(custom_headers:nil)
35
+ response = list_available_cluster_region_async(custom_headers:custom_headers).value!
36
36
  response.body unless response.nil?
37
37
  end
38
38
 
@@ -45,8 +45,8 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
45
45
  #
46
46
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
47
47
  #
48
- def list_available_clusters_with_http_info(custom_headers:nil)
49
- list_available_clusters_async(custom_headers:custom_headers).value!
48
+ def list_available_cluster_region_with_http_info(custom_headers:nil)
49
+ list_available_cluster_region_async(custom_headers:custom_headers).value!
50
50
  end
51
51
 
52
52
  #
@@ -58,7 +58,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
58
58
  #
59
59
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
60
60
  #
61
- def list_available_clusters_async(custom_headers:nil)
61
+ def list_available_cluster_region_async(custom_headers:nil)
62
62
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
63
63
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
64
64
 
@@ -112,10 +112,10 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
112
112
  end
113
113
 
114
114
  #
115
- # Lists the available Event Hubs Clusters within an ARM resource group.
115
+ # Lists the available Event Hubs Clusters within an ARM resource group
116
116
  #
117
117
  # @param resource_group_name [String] Name of the resource group within the
118
- # Azure subscription.
118
+ # azure subscription.
119
119
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
120
120
  # will be added to the HTTP request.
121
121
  #
@@ -127,10 +127,10 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
127
127
  end
128
128
 
129
129
  #
130
- # Lists the available Event Hubs Clusters within an ARM resource group.
130
+ # Lists the available Event Hubs Clusters within an ARM resource group
131
131
  #
132
132
  # @param resource_group_name [String] Name of the resource group within the
133
- # Azure subscription.
133
+ # azure subscription.
134
134
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
135
135
  # will be added to the HTTP request.
136
136
  #
@@ -141,10 +141,10 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
141
141
  end
142
142
 
143
143
  #
144
- # Lists the available Event Hubs Clusters within an ARM resource group.
144
+ # Lists the available Event Hubs Clusters within an ARM resource group
145
145
  #
146
146
  # @param resource_group_name [String] Name of the resource group within the
147
- # Azure subscription.
147
+ # azure subscription.
148
148
  # @param [Hash{String => String}] A hash of custom headers that will be added
149
149
  # to the HTTP request.
150
150
  #
@@ -210,7 +210,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
210
210
  # Gets the resource description of the specified Event Hubs Cluster.
211
211
  #
212
212
  # @param resource_group_name [String] Name of the resource group within the
213
- # Azure subscription.
213
+ # azure subscription.
214
214
  # @param cluster_name [String] The name of the Event Hubs Cluster.
215
215
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
216
216
  # will be added to the HTTP request.
@@ -226,7 +226,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
226
226
  # Gets the resource description of the specified Event Hubs Cluster.
227
227
  #
228
228
  # @param resource_group_name [String] Name of the resource group within the
229
- # Azure subscription.
229
+ # azure subscription.
230
230
  # @param cluster_name [String] The name of the Event Hubs Cluster.
231
231
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
232
232
  # will be added to the HTTP request.
@@ -241,7 +241,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
241
241
  # Gets the resource description of the specified Event Hubs Cluster.
242
242
  #
243
243
  # @param resource_group_name [String] Name of the resource group within the
244
- # Azure subscription.
244
+ # azure subscription.
245
245
  # @param cluster_name [String] The name of the Event Hubs Cluster.
246
246
  # @param [Hash{String => String}] A hash of custom headers that will be added
247
247
  # to the HTTP request.
@@ -311,31 +311,35 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
311
311
  # Creates or updates an instance of an Event Hubs Cluster.
312
312
  #
313
313
  # @param resource_group_name [String] Name of the resource group within the
314
- # Azure subscription.
314
+ # azure subscription.
315
315
  # @param cluster_name [String] The name of the Event Hubs Cluster.
316
+ # @param parameters [Cluster] Parameters for creating a eventhub cluster
317
+ # resource.
316
318
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
317
319
  # will be added to the HTTP request.
318
320
  #
319
321
  # @return [Cluster] operation results.
320
322
  #
321
- def put(resource_group_name, cluster_name, custom_headers:nil)
322
- response = put_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
323
+ def create_or_update(resource_group_name, cluster_name, parameters, custom_headers:nil)
324
+ response = create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
323
325
  response.body unless response.nil?
324
326
  end
325
327
 
326
328
  #
327
329
  # @param resource_group_name [String] Name of the resource group within the
328
- # Azure subscription.
330
+ # azure subscription.
329
331
  # @param cluster_name [String] The name of the Event Hubs Cluster.
332
+ # @param parameters [Cluster] Parameters for creating a eventhub cluster
333
+ # resource.
330
334
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
331
335
  # will be added to the HTTP request.
332
336
  #
333
337
  # @return [Concurrent::Promise] promise which provides async access to http
334
338
  # response.
335
339
  #
336
- def put_async(resource_group_name, cluster_name, custom_headers:nil)
340
+ def create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
337
341
  # Send request
338
- promise = begin_put_async(resource_group_name, cluster_name, custom_headers:custom_headers)
342
+ promise = begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers)
339
343
 
340
344
  promise = promise.then do |response|
341
345
  # Defining deserialization method.
@@ -356,7 +360,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
356
360
  # idempotent.
357
361
  #
358
362
  # @param resource_group_name [String] Name of the resource group within the
359
- # Azure subscription.
363
+ # azure subscription.
360
364
  # @param cluster_name [String] The name of the Event Hubs Cluster.
361
365
  # @param parameters [Cluster] The properties of the Event Hubs Cluster which
362
366
  # should be updated.
@@ -365,14 +369,14 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
365
369
  #
366
370
  # @return [Cluster] operation results.
367
371
  #
368
- def patch(resource_group_name, cluster_name, parameters, custom_headers:nil)
369
- response = patch_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
372
+ def update(resource_group_name, cluster_name, parameters, custom_headers:nil)
373
+ response = update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
370
374
  response.body unless response.nil?
371
375
  end
372
376
 
373
377
  #
374
378
  # @param resource_group_name [String] Name of the resource group within the
375
- # Azure subscription.
379
+ # azure subscription.
376
380
  # @param cluster_name [String] The name of the Event Hubs Cluster.
377
381
  # @param parameters [Cluster] The properties of the Event Hubs Cluster which
378
382
  # should be updated.
@@ -382,9 +386,9 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
382
386
  # @return [Concurrent::Promise] promise which provides async access to http
383
387
  # response.
384
388
  #
385
- def patch_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
389
+ def update_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
386
390
  # Send request
387
- promise = begin_patch_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers)
391
+ promise = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers)
388
392
 
389
393
  promise = promise.then do |response|
390
394
  # Defining deserialization method.
@@ -404,7 +408,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
404
408
  # Deletes an existing Event Hubs Cluster. This operation is idempotent.
405
409
  #
406
410
  # @param resource_group_name [String] Name of the resource group within the
407
- # Azure subscription.
411
+ # azure subscription.
408
412
  # @param cluster_name [String] The name of the Event Hubs Cluster.
409
413
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
410
414
  # will be added to the HTTP request.
@@ -416,7 +420,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
416
420
 
417
421
  #
418
422
  # @param resource_group_name [String] Name of the resource group within the
419
- # Azure subscription.
423
+ # azure subscription.
420
424
  # @param cluster_name [String] The name of the Event Hubs Cluster.
421
425
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
422
426
  # will be added to the HTTP request.
@@ -444,7 +448,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
444
448
  # List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.
445
449
  #
446
450
  # @param resource_group_name [String] Name of the resource group within the
447
- # Azure subscription.
451
+ # azure subscription.
448
452
  # @param cluster_name [String] The name of the Event Hubs Cluster.
449
453
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
450
454
  # will be added to the HTTP request.
@@ -460,7 +464,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
460
464
  # List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.
461
465
  #
462
466
  # @param resource_group_name [String] Name of the resource group within the
463
- # Azure subscription.
467
+ # azure subscription.
464
468
  # @param cluster_name [String] The name of the Event Hubs Cluster.
465
469
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
466
470
  # will be added to the HTTP request.
@@ -475,7 +479,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
475
479
  # List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.
476
480
  #
477
481
  # @param resource_group_name [String] Name of the resource group within the
478
- # Azure subscription.
482
+ # azure subscription.
479
483
  # @param cluster_name [String] The name of the Event Hubs Cluster.
480
484
  # @param [Hash{String => String}] A hash of custom headers that will be added
481
485
  # to the HTTP request.
@@ -545,15 +549,17 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
545
549
  # Creates or updates an instance of an Event Hubs Cluster.
546
550
  #
547
551
  # @param resource_group_name [String] Name of the resource group within the
548
- # Azure subscription.
552
+ # azure subscription.
549
553
  # @param cluster_name [String] The name of the Event Hubs Cluster.
554
+ # @param parameters [Cluster] Parameters for creating a eventhub cluster
555
+ # resource.
550
556
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
551
557
  # will be added to the HTTP request.
552
558
  #
553
559
  # @return [Cluster] operation results.
554
560
  #
555
- def begin_put(resource_group_name, cluster_name, custom_headers:nil)
556
- response = begin_put_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
561
+ def begin_create_or_update(resource_group_name, cluster_name, parameters, custom_headers:nil)
562
+ response = begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
557
563
  response.body unless response.nil?
558
564
  end
559
565
 
@@ -561,29 +567,33 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
561
567
  # Creates or updates an instance of an Event Hubs Cluster.
562
568
  #
563
569
  # @param resource_group_name [String] Name of the resource group within the
564
- # Azure subscription.
570
+ # azure subscription.
565
571
  # @param cluster_name [String] The name of the Event Hubs Cluster.
572
+ # @param parameters [Cluster] Parameters for creating a eventhub cluster
573
+ # resource.
566
574
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
567
575
  # will be added to the HTTP request.
568
576
  #
569
577
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
570
578
  #
571
- def begin_put_with_http_info(resource_group_name, cluster_name, custom_headers:nil)
572
- begin_put_async(resource_group_name, cluster_name, custom_headers:custom_headers).value!
579
+ def begin_create_or_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil)
580
+ begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
573
581
  end
574
582
 
575
583
  #
576
584
  # Creates or updates an instance of an Event Hubs Cluster.
577
585
  #
578
586
  # @param resource_group_name [String] Name of the resource group within the
579
- # Azure subscription.
587
+ # azure subscription.
580
588
  # @param cluster_name [String] The name of the Event Hubs Cluster.
589
+ # @param parameters [Cluster] Parameters for creating a eventhub cluster
590
+ # resource.
581
591
  # @param [Hash{String => String}] A hash of custom headers that will be added
582
592
  # to the HTTP request.
583
593
  #
584
594
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
585
595
  #
586
- def begin_put_async(resource_group_name, cluster_name, custom_headers:nil)
596
+ def begin_create_or_update_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
587
597
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
588
598
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
589
599
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
@@ -591,6 +601,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
591
601
  fail ArgumentError, 'cluster_name is nil' if cluster_name.nil?
592
602
  fail ArgumentError, "'cluster_name' should satisfy the constraint - 'MaxLength': '50'" if !cluster_name.nil? && cluster_name.length > 50
593
603
  fail ArgumentError, "'cluster_name' should satisfy the constraint - 'MinLength': '6'" if !cluster_name.nil? && cluster_name.length < 6
604
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
594
605
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
595
606
 
596
607
 
@@ -600,6 +611,12 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
600
611
  # Set Headers
601
612
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
602
613
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
614
+
615
+ # Serialize Request
616
+ request_mapper = Azure::EventHub::Mgmt::V2018_01_01_preview::Models::Cluster.mapper()
617
+ request_content = @client.serialize(request_mapper, parameters)
618
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
619
+
603
620
  path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}'
604
621
 
605
622
  request_url = @base_url || @client.base_url
@@ -608,6 +625,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
608
625
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
609
626
  path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'clusterName' => cluster_name},
610
627
  query_params: {'api-version' => @client.api_version},
628
+ body: request_content,
611
629
  headers: request_headers.merge(custom_headers || {}),
612
630
  base_url: request_url
613
631
  }
@@ -657,7 +675,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
657
675
  # idempotent.
658
676
  #
659
677
  # @param resource_group_name [String] Name of the resource group within the
660
- # Azure subscription.
678
+ # azure subscription.
661
679
  # @param cluster_name [String] The name of the Event Hubs Cluster.
662
680
  # @param parameters [Cluster] The properties of the Event Hubs Cluster which
663
681
  # should be updated.
@@ -666,8 +684,8 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
666
684
  #
667
685
  # @return [Cluster] operation results.
668
686
  #
669
- def begin_patch(resource_group_name, cluster_name, parameters, custom_headers:nil)
670
- response = begin_patch_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
687
+ def begin_update(resource_group_name, cluster_name, parameters, custom_headers:nil)
688
+ response = begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
671
689
  response.body unless response.nil?
672
690
  end
673
691
 
@@ -676,7 +694,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
676
694
  # idempotent.
677
695
  #
678
696
  # @param resource_group_name [String] Name of the resource group within the
679
- # Azure subscription.
697
+ # azure subscription.
680
698
  # @param cluster_name [String] The name of the Event Hubs Cluster.
681
699
  # @param parameters [Cluster] The properties of the Event Hubs Cluster which
682
700
  # should be updated.
@@ -685,8 +703,8 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
685
703
  #
686
704
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
687
705
  #
688
- def begin_patch_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil)
689
- begin_patch_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
706
+ def begin_update_with_http_info(resource_group_name, cluster_name, parameters, custom_headers:nil)
707
+ begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:custom_headers).value!
690
708
  end
691
709
 
692
710
  #
@@ -694,7 +712,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
694
712
  # idempotent.
695
713
  #
696
714
  # @param resource_group_name [String] Name of the resource group within the
697
- # Azure subscription.
715
+ # azure subscription.
698
716
  # @param cluster_name [String] The name of the Event Hubs Cluster.
699
717
  # @param parameters [Cluster] The properties of the Event Hubs Cluster which
700
718
  # should be updated.
@@ -703,7 +721,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
703
721
  #
704
722
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
705
723
  #
706
- def begin_patch_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
724
+ def begin_update_async(resource_group_name, cluster_name, parameters, custom_headers:nil)
707
725
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
708
726
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
709
727
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
@@ -784,7 +802,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
784
802
  # Deletes an existing Event Hubs Cluster. This operation is idempotent.
785
803
  #
786
804
  # @param resource_group_name [String] Name of the resource group within the
787
- # Azure subscription.
805
+ # azure subscription.
788
806
  # @param cluster_name [String] The name of the Event Hubs Cluster.
789
807
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
790
808
  # will be added to the HTTP request.
@@ -799,7 +817,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
799
817
  # Deletes an existing Event Hubs Cluster. This operation is idempotent.
800
818
  #
801
819
  # @param resource_group_name [String] Name of the resource group within the
802
- # Azure subscription.
820
+ # azure subscription.
803
821
  # @param cluster_name [String] The name of the Event Hubs Cluster.
804
822
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
805
823
  # will be added to the HTTP request.
@@ -814,7 +832,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
814
832
  # Deletes an existing Event Hubs Cluster. This operation is idempotent.
815
833
  #
816
834
  # @param resource_group_name [String] Name of the resource group within the
817
- # Azure subscription.
835
+ # azure subscription.
818
836
  # @param cluster_name [String] The name of the Event Hubs Cluster.
819
837
  # @param [Hash{String => String}] A hash of custom headers that will be added
820
838
  # to the HTTP request.
@@ -871,7 +889,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
871
889
  end
872
890
 
873
891
  #
874
- # Lists the available Event Hubs Clusters within an ARM resource group.
892
+ # Lists the available Event Hubs Clusters within an ARM resource group
875
893
  #
876
894
  # @param next_page_link [String] The NextLink from the previous successful call
877
895
  # to List operation.
@@ -886,7 +904,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
886
904
  end
887
905
 
888
906
  #
889
- # Lists the available Event Hubs Clusters within an ARM resource group.
907
+ # Lists the available Event Hubs Clusters within an ARM resource group
890
908
  #
891
909
  # @param next_page_link [String] The NextLink from the previous successful call
892
910
  # to List operation.
@@ -900,7 +918,7 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
900
918
  end
901
919
 
902
920
  #
903
- # Lists the available Event Hubs Clusters within an ARM resource group.
921
+ # Lists the available Event Hubs Clusters within an ARM resource group
904
922
  #
905
923
  # @param next_page_link [String] The NextLink from the previous successful call
906
924
  # to List operation.
@@ -961,10 +979,10 @@ module Azure::EventHub::Mgmt::V2018_01_01_preview
961
979
  end
962
980
 
963
981
  #
964
- # Lists the available Event Hubs Clusters within an ARM resource group.
982
+ # Lists the available Event Hubs Clusters within an ARM resource group
965
983
  #
966
984
  # @param resource_group_name [String] Name of the resource group within the
967
- # Azure subscription.
985
+ # azure subscription.
968
986
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
969
987
  # will be added to the HTTP request.
970
988
  #