diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/hub_virtual_network_connections.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/hub_virtual_network_connections.rb index 09ed766599..559cb60f58 100644 --- a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/hub_virtual_network_connections.rb +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/hub_virtual_network_connections.rb @@ -24,53 +24,41 @@ def initialize(client) # # Retrieves the details of a HubVirtualNetworkConnection. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. - # @param connection_name [String] The name of the vpn connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [HubVirtualNetworkConnection] operation results. # - def get(resource_group_name, virtual_hub_name, connection_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_hub_name, connection_name, custom_headers).value! + def get(custom_headers = nil) + response = get_async(custom_headers).value! response.body unless response.nil? end # # Retrieves the details of a HubVirtualNetworkConnection. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. - # @param connection_name [String] The name of the vpn connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_hub_name, connection_name, custom_headers = nil) - get_async(resource_group_name, virtual_hub_name, connection_name, custom_headers).value! + def get_with_http_info(custom_headers = nil) + get_async(custom_headers).value! end # # Retrieves the details of a HubVirtualNetworkConnection. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. - # @param connection_name [String] The name of the vpn connection. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_hub_name, connection_name, custom_headers = nil) + def get_async(custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'virtual_hub_name is nil' if virtual_hub_name.nil? - fail ArgumentError, 'connection_name is nil' if connection_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? + fail ArgumentError, '@client.virtual_hub_name is nil' if @client.virtual_hub_name.nil? + fail ArgumentError, '@client.connection_name is nil' if @client.connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -85,7 +73,7 @@ def get_async(resource_group_name, virtual_hub_name, connection_name, custom_hea options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'virtualHubName' => virtual_hub_name,'connectionName' => connection_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualHubName' => @client.virtual_hub_name,'connectionName' => @client.connection_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -119,52 +107,130 @@ def get_async(resource_group_name, virtual_hub_name, connection_name, custom_hea promise.execute end + # + # Creates a HubVirtualNetworkConnection resource if it doesn't exist. Updates + # the HubVirtualNetworkConnection if one exists. + # + # @param hub_virtual_network_connection_parameters + # [HubVirtualNetworkConnection] Parameters supplied to create or update + # HubVirtualNetworkConnection. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [HubVirtualNetworkConnection] operation results. + # + def create_or_update(hub_virtual_network_connection_parameters, custom_headers = nil) + response = create_or_update_async(hub_virtual_network_connection_parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # @param hub_virtual_network_connection_parameters + # [HubVirtualNetworkConnection] Parameters supplied to create or update + # HubVirtualNetworkConnection. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def create_or_update_async(hub_virtual_network_connection_parameters, custom_headers = nil) + # Send request + promise = begin_create_or_update_async(hub_virtual_network_connection_parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::Network::Mgmt::V2018_12_01::Models::HubVirtualNetworkConnection.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + + # + # Updates HubVirtualNetworkConnection tags. + # + # @param hub_virtual_network_connection_parameters [TagsObject] Parameters + # supplied to update HubVirtualNetworkConnection tags. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [HubVirtualNetworkConnection] operation results. + # + def update_tags(hub_virtual_network_connection_parameters, custom_headers = nil) + response = update_tags_async(hub_virtual_network_connection_parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # @param hub_virtual_network_connection_parameters [TagsObject] Parameters + # supplied to update HubVirtualNetworkConnection tags. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [Concurrent::Promise] promise which provides async access to http + # response. + # + def update_tags_async(hub_virtual_network_connection_parameters, custom_headers = nil) + # Send request + promise = begin_update_tags_async(hub_virtual_network_connection_parameters, custom_headers) + + promise = promise.then do |response| + # Defining deserialization method. + deserialize_method = lambda do |parsed_response| + result_mapper = Azure::Network::Mgmt::V2018_12_01::Models::HubVirtualNetworkConnection.mapper() + parsed_response = @client.deserialize(result_mapper, parsed_response) + end + + # Waiting for response. + @client.get_long_running_operation_result(response, deserialize_method) + end + + promise + end + # # Retrieves the details of all HubVirtualNetworkConnections. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list(resource_group_name, virtual_hub_name, custom_headers = nil) - first_page = list_as_lazy(resource_group_name, virtual_hub_name, custom_headers) + def list(custom_headers = nil) + first_page = list_as_lazy(custom_headers) first_page.get_all_items end # # Retrieves the details of all HubVirtualNetworkConnections. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(resource_group_name, virtual_hub_name, custom_headers = nil) - list_async(resource_group_name, virtual_hub_name, custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # # Retrieves the details of all HubVirtualNetworkConnections. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(resource_group_name, virtual_hub_name, custom_headers = nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'virtual_hub_name is nil' if virtual_hub_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? + fail ArgumentError, '@client.virtual_hub_name is nil' if @client.virtual_hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -179,7 +245,7 @@ def list_async(resource_group_name, virtual_hub_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'virtualHubName' => virtual_hub_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualHubName' => @client.virtual_hub_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -213,6 +279,236 @@ def list_async(resource_group_name, virtual_hub_name, custom_headers = nil) promise.execute end + # + # Creates a HubVirtualNetworkConnection resource if it doesn't exist. Updates + # the HubVirtualNetworkConnection if one exists. + # + # @param hub_virtual_network_connection_parameters + # [HubVirtualNetworkConnection] Parameters supplied to create or update + # HubVirtualNetworkConnection. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [HubVirtualNetworkConnection] operation results. + # + def begin_create_or_update(hub_virtual_network_connection_parameters, custom_headers = nil) + response = begin_create_or_update_async(hub_virtual_network_connection_parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Creates a HubVirtualNetworkConnection resource if it doesn't exist. Updates + # the HubVirtualNetworkConnection if one exists. + # + # @param hub_virtual_network_connection_parameters + # [HubVirtualNetworkConnection] Parameters supplied to create or update + # HubVirtualNetworkConnection. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_create_or_update_with_http_info(hub_virtual_network_connection_parameters, custom_headers = nil) + begin_create_or_update_async(hub_virtual_network_connection_parameters, custom_headers).value! + end + + # + # Creates a HubVirtualNetworkConnection resource if it doesn't exist. Updates + # the HubVirtualNetworkConnection if one exists. + # + # @param hub_virtual_network_connection_parameters + # [HubVirtualNetworkConnection] Parameters supplied to create or update + # HubVirtualNetworkConnection. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_create_or_update_async(hub_virtual_network_connection_parameters, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? + fail ArgumentError, '@client.virtual_hub_name is nil' if @client.virtual_hub_name.nil? + fail ArgumentError, '@client.connection_name is nil' if @client.connection_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, 'hub_virtual_network_connection_parameters is nil' if hub_virtual_network_connection_parameters.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Network::Mgmt::V2018_12_01::Models::HubVirtualNetworkConnection.mapper() + request_content = @client.serialize(request_mapper, hub_virtual_network_connection_parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualHubName' => @client.virtual_hub_name,'connectionName' => @client.connection_name}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 201 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Network::Mgmt::V2018_12_01::Models::HubVirtualNetworkConnection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Network::Mgmt::V2018_12_01::Models::HubVirtualNetworkConnection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Updates HubVirtualNetworkConnection tags. + # + # @param hub_virtual_network_connection_parameters [TagsObject] Parameters + # supplied to update HubVirtualNetworkConnection tags. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [HubVirtualNetworkConnection] operation results. + # + def begin_update_tags(hub_virtual_network_connection_parameters, custom_headers = nil) + response = begin_update_tags_async(hub_virtual_network_connection_parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Updates HubVirtualNetworkConnection tags. + # + # @param hub_virtual_network_connection_parameters [TagsObject] Parameters + # supplied to update HubVirtualNetworkConnection tags. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def begin_update_tags_with_http_info(hub_virtual_network_connection_parameters, custom_headers = nil) + begin_update_tags_async(hub_virtual_network_connection_parameters, custom_headers).value! + end + + # + # Updates HubVirtualNetworkConnection tags. + # + # @param hub_virtual_network_connection_parameters [TagsObject] Parameters + # supplied to update HubVirtualNetworkConnection tags. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def begin_update_tags_async(hub_virtual_network_connection_parameters, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? + fail ArgumentError, '@client.virtual_hub_name is nil' if @client.virtual_hub_name.nil? + fail ArgumentError, '@client.connection_name is nil' if @client.connection_name.nil? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + fail ArgumentError, 'hub_virtual_network_connection_parameters is nil' if hub_virtual_network_connection_parameters.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Network::Mgmt::V2018_12_01::Models::TagsObject.mapper() + request_content = @client.serialize(request_mapper, hub_virtual_network_connection_parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualHubName' => @client.virtual_hub_name,'connectionName' => @client.connection_name}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 || status_code == 201 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Network::Mgmt::V2018_12_01::Models::HubVirtualNetworkConnection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Network::Mgmt::V2018_12_01::Models::HubVirtualNetworkConnection.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Retrieves the details of all HubVirtualNetworkConnections. # @@ -303,17 +599,14 @@ def list_next_async(next_page_link, custom_headers = nil) # # Retrieves the details of all HubVirtualNetworkConnections. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ListHubVirtualNetworkConnectionsResult] which provide lazy access to # pages of the response. # - def list_as_lazy(resource_group_name, virtual_hub_name, custom_headers = nil) - response = list_async(resource_group_name, virtual_hub_name, custom_headers).value! + def list_as_lazy(custom_headers = nil) + response = list_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/network_management_client.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/network_management_client.rb index 6e3627dfd7..5741f2fcdc 100644 --- a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/network_management_client.rb +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/network_management_client.rb @@ -25,6 +25,15 @@ class NetworkManagementClient < MsRestAzure::AzureServiceClient # @return [String] Client API version. attr_reader :api_version + # @return [String] The resource group name of the Microsoft Azure resource. + attr_accessor :resource_group_name + + # @return [String] The name of the Virtual Hub resource. + attr_accessor :virtual_hub_name + + # @return [String] The name of the connection resource. + attr_accessor :connection_name + # @return [String] Gets or sets the preferred language for the response. attr_accessor :accept_language @@ -494,7 +503,6 @@ def check_dns_name_availability_async(location, domain_name_label, custom_header # # Gives the supported security providers for the virtual wan. # - # @param resource_group_name [String] The resource group name. # @param virtual_wanname [String] The name of the VirtualWAN for which # supported security providers are needed. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -502,15 +510,14 @@ def check_dns_name_availability_async(location, domain_name_label, custom_header # # @return [VirtualWanSecurityProviders] operation results. # - def supported_security_providers(resource_group_name, virtual_wanname, custom_headers = nil) - response = supported_security_providers_async(resource_group_name, virtual_wanname, custom_headers).value! + def supported_security_providers(virtual_wanname, custom_headers = nil) + response = supported_security_providers_async(virtual_wanname, custom_headers).value! response.body unless response.nil? end # # Gives the supported security providers for the virtual wan. # - # @param resource_group_name [String] The resource group name. # @param virtual_wanname [String] The name of the VirtualWAN for which # supported security providers are needed. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -518,14 +525,13 @@ def supported_security_providers(resource_group_name, virtual_wanname, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def supported_security_providers_with_http_info(resource_group_name, virtual_wanname, custom_headers = nil) - supported_security_providers_async(resource_group_name, virtual_wanname, custom_headers).value! + def supported_security_providers_with_http_info(virtual_wanname, custom_headers = nil) + supported_security_providers_async(virtual_wanname, custom_headers).value! end # # Gives the supported security providers for the virtual wan. # - # @param resource_group_name [String] The resource group name. # @param virtual_wanname [String] The name of the VirtualWAN for which # supported security providers are needed. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -533,7 +539,7 @@ def supported_security_providers_with_http_info(resource_group_name, virtual_wan # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def supported_security_providers_async(resource_group_name, virtual_wanname, custom_headers = nil) + def supported_security_providers_async(virtual_wanname, custom_headers = nil) fail ArgumentError, 'subscription_id is nil' if subscription_id.nil? fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, 'virtual_wanname is nil' if virtual_wanname.nil? diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/p2s_vpn_gateways.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/p2s_vpn_gateways.rb index c0537bacc4..32ef6dee04 100644 --- a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/p2s_vpn_gateways.rb +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/p2s_vpn_gateways.rb @@ -24,48 +24,42 @@ def initialize(client) # # Retrieves the details of a virtual wan p2s vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [P2SVpnGateway] operation results. # - def get(resource_group_name, gateway_name, custom_headers = nil) - response = get_async(resource_group_name, gateway_name, custom_headers).value! + def get(gateway_name, custom_headers = nil) + response = get_async(gateway_name, custom_headers).value! response.body unless response.nil? end # # Retrieves the details of a virtual wan p2s vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, gateway_name, custom_headers = nil) - get_async(resource_group_name, gateway_name, custom_headers).value! + def get_with_http_info(gateway_name, custom_headers = nil) + get_async(gateway_name, custom_headers).value! end # # Retrieves the details of a virtual wan p2s vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, gateway_name, custom_headers = nil) + def get_async(gateway_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -81,7 +75,7 @@ def get_async(resource_group_name, gateway_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -119,8 +113,6 @@ def get_async(resource_group_name, gateway_name, custom_headers = nil) # Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the # existing gateway. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param p2svpn_gateway_parameters [P2SVpnGateway] Parameters supplied to # create or Update a virtual wan p2s vpn gateway. @@ -129,14 +121,12 @@ def get_async(resource_group_name, gateway_name, custom_headers = nil) # # @return [P2SVpnGateway] operation results. # - def create_or_update(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers).value! + def create_or_update(gateway_name, p2svpn_gateway_parameters, custom_headers = nil) + response = create_or_update_async(gateway_name, p2svpn_gateway_parameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param p2svpn_gateway_parameters [P2SVpnGateway] Parameters supplied to # create or Update a virtual wan p2s vpn gateway. @@ -146,9 +136,9 @@ def create_or_update(resource_group_name, gateway_name, p2svpn_gateway_parameter # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers = nil) + def create_or_update_async(gateway_name, p2svpn_gateway_parameters, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers) + promise = begin_create_or_update_async(gateway_name, p2svpn_gateway_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -167,8 +157,6 @@ def create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_par # # Updates virtual wan p2s vpn gateway tags. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param p2svpn_gateway_parameters [TagsObject] Parameters supplied to update a # virtual wan p2s vpn gateway tags. @@ -177,14 +165,12 @@ def create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_par # # @return [P2SVpnGateway] operation results. # - def update_tags(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers = nil) - response = update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers).value! + def update_tags(gateway_name, p2svpn_gateway_parameters, custom_headers = nil) + response = update_tags_async(gateway_name, p2svpn_gateway_parameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param p2svpn_gateway_parameters [TagsObject] Parameters supplied to update a # virtual wan p2s vpn gateway tags. @@ -194,9 +180,9 @@ def update_tags(resource_group_name, gateway_name, p2svpn_gateway_parameters, cu # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers = nil) + def update_tags_async(gateway_name, p2svpn_gateway_parameters, custom_headers = nil) # Send request - promise = begin_update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers) + promise = begin_update_tags_async(gateway_name, p2svpn_gateway_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -215,20 +201,16 @@ def update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_paramete # # Deletes a virtual wan p2s vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, gateway_name, custom_headers).value! + def delete(gateway_name, custom_headers = nil) + response = delete_async(gateway_name, custom_headers).value! nil end # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -236,9 +218,9 @@ def delete(resource_group_name, gateway_name, custom_headers = nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, gateway_name, custom_headers = nil) + def delete_async(gateway_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, gateway_name, custom_headers) + promise = begin_delete_async(gateway_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -255,45 +237,39 @@ def delete_async(resource_group_name, gateway_name, custom_headers = nil) # # Lists all the P2SVpnGateways in a resource group. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(custom_headers = nil) + first_page = list_by_resource_group_as_lazy(custom_headers) first_page.get_all_items end # # Lists all the P2SVpnGateways in a resource group. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(custom_headers = nil) + list_by_resource_group_async(custom_headers).value! end # # Lists all the P2SVpnGateways in a resource group. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -308,7 +284,7 @@ def list_by_resource_group_async(resource_group_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -429,7 +405,6 @@ def list_async(custom_headers = nil) # Generates VPN profile for P2S client of the P2SVpnGateway in the specified # resource group. # - # @param resource_group_name [String] The name of the resource group. # @param gateway_name [String] The name of the P2SVpnGateway. # @param parameters [P2SVpnProfileParameters] Parameters supplied to the # generate P2SVpnGateway VPN client package operation. @@ -438,13 +413,12 @@ def list_async(custom_headers = nil) # # @return [VpnProfileResponse] operation results. # - def generate_vpn_profile(resource_group_name, gateway_name, parameters, custom_headers = nil) - response = generate_vpn_profile_async(resource_group_name, gateway_name, parameters, custom_headers).value! + def generate_vpn_profile(gateway_name, parameters, custom_headers = nil) + response = generate_vpn_profile_async(gateway_name, parameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The name of the resource group. # @param gateway_name [String] The name of the P2SVpnGateway. # @param parameters [P2SVpnProfileParameters] Parameters supplied to the # generate P2SVpnGateway VPN client package operation. @@ -454,9 +428,9 @@ def generate_vpn_profile(resource_group_name, gateway_name, parameters, custom_h # @return [Concurrent::Promise] promise which provides async access to http # response. # - def generate_vpn_profile_async(resource_group_name, gateway_name, parameters, custom_headers = nil) + def generate_vpn_profile_async(gateway_name, parameters, custom_headers = nil) # Send request - promise = begin_generate_vpn_profile_async(resource_group_name, gateway_name, parameters, custom_headers) + promise = begin_generate_vpn_profile_async(gateway_name, parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -476,8 +450,6 @@ def generate_vpn_profile_async(resource_group_name, gateway_name, parameters, cu # Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the # existing gateway. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param p2svpn_gateway_parameters [P2SVpnGateway] Parameters supplied to # create or Update a virtual wan p2s vpn gateway. @@ -486,8 +458,8 @@ def generate_vpn_profile_async(resource_group_name, gateway_name, parameters, cu # # @return [P2SVpnGateway] operation results. # - def begin_create_or_update(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers).value! + def begin_create_or_update(gateway_name, p2svpn_gateway_parameters, custom_headers = nil) + response = begin_create_or_update_async(gateway_name, p2svpn_gateway_parameters, custom_headers).value! response.body unless response.nil? end @@ -495,8 +467,6 @@ def begin_create_or_update(resource_group_name, gateway_name, p2svpn_gateway_par # Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the # existing gateway. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param p2svpn_gateway_parameters [P2SVpnGateway] Parameters supplied to # create or Update a virtual wan p2s vpn gateway. @@ -505,16 +475,14 @@ def begin_create_or_update(resource_group_name, gateway_name, p2svpn_gateway_par # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(gateway_name, p2svpn_gateway_parameters, custom_headers = nil) + begin_create_or_update_async(gateway_name, p2svpn_gateway_parameters, custom_headers).value! end # # Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the # existing gateway. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param p2svpn_gateway_parameters [P2SVpnGateway] Parameters supplied to # create or Update a virtual wan p2s vpn gateway. @@ -523,9 +491,9 @@ def begin_create_or_update_with_http_info(resource_group_name, gateway_name, p2s # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers = nil) + def begin_create_or_update_async(gateway_name, p2svpn_gateway_parameters, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'p2svpn_gateway_parameters is nil' if p2svpn_gateway_parameters.nil? @@ -550,7 +518,7 @@ def begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gatew options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -598,8 +566,6 @@ def begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gatew # # Updates virtual wan p2s vpn gateway tags. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param p2svpn_gateway_parameters [TagsObject] Parameters supplied to update a # virtual wan p2s vpn gateway tags. @@ -608,16 +574,14 @@ def begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gatew # # @return [P2SVpnGateway] operation results. # - def begin_update_tags(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers = nil) - response = begin_update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers).value! + def begin_update_tags(gateway_name, p2svpn_gateway_parameters, custom_headers = nil) + response = begin_update_tags_async(gateway_name, p2svpn_gateway_parameters, custom_headers).value! response.body unless response.nil? end # # Updates virtual wan p2s vpn gateway tags. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param p2svpn_gateway_parameters [TagsObject] Parameters supplied to update a # virtual wan p2s vpn gateway tags. @@ -626,15 +590,13 @@ def begin_update_tags(resource_group_name, gateway_name, p2svpn_gateway_paramete # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_tags_with_http_info(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers = nil) - begin_update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers).value! + def begin_update_tags_with_http_info(gateway_name, p2svpn_gateway_parameters, custom_headers = nil) + begin_update_tags_async(gateway_name, p2svpn_gateway_parameters, custom_headers).value! end # # Updates virtual wan p2s vpn gateway tags. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param p2svpn_gateway_parameters [TagsObject] Parameters supplied to update a # virtual wan p2s vpn gateway tags. @@ -643,9 +605,9 @@ def begin_update_tags_with_http_info(resource_group_name, gateway_name, p2svpn_g # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers = nil) + def begin_update_tags_async(gateway_name, p2svpn_gateway_parameters, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'p2svpn_gateway_parameters is nil' if p2svpn_gateway_parameters.nil? @@ -670,7 +632,7 @@ def begin_update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_pa options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -718,47 +680,41 @@ def begin_update_tags_async(resource_group_name, gateway_name, p2svpn_gateway_pa # # Deletes a virtual wan p2s vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def begin_delete(resource_group_name, gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, gateway_name, custom_headers).value! + def begin_delete(gateway_name, custom_headers = nil) + response = begin_delete_async(gateway_name, custom_headers).value! nil end # # Deletes a virtual wan p2s vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, gateway_name, custom_headers).value! + def begin_delete_with_http_info(gateway_name, custom_headers = nil) + begin_delete_async(gateway_name, custom_headers).value! end # # Deletes a virtual wan p2s vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param gateway_name [String] The name of the gateway. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, gateway_name, custom_headers = nil) + def begin_delete_async(gateway_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -774,7 +730,7 @@ def begin_delete_async(resource_group_name, gateway_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -802,7 +758,6 @@ def begin_delete_async(resource_group_name, gateway_name, custom_headers = nil) # Generates VPN profile for P2S client of the P2SVpnGateway in the specified # resource group. # - # @param resource_group_name [String] The name of the resource group. # @param gateway_name [String] The name of the P2SVpnGateway. # @param parameters [P2SVpnProfileParameters] Parameters supplied to the # generate P2SVpnGateway VPN client package operation. @@ -811,8 +766,8 @@ def begin_delete_async(resource_group_name, gateway_name, custom_headers = nil) # # @return [VpnProfileResponse] operation results. # - def begin_generate_vpn_profile(resource_group_name, gateway_name, parameters, custom_headers = nil) - response = begin_generate_vpn_profile_async(resource_group_name, gateway_name, parameters, custom_headers).value! + def begin_generate_vpn_profile(gateway_name, parameters, custom_headers = nil) + response = begin_generate_vpn_profile_async(gateway_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -820,7 +775,6 @@ def begin_generate_vpn_profile(resource_group_name, gateway_name, parameters, cu # Generates VPN profile for P2S client of the P2SVpnGateway in the specified # resource group. # - # @param resource_group_name [String] The name of the resource group. # @param gateway_name [String] The name of the P2SVpnGateway. # @param parameters [P2SVpnProfileParameters] Parameters supplied to the # generate P2SVpnGateway VPN client package operation. @@ -829,15 +783,14 @@ def begin_generate_vpn_profile(resource_group_name, gateway_name, parameters, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_generate_vpn_profile_with_http_info(resource_group_name, gateway_name, parameters, custom_headers = nil) - begin_generate_vpn_profile_async(resource_group_name, gateway_name, parameters, custom_headers).value! + def begin_generate_vpn_profile_with_http_info(gateway_name, parameters, custom_headers = nil) + begin_generate_vpn_profile_async(gateway_name, parameters, custom_headers).value! end # # Generates VPN profile for P2S client of the P2SVpnGateway in the specified # resource group. # - # @param resource_group_name [String] The name of the resource group. # @param gateway_name [String] The name of the P2SVpnGateway. # @param parameters [P2SVpnProfileParameters] Parameters supplied to the # generate P2SVpnGateway VPN client package operation. @@ -846,8 +799,8 @@ def begin_generate_vpn_profile_with_http_info(resource_group_name, gateway_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_generate_vpn_profile_async(resource_group_name, gateway_name, parameters, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + def begin_generate_vpn_profile_async(gateway_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -873,7 +826,7 @@ def begin_generate_vpn_profile_async(resource_group_name, gateway_name, paramete options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -1085,16 +1038,14 @@ def list_next_async(next_page_link, custom_headers = nil) # # Lists all the P2SVpnGateways in a resource group. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnGateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ListP2SVpnGatewaysResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(custom_headers = nil) + response = list_by_resource_group_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/p2s_vpn_server_configurations.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/p2s_vpn_server_configurations.rb index b6b8f4a8f2..d1ff859fc4 100644 --- a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/p2s_vpn_server_configurations.rb +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/p2s_vpn_server_configurations.rb @@ -24,8 +24,6 @@ def initialize(client) # # Retrieves the details of a P2SVpnServerConfiguration. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnServerConfiguration. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. @@ -34,16 +32,14 @@ def initialize(client) # # @return [P2SVpnServerConfiguration] operation results. # - def get(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers).value! + def get(virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) + response = get_async(virtual_wan_name, p2svpn_server_configuration_name, custom_headers).value! response.body unless response.nil? end # # Retrieves the details of a P2SVpnServerConfiguration. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnServerConfiguration. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. @@ -52,15 +48,13 @@ def get(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) - get_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers).value! + def get_with_http_info(virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) + get_async(virtual_wan_name, p2svpn_server_configuration_name, custom_headers).value! end # # Retrieves the details of a P2SVpnServerConfiguration. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnServerConfiguration. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. @@ -69,9 +63,9 @@ def get_with_http_info(resource_group_name, virtual_wan_name, p2svpn_server_conf # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) + def get_async(virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'virtual_wan_name is nil' if virtual_wan_name.nil? fail ArgumentError, 'p2svpn_server_configuration_name is nil' if p2svpn_server_configuration_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -88,7 +82,7 @@ def get_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'virtualWanName' => virtual_wan_name,'p2SVpnServerConfigurationName' => p2svpn_server_configuration_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualWanName' => virtual_wan_name,'p2SVpnServerConfigurationName' => p2svpn_server_configuration_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -126,8 +120,6 @@ def get_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration # Creates a P2SVpnServerConfiguration to associate with a VirtualWan if it # doesn't exist else updates the existing P2SVpnServerConfiguration. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. @@ -138,14 +130,12 @@ def get_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration # # @return [P2SVpnServerConfiguration] operation results. # - def create_or_update(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers).value! + def create_or_update(virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers = nil) + response = create_or_update_async(virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. @@ -157,9 +147,9 @@ def create_or_update(resource_group_name, virtual_wan_name, p2svpn_server_config # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers = nil) + def create_or_update_async(virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers) + promise = begin_create_or_update_async(virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -178,22 +168,18 @@ def create_or_update_async(resource_group_name, virtual_wan_name, p2svpn_server_ # # Deletes a P2SVpnServerConfiguration. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnServerConfiguration. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers).value! + def delete(virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) + response = delete_async(virtual_wan_name, p2svpn_server_configuration_name, custom_headers).value! nil end # - # @param resource_group_name [String] The resource group name of the - # P2SVpnServerConfiguration. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. @@ -203,9 +189,9 @@ def delete(resource_group_name, virtual_wan_name, p2svpn_server_configuration_na # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) + def delete_async(virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers) + promise = begin_delete_async(virtual_wan_name, p2svpn_server_configuration_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -222,48 +208,42 @@ def delete_async(resource_group_name, virtual_wan_name, p2svpn_server_configurat # # Retrieves all P2SVpnServerConfigurations for a particular VirtualWan. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wan_name [String] The name of the VirtualWan. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_virtual_wan(resource_group_name, virtual_wan_name, custom_headers = nil) - first_page = list_by_virtual_wan_as_lazy(resource_group_name, virtual_wan_name, custom_headers) + def list_by_virtual_wan(virtual_wan_name, custom_headers = nil) + first_page = list_by_virtual_wan_as_lazy(virtual_wan_name, custom_headers) first_page.get_all_items end # # Retrieves all P2SVpnServerConfigurations for a particular VirtualWan. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wan_name [String] The name of the VirtualWan. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_virtual_wan_with_http_info(resource_group_name, virtual_wan_name, custom_headers = nil) - list_by_virtual_wan_async(resource_group_name, virtual_wan_name, custom_headers).value! + def list_by_virtual_wan_with_http_info(virtual_wan_name, custom_headers = nil) + list_by_virtual_wan_async(virtual_wan_name, custom_headers).value! end # # Retrieves all P2SVpnServerConfigurations for a particular VirtualWan. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wan_name [String] The name of the VirtualWan. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_virtual_wan_async(resource_group_name, virtual_wan_name, custom_headers = nil) + def list_by_virtual_wan_async(virtual_wan_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'virtual_wan_name is nil' if virtual_wan_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -279,7 +259,7 @@ def list_by_virtual_wan_async(resource_group_name, virtual_wan_name, custom_head options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'virtualWanName' => virtual_wan_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualWanName' => virtual_wan_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -317,8 +297,6 @@ def list_by_virtual_wan_async(resource_group_name, virtual_wan_name, custom_head # Creates a P2SVpnServerConfiguration to associate with a VirtualWan if it # doesn't exist else updates the existing P2SVpnServerConfiguration. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. @@ -329,8 +307,8 @@ def list_by_virtual_wan_async(resource_group_name, virtual_wan_name, custom_head # # @return [P2SVpnServerConfiguration] operation results. # - def begin_create_or_update(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers).value! + def begin_create_or_update(virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers = nil) + response = begin_create_or_update_async(virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers).value! response.body unless response.nil? end @@ -338,8 +316,6 @@ def begin_create_or_update(resource_group_name, virtual_wan_name, p2svpn_server_ # Creates a P2SVpnServerConfiguration to associate with a VirtualWan if it # doesn't exist else updates the existing P2SVpnServerConfiguration. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. @@ -350,16 +326,14 @@ def begin_create_or_update(resource_group_name, virtual_wan_name, p2svpn_server_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers = nil) + begin_create_or_update_async(virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers).value! end # # Creates a P2SVpnServerConfiguration to associate with a VirtualWan if it # doesn't exist else updates the existing P2SVpnServerConfiguration. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. @@ -370,9 +344,9 @@ def begin_create_or_update_with_http_info(resource_group_name, virtual_wan_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers = nil) + def begin_create_or_update_async(virtual_wan_name, p2svpn_server_configuration_name, p2svpn_server_configuration_parameters, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'virtual_wan_name is nil' if virtual_wan_name.nil? fail ArgumentError, 'p2svpn_server_configuration_name is nil' if p2svpn_server_configuration_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -398,7 +372,7 @@ def begin_create_or_update_async(resource_group_name, virtual_wan_name, p2svpn_s options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'virtualWanName' => virtual_wan_name,'p2SVpnServerConfigurationName' => p2svpn_server_configuration_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualWanName' => virtual_wan_name,'p2SVpnServerConfigurationName' => p2svpn_server_configuration_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -446,8 +420,6 @@ def begin_create_or_update_async(resource_group_name, virtual_wan_name, p2svpn_s # # Deletes a P2SVpnServerConfiguration. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnServerConfiguration. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. @@ -455,16 +427,14 @@ def begin_create_or_update_async(resource_group_name, virtual_wan_name, p2svpn_s # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers).value! + def begin_delete(virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) + response = begin_delete_async(virtual_wan_name, p2svpn_server_configuration_name, custom_headers).value! nil end # # Deletes a P2SVpnServerConfiguration. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnServerConfiguration. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. @@ -473,15 +443,13 @@ def begin_delete(resource_group_name, virtual_wan_name, p2svpn_server_configurat # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers).value! + def begin_delete_with_http_info(virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) + begin_delete_async(virtual_wan_name, p2svpn_server_configuration_name, custom_headers).value! end # # Deletes a P2SVpnServerConfiguration. # - # @param resource_group_name [String] The resource group name of the - # P2SVpnServerConfiguration. # @param virtual_wan_name [String] The name of the VirtualWan. # @param p2svpn_server_configuration_name [String] The name of the # P2SVpnServerConfiguration. @@ -490,9 +458,9 @@ def begin_delete_with_http_info(resource_group_name, virtual_wan_name, p2svpn_se # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) + def begin_delete_async(virtual_wan_name, p2svpn_server_configuration_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'virtual_wan_name is nil' if virtual_wan_name.nil? fail ArgumentError, 'p2svpn_server_configuration_name is nil' if p2svpn_server_configuration_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -509,7 +477,7 @@ def begin_delete_async(resource_group_name, virtual_wan_name, p2svpn_server_conf options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'virtualWanName' => virtual_wan_name,'p2SVpnServerConfigurationName' => p2svpn_server_configuration_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualWanName' => virtual_wan_name,'p2SVpnServerConfigurationName' => p2svpn_server_configuration_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -623,8 +591,6 @@ def list_by_virtual_wan_next_async(next_page_link, custom_headers = nil) # # Retrieves all P2SVpnServerConfigurations for a particular VirtualWan. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wan_name [String] The name of the VirtualWan. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -632,8 +598,8 @@ def list_by_virtual_wan_next_async(next_page_link, custom_headers = nil) # @return [ListP2SVpnServerConfigurationsResult] which provide lazy access to # pages of the response. # - def list_by_virtual_wan_as_lazy(resource_group_name, virtual_wan_name, custom_headers = nil) - response = list_by_virtual_wan_async(resource_group_name, virtual_wan_name, custom_headers).value! + def list_by_virtual_wan_as_lazy(virtual_wan_name, custom_headers = nil) + response = list_by_virtual_wan_async(virtual_wan_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/virtual_hubs.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/virtual_hubs.rb index 7284ec2140..5262ac768c 100644 --- a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/virtual_hubs.rb +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/virtual_hubs.rb @@ -24,49 +24,40 @@ def initialize(client) # # Retrieves the details of a VirtualHub. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [VirtualHub] operation results. # - def get(resource_group_name, virtual_hub_name, custom_headers = nil) - response = get_async(resource_group_name, virtual_hub_name, custom_headers).value! + def get(custom_headers = nil) + response = get_async(custom_headers).value! response.body unless response.nil? end # # Retrieves the details of a VirtualHub. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_hub_name, custom_headers = nil) - get_async(resource_group_name, virtual_hub_name, custom_headers).value! + def get_with_http_info(custom_headers = nil) + get_async(custom_headers).value! end # # Retrieves the details of a VirtualHub. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_hub_name, custom_headers = nil) + def get_async(custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'virtual_hub_name is nil' if virtual_hub_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? + fail ArgumentError, '@client.virtual_hub_name is nil' if @client.virtual_hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -81,7 +72,7 @@ def get_async(resource_group_name, virtual_hub_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'virtualHubName' => virtual_hub_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualHubName' => @client.virtual_hub_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -119,9 +110,6 @@ def get_async(resource_group_name, virtual_hub_name, custom_headers = nil) # Creates a VirtualHub resource if it doesn't exist else updates the existing # VirtualHub. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param virtual_hub_parameters [VirtualHub] Parameters supplied to create or # update VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -129,15 +117,12 @@ def get_async(resource_group_name, virtual_hub_name, custom_headers = nil) # # @return [VirtualHub] operation results. # - def create_or_update(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers).value! + def create_or_update(virtual_hub_parameters, custom_headers = nil) + response = create_or_update_async(virtual_hub_parameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param virtual_hub_parameters [VirtualHub] Parameters supplied to create or # update VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -146,9 +131,9 @@ def create_or_update(resource_group_name, virtual_hub_name, virtual_hub_paramete # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers = nil) + def create_or_update_async(virtual_hub_parameters, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers) + promise = begin_create_or_update_async(virtual_hub_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -167,9 +152,6 @@ def create_or_update_async(resource_group_name, virtual_hub_name, virtual_hub_pa # # Updates VirtualHub tags. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param virtual_hub_parameters [TagsObject] Parameters supplied to update # VirtualHub tags. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -177,15 +159,12 @@ def create_or_update_async(resource_group_name, virtual_hub_name, virtual_hub_pa # # @return [VirtualHub] operation results. # - def update_tags(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers = nil) - response = update_tags_async(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers).value! + def update_tags(virtual_hub_parameters, custom_headers = nil) + response = update_tags_async(virtual_hub_parameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param virtual_hub_parameters [TagsObject] Parameters supplied to update # VirtualHub tags. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -194,9 +173,9 @@ def update_tags(resource_group_name, virtual_hub_name, virtual_hub_parameters, c # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_tags_async(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers = nil) + def update_tags_async(virtual_hub_parameters, custom_headers = nil) # Send request - promise = begin_update_tags_async(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers) + promise = begin_update_tags_async(virtual_hub_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -215,30 +194,24 @@ def update_tags_async(resource_group_name, virtual_hub_name, virtual_hub_paramet # # Deletes a VirtualHub. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_hub_name, custom_headers = nil) - response = delete_async(resource_group_name, virtual_hub_name, custom_headers).value! + def delete(custom_headers = nil) + response = delete_async(custom_headers).value! nil end # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_hub_name, custom_headers = nil) + def delete_async(custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_hub_name, custom_headers) + promise = begin_delete_async(custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -255,45 +228,39 @@ def delete_async(resource_group_name, virtual_hub_name, custom_headers = nil) # # Lists all the VirtualHubs in a resource group. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(custom_headers = nil) + first_page = list_by_resource_group_as_lazy(custom_headers) first_page.get_all_items end # # Lists all the VirtualHubs in a resource group. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(custom_headers = nil) + list_by_resource_group_async(custom_headers).value! end # # Lists all the VirtualHubs in a resource group. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -308,7 +275,7 @@ def list_by_resource_group_async(resource_group_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -429,9 +396,6 @@ def list_async(custom_headers = nil) # Creates a VirtualHub resource if it doesn't exist else updates the existing # VirtualHub. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param virtual_hub_parameters [VirtualHub] Parameters supplied to create or # update VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -439,8 +403,8 @@ def list_async(custom_headers = nil) # # @return [VirtualHub] operation results. # - def begin_create_or_update(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers).value! + def begin_create_or_update(virtual_hub_parameters, custom_headers = nil) + response = begin_create_or_update_async(virtual_hub_parameters, custom_headers).value! response.body unless response.nil? end @@ -448,9 +412,6 @@ def begin_create_or_update(resource_group_name, virtual_hub_name, virtual_hub_pa # Creates a VirtualHub resource if it doesn't exist else updates the existing # VirtualHub. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param virtual_hub_parameters [VirtualHub] Parameters supplied to create or # update VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -458,17 +419,14 @@ def begin_create_or_update(resource_group_name, virtual_hub_name, virtual_hub_pa # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(virtual_hub_parameters, custom_headers = nil) + begin_create_or_update_async(virtual_hub_parameters, custom_headers).value! end # # Creates a VirtualHub resource if it doesn't exist else updates the existing # VirtualHub. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param virtual_hub_parameters [VirtualHub] Parameters supplied to create or # update VirtualHub. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -476,10 +434,10 @@ def begin_create_or_update_with_http_info(resource_group_name, virtual_hub_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers = nil) + def begin_create_or_update_async(virtual_hub_parameters, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'virtual_hub_name is nil' if virtual_hub_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? + fail ArgumentError, '@client.virtual_hub_name is nil' if @client.virtual_hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'virtual_hub_parameters is nil' if virtual_hub_parameters.nil? @@ -503,7 +461,7 @@ def begin_create_or_update_async(resource_group_name, virtual_hub_name, virtual_ options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'virtualHubName' => virtual_hub_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualHubName' => @client.virtual_hub_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -551,9 +509,6 @@ def begin_create_or_update_async(resource_group_name, virtual_hub_name, virtual_ # # Updates VirtualHub tags. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param virtual_hub_parameters [TagsObject] Parameters supplied to update # VirtualHub tags. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -561,17 +516,14 @@ def begin_create_or_update_async(resource_group_name, virtual_hub_name, virtual_ # # @return [VirtualHub] operation results. # - def begin_update_tags(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers = nil) - response = begin_update_tags_async(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers).value! + def begin_update_tags(virtual_hub_parameters, custom_headers = nil) + response = begin_update_tags_async(virtual_hub_parameters, custom_headers).value! response.body unless response.nil? end # # Updates VirtualHub tags. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param virtual_hub_parameters [TagsObject] Parameters supplied to update # VirtualHub tags. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -579,16 +531,13 @@ def begin_update_tags(resource_group_name, virtual_hub_name, virtual_hub_paramet # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_tags_with_http_info(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers = nil) - begin_update_tags_async(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers).value! + def begin_update_tags_with_http_info(virtual_hub_parameters, custom_headers = nil) + begin_update_tags_async(virtual_hub_parameters, custom_headers).value! end # # Updates VirtualHub tags. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param virtual_hub_parameters [TagsObject] Parameters supplied to update # VirtualHub tags. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -596,10 +545,10 @@ def begin_update_tags_with_http_info(resource_group_name, virtual_hub_name, virt # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_tags_async(resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers = nil) + def begin_update_tags_async(virtual_hub_parameters, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'virtual_hub_name is nil' if virtual_hub_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? + fail ArgumentError, '@client.virtual_hub_name is nil' if @client.virtual_hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'virtual_hub_parameters is nil' if virtual_hub_parameters.nil? @@ -623,7 +572,7 @@ def begin_update_tags_async(resource_group_name, virtual_hub_name, virtual_hub_p options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'virtualHubName' => virtual_hub_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualHubName' => @client.virtual_hub_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -671,48 +620,39 @@ def begin_update_tags_async(resource_group_name, virtual_hub_name, virtual_hub_p # # Deletes a VirtualHub. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_hub_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_hub_name, custom_headers).value! + def begin_delete(custom_headers = nil) + response = begin_delete_async(custom_headers).value! nil end # # Deletes a VirtualHub. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_hub_name, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_hub_name, custom_headers).value! + def begin_delete_with_http_info(custom_headers = nil) + begin_delete_async(custom_headers).value! end # # Deletes a VirtualHub. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. - # @param virtual_hub_name [String] The name of the VirtualHub. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_hub_name, custom_headers = nil) + def begin_delete_async(custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, 'virtual_hub_name is nil' if virtual_hub_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? + fail ArgumentError, '@client.virtual_hub_name is nil' if @client.virtual_hub_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -727,7 +667,7 @@ def begin_delete_async(resource_group_name, virtual_hub_name, custom_headers = n options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'virtualHubName' => virtual_hub_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualHubName' => @client.virtual_hub_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -928,16 +868,14 @@ def list_next_async(next_page_link, custom_headers = nil) # # Lists all the VirtualHubs in a resource group. # - # @param resource_group_name [String] The resource group name of the - # VirtualHub. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ListVirtualHubsResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(custom_headers = nil) + response = list_by_resource_group_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/virtual_wans.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/virtual_wans.rb index 1935909683..08ede559b0 100644 --- a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/virtual_wans.rb +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/virtual_wans.rb @@ -24,50 +24,44 @@ def initialize(client) # # Retrieves the details of a VirtualWAN. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being retrieved. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [VirtualWAN] operation results. # - def get(resource_group_name, virtual_wanname, custom_headers = nil) - response = get_async(resource_group_name, virtual_wanname, custom_headers).value! + def get(virtual_wanname, custom_headers = nil) + response = get_async(virtual_wanname, custom_headers).value! response.body unless response.nil? end # # Retrieves the details of a VirtualWAN. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being retrieved. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, virtual_wanname, custom_headers = nil) - get_async(resource_group_name, virtual_wanname, custom_headers).value! + def get_with_http_info(virtual_wanname, custom_headers = nil) + get_async(virtual_wanname, custom_headers).value! end # # Retrieves the details of a VirtualWAN. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being retrieved. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, virtual_wanname, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + def get_async(virtual_wanname, custom_headers = nil) fail ArgumentError, 'virtual_wanname is nil' if virtual_wanname.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? request_headers = {} @@ -81,7 +75,7 @@ def get_async(resource_group_name, virtual_wanname, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'VirtualWANName' => virtual_wanname,'subscriptionId' => @client.subscription_id}, + path_params: {'VirtualWANName' => virtual_wanname,'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -119,8 +113,6 @@ def get_async(resource_group_name, virtual_wanname, custom_headers = nil) # Creates a VirtualWAN resource if it doesn't exist else updates the existing # VirtualWAN. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being created or # updated. # @param wanparameters [VirtualWAN] Parameters supplied to create or update @@ -130,14 +122,12 @@ def get_async(resource_group_name, virtual_wanname, custom_headers = nil) # # @return [VirtualWAN] operation results. # - def create_or_update(resource_group_name, virtual_wanname, wanparameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, virtual_wanname, wanparameters, custom_headers).value! + def create_or_update(virtual_wanname, wanparameters, custom_headers = nil) + response = create_or_update_async(virtual_wanname, wanparameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being created or # updated. # @param wanparameters [VirtualWAN] Parameters supplied to create or update @@ -148,9 +138,9 @@ def create_or_update(resource_group_name, virtual_wanname, wanparameters, custom # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, virtual_wanname, wanparameters, custom_headers = nil) + def create_or_update_async(virtual_wanname, wanparameters, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, virtual_wanname, wanparameters, custom_headers) + promise = begin_create_or_update_async(virtual_wanname, wanparameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -169,8 +159,6 @@ def create_or_update_async(resource_group_name, virtual_wanname, wanparameters, # # Updates a VirtualWAN tags. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being updated. # @param wanparameters [TagsObject] Parameters supplied to Update VirtualWAN # tags. @@ -179,14 +167,12 @@ def create_or_update_async(resource_group_name, virtual_wanname, wanparameters, # # @return [VirtualWAN] operation results. # - def update_tags(resource_group_name, virtual_wanname, wanparameters, custom_headers = nil) - response = update_tags_async(resource_group_name, virtual_wanname, wanparameters, custom_headers).value! + def update_tags(virtual_wanname, wanparameters, custom_headers = nil) + response = update_tags_async(virtual_wanname, wanparameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being updated. # @param wanparameters [TagsObject] Parameters supplied to Update VirtualWAN # tags. @@ -196,9 +182,9 @@ def update_tags(resource_group_name, virtual_wanname, wanparameters, custom_head # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_tags_async(resource_group_name, virtual_wanname, wanparameters, custom_headers = nil) + def update_tags_async(virtual_wanname, wanparameters, custom_headers = nil) # Send request - promise = begin_update_tags_async(resource_group_name, virtual_wanname, wanparameters, custom_headers) + promise = begin_update_tags_async(virtual_wanname, wanparameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -217,20 +203,16 @@ def update_tags_async(resource_group_name, virtual_wanname, wanparameters, custo # # Deletes a VirtualWAN. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being deleted. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, virtual_wanname, custom_headers = nil) - response = delete_async(resource_group_name, virtual_wanname, custom_headers).value! + def delete(virtual_wanname, custom_headers = nil) + response = delete_async(virtual_wanname, custom_headers).value! nil end # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being deleted. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -238,9 +220,9 @@ def delete(resource_group_name, virtual_wanname, custom_headers = nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, virtual_wanname, custom_headers = nil) + def delete_async(virtual_wanname, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, virtual_wanname, custom_headers) + promise = begin_delete_async(virtual_wanname, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -257,45 +239,39 @@ def delete_async(resource_group_name, virtual_wanname, custom_headers = nil) # # Lists all the VirtualWANs in a resource group. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(custom_headers = nil) + first_page = list_by_resource_group_as_lazy(custom_headers) first_page.get_all_items end # # Lists all the VirtualWANs in a resource group. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(custom_headers = nil) + list_by_resource_group_async(custom_headers).value! end # # Lists all the VirtualWANs in a resource group. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -310,7 +286,7 @@ def list_by_resource_group_async(resource_group_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -431,8 +407,6 @@ def list_async(custom_headers = nil) # Creates a VirtualWAN resource if it doesn't exist else updates the existing # VirtualWAN. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being created or # updated. # @param wanparameters [VirtualWAN] Parameters supplied to create or update @@ -442,8 +416,8 @@ def list_async(custom_headers = nil) # # @return [VirtualWAN] operation results. # - def begin_create_or_update(resource_group_name, virtual_wanname, wanparameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, virtual_wanname, wanparameters, custom_headers).value! + def begin_create_or_update(virtual_wanname, wanparameters, custom_headers = nil) + response = begin_create_or_update_async(virtual_wanname, wanparameters, custom_headers).value! response.body unless response.nil? end @@ -451,8 +425,6 @@ def begin_create_or_update(resource_group_name, virtual_wanname, wanparameters, # Creates a VirtualWAN resource if it doesn't exist else updates the existing # VirtualWAN. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being created or # updated. # @param wanparameters [VirtualWAN] Parameters supplied to create or update @@ -462,16 +434,14 @@ def begin_create_or_update(resource_group_name, virtual_wanname, wanparameters, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, virtual_wanname, wanparameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, virtual_wanname, wanparameters, custom_headers).value! + def begin_create_or_update_with_http_info(virtual_wanname, wanparameters, custom_headers = nil) + begin_create_or_update_async(virtual_wanname, wanparameters, custom_headers).value! end # # Creates a VirtualWAN resource if it doesn't exist else updates the existing # VirtualWAN. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being created or # updated. # @param wanparameters [VirtualWAN] Parameters supplied to create or update @@ -481,9 +451,9 @@ def begin_create_or_update_with_http_info(resource_group_name, virtual_wanname, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, virtual_wanname, wanparameters, custom_headers = nil) + def begin_create_or_update_async(virtual_wanname, wanparameters, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'virtual_wanname is nil' if virtual_wanname.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'wanparameters is nil' if wanparameters.nil? @@ -508,7 +478,7 @@ def begin_create_or_update_async(resource_group_name, virtual_wanname, wanparame options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'VirtualWANName' => virtual_wanname}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'VirtualWANName' => virtual_wanname}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -556,8 +526,6 @@ def begin_create_or_update_async(resource_group_name, virtual_wanname, wanparame # # Updates a VirtualWAN tags. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being updated. # @param wanparameters [TagsObject] Parameters supplied to Update VirtualWAN # tags. @@ -566,16 +534,14 @@ def begin_create_or_update_async(resource_group_name, virtual_wanname, wanparame # # @return [VirtualWAN] operation results. # - def begin_update_tags(resource_group_name, virtual_wanname, wanparameters, custom_headers = nil) - response = begin_update_tags_async(resource_group_name, virtual_wanname, wanparameters, custom_headers).value! + def begin_update_tags(virtual_wanname, wanparameters, custom_headers = nil) + response = begin_update_tags_async(virtual_wanname, wanparameters, custom_headers).value! response.body unless response.nil? end # # Updates a VirtualWAN tags. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being updated. # @param wanparameters [TagsObject] Parameters supplied to Update VirtualWAN # tags. @@ -584,15 +550,13 @@ def begin_update_tags(resource_group_name, virtual_wanname, wanparameters, custo # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_tags_with_http_info(resource_group_name, virtual_wanname, wanparameters, custom_headers = nil) - begin_update_tags_async(resource_group_name, virtual_wanname, wanparameters, custom_headers).value! + def begin_update_tags_with_http_info(virtual_wanname, wanparameters, custom_headers = nil) + begin_update_tags_async(virtual_wanname, wanparameters, custom_headers).value! end # # Updates a VirtualWAN tags. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being updated. # @param wanparameters [TagsObject] Parameters supplied to Update VirtualWAN # tags. @@ -601,9 +565,9 @@ def begin_update_tags_with_http_info(resource_group_name, virtual_wanname, wanpa # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_tags_async(resource_group_name, virtual_wanname, wanparameters, custom_headers = nil) + def begin_update_tags_async(virtual_wanname, wanparameters, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'virtual_wanname is nil' if virtual_wanname.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'wanparameters is nil' if wanparameters.nil? @@ -628,7 +592,7 @@ def begin_update_tags_async(resource_group_name, virtual_wanname, wanparameters, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'VirtualWANName' => virtual_wanname}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'VirtualWANName' => virtual_wanname}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -676,47 +640,41 @@ def begin_update_tags_async(resource_group_name, virtual_wanname, wanparameters, # # Deletes a VirtualWAN. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being deleted. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def begin_delete(resource_group_name, virtual_wanname, custom_headers = nil) - response = begin_delete_async(resource_group_name, virtual_wanname, custom_headers).value! + def begin_delete(virtual_wanname, custom_headers = nil) + response = begin_delete_async(virtual_wanname, custom_headers).value! nil end # # Deletes a VirtualWAN. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being deleted. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, virtual_wanname, custom_headers = nil) - begin_delete_async(resource_group_name, virtual_wanname, custom_headers).value! + def begin_delete_with_http_info(virtual_wanname, custom_headers = nil) + begin_delete_async(virtual_wanname, custom_headers).value! end # # Deletes a VirtualWAN. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param virtual_wanname [String] The name of the VirtualWAN being deleted. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, virtual_wanname, custom_headers = nil) + def begin_delete_async(virtual_wanname, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'virtual_wanname is nil' if virtual_wanname.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -732,7 +690,7 @@ def begin_delete_async(resource_group_name, virtual_wanname, custom_headers = ni options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'VirtualWANName' => virtual_wanname}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'VirtualWANName' => virtual_wanname}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -933,16 +891,14 @@ def list_next_async(next_page_link, custom_headers = nil) # # Lists all the VirtualWANs in a resource group. # - # @param resource_group_name [String] The resource group name of the - # VirtualWan. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ListVirtualWANsResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(custom_headers = nil) + response = list_by_resource_group_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_connections.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_connections.rb index fdb9d7273e..4474f328db 100644 --- a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_connections.rb +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_connections.rb @@ -24,53 +24,44 @@ def initialize(client) # # Retrieves the details of a vpn connection. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the vpn connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [VpnConnection] operation results. # - def get(resource_group_name, gateway_name, connection_name, custom_headers = nil) - response = get_async(resource_group_name, gateway_name, connection_name, custom_headers).value! + def get(gateway_name, custom_headers = nil) + response = get_async(gateway_name, custom_headers).value! response.body unless response.nil? end # # Retrieves the details of a vpn connection. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the vpn connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, gateway_name, connection_name, custom_headers = nil) - get_async(resource_group_name, gateway_name, connection_name, custom_headers).value! + def get_with_http_info(gateway_name, custom_headers = nil) + get_async(gateway_name, custom_headers).value! end # # Retrieves the details of a vpn connection. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the vpn connection. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, gateway_name, connection_name, custom_headers = nil) + def get_async(gateway_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? - fail ArgumentError, 'connection_name is nil' if connection_name.nil? + fail ArgumentError, '@client.connection_name is nil' if @client.connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -85,7 +76,7 @@ def get_async(resource_group_name, gateway_name, connection_name, custom_headers options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name,'connectionName' => connection_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name,'connectionName' => @client.connection_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -123,10 +114,7 @@ def get_async(resource_group_name, gateway_name, connection_name, custom_headers # Creates a vpn connection to a scalable vpn gateway if it doesn't exist else # updates the existing connection. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the connection. # @param vpn_connection_parameters [VpnConnection] Parameters supplied to # create or Update a VPN Connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -134,16 +122,13 @@ def get_async(resource_group_name, gateway_name, connection_name, custom_headers # # @return [VpnConnection] operation results. # - def create_or_update(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers).value! + def create_or_update(gateway_name, vpn_connection_parameters, custom_headers = nil) + response = create_or_update_async(gateway_name, vpn_connection_parameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the connection. # @param vpn_connection_parameters [VpnConnection] Parameters supplied to # create or Update a VPN Connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -152,9 +137,9 @@ def create_or_update(resource_group_name, gateway_name, connection_name, vpn_con # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers = nil) + def create_or_update_async(gateway_name, vpn_connection_parameters, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers) + promise = begin_create_or_update_async(gateway_name, vpn_connection_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -173,32 +158,26 @@ def create_or_update_async(resource_group_name, gateway_name, connection_name, v # # Deletes a vpn connection. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, gateway_name, connection_name, custom_headers = nil) - response = delete_async(resource_group_name, gateway_name, connection_name, custom_headers).value! + def delete(gateway_name, custom_headers = nil) + response = delete_async(gateway_name, custom_headers).value! nil end # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, gateway_name, connection_name, custom_headers = nil) + def delete_async(gateway_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, gateway_name, connection_name, custom_headers) + promise = begin_delete_async(gateway_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -215,48 +194,42 @@ def delete_async(resource_group_name, gateway_name, connection_name, custom_head # # Retrieves all vpn connections for a particular virtual wan vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_vpn_gateway(resource_group_name, gateway_name, custom_headers = nil) - first_page = list_by_vpn_gateway_as_lazy(resource_group_name, gateway_name, custom_headers) + def list_by_vpn_gateway(gateway_name, custom_headers = nil) + first_page = list_by_vpn_gateway_as_lazy(gateway_name, custom_headers) first_page.get_all_items end # # Retrieves all vpn connections for a particular virtual wan vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_vpn_gateway_with_http_info(resource_group_name, gateway_name, custom_headers = nil) - list_by_vpn_gateway_async(resource_group_name, gateway_name, custom_headers).value! + def list_by_vpn_gateway_with_http_info(gateway_name, custom_headers = nil) + list_by_vpn_gateway_async(gateway_name, custom_headers).value! end # # Retrieves all vpn connections for a particular virtual wan vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_vpn_gateway_async(resource_group_name, gateway_name, custom_headers = nil) + def list_by_vpn_gateway_async(gateway_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -272,7 +245,7 @@ def list_by_vpn_gateway_async(resource_group_name, gateway_name, custom_headers options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -310,10 +283,7 @@ def list_by_vpn_gateway_async(resource_group_name, gateway_name, custom_headers # Creates a vpn connection to a scalable vpn gateway if it doesn't exist else # updates the existing connection. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the connection. # @param vpn_connection_parameters [VpnConnection] Parameters supplied to # create or Update a VPN Connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -321,8 +291,8 @@ def list_by_vpn_gateway_async(resource_group_name, gateway_name, custom_headers # # @return [VpnConnection] operation results. # - def begin_create_or_update(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers).value! + def begin_create_or_update(gateway_name, vpn_connection_parameters, custom_headers = nil) + response = begin_create_or_update_async(gateway_name, vpn_connection_parameters, custom_headers).value! response.body unless response.nil? end @@ -330,10 +300,7 @@ def begin_create_or_update(resource_group_name, gateway_name, connection_name, v # Creates a vpn connection to a scalable vpn gateway if it doesn't exist else # updates the existing connection. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the connection. # @param vpn_connection_parameters [VpnConnection] Parameters supplied to # create or Update a VPN Connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -341,18 +308,15 @@ def begin_create_or_update(resource_group_name, gateway_name, connection_name, v # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(gateway_name, vpn_connection_parameters, custom_headers = nil) + begin_create_or_update_async(gateway_name, vpn_connection_parameters, custom_headers).value! end # # Creates a vpn connection to a scalable vpn gateway if it doesn't exist else # updates the existing connection. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the connection. # @param vpn_connection_parameters [VpnConnection] Parameters supplied to # create or Update a VPN Connection. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -360,11 +324,11 @@ def begin_create_or_update_with_http_info(resource_group_name, gateway_name, con # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers = nil) + def begin_create_or_update_async(gateway_name, vpn_connection_parameters, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? - fail ArgumentError, 'connection_name is nil' if connection_name.nil? + fail ArgumentError, '@client.connection_name is nil' if @client.connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vpn_connection_parameters is nil' if vpn_connection_parameters.nil? @@ -388,7 +352,7 @@ def begin_create_or_update_async(resource_group_name, gateway_name, connection_n options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name,'connectionName' => connection_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name,'connectionName' => @client.connection_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -436,52 +400,43 @@ def begin_create_or_update_async(resource_group_name, gateway_name, connection_n # # Deletes a vpn connection. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def begin_delete(resource_group_name, gateway_name, connection_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, gateway_name, connection_name, custom_headers).value! + def begin_delete(gateway_name, custom_headers = nil) + response = begin_delete_async(gateway_name, custom_headers).value! nil end # # Deletes a vpn connection. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, gateway_name, connection_name, custom_headers = nil) - begin_delete_async(resource_group_name, gateway_name, connection_name, custom_headers).value! + def begin_delete_with_http_info(gateway_name, custom_headers = nil) + begin_delete_async(gateway_name, custom_headers).value! end # # Deletes a vpn connection. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. - # @param connection_name [String] The name of the connection. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, gateway_name, connection_name, custom_headers = nil) + def begin_delete_async(gateway_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? - fail ArgumentError, 'connection_name is nil' if connection_name.nil? + fail ArgumentError, '@client.connection_name is nil' if @client.connection_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -496,7 +451,7 @@ def begin_delete_async(resource_group_name, gateway_name, connection_name, custo options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name,'connectionName' => connection_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name,'connectionName' => @client.connection_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -610,8 +565,6 @@ def list_by_vpn_gateway_next_async(next_page_link, custom_headers = nil) # # Retrieves all vpn connections for a particular virtual wan vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -619,8 +572,8 @@ def list_by_vpn_gateway_next_async(next_page_link, custom_headers = nil) # @return [ListVpnConnectionsResult] which provide lazy access to pages of the # response. # - def list_by_vpn_gateway_as_lazy(resource_group_name, gateway_name, custom_headers = nil) - response = list_by_vpn_gateway_async(resource_group_name, gateway_name, custom_headers).value! + def list_by_vpn_gateway_as_lazy(gateway_name, custom_headers = nil) + response = list_by_vpn_gateway_async(gateway_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_gateways.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_gateways.rb index a0a3069f2a..c1bf68fb45 100644 --- a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_gateways.rb +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_gateways.rb @@ -24,48 +24,42 @@ def initialize(client) # # Retrieves the details of a virtual wan vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [VpnGateway] operation results. # - def get(resource_group_name, gateway_name, custom_headers = nil) - response = get_async(resource_group_name, gateway_name, custom_headers).value! + def get(gateway_name, custom_headers = nil) + response = get_async(gateway_name, custom_headers).value! response.body unless response.nil? end # # Retrieves the details of a virtual wan vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, gateway_name, custom_headers = nil) - get_async(resource_group_name, gateway_name, custom_headers).value! + def get_with_http_info(gateway_name, custom_headers = nil) + get_async(gateway_name, custom_headers).value! end # # Retrieves the details of a virtual wan vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, gateway_name, custom_headers = nil) + def get_async(gateway_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -81,7 +75,7 @@ def get_async(resource_group_name, gateway_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -119,8 +113,6 @@ def get_async(resource_group_name, gateway_name, custom_headers = nil) # Creates a virtual wan vpn gateway if it doesn't exist else updates the # existing gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param vpn_gateway_parameters [VpnGateway] Parameters supplied to create or # Update a virtual wan vpn gateway. @@ -129,14 +121,12 @@ def get_async(resource_group_name, gateway_name, custom_headers = nil) # # @return [VpnGateway] operation results. # - def create_or_update(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers).value! + def create_or_update(gateway_name, vpn_gateway_parameters, custom_headers = nil) + response = create_or_update_async(gateway_name, vpn_gateway_parameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param vpn_gateway_parameters [VpnGateway] Parameters supplied to create or # Update a virtual wan vpn gateway. @@ -146,9 +136,9 @@ def create_or_update(resource_group_name, gateway_name, vpn_gateway_parameters, # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers = nil) + def create_or_update_async(gateway_name, vpn_gateway_parameters, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers) + promise = begin_create_or_update_async(gateway_name, vpn_gateway_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -167,8 +157,6 @@ def create_or_update_async(resource_group_name, gateway_name, vpn_gateway_parame # # Updates virtual wan vpn gateway tags. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param vpn_gateway_parameters [TagsObject] Parameters supplied to update a # virtual wan vpn gateway tags. @@ -177,14 +165,12 @@ def create_or_update_async(resource_group_name, gateway_name, vpn_gateway_parame # # @return [VpnGateway] operation results. # - def update_tags(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers = nil) - response = update_tags_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers).value! + def update_tags(gateway_name, vpn_gateway_parameters, custom_headers = nil) + response = update_tags_async(gateway_name, vpn_gateway_parameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param vpn_gateway_parameters [TagsObject] Parameters supplied to update a # virtual wan vpn gateway tags. @@ -194,9 +180,9 @@ def update_tags(resource_group_name, gateway_name, vpn_gateway_parameters, custo # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_tags_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers = nil) + def update_tags_async(gateway_name, vpn_gateway_parameters, custom_headers = nil) # Send request - promise = begin_update_tags_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers) + promise = begin_update_tags_async(gateway_name, vpn_gateway_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -215,20 +201,16 @@ def update_tags_async(resource_group_name, gateway_name, vpn_gateway_parameters, # # Deletes a virtual wan vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, gateway_name, custom_headers = nil) - response = delete_async(resource_group_name, gateway_name, custom_headers).value! + def delete(gateway_name, custom_headers = nil) + response = delete_async(gateway_name, custom_headers).value! nil end # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -236,9 +218,9 @@ def delete(resource_group_name, gateway_name, custom_headers = nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, gateway_name, custom_headers = nil) + def delete_async(gateway_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, gateway_name, custom_headers) + promise = begin_delete_async(gateway_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -255,45 +237,39 @@ def delete_async(resource_group_name, gateway_name, custom_headers = nil) # # Lists all the VpnGateways in a resource group. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(custom_headers = nil) + first_page = list_by_resource_group_as_lazy(custom_headers) first_page.get_all_items end # # Lists all the VpnGateways in a resource group. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(custom_headers = nil) + list_by_resource_group_async(custom_headers).value! end # # Lists all the VpnGateways in a resource group. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -308,7 +284,7 @@ def list_by_resource_group_async(resource_group_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -429,8 +405,6 @@ def list_async(custom_headers = nil) # Creates a virtual wan vpn gateway if it doesn't exist else updates the # existing gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param vpn_gateway_parameters [VpnGateway] Parameters supplied to create or # Update a virtual wan vpn gateway. @@ -439,8 +413,8 @@ def list_async(custom_headers = nil) # # @return [VpnGateway] operation results. # - def begin_create_or_update(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers).value! + def begin_create_or_update(gateway_name, vpn_gateway_parameters, custom_headers = nil) + response = begin_create_or_update_async(gateway_name, vpn_gateway_parameters, custom_headers).value! response.body unless response.nil? end @@ -448,8 +422,6 @@ def begin_create_or_update(resource_group_name, gateway_name, vpn_gateway_parame # Creates a virtual wan vpn gateway if it doesn't exist else updates the # existing gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param vpn_gateway_parameters [VpnGateway] Parameters supplied to create or # Update a virtual wan vpn gateway. @@ -458,16 +430,14 @@ def begin_create_or_update(resource_group_name, gateway_name, vpn_gateway_parame # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(gateway_name, vpn_gateway_parameters, custom_headers = nil) + begin_create_or_update_async(gateway_name, vpn_gateway_parameters, custom_headers).value! end # # Creates a virtual wan vpn gateway if it doesn't exist else updates the # existing gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param vpn_gateway_parameters [VpnGateway] Parameters supplied to create or # Update a virtual wan vpn gateway. @@ -476,9 +446,9 @@ def begin_create_or_update_with_http_info(resource_group_name, gateway_name, vpn # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers = nil) + def begin_create_or_update_async(gateway_name, vpn_gateway_parameters, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vpn_gateway_parameters is nil' if vpn_gateway_parameters.nil? @@ -503,7 +473,7 @@ def begin_create_or_update_async(resource_group_name, gateway_name, vpn_gateway_ options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -551,8 +521,6 @@ def begin_create_or_update_async(resource_group_name, gateway_name, vpn_gateway_ # # Updates virtual wan vpn gateway tags. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param vpn_gateway_parameters [TagsObject] Parameters supplied to update a # virtual wan vpn gateway tags. @@ -561,16 +529,14 @@ def begin_create_or_update_async(resource_group_name, gateway_name, vpn_gateway_ # # @return [VpnGateway] operation results. # - def begin_update_tags(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers = nil) - response = begin_update_tags_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers).value! + def begin_update_tags(gateway_name, vpn_gateway_parameters, custom_headers = nil) + response = begin_update_tags_async(gateway_name, vpn_gateway_parameters, custom_headers).value! response.body unless response.nil? end # # Updates virtual wan vpn gateway tags. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param vpn_gateway_parameters [TagsObject] Parameters supplied to update a # virtual wan vpn gateway tags. @@ -579,15 +545,13 @@ def begin_update_tags(resource_group_name, gateway_name, vpn_gateway_parameters, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_tags_with_http_info(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers = nil) - begin_update_tags_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers).value! + def begin_update_tags_with_http_info(gateway_name, vpn_gateway_parameters, custom_headers = nil) + begin_update_tags_async(gateway_name, vpn_gateway_parameters, custom_headers).value! end # # Updates virtual wan vpn gateway tags. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param vpn_gateway_parameters [TagsObject] Parameters supplied to update a # virtual wan vpn gateway tags. @@ -596,9 +560,9 @@ def begin_update_tags_with_http_info(resource_group_name, gateway_name, vpn_gate # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_tags_async(resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers = nil) + def begin_update_tags_async(gateway_name, vpn_gateway_parameters, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vpn_gateway_parameters is nil' if vpn_gateway_parameters.nil? @@ -623,7 +587,7 @@ def begin_update_tags_async(resource_group_name, gateway_name, vpn_gateway_param options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -671,47 +635,41 @@ def begin_update_tags_async(resource_group_name, gateway_name, vpn_gateway_param # # Deletes a virtual wan vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def begin_delete(resource_group_name, gateway_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, gateway_name, custom_headers).value! + def begin_delete(gateway_name, custom_headers = nil) + response = begin_delete_async(gateway_name, custom_headers).value! nil end # # Deletes a virtual wan vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, gateway_name, custom_headers = nil) - begin_delete_async(resource_group_name, gateway_name, custom_headers).value! + def begin_delete_with_http_info(gateway_name, custom_headers = nil) + begin_delete_async(gateway_name, custom_headers).value! end # # Deletes a virtual wan vpn gateway. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param gateway_name [String] The name of the gateway. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, gateway_name, custom_headers = nil) + def begin_delete_async(gateway_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'gateway_name is nil' if gateway_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -727,7 +685,7 @@ def begin_delete_async(resource_group_name, gateway_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'gatewayName' => gateway_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'gatewayName' => gateway_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -928,16 +886,14 @@ def list_next_async(next_page_link, custom_headers = nil) # # Lists all the VpnGateways in a resource group. # - # @param resource_group_name [String] The resource group name of the - # VpnGateway. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ListVpnGatewaysResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(custom_headers = nil) + response = list_by_resource_group_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_sites.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_sites.rb index f0d1f5ca48..a021cc96f3 100644 --- a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_sites.rb +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_sites.rb @@ -24,45 +24,42 @@ def initialize(client) # # Retrieves the details of a VPN site. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being retrieved. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [VpnSite] operation results. # - def get(resource_group_name, vpn_site_name, custom_headers = nil) - response = get_async(resource_group_name, vpn_site_name, custom_headers).value! + def get(vpn_site_name, custom_headers = nil) + response = get_async(vpn_site_name, custom_headers).value! response.body unless response.nil? end # # Retrieves the details of a VPN site. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being retrieved. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, vpn_site_name, custom_headers = nil) - get_async(resource_group_name, vpn_site_name, custom_headers).value! + def get_with_http_info(vpn_site_name, custom_headers = nil) + get_async(vpn_site_name, custom_headers).value! end # # Retrieves the details of a VPN site. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being retrieved. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, vpn_site_name, custom_headers = nil) + def get_async(vpn_site_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'vpn_site_name is nil' if vpn_site_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -78,7 +75,7 @@ def get_async(resource_group_name, vpn_site_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vpnSiteName' => vpn_site_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'vpnSiteName' => vpn_site_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -116,7 +113,6 @@ def get_async(resource_group_name, vpn_site_name, custom_headers = nil) # Creates a VpnSite resource if it doesn't exist else updates the existing # VpnSite. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being created or # updated. # @param vpn_site_parameters [VpnSite] Parameters supplied to create or update @@ -126,13 +122,12 @@ def get_async(resource_group_name, vpn_site_name, custom_headers = nil) # # @return [VpnSite] operation results. # - def create_or_update(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers).value! + def create_or_update(vpn_site_name, vpn_site_parameters, custom_headers = nil) + response = create_or_update_async(vpn_site_name, vpn_site_parameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being created or # updated. # @param vpn_site_parameters [VpnSite] Parameters supplied to create or update @@ -143,9 +138,9 @@ def create_or_update(resource_group_name, vpn_site_name, vpn_site_parameters, cu # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers = nil) + def create_or_update_async(vpn_site_name, vpn_site_parameters, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers) + promise = begin_create_or_update_async(vpn_site_name, vpn_site_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -164,7 +159,6 @@ def create_or_update_async(resource_group_name, vpn_site_name, vpn_site_paramete # # Updates VpnSite tags. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being updated. # @param vpn_site_parameters [TagsObject] Parameters supplied to update VpnSite # tags. @@ -173,13 +167,12 @@ def create_or_update_async(resource_group_name, vpn_site_name, vpn_site_paramete # # @return [VpnSite] operation results. # - def update_tags(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers = nil) - response = update_tags_async(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers).value! + def update_tags(vpn_site_name, vpn_site_parameters, custom_headers = nil) + response = update_tags_async(vpn_site_name, vpn_site_parameters, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being updated. # @param vpn_site_parameters [TagsObject] Parameters supplied to update VpnSite # tags. @@ -189,9 +182,9 @@ def update_tags(resource_group_name, vpn_site_name, vpn_site_parameters, custom_ # @return [Concurrent::Promise] promise which provides async access to http # response. # - def update_tags_async(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers = nil) + def update_tags_async(vpn_site_name, vpn_site_parameters, custom_headers = nil) # Send request - promise = begin_update_tags_async(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers) + promise = begin_update_tags_async(vpn_site_name, vpn_site_parameters, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -210,18 +203,16 @@ def update_tags_async(resource_group_name, vpn_site_name, vpn_site_parameters, c # # Deletes a VpnSite. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being deleted. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def delete(resource_group_name, vpn_site_name, custom_headers = nil) - response = delete_async(resource_group_name, vpn_site_name, custom_headers).value! + def delete(vpn_site_name, custom_headers = nil) + response = delete_async(vpn_site_name, custom_headers).value! nil end # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being deleted. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -229,9 +220,9 @@ def delete(resource_group_name, vpn_site_name, custom_headers = nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def delete_async(resource_group_name, vpn_site_name, custom_headers = nil) + def delete_async(vpn_site_name, custom_headers = nil) # Send request - promise = begin_delete_async(resource_group_name, vpn_site_name, custom_headers) + promise = begin_delete_async(vpn_site_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -248,42 +239,39 @@ def delete_async(resource_group_name, vpn_site_name, custom_headers = nil) # # Lists all the vpnSites in a resource group. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers = nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) + def list_by_resource_group(custom_headers = nil) + first_page = list_by_resource_group_as_lazy(custom_headers) first_page.get_all_items end # # Lists all the vpnSites in a resource group. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) - list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_with_http_info(custom_headers = nil) + list_by_resource_group_async(custom_headers).value! end # # Lists all the vpnSites in a resource group. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers = nil) + def list_by_resource_group_async(custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -298,7 +286,7 @@ def list_by_resource_group_async(resource_group_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -419,7 +407,6 @@ def list_async(custom_headers = nil) # Creates a VpnSite resource if it doesn't exist else updates the existing # VpnSite. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being created or # updated. # @param vpn_site_parameters [VpnSite] Parameters supplied to create or update @@ -429,8 +416,8 @@ def list_async(custom_headers = nil) # # @return [VpnSite] operation results. # - def begin_create_or_update(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers).value! + def begin_create_or_update(vpn_site_name, vpn_site_parameters, custom_headers = nil) + response = begin_create_or_update_async(vpn_site_name, vpn_site_parameters, custom_headers).value! response.body unless response.nil? end @@ -438,7 +425,6 @@ def begin_create_or_update(resource_group_name, vpn_site_name, vpn_site_paramete # Creates a VpnSite resource if it doesn't exist else updates the existing # VpnSite. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being created or # updated. # @param vpn_site_parameters [VpnSite] Parameters supplied to create or update @@ -448,15 +434,14 @@ def begin_create_or_update(resource_group_name, vpn_site_name, vpn_site_paramete # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers = nil) - begin_create_or_update_async(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers).value! + def begin_create_or_update_with_http_info(vpn_site_name, vpn_site_parameters, custom_headers = nil) + begin_create_or_update_async(vpn_site_name, vpn_site_parameters, custom_headers).value! end # # Creates a VpnSite resource if it doesn't exist else updates the existing # VpnSite. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being created or # updated. # @param vpn_site_parameters [VpnSite] Parameters supplied to create or update @@ -466,9 +451,9 @@ def begin_create_or_update_with_http_info(resource_group_name, vpn_site_name, vp # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers = nil) + def begin_create_or_update_async(vpn_site_name, vpn_site_parameters, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'vpn_site_name is nil' if vpn_site_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vpn_site_parameters is nil' if vpn_site_parameters.nil? @@ -493,7 +478,7 @@ def begin_create_or_update_async(resource_group_name, vpn_site_name, vpn_site_pa options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vpnSiteName' => vpn_site_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'vpnSiteName' => vpn_site_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -541,7 +526,6 @@ def begin_create_or_update_async(resource_group_name, vpn_site_name, vpn_site_pa # # Updates VpnSite tags. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being updated. # @param vpn_site_parameters [TagsObject] Parameters supplied to update VpnSite # tags. @@ -550,15 +534,14 @@ def begin_create_or_update_async(resource_group_name, vpn_site_name, vpn_site_pa # # @return [VpnSite] operation results. # - def begin_update_tags(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers = nil) - response = begin_update_tags_async(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers).value! + def begin_update_tags(vpn_site_name, vpn_site_parameters, custom_headers = nil) + response = begin_update_tags_async(vpn_site_name, vpn_site_parameters, custom_headers).value! response.body unless response.nil? end # # Updates VpnSite tags. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being updated. # @param vpn_site_parameters [TagsObject] Parameters supplied to update VpnSite # tags. @@ -567,14 +550,13 @@ def begin_update_tags(resource_group_name, vpn_site_name, vpn_site_parameters, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_update_tags_with_http_info(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers = nil) - begin_update_tags_async(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers).value! + def begin_update_tags_with_http_info(vpn_site_name, vpn_site_parameters, custom_headers = nil) + begin_update_tags_async(vpn_site_name, vpn_site_parameters, custom_headers).value! end # # Updates VpnSite tags. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being updated. # @param vpn_site_parameters [TagsObject] Parameters supplied to update VpnSite # tags. @@ -583,9 +565,9 @@ def begin_update_tags_with_http_info(resource_group_name, vpn_site_name, vpn_sit # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_update_tags_async(resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers = nil) + def begin_update_tags_async(vpn_site_name, vpn_site_parameters, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'vpn_site_name is nil' if vpn_site_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? fail ArgumentError, 'vpn_site_parameters is nil' if vpn_site_parameters.nil? @@ -610,7 +592,7 @@ def begin_update_tags_async(resource_group_name, vpn_site_name, vpn_site_paramet options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vpnSiteName' => vpn_site_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'vpnSiteName' => vpn_site_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -658,44 +640,41 @@ def begin_update_tags_async(resource_group_name, vpn_site_name, vpn_site_paramet # # Deletes a VpnSite. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being deleted. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def begin_delete(resource_group_name, vpn_site_name, custom_headers = nil) - response = begin_delete_async(resource_group_name, vpn_site_name, custom_headers).value! + def begin_delete(vpn_site_name, custom_headers = nil) + response = begin_delete_async(vpn_site_name, custom_headers).value! nil end # # Deletes a VpnSite. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being deleted. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_delete_with_http_info(resource_group_name, vpn_site_name, custom_headers = nil) - begin_delete_async(resource_group_name, vpn_site_name, custom_headers).value! + def begin_delete_with_http_info(vpn_site_name, custom_headers = nil) + begin_delete_async(vpn_site_name, custom_headers).value! end # # Deletes a VpnSite. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param vpn_site_name [String] The name of the VpnSite being deleted. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_delete_async(resource_group_name, vpn_site_name, custom_headers = nil) + def begin_delete_async(vpn_site_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'vpn_site_name is nil' if vpn_site_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -711,7 +690,7 @@ def begin_delete_async(resource_group_name, vpn_site_name, custom_headers = nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'vpnSiteName' => vpn_site_name}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'vpnSiteName' => vpn_site_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -912,15 +891,14 @@ def list_next_async(next_page_link, custom_headers = nil) # # Lists all the vpnSites in a resource group. # - # @param resource_group_name [String] The resource group name of the VpnSite. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [ListVpnSitesResult] which provide lazy access to pages of the # response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) - response = list_by_resource_group_async(resource_group_name, custom_headers).value! + def list_by_resource_group_as_lazy(custom_headers = nil) + response = list_by_resource_group_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_sites_configuration.rb b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_sites_configuration.rb index 5e0904b18d..46fcc75eb9 100644 --- a/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_sites_configuration.rb +++ b/management/azure_mgmt_network/lib/2018-12-01/generated/azure_mgmt_network/vpn_sites_configuration.rb @@ -25,7 +25,6 @@ def initialize(client) # Gives the sas-url to download the configurations for vpn-sites in a resource # group. # - # @param resource_group_name [String] The resource group name. # @param virtual_wanname [String] The name of the VirtualWAN for which # configuration of all vpn-sites is needed. # @param request [GetVpnSitesConfigurationRequest] Parameters supplied to @@ -33,13 +32,12 @@ def initialize(client) # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def download(resource_group_name, virtual_wanname, request, custom_headers = nil) - response = download_async(resource_group_name, virtual_wanname, request, custom_headers).value! + def download(virtual_wanname, request, custom_headers = nil) + response = download_async(virtual_wanname, request, custom_headers).value! nil end # - # @param resource_group_name [String] The resource group name. # @param virtual_wanname [String] The name of the VirtualWAN for which # configuration of all vpn-sites is needed. # @param request [GetVpnSitesConfigurationRequest] Parameters supplied to @@ -50,9 +48,9 @@ def download(resource_group_name, virtual_wanname, request, custom_headers = nil # @return [Concurrent::Promise] promise which provides async access to http # response. # - def download_async(resource_group_name, virtual_wanname, request, custom_headers = nil) + def download_async(virtual_wanname, request, custom_headers = nil) # Send request - promise = begin_download_async(resource_group_name, virtual_wanname, request, custom_headers) + promise = begin_download_async(virtual_wanname, request, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -70,7 +68,6 @@ def download_async(resource_group_name, virtual_wanname, request, custom_headers # Gives the sas-url to download the configurations for vpn-sites in a resource # group. # - # @param resource_group_name [String] The resource group name. # @param virtual_wanname [String] The name of the VirtualWAN for which # configuration of all vpn-sites is needed. # @param request [GetVpnSitesConfigurationRequest] Parameters supplied to @@ -79,8 +76,8 @@ def download_async(resource_group_name, virtual_wanname, request, custom_headers # will be added to the HTTP request. # # - def begin_download(resource_group_name, virtual_wanname, request, custom_headers = nil) - response = begin_download_async(resource_group_name, virtual_wanname, request, custom_headers).value! + def begin_download(virtual_wanname, request, custom_headers = nil) + response = begin_download_async(virtual_wanname, request, custom_headers).value! nil end @@ -88,7 +85,6 @@ def begin_download(resource_group_name, virtual_wanname, request, custom_headers # Gives the sas-url to download the configurations for vpn-sites in a resource # group. # - # @param resource_group_name [String] The resource group name. # @param virtual_wanname [String] The name of the VirtualWAN for which # configuration of all vpn-sites is needed. # @param request [GetVpnSitesConfigurationRequest] Parameters supplied to @@ -98,15 +94,14 @@ def begin_download(resource_group_name, virtual_wanname, request, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_download_with_http_info(resource_group_name, virtual_wanname, request, custom_headers = nil) - begin_download_async(resource_group_name, virtual_wanname, request, custom_headers).value! + def begin_download_with_http_info(virtual_wanname, request, custom_headers = nil) + begin_download_async(virtual_wanname, request, custom_headers).value! end # # Gives the sas-url to download the configurations for vpn-sites in a resource # group. # - # @param resource_group_name [String] The resource group name. # @param virtual_wanname [String] The name of the VirtualWAN for which # configuration of all vpn-sites is needed. # @param request [GetVpnSitesConfigurationRequest] Parameters supplied to @@ -116,9 +111,9 @@ def begin_download_with_http_info(resource_group_name, virtual_wanname, request, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_download_async(resource_group_name, virtual_wanname, request, custom_headers = nil) + def begin_download_async(virtual_wanname, request, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'virtual_wanname is nil' if virtual_wanname.nil? fail ArgumentError, 'request is nil' if request.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -143,7 +138,7 @@ def begin_download_async(resource_group_name, virtual_wanname, request, custom_h options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'virtualWANName' => virtual_wanname}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'virtualWANName' => virtual_wanname}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}),