google-cloud-support-v2beta 0.a → 0.1.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/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/cloud/support/v2beta/actor_pb.rb +44 -0
- data/lib/google/cloud/support/v2beta/attachment_pb.rb +49 -0
- data/lib/google/cloud/support/v2beta/attachment_service_pb.rb +50 -0
- data/lib/google/cloud/support/v2beta/attachment_service_services_pb.rb +75 -0
- data/lib/google/cloud/support/v2beta/case_attachment_service/client.rb +510 -0
- data/lib/google/cloud/support/v2beta/case_attachment_service/credentials.rb +47 -0
- data/lib/google/cloud/support/v2beta/case_attachment_service/paths.rb +72 -0
- data/lib/google/cloud/support/v2beta/case_attachment_service/rest/client.rb +477 -0
- data/lib/google/cloud/support/v2beta/case_attachment_service/rest/service_stub.rb +149 -0
- data/lib/google/cloud/support/v2beta/case_attachment_service/rest.rb +52 -0
- data/lib/google/cloud/support/v2beta/case_attachment_service.rb +55 -0
- data/lib/google/cloud/support/v2beta/case_pb.rb +54 -0
- data/lib/google/cloud/support/v2beta/case_service/client.rb +1526 -0
- data/lib/google/cloud/support/v2beta/case_service/credentials.rb +47 -0
- data/lib/google/cloud/support/v2beta/case_service/paths.rb +100 -0
- data/lib/google/cloud/support/v2beta/case_service/rest/client.rb +1452 -0
- data/lib/google/cloud/support/v2beta/case_service/rest/service_stub.rb +624 -0
- data/lib/google/cloud/support/v2beta/case_service/rest.rb +52 -0
- data/lib/google/cloud/support/v2beta/case_service.rb +55 -0
- data/lib/google/cloud/support/v2beta/case_service_pb.rb +63 -0
- data/lib/google/cloud/support/v2beta/case_service_services_pb.rb +356 -0
- data/lib/google/cloud/support/v2beta/comment_pb.rb +49 -0
- data/lib/google/cloud/support/v2beta/comment_service/client.rb +639 -0
- data/lib/google/cloud/support/v2beta/comment_service/credentials.rb +47 -0
- data/lib/google/cloud/support/v2beta/comment_service/paths.rb +115 -0
- data/lib/google/cloud/support/v2beta/comment_service/rest/client.rb +599 -0
- data/lib/google/cloud/support/v2beta/comment_service/rest/service_stub.rb +219 -0
- data/lib/google/cloud/support/v2beta/comment_service/rest.rb +52 -0
- data/lib/google/cloud/support/v2beta/comment_service.rb +55 -0
- data/lib/google/cloud/support/v2beta/comment_service_pb.rb +51 -0
- data/lib/google/cloud/support/v2beta/comment_service_services_pb.rb +117 -0
- data/lib/google/cloud/support/v2beta/content_pb.rb +42 -0
- data/lib/google/cloud/support/v2beta/email_message_pb.rb +51 -0
- data/lib/google/cloud/support/v2beta/escalation_pb.rb +45 -0
- data/lib/google/cloud/support/v2beta/feed_item_pb.rb +52 -0
- data/lib/google/cloud/support/v2beta/feed_service/client.rb +482 -0
- data/lib/google/cloud/support/v2beta/feed_service/credentials.rb +47 -0
- data/lib/google/cloud/support/v2beta/feed_service/paths.rb +72 -0
- data/lib/google/cloud/support/v2beta/feed_service/rest/client.rb +449 -0
- data/lib/google/cloud/support/v2beta/feed_service/rest/service_stub.rb +149 -0
- data/lib/google/cloud/support/v2beta/feed_service/rest.rb +52 -0
- data/lib/google/cloud/support/v2beta/feed_service.rb +55 -0
- data/lib/google/cloud/support/v2beta/feed_service_pb.rb +50 -0
- data/lib/google/cloud/support/v2beta/feed_service_services_pb.rb +46 -0
- data/lib/google/cloud/support/v2beta/rest.rb +40 -0
- data/lib/google/cloud/support/v2beta/version.rb +7 -2
- data/lib/google/cloud/support/v2beta.rb +48 -0
- data/lib/google-cloud-support-v2beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/support/v2beta/actor.rb +59 -0
- data/proto_docs/google/cloud/support/v2beta/attachment.rb +58 -0
- data/proto_docs/google/cloud/support/v2beta/attachment_service.rb +63 -0
- data/proto_docs/google/cloud/support/v2beta/case.rb +215 -0
- data/proto_docs/google/cloud/support/v2beta/case_service.rb +245 -0
- data/proto_docs/google/cloud/support/v2beta/comment.rb +58 -0
- data/proto_docs/google/cloud/support/v2beta/comment_service.rb +68 -0
- data/proto_docs/google/cloud/support/v2beta/content.rb +35 -0
- data/proto_docs/google/cloud/support/v2beta/email_message.rb +55 -0
- data/proto_docs/google/cloud/support/v2beta/escalation.rb +55 -0
- data/proto_docs/google/cloud/support/v2beta/feed_item.rb +56 -0
- data/proto_docs/google/cloud/support/v2beta/feed_service.rb +65 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- metadata +105 -9
@@ -0,0 +1,227 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# A simple descriptor of a resource type.
|
23
|
+
#
|
24
|
+
# ResourceDescriptor annotates a resource message (either by means of a
|
25
|
+
# protobuf annotation or use in the service config), and associates the
|
26
|
+
# resource's schema, the resource type, and the pattern of the resource name.
|
27
|
+
#
|
28
|
+
# Example:
|
29
|
+
#
|
30
|
+
# message Topic {
|
31
|
+
# // Indicates this message defines a resource schema.
|
32
|
+
# // Declares the resource type in the format of {service}/{kind}.
|
33
|
+
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
|
+
# option (google.api.resource) = {
|
35
|
+
# type: "pubsub.googleapis.com/Topic"
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
37
|
+
# };
|
38
|
+
# }
|
39
|
+
#
|
40
|
+
# The ResourceDescriptor Yaml config will look like:
|
41
|
+
#
|
42
|
+
# resources:
|
43
|
+
# - type: "pubsub.googleapis.com/Topic"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
45
|
+
#
|
46
|
+
# Sometimes, resources have multiple patterns, typically because they can
|
47
|
+
# live under multiple parents.
|
48
|
+
#
|
49
|
+
# Example:
|
50
|
+
#
|
51
|
+
# message LogEntry {
|
52
|
+
# option (google.api.resource) = {
|
53
|
+
# type: "logging.googleapis.com/LogEntry"
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
58
|
+
# };
|
59
|
+
# }
|
60
|
+
#
|
61
|
+
# The ResourceDescriptor Yaml config will look like:
|
62
|
+
#
|
63
|
+
# resources:
|
64
|
+
# - type: 'logging.googleapis.com/LogEntry'
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
69
|
+
# @!attribute [rw] type
|
70
|
+
# @return [::String]
|
71
|
+
# The resource type. It must be in the format of
|
72
|
+
# \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
|
73
|
+
# singular and must not include version numbers.
|
74
|
+
#
|
75
|
+
# Example: `storage.googleapis.com/Bucket`
|
76
|
+
#
|
77
|
+
# The value of the resource_type_kind must follow the regular expression
|
78
|
+
# /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
|
79
|
+
# should use PascalCase (UpperCamelCase). The maximum number of
|
80
|
+
# characters allowed for the `resource_type_kind` is 100.
|
81
|
+
# @!attribute [rw] pattern
|
82
|
+
# @return [::Array<::String>]
|
83
|
+
# Optional. The relative resource name pattern associated with this resource
|
84
|
+
# type. The DNS prefix of the full resource name shouldn't be specified here.
|
85
|
+
#
|
86
|
+
# The path pattern must follow the syntax, which aligns with HTTP binding
|
87
|
+
# syntax:
|
88
|
+
#
|
89
|
+
# Template = Segment { "/" Segment } ;
|
90
|
+
# Segment = LITERAL | Variable ;
|
91
|
+
# Variable = "{" LITERAL "}" ;
|
92
|
+
#
|
93
|
+
# Examples:
|
94
|
+
#
|
95
|
+
# - "projects/\\{project}/topics/\\{topic}"
|
96
|
+
# - "projects/\\{project}/knowledgeBases/\\{knowledge_base}"
|
97
|
+
#
|
98
|
+
# The components in braces correspond to the IDs for each resource in the
|
99
|
+
# hierarchy. It is expected that, if multiple patterns are provided,
|
100
|
+
# the same component name (e.g. "project") refers to IDs of the same
|
101
|
+
# type of resource.
|
102
|
+
# @!attribute [rw] name_field
|
103
|
+
# @return [::String]
|
104
|
+
# Optional. The field on the resource that designates the resource name
|
105
|
+
# field. If omitted, this is assumed to be "name".
|
106
|
+
# @!attribute [rw] history
|
107
|
+
# @return [::Google::Api::ResourceDescriptor::History]
|
108
|
+
# Optional. The historical or future-looking state of the resource pattern.
|
109
|
+
#
|
110
|
+
# Example:
|
111
|
+
#
|
112
|
+
# // The InspectTemplate message originally only supported resource
|
113
|
+
# // names with organization, and project was added later.
|
114
|
+
# message InspectTemplate {
|
115
|
+
# option (google.api.resource) = {
|
116
|
+
# type: "dlp.googleapis.com/InspectTemplate"
|
117
|
+
# pattern:
|
118
|
+
# "organizations/{organization}/inspectTemplates/{inspect_template}"
|
119
|
+
# pattern: "projects/{project}/inspectTemplates/{inspect_template}"
|
120
|
+
# history: ORIGINALLY_SINGLE_PATTERN
|
121
|
+
# };
|
122
|
+
# }
|
123
|
+
# @!attribute [rw] plural
|
124
|
+
# @return [::String]
|
125
|
+
# The plural name used in the resource name and permission names, such as
|
126
|
+
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
131
|
+
# match the `plural` value.
|
132
|
+
#
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
134
|
+
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
135
|
+
#
|
136
|
+
# Note: The plural form is required even for singleton resources. See
|
137
|
+
# https://aip.dev/156
|
138
|
+
# @!attribute [rw] singular
|
139
|
+
# @return [::String]
|
140
|
+
# The same concept of the `singular` field in k8s CRD spec
|
141
|
+
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
142
|
+
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
143
|
+
# @!attribute [rw] style
|
144
|
+
# @return [::Array<::Google::Api::ResourceDescriptor::Style>]
|
145
|
+
# Style flag(s) for this resource.
|
146
|
+
# These indicate that a resource is expected to conform to a given
|
147
|
+
# style. See the specific style flags for additional information.
|
148
|
+
class ResourceDescriptor
|
149
|
+
include ::Google::Protobuf::MessageExts
|
150
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
151
|
+
|
152
|
+
# A description of the historical or future-looking state of the
|
153
|
+
# resource pattern.
|
154
|
+
module History
|
155
|
+
# The "unset" value.
|
156
|
+
HISTORY_UNSPECIFIED = 0
|
157
|
+
|
158
|
+
# The resource originally had one pattern and launched as such, and
|
159
|
+
# additional patterns were added later.
|
160
|
+
ORIGINALLY_SINGLE_PATTERN = 1
|
161
|
+
|
162
|
+
# The resource has one pattern, but the API owner expects to add more
|
163
|
+
# later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
|
164
|
+
# that from being necessary once there are multiple patterns.)
|
165
|
+
FUTURE_MULTI_PATTERN = 2
|
166
|
+
end
|
167
|
+
|
168
|
+
# A flag representing a specific style that a resource claims to conform to.
|
169
|
+
module Style
|
170
|
+
# The unspecified value. Do not use.
|
171
|
+
STYLE_UNSPECIFIED = 0
|
172
|
+
|
173
|
+
# This resource is intended to be "declarative-friendly".
|
174
|
+
#
|
175
|
+
# Declarative-friendly resources must be more strictly consistent, and
|
176
|
+
# setting this to true communicates to tools that this resource should
|
177
|
+
# adhere to declarative-friendly expectations.
|
178
|
+
#
|
179
|
+
# Note: This is used by the API linter (linter.aip.dev) to enable
|
180
|
+
# additional checks.
|
181
|
+
DECLARATIVE_FRIENDLY = 1
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
# Defines a proto annotation that describes a string field that refers to
|
186
|
+
# an API resource.
|
187
|
+
# @!attribute [rw] type
|
188
|
+
# @return [::String]
|
189
|
+
# The resource type that the annotated field references.
|
190
|
+
#
|
191
|
+
# Example:
|
192
|
+
#
|
193
|
+
# message Subscription {
|
194
|
+
# string topic = 2 [(google.api.resource_reference) = {
|
195
|
+
# type: "pubsub.googleapis.com/Topic"
|
196
|
+
# }];
|
197
|
+
# }
|
198
|
+
#
|
199
|
+
# Occasionally, a field may reference an arbitrary resource. In this case,
|
200
|
+
# APIs use the special value * in their resource reference.
|
201
|
+
#
|
202
|
+
# Example:
|
203
|
+
#
|
204
|
+
# message GetIamPolicyRequest {
|
205
|
+
# string resource = 2 [(google.api.resource_reference) = {
|
206
|
+
# type: "*"
|
207
|
+
# }];
|
208
|
+
# }
|
209
|
+
# @!attribute [rw] child_type
|
210
|
+
# @return [::String]
|
211
|
+
# The resource type of a child collection that the annotated field
|
212
|
+
# references. This is useful for annotating the `parent` field that
|
213
|
+
# doesn't have a fixed resource type.
|
214
|
+
#
|
215
|
+
# Example:
|
216
|
+
#
|
217
|
+
# message ListLogEntriesRequest {
|
218
|
+
# string parent = 1 [(google.api.resource_reference) = {
|
219
|
+
# child_type: "logging.googleapis.com/LogEntry"
|
220
|
+
# };
|
221
|
+
# }
|
222
|
+
class ResourceReference
|
223
|
+
include ::Google::Protobuf::MessageExts
|
224
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Support
|
23
|
+
module V2beta
|
24
|
+
# An Actor represents an entity that performed an action. For example, an actor
|
25
|
+
# could be a user who posted a comment on a support case, a user who
|
26
|
+
# uploaded an attachment, or a service account that created a support case.
|
27
|
+
# @!attribute [rw] display_name
|
28
|
+
# @return [::String]
|
29
|
+
# The name to display for the actor. If not provided, it is inferred from
|
30
|
+
# credentials supplied during case creation. When an email is provided, a
|
31
|
+
# display name must also be provided. This will be obfuscated if the user
|
32
|
+
# is a Google Support agent.
|
33
|
+
# @!attribute [rw] email
|
34
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
35
|
+
# @return [::String]
|
36
|
+
# The email address of the actor. If not provided, it is inferred from the
|
37
|
+
# credentials supplied during case creation. When a name is provided, an
|
38
|
+
# email must also be provided. If the user is a Google Support agent, this is
|
39
|
+
# obfuscated.
|
40
|
+
#
|
41
|
+
# This field is deprecated. Use **username** field instead.
|
42
|
+
# @!attribute [r] google_support
|
43
|
+
# @return [::Boolean]
|
44
|
+
# Output only. Whether the actor is a Google support actor.
|
45
|
+
# @!attribute [r] username
|
46
|
+
# @return [::String]
|
47
|
+
# Output only. The username of the actor. It may look like an email or other
|
48
|
+
# format provided by the identity provider. If not provided, it is inferred
|
49
|
+
# from the credentials supplied. When a name is provided, a username must
|
50
|
+
# also be provided. If the user is a Google Support agent, this will not be
|
51
|
+
# set.
|
52
|
+
class Actor
|
53
|
+
include ::Google::Protobuf::MessageExts
|
54
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Support
|
23
|
+
module V2beta
|
24
|
+
# An Attachment contains metadata about a file that was uploaded to a
|
25
|
+
# case - it is NOT a file itself. That being said, the name of an Attachment
|
26
|
+
# object can be used to download its accompanying file through the
|
27
|
+
# `media.download` endpoint.
|
28
|
+
#
|
29
|
+
# While attachments can be uploaded in the console at the
|
30
|
+
# same time as a comment, they're associated on a "case" level, not a
|
31
|
+
# "comment" level.
|
32
|
+
# @!attribute [r] name
|
33
|
+
# @return [::String]
|
34
|
+
# Output only. The resource name of the attachment.
|
35
|
+
# @!attribute [r] create_time
|
36
|
+
# @return [::Google::Protobuf::Timestamp]
|
37
|
+
# Output only. The time at which the attachment was created.
|
38
|
+
# @!attribute [r] creator
|
39
|
+
# @return [::Google::Cloud::Support::V2beta::Actor]
|
40
|
+
# Output only. The user who uploaded the attachment. Note, the name and email
|
41
|
+
# will be obfuscated if the attachment was uploaded by Google support.
|
42
|
+
# @!attribute [rw] filename
|
43
|
+
# @return [::String]
|
44
|
+
# The filename of the attachment (e.g. `"graph.jpg"`).
|
45
|
+
# @!attribute [r] mime_type
|
46
|
+
# @return [::String]
|
47
|
+
# Output only. The MIME type of the attachment (e.g. text/plain).
|
48
|
+
# @!attribute [r] size_bytes
|
49
|
+
# @return [::Integer]
|
50
|
+
# Output only. The size of the attachment in bytes.
|
51
|
+
class Attachment
|
52
|
+
include ::Google::Protobuf::MessageExts
|
53
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Support
|
23
|
+
module V2beta
|
24
|
+
# The request message for the ListAttachments endpoint.
|
25
|
+
# @!attribute [rw] parent
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The name of the case for which attachments should be listed.
|
28
|
+
# @!attribute [rw] page_size
|
29
|
+
# @return [::Integer]
|
30
|
+
# The maximum number of attachments fetched with each request.
|
31
|
+
#
|
32
|
+
# If not provided, the default is 10. The maximum page size that will be
|
33
|
+
# returned is 100.
|
34
|
+
#
|
35
|
+
# The size of each page can be smaller than the requested page size and can
|
36
|
+
# include zero. For example, you could request 100 attachments on one page,
|
37
|
+
# receive 0, and then on the next page, receive 90.
|
38
|
+
# @!attribute [rw] page_token
|
39
|
+
# @return [::String]
|
40
|
+
# A token identifying the page of results to return. If unspecified, the
|
41
|
+
# first page is retrieved.
|
42
|
+
class ListAttachmentsRequest
|
43
|
+
include ::Google::Protobuf::MessageExts
|
44
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
45
|
+
end
|
46
|
+
|
47
|
+
# The response message for the ListAttachments endpoint.
|
48
|
+
# @!attribute [rw] attachments
|
49
|
+
# @return [::Array<::Google::Cloud::Support::V2beta::Attachment>]
|
50
|
+
# The list of attachments associated with a case.
|
51
|
+
# @!attribute [rw] next_page_token
|
52
|
+
# @return [::String]
|
53
|
+
# A token to retrieve the next page of results. Set this in the `page_token`
|
54
|
+
# field of subsequent `cases.attachments.list` requests. If unspecified,
|
55
|
+
# there are no more results to retrieve.
|
56
|
+
class ListAttachmentsResponse
|
57
|
+
include ::Google::Protobuf::MessageExts
|
58
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,215 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Support
|
23
|
+
module V2beta
|
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).
|
51
|
+
# @!attribute [rw] name
|
52
|
+
# @return [::String]
|
53
|
+
# The resource name for the case.
|
54
|
+
# @!attribute [rw] display_name
|
55
|
+
# @return [::String]
|
56
|
+
# The short summary of the issue reported in this case.
|
57
|
+
# @!attribute [rw] description
|
58
|
+
# @return [::String]
|
59
|
+
# A broad description of the issue.
|
60
|
+
# @!attribute [rw] classification
|
61
|
+
# @return [::Google::Cloud::Support::V2beta::CaseClassification]
|
62
|
+
# The issue classification applicable to this case.
|
63
|
+
# @!attribute [rw] time_zone
|
64
|
+
# @return [::String]
|
65
|
+
# The timezone of the user who created the support case.
|
66
|
+
# It should be in a format IANA recognizes: https://www.iana.org/time-zones.
|
67
|
+
# There is no additional validation done by the API.
|
68
|
+
# @!attribute [rw] subscriber_email_addresses
|
69
|
+
# @return [::Array<::String>]
|
70
|
+
# The email addresses to receive updates on this case.
|
71
|
+
# @!attribute [r] state
|
72
|
+
# @return [::Google::Cloud::Support::V2beta::Case::State]
|
73
|
+
# Output only. The current status of the support case.
|
74
|
+
# @!attribute [r] create_time
|
75
|
+
# @return [::Google::Protobuf::Timestamp]
|
76
|
+
# Output only. The time this case was created.
|
77
|
+
# @!attribute [r] update_time
|
78
|
+
# @return [::Google::Protobuf::Timestamp]
|
79
|
+
# Output only. The time this case was last updated.
|
80
|
+
# @!attribute [rw] creator
|
81
|
+
# @return [::Google::Cloud::Support::V2beta::Actor]
|
82
|
+
# The user who created the case.
|
83
|
+
#
|
84
|
+
# Note: The name and email will be obfuscated if the case was created by
|
85
|
+
# Google Support.
|
86
|
+
# @!attribute [rw] contact_email
|
87
|
+
# @return [::String]
|
88
|
+
# A user-supplied email address to send case update notifications for. This
|
89
|
+
# should only be used in BYOID flows, where we cannot infer the user's email
|
90
|
+
# address directly from their EUCs.
|
91
|
+
# @!attribute [rw] escalated
|
92
|
+
# @return [::Boolean]
|
93
|
+
# Whether the case is currently escalated.
|
94
|
+
# @!attribute [rw] test_case
|
95
|
+
# @return [::Boolean]
|
96
|
+
# Whether this case was created for internal API testing and should not be
|
97
|
+
# acted on by the support team.
|
98
|
+
# @!attribute [rw] language_code
|
99
|
+
# @return [::String]
|
100
|
+
# The language the user has requested to receive support in. This should be a
|
101
|
+
# BCP 47 language code (e.g., `"en"`, `"zh-CN"`, `"zh-TW"`, `"ja"`, `"ko"`).
|
102
|
+
# If no language or an unsupported language is specified, this field defaults
|
103
|
+
# to English (en).
|
104
|
+
#
|
105
|
+
# Language selection during case creation may affect your available support
|
106
|
+
# options. For a list of supported languages and their support working hours,
|
107
|
+
# see: https://cloud.google.com/support/docs/language-working-hours
|
108
|
+
# @!attribute [rw] priority
|
109
|
+
# @return [::Google::Cloud::Support::V2beta::Case::Priority]
|
110
|
+
# The priority of this case.
|
111
|
+
class Case
|
112
|
+
include ::Google::Protobuf::MessageExts
|
113
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
114
|
+
|
115
|
+
# The status of a support case.
|
116
|
+
module State
|
117
|
+
# Case is in an unknown state.
|
118
|
+
STATE_UNSPECIFIED = 0
|
119
|
+
|
120
|
+
# The case has been created but no one is assigned to work on it yet.
|
121
|
+
NEW = 1
|
122
|
+
|
123
|
+
# The case is currently being handled by Google support.
|
124
|
+
IN_PROGRESS_GOOGLE_SUPPORT = 2
|
125
|
+
|
126
|
+
# Google is waiting for a response.
|
127
|
+
ACTION_REQUIRED = 3
|
128
|
+
|
129
|
+
# A solution has been offered for the case, but it isn't yet closed.
|
130
|
+
SOLUTION_PROVIDED = 4
|
131
|
+
|
132
|
+
# The case has been resolved.
|
133
|
+
CLOSED = 5
|
134
|
+
end
|
135
|
+
|
136
|
+
# The case Priority. P0 is most urgent and P4 the least.
|
137
|
+
module Priority
|
138
|
+
# Priority is undefined or has not been set yet.
|
139
|
+
PRIORITY_UNSPECIFIED = 0
|
140
|
+
|
141
|
+
# Extreme impact on a production service. Service is hard down.
|
142
|
+
P0 = 1
|
143
|
+
|
144
|
+
# Critical impact on a production service. Service is currently unusable.
|
145
|
+
P1 = 2
|
146
|
+
|
147
|
+
# Severe impact on a production service. Service is usable but greatly
|
148
|
+
# impaired.
|
149
|
+
P2 = 3
|
150
|
+
|
151
|
+
# Medium impact on a production service. Service is available, but
|
152
|
+
# moderately impaired.
|
153
|
+
P3 = 4
|
154
|
+
|
155
|
+
# General questions or minor issues. Production service is fully
|
156
|
+
# available.
|
157
|
+
P4 = 5
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
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.
|
167
|
+
# @!attribute [rw] id
|
168
|
+
# @return [::String]
|
169
|
+
# The unique ID for a classification. Must be specified for case creation.
|
170
|
+
#
|
171
|
+
# To retrieve valid classification IDs for case creation, use
|
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.
|
178
|
+
# @!attribute [rw] display_name
|
179
|
+
# @return [::String]
|
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.
|
184
|
+
# @!attribute [rw] product
|
185
|
+
# @return [::Google::Cloud::Support::V2beta::Product]
|
186
|
+
# The full product the classification corresponds to.
|
187
|
+
class CaseClassification
|
188
|
+
include ::Google::Protobuf::MessageExts
|
189
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
190
|
+
end
|
191
|
+
|
192
|
+
# The product a case may be associated with.
|
193
|
+
# @!attribute [rw] product_line
|
194
|
+
# @return [::Google::Cloud::Support::V2beta::ProductLine]
|
195
|
+
# The product line of the Product.
|
196
|
+
class Product
|
197
|
+
include ::Google::Protobuf::MessageExts
|
198
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
199
|
+
end
|
200
|
+
|
201
|
+
# The product line a support case may be associated with.
|
202
|
+
module ProductLine
|
203
|
+
# Unknown product type.
|
204
|
+
PRODUCT_LINE_UNSPECIFIED = 0
|
205
|
+
|
206
|
+
# Google Cloud
|
207
|
+
GOOGLE_CLOUD = 1
|
208
|
+
|
209
|
+
# Google Maps
|
210
|
+
GOOGLE_MAPS = 2
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|