Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class Usage
include MsRestAzure

include MsRest::JSONable
# @return [String] Resource identifier.
attr_accessor :id

# @return [String] An enum describing the unit of measurement. Default
# value: 'Count' .
attr_accessor :unit
Expand All @@ -39,6 +42,14 @@ def self.mapper()
name: 'Composite',
class_name: 'Usage',
model_properties: {
id: {
required: false,
read_only: true,
serialized_name: 'id',
type: {
name: 'String'
}
},
unit: {
required: true,
is_constant: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def initialize(client)
attr_reader :client

#
# Get all load balancers in a network interface
# List all load balancers in a network interface.
#
# @param resource_group_name [String] The name of the resource group.
# @param network_interface_name [String] The name of the network interface.
Expand All @@ -37,7 +37,7 @@ def list(resource_group_name, network_interface_name, custom_headers = nil)
end

#
# Get all load balancers in a network interface
# List all load balancers in a network interface.
#
# @param resource_group_name [String] The name of the resource group.
# @param network_interface_name [String] The name of the network interface.
Expand All @@ -51,7 +51,7 @@ def list_with_http_info(resource_group_name, network_interface_name, custom_head
end

#
# Get all load balancers in a network interface
# List all load balancers in a network interface.
#
# @param resource_group_name [String] The name of the resource group.
# @param network_interface_name [String] The name of the network interface.
Expand Down Expand Up @@ -113,7 +113,7 @@ def list_async(resource_group_name, network_interface_name, custom_headers = nil
end

#
# Get all load balancers in a network interface
# List all load balancers in a network interface.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
Expand All @@ -128,7 +128,7 @@ def list_next(next_page_link, custom_headers = nil)
end

#
# Get all load balancers in a network interface
# List all load balancers in a network interface.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
Expand All @@ -142,7 +142,7 @@ def list_next_with_http_info(next_page_link, custom_headers = nil)
end

#
# Get all load balancers in a network interface
# List all load balancers in a network interface.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
Expand Down Expand Up @@ -200,7 +200,7 @@ def list_next_async(next_page_link, custom_headers = nil)
end

#
# Get all load balancers in a network interface
# List all load balancers in a network interface.
#
# @param resource_group_name [String] The name of the resource group.
# @param network_interface_name [String] The name of the network interface.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ def make_request_async(method, path, options = {})
end

#
# Checks whether a domain name in the cloudapp.net zone is available for use.
# Checks whether a domain name in the cloudapp.azure.com zone is available for
# use.
#
# @param location [String] The location of the domain name.
# @param domain_name_label [String] The domain name to be verified. It must
Expand All @@ -260,13 +261,14 @@ def make_request_async(method, path, options = {})
#
# @return [DnsNameAvailabilityResult] operation results.
#
def check_dns_name_availability(location, domain_name_label = nil, custom_headers = nil)
def check_dns_name_availability(location, domain_name_label, custom_headers = nil)
response = check_dns_name_availability_async(location, domain_name_label, custom_headers).value!
response.body unless response.nil?
end

#
# Checks whether a domain name in the cloudapp.net zone is available for use.
# Checks whether a domain name in the cloudapp.azure.com zone is available for
# use.
#
# @param location [String] The location of the domain name.
# @param domain_name_label [String] The domain name to be verified. It must
Expand All @@ -276,12 +278,13 @@ def check_dns_name_availability(location, domain_name_label = nil, custom_header
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def check_dns_name_availability_with_http_info(location, domain_name_label = nil, custom_headers = nil)
def check_dns_name_availability_with_http_info(location, domain_name_label, custom_headers = nil)
check_dns_name_availability_async(location, domain_name_label, custom_headers).value!
end

#
# Checks whether a domain name in the cloudapp.net zone is available for use.
# Checks whether a domain name in the cloudapp.azure.com zone is available for
# use.
#
# @param location [String] The location of the domain name.
# @param domain_name_label [String] The domain name to be verified. It must
Expand All @@ -291,8 +294,9 @@ def check_dns_name_availability_with_http_info(location, domain_name_label = nil
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def check_dns_name_availability_async(location, domain_name_label = nil, custom_headers = nil)
def check_dns_name_availability_async(location, domain_name_label, custom_headers = nil)
fail ArgumentError, 'location is nil' if location.nil?
fail ArgumentError, 'domain_name_label is nil' if domain_name_label.nil?
api_version = '2017-08-01'
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def initialize(client)
attr_reader :client

#
# Lists compute usages for a subscription.
# List network usages for a subscription.
#
# @param location [String] The location where resource usage is queried.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
Expand All @@ -36,7 +36,7 @@ def list(location, custom_headers = nil)
end

#
# Lists compute usages for a subscription.
# List network usages for a subscription.
#
# @param location [String] The location where resource usage is queried.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
Expand All @@ -49,7 +49,7 @@ def list_with_http_info(location, custom_headers = nil)
end

#
# Lists compute usages for a subscription.
# List network usages for a subscription.
#
# @param location [String] The location where resource usage is queried.
# @param [Hash{String => String}] A hash of custom headers that will be added
Expand Down Expand Up @@ -109,7 +109,7 @@ def list_async(location, custom_headers = nil)
end

#
# Lists compute usages for a subscription.
# List network usages for a subscription.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
Expand All @@ -124,7 +124,7 @@ def list_next(next_page_link, custom_headers = nil)
end

#
# Lists compute usages for a subscription.
# List network usages for a subscription.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
Expand All @@ -138,7 +138,7 @@ def list_next_with_http_info(next_page_link, custom_headers = nil)
end

#
# Lists compute usages for a subscription.
# List network usages for a subscription.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
Expand Down Expand Up @@ -196,7 +196,7 @@ def list_next_async(next_page_link, custom_headers = nil)
end

#
# Lists compute usages for a subscription.
# List network usages for a subscription.
#
# @param location [String] The location where resource usage is queried.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,8 @@ def generate_vpn_profile_async(resource_group_name, virtual_network_gateway_name
#
# @return [String] operation results.
#
def get_vpn_profile_pacakge_url(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
response = get_vpn_profile_pacakge_url_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
def get_vpn_profile_package_url(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
response = get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
response.body unless response.nil?
end

Expand All @@ -571,9 +571,9 @@ def get_vpn_profile_pacakge_url(resource_group_name, virtual_network_gateway_nam
# @return [Concurrent::Promise] promise which provides async access to http
# response.
#
def get_vpn_profile_pacakge_url_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
def get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
# Send request
promise = begin_get_vpn_profile_pacakge_url_async(resource_group_name, virtual_network_gateway_name, custom_headers)
promise = begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers)

promise = promise.then do |response|
# Defining deserialization method.
Expand Down Expand Up @@ -1290,8 +1290,8 @@ def begin_generate_vpn_profile_async(resource_group_name, virtual_network_gatewa
#
# @return [String] operation results.
#
def begin_get_vpn_profile_pacakge_url(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
response = begin_get_vpn_profile_pacakge_url_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
def begin_get_vpn_profile_package_url(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
response = begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
response.body unless response.nil?
end

Expand All @@ -1308,8 +1308,8 @@ def begin_get_vpn_profile_pacakge_url(resource_group_name, virtual_network_gatew
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
def begin_get_vpn_profile_pacakge_url_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
begin_get_vpn_profile_pacakge_url_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
def begin_get_vpn_profile_package_url_with_http_info(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers).value!
end

#
Expand All @@ -1325,7 +1325,7 @@ def begin_get_vpn_profile_pacakge_url_with_http_info(resource_group_name, virtua
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def begin_get_vpn_profile_pacakge_url_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
def begin_get_vpn_profile_package_url_async(resource_group_name, virtual_network_gateway_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'virtual_network_gateway_name is nil' if virtual_network_gateway_name.nil?
api_version = '2017-08-01'
Expand Down