Class: Google::Apis::AdminDirectoryV1::Building
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::Building
- 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
Public API: Resources.buildings
Instance Attribute Summary collapse
-
#address ⇒ Google::Apis::AdminDirectoryV1::BuildingAddress
Public API: Resources.buildings Corresponds to the JSON property
address
. -
#building_id ⇒ String
Unique identifier for the building.
-
#building_name ⇒ String
The building name as seen by users in Calendar.
-
#coordinates ⇒ Google::Apis::AdminDirectoryV1::BuildingCoordinates
Public API: Resources.buildings Corresponds to the JSON property
coordinates
. -
#description ⇒ String
A brief description of the building.
-
#etags ⇒ String
ETag of the resource.
-
#floor_names ⇒ Array<String>
The display names for all floors in this building.
-
#kind ⇒ String
Kind of resource this is.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Building
constructor
A new instance of Building.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Building
Returns a new instance of Building.
240 241 242 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 240 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ Google::Apis::AdminDirectoryV1::BuildingAddress
Public API: Resources.buildings
Corresponds to the JSON property address
200 201 202 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 200 def address @address end |
#building_id ⇒ String
Unique identifier for the building. The maximum length is 100 characters.
Corresponds to the JSON property buildingId
205 206 207 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 205 def building_id @building_id end |
#building_name ⇒ String
The building name as seen by users in Calendar. Must be unique for the
customer. For example, "NYC-CHEL". The maximum length is 100 characters.
Corresponds to the JSON property buildingName
211 212 213 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 211 def building_name @building_name end |
#coordinates ⇒ Google::Apis::AdminDirectoryV1::BuildingCoordinates
Public API: Resources.buildings
Corresponds to the JSON property coordinates
216 217 218 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 216 def coordinates @coordinates end |
#description ⇒ String
A brief description of the building. For example, "Chelsea Market".
Corresponds to the JSON property description
221 222 223 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 221 def description @description end |
#etags ⇒ String
ETag of the resource.
Corresponds to the JSON property etags
226 227 228 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 226 def @etags end |
#floor_names ⇒ Array<String>
The display names for all floors in this building. The floors are expected to
be sorted in ascending order, from lowest floor to highest floor. For example,
["B2", "B1", "L", "1", "2", "2M", "3", "PH"] Must contain at least one entry.
Corresponds to the JSON property floorNames
233 234 235 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 233 def floor_names @floor_names end |
#kind ⇒ String
Kind of resource this is.
Corresponds to the JSON property kind
238 239 240 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 238 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
245 246 247 248 249 250 251 252 253 254 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 245 def update!(**args) @address = args[:address] if args.key?(:address) @building_id = args[:building_id] if args.key?(:building_id) @building_name = args[:building_name] if args.key?(:building_name) @coordinates = args[:coordinates] if args.key?(:coordinates) @description = args[:description] if args.key?(:description) @etags = args[:etags] if args.key?(:etags) @floor_names = args[:floor_names] if args.key?(:floor_names) @kind = args[:kind] if args.key?(:kind) end |