google-apis-chat_v1 0.65.0 → 0.67.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ChatV1
18
18
  # Version of the google-apis-chat_v1 gem
19
- GEM_VERSION = "0.65.0"
19
+ GEM_VERSION = "0.67.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230711"
25
+ REVISION = "20230801"
26
26
  end
27
27
  end
28
28
  end
@@ -1522,6 +1522,7 @@ module Google
1522
1522
  class Representation < Google::Apis::Core::JsonRepresentation
1523
1523
  property :admin_installed, as: 'adminInstalled'
1524
1524
  property :display_name, as: 'displayName'
1525
+ property :external_user_allowed, as: 'externalUserAllowed'
1525
1526
  property :name, as: 'name'
1526
1527
  property :single_user_bot_dm, as: 'singleUserBotDm'
1527
1528
  property :space_details, as: 'spaceDetails', class: Google::Apis::ChatV1::SpaceDetails, decorator: Google::Apis::ChatV1::SpaceDetails::Representation
@@ -139,11 +139,11 @@ module Google
139
139
  execute_or_queue_command(command, &block)
140
140
  end
141
141
 
142
- # Creates a named space. Spaces grouped by topics or that have guest access aren'
143
- # t supported. For an example, see [Create a space](https://developers.google.
144
- # com/chat/api/guides/v1/spaces/create). Requires [user authentication](https://
145
- # developers.google.com/chat/api/guides/auth/users) and the `chat.spaces.create`
146
- # or `chat.spaces` scope.
142
+ # Creates a named space. Spaces grouped by topics aren't supported. For an
143
+ # example, see [Create a space](https://developers.google.com/chat/api/guides/v1/
144
+ # spaces/create). Requires [user authentication](https://developers.google.com/
145
+ # chat/api/guides/auth/users) and the `chat.spaces.create` or `chat.spaces`
146
+ # scope.
147
147
  # @param [Google::Apis::ChatV1::Space] space_object
148
148
  # @param [String] request_id
149
149
  # Optional. A unique identifier for this request. A random UUID is recommended.
@@ -232,7 +232,10 @@ module Google
232
232
  # or the `id` for the [user](https://developers.google.com/admin-sdk/directory/
233
233
  # reference/rest/v1/users) in the Directory API. For example, if the People API `
234
234
  # Person.resourceName` is `people/123456789`, you can find a direct message with
235
- # that person by using `users/123456789` as the `name`.
235
+ # that person by using `users/123456789` as the `name`. When [authenticated as a
236
+ # user](https://developers.google.com/chat/api/guides/auth/users), you can use
237
+ # the email as an alias for ``user``. For example, `users/example@gmail.com`
238
+ # where `example@gmail.com` is the email of the Google Chat user.
236
239
  # @param [String] fields
237
240
  # Selector specifying which fields to include in a partial response.
238
241
  # @param [String] quota_user
@@ -421,18 +424,18 @@ module Google
421
424
  # in the request. For an example, see [Set up a space](https://developers.google.
422
425
  # com/chat/api/guides/v1/spaces/set-up). To specify the human members to add,
423
426
  # add memberships with the appropriate `member.name` in the `SetUpSpaceRequest`.
424
- # To add a human user, use `users/`user``, where ``user`` is either the ``
425
- # person_id`` for the [person](https://developers.google.com/people/api/rest/v1/
426
- # people) from the People API, or the `id` for the [user](https://developers.
427
- # google.com/admin-sdk/directory/reference/rest/v1/users) in the Admin SDK
428
- # Directory API. For example, if the People API `Person` `resourceName` is `
429
- # people/123456789`, you can add the user to the space by including a membership
430
- # with `users/123456789` as the `member.name`. For a space or group chat, if the
431
- # caller blocks or is blocked by some members, then those members aren't added
432
- # to the created space. To create a direct message (DM) between the calling user
433
- # and another human user, specify exactly one membership to represent the human
434
- # user. If one user blocks the other, the request fails and the DM isn't created.
435
- # To create a DM between the calling user and the calling app, set `Space.
427
+ # To add a human user, use `users/`user``, where ``user`` can be the email
428
+ # address for the user. For users in the same Workspace organization ``user``
429
+ # can also be the ``person_id`` for the person from the People API, or the `id`
430
+ # for the user in the Directory API. For example, if the People API Person `
431
+ # resourceName` for `user@example.com` is `people/123456789`, you can add the
432
+ # user to the space by setting the `membership.member.name` to `users/user@
433
+ # example.com` or `users/123456789`. For a space or group chat, if the caller
434
+ # blocks or is blocked by some members, then those members aren't added to the
435
+ # created space. To create a direct message (DM) between the calling user and
436
+ # another human user, specify exactly one membership to represent the human user.
437
+ # If one user blocks the other, the request fails and the DM isn't created. To
438
+ # create a DM between the calling user and the calling app, set `Space.
436
439
  # singleUserBotDm` to `true` and don't specify any memberships. You can only use
