google-apis-chat_v1 0.95.0 → 0.97.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 434c7699de42aa86e6bbd4597414eb3911fdc34b5aa65837da4e00185df82f25
4
- data.tar.gz: ef5ddc2d2edb8a903cb06774d7bf0d37340b43012e99ed769a0ec4e3ebcb3124
3
+ metadata.gz: 9c16200b27efb94e3b650f5491f647d0fd43e057b82faea2f3ef682502926f8f
4
+ data.tar.gz: 9b7cca47e2dacb12f8608f4795d1d799d1fdea82249d4fb0a51f090522738d4a
5
5
  SHA512:
6
- metadata.gz: 2e03e90eee305b0fefc4c72a3ca17a76ef88b9052cfb95c962ca0750ffa423d60afcb9adf4428d4f76d41a39d58d889bcb0fe539060b736e9d13c7edd5ce38f7
7
- data.tar.gz: 2c48ac5c364c23d8f7c5e23d1d38ba2cb7a392f5872a134cb87911c970964235912e25329b0aacda6db22811d5e337ae8a5d2e5efaddef9106f6fb74e4c3d712
6
+ metadata.gz: a200e8b817b75ee93931bae84b98d6e3ea4f93212ef0e5fcbd1882c765278e25d707f026d8656cafd85c8783bd7a24e919bd7d5e231366ded4ef8897879d7567
7
+ data.tar.gz: 919e9ecb57de253cc0533052e0be81fba3796bcdeafd76c8b1889b357eb1b9796fb9ebc49dbf6473adb50f0887423d940d8a9ac50df49c5b3aada4a9b3ca89e1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.97.0 (2024-07-07)
4
+
5
+ * Regenerated from discovery document revision 20240625
6
+
7
+ ### v0.96.0 (2024-06-23)
8
+
9
+ * Regenerated from discovery document revision 20240613
10
+
3
11
  ### v0.95.0 (2024-06-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20240609
@@ -22,6 +22,37 @@ module Google
22
22
  module Apis
23
23
  module ChatV1
24
24
 
25
+ # Represents the [access setting](https://support.google.com/chat/answer/
26
+ # 11971020) of the space.
27
+ class AccessSettings
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # Output only. Indicates the access state of the space.
31
+ # Corresponds to the JSON property `accessState`
32
+ # @return [String]
33
+ attr_accessor :access_state
34
+
35
+ # Optional. The resource name of the [target audience](https://support.google.
36
+ # com/a/answer/9934697) who can discover the space, join the space, and preview
37
+ # the messages in the space. For details, see [Make a space discoverable to a
38
+ # target audience](https://developers.google.com/workspace/chat/space-target-
39
+ # audience). Format: `audiences/`audience`` To use the default target audience
40
+ # for the Google Workspace organization, set to `audiences/default`.
41
+ # Corresponds to the JSON property `audience`
42
+ # @return [String]
43
+ attr_accessor :audience
44
+
45
+ def initialize(**args)
46
+ update!(**args)
47
+ end
48
+
49
+ # Update properties of this object
50
+ def update!(**args)
51
+ @access_state = args[:access_state] if args.key?(:access_state)
52
+ @audience = args[:audience] if args.key?(:audience)
53
+ end
54
+ end
55
+
25
56
  # One or more interactive widgets that appear at the bottom of a message. For
26
57
  # details, see [Add interactive widgets at the bottom of a message](https://
27
58
  # developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
@@ -1714,8 +1745,7 @@ module Google
1714
1745
  end
1715
1746
 
1716
1747
  # A column. [Google Workspace Add-ons and Chat apps](https://developers.google.
1717
- # com/workspace/extend): Columns for Google Workspace Add-ons are in Developer
1718
- # Preview.
1748
+ # com/workspace/extend)
1719
1749
  class GoogleAppsCardV1Column
1720
1750
  include Google::Apis::Core::Hashable
1721
1751
 
@@ -3072,8 +3102,7 @@ module Google
3072
3102
  end
3073
3103
 
3074
3104
  # The supported widgets that you can include in a column. [Google Workspace Add-
3075
- # ons and Chat apps](https://developers.google.com/workspace/extend): Columns
3076
- # for Google Workspace Add-ons are in Developer Preview.
3105
+ # ons and Chat apps](https://developers.google.com/workspace/extend)
3077
3106
  class GoogleAppsCardV1Widgets
3078
3107
  include Google::Apis::Core::Hashable
3079
3108
 
@@ -4402,20 +4431,23 @@ module Google
4402
4431
  class SetUpSpaceRequest
4403
4432
  include Google::Apis::Core::Hashable
4404
4433
 
