google-apis-chat_v1 0.16.0 → 0.20.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: c48e20965abed752a8c08f70ceabc0da2df40fad4143157974829e4a52c616e4
4
- data.tar.gz: f6e276839fef7f41b084f73f5525f080eff969d8f2130cd427183613d8b76316
3
+ metadata.gz: 8b74b66a9180d3058132bac0e17068717c92e22fee73284a3595afaac6eca287
4
+ data.tar.gz: 5da787e12f948d2643e3e660d66c51d17c0f0b6074e508e504167799c560342a
5
5
  SHA512:
6
- metadata.gz: 6088c6f65df805562671ff4cd8780a654bb564013467c360246b51d24787927ac793d376e8dcb91a314c52ff65340281694dfbdfe36ea42995b047adca2cf9c0
7
- data.tar.gz: df32a463ace21a2707a462300d9debc724e1a819ba89b316f4918ca1d784e197e48779fc794b7f82fb44e994d2350f3fe3d110432be001f38a0ef9382a9ef27e
6
+ metadata.gz: f0c4f4e32dae46d2c76ccc58883ac549154bbb3107839124cada1e482d326d174b9f3f7e0eaae14f0c6e967faf09f57c7393a3c98df255df7e32f377ff3cd8f0
7
+ data.tar.gz: 6447254a767e14ad2d60aa6f98b57d003d5bc96bdec80b53c5665797e0feed45b9957c6788383e489a4b9405ca2988f45052ae3d61bc8fbecfe645d33970f990
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-chat_v1
2
2
 
3
+ ### v0.20.0 (2021-12-10)
4
+
5
+ * Regenerated from discovery document revision 20211204
6
+
7
+ ### v0.19.0 (2021-12-01)
8
+
9
+ * Regenerated from discovery document revision 20211125
10
+
11
+ ### v0.18.0 (2021-11-13)
12
+
13
+ * Regenerated from discovery document revision 20211106
14
+
15
+ ### v0.17.0 (2021-10-29)
16
+
17
+ * Regenerated from discovery document revision 20211022
18
+
3
19
  ### v0.16.0 (2021-10-22)
4
20
 
5
21
  * Regenerated from discovery document revision 20211015
@@ -604,7 +604,7 @@ module Google
604
604
  # @return [String]
605
605
  attr_accessor :dialog_event_type
606
606
 
607
- # The timestamp indicating when the event was dispatched.
607
+ # The timestamp indicating when the event occurred.
608
608
  # Corresponds to the JSON property `eventTime`
609
609
  # @return [String]
610
610
  attr_accessor :event_time
@@ -756,6 +756,46 @@ module Google
756
756
  end
757
757
  end
758
758
 
759
+ # JSON payload of error messages. If the Cloud Logging API is enabled, these
760
+ # error messages are logged to [Google Cloud Logging](https://cloud.google.com/
761
+ # logging/docs).
762
+ class DynamiteIntegrationLogEntry
763
+ include Google::Apis::Core::Hashable
764
+
765
+ # The deployment that caused the error. For Chat bots built in Apps Script, this
766
+ # is the deployment ID defined by Apps Script.
767
+ # Corresponds to the JSON property `deployment`
768
+ # @return [String]
769
+ attr_accessor :deployment
770
+
771
+ # The unencrypted `callback_method` name that was running when the error was
772
+ # encountered.
773
+ # Corresponds to the JSON property `deploymentFunction`
774
+ # @return [String]
775
+ attr_accessor :deployment_function
776
+
777
+ # The `Status` type defines a logical error model that is suitable for different
778
+ # programming environments, including REST APIs and RPC APIs. It is used by [
779
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
780
+ # data: error code, error message, and error details. You can find out more
781
+ # about this error model and how to work with it in the [API Design Guide](https:
782
+ # //cloud.google.com/apis/design/errors).
783
+ # Corresponds to the JSON property `error`
784
+ # @return [Google::Apis::ChatV1::Status]
785
+ attr_accessor :error
786
+
787
+ def initialize(**args)
788
+ update!(**args)
789
+ end
790
+
791
+ # Update properties of this object
792
+ def update!(**args)
793
+ @deployment = args[:deployment] if args.key?(:deployment)
794
+ @deployment_function = args[:deployment_function] if args.key?(:deployment_function)
795
+ @error = args[:error] if args.key?(:error)
796
+ end
797
+ end
798
+
759
799
  # A generic empty message that you can re-use to avoid defining duplicated empty
