Class: Google::Apis::AdminDirectoryV1::CalendarResource
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::CalendarResource
- 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 Calendar Resource object in Directory API.
Instance Attribute Summary collapse
-
#building_id ⇒ String
Unique ID for the building a resource is located in.
-
#capacity ⇒ Fixnum
Capacity of a resource, number of seats in a room.
-
#etags ⇒ String
ETag of the resource.
-
#feature_instances ⇒ Object
Corresponds to the JSON property
featureInstances
. -
#floor_name ⇒ String
Name of the floor a resource is located on.
-
#floor_section ⇒ String
Name of the section within a floor a resource is located in.
-
#generated_resource_name ⇒ String
The read-only auto-generated name of the calendar resource which includes metadata about the resource such as building name, floor, capacity, etc.
-
#kind ⇒ String
The type of the resource.
-
#resource_category ⇒ String
The category of the calendar resource.
-
#resource_description ⇒ String
Description of the resource, visible only to admins.
-
#resource_email ⇒ String
The read-only email ID for the calendar resource.
-
#resource_id ⇒ String
The unique ID for the calendar resource.
-
#resource_name ⇒ String
The name of the calendar resource.
-
#resource_type ⇒ String
The type of the calendar resource, intended for non-room resources.
-
#user_visible_description ⇒ String
Description of the resource, visible to users and admins.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CalendarResource
constructor
A new instance of CalendarResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CalendarResource
Returns a new instance of CalendarResource
342 343 344 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 342 def initialize(**args) update!(**args) end |
Instance Attribute Details
#building_id ⇒ String
Unique ID for the building a resource is located in.
Corresponds to the JSON property buildingId
260 261 262 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 260 def building_id @building_id end |
#capacity ⇒ Fixnum
Capacity of a resource, number of seats in a room.
Corresponds to the JSON property capacity
265 266 267 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 265 def capacity @capacity end |
#etags ⇒ String
ETag of the resource.
Corresponds to the JSON property etags
270 271 272 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 270 def @etags end |
#feature_instances ⇒ Object
Corresponds to the JSON property featureInstances
275 276 277 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 275 def feature_instances @feature_instances end |
#floor_name ⇒ String
Name of the floor a resource is located on.
Corresponds to the JSON property floorName
280 281 282 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 280 def floor_name @floor_name end |
#floor_section ⇒ String
Name of the section within a floor a resource is located in.
Corresponds to the JSON property floorSection
285 286 287 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 285 def floor_section @floor_section end |
#generated_resource_name ⇒ String
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
292 293 294 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 292 def generated_resource_name @generated_resource_name end |
#kind ⇒ String
The type of the resource. For calendar resources, the value is admin#directory#
resources#calendars#CalendarResource.
Corresponds to the JSON property kind
298 299 300 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 298 def kind @kind end |
#resource_category ⇒ String
The category of the calendar resource. Either CONFERENCE_ROOM or OTHER. Legacy
data is set to CATEGORY_UNKNOWN.
Corresponds to the JSON property resourceCategory
304 305 306 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 304 def resource_category @resource_category end |
#resource_description ⇒ String
Description of the resource, visible only to admins. The brief description of
the calendar resource.
Corresponds to the JSON property resourceDescription
310 311 312 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 310 def resource_description @resource_description end |
#resource_email ⇒ String
The read-only email ID for the calendar resource. Generated as part of
creating a new calendar resource. The read-only email for the calendar
resource. Generated as part of creating a new calendar resource.
Corresponds to the JSON property resourceEmail
317 318 319 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 317 def resource_email @resource_email end |
#resource_id ⇒ String
The unique ID for the calendar resource.
Corresponds to the JSON property resourceId
322 323 324 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 322 def resource_id @resource_id end |
#resource_name ⇒ String
The name of the calendar resource. For example, "Training Room 1A". The name
of the calendar resource. For example, Training Room 1A
Corresponds to the JSON property resourceName
328 329 330 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 328 def resource_name @resource_name end |
#resource_type ⇒ String
The type of the calendar resource, intended for non-room resources. The type
of the calendar resource. Used for grouping resources in the calendar user
interface.
Corresponds to the JSON property resourceType
335 336 337 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 335 def resource_type @resource_type end |
#user_visible_description ⇒ String
Description of the resource, visible to users and admins.
Corresponds to the JSON property userVisibleDescription
340 341 342 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 340 def user_visible_description @user_visible_description end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 347 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 |