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

JSON template for Calendar Resource object in Directory API.

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



302
303
304
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 302

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

Instance Attribute Details

#etagsString

ETag of the resource. Corresponds to the JSON property etags

Returns:

  • (String)


260
261
262
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 260

def etags
  @etags
end

#generated_resource_nameString

The 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)


267
268
269
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 267

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)


273
274
275
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 273

def kind
  @kind
end

#resource_descriptionString

The brief description of the calendar resource. Corresponds to the JSON property resourceDescription

Returns:

  • (String)


278
279
280
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 278

def resource_description
  @resource_description
end

#resource_emailString

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

Returns:

  • (String)


284
285
286
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 284

def resource_email
  @resource_email
end

#resource_idString

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

Returns:

  • (String)


289
290
291
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 289

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)


294
295
296
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 294

def resource_name
  @resource_name
end

#resource_typeString

The type of the calendar resource. Used for grouping resources in the calendar user interface. Corresponds to the JSON property resourceType

Returns:

  • (String)


300
301
302
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 300

def resource_type
  @resource_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



307
308
309
310
311
312
313
314
315
316
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 307

def update!(**args)
  @etags = args[:etags] if args.key?(:etags)
  @generated_resource_name = args[:generated_resource_name] if args.key?(:generated_resource_name)
  @kind = args[:kind] if args.key?(:kind)
  @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)
end