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
-
#etags ⇒ String
ETag of the resource.
-
#generated_resource_name ⇒ String
The 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_description ⇒ String
The brief description of the calendar resource.
-
#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.
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
235 236 237 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 235 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etags ⇒ String
ETag of the resource.
Corresponds to the JSON property etags
193 194 195 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 193 def @etags end |
#generated_resource_name ⇒ String
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
200 201 202 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 200 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
206 207 208 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 206 def kind @kind end |
#resource_description ⇒ String
The brief description of the calendar resource.
Corresponds to the JSON property resourceDescription
211 212 213 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 211 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.
Corresponds to the JSON property resourceEmail
217 218 219 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 217 def resource_email @resource_email end |
#resource_id ⇒ String
The unique ID for the calendar resource.
Corresponds to the JSON property resourceId
222 223 224 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 222 def resource_id @resource_id end |
#resource_name ⇒ String
The name of the calendar resource. For example, Training Room 1A
Corresponds to the JSON property resourceName
227 228 229 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 227 def resource_name @resource_name end |
#resource_type ⇒ String
The type of the calendar resource. Used for grouping resources in the calendar
user interface.
Corresponds to the JSON property resourceType
233 234 235 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 233 def resource_type @resource_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
240 241 242 243 244 245 246 247 248 249 |
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 240 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 |