437
440
  # this method to set up a DM with the calling app. To add the calling app as a
438
441
  # member of a space or an existing DM between two human users, see [create a
@@ -483,13 +486,13 @@ module Google
483
486
  # the member to add, set the `membership.member.name` in the `
484
487
  # CreateMembershipRequest`: - To add the calling app to a space or a direct
485
488
  # message between two human users, use `users/app`. Unable to add other apps to
486
- # the space. - To add a human user, use `users/`user``, where ``user`` is either
487
- # the ``person_id`` for the [person](https://developers.google.com/people/api/
488
- # rest/v1/people) from the People API, or the `id` for the [user](https://
489
- # developers.google.com/admin-sdk/directory/reference/rest/v1/users) in the
490
- # Directory API. For example, if the People API `Person` `resourceName` is `
491
- # people/123456789`, you can add the user to the space by setting the `
492
- # membership.member.name` to `users/123456789`.
489
+ # the space. - To add a human user, use `users/`user``, where ``user`` can be
490
+ # the email address for the user. For users in the same Workspace organization ``
491
+ # user`` can also be the ``person_id`` for the person from the People API, or
492
+ # the `id` for the user in the Directory API. For example, if the People API
493
+ # Person `resourceName` for `user@example.com` is `people/123456789`, you can
494
+ # add the user to the space by setting the `membership.member.name` to `users/
495
+ # user@example.com` or `users/123456789`.
493
496
  # @param [String] parent
494
497
  # Required. The resource name of the space for which to create the membership.
495
498
  # Format: spaces/`space`
@@ -531,10 +534,12 @@ module Google
531
534
  # Required. Resource name of the membership to delete. Chat apps can delete
532
535
  # human users' or their own memberships. Chat apps can't delete other apps'
533
536
  # memberships. When deleting a human membership, requires the `chat.memberships`
534
- # scope and `spaces/`space`/members/`member`` format. When deleting an app
535
- # membership, requires the `chat.memberships.app` scope and `spaces/`space`/
536
- # members/app` format. Format: `spaces/`space`/members/`member`` or `spaces/`
537
- # space`/members/app`
537
+ # scope and `spaces/`space`/members/`member`` format. You can use the email as
538
+ # an alias for ``member``. For example, `spaces/`space`/members/example@gmail.
539
+ # com` where `example@gmail.com` is the email of the Google Chat user. When
540
+ # deleting an app membership, requires the `chat.memberships.app` scope and `
541
+ # spaces/`space`/members/app` format. Format: `spaces/`space`/members/`member``
542
+ # or `spaces/`space`/members/app`.
538
543
  # @param [String] fields
539
544
  # Selector specifying which fields to include in a partial response.
540
545
  # @param [String] quota_user
@@ -573,7 +578,11 @@ module Google
573
578
  # @param [String] name
574
579
  # Required. Resource name of the membership to retrieve. To get the app's own
575
580
  # membership, you can optionally use `spaces/`space`/members/app`. Format: `
576
- # spaces/`space`/members/`member`` or `spaces/`space`/members/app`
581
+ # spaces/`space`/members/`member`` or `spaces/`space`/members/app` When [
582
+ # authenticated as a user](https://developers.google.com/chat/api/guides/auth/
583
+ # users), you can use the user's email as an alias for ``member``. For example, `
584
+ # spaces/`space`/members/example@gmail.com` where `example@gmail.com` is the
585
+ # email of the Google Chat user.
577
586
  # @param [String] fields