760
800
  # messages in your APIs. A typical example is to use it as the request or the
761
801
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -2310,6 +2350,26 @@ module Google
2310
2350
  end
2311
2351
  end
2312
2352
 
2353
+ # A matched url in a Chat message. Chat bots can unfurl matched URLs. For more
2354
+ # information, refer to [Unfurl links](/chat/how-tos/link-unfurling).
2355
+ class MatchedUrl
2356
+ include Google::Apis::Core::Hashable
2357
+
2358
+ # The url that was matched.
2359
+ # Corresponds to the JSON property `url`
2360
+ # @return [String]
2361
+ attr_accessor :url
2362
+
2363
+ def initialize(**args)
2364
+ update!(**args)
2365
+ end
2366
+
2367
+ # Update properties of this object
2368
+ def update!(**args)
2369
+ @url = args[:url] if args.key?(:url)
2370
+ end
2371
+ end
2372
+
2313
2373
  # Media resource.
2314
2374
  class Media
2315
2375
  include Google::Apis::Core::Hashable
@@ -2333,8 +2393,8 @@ module Google
2333
2393
  class Membership
2334
2394
  include Google::Apis::Core::Hashable
2335
2395
 
2336
- # The creation time of the membership a.k.a the time at which the member joined
2337
- # the space, if applicable.
2396
+ # Output only. The creation time of the membership a.k.a. the time at which the
2397
+ # member joined the space, if applicable.
2338
2398
  # Corresponds to the JSON property `createTime`
2339
2399
  # @return [String]
2340
2400
  attr_accessor :create_time
@@ -2349,7 +2409,8 @@ module Google
2349
2409
  # @return [String]
2350
2410
  attr_accessor :name
2351
2411
 
2352
- # State of the membership.
2412
+ # State of the membership. Required for `CreateMembership`. Read-only for other
2413
+ # usage.
2353
2414
  # Corresponds to the JSON property `state`
2354
2415
  # @return [String]
2355
2416
  attr_accessor :state
@@ -2416,8 +2477,14 @@ module Google
2416
2477
  # @return [String]
2417
2478
  attr_accessor :last_update_time
2418
2479
 
2419
- # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAMpdlehY/
2420
- # messages/UMxbHmzDlr4.UMxbHmzDlr4`
2480
+ # A matched url in a Chat message. Chat bots can unfurl matched URLs. For more
2481
+ # information, refer to [Unfurl links](/chat/how-tos/link-unfurling).
2482
+ # Corresponds to the JSON property `matchedUrl`
2483
+ # @return [Google::Apis::ChatV1::MatchedUrl]
2484
+ attr_accessor :matched_url
2485
+
2486
+ # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
2487
+ # messages/BBBBBBBBBBB.BBBBBBBBBBB`
2421
2488
  # Corresponds to the JSON property `name`
2422
2489
  # @return [String]
2423
2490
  attr_accessor :name
@@ -2469,6 +2536,7 @@ module Google
2469
2536
  @create_time = args[:create_time] if args.key?(:create_time)
2470
2537
  @fallback_text = args[:fallback_text] if args.key?(:fallback_text)
2471
2538
  @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
2539
+ @matched_url = args[:matched_url] if args.key?(:matched_url)
2472
2540
  @name = args[:name] if args.key?(:name)
2473
2541
  @preview_text = args[:preview_text] if args.key?(:preview_text)
2474
2542
  @sender = args[:sender] if args.key?(:sender)
@@ -2619,8 +2687,8 @@ module Google
2619
2687
  class Space
2620
2688
  include Google::Apis::Core::Hashable
2621
2689
 
2622
- # Output only. The display name (only if the space is of type `ROOM`). Please
2623
- # note that this field might not be populated in direct messages between humans.
2690
+ # The space's display name. For direct messages between humans, this field might
2691
+ # be empty.
2624
2692
  # Corresponds to the JSON property `displayName`
2625
2693
  # @return [String]
