Class: Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::Address

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#address_line1String

Returns The address line1.

Returns:

  • (String)

    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_line2String

Returns The address line2.

Returns:

  • (String)

    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_line3String

Returns The address line3.

Returns:

  • (String)

    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

#cityString

Returns The city name.

Returns:

  • (String)

    The city name.



28
29
30
# File 'lib/2019-08-01/generated/azure_mgmt_databoxedge/models/address.rb', line 28

def city
  @city
end

#countryString

Returns The country name.

Returns:

  • (String)

    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_codeString

Returns The postal code.

Returns:

  • (String)

    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

#stateString

Returns The state name.

Returns:

  • (String)

    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

.mapperObject

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