google-apis-chat_v1 0.77.0 → 0.79.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82e52f01a75d5732e8b21c4cb38eec99174f8dca5aa7f79797175c3027157a05
4
- data.tar.gz: b2dd508219112f9d890170180c05eebe4526d99bcd6cdb3f3d91b2c3373b2f04
3
+ metadata.gz: a702296607cd995889c57350c52870f07ed77c2c12b980bf170f0a859be23fd5
4
+ data.tar.gz: 015a944c88836dae6b7f3021f30182f941af4aad42272203f6e5b9e018bc5c89
5
5
  SHA512:
6
- metadata.gz: 102581df0e348883dc5c620dd08595390412fe3fa807f865442ea3312d3c714d6c88f4dd3b7be0a97b7e6f4164ae2550c3f1f6e5cfbb865fb9d74c79bf332444
7
- data.tar.gz: 65fc975528d6e5274f2964d5fe6140843057ba7910bd3a7326961638d9bcfd7695e98a1b0bcafcca49345bcef4fcadf05beaeff94927a227a2dc9854095b55d9
6
+ metadata.gz: 2604e44d9bf6f8f4a4420990e1a997ee72a63707d62441cd45c55daac312fbd73ca5a84184f24ebe6560f5c5a8b791800e1d01ffc257f515b7442e92f2013b45
7
+ data.tar.gz: 4250a8375dfb185238b4e0ae30fdf771b551e1b7d294494cc4814d5f418f0c5911b85c998c3abf4bb911823e21d9f8b6f5af63bc4ee9986f09585d7a0b35d7c8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.79.0 (2023-12-10)
4
+
5
+ * Regenerated from discovery document revision 20231130
6
+
7
+ ### v0.78.0 (2023-12-03)
8
+
9
+ * Regenerated from discovery document revision 20231121
10
+
3
11
  ### v0.77.0 (2023-11-26)
4
12
 
5
13
  * Regenerated from discovery document revision 20231116
@@ -65,6 +65,12 @@ module Google
65
65
  # @return [String]
66
66
  attr_accessor :type
67
67
 
68
+ # The response of the updated widget. Used to provide autocomplete options for a
69
+ # widget.
70
+ # Corresponds to the JSON property `updatedWidget`
71
+ # @return [Google::Apis::ChatV1::UpdatedWidget]
72
+ attr_accessor :updated_widget
73
+
68
74
  # Input only. URL for users to authenticate or configure. (Only for `
69
75
  # REQUEST_CONFIG` response types.)
70
76
  # Corresponds to the JSON property `url`
@@ -79,6 +85,7 @@ module Google
79
85
  def update!(**args)
80
86
  @dialog_action = args[:dialog_action] if args.key?(:dialog_action)
81
87
  @type = args[:type] if args.key?(:type)
88
+ @updated_widget = args[:updated_widget] if args.key?(:updated_widget)
82
89
  @url = args[:url] if args.key?(:url)
83
90
  end
84
91
  end
@@ -2866,6 +2873,27 @@ module Google
2866
2873
  end
2867
2874
  end
2868
2875
 
2876
+ # A Google Group in Google Chat.
2877
+ class Group
2878
+ include Google::Apis::Core::Hashable
2879
+
2880
+ # Resource name for a Google Group. Represents a [group](https://cloud.google.
2881
+ # com/identity/docs/reference/rest/v1/groups) in Cloud Identity Groups API.
2882
+ # Format: groups/`group`
2883
+ # Corresponds to the JSON property `name`
2884
+ # @return [String]
2885
+ attr_accessor :name
2886
+
2887
+ def initialize(**args)
2888
+ update!(**args)
2889
+ end
2890
+
2891
+ # Update properties of this object
2892
+ def update!(**args)
2893
+ @name = args[:name] if args.key?(:name)
2894
+ end
2895
+ end
2896
+
2869
2897
  # Chat apps only. For a `SelectionInput` widget that uses a multiselect menu, a
2870
2898
  # data source from a Google Workspace application. The data source populates
2871
2899
  # selection items for the multiselect menu.
@@ -3228,12 +3256,19 @@ module Google
3228
3256
  class Membership
3229
3257
  include Google::Apis::Core::Hashable
3230
3258
 
3231
- # Output only. The creation time of the membership, such as when a member joined
3232
- # or was invited to join a space.
3259
+ # Optional. Immutable. The creation time of the membership, such as when a
3260
+ # member joined or was invited to join a space. [Developer Preview](https://
3261
+ # developers.google.com/workspace/preview): This field is output only, except
3262
+ # when used to import historical memberships in import mode spaces.
3233
3263
  # Corresponds to the JSON property `createTime`