2626
2694
  attr_accessor :display_name
@@ -2631,20 +2699,19 @@ module Google
2631
2699
  # @return [String]
2632
2700
  attr_accessor :name
2633
2701
 
2634
- # Whether the space is a DM between a bot and a single human.
2702
+ # Output only. Whether the space is a DM between a bot and a single human.
2635
2703
  # Corresponds to the JSON property `singleUserBotDm`
2636
2704
  # @return [Boolean]
2637
2705
  attr_accessor :single_user_bot_dm
2638
2706
  alias_method :single_user_bot_dm?, :single_user_bot_dm
2639
2707
 
2640
- # Whether the messages are threaded in this space.
2708
+ # Output only. Whether the messages are threaded in this space.
2641
2709
  # Corresponds to the JSON property `threaded`
2642
2710
  # @return [Boolean]
2643
2711
  attr_accessor :threaded
2644
2712
  alias_method :threaded?, :threaded
2645
2713
 
2646
- # Output only. The type of a space. This is deprecated. Use `single_user_bot_dm`
2647
- # instead.
2714
+ # Deprecated. Use `single_user_bot_dm` instead. Output only. The type of a space.
2648
2715
  # Corresponds to the JSON property `type`
2649
2716
  # @return [String]
2650
2717
  attr_accessor :type
@@ -2663,6 +2730,45 @@ module Google
2663
2730
  end
2664
2731
  end
2665
2732
 
2733
+ # The `Status` type defines a logical error model that is suitable for different
2734
+ # programming environments, including REST APIs and RPC APIs. It is used by [
2735
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
2736
+ # data: error code, error message, and error details. You can find out more
2737
+ # about this error model and how to work with it in the [API Design Guide](https:
2738
+ # //cloud.google.com/apis/design/errors).
2739
+ class Status
2740
+ include Google::Apis::Core::Hashable
2741
+
2742
+ # The status code, which should be an enum value of google.rpc.Code.
2743
+ # Corresponds to the JSON property `code`
2744
+ # @return [Fixnum]
2745
+ attr_accessor :code
2746
+
2747
+ # A list of messages that carry the error details. There is a common set of
2748
+ # message types for APIs to use.
2749
+ # Corresponds to the JSON property `details`
2750
+ # @return [Array<Hash<String,Object>>]
2751
+ attr_accessor :details
2752
+
2753
+ # A developer-facing error message, which should be in English. Any user-facing
2754
+ # error message should be localized and sent in the google.rpc.Status.details
2755
+ # field, or localized by the client.
2756
+ # Corresponds to the JSON property `message`
2757
+ # @return [String]
2758
+ attr_accessor :message
2759
+
2760
+ def initialize(**args)
2761
+ update!(**args)
2762
+ end
2763
+
2764
+ # Update properties of this object
2765
+ def update!(**args)
2766
+ @code = args[:code] if args.key?(:code)
2767
+ @details = args[:details] if args.key?(:details)
2768
+ @message = args[:message] if args.key?(:message)
2769
+ end
2770
+ end
2771
+
2666
2772
  # Input parameter for regular widgets. For single-valued widgets, it will be a
2667
2773
  # single value list; for multi-valued widgets, such as checkbox, all the values
2668
2774
  # are presented.
@@ -2732,8 +2838,8 @@ module Google
2732
2838
  class Thread
2733
2839
  include Google::Apis::Core::Hashable
2734
2840
 
2735
- # Resource name, in the form "spaces/*/threads/*". Example: spaces/AAAAMpdlehY/
2736
- # threads/UMxbHmzDlr4
2841
+ # Resource name, in the form "spaces/*/threads/*". Example: spaces/AAAAAAAAAAA/
2842
+ # threads/TTTTTTTTTTT
2737
2843
  # Corresponds to the JSON property `name`
2738
2844
  # @return [String]
2739
2845
  attr_accessor :name
@@ -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.16.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211015"
25
+ REVISION = "20211204"
26
26
  end
27
27
  end
28
28
  end
@@ -130,6 +130,12 @@ module Google
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
+ class DynamiteIntegrationLogEntry
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
133
139
  class Empty
134
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
141
 
@@ -352,6 +358,12 @@ module Google
352
358
  include Google::Apis::Core::JsonObjectSupport
