Class: Google::Apis::AdminDirectoryV1::Building

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Building

Returns a new instance of Building.


238
239
240
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 238

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#addressGoogle::Apis::AdminDirectoryV1::BuildingAddress

Public API: Resources.buildings Corresponds to the JSON property address


198
199
200
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 198

def address
  @address
end

#building_idString

Unique identifier for the building. The maximum length is 100 characters. Corresponds to the JSON property buildingId

Returns:

  • (String)

203
204
205
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 203

def building_id
  @building_id
end

#building_nameString

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

Returns:

  • (String)

209
210
211
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 209

def building_name
  @building_name
end

#coordinatesGoogle::Apis::AdminDirectoryV1::BuildingCoordinates

Public API: Resources.buildings Corresponds to the JSON property coordinates


214
215
216
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 214

def coordinates
  @coordinates
end

#descriptionString

A brief description of the building. For example, "Chelsea Market". Corresponds to the JSON property description

Returns:

  • (String)

219
220
221
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 219

def description
  @description
end

#etagsString

ETag of the resource. Corresponds to the JSON property etags

Returns:

  • (String)

224
225
226
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 224

def etags
  @etags
end

#floor_namesArray<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

Returns:

  • (Array<String>)

231
232
233
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 231

def floor_names
  @floor_names
end

#kindString

Kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)

236
237
238
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 236

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


243
244
245
246
247
248
249
250
251
252
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 243

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