3234
3264
  # @return [String]
3235
3265
  attr_accessor :create_time
3236
3266
 
3267
+ # A Google Group in Google Chat.
3268
+ # Corresponds to the JSON property `groupMember`
3269
+ # @return [Google::Apis::ChatV1::Group]
3270
+ attr_accessor :group_member
3271
+
3237
3272
  # A user in Google Chat. When returned as an output from a request, if your Chat
3238
3273
  # app [authenticates as a user](https://developers.google.com/chat/api/guides/
3239
3274
  # auth/users), the output for a `User` resource only populates the user's `name`
@@ -3267,6 +3302,7 @@ module Google
3267
3302
  # Update properties of this object
3268
3303
  def update!(**args)
3269
3304
  @create_time = args[:create_time] if args.key?(:create_time)
3305
+ @group_member = args[:group_member] if args.key?(:group_member)
3270
3306
  @member = args[:member] if args.key?(:member)
3271
3307
  @name = args[:name] if args.key?(:name)
3272
3308
  @role = args[:role] if args.key?(:role)
@@ -3631,6 +3667,25 @@ module Google
3631
3667
  end
3632
3668
  end
3633
3669
 
3670
+ # List of widget autocomplete results.
3671
+ class SelectionItems
3672
+ include Google::Apis::Core::Hashable
3673
+
3674
+ # An array of the SelectionItem objects.
3675
+ # Corresponds to the JSON property `items`
3676
+ # @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem>]
3677
+ attr_accessor :items
3678
+
3679
+ def initialize(**args)
3680
+ update!(**args)
3681
+ end
3682
+
3683
+ # Update properties of this object
3684
+ def update!(**args)
3685
+ @items = args[:items] if args.key?(:items)
3686
+ end
3687
+ end
3688
+
3634
3689
  #
3635
3690
  class SetUpSpaceRequest
3636
3691
  include Google::Apis::Core::Hashable
@@ -4100,6 +4155,33 @@ module Google
4100
4155
  end
4101
4156
  end
4102
4157
 
4158
+ # The response of the updated widget. Used to provide autocomplete options for a
4159
+ # widget.
4160
+ class UpdatedWidget
4161
+ include Google::Apis::Core::Hashable
4162
+
4163
+ # List of widget autocomplete results.
4164
+ # Corresponds to the JSON property `suggestions`
4165
+ # @return [Google::Apis::ChatV1::SelectionItems]
4166
+ attr_accessor :suggestions
4167
+
4168
+ # The ID of the updated widget. The ID must match the one for the widget that
4169
+ # triggered the update request.
4170
+ # Corresponds to the JSON property `widget`
4171
+ # @return [String]
4172
+ attr_accessor :widget
4173
+
4174
+ def initialize(**args)
4175
+ update!(**args)
4176
+ end
4177
+
4178
+ # Update properties of this object
4179
+ def update!(**args)
4180
+ @suggestions = args[:suggestions] if args.key?(:suggestions)
4181
+ @widget = args[:widget] if args.key?(:widget)
4182
+ end
4183
+ end
4184
+
4103
4185
  #
4104
4186
  class UploadAttachmentRequest
4105
4187
  include Google::Apis::Core::Hashable
@@ -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.77.0"
19
+ GEM_VERSION = "0.79.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 = "20231116"
25
+ REVISION = "20231130"
26
26
  end
27
27
  end
28
28
  end
@@ -388,6 +388,12 @@ module Google
388
388
  include Google::Apis::Core::JsonObjectSupport
389
389
  end
390
390
 
391
+ class Group
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
391
397
  class HostAppDataSourceMarkup
392
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
393
399
 
@@ -496,6 +502,12 @@ module Google
496
502
  include Google::Apis::Core::JsonObjectSupport
497
503
  end
498
504
 
505
+ class SelectionItems
506
+ class Representation < Google::Apis::Core::JsonRepresentation; end
507
+
508
+ include Google::Apis::Core::JsonObjectSupport
509
+ end
510
+
499
511
  class SetUpSpaceRequest
500
512
  class Representation < Google::Apis::Core::JsonRepresentation; end
501
513
 
@@ -574,6 +586,12 @@ module Google
574
586
  include Google::Apis::Core::JsonObjectSupport
575
587
  end
576
588
 
589
+ class UpdatedWidget
590
+ class Representation < Google::Apis::Core::JsonRepresentation; end
591
+
592
+ include Google::Apis::Core::JsonObjectSupport
593
+ end
594
+
577
595
  class UploadAttachmentRequest
578
596
  class Representation < Google::Apis::Core::JsonRepresentation; end
579
597
 
