Class: Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::Address
- Inherits:
-
Object
- Object
- Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::Address
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-08-01/generated/azure_mgmt_databoxedge/models/address.rb
Overview
The shipping address of the customer.
Instance Attribute Summary collapse
-
#address_line1 ⇒ String
The address line1.
-
#address_line2 ⇒ String
The address line2.
-
#address_line3 ⇒ String
The address line3.
-
#city ⇒ String
The city name.
-
#country ⇒ String
The country name.
-
#postal_code ⇒ String
The postal code.
-
#state ⇒ String
The state name.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Address class as Ruby Hash.
Instance Attribute Details
#address_line1 ⇒ String
Returns The address line1.
16 17 18 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/address.rb', line 16 def address_line1 @address_line1 end |
#address_line2 ⇒ String
Returns The address line2.
19 20 21 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/address.rb', line 19 def address_line2 @address_line2 end |
#address_line3 ⇒ String
Returns The address line3.
22 23 24 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/address.rb', line 22 def address_line3 @address_line3 end |
#city ⇒ String
Returns The city name.
28 29 30 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/address.rb', line 28 def city @city end |
#country ⇒ String
Returns The country name.
34 35 36 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/address.rb', line 34 def country @country end |
#postal_code ⇒ String
Returns The postal code.
25 26 27 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/address.rb', line 25 def postal_code @postal_code end |
#state ⇒ String
Returns The state name.
31 32 33 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/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.
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 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/address.rb', line 41 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Address', type: { name: 'Composite', class_name: 'Address', model_properties: { address_line1: { client_side_validation: true, required: true, serialized_name: 'addressLine1', type: { name: 'String' } }, address_line2: { client_side_validation: true, required: false, serialized_name: 'addressLine2', type: { name: 'String' } }, address_line3: { client_side_validation: true, required: false, serialized_name: 'addressLine3', type: { name: 'String' } }, postal_code: { client_side_validation: true, required: true, serialized_name: 'postalCode', type: { name: 'String' } }, city: { client_side_validation: true, required: true, serialized_name: 'city', type: { name: 'String' } }, state: { client_side_validation: true, required: true, serialized_name: 'state', type: { name: 'String' } }, country: { client_side_validation: true, required: true, serialized_name: 'country', type: { name: 'String' } } } } } end |