Class: Azure::Web::Mgmt::V2018_02_01::Models::Address
- Inherits:
-
Object
- Object
- Azure::Web::Mgmt::V2018_02_01::Models::Address
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-02-01/generated/azure_mgmt_web/models/address.rb
Overview
Address information for domain registration.
Instance Attribute Summary collapse
-
#address1 ⇒ String
First line of an Address.
-
#address2 ⇒ String
The second line of the Address.
-
#city ⇒ String
The city for the address.
-
#country ⇒ String
The country for the address.
-
#postal_code ⇒ String
The postal code for the address.
-
#state ⇒ String
The state or province for the address.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Address class as Ruby Hash.
Instance Attribute Details
#address1 ⇒ String
Returns First line of an Address.
16 17 18 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/address.rb', line 16 def address1 @address1 end |
#address2 ⇒ String
Returns The second line of the Address. Optional.
19 20 21 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/address.rb', line 19 def address2 @address2 end |
#city ⇒ String
Returns The city for the address.
22 23 24 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/address.rb', line 22 def city @city end |
#country ⇒ String
Returns The country for the address.
25 26 27 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/address.rb', line 25 def country @country end |
#postal_code ⇒ String
Returns The postal code for the address.
28 29 30 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/address.rb', line 28 def postal_code @postal_code end |
#state ⇒ String
Returns The state or province for the address.
31 32 33 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/address.rb', line 31 def state @state end |
Class Method Details
.mapper ⇒ Object
Mapper for Address class as Ruby Hash. This will be used for serialization/deserialization.
38 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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/address.rb', line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Address', type: { name: 'Composite', class_name: 'Address', model_properties: { address1: { client_side_validation: true, required: true, serialized_name: 'address1', type: { name: 'String' } }, address2: { client_side_validation: true, required: false, serialized_name: 'address2', type: { name: 'String' } }, city: { client_side_validation: true, required: true, serialized_name: 'city', type: { name: 'String' } }, country: { client_side_validation: true, required: true, serialized_name: 'country', type: { name: 'String' } }, postal_code: { client_side_validation: true, required: true, serialized_name: 'postalCode', type: { name: 'String' } }, state: { client_side_validation: true, required: true, serialized_name: 'state', type: { name: 'String' } } } } } end |