class Azure::HybridCompute::Mgmt::V2020_08_02::Models::LocationData

Metadata pertaining to the geographic location of the resource.

Attributes

city[RW]

@return [String] The city or locality where the resource is located.

country_or_region[RW]

@return [String] The country or region where the resource is located

district[RW]

@return [String] The district, state, or province where the resource is located.

name[RW]

@return [String] A canonical name for the geographic or physical location.

Private Class Methods

mapper() click to toggle source

Mapper for LocationData class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2020-08-02/generated/azure_mgmt_hybrid_compute/models/location_data.rb, line 34
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'locationData',
    type: {
      name: 'Composite',
      class_name: 'LocationData',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          constraints: {
            MaxLength: 256
          },
          type: {
            name: 'String'
          }
        },
        city: {
          client_side_validation: true,
          required: false,
          serialized_name: 'city',
          type: {
            name: 'String'
          }
        },
        district: {
          client_side_validation: true,
          required: false,
          serialized_name: 'district',
          type: {
            name: 'String'
          }
        },
        country_or_region: {
          client_side_validation: true,
          required: false,
          serialized_name: 'countryOrRegion',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end