Method: Azure::DataMigration::Mgmt::V2018_03_15_preview::Services#check_name_availability

Defined in:
lib/2018-03-15-preview/generated/azure_mgmt_data_migration/services.rb

#check_name_availability(location, parameters, custom_headers: nil) ⇒ NameAvailabilityResponse

Check name validity and availability

This method checks whether a proposed top-level resource name is valid and available.

will be added to the HTTP request.

Parameters:

  • location (String)

    The Azure region of the operation

  • parameters (NameAvailabilityRequest)

    Requested name to validate

  • custom_headers (Hash{String => String}) (defaults to: nil)

    A hash of custom headers that

Returns:

  • (NameAvailabilityResponse)

    operation results.



905
906
907
908
# File 'lib/2018-03-15-preview/generated/azure_mgmt_data_migration/services.rb', line 905

def check_name_availability(location, parameters, custom_headers:nil)
  response = check_name_availability_async(location, parameters, custom_headers:custom_headers).value!
  response.body unless response.nil?
end