4405
- # Optional. The Google Chat users to invite to join the space. Omit the calling
4406
- # user, as they are added automatically. The set currently allows up to 20
4407
- # memberships (in addition to the caller). For human membership, the `Membership.
4408
- # member` field must contain a `user` with `name` populated (format: `users/`
4409
- # user``) and `type` set to `User.Type.HUMAN`. You can only add human users when
4410
- # setting up a space (adding Chat apps is only supported for direct message
4411
- # setup with the calling app). You can also add members using the user's email
4412
- # as an alias for `user`. For example, the `user.name` can be `users/example@
4413
- # gmail.com`. To invite Gmail users or users from external Google Workspace
4414
- # domains, user's email must be used for ``user``. Optional when setting `Space.
4415
- # spaceType` to `SPACE`. Required when setting `Space.spaceType` to `GROUP_CHAT`,
4416
- # along with at least two memberships. Required when setting `Space.spaceType`
4417
- # to `DIRECT_MESSAGE` with a human user, along with exactly one membership. Must
4418
- # be empty when creating a 1:1 conversation between a human and the calling Chat
4434
+ # Optional. The Google Chat users or groups to invite to join the space. Omit
4435
+ # the calling user, as they are added automatically. The set currently allows up
4436
+ # to 20 memberships (in addition to the caller). For human membership, the `
4437
+ # Membership.member` field must contain a `user` with `name` populated (format: `
4438
+ # users/`user``) and `type` set to `User.Type.HUMAN`. You can only add human
4439
+ # users when setting up a space (adding Chat apps is only supported for direct
4440
+ # message setup with the calling app). You can also add members using the user's
4441
+ # email as an alias for `user`. For example, the `user.name` can be `users/
4442
+ # example@gmail.com`. To invite Gmail users or users from external Google
4443
+ # Workspace domains, user's email must be used for ``user``. For Google group
4444
+ # membership, the `Membership.group_member` field must contain a `group` with `
4445
+ # name` populated (format `groups/`group``). You can only add Google groups when
4446
+ # setting `Space.spaceType` to `SPACE`. Optional when setting `Space.spaceType`
4447
+ # to `SPACE`. Required when setting `Space.spaceType` to `GROUP_CHAT`, along
4448
+ # with at least two memberships. Required when setting `Space.spaceType` to `
4449
+ # DIRECT_MESSAGE` with a human user, along with exactly one membership. Must be
4450
+ # empty when creating a 1:1 conversation between a human and the calling Chat
4419
4451
  # app (when setting `Space.spaceType` to `DIRECT_MESSAGE` and `Space.
4420
4452
  # singleUserBotDm` to `true`).
4421
4453
  # Corresponds to the JSON property `memberships`
@@ -4520,6 +4552,12 @@ module Google
4520
4552
  class Space
4521
4553
  include Google::Apis::Core::Hashable
4522
4554
 
4555
+ # Represents the [access setting](https://support.google.com/chat/answer/
4556
+ # 11971020) of the space.
4557
+ # Corresponds to the JSON property `accessSettings`
4558
+ # @return [Google::Apis::ChatV1::AccessSettings]
4559
+ attr_accessor :access_settings
4560
+
4523
4561
  # Output only. For direct message (DM) spaces with a Chat app, whether the space
4524
4562
  # was created by a Google Workspace administrator. Administrators can install
4525
4563
  # and set up a direct message with a Chat app on behalf of users in their
@@ -4605,6 +4643,11 @@ module Google
4605
4643
  # @return [String]
4606
4644
  attr_accessor :space_type
4607
4645
 
4646
+ # Output only. The URI for a user to access the space.
4647
+ # Corresponds to the JSON property `spaceUri`
4648
+ # @return [String]
4649
+ attr_accessor :space_uri
4650
+
4608
4651
  # Output only. Deprecated: Use `spaceThreadingState` instead. Whether messages
4609
4652
  # are threaded in this space.
4610
4653
  # Corresponds to the JSON property `threaded`
@@ -4623,6 +4666,7 @@ module Google
4623
4666
 
4624
4667
  # Update properties of this object
4625
4668
  def update!(**args)
4669
+ @access_settings = args[:access_settings] if args.key?(:access_settings)
4626
4670
  @admin_installed = args[:admin_installed] if args.key?(:admin_installed)
4627
4671
  @create_time = args[:create_time] if args.key?(:create_time)
4628
4672
  @display_name = args[:display_name] if args.key?(:display_name)
@@ -4634,6 +4678,7 @@ module Google
4634
4678
  @space_history_state = args[:space_history_state] if args.key?(:space_history_state)
4635
4679
  @space_threading_state = args[:space_threading_state] if args.key?(:space_threading_state)
4636
4680
  @space_type = args[:space_type] if args.key?(:space_type)
