google-apps-events-subscriptions-v1 0.a → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/apps/events/subscriptions/v1/rest.rb +39 -0
- data/lib/google/apps/events/subscriptions/v1/subscription_resource_pb.rb +57 -0
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/client.rb +1038 -0
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/credentials.rb +59 -0
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/operations.rb +811 -0
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/paths.rb +80 -0
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/rest/client.rb +986 -0
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/rest/operations.rb +904 -0
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/rest/service_stub.rb +424 -0
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service/rest.rb +55 -0
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service.rb +58 -0
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service_pb.rb +65 -0
- data/lib/google/apps/events/subscriptions/v1/subscriptions_service_services_pb.rb +73 -0
- data/lib/google/apps/events/subscriptions/v1/version.rb +7 -2
- data/lib/google/apps/events/subscriptions/v1.rb +47 -0
- data/lib/google-apps-events-subscriptions-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +420 -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/apps/events/subscriptions/v1/subscription_resource.rb +224 -0
- data/proto_docs/google/apps/events/subscriptions/v1/subscriptions_service.rb +211 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +77 -11
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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
|
+
# The launch stage as defined by [Google Cloud Platform
|
23
|
+
# Launch Stages](https://cloud.google.com/terms/launch-stages).
|
24
|
+
module LaunchStage
|
25
|
+
# Do not use this default value.
|
26
|
+
LAUNCH_STAGE_UNSPECIFIED = 0
|
27
|
+
|
28
|
+
# The feature is not yet implemented. Users can not use it.
|
29
|
+
UNIMPLEMENTED = 6
|
30
|
+
|
31
|
+
# Prelaunch features are hidden from users and are only visible internally.
|
32
|
+
PRELAUNCH = 7
|
33
|
+
|
34
|
+
# Early Access features are limited to a closed group of testers. To use
|
35
|
+
# these features, you must sign up in advance and sign a Trusted Tester
|
36
|
+
# agreement (which includes confidentiality provisions). These features may
|
37
|
+
# be unstable, changed in backward-incompatible ways, and are not
|
38
|
+
# guaranteed to be released.
|
39
|
+
EARLY_ACCESS = 1
|
40
|
+
|
41
|
+
# Alpha is a limited availability test for releases before they are cleared
|
42
|
+
# for widespread use. By Alpha, all significant design issues are resolved
|
43
|
+
# and we are in the process of verifying functionality. Alpha customers
|
44
|
+
# need to apply for access, agree to applicable terms, and have their
|
45
|
+
# projects allowlisted. Alpha releases don't have to be feature complete,
|
46
|
+
# no SLAs are provided, and there are no technical support obligations, but
|
47
|
+
# they will be far enough along that customers can actually use them in
|
48
|
+
# test environments or for limited-use tests -- just like they would in
|
49
|
+
# normal production cases.
|
50
|
+
ALPHA = 2
|
51
|
+
|
52
|
+
# Beta is the point at which we are ready to open a release for any
|
53
|
+
# customer to use. There are no SLA or technical support obligations in a
|
54
|
+
# Beta release. Products will be complete from a feature perspective, but
|
55
|
+
# may have some open outstanding issues. Beta releases are suitable for
|
56
|
+
# limited production use cases.
|
57
|
+
BETA = 3
|
58
|
+
|
59
|
+
# GA features are open to all developers and are considered stable and
|
60
|
+
# fully qualified for production use.
|
61
|
+
GA = 4
|
62
|
+
|
63
|
+
# Deprecated features are scheduled to be shut down and removed. For more
|
64
|
+
# information, see the "Deprecation Policy" section of our [Terms of
|
65
|
+
# Service](https://cloud.google.com/terms/)
|
66
|
+
# and the [Google Cloud Platform Subject to the Deprecation
|
67
|
+
# Policy](https://cloud.google.com/terms/deprecation) documentation.
|
68
|
+
DEPRECATED = 5
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,227 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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,224 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 Apps
|
22
|
+
module Events
|
23
|
+
module Subscriptions
|
24
|
+
module V1
|
25
|
+
# A subscription to receive events about a Google Workspace resource. To learn
|
26
|
+
# more about subscriptions, see the [Google Workspace Events API
|
27
|
+
# overview](https://developers.google.com/workspace/events).
|
28
|
+
# @!attribute [rw] expire_time
|
29
|
+
# @return [::Google::Protobuf::Timestamp]
|
30
|
+
# Non-empty default. The timestamp in UTC when the subscription expires.
|
31
|
+
# Always displayed on output, regardless of what was used on input.
|
32
|
+
# @!attribute [rw] ttl
|
33
|
+
# @return [::Google::Protobuf::Duration]
|
34
|
+
# Input only. The time-to-live (TTL) or duration for the subscription. If
|
35
|
+
# unspecified or set to `0`, uses the maximum possible duration.
|
36
|
+
# @!attribute [rw] name
|
37
|
+
# @return [::String]
|
38
|
+
# Optional. Immutable. Identifier. Resource name of the subscription.
|
39
|
+
#
|
40
|
+
# Format: `subscriptions/{subscription}`
|
41
|
+
# @!attribute [r] uid
|
42
|
+
# @return [::String]
|
43
|
+
# Output only. System-assigned unique identifier for the subscription.
|
44
|
+
# @!attribute [rw] target_resource
|
45
|
+
# @return [::String]
|
46
|
+
# Required. Immutable. The Google Workspace resource that's monitored for
|
47
|
+
# events, formatted as the [full resource
|
48
|
+
# name](https://google.aip.dev/122#full-resource-names). To learn about
|
49
|
+
# target resources and the events that they support, see [Supported Google
|
50
|
+
# Workspace
|
51
|
+
# events](https://developers.google.com/workspace/events#supported-events).
|
52
|
+
#
|
53
|
+
# A user can only authorize your app to create one subscription for a given
|
54
|
+
# target resource. If your app tries to create another subscription with the
|
55
|
+
# same user credentials, the request returns an `ALREADY_EXISTS` error.
|
56
|
+
# @!attribute [rw] event_types
|
57
|
+
# @return [::Array<::String>]
|
58
|
+
# Required. Immutable. Unordered list. Input for creating a subscription.
|
59
|
+
# Otherwise, output only. One or more types of events to receive about the
|
60
|
+
# target resource. Formatted according to the CloudEvents specification.
|
61
|
+
#
|
62
|
+
# The supported event types depend on the target resource of your
|
63
|
+
# subscription. For details, see [Supported Google Workspace
|
64
|
+
# events](https://developers.google.com/workspace/events/guides#supported-events).
|
65
|
+
#
|
66
|
+
# By default, you also receive events about the [lifecycle of your
|
67
|
+
# subscription](https://developers.google.com/workspace/events/guides/events-lifecycle).
|
68
|
+
# You don't need to specify lifecycle events for this field.
|
69
|
+
#
|
70
|
+
# If you specify an event type that doesn't exist for the target resource,
|
71
|
+
# the request returns an HTTP `400 Bad Request` status code.
|
72
|
+
# @!attribute [rw] payload_options
|
73
|
+
# @return [::Google::Apps::Events::Subscriptions::V1::PayloadOptions]
|
74
|
+
# Optional. Options about what data to include in the event payload. Only
|
75
|
+
# supported for Google Chat events.
|
76
|
+
# @!attribute [rw] notification_endpoint
|
77
|
+
# @return [::Google::Apps::Events::Subscriptions::V1::NotificationEndpoint]
|
78
|
+
# Required. Immutable. The endpoint where the subscription delivers events,
|
79
|
+
# such as a Pub/Sub topic.
|
80
|
+
# @!attribute [r] state
|
81
|
+
# @return [::Google::Apps::Events::Subscriptions::V1::Subscription::State]
|
82
|
+
# Output only. The state of the subscription. Determines whether the
|
83
|
+
# subscription can receive events and deliver them to the notification
|
84
|
+
# endpoint.
|
85
|
+
# @!attribute [r] suspension_reason
|
86
|
+
# @return [::Google::Apps::Events::Subscriptions::V1::Subscription::ErrorType]
|
87
|
+
# Output only. The error that suspended the subscription.
|
88
|
+
#
|
89
|
+
# To reactivate the subscription, resolve the error and call the
|
90
|
+
# {::Google::Apps::Events::Subscriptions::V1::SubscriptionsService::Client#reactivate_subscription `ReactivateSubscription`}
|
91
|
+
# method.
|
92
|
+
# @!attribute [r] authority
|
93
|
+
# @return [::String]
|
94
|
+
# Output only. The user who authorized the creation of the
|
95
|
+
# subscription.
|
96
|
+
#
|
97
|
+
# Format: `users/{user}`
|
98
|
+
#
|
99
|
+
# For Google Workspace users, the `{user}` value is the
|
100
|
+
# [`user.id`](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users#User.FIELDS.ids)
|
101
|
+
# field from the Directory API.
|
102
|
+
# @!attribute [r] create_time
|
103
|
+
# @return [::Google::Protobuf::Timestamp]
|
104
|
+
# Output only. The time when the subscription is created.
|
105
|
+
# @!attribute [r] update_time
|
106
|
+
# @return [::Google::Protobuf::Timestamp]
|
107
|
+
# Output only. The last time that the subscription is updated.
|
108
|
+
# @!attribute [r] reconciling
|
109
|
+
# @return [::Boolean]
|
110
|
+
# Output only. If `true`, the subscription is in the process of being
|
111
|
+
# updated.
|
112
|
+
# @!attribute [rw] etag
|
113
|
+
# @return [::String]
|
114
|
+
# Optional. This checksum is computed by the server based on the value of
|
115
|
+
# other fields, and might be sent on update requests to ensure the client has
|
116
|
+
# an up-to-date value before proceeding.
|
117
|
+
class Subscription
|
118
|
+
include ::Google::Protobuf::MessageExts
|
119
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
120
|
+
|
121
|
+
# Possible states for the subscription.
|
122
|
+
module State
|
123
|
+
# Default value. This value is unused.
|
124
|
+
STATE_UNSPECIFIED = 0
|
125
|
+
|
126
|
+
# The subscription is active and can receive and deliver events to its
|
127
|
+
# notification endpoint.
|
128
|
+
ACTIVE = 1
|
129
|
+
|
130
|
+
# The subscription is unable to receive events due to an error.
|
131
|
+
# To identify the error, see the
|
132
|
+
# {::Google::Apps::Events::Subscriptions::V1::Subscription#suspension_reason `suspension_reason`}
|
133
|
+
# field.
|
134
|
+
SUSPENDED = 2
|
135
|
+
|
136
|
+
# The subscription is deleted.
|
137
|
+
DELETED = 3
|
138
|
+
end
|
139
|
+
|
140
|
+
# Possible errors for a subscription.
|
141
|
+
module ErrorType
|
142
|
+
# Default value. This value is unused.
|
143
|
+
ERROR_TYPE_UNSPECIFIED = 0
|
144
|
+
|
145
|
+
# The authorizing user has revoked the grant of one or more OAuth scopes.
|
146
|
+
# To learn more about authorization for Google Workspace, see [Configure
|
147
|
+
# the OAuth consent
|
148
|
+
# screen](https://developers.google.com/workspace/guides/configure-oauth-consent#choose-scopes).
|
149
|
+
USER_SCOPE_REVOKED = 1
|
150
|
+
|
151
|
+
# The target resource for the subscription no longer exists.
|
152
|
+
RESOURCE_DELETED = 2
|
153
|
+
|
154
|
+
# The user that authorized the creation of the subscription no longer has
|
155
|
+
# access to the subscription's target resource.
|
156
|
+
USER_AUTHORIZATION_FAILURE = 3
|
157
|
+
|
158
|
+
# The Google Workspace application doesn't have access to deliver
|
159
|
+
# events to your subscription's notification endpoint.
|
160
|
+
ENDPOINT_PERMISSION_DENIED = 4
|
161
|
+
|
162
|
+
# The subscription's notification endpoint doesn't exist, or the endpoint
|
163
|
+
# can't be found in the Google Cloud project where you created the
|
164
|
+
# subscription.
|
165
|
+
ENDPOINT_NOT_FOUND = 6
|
166
|
+
|
167
|
+
# The subscription's notification endpoint failed to receive events due to
|
168
|
+
# insufficient quota or reaching rate limiting.
|
169
|
+
ENDPOINT_RESOURCE_EXHAUSTED = 7
|
170
|
+
|
171
|
+
# An unidentified error has occurred.
|
172
|
+
OTHER = 5
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# Options about what data to include in the event payload. Only supported for
|
177
|
+
# Google Chat events.
|
178
|
+
# @!attribute [rw] include_resource
|
179
|
+
# @return [::Boolean]
|
180
|
+
# Optional. Whether the event payload includes data about the resource that
|
181
|
+
# changed. For example, for an event where a Google Chat message was created,
|
182
|
+
# whether the payload contains data about the
|
183
|
+
# [`Message`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages)
|
184
|
+
# resource. If false, the event payload only includes the name of the changed
|
185
|
+
# resource.
|
186
|
+
# @!attribute [rw] field_mask
|
187
|
+
# @return [::Google::Protobuf::FieldMask]
|
188
|
+
# Optional. If `include_resource` is set to `true`, the list of fields to
|
189
|
+
# include in the event payload. Separate fields with a comma. For example, to
|
190
|
+
# include a Google Chat message's sender and create time, enter
|
191
|
+
# `message.sender,message.createTime`. If omitted, the payload includes all
|
192
|
+
# fields for the resource.
|
193
|
+
#
|
194
|
+
# If you specify a field that doesn't exist for the resource, the system
|
195
|
+
# ignores the field.
|
196
|
+
class PayloadOptions
|
197
|
+
include ::Google::Protobuf::MessageExts
|
198
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
199
|
+
end
|
200
|
+
|
201
|
+
# The endpoint where the subscription delivers events.
|
202
|
+
# @!attribute [rw] pubsub_topic
|
203
|
+
# @return [::String]
|
204
|
+
# Immutable. The Cloud Pub/Sub topic that receives events for the
|
205
|
+
# subscription.
|
206
|
+
#
|
207
|
+
# Format: `projects/{project}/topics/{topic}`
|
208
|
+
#
|
209
|
+
#
|
210
|
+
# You must create the topic in the same Google Cloud project where
|
211
|
+
# you create this subscription.
|
212
|
+
#
|
213
|
+
# When the topic receives events, the events are encoded as Cloud Pub/Sub
|
214
|
+
# messages. For details, see the [Google Cloud Pub/Sub Protocol Binding for
|
215
|
+
# CloudEvents](https://github.com/googleapis/google-cloudevents/blob/main/docs/spec/pubsub.md).
|
216
|
+
class NotificationEndpoint
|
217
|
+
include ::Google::Protobuf::MessageExts
|
218
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
223
|
+
end
|
224
|
+
end
|