google-cloud-support-v2 1.3.0 → 1.4.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 +4 -4
- data/lib/google/cloud/support/v2/actor_pb.rb +1 -1
- data/lib/google/cloud/support/v2/attachment_service_services_pb.rb +32 -2
- data/lib/google/cloud/support/v2/case_attachment_service/client.rb +41 -7
- data/lib/google/cloud/support/v2/case_attachment_service.rb +1 -1
- data/lib/google/cloud/support/v2/case_service/client.rb +336 -57
- data/lib/google/cloud/support/v2/case_service_services_pb.rb +302 -21
- data/lib/google/cloud/support/v2/comment_pb.rb +1 -1
- data/lib/google/cloud/support/v2/comment_service/client.rb +77 -9
- data/lib/google/cloud/support/v2/comment_service_services_pb.rb +72 -3
- data/lib/google/cloud/support/v2/version.rb +1 -1
- data/proto_docs/google/cloud/support/v2/actor.rb +17 -7
- data/proto_docs/google/cloud/support/v2/attachment.rb +8 -1
- data/proto_docs/google/cloud/support/v2/attachment_service.rb +13 -9
- data/proto_docs/google/cloud/support/v2/case.rb +42 -3
- data/proto_docs/google/cloud/support/v2/case_service.rb +45 -47
- data/proto_docs/google/cloud/support/v2/comment.rb +16 -7
- data/proto_docs/google/cloud/support/v2/comment_service.rb +10 -11
- metadata +1 -1
@@ -21,7 +21,33 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module Support
|
23
23
|
module V2
|
24
|
-
# A support case.
|
24
|
+
# A Case is an object that contains the details of a support case. It
|
25
|
+
# contains fields for the time it was created, its priority, its
|
26
|
+
# classification, and more. Cases can also have comments and attachments that
|
27
|
+
# get added over time.
|
28
|
+
#
|
29
|
+
# A case is parented by a Google Cloud organization or project.
|
30
|
+
#
|
31
|
+
# Organizations are identified by a number, so the name of a case parented by
|
32
|
+
# an organization would look like this:
|
33
|
+
#
|
34
|
+
# ```
|
35
|
+
# organizations/123/cases/456
|
36
|
+
# ```
|
37
|
+
#
|
38
|
+
# Projects have two unique identifiers, an ID and a number, and they look like
|
39
|
+
# this:
|
40
|
+
#
|
41
|
+
# ```
|
42
|
+
# projects/abc/cases/456
|
43
|
+
# ```
|
44
|
+
#
|
45
|
+
# ```
|
46
|
+
# projects/123/cases/456
|
47
|
+
# ```
|
48
|
+
#
|
49
|
+
# You can use either of them when calling the API. To learn more
|
50
|
+
# about project identifiers, see [AIP-2510](https://google.aip.dev/cloud/2510).
|
25
51
|
# @!attribute [rw] name
|
26
52
|
# @return [::String]
|
27
53
|
# The resource name for the case.
|
@@ -132,16 +158,29 @@ module Google
|
|
132
158
|
end
|
133
159
|
end
|
134
160
|
|
135
|
-
# A
|
161
|
+
# A Case Classification represents the topic that a case is about. It's very
|
162
|
+
# important to use accurate classifications, because they're
|
163
|
+
# used to route your cases to specialists who can help you.
|
164
|
+
#
|
165
|
+
# A classification always has an ID that is its unique identifier.
|
166
|
+
# A valid ID is required when creating a case.
|
136
167
|
# @!attribute [rw] id
|
137
168
|
# @return [::String]
|
138
169
|
# The unique ID for a classification. Must be specified for case creation.
|
139
170
|
#
|
140
171
|
# To retrieve valid classification IDs for case creation, use
|
141
172
|
# `caseClassifications.search`.
|
173
|
+
#
|
174
|
+
# Classification IDs returned by `caseClassifications.search` are guaranteed
|
175
|
+
# to be valid for at least 6 months. If a given classification is
|
176
|
+
# deactiveated, it will immediately stop being returned. After 6 months,
|
177
|
+
# `case.create` requests using the classification ID will fail.
|
142
178
|
# @!attribute [rw] display_name
|
143
179
|
# @return [::String]
|
144
|
-
#
|
180
|
+
# A display name for the classification.
|
181
|
+
#
|
182
|
+
# The display name is not static and can change. To uniquely and consistently
|
183
|
+
# identify classifications, use the `CaseClassification.id` field.
|
145
184
|
class CaseClassification
|
146
185
|
include ::Google::Protobuf::MessageExts
|
147
186
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
# The request message for the GetCase endpoint.
|
25
25
|
# @!attribute [rw] name
|
26
26
|
# @return [::String]
|
27
|
-
# Required. The
|
27
|
+
# Required. The full name of a case to be retrieved.
|
28
28
|
class GetCaseRequest
|
29
29
|
include ::Google::Protobuf::MessageExts
|
30
30
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -33,8 +33,7 @@ module Google
|
|
33
33
|
# The request message for the CreateCase endpoint.
|
34
34
|
# @!attribute [rw] parent
|
35
35
|
# @return [::String]
|
36
|
-
# Required. The name of the
|
37
|
-
# be created.
|
36
|
+
# Required. The name of the parent under which the case should be created.
|
38
37
|
# @!attribute [rw] case
|
39
38
|
# @return [::Google::Cloud::Support::V2::Case]
|
40
39
|
# Required. The case to be created.
|
@@ -46,22 +45,24 @@ module Google
|
|
46
45
|
# The request message for the ListCases endpoint.
|
47
46
|
# @!attribute [rw] parent
|
48
47
|
# @return [::String]
|
49
|
-
# Required. The
|
48
|
+
# Required. The name of a parent to list cases under.
|
50
49
|
# @!attribute [rw] filter
|
51
50
|
# @return [::String]
|
52
|
-
# An expression
|
53
|
-
# the cases that match the filter. Else, the query doesn't filter the cases.
|
51
|
+
# An expression used to filter cases.
|
54
52
|
#
|
55
|
-
#
|
56
|
-
#
|
53
|
+
# If it's an empty string, then no filtering happens. Otherwise, the endpoint
|
54
|
+
# returns the cases that match the filter.
|
57
55
|
#
|
58
|
-
#
|
59
|
-
#
|
56
|
+
# Expressions use the following fields separated by `AND` and specified with
|
57
|
+
# `=`:
|
58
|
+
#
|
59
|
+
# - `state`: Can be `OPEN` or `CLOSED`.
|
60
|
+
# - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You
|
60
61
|
# can specify multiple values for priority using the `OR` operator. For
|
61
62
|
# example, `priority=P1 OR priority=P2`.
|
62
63
|
# - `creator.email`: The email address of the case creator.
|
63
64
|
#
|
64
|
-
#
|
65
|
+
# EXAMPLES:
|
65
66
|
#
|
66
67
|
# - `state=CLOSED`
|
67
68
|
# - `state=OPEN AND creator.email="tester@example.com"`
|
@@ -81,13 +82,13 @@ module Google
|
|
81
82
|
# The response message for the ListCases endpoint.
|
82
83
|
# @!attribute [rw] cases
|
83
84
|
# @return [::Array<::Google::Cloud::Support::V2::Case>]
|
84
|
-
# The list of cases associated with the
|
85
|
+
# The list of cases associated with the parent after any
|
85
86
|
# filters have been applied.
|
86
87
|
# @!attribute [rw] next_page_token
|
87
88
|
# @return [::String]
|
88
|
-
# A token to retrieve the next page of results.
|
89
|
-
#
|
90
|
-
#
|
89
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
90
|
+
# field of subsequent `cases.list` requests. If unspecified, there are no
|
91
|
+
# more results to retrieve.
|
91
92
|
class ListCasesResponse
|
92
93
|
include ::Google::Protobuf::MessageExts
|
93
94
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -96,24 +97,22 @@ module Google
|
|
96
97
|
# The request message for the SearchCases endpoint.
|
97
98
|
# @!attribute [rw] parent
|
98
99
|
# @return [::String]
|
99
|
-
# The
|
100
|
+
# The name of the parent resource to search for cases under.
|
100
101
|
# @!attribute [rw] query
|
101
102
|
# @return [::String]
|
102
|
-
# An expression
|
103
|
+
# An expression used to filter cases.
|
103
104
|
#
|
104
|
-
#
|
105
|
-
#
|
105
|
+
# Expressions use the following fields separated by `AND` and specified with
|
106
|
+
# `=`:
|
106
107
|
#
|
107
108
|
# - `organization`: An organization name in the form
|
108
109
|
# `organizations/<organization_id>`.
|
109
110
|
# - `project`: A project name in the form `projects/<project_id>`.
|
110
|
-
# - `state`:
|
111
|
-
# - `priority`:
|
111
|
+
# - `state`: Can be `OPEN` or `CLOSED`.
|
112
|
+
# - `priority`: Can be `P0`, `P1`, `P2`, `P3`, or `P4`. You
|
112
113
|
# can specify multiple values for priority using the `OR` operator. For
|
113
114
|
# example, `priority=P1 OR priority=P2`.
|
114
115
|
# - `creator.email`: The email address of the case creator.
|
115
|
-
# - `billingAccount`: A billing account in the form
|
116
|
-
# `billingAccounts/<billing_account_id>`
|
117
116
|
#
|
118
117
|
# You must specify either `organization` or `project`.
|
119
118
|
#
|
@@ -130,7 +129,6 @@ module Google
|
|
130
129
|
# - `organization="organizations/123456789"`
|
131
130
|
# - `project="projects/my-project-id"`
|
132
131
|
# - `project="projects/123456789"`
|
133
|
-
# - `billing_account="billingAccounts/123456-A0B0C0-CUZ789"`
|
134
132
|
# - `organization="organizations/123456789" AND state=CLOSED`
|
135
133
|
# - `project="projects/my-project-id" AND creator.email="tester@example.com"`
|
136
134
|
# - `project="projects/my-project-id" AND (priority=P0 OR priority=P1)`
|
@@ -150,13 +148,13 @@ module Google
|
|
150
148
|
# The response message for the SearchCases endpoint.
|
151
149
|
# @!attribute [rw] cases
|
152
150
|
# @return [::Array<::Google::Cloud::Support::V2::Case>]
|
153
|
-
# The list of cases associated with the
|
151
|
+
# The list of cases associated with the parent after any
|
154
152
|
# filters have been applied.
|
155
153
|
# @!attribute [rw] next_page_token
|
156
154
|
# @return [::String]
|
157
|
-
# A token to retrieve the next page of results.
|
158
|
-
# `page_token` field of subsequent `
|
159
|
-
#
|
155
|
+
# A token to retrieve the next page of results. Set this in the
|
156
|
+
# `page_token` field of subsequent `cases.search` requests. If unspecified,
|
157
|
+
# there are no more results to retrieve.
|
160
158
|
class SearchCasesResponse
|
161
159
|
include ::Google::Protobuf::MessageExts
|
162
160
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -165,10 +163,10 @@ module Google
|
|
165
163
|
# The request message for the EscalateCase endpoint.
|
166
164
|
# @!attribute [rw] name
|
167
165
|
# @return [::String]
|
168
|
-
# Required. The
|
166
|
+
# Required. The name of the case to be escalated.
|
169
167
|
# @!attribute [rw] escalation
|
170
168
|
# @return [::Google::Cloud::Support::V2::Escalation]
|
171
|
-
# The escalation
|
169
|
+
# The escalation information to be sent with the escalation request.
|
172
170
|
class EscalateCaseRequest
|
173
171
|
include ::Google::Protobuf::MessageExts
|
174
172
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -177,17 +175,16 @@ module Google
|
|
177
175
|
# The request message for the UpdateCase endpoint
|
178
176
|
# @!attribute [rw] case
|
179
177
|
# @return [::Google::Cloud::Support::V2::Case]
|
180
|
-
# Required. The case
|
178
|
+
# Required. The case to update.
|
181
179
|
# @!attribute [rw] update_mask
|
182
180
|
# @return [::Google::Protobuf::FieldMask]
|
183
|
-
# A list of attributes of the case
|
184
|
-
#
|
185
|
-
#
|
186
|
-
# fields are updated.
|
181
|
+
# A list of attributes of the case that should be updated. Supported values
|
182
|
+
# are `priority`, `display_name`, and `subscriber_email_addresses`. If no
|
183
|
+
# fields are specified, all supported fields are updated.
|
187
184
|
#
|
188
|
-
#
|
189
|
-
# clear some fields. For example, if you leave the field mask
|
190
|
-
# not provide a value for `subscriber_email_addresses`, then
|
185
|
+
# Be careful - if you do not provide a field mask, then you might
|
186
|
+
# accidentally clear some fields. For example, if you leave the field mask
|
187
|
+
# empty and do not provide a value for `subscriber_email_addresses`, then
|
191
188
|
# `subscriber_email_addresses` is updated to empty.
|
192
189
|
class UpdateCaseRequest
|
193
190
|
include ::Google::Protobuf::MessageExts
|
@@ -197,21 +194,22 @@ module Google
|
|
197
194
|
# The request message for the CloseCase endpoint.
|
198
195
|
# @!attribute [rw] name
|
199
196
|
# @return [::String]
|
200
|
-
# Required. The
|
197
|
+
# Required. The name of the case to close.
|
201
198
|
class CloseCaseRequest
|
202
199
|
include ::Google::Protobuf::MessageExts
|
203
200
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
204
201
|
end
|
205
202
|
|
206
|
-
# The request message for SearchCaseClassifications endpoint.
|
203
|
+
# The request message for the SearchCaseClassifications endpoint.
|
207
204
|
# @!attribute [rw] query
|
208
205
|
# @return [::String]
|
209
|
-
# An expression
|
210
|
-
#
|
211
|
-
# no
|
206
|
+
# An expression used to filter case classifications.
|
207
|
+
#
|
208
|
+
# If it's an empty string, then no filtering happens. Otherwise, case
|
209
|
+
# classifications will be returned that match the filter.
|
212
210
|
# @!attribute [rw] page_size
|
213
211
|
# @return [::Integer]
|
214
|
-
# The maximum number of
|
212
|
+
# The maximum number of classifications fetched with each request.
|
215
213
|
# @!attribute [rw] page_token
|
216
214
|
# @return [::String]
|
217
215
|
# A token identifying the page of results to return. If unspecified, the
|
@@ -227,9 +225,9 @@ module Google
|
|
227
225
|
# The classifications retrieved.
|
228
226
|
# @!attribute [rw] next_page_token
|
229
227
|
# @return [::String]
|
230
|
-
# A token to retrieve the next page of results.
|
231
|
-
#
|
232
|
-
#
|
228
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
229
|
+
# field of subsequent `caseClassifications.list` requests. If unspecified,
|
230
|
+
# there are no more results to retrieve.
|
233
231
|
class SearchCaseClassificationsResponse
|
234
232
|
include ::Google::Protobuf::MessageExts
|
235
233
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -22,23 +22,32 @@ module Google
|
|
22
22
|
module Support
|
23
23
|
module V2
|
24
24
|
# A comment associated with a support case.
|
25
|
+
#
|
26
|
+
# Case comments are the primary way for Google Support to communicate with a
|
27
|
+
# user who has opened a case. When a user responds to Google Support, the
|
28
|
+
# user's responses also appear as comments.
|
25
29
|
# @!attribute [r] name
|
26
30
|
# @return [::String]
|
27
|
-
# Output only. The resource name
|
31
|
+
# Output only. Identifier. The resource name of the comment.
|
28
32
|
# @!attribute [r] create_time
|
29
33
|
# @return [::Google::Protobuf::Timestamp]
|
30
|
-
# Output only. The time when
|
34
|
+
# Output only. The time when the comment was created.
|
31
35
|
# @!attribute [r] creator
|
32
36
|
# @return [::Google::Cloud::Support::V2::Actor]
|
33
|
-
# Output only. The user or Google Support agent created
|
37
|
+
# Output only. The user or Google Support agent who created the comment.
|
34
38
|
# @!attribute [rw] body
|
35
39
|
# @return [::String]
|
36
|
-
# The full comment body.
|
37
|
-
#
|
40
|
+
# The full comment body.
|
41
|
+
#
|
42
|
+
# Maximum of 12800 characters.
|
38
43
|
# @!attribute [r] plain_text_body
|
44
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
39
45
|
# @return [::String]
|
40
|
-
# Output only. DEPRECATED.
|
41
|
-
#
|
46
|
+
# Output only. DEPRECATED. DO NOT USE.
|
47
|
+
#
|
48
|
+
# A duplicate of the `body` field.
|
49
|
+
#
|
50
|
+
# This field is only present for legacy reasons.
|
42
51
|
class Comment
|
43
52
|
include ::Google::Protobuf::MessageExts
|
44
53
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -24,15 +24,14 @@ module Google
|
|
24
24
|
# The request message for the ListComments endpoint.
|
25
25
|
# @!attribute [rw] parent
|
26
26
|
# @return [::String]
|
27
|
-
# Required. The
|
28
|
-
# listed.
|
27
|
+
# Required. The name of the case for which to list comments.
|
29
28
|
# @!attribute [rw] page_size
|
30
29
|
# @return [::Integer]
|
31
|
-
# The maximum number of comments
|
30
|
+
# The maximum number of comments to fetch. Defaults to 10.
|
32
31
|
# @!attribute [rw] page_token
|
33
32
|
# @return [::String]
|
34
33
|
# A token identifying the page of results to return. If unspecified, the
|
35
|
-
# first page is
|
34
|
+
# first page is returned.
|
36
35
|
class ListCommentsRequest
|
37
36
|
include ::Google::Protobuf::MessageExts
|
38
37
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -41,24 +40,24 @@ module Google
|
|
41
40
|
# The response message for the ListComments endpoint.
|
42
41
|
# @!attribute [rw] comments
|
43
42
|
# @return [::Array<::Google::Cloud::Support::V2::Comment>]
|
44
|
-
#
|
43
|
+
# List of the comments associated with the case.
|
45
44
|
# @!attribute [rw] next_page_token
|
46
45
|
# @return [::String]
|
47
|
-
# A token to retrieve the next page of results.
|
48
|
-
#
|
49
|
-
#
|
46
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
47
|
+
# field of subsequent `cases.comments.list` requests. If unspecified, there
|
48
|
+
# are no more results to retrieve.
|
50
49
|
class ListCommentsResponse
|
51
50
|
include ::Google::Protobuf::MessageExts
|
52
51
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
52
|
end
|
54
53
|
|
55
|
-
# The request message for CreateComment endpoint.
|
54
|
+
# The request message for the CreateComment endpoint.
|
56
55
|
# @!attribute [rw] parent
|
57
56
|
# @return [::String]
|
58
|
-
# Required. The
|
57
|
+
# Required. The name of the case to which the comment should be added.
|
59
58
|
# @!attribute [rw] comment
|
60
59
|
# @return [::Google::Cloud::Support::V2::Comment]
|
61
|
-
# Required. The
|
60
|
+
# Required. The comment to be added.
|
62
61
|
class CreateCommentRequest
|
63
62
|
include ::Google::Protobuf::MessageExts
|
64
63
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|