4681
+ @space_uri = args[:space_uri] if args.key?(:space_uri)
4637
4682
  @threaded = args[:threaded] if args.key?(:threaded)
4638
4683
  @type = args[:type] if args.key?(:type)
4639
4684
  end
@@ -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.95.0"
19
+ GEM_VERSION = "0.97.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240609"
25
+ REVISION = "20240625"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module ChatV1
24
24
 
25
+ class AccessSettings
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AccessoryWidget
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -790,6 +796,14 @@ module Google
790
796
  include Google::Apis::Core::JsonObjectSupport
791
797
  end
792
798
 
799
+ class AccessSettings
800
+ # @private
801
+ class Representation < Google::Apis::Core::JsonRepresentation
802
+ property :access_state, as: 'accessState'
803
+ property :audience, as: 'audience'
804
+ end
805
+ end
806
+
793
807
  class AccessoryWidget
794
808
  # @private
795
809
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1924,6 +1938,8 @@ module Google
1924
1938
  class Space
1925
1939
  # @private
1926
1940
  class Representation < Google::Apis::Core::JsonRepresentation
1941
+ property :access_settings, as: 'accessSettings', class: Google::Apis::ChatV1::AccessSettings, decorator: Google::Apis::ChatV1::AccessSettings::Representation
1942
+
1927
1943
  property :admin_installed, as: 'adminInstalled'
1928
1944
  property :create_time, as: 'createTime'
1929
1945
  property :display_name, as: 'displayName'
@@ -1936,6 +1952,7 @@ module Google
1936
1952
  property :space_history_state, as: 'spaceHistoryState'
1937
1953
  property :space_threading_state, as: 'spaceThreadingState'
1938
1954
  property :space_type, as: 'spaceType'
1955
+ property :space_uri, as: 'spaceUri'
1939
1956
  property :threaded, as: 'threaded'
1940
1957
  property :type, as: 'type'
1941
1958
  end
@@ -429,11 +429,20 @@ module Google
429
429
  # 7664687) if [the organization allows users to change their history setting](
430
430
  # https://support.google.com/a/answer/7664184). Warning: mutually exclusive with
431
431
  # all other field paths.) `space_history_state` is not supported with admin
432
- # access. - Developer Preview: `access_settings.audience` (Supports changing the
433
- # [access setting](https://support.google.com/chat/answer/11971020) of a space.
434
- # If no audience is specified in the access setting, the space's access setting
435
- # is updated to restricted. Warning: mutually exclusive with all other field
436
- # paths.) `access_settings.audience` is not supported with admin access.
432
+ # access. - `access_settings.audience` (Supports changing the [access setting](
433
+ # https://support.google.com/chat/answer/11971020) of who can discover the space,
434
+ # join the space, and preview the messages in space. If no audience is
435
+ # specified in the access setting, the space's access setting is updated to
436
+ # private. Warning: mutually exclusive with all other field paths.) `
437
+ # access_settings.audience` is not supported with admin access. - Developer
438
+ # Preview: Supports changing the [permission settings](https://support.google.
439
+ # com/chat/answer/13340792) of a space, supported field paths include: `
440
+ # permission_settings.manage_members_and_groups`, `permission_settings.
441
+ # modify_space_details`, `permission_settings.toggle_history`, `
442
+ # permission_settings.use_at_mention_all`, `permission_settings.manage_apps`, `
443
+ # permission_settings.manage_webhooks`, `permission_settings.reply_messages` (
444
+ # Warning: mutually exclusive with all other non-permission settings field paths)
445
+ # . `permission_settings` is not supported with admin access.
437
446
  # @param [String] fields
438
447
  # Selector specifying which fields to include in a partial response.
439
448
  # @param [String] quota_user
@@ -475,24 +484,32 @@ module Google
475
484
  # for the user in the Directory API. For example, if the People API Person
476
485
  # profile ID for `user@example.com` is `123456789`, you can add the user to the
477
486
  # space by setting the `membership.member.name` to `users/user@example.com` or `
