google-apis-cloudsupport_v2beta 0.38.0 → 0.39.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/cloudsupport_v2beta/classes.rb +156 -0
- data/lib/google/apis/cloudsupport_v2beta/gem_version.rb +2 -2
- data/lib/google/apis/cloudsupport_v2beta/representations.rb +70 -0
- data/lib/google/apis/cloudsupport_v2beta/service.rb +44 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b935b3c51087287ba2abfe748885c04b81b7125527075739d5c91d10d19ea5ea
|
4
|
+
data.tar.gz: 6326c2bd2d1577a6c4d342fc9c6a2f2fdf114a0933ee5e1499e11a9d8ef77474
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abbc9853303645d0630f2fb75fb995b08a350f02be4900e896dfe0451725833a888ceb45b7a14017734b85872d948e30cd221c6c4e614ee3690719136ab68516
|
7
|
+
data.tar.gz: e910f8ba8dcc94d85a256530029aafbefc9bbdb12806e17e48b863a9cef8f5811293f5ffa7c9eadd8f9fea5fe8531ea172aa45356c35b0e43ed0a54cf247055a
|
data/CHANGELOG.md
CHANGED
@@ -729,6 +729,63 @@ module Google
|
|
729
729
|
end
|
730
730
|
end
|
731
731
|
|
732
|
+
# An email associated with a support case.
|
733
|
+
class EmailMessage
|
734
|
+
include Google::Apis::Core::Hashable
|
735
|
+
|
736
|
+
# An Actor represents an entity that performed an action. For example, an actor
|
737
|
+
# could be a user who posted a comment on a support case, a user who uploaded an
|
738
|
+
# attachment, or a service account that created a support case.
|
739
|
+
# Corresponds to the JSON property `actor`
|
740
|
+
# @return [Google::Apis::CloudsupportV2beta::Actor]
|
741
|
+
attr_accessor :actor
|
742
|
+
|
743
|
+
# Stores text attached to a support object.
|
744
|
+
# Corresponds to the JSON property `bodyContent`
|
745
|
+
# @return [Google::Apis::CloudsupportV2beta::TextContent]
|
746
|
+
attr_accessor :body_content
|
747
|
+
|
748
|
+
# Output only. Email addresses CCed on the email.
|
749
|
+
# Corresponds to the JSON property `ccEmailAddresses`
|
750
|
+
# @return [Array<String>]
|
751
|
+
attr_accessor :cc_email_addresses
|
752
|
+
|
753
|
+
# Output only. Time when this email message object was created.
|
754
|
+
# Corresponds to the JSON property `createTime`
|
755
|
+
# @return [String]
|
756
|
+
attr_accessor :create_time
|
757
|
+
|
758
|
+
# Identifier. Resource name for the email message.
|
759
|
+
# Corresponds to the JSON property `name`
|
760
|
+
# @return [String]
|
761
|
+
attr_accessor :name
|
762
|
+
|
763
|
+
# Output only. Email addresses the email was sent to.
|
764
|
+
# Corresponds to the JSON property `recipientEmailAddresses`
|
765
|
+
# @return [Array<String>]
|
766
|
+
attr_accessor :recipient_email_addresses
|
767
|
+
|
768
|
+
# Output only. Subject of the email.
|
769
|
+
# Corresponds to the JSON property `subject`
|
770
|
+
# @return [String]
|
771
|
+
attr_accessor :subject
|
772
|
+
|
773
|
+
def initialize(**args)
|
774
|
+
update!(**args)
|
775
|
+
end
|
776
|
+
|
777
|
+
# Update properties of this object
|
778
|
+
def update!(**args)
|
779
|
+
@actor = args[:actor] if args.key?(:actor)
|
780
|
+
@body_content = args[:body_content] if args.key?(:body_content)
|
781
|
+
@cc_email_addresses = args[:cc_email_addresses] if args.key?(:cc_email_addresses)
|
782
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
783
|
+
@name = args[:name] if args.key?(:name)
|
784
|
+
@recipient_email_addresses = args[:recipient_email_addresses] if args.key?(:recipient_email_addresses)
|
785
|
+
@subject = args[:subject] if args.key?(:subject)
|
786
|
+
end
|
787
|
+
end
|
788
|
+
|
732
789
|
# The request message for the EscalateCase endpoint.
|
733
790
|
class EscalateCaseRequest
|
734
791
|
include Google::Apis::Core::Hashable
|
@@ -774,6 +831,59 @@ module Google
|
|
774
831
|
end
|
775
832
|
end
|
776
833
|
|
834
|
+
# A feed item associated with a support case.
|
835
|
+
class FeedItem
|
836
|
+
include Google::Apis::Core::Hashable
|
837
|
+
|
838
|
+
# An Attachment contains metadata about a file that was uploaded to a case - it
|
839
|
+
# is NOT a file itself. That being said, the name of an Attachment object can be
|
840
|
+
# used to download its accompanying file through the `media.download` endpoint.
|
841
|
+
# While attachments can be uploaded in the console at the same time as a comment,
|
842
|
+
# they're associated on a "case" level, not a "comment" level.
|
843
|
+
# Corresponds to the JSON property `attachment`
|
844
|
+
# @return [Google::Apis::CloudsupportV2beta::Attachment]
|
845
|
+
attr_accessor :attachment
|
846
|
+
|
847
|
+
# A comment associated with a support case. Case comments are the primary way
|
848
|
+
# for Google Support to communicate with a user who has opened a case. When a
|
849
|
+
# user responds to Google Support, the user's responses also appear as comments.
|
850
|
+
# Corresponds to the JSON property `comment`
|
851
|
+
# @return [Google::Apis::CloudsupportV2beta::Comment]
|
852
|
+
attr_accessor :comment
|
853
|
+
|
854
|
+
# An Attachment contains metadata about a file that was uploaded to a case - it
|
855
|
+
# is NOT a file itself. That being said, the name of an Attachment object can be
|
856
|
+
# used to download its accompanying file through the `media.download` endpoint.
|
857
|
+
# While attachments can be uploaded in the console at the same time as a comment,
|
858
|
+
# they're associated on a "case" level, not a "comment" level.
|
859
|
+
# Corresponds to the JSON property `deletedAttachment`
|
860
|
+
# @return [Google::Apis::CloudsupportV2beta::Attachment]
|
861
|
+
attr_accessor :deleted_attachment
|
862
|
+
|
863
|
+
# An email associated with a support case.
|
864
|
+
# Corresponds to the JSON property `emailMessage`
|
865
|
+
# @return [Google::Apis::CloudsupportV2beta::EmailMessage]
|
866
|
+
attr_accessor :email_message
|
867
|
+
|
868
|
+
# Output only. Time corresponding to the event of this item.
|
869
|
+
# Corresponds to the JSON property `eventTime`
|
870
|
+
# @return [String]
|
871
|
+
attr_accessor :event_time
|
872
|
+
|
873
|
+
def initialize(**args)
|
874
|
+
update!(**args)
|
875
|
+
end
|
876
|
+
|
877
|
+
# Update properties of this object
|
878
|
+
def update!(**args)
|
879
|
+
@attachment = args[:attachment] if args.key?(:attachment)
|
880
|
+
@comment = args[:comment] if args.key?(:comment)
|
881
|
+
@deleted_attachment = args[:deleted_attachment] if args.key?(:deleted_attachment)
|
882
|
+
@email_message = args[:email_message] if args.key?(:email_message)
|
883
|
+
@event_time = args[:event_time] if args.key?(:event_time)
|
884
|
+
end
|
885
|
+
end
|
886
|
+
|
777
887
|
# The response message for the ListAttachments endpoint.
|
778
888
|
class ListAttachmentsResponse
|
779
889
|
include Google::Apis::Core::Hashable
|
@@ -1164,6 +1274,52 @@ module Google
|
|
1164
1274
|
end
|
1165
1275
|
end
|
1166
1276
|
|
1277
|
+
# The response message for the ShowFeed endpoint.
|
1278
|
+
class ShowFeedResponse
|
1279
|
+
include Google::Apis::Core::Hashable
|
1280
|
+
|
1281
|
+
# The list of feed items associated with the given Case.
|
1282
|
+
# Corresponds to the JSON property `feedItems`
|
1283
|
+
# @return [Array<Google::Apis::CloudsupportV2beta::FeedItem>]
|
1284
|
+
attr_accessor :feed_items
|
1285
|
+
|
1286
|
+
# A token to retrieve the next page of results. This should be set in the `
|
1287
|
+
# page_token` field of subsequent `ShowFeedRequests`. If unspecified, there are
|
1288
|
+
# no more results to retrieve.
|
1289
|
+
# Corresponds to the JSON property `nextPageToken`
|
1290
|
+
# @return [String]
|
1291
|
+
attr_accessor :next_page_token
|
1292
|
+
|
1293
|
+
def initialize(**args)
|
1294
|
+
update!(**args)
|
1295
|
+
end
|
1296
|
+
|
1297
|
+
# Update properties of this object
|
1298
|
+
def update!(**args)
|
1299
|
+
@feed_items = args[:feed_items] if args.key?(:feed_items)
|
1300
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1301
|
+
end
|
1302
|
+
end
|
1303
|
+
|
1304
|
+
# Stores text attached to a support object.
|
1305
|
+
class TextContent
|
1306
|
+
include Google::Apis::Core::Hashable
|
1307
|
+
|
1308
|
+
# Content in this field should be rendered and interpreted as-is.
|
1309
|
+
# Corresponds to the JSON property `plainText`
|
1310
|
+
# @return [String]
|
1311
|
+
attr_accessor :plain_text
|
1312
|
+
|
1313
|
+
def initialize(**args)
|
1314
|
+
update!(**args)
|
1315
|
+
end
|
1316
|
+
|
1317
|
+
# Update properties of this object
|
1318
|
+
def update!(**args)
|
1319
|
+
@plain_text = args[:plain_text] if args.key?(:plain_text)
|
1320
|
+
end
|
1321
|
+
end
|
1322
|
+
|
1167
1323
|
# Metadata about the operation. Used to lookup the current status.
|
1168
1324
|
class WorkflowOperationMetadata
|
1169
1325
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudsupportV2beta
|
18
18
|
# Version of the google-apis-cloudsupport_v2beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.39.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.14.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240429"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -118,6 +118,12 @@ module Google
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
+
class EmailMessage
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
121
127
|
class EscalateCaseRequest
|
122
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
129
|
|
@@ -130,6 +136,12 @@ module Google
|
|
130
136
|
include Google::Apis::Core::JsonObjectSupport
|
131
137
|
end
|
132
138
|
|
139
|
+
class FeedItem
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
133
145
|
class ListAttachmentsResponse
|
134
146
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
147
|
|
@@ -178,6 +190,18 @@ module Google
|
|
178
190
|
include Google::Apis::Core::JsonObjectSupport
|
179
191
|
end
|
180
192
|
|
193
|
+
class ShowFeedResponse
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
199
|
+
class TextContent
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
181
205
|
class WorkflowOperationMetadata
|
182
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
207
|
|
@@ -365,6 +389,21 @@ module Google
|
|
365
389
|
end
|
366
390
|
end
|
367
391
|
|
392
|
+
class EmailMessage
|
393
|
+
# @private
|
394
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
395
|
+
property :actor, as: 'actor', class: Google::Apis::CloudsupportV2beta::Actor, decorator: Google::Apis::CloudsupportV2beta::Actor::Representation
|
396
|
+
|
397
|
+
property :body_content, as: 'bodyContent', class: Google::Apis::CloudsupportV2beta::TextContent, decorator: Google::Apis::CloudsupportV2beta::TextContent::Representation
|
398
|
+
|
399
|
+
collection :cc_email_addresses, as: 'ccEmailAddresses'
|
400
|
+
property :create_time, as: 'createTime'
|
401
|
+
property :name, as: 'name'
|
402
|
+
collection :recipient_email_addresses, as: 'recipientEmailAddresses'
|
403
|
+
property :subject, as: 'subject'
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
368
407
|
class EscalateCaseRequest
|
369
408
|
# @private
|
370
409
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -381,6 +420,21 @@ module Google
|
|
381
420
|
end
|
382
421
|
end
|
383
422
|
|
423
|
+
class FeedItem
|
424
|
+
# @private
|
425
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
426
|
+
property :attachment, as: 'attachment', class: Google::Apis::CloudsupportV2beta::Attachment, decorator: Google::Apis::CloudsupportV2beta::Attachment::Representation
|
427
|
+
|
428
|
+
property :comment, as: 'comment', class: Google::Apis::CloudsupportV2beta::Comment, decorator: Google::Apis::CloudsupportV2beta::Comment::Representation
|
429
|
+
|
430
|
+
property :deleted_attachment, as: 'deletedAttachment', class: Google::Apis::CloudsupportV2beta::Attachment, decorator: Google::Apis::CloudsupportV2beta::Attachment::Representation
|
431
|
+
|
432
|
+
property :email_message, as: 'emailMessage', class: Google::Apis::CloudsupportV2beta::EmailMessage, decorator: Google::Apis::CloudsupportV2beta::EmailMessage::Representation
|
433
|
+
|
434
|
+
property :event_time, as: 'eventTime'
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
384
438
|
class ListAttachmentsResponse
|
385
439
|
# @private
|
386
440
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -488,6 +542,22 @@ module Google
|
|
488
542
|
end
|
489
543
|
end
|
490
544
|
|
545
|
+
class ShowFeedResponse
|
546
|
+
# @private
|
547
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
548
|
+
collection :feed_items, as: 'feedItems', class: Google::Apis::CloudsupportV2beta::FeedItem, decorator: Google::Apis::CloudsupportV2beta::FeedItem::Representation
|
549
|
+
|
550
|
+
property :next_page_token, as: 'nextPageToken'
|
551
|
+
end
|
552
|
+
end
|
553
|
+
|
554
|
+
class TextContent
|
555
|
+
# @private
|
556
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
557
|
+
property :plain_text, as: 'plainText'
|
558
|
+
end
|
559
|
+
end
|
560
|
+
|
491
561
|
class WorkflowOperationMetadata
|
492
562
|
# @private
|
493
563
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -467,6 +467,50 @@ module Google
|
|
467
467
|
execute_or_queue_command(command, &block)
|
468
468
|
end
|
469
469
|
|
470
|
+
# Show items in the feed of this case, including case emails, attachments, and
|
471
|
+
# comments.
|
472
|
+
# @param [String] parent
|
473
|
+
# Required. The resource name of the case for which feed items should be listed.
|
474
|
+
# @param [String] order_by
|
475
|
+
# Optional. Field to order feed items by, followed by `asc` or `desc` postfix.
|
476
|
+
# The only valid field is `creation_time`. This list is case-insensitive,
|
477
|
+
# default sorting order is ascending, and the redundant space characters are
|
478
|
+
# insignificant. Example: `creation_time desc`
|
479
|
+
# @param [Fixnum] page_size
|
480
|
+
# Optional. The maximum number of feed items fetched with each request.
|
481
|
+
# @param [String] page_token
|
482
|
+
# Optional. A token identifying the page of results to return. If unspecified,
|
483
|
+
# it retrieves the first page.
|
484
|
+
# @param [String] fields
|
485
|
+
# Selector specifying which fields to include in a partial response.
|
486
|
+
# @param [String] quota_user
|
487
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
488
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
489
|
+
# @param [Google::Apis::RequestOptions] options
|
490
|
+
# Request-specific options
|
491
|
+
#
|
492
|
+
# @yield [result, err] Result & error if block supplied
|
493
|
+
# @yieldparam result [Google::Apis::CloudsupportV2beta::ShowFeedResponse] parsed result object
|
494
|
+
# @yieldparam err [StandardError] error object if request failed
|
495
|
+
#
|
496
|
+
# @return [Google::Apis::CloudsupportV2beta::ShowFeedResponse]
|
497
|
+
#
|
498
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
499
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
500
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
501
|
+
def show_case_feed(parent, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
502
|
+
command = make_simple_command(:get, 'v2beta/{+parent}:showFeed', options)
|
503
|
+
command.response_representation = Google::Apis::CloudsupportV2beta::ShowFeedResponse::Representation
|
504
|
+
command.response_class = Google::Apis::CloudsupportV2beta::ShowFeedResponse
|
505
|
+
command.params['parent'] = parent unless parent.nil?
|
506
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
507
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
508
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
509
|
+
command.query['fields'] = fields unless fields.nil?
|
510
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
511
|
+
execute_or_queue_command(command, &block)
|
512
|
+
end
|
513
|
+
|
470
514
|
# List all the attachments associated with a support case. EXAMPLES: cURL: ```
|
471
515
|
# shell case="projects/some-project/cases/23598314" curl \ --header "
|
472
516
|
# Authorization: Bearer $(gcloud auth print-access-token)" \ "https://
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudsupport_v2beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.39.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-
|
11
|
+
date: 2024-05-05 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-cloudsupport_v2beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudsupport_v2beta/v0.39.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudsupport_v2beta
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|