353
359
  end
354
360
 
361
+ class MatchedUrl
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
355
367
  class Media
356
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
357
369
 
@@ -406,6 +418,12 @@ module Google
406
418
  include Google::Apis::Core::JsonObjectSupport
407
419
  end
408
420
 
421
+ class Status
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
409
427
  class StringInputs
410
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
411
429
 
@@ -653,6 +671,16 @@ module Google
653
671
  end
654
672
  end
655
673
 
674
+ class DynamiteIntegrationLogEntry
675
+ # @private
676
+ class Representation < Google::Apis::Core::JsonRepresentation
677
+ property :deployment, as: 'deployment'
678
+ property :deployment_function, as: 'deploymentFunction'
679
+ property :error, as: 'error', class: Google::Apis::ChatV1::Status, decorator: Google::Apis::ChatV1::Status::Representation
680
+
681
+ end
682
+ end
683
+
656
684
  class Empty
657
685
  # @private
658
686
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1077,6 +1105,13 @@ module Google
1077
1105
  end
1078
1106
  end
1079
1107
 
1108
+ class MatchedUrl
1109
+ # @private
1110
+ class Representation < Google::Apis::Core::JsonRepresentation
1111
+ property :url, as: 'url'
1112
+ end
1113
+ end
1114
+
1080
1115
  class Media
1081
1116
  # @private
1082
1117
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1110,6 +1145,8 @@ module Google
1110
1145
  property :create_time, as: 'createTime'
1111
1146
  property :fallback_text, as: 'fallbackText'
1112
1147
  property :last_update_time, as: 'lastUpdateTime'
1148
+ property :matched_url, as: 'matchedUrl', class: Google::Apis::ChatV1::MatchedUrl, decorator: Google::Apis::ChatV1::MatchedUrl::Representation
1149
+
1113
1150
  property :name, as: 'name'
1114
1151
  property :preview_text, as: 'previewText'
1115
1152
  property :sender, as: 'sender', class: Google::Apis::ChatV1::User, decorator: Google::Apis::ChatV1::User::Representation
@@ -1180,6 +1217,15 @@ module Google
1180
1217
  end
1181
1218
  end
1182
1219
 
1220
+ class Status
1221
+ # @private
1222
+ class Representation < Google::Apis::Core::JsonRepresentation
1223
+ property :code, as: 'code'
1224
+ collection :details, as: 'details'
1225
+ property :message, as: 'message'
1226
+ end
1227
+ end
1228
+
1183
1229
  class StringInputs
1184
1230
  # @private
1185
1231
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -55,7 +55,7 @@ module Google
55
55
  # response.
56
56
  # @param [String] parent
57
57
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
58
- # AAAAMpdlehY
58
+ # AAAAAAAAAAA
59
59
  # @param [Google::Apis::ChatV1::Message] message_object
60
60
  # @param [String] request_id
61
61
  # Optional. A unique request ID for this message. If a message has already been
@@ -104,7 +104,7 @@ module Google
104
104
  # response.
105
105
  # @param [String] parent
106
106
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
107
- # AAAAMpdlehY
107
+ # AAAAAAAAAAA
108
108
  # @param [Google::Apis::ChatV1::Message] message_object
109
109
  # @param [String] request_id
110
110
  # Optional. A unique request ID for this message. If a message has already been
@@ -153,7 +153,7 @@ module Google
153
153
  # response.
154
154
  # @param [String] parent
155
155
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
156
- # AAAAMpdlehY
156
+ # AAAAAAAAAAA
157
157
  # @param [Google::Apis::ChatV1::Message] message_object
158
158
  # @param [String] request_id
159
159
  # Optional. A unique request ID for this message. If a message has already been
@@ -240,7 +240,7 @@ module Google
240
240
  # response.
241
241
  # @param [String] parent
242
242
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
243
- # AAAAMpdlehY
243
+ # AAAAAAAAAAA
244
244
  # @param [Google::Apis::ChatV1::Message] message_object
245
245
  # @param [String] request_id
246
246
  # Optional. A unique request ID for this message. If a message has already been
@@ -289,7 +289,7 @@ module Google
289
289
  # response.
