Class: Google::Apis::AdminDirectoryV1::CalendarResource

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.calendars

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) ⇒ CalendarResource

Returns a new instance of CalendarResource.


461
462
463
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 461

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

Instance Attribute Details

#building_idString

Unique ID for the building a resource is located in. Corresponds to the JSON property buildingId

Returns:

  • (String)

384
385
386
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 384

def building_id
  @building_id
end

#capacityFixnum

Capacity of a resource, number of seats in a room. Corresponds to the JSON property capacity

Returns:

  • (Fixnum)

389
390
391
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 389

def capacity
  @capacity
end

#etagsString

ETag of the resource. Corresponds to the JSON property etags

Returns:

  • (String)

394
395
396
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 394

def etags
  @etags
end

#feature_instancesObject

Instances of features for the calendar resource. Corresponds to the JSON property featureInstances

Returns:

  • (Object)

399
400
401
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 399

def feature_instances
  @feature_instances
end

#floor_nameString

Name of the floor a resource is located on. Corresponds to the JSON property floorName

Returns:

  • (String)

404
405
406
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 404

def floor_name
  @floor_name
end

#floor_sectionString

Name of the section within a floor a resource is located in. Corresponds to the JSON property floorSection

Returns:

  • (String)

409
410
411
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 409

def floor_section
  @floor_section
end

#generated_resource_nameString

The read-only auto-generated name of the calendar resource which includes metadata about the resource such as building name, floor, capacity, etc. For example, "NYC-2-Training Room 1A (16)". Corresponds to the JSON property generatedResourceName

Returns:

  • (String)

416
417
418
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 416

def generated_resource_name
  @generated_resource_name
end

#kindString

The type of the resource. For calendar resources, the value is admin#directory# resources#calendars#CalendarResource. Corresponds to the JSON property kind

Returns:

  • (String)

422
423
424
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 422

def kind
  @kind
end

#resource_categoryString

The category of the calendar resource. Either CONFERENCE_ROOM or OTHER. Legacy data is set to CATEGORY_UNKNOWN. Corresponds to the JSON property resourceCategory

Returns:

  • (String)

428
429
430
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 428

def resource_category
  @resource_category
end

#resource_descriptionString

Description of the resource, visible only to admins. Corresponds to the JSON property resourceDescription

Returns:

  • (String)

433
434
435
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 433

def resource_description
  @resource_description
end

#resource_emailString

The read-only email for the calendar resource. Generated as part of creating a new calendar resource. Corresponds to the JSON property resourceEmail

Returns:

  • (String)

439
440
441
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 439

def resource_email
  @resource_email
end

#resource_idString

The unique ID for the calendar resource. Corresponds to the JSON property resourceId

Returns:

  • (String)

444
445
446
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 444

def resource_id
  @resource_id
end

#resource_nameString

The name of the calendar resource. For example, "Training Room 1A". Corresponds to the JSON property resourceName

Returns:

  • (String)

449
450
451
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 449

def resource_name
  @resource_name
end

#resource_typeString

The type of the calendar resource, intended for non-room resources. Corresponds to the JSON property resourceType

Returns:

  • (String)

454
455
456
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 454

def resource_type
  @resource_type
end

#user_visible_descriptionString

Description of the resource, visible to users and admins. Corresponds to the JSON property userVisibleDescription

Returns:

  • (String)

459
460
461
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 459

def user_visible_description
  @user_visible_description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 466

def update!(**args)
  @building_id = args[:building_id] if args.key?(:building_id)
  @capacity = args[:capacity] if args.key?(:capacity)
  @etags = args[:etags] if args.key?(:etags)
  @feature_instances = args[:feature_instances] if args.key?(:feature_instances)
  @floor_name = args[:floor_name] if args.key?(:floor_name)
  @floor_section = args[:floor_section] if args.key?(:floor_section)
  @generated_resource_name = args[:generated_resource_name] if args.key?(:generated_resource_name)
  @kind = args[:kind] if args.key?(:kind)
  @resource_category = args[:resource_category] if args.key?(:resource_category)
  @resource_description = args[:resource_description] if args.key?(:resource_description)
  @resource_email = args[:resource_email] if args.key?(:resource_email)
  @resource_id = args[:resource_id] if args.key?(:resource_id)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
  @user_visible_description = args[:user_visible_description] if args.key?(:user_visible_description)
end