Class: Azure::NetApp::Mgmt::V2019_11_01::Models::ResourceNameAvailability
- Inherits:
-
Object
- Object
- Azure::NetApp::Mgmt::V2019_11_01::Models::ResourceNameAvailability
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-11-01/generated/azure_mgmt_netapp/models/resource_name_availability.rb
Overview
Information regarding availability of a resource name.
Instance Attribute Summary collapse
-
#is_available ⇒ Boolean
available.
-
#message ⇒ String
why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name.
-
#reason ⇒ InAvailabilityReasonType
name provided does not match Azure App Service naming requirements.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ResourceNameAvailability class as Ruby Hash.
Instance Attribute Details
#is_available ⇒ Boolean
available. false indicates the name is invalid, unavailable, or both.
18 19 20 |
# File 'lib/2019-11-01/generated/azure_mgmt_netapp/models/resource_name_availability.rb', line 18 def is_available @is_available end |
#message ⇒ String
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.
32 33 34 |
# File 'lib/2019-11-01/generated/azure_mgmt_netapp/models/resource_name_availability.rb', line 32 def @message end |
#reason ⇒ InAvailabilityReasonType
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’
25 26 27 |
# File 'lib/2019-11-01/generated/azure_mgmt_netapp/models/resource_name_availability.rb', line 25 def reason @reason end |
Class Method Details
.mapper ⇒ Object
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/2019-11-01/generated/azure_mgmt_netapp/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: { is_available: { client_side_validation: true, required: false, serialized_name: 'isAvailable', 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 |