290
290
  # @param [String] parent
291
291
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
292
- # AAAAMpdlehY
292
+ # AAAAAAAAAAA
293
293
  # @param [Google::Apis::ChatV1::Message] message_object
294
294
  # @param [String] request_id
295
295
  # Optional. A unique request ID for this message. If a message has already been
@@ -338,7 +338,7 @@ module Google
338
338
  # response.
339
339
  # @param [String] parent
340
340
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
341
- # AAAAMpdlehY
341
+ # AAAAAAAAAAA
342
342
  # @param [Google::Apis::ChatV1::Message] message_object
343
343
  # @param [String] request_id
344
344
  # Optional. A unique request ID for this message. If a message has already been
@@ -452,7 +452,7 @@ module Google
452
452
  # response.
453
453
  # @param [String] parent
454
454
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
455
- # AAAAMpdlehY
455
+ # AAAAAAAAAAA
456
456
  # @param [Google::Apis::ChatV1::Message] message_object
457
457
  # @param [String] request_id
458
458
  # Optional. A unique request ID for this message. If a message has already been
@@ -500,7 +500,7 @@ module Google
500
500
  # Returns a membership.
501
501
  # @param [String] name
502
502
  # Required. Resource name of the membership to be retrieved, in the form "spaces/
503
- # */members/*". Example: spaces/AAAAMpdlehY/members/105115627578887013105
503
+ # */members/*". Example: spaces/AAAAAAAAAAAA/members/111111111111111111111
504
504
  # @param [String] fields
505
505
  # Selector specifying which fields to include in a partial response.
506
506
  # @param [String] quota_user
@@ -531,7 +531,7 @@ module Google
531
531
  # Lists human memberships in a space.
532
532
  # @param [String] parent
533
533
  # Required. The resource name of the space for which membership list is to be
534
- # fetched, in the form "spaces/*". Example: spaces/AAAAMpdlehY
534
+ # fetched, in the form "spaces/*". Example: spaces/AAAAAAAAAAAA
535
535
  # @param [Fixnum] page_size
536
536
  # Requested page size. The value is capped at 1000. Server may return fewer
537
537
  # results than requested. If unspecified, server will default to 100.
@@ -569,7 +569,7 @@ module Google
569
569
  # Creates a message.
570
570
  # @param [String] parent
571
571
  # Required. Space resource name, in the form "spaces/*". Example: spaces/
572
- # AAAAMpdlehY
572
+ # AAAAAAAAAAA
573
573
  # @param [Google::Apis::ChatV1::Message] message_object
574
574
  # @param [String] request_id
575
575
  # Optional. A unique request ID for this message. If a message has already been
@@ -617,7 +617,7 @@ module Google
617
617
  # Deletes a message.
618
618
  # @param [String] name
619
619
  # Required. Resource name of the message to be deleted, in the form "spaces/*/
620
- # messages/*" Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
620
+ # messages/*" Example: spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB
621
621
  # @param [String] fields
622
622
  # Selector specifying which fields to include in a partial response.
623
623
  # @param [String] quota_user
@@ -648,7 +648,7 @@ module Google
648
648
  # Returns a message.
649
649
  # @param [String] name
650
650
  # Required. Resource name of the message to be retrieved, in the form "spaces/*/
651
- # messages/*". Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
651
+ # messages/*". Example: spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB
652
652
  # @param [String] fields
653
653
  # Selector specifying which fields to include in a partial response.
654
654
  # @param [String] quota_user
@@ -678,8 +678,8 @@ module Google
678
678
 
679
679
  # Updates a message.
680
680
  # @param [String] name
681
- # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAMpdlehY/
682
- # messages/UMxbHmzDlr4.UMxbHmzDlr4`
681
+ # Resource name in the form `spaces/*/messages/*`. Example: `spaces/AAAAAAAAAAA/
682
+ # messages/BBBBBBBBBBB.BBBBBBBBBBB`
683
683
  # @param [Google::Apis::ChatV1::Message] message_object
684
684
  # @param [String] update_mask
685
685
  # Required. The field paths to be updated, comma separated if there are multiple.
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.16.0
4
+ version: 0.20.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: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2021-12-13 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.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chat_v1/v0.20.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: []