578
587
  # Selector specifying which fields to include in a partial response.
579
588
  # @param [String] quota_user
@@ -631,14 +640,15 @@ module Google
631
640
  # role = "ROLE_MEMBER" ``` Invalid queries are rejected by the server with an `
632
641
  # INVALID_ARGUMENT` error.
633
642
  # @param [Fixnum] page_size
634
- # The maximum number of memberships to return. The service might return fewer
635
- # than this value. If unspecified, at most 100 memberships are returned. The
636
- # maximum value is 1,000. If you use a value more than 1,000, it's automatically
637
- # changed to 1,000. Negative values return an `INVALID_ARGUMENT` error.
643
+ # Optional. The maximum number of memberships to return. The service might
644
+ # return fewer than this value. If unspecified, at most 100 memberships are
645
+ # returned. The maximum value is 1,000. If you use a value more than 1,000, it's
646
+ # automatically changed to 1,000. Negative values return an `INVALID_ARGUMENT`
647
+ # error.
638
648
  # @param [String] page_token
639
- # A page token, received from a previous call to list memberships. Provide this
640
- # parameter to retrieve the subsequent page. When paginating, all other
641
- # parameters provided should match the call that provided the page token.
649
+ # Optional. A page token, received from a previous call to list memberships.
650
+ # Provide this parameter to retrieve the subsequent page. When paginating, all
651
+ # other parameters provided should match the call that provided the page token.
642
652
  # Passing different values to the other parameters might lead to unexpected
643
653
  # results.
644
654
  # @param [Boolean] show_invited
@@ -760,6 +770,8 @@ module Google
760
770
  # service-accounts) and [user authentication](https://developers.google.com/chat/
761
771
  # api/guides/auth/users). [User authentication](https://developers.google.com/
762
772
  # chat/api/guides/auth/users) requires the `chat.messages` authorization scope.
773
+ # Requests authenticated with service accounts can only delete messages created
774
+ # by the calling Chat app.
763
775
  # @param [String] name
764
776
  # Required. Resource name of the message that you want to delete, in the form `
765
777
  # spaces/*/messages/*` Example: `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.
@@ -845,8 +857,7 @@ module Google
845
857
  # from blocked members and spaces. For an example, see [List messages](/chat/api/
846
858
  # guides/v1/messages/list). Requires [user authentication](https://developers.
847
859
  # google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.
848
- # messages.readonly` authorization scope. This method is only supported in
849
- # spaces that don't allow users from outside the Workspace organization to join.
860
+ # messages.readonly` authorization scope.
850
861
  # @param [String] parent
851
862
  # Required. The resource name of the space to list messages from. Format: `
852
863
  # spaces/`space``
@@ -928,7 +939,8 @@ module Google
928
939
  # developers.google.com/chat/api/guides/auth/service-accounts) and [user
929
940
  # authentication](https://developers.google.com/chat/api/guides/auth/users). [
930
941
  # User authentication](https://developers.google.com/chat/api/guides/auth/users)
931
- # requires the `chat.messages` authorization scope.
942
+ # requires the `chat.messages` authorization scope. Requests authenticated with
943
+ # service accounts can only update messages created by the calling Chat app.
932
944
  # @param [String] name
933
945
  # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
934
946
  # messages/BBBBBBBBBBB.BBBBBBBBBBB`
@@ -984,7 +996,8 @@ module Google
984
996
  # developers.google.com/chat/api/guides/auth/service-accounts) and [user
985
997
  # authentication](https://developers.google.com/chat/api/guides/auth/users). [
986
998
  # User authentication](https://developers.google.com/chat/api/guides/auth/users)
987
- # requires the `chat.messages` authorization scope.
999
+ # requires the `chat.messages` authorization scope. Requests authenticated with
1000
+ # service accounts can only update messages created by the calling Chat app.
988
1001
  # @param [String] name
989
1002
  # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
990
1003
  # messages/BBBBBBBBBBB.BBBBBBBBBBB`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-chat_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.65.0
4
+ version: 0.67.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-16 00:00:00.000000000 Z
11
+ date: 2023-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.65.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.67.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chat_v1
63
63
  post_install_message:
64
64
  rdoc_options: []