Class: Google::Apis::ClassroomV1beta1::CourseAlias
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1beta1::CourseAlias
- Includes:
- Google::Apis::Core::Hashable
- Defined in:
- generated/google/apis/classroom_v1beta1/classes.rb,
generated/google/apis/classroom_v1beta1/representations.rb,
generated/google/apis/classroom_v1beta1/representations.rb
Overview
Alternative identifier for a course. An alias uniquely identifies a course. It will be unique within one of the following scopes: * domain: A domain-scoped alias is visible to all users within the alias creator's domain and may only be created by a domain admin. A domain-scoped alias is often used when a course has an identifier external to Classroom. * project: A project-scoped alias is visible to any request from an application using the Developer Console Project ID that created the alias and may be created by any project. A project-scoped alias is often used when an application has alternative identifiers. A random value can also be used to avoid duplicate courses in the event of transmission failures, as retrying a request will return ALREADY_EXISTS if a previous one has succeeded.
Instance Attribute Summary collapse
-
#alias ⇒ String
Alias string.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CourseAlias
constructor
A new instance of CourseAlias.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CourseAlias
Returns a new instance of CourseAlias.
196 197 198 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 196 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alias ⇒ String
Alias string. The format of the string indicated the desired alias scoping. * "
d:" indicates a domain-scoped alias. Example: d:math_101 * "p:" indicates a
project-scoped alias. Example: p:abc123 This field has a maximum length of 256
characters.
Corresponds to the JSON property alias
194 195 196 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 194 def alias @alias end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
201 202 203 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 201 def update!(**args) @alias = args[:alias] unless args[:alias].nil? end |