Class: Google::Apis::ChatV1::SetUpSpaceRequest
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::SetUpSpaceRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Instance Attribute Summary collapse
-
#memberships ⇒ Array<Google::Apis::ChatV1::Membership>
Optional.
-
#request_id ⇒ String
Optional.
-
#space ⇒ Google::Apis::ChatV1::Space
A space in Google Chat.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SetUpSpaceRequest
constructor
A new instance of SetUpSpaceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SetUpSpaceRequest
Returns a new instance of SetUpSpaceRequest.
3382 3383 3384 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3382 def initialize(**args) update!(**args) end |
Instance Attribute Details
#memberships ⇒ Array<Google::Apis::ChatV1::Membership>
Optional. The initial set of in-domain users invited to join the space. The
calling user is automatically added to the space, and shouldn't be specified
as a membership. The set currently allows up to 20 memberships (in addition to
the caller). The Membership.member field must contain a user with name
populated and User.Type.HUMAN. All other fields are ignored. Optional when
setting Space.spaceType to SPACE. Required when setting Space.spaceType
to GROUP_CHAT, along with at least two memberships. Required when setting
Space.spaceType to DIRECT_MESSAGE with a human user, along with exactly one
membership. Must be empty when creating a 1:1 conversation between a human and
the calling Chat app (when setting Space.spaceType to DIRECT_MESSAGE and
Space.singleUserBotDm to true). Not supported: Inviting guest users, or
adding other Chat apps.
Corresponds to the JSON property memberships
3366 3367 3368 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3366 def memberships @memberships end |
#request_id ⇒ String
Optional. A unique identifier for this request. A random UUID is recommended.
Specifying an existing request ID returns the space created with that ID
instead of creating a new space. Specifying an existing request ID from the
same Chat app with a different authenticated user returns an error.
Corresponds to the JSON property requestId
3374 3375 3376 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3374 def request_id @request_id end |
#space ⇒ Google::Apis::ChatV1::Space
A space in Google Chat. Spaces are conversations between two or more users or
1:1 messages between a user and a Chat app.
Corresponds to the JSON property space
3380 3381 3382 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3380 def space @space end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3387 3388 3389 3390 3391 |
# File 'lib/google/apis/chat_v1/classes.rb', line 3387 def update!(**args) @memberships = args[:memberships] if args.key?(:memberships) @request_id = args[:request_id] if args.key?(:request_id) @space = args[:space] if args.key?(:space) end |