Class: Azure::ARM::Web::Models::Address

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_web/models/address.rb

Overview

Address information for domain registration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#address1String

Returns Address 1.

Returns:

  • (String)

    Address 1.



17
18
19
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 17

def address1
  @address1
end

#address2String

Returns Address 2.

Returns:

  • (String)

    Address 2.



20
21
22
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 20

def address2
  @address2
end

#cityString

Returns City.

Returns:

  • (String)

    City.



23
24
25
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 23

def city
  @city
end

#countryString

Returns Country.

Returns:

  • (String)

    Country.



26
27
28
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 26

def country
  @country
end

#postal_codeString

Returns Postal code.

Returns:

  • (String)

    Postal code.



29
30
31
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 29

def postal_code
  @postal_code
end

#stateString

Returns State.

Returns:

  • (String)

    State.



32
33
34
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 32

def state
  @state
end

Class Method Details

.mapperObject

Mapper for Address 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/generated/azure_mgmt_web/models/address.rb', line 39

def self.mapper()
  {
    required: false,
    serialized_name: 'Address',
    type: {
      name: 'Composite',
      class_name: 'Address',
      model_properties: {
        address1: {
          required: true,
          serialized_name: 'address1',
          type: {
            name: 'String'
          }
        },
        address2: {
          required: false,
          serialized_name: 'address2',
          type: {
            name: 'String'
          }
        },
        city: {
          required: true,
          serialized_name: 'city',
          type: {
            name: 'String'
          }
        },
        country: {
          required: true,
          serialized_name: 'country',
          type: {
            name: 'String'
          }
        },
        postal_code: {
          required: true,
          serialized_name: 'postalCode',
          type: {
            name: 'String'
          }
        },
        state: {
          required: true,
          serialized_name: 'state',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end