Class: Azure::Web::Mgmt::V2018_02_01::Models::ResourceNameAvailability

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01/generated/azure_mgmt_web/models/resource_name_availability.rb

Overview

Information regarding availbility of a resource name.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#messageString

why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.

Returns:

  • (String)

    If reason == invalid, provide the user with the reason



32
33
34
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/resource_name_availability.rb', line 32

def message
  @message
end

#name_availableBoolean

available. false indicates the name is invalid, unavailable, or both.

Returns:

  • (Boolean)

    true indicates name is valid and



18
19
20
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/resource_name_availability.rb', line 18

def name_available
  @name_available
end

#reasonInAvailabilityReasonType

name provided does not match Azure App Service naming requirements. AlreadyExists indicates that the name is already in use and is therefore unavailable. Possible values include: ‘Invalid’, ‘AlreadyExists’

Returns:



25
26
27
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/resource_name_availability.rb', line 25

def reason
  @reason
end

Class Method Details

.mapperObject

Mapper for ResourceNameAvailability class as Ruby Hash. This will be used for serialization/deserialization.



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/resource_name_availability.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ResourceNameAvailability',
    type: {
      name: 'Composite',
      class_name: 'ResourceNameAvailability',
      model_properties: {
        name_available: {
          client_side_validation: true,
          required: false,
          serialized_name: 'nameAvailable',
          type: {
            name: 'Boolean'
          }
        },
        reason: {
          client_side_validation: true,
          required: false,
          serialized_name: 'reason',
          type: {
            name: 'String'
          }
        },
        message: {
          client_side_validation: true,
          required: false,
          serialized_name: 'message',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end