478
- # users/123456789`. For a named space or group chat, if the caller blocks, or is
479
- # blocked by some members, or doesn't have permission to add some members, then
480
- # those members aren't added to the created space. To create a direct message (
481
- # DM) between the calling user and another human user, specify exactly one
482
- # membership to represent the human user. If one user blocks the other, the
483
- # request fails and the DM isn't created. To create a DM between the calling
484
- # user and the calling app, set `Space.singleUserBotDm` to `true` and don't
485
- # specify any memberships. You can only use this method to set up a DM with the
486
- # calling app. To add the calling app as a member of a space or an existing DM
487
- # between two human users, see [Invite or add a user or app to a space](https://
488
- # developers.google.com/workspace/chat/create-members). If a DM already exists
489
- # between two users, even when one user blocks the other at the time a request
490
- # is made, then the existing DM is returned. Spaces with threaded replies aren't
491
- # supported. If you receive the error message `ALREADY_EXISTS` when setting up a
492
- # space, try a different `displayName`. An existing space within the Google
493
- # Workspace organization might already use this display name. Requires [user
494
- # authentication](https://developers.google.com/workspace/chat/authenticate-
495
- # authorize-chat-user).
487
+ # users/123456789`. To specify the Google groups to add, add memberships with
488
+ # the appropriate `membership.group_member.name`. To add or invite a Google
489
+ # group, use `groups/`group``, where ``group`` is the `id` for the group from
490
+ # the Cloud Identity Groups API. For example, you can use [Cloud Identity Groups
491
+ # lookup API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/
492
+ # lookup) to retrieve the ID `123456789` for group email `group@example.com`,
493
+ # then you can add the group to the space by setting the `membership.
494
+ # group_member.name` to `groups/123456789`. Group email is not supported, and
495
+ # Google groups can only be added as members in named spaces. For a named space
496
+ # or group chat, if the caller blocks, or is blocked by some members, or doesn't
497
+ # have permission to add some members, then those members aren't added to the
498
+ # created space. To create a direct message (DM) between the calling user and
499
+ # another human user, specify exactly one membership to represent the human user.
500
+ # If one user blocks the other, the request fails and the DM isn't created. To
501
+ # create a DM between the calling user and the calling app, set `Space.
502
+ # singleUserBotDm` to `true` and don't specify any memberships. You can only use
503
+ # this method to set up a DM with the calling app. To add the calling app as a
504
+ # member of a space or an existing DM between two human users, see [Invite or
505
+ # add a user or app to a space](https://developers.google.com/workspace/chat/
506
+ # create-members). If a DM already exists between two users, even when one user
507
+ # blocks the other at the time a request is made, then the existing DM is
508
+ # returned. Spaces with threaded replies aren't supported. If you receive the
509
+ # error message `ALREADY_EXISTS` when setting up a space, try a different `
510
+ # displayName`. An existing space within the Google Workspace organization might
511
+ # already use this display name. Requires [user authentication](https://
512
+ # developers.google.com/workspace/chat/authenticate-authorize-chat-user).
496
513
  # @param [Google::Apis::ChatV1::SetUpSpaceRequest] set_up_space_request_object
497
514
  # @param [String] fields
498
515
  # Selector specifying which fields to include in a partial response.
@@ -531,14 +548,23 @@ module Google
531
548
  # adds the member directly to the specified space. Requires [user authentication]
532
549
  # (https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
533
550
  # . To specify the member to add, set the `membership.member.name` for the human
534
- # or app member. - To add the calling app to a space or a direct message between
535
- # two human users, use `users/app`. Unable to add other apps to the space. - To
536
- # add a human user, use `users/`user``, where ``user`` can be the email address
537
- # for the user. For users in the same Workspace organization ``user`` can also
538
- # be the `id` for the person from the People API, or the `id` for the user in
539
- # the Directory API. For example, if the People API Person profile ID for `user@
551
+ # or app member, or set the `membership.group_member.name` for the group member.
552
+ # - To add the calling app to a space or a direct message between two human
553
+ # users, use `users/app`. Unable to add other apps to the space. - To add a
554
+ # human user, use `users/`user``, where ``user`` can be the email address for
555
+ # the user. For users in the same Workspace organization ``user`` can also be
556
+ # the `id` for the person from the People API, or the `id` for the user in the
557
+ # Directory API. For example, if the People API Person profile ID for `user@
540
558
  # example.com` is `123456789`, you can add the user to the space by setting the `
541
- # membership.member.name` to `users/user@example.com` or `users/123456789`.
559
+ # membership.member.name` to `users/user@example.com` or `users/123456789`. - To
560
+ # add or invite a Google group in a named space, use `groups/`group``, where ``
561
+ # group`` is the `id` for the group from the Cloud Identity Groups API. For
562
+ # example, you can use [Cloud Identity Groups lookup API](https://cloud.google.
563
+ # com/identity/docs/reference/rest/v1/groups/lookup) to retrieve the ID `
564
+ # 123456789` for group email `group@example.com`, then you can add or invite the
565
+ # group to a named space by setting the `membership.group_member.name` to `
566
+ # groups/123456789`. Group email is not supported, and Google groups can only be
567
+ # added as members in named spaces.
542
568
  # @param [String] parent
543
569
  # Required. The resource name of the space for which to create the membership.
544
570
  # Format: spaces/`space`
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.95.0
4
+ version: 0.97.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: 2024-06-16 00:00:00.000000000 Z
11
+ date: 2024-07-07 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.95.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.97.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: []