Class: Google::Apis::AdminDirectoryV1::UserLocation
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::AdminDirectoryV1::UserLocation
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/representations.rb 
Overview
JSON template for a location entry.
Instance Attribute Summary collapse
- 
  
    
      #area  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Textual location.
 - 
  
    
      #building_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Building Identifier.
 - 
  
    
      #custom_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Custom Type.
 - 
  
    
      #desk_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Most specific textual code of individual desk location.
 - 
  
    
      #floor_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Floor name/number.
 - 
  
    
      #floor_section  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Floor section.
 - 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Each entry can have a type which indicates standard types of that entry.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ UserLocation 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of UserLocation.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserLocation
Returns a new instance of UserLocation
      3564 3565 3566  | 
    
      # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3564 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#area ⇒ String
Textual location. This is most useful for display purposes to concisely
describe the location. For example, "Mountain View, CA", "Near Seattle", "US-
NYC-9TH 9A209A".
Corresponds to the JSON property area
      3527 3528 3529  | 
    
      # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3527 def area @area end  | 
  
#building_id ⇒ String
Building Identifier.
Corresponds to the JSON property buildingId
      3532 3533 3534  | 
    
      # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3532 def building_id @building_id end  | 
  
#custom_type ⇒ String
Custom Type.
Corresponds to the JSON property customType
      3537 3538 3539  | 
    
      # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3537 def custom_type @custom_type end  | 
  
#desk_code ⇒ String
Most specific textual code of individual desk location.
Corresponds to the JSON property deskCode
      3542 3543 3544  | 
    
      # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3542 def desk_code @desk_code end  | 
  
#floor_name ⇒ String
Floor name/number.
Corresponds to the JSON property floorName
      3547 3548 3549  | 
    
      # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3547 def floor_name @floor_name end  | 
  
#floor_section ⇒ String
Floor section. More specific location within the floor. For example, if a
floor is divided into sections "A", "B", and "C", this field would identify
one of those values.
Corresponds to the JSON property floorSection
      3554 3555 3556  | 
    
      # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3554 def floor_section @floor_section end  | 
  
#type ⇒ String
Each entry can have a type which indicates standard types of that entry. For
example location could be of types default and desk. In addition to standard
type, an entry can have a custom type and can give it any name. Such types
should have "custom" as type and also have a customType value.
Corresponds to the JSON property type
      3562 3563 3564  | 
    
      # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3562 def type @type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3569 3570 3571 3572 3573 3574 3575 3576 3577  | 
    
      # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3569 def update!(**args) @area = args[:area] if args.key?(:area) @building_id = args[:building_id] if args.key?(:building_id) @custom_type = args[:custom_type] if args.key?(:custom_type) @desk_code = args[:desk_code] if args.key?(:desk_code) @floor_name = args[:floor_name] if args.key?(:floor_name) @floor_section = args[:floor_section] if args.key?(:floor_section) @type = args[:type] if args.key?(:type) end  |