Class: Azure::Subscriptions::Mgmt::V2015_11_01::Models::Location

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb

Overview

Location information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#display_nameString

Returns Gets or sets the display name of the location.

Returns:

  • (String)

    Gets or sets the display name of the location



26
27
28
# File 'lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb', line 26

def display_name
  @display_name
end

#idString

(/subscriptions/SubscriptionId).

Returns:

  • (String)

    Gets or sets the ID of the resource



17
18
19
# File 'lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb', line 17

def id
  @id
end

#latitudeString

Returns Gets or sets the latitude of the location.

Returns:

  • (String)

    Gets or sets the latitude of the location



29
30
31
# File 'lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb', line 29

def latitude
  @latitude
end

#longitudeString

Returns Gets or sets the longitude of the location.

Returns:

  • (String)

    Gets or sets the longitude of the location



32
33
34
# File 'lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb', line 32

def longitude
  @longitude
end

#nameString

Returns Gets or sets the location name.

Returns:

  • (String)

    Gets or sets the location name



23
24
25
# File 'lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb', line 23

def name
  @name
end

#subscription_idString

Returns Gets or sets the subscription Id.

Returns:

  • (String)

    Gets or sets the subscription Id.



20
21
22
# File 'lib/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb', line 20

def subscription_id
  @subscription_id
end

Class Method Details

.mapperObject

Mapper for Location 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/2015-11-01/generated/azure_mgmt_subscriptions/models/location.rb', line 39

def self.mapper()
  {
    required: false,
    serialized_name: 'Location',
    type: {
      name: 'Composite',
      class_name: 'Location',
      model_properties: {
        id: {
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        subscription_id: {
          required: false,
          serialized_name: 'subscriptionId',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        display_name: {
          required: false,
          serialized_name: 'displayName',
          type: {
            name: 'String'
          }
        },
        latitude: {
          required: false,
          serialized_name: 'latitude',
          type: {
            name: 'String'
          }
        },
        longitude: {
          required: false,
          serialized_name: 'longitude',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end