@@ -618,6 +636,8 @@ module Google
618
636
  property :dialog_action, as: 'dialogAction', class: Google::Apis::ChatV1::DialogAction, decorator: Google::Apis::ChatV1::DialogAction::Representation
619
637
 
620
638
  property :type, as: 'type'
639
+ property :updated_widget, as: 'updatedWidget', class: Google::Apis::ChatV1::UpdatedWidget, decorator: Google::Apis::ChatV1::UpdatedWidget::Representation
640
+
621
641
  property :url, as: 'url'
622
642
  end
623
643
  end
@@ -1279,6 +1299,13 @@ module Google
1279
1299
  end
1280
1300
  end
1281
1301
 
1302
+ class Group
1303
+ # @private
1304
+ class Representation < Google::Apis::Core::JsonRepresentation
1305
+ property :name, as: 'name'
1306
+ end
1307
+ end
1308
+
1282
1309
  class HostAppDataSourceMarkup
1283
1310
  # @private
1284
1311
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1392,6 +1419,8 @@ module Google
1392
1419
  # @private
1393
1420
  class Representation < Google::Apis::Core::JsonRepresentation
1394
1421
  property :create_time, as: 'createTime'
1422
+ property :group_member, as: 'groupMember', class: Google::Apis::ChatV1::Group, decorator: Google::Apis::ChatV1::Group::Representation
1423
+
1395
1424
  property :member, as: 'member', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
1396
1425
 
1397
1426
  property :name, as: 'name'
@@ -1489,6 +1518,14 @@ module Google
1489
1518
  end
1490
1519
  end
1491
1520
 
1521
+ class SelectionItems
1522
+ # @private
1523
+ class Representation < Google::Apis::Core::JsonRepresentation
1524
+ collection :items, as: 'items', class: Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem, decorator: Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem::Representation
1525
+
1526
+ end
1527
+ end
1528
+
1492
1529
  class SetUpSpaceRequest
1493
1530
  # @private
1494
1531
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1608,6 +1645,15 @@ module Google
1608
1645
  end
1609
1646
  end
1610
1647
 
1648
+ class UpdatedWidget
1649
+ # @private
1650
+ class Representation < Google::Apis::Core::JsonRepresentation
1651
+ property :suggestions, as: 'suggestions', class: Google::Apis::ChatV1::SelectionItems, decorator: Google::Apis::ChatV1::SelectionItems::Representation
1652
+
1653
+ property :widget, as: 'widget'
1654
+ end
1655
+ end
1656
+
1611
1657
  class UploadAttachmentRequest
1612
1658
  # @private
1613
1659
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -646,6 +646,10 @@ module Google
646
646
  # other parameters provided should match the call that provided the page token.
647
647
  # Passing different values to the other parameters might lead to unexpected
648
648
  # results.
649
+ # @param [Boolean] show_groups
650
+ # Optional. When `true`, also returns memberships associated with a Google Group,
651
+ # in addition to other types of memberships. If a filter is set, Google Group
652
+ # memberships that don't match the filter criteria aren't returned.
649
653
  # @param [Boolean] show_invited
650
654
  # Optional. When `true`, also returns memberships associated with invited
651
655
  # members, in addition to other types of memberships. If a filter is set,
@@ -669,7 +673,7 @@ module Google
669
673
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
670
674
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
671
675
  # @raise [Google::Apis::AuthorizationError] Authorization is required
672
- def list_space_members(parent, filter: nil, page_size: nil, page_token: nil, show_invited: nil, fields: nil, quota_user: nil, options: nil, &block)
676
+ def list_space_members(parent, filter: nil, page_size: nil, page_token: nil, show_groups: nil, show_invited: nil, fields: nil, quota_user: nil, options: nil, &block)
673
677
  command = make_simple_command(:get, 'v1/{+parent}/members', options)
674
678
  command.response_representation = Google::Apis::ChatV1::ListMembershipsResponse::Representation
675
679
  command.response_class = Google::Apis::ChatV1::ListMembershipsResponse
@@ -677,6 +681,7 @@ module Google
677
681
  command.query['filter'] = filter unless filter.nil?
678
682
  command.query['pageSize'] = page_size unless page_size.nil?
679
683
  command.query['pageToken'] = page_token unless page_token.nil?
684
+ command.query['showGroups'] = show_groups unless show_groups.nil?
680
685
  command.query['showInvited'] = show_invited unless show_invited.nil?
681
686
  command.query['fields'] = fields unless fields.nil?
682
687
  command.query['quotaUser'] = quota_user unless quota_user.nil?
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.77.0
4
+ version: 0.79.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-11-26 00:00:00.000000000 Z
11
+ date: 2023-12-10 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.77.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.79.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: []