google-apis-pubsub_v1beta2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fb30b92f3f9f8d35b2b669ac9ea6f5b240b68b41518c4a01d4fce0e6e1b2f8bc
4
+ data.tar.gz: a8580d327730fbff2e878eb8f56a7406fc0b31b8c9588348d402386102db38e2
5
+ SHA512:
6
+ metadata.gz: b02ea6f325481408154d5a4dcf942b75dbcdc8f60e5f12ea0887f2dd8a78bd3245d730c800b3212ac22c60ba8fd88a11c2adb1376036e8922ae7e8e49724e17d
7
+ data.tar.gz: 83a5a4895debe241be4cffcd2524842033419f18123178a02e8ac9ddd4927bbe3f50312ebbeb293be1e3a5a1b87ce5664fb5cfe54bf659f8f2bb12fa87126c4e
@@ -0,0 +1,13 @@
1
+ --hide-void-return
2
+ --no-private
3
+ --verbose
4
+ --title=google-apis-pubsub_v1beta2
5
+ --markup-provider=redcarpet
6
+ --markup=markdown
7
+ --main OVERVIEW.md
8
+ lib/google/apis/pubsub_v1beta2/*.rb
9
+ lib/google/apis/pubsub_v1beta2.rb
10
+ -
11
+ OVERVIEW.md
12
+ CHANGELOG.md
13
+ LICENSE.md
@@ -0,0 +1,7 @@
1
+ # Release history for google-apis-pubsub_v1beta2
2
+
3
+ ### v0.1.0 (2021-01-07)
4
+
5
+ * Regenerated using generator version 0.1.1
6
+ * Regenerated from discovery document revision 20201110
7
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,96 @@
1
+ # Simple REST client for version V1beta2 of the Cloud Pub/Sub API
2
+
3
+ This is a simple client library for version V1beta2 of the Cloud Pub/Sub API. It provides:
4
+
5
+ * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
+ * Ruby objects for data structures related to the service.
7
+ * Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
8
+ * Control of retry, pagination, and timeouts.
9
+
10
+ Note that although this client library is supported and will continue to be updated to track changes to the service, it is otherwise considered complete and not under active development. Many Google services, especially Google Cloud Platform services, may provide a more modern client that is under more active development and improvement. See the section below titled *Which client should I use?* for more information.
11
+
12
+ ## Getting started
13
+
14
+ ### Before you begin
15
+
16
+ There are a few setup steps you need to complete before you can use this library:
17
+
18
+ 1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
19
+ 2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
20
+ 3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/pubsub.googleapis.com) in the console.
21
+
22
+ ### Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'google-apis-pubsub_v1beta2', '~> 0.1'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ ```
33
+ $ bundle
34
+ ```
35
+
36
+ Or install it yourself as:
37
+
38
+ ```
39
+ $ gem install google-apis-pubsub_v1beta2
40
+ ```
41
+
42
+ ### Creating a client object
43
+
44
+ Once the gem is installed, you can load the client code and instantiate a client.
45
+
46
+ ```ruby
47
+ # Load the client
48
+ require "google/apis/pubsub_v1beta2"
49
+
50
+ # Create a client object
51
+ client = Google::Apis::PubsubV1beta2::PubsubService.new
52
+
53
+ # Authenticate calls
54
+ client.authentication = # ... use the googleauth gem to create credentials
55
+ ```
56
+
57
+ See the class reference docs for information on the methods you can call from a client.
58
+
59
+ ## Documentation
60
+
61
+ More detailed descriptions of the Google simple REST clients are available in two documents.
62
+
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
+
66
+ (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Pubsub service in particular.)
67
+
68
+ For reference information on specific calls in the Cloud Pub/Sub API, see the {Google::Apis::PubsubV1beta2::PubsubService class reference docs}.
69
+
70
+ ## Which client should I use?
71
+
72
+ Google provides two types of Ruby API client libraries: **simple REST clients** and **modern clients**.
73
+
74
+ This library, `google-apis-pubsub_v1beta2`, is a simple REST client. You can identify these clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The simple REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
75
+
76
+ Modern clients are produced by a modern code generator, sometimes combined with hand-crafted functionality. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Google Cloud Platform services, but do not yet support all the services covered by the simple clients.
77
+
78
+ Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
79
+
80
+ **For most users, we recommend the modern client, if one is available.** Compared with simple clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a simple client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
81
+
82
+ The [product documentation](https://cloud.google.com/pubsub/docs) may provide guidance regarding the preferred client library to use.
83
+
84
+ ## Supported Ruby versions
85
+
86
+ This library is supported on Ruby 2.5+.
87
+
88
+ Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
+
90
+ ## License
91
+
92
+ This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
93
+
94
+ ## Support
95
+
96
+ Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,15 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/apis/pubsub_v1beta2"
@@ -0,0 +1,39 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/pubsub_v1beta2/service.rb'
16
+ require 'google/apis/pubsub_v1beta2/classes.rb'
17
+ require 'google/apis/pubsub_v1beta2/representations.rb'
18
+ require 'google/apis/pubsub_v1beta2/gem_version.rb'
19
+
20
+ module Google
21
+ module Apis
22
+ # Cloud Pub/Sub API
23
+ #
24
+ # Provides reliable, many-to-many, asynchronous messaging between applications.
25
+ #
26
+ # @see https://cloud.google.com/pubsub/docs
27
+ module PubsubV1beta2
28
+ # Version of the Cloud Pub/Sub API this client connects to.
29
+ # This is NOT the gem version.
30
+ VERSION = 'V1beta2'
31
+
32
+ # View and manage your data across Google Cloud Platform services
33
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
+
35
+ # View and manage Pub/Sub topics and subscriptions
36
+ AUTH_PUBSUB = 'https://www.googleapis.com/auth/pubsub'
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,813 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module PubsubV1beta2
24
+
25
+ # Request for the Acknowledge method.
26
+ class AcknowledgeRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The acknowledgment ID for the messages being acknowledged that was returned by
30
+ # the Pub/Sub system in the `Pull` response. Must not be empty.
31
+ # Corresponds to the JSON property `ackIds`
32
+ # @return [Array<String>]
33
+ attr_accessor :ack_ids
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
42
+ end
43
+ end
44
+
45
+ # Associates `members` with a `role`.
46
+ class Binding
47
+ include Google::Apis::Core::Hashable
48
+
49
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
50
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
51
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
52
+ # "Summary size limit" description: "Determines if a summary is less than 100
53
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
54
+ # Requestor is owner" description: "Determines if requestor is the document
55
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
56
+ # Logic): title: "Public documents" description: "Determine whether the document
57
+ # should be publicly visible" expression: "document.type != 'private' &&
58
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
59
+ # string" description: "Create a notification string with a timestamp."
60
+ # expression: "'New message received at ' + string(document.create_time)" The
61
+ # exact variables and functions that may be referenced within an expression are
62
+ # determined by the service that evaluates it. See the service documentation for
63
+ # additional information.
64
+ # Corresponds to the JSON property `condition`
65
+ # @return [Google::Apis::PubsubV1beta2::Expr]
66
+ attr_accessor :condition
67
+
68
+ # Specifies the identities requesting access for a Cloud Platform resource. `
69
+ # members` can have the following values: * `allUsers`: A special identifier
70
+ # that represents anyone who is on the internet; with or without a Google
71
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
72
+ # anyone who is authenticated with a Google account or a service account. * `
73
+ # user:`emailid``: An email address that represents a specific Google account.
74
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
75
+ # address that represents a service account. For example, `my-other-app@appspot.
76
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
77
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
78
+ # `uniqueid``: An email address (plus unique identifier) representing a user
79
+ # that has been recently deleted. For example, `alice@example.com?uid=
80
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
81
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
82
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
83
+ # identifier) representing a service account that has been recently deleted. For
84
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
85
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
86
+ # emailid`` and the undeleted service account retains the role in the binding. *
87
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
88
+ # identifier) representing a Google group that has been recently deleted. For
89
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
90
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
91
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
92
+ # primary) that represents all the users of that domain. For example, `google.
93
+ # com` or `example.com`.
94
+ # Corresponds to the JSON property `members`
95
+ # @return [Array<String>]
96
+ attr_accessor :members
97
+
98
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
99
+ # , or `roles/owner`.
100
+ # Corresponds to the JSON property `role`
101
+ # @return [String]
102
+ attr_accessor :role
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ @condition = args[:condition] if args.key?(:condition)
111
+ @members = args[:members] if args.key?(:members)
112
+ @role = args[:role] if args.key?(:role)
113
+ end
114
+ end
115
+
116
+ # A generic empty message that you can re-use to avoid defining duplicated empty
117
+ # messages in your APIs. A typical example is to use it as the request or the
118
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
119
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
120
+ # `Empty` is empty JSON object ````.
121
+ class Empty
122
+ include Google::Apis::Core::Hashable
123
+
124
+ def initialize(**args)
125
+ update!(**args)
126
+ end
127
+
128
+ # Update properties of this object
129
+ def update!(**args)
130
+ end
131
+ end
132
+
133
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
134
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
135
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
136
+ # "Summary size limit" description: "Determines if a summary is less than 100
137
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
138
+ # Requestor is owner" description: "Determines if requestor is the document
139
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
140
+ # Logic): title: "Public documents" description: "Determine whether the document
141
+ # should be publicly visible" expression: "document.type != 'private' &&
142
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
143
+ # string" description: "Create a notification string with a timestamp."
144
+ # expression: "'New message received at ' + string(document.create_time)" The
145
+ # exact variables and functions that may be referenced within an expression are
146
+ # determined by the service that evaluates it. See the service documentation for
147
+ # additional information.
148
+ class Expr
149
+ include Google::Apis::Core::Hashable
150
+
151
+ # Optional. Description of the expression. This is a longer text which describes
152
+ # the expression, e.g. when hovered over it in a UI.
153
+ # Corresponds to the JSON property `description`
154
+ # @return [String]
155
+ attr_accessor :description
156
+
157
+ # Textual representation of an expression in Common Expression Language syntax.
158
+ # Corresponds to the JSON property `expression`
159
+ # @return [String]
160
+ attr_accessor :expression
161
+
162
+ # Optional. String indicating the location of the expression for error reporting,
163
+ # e.g. a file name and a position in the file.
164
+ # Corresponds to the JSON property `location`
165
+ # @return [String]
166
+ attr_accessor :location
167
+
168
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
169
+ # This can be used e.g. in UIs which allow to enter the expression.
170
+ # Corresponds to the JSON property `title`
171
+ # @return [String]
172
+ attr_accessor :title
173
+
174
+ def initialize(**args)
175
+ update!(**args)
176
+ end
177
+
178
+ # Update properties of this object
179
+ def update!(**args)
180
+ @description = args[:description] if args.key?(:description)
181
+ @expression = args[:expression] if args.key?(:expression)
182
+ @location = args[:location] if args.key?(:location)
183
+ @title = args[:title] if args.key?(:title)
184
+ end
185
+ end
186
+
187
+ # Response for the `ListSubscriptions` method.
188
+ class ListSubscriptionsResponse
189
+ include Google::Apis::Core::Hashable
190
+
191
+ # If not empty, indicates that there may be more subscriptions that match the
192
+ # request; this value should be passed in a new `ListSubscriptionsRequest` to
193
+ # get more subscriptions.
194
+ # Corresponds to the JSON property `nextPageToken`
195
+ # @return [String]
196
+ attr_accessor :next_page_token
197
+
198
+ # The subscriptions that match the request.
199
+ # Corresponds to the JSON property `subscriptions`
200
+ # @return [Array<Google::Apis::PubsubV1beta2::Subscription>]
201
+ attr_accessor :subscriptions
202
+
203
+ def initialize(**args)
204
+ update!(**args)
205
+ end
206
+
207
+ # Update properties of this object
208
+ def update!(**args)
209
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
210
+ @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
211
+ end
212
+ end
213
+
214
+ # Response for the `ListTopicSubscriptions` method.
215
+ class ListTopicSubscriptionsResponse
216
+ include Google::Apis::Core::Hashable
217
+
218
+ # If not empty, indicates that there may be more subscriptions that match the
219
+ # request; this value should be passed in a new `ListTopicSubscriptionsRequest`
220
+ # to get more subscriptions.
221
+ # Corresponds to the JSON property `nextPageToken`
222
+ # @return [String]
223
+ attr_accessor :next_page_token
224
+
225
+ # The names of the subscriptions that match the request.
226
+ # Corresponds to the JSON property `subscriptions`
227
+ # @return [Array<String>]
228
+ attr_accessor :subscriptions
229
+
230
+ def initialize(**args)
231
+ update!(**args)
232
+ end
233
+
234
+ # Update properties of this object
235
+ def update!(**args)
236
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
237
+ @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
238
+ end
239
+ end
240
+
241
+ # Response for the `ListTopics` method.
242
+ class ListTopicsResponse
243
+ include Google::Apis::Core::Hashable
244
+
245
+ # If not empty, indicates that there may be more topics that match the request;
246
+ # this value should be passed in a new `ListTopicsRequest`.
247
+ # Corresponds to the JSON property `nextPageToken`
248
+ # @return [String]
249
+ attr_accessor :next_page_token
250
+
251
+ # The resulting topics.
252
+ # Corresponds to the JSON property `topics`
253
+ # @return [Array<Google::Apis::PubsubV1beta2::Topic>]
254
+ attr_accessor :topics
255
+
256
+ def initialize(**args)
257
+ update!(**args)
258
+ end
259
+
260
+ # Update properties of this object
261
+ def update!(**args)
262
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
263
+ @topics = args[:topics] if args.key?(:topics)
264
+ end
265
+ end
266
+
267
+ # Request for the ModifyAckDeadline method.
268
+ class ModifyAckDeadlineRequest
269
+ include Google::Apis::Core::Hashable
270
+
271
+ # The new ack deadline with respect to the time this request was sent to the Pub/
272
+ # Sub system. Must be >= 0. For example, if the value is 10, the new ack
273
+ # deadline will expire 10 seconds after the `ModifyAckDeadline` call was made.
274
+ # Specifying zero may immediately make the message available for another pull
275
+ # request.
276
+ # Corresponds to the JSON property `ackDeadlineSeconds`
277
+ # @return [Fixnum]
278
+ attr_accessor :ack_deadline_seconds
279
+
280
+ # The acknowledgment ID. Either this or ack_ids must be populated, but not both.
281
+ # Corresponds to the JSON property `ackId`
282
+ # @return [String]
283
+ attr_accessor :ack_id
284
+
285
+ # List of acknowledgment IDs.
286
+ # Corresponds to the JSON property `ackIds`
287
+ # @return [Array<String>]
288
+ attr_accessor :ack_ids
289
+
290
+ def initialize(**args)
291
+ update!(**args)
292
+ end
293
+
294
+ # Update properties of this object
295
+ def update!(**args)
296
+ @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
297
+ @ack_id = args[:ack_id] if args.key?(:ack_id)
298
+ @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
299
+ end
300
+ end
301
+
302
+ # Request for the ModifyPushConfig method.
303
+ class ModifyPushConfigRequest
304
+ include Google::Apis::Core::Hashable
305
+
306
+ # Configuration for a push delivery endpoint.
307
+ # Corresponds to the JSON property `pushConfig`
308
+ # @return [Google::Apis::PubsubV1beta2::PushConfig]
309
+ attr_accessor :push_config
310
+
311
+ def initialize(**args)
312
+ update!(**args)
313
+ end
314
+
315
+ # Update properties of this object
316
+ def update!(**args)
317
+ @push_config = args[:push_config] if args.key?(:push_config)
318
+ end
319
+ end
320
+
321
+ # Contains information needed for generating an [OpenID Connect token](https://
322
+ # developers.google.com/identity/protocols/OpenIDConnect).
323
+ class OidcToken
324
+ include Google::Apis::Core::Hashable
325
+
326
+ # Audience to be used when generating OIDC token. The audience claim identifies
327
+ # the recipients that the JWT is intended for. The audience value is a single
328
+ # case-sensitive string. Having multiple values (array) for the audience field
329
+ # is not supported. More info about the OIDC JWT token audience here: https://
330
+ # tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified, the Push
331
+ # endpoint URL will be used.
332
+ # Corresponds to the JSON property `audience`
333
+ # @return [String]
334
+ attr_accessor :audience
335
+
336
+ # [Service account email](https://cloud.google.com/iam/docs/service-accounts) to
337
+ # be used for generating the OIDC token. The caller (for CreateSubscription,
338
+ # UpdateSubscription, and ModifyPushConfig RPCs) must have the iam.
339
+ # serviceAccounts.actAs permission for the service account.
340
+ # Corresponds to the JSON property `serviceAccountEmail`
341
+ # @return [String]
342
+ attr_accessor :service_account_email
343
+
344
+ def initialize(**args)
345
+ update!(**args)
346
+ end
347
+
348
+ # Update properties of this object
349
+ def update!(**args)
350
+ @audience = args[:audience] if args.key?(:audience)
351
+ @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
352
+ end
353
+ end
354
+
355
+ # An Identity and Access Management (IAM) policy, which specifies access
356
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
357
+ # A `binding` binds one or more `members` to a single `role`. Members can be
358
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
359
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
360
+ # role or a user-created custom role. For some types of Google Cloud resources,
361
+ # a `binding` can also specify a `condition`, which is a logical expression that
362
+ # allows access to a resource only if the expression evaluates to `true`. A
363
+ # condition can add constraints based on attributes of the request, the resource,
364
+ # or both. To learn which resources support conditions in their IAM policies,
365
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
366
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
367
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
368
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
369
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
370
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
371
+ # title": "expirable access", "description": "Does not grant access after Sep
372
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
373
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
374
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
375
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
376
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
377
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
378
+ # description: Does not grant access after Sep 2020 expression: request.time <
379
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
380
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
381
+ # google.com/iam/docs/).
382
+ class Policy
383
+ include Google::Apis::Core::Hashable
384
+
385
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
386
+ # condition` that determines how and when the `bindings` are applied. Each of
387
+ # the `bindings` must contain at least one member.
388
+ # Corresponds to the JSON property `bindings`
389
+ # @return [Array<Google::Apis::PubsubV1beta2::Binding>]
390
+ attr_accessor :bindings
391
+
392
+ # `etag` is used for optimistic concurrency control as a way to help prevent
393
+ # simultaneous updates of a policy from overwriting each other. It is strongly
394
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
395
+ # to perform policy updates in order to avoid race conditions: An `etag` is
396
+ # returned in the response to `getIamPolicy`, and systems are expected to put
397
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
398
+ # applied to the same version of the policy. **Important:** If you use IAM
399
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
400
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
401
+ # with a version `1` policy, and all of the conditions in the version `3` policy
402
+ # are lost.
403
+ # Corresponds to the JSON property `etag`
404
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
405
+ # @return [String]
406
+ attr_accessor :etag
407
+
408
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
409
+ # Requests that specify an invalid value are rejected. Any operation that
410
+ # affects conditional role bindings must specify version `3`. This requirement
411
+ # applies to the following operations: * Getting a policy that includes a
412
+ # conditional role binding * Adding a conditional role binding to a policy *
413
+ # Changing a conditional role binding in a policy * Removing any role binding,
414
+ # with or without a condition, from a policy that includes conditions **
415
+ # Important:** If you use IAM Conditions, you must include the `etag` field
416
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
417
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
418
+ # conditions in the version `3` policy are lost. If a policy does not include
419
+ # any conditions, operations on that policy may specify any valid version or
420
+ # leave the field unset. To learn which resources support conditions in their
421
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
422
+ # conditions/resource-policies).
423
+ # Corresponds to the JSON property `version`
424
+ # @return [Fixnum]
425
+ attr_accessor :version
426
+
427
+ def initialize(**args)
428
+ update!(**args)
429
+ end
430
+
431
+ # Update properties of this object
432
+ def update!(**args)
433
+ @bindings = args[:bindings] if args.key?(:bindings)
434
+ @etag = args[:etag] if args.key?(:etag)
435
+ @version = args[:version] if args.key?(:version)
436
+ end
437
+ end
438
+
439
+ # Request for the Publish method.
440
+ class PublishRequest
441
+ include Google::Apis::Core::Hashable
442
+
443
+ # The messages to publish.
444
+ # Corresponds to the JSON property `messages`
445
+ # @return [Array<Google::Apis::PubsubV1beta2::PubsubMessage>]
446
+ attr_accessor :messages
447
+
448
+ def initialize(**args)
449
+ update!(**args)
450
+ end
451
+
452
+ # Update properties of this object
453
+ def update!(**args)
454
+ @messages = args[:messages] if args.key?(:messages)
455
+ end
456
+ end
457
+
458
+ # Response for the `Publish` method.
459
+ class PublishResponse
460
+ include Google::Apis::Core::Hashable
461
+
462
+ # The server-assigned ID of each published message, in the same order as the
463
+ # messages in the request. IDs are guaranteed to be unique within the topic.
464
+ # Corresponds to the JSON property `messageIds`
465
+ # @return [Array<String>]
466
+ attr_accessor :message_ids
467
+
468
+ def initialize(**args)
469
+ update!(**args)
470
+ end
471
+
472
+ # Update properties of this object
473
+ def update!(**args)
474
+ @message_ids = args[:message_ids] if args.key?(:message_ids)
475
+ end
476
+ end
477
+
478
+ # A message data and its attributes. The message payload must not be empty; it
479
+ # must contain either a non-empty data field, or at least one attribute.
480
+ class PubsubMessage
481
+ include Google::Apis::Core::Hashable
482
+
483
+ # Optional attributes for this message.
484
+ # Corresponds to the JSON property `attributes`
485
+ # @return [Hash<String,String>]
486
+ attr_accessor :attributes
487
+
488
+ # The message payload. For JSON requests, the value of this field must be [
489
+ # base64-encoded](https://tools.ietf.org/html/rfc4648).
490
+ # Corresponds to the JSON property `data`
491
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
492
+ # @return [String]
493
+ attr_accessor :data
494
+
495
+ # ID of this message, assigned by the server when the message is published.
496
+ # Guaranteed to be unique within the topic. This value may be read by a
497
+ # subscriber that receives a `PubsubMessage` via a `Pull` call or a push
498
+ # delivery. It must not be populated by the publisher in a `Publish` call.
499
+ # Corresponds to the JSON property `messageId`
500
+ # @return [String]
501
+ attr_accessor :message_id
502
+
503
+ # The time at which the message was published, populated by the server when it
504
+ # receives the `Publish` call. It must not be populated by the publisher in a `
505
+ # Publish` call.
506
+ # Corresponds to the JSON property `publishTime`
507
+ # @return [String]
508
+ attr_accessor :publish_time
509
+
510
+ def initialize(**args)
511
+ update!(**args)
512
+ end
513
+
514
+ # Update properties of this object
515
+ def update!(**args)
516
+ @attributes = args[:attributes] if args.key?(:attributes)
517
+ @data = args[:data] if args.key?(:data)
518
+ @message_id = args[:message_id] if args.key?(:message_id)
519
+ @publish_time = args[:publish_time] if args.key?(:publish_time)
520
+ end
521
+ end
522
+
523
+ # Request for the `Pull` method.
524
+ class PullRequest
525
+ include Google::Apis::Core::Hashable
526
+
527
+ # The maximum number of messages returned for this request. The Pub/Sub system
528
+ # may return fewer than the number specified.
529
+ # Corresponds to the JSON property `maxMessages`
530
+ # @return [Fixnum]
531
+ attr_accessor :max_messages
532
+
533
+ # Optional. If this is specified as true the system will respond immediately
534
+ # even if it is not able to return a message in the `Pull` response. Otherwise
535
+ # the system is allowed to wait until at least one message is available rather
536
+ # than returning no messages. The client may cancel the request if it does not
537
+ # wish to wait any longer for the response. Warning: setting this field to `true`
538
+ # is discouraged because it adversely impacts the performance of `Pull`
539
+ # operations. We recommend that users do not set this field.
540
+ # Corresponds to the JSON property `returnImmediately`
541
+ # @return [Boolean]
542
+ attr_accessor :return_immediately
543
+ alias_method :return_immediately?, :return_immediately
544
+
545
+ def initialize(**args)
546
+ update!(**args)
547
+ end
548
+
549
+ # Update properties of this object
550
+ def update!(**args)
551
+ @max_messages = args[:max_messages] if args.key?(:max_messages)
552
+ @return_immediately = args[:return_immediately] if args.key?(:return_immediately)
553
+ end
554
+ end
555
+
556
+ # Response for the `Pull` method.
557
+ class PullResponse
558
+ include Google::Apis::Core::Hashable
559
+
560
+ # Received Pub/Sub messages. The Pub/Sub system will return zero messages if
561
+ # there are no more available in the backlog. The Pub/Sub system may return
562
+ # fewer than the `maxMessages` requested even if there are more messages
563
+ # available in the backlog.
564
+ # Corresponds to the JSON property `receivedMessages`
565
+ # @return [Array<Google::Apis::PubsubV1beta2::ReceivedMessage>]
566
+ attr_accessor :received_messages
567
+
568
+ def initialize(**args)
569
+ update!(**args)
570
+ end
571
+
572
+ # Update properties of this object
573
+ def update!(**args)
574
+ @received_messages = args[:received_messages] if args.key?(:received_messages)
575
+ end
576
+ end
577
+
578
+ # Configuration for a push delivery endpoint.
579
+ class PushConfig
580
+ include Google::Apis::Core::Hashable
581
+
582
+ # Endpoint configuration attributes. Every endpoint has a set of API supported
583
+ # attributes that can be used to control different aspects of the message
584
+ # delivery. The currently supported attribute is `x-goog-version`, which you can
585
+ # use to change the format of the push message. This attribute indicates the
586
+ # version of the data expected by the endpoint. This controls the shape of the
587
+ # envelope (i.e. its fields and metadata). The endpoint version is based on the
588
+ # version of the Pub/Sub API. If not present during the `CreateSubscription`
589
+ # call, it will default to the version of the API used to make such call. If not
590
+ # present during a `ModifyPushConfig` call, its value will not be changed. `
591
+ # GetSubscription` calls will always return a valid version, even if the
592
+ # subscription was created without this attribute. The possible values for this
593
+ # attribute are: * `v1beta1`: uses the push format defined in the v1beta1 Pub/
594
+ # Sub API. * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub
595
+ # API.
596
+ # Corresponds to the JSON property `attributes`
597
+ # @return [Hash<String,String>]
598
+ attr_accessor :attributes
599
+
600
+ # Contains information needed for generating an [OpenID Connect token](https://
601
+ # developers.google.com/identity/protocols/OpenIDConnect).
602
+ # Corresponds to the JSON property `oidcToken`
603
+ # @return [Google::Apis::PubsubV1beta2::OidcToken]
604
+ attr_accessor :oidc_token
605
+
606
+ # A URL locating the endpoint to which messages should be pushed. For example, a
607
+ # Webhook endpoint might use "https://example.com/push".
608
+ # Corresponds to the JSON property `pushEndpoint`
609
+ # @return [String]
610
+ attr_accessor :push_endpoint
611
+
612
+ def initialize(**args)
613
+ update!(**args)
614
+ end
615
+
616
+ # Update properties of this object
617
+ def update!(**args)
618
+ @attributes = args[:attributes] if args.key?(:attributes)
619
+ @oidc_token = args[:oidc_token] if args.key?(:oidc_token)
620
+ @push_endpoint = args[:push_endpoint] if args.key?(:push_endpoint)
621
+ end
622
+ end
623
+
624
+ # A message and its corresponding acknowledgment ID.
625
+ class ReceivedMessage
626
+ include Google::Apis::Core::Hashable
627
+
628
+ # This ID can be used to acknowledge the received message.
629
+ # Corresponds to the JSON property `ackId`
630
+ # @return [String]
631
+ attr_accessor :ack_id
632
+
633
+ # A message data and its attributes. The message payload must not be empty; it
634
+ # must contain either a non-empty data field, or at least one attribute.
635
+ # Corresponds to the JSON property `message`
636
+ # @return [Google::Apis::PubsubV1beta2::PubsubMessage]
637
+ attr_accessor :message
638
+
639
+ def initialize(**args)
640
+ update!(**args)
641
+ end
642
+
643
+ # Update properties of this object
644
+ def update!(**args)
645
+ @ack_id = args[:ack_id] if args.key?(:ack_id)
646
+ @message = args[:message] if args.key?(:message)
647
+ end
648
+ end
649
+
650
+ # Request message for `SetIamPolicy` method.
651
+ class SetIamPolicyRequest
652
+ include Google::Apis::Core::Hashable
653
+
654
+ # An Identity and Access Management (IAM) policy, which specifies access
655
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
656
+ # A `binding` binds one or more `members` to a single `role`. Members can be
657
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
658
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
659
+ # role or a user-created custom role. For some types of Google Cloud resources,
660
+ # a `binding` can also specify a `condition`, which is a logical expression that
661
+ # allows access to a resource only if the expression evaluates to `true`. A
662
+ # condition can add constraints based on attributes of the request, the resource,
663
+ # or both. To learn which resources support conditions in their IAM policies,
664
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
665
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
666
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
667
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
668
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
669
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
670
+ # title": "expirable access", "description": "Does not grant access after Sep
671
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
672
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
673
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
674
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
675
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
676
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
677
+ # description: Does not grant access after Sep 2020 expression: request.time <
678
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
679
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
680
+ # google.com/iam/docs/).
681
+ # Corresponds to the JSON property `policy`
682
+ # @return [Google::Apis::PubsubV1beta2::Policy]
683
+ attr_accessor :policy
684
+
685
+ def initialize(**args)
686
+ update!(**args)
687
+ end
688
+
689
+ # Update properties of this object
690
+ def update!(**args)
691
+ @policy = args[:policy] if args.key?(:policy)
692
+ end
693
+ end
694
+
695
+ # A subscription resource.
696
+ class Subscription
697
+ include Google::Apis::Core::Hashable
698
+
699
+ # This value is the maximum time after a subscriber receives a message before
700
+ # the subscriber should acknowledge the message. After message delivery but
701
+ # before the ack deadline expires and before the message is acknowledged, it is
702
+ # an outstanding message and will not be delivered again during that time (on a
703
+ # best-effort basis). For pull subscriptions, this value is used as the initial
704
+ # value for the ack deadline. To override this value for a given message, call `
705
+ # ModifyAckDeadline` with the corresponding `ack_id` if using pull. The maximum
706
+ # custom deadline you can specify is 600 seconds (10 minutes). For push delivery,
707
+ # this value is also used to set the request timeout for the call to the push
708
+ # endpoint. If the subscriber never acknowledges the message, the Pub/Sub system
709
+ # will eventually redeliver the message. If this parameter is 0, a default value
710
+ # of 10 seconds is used.
711
+ # Corresponds to the JSON property `ackDeadlineSeconds`
712
+ # @return [Fixnum]
713
+ attr_accessor :ack_deadline_seconds
714
+
715
+ # The name of the subscription. It must have the format `"projects/`project`/
716
+ # subscriptions/`subscription`"`. ``subscription`` must start with a letter, and
717
+ # contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
718
+ # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%
719
+ # `). It must be between 3 and 255 characters in length, and it must not start
720
+ # with `"goog"`.
721
+ # Corresponds to the JSON property `name`
722
+ # @return [String]
723
+ attr_accessor :name
724
+
725
+ # Configuration for a push delivery endpoint.
726
+ # Corresponds to the JSON property `pushConfig`
727
+ # @return [Google::Apis::PubsubV1beta2::PushConfig]
728
+ attr_accessor :push_config
729
+
730
+ # The name of the topic from which this subscription is receiving messages. The
731
+ # value of this field will be `_deleted-topic_` if the topic has been deleted.
732
+ # Corresponds to the JSON property `topic`
733
+ # @return [String]
734
+ attr_accessor :topic
735
+
736
+ def initialize(**args)
737
+ update!(**args)
738
+ end
739
+
740
+ # Update properties of this object
741
+ def update!(**args)
742
+ @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
743
+ @name = args[:name] if args.key?(:name)
744
+ @push_config = args[:push_config] if args.key?(:push_config)
745
+ @topic = args[:topic] if args.key?(:topic)
746
+ end
747
+ end
748
+
749
+ # Request message for `TestIamPermissions` method.
750
+ class TestIamPermissionsRequest
751
+ include Google::Apis::Core::Hashable
752
+
753
+ # The set of permissions to check for the `resource`. Permissions with wildcards
754
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
755
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
756
+ # Corresponds to the JSON property `permissions`
757
+ # @return [Array<String>]
758
+ attr_accessor :permissions
759
+
760
+ def initialize(**args)
761
+ update!(**args)
762
+ end
763
+
764
+ # Update properties of this object
765
+ def update!(**args)
766
+ @permissions = args[:permissions] if args.key?(:permissions)
767
+ end
768
+ end
769
+
770
+ # Response message for `TestIamPermissions` method.
771
+ class TestIamPermissionsResponse
772
+ include Google::Apis::Core::Hashable
773
+
774
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
775
+ # Corresponds to the JSON property `permissions`
776
+ # @return [Array<String>]
777
+ attr_accessor :permissions
778
+
779
+ def initialize(**args)
780
+ update!(**args)
781
+ end
782
+
783
+ # Update properties of this object
784
+ def update!(**args)
785
+ @permissions = args[:permissions] if args.key?(:permissions)
786
+ end
787
+ end
788
+
789
+ # A topic resource.
790
+ class Topic
791
+ include Google::Apis::Core::Hashable
792
+
793
+ # The name of the topic. It must have the format `"projects/`project`/topics/`
794
+ # topic`"`. ``topic`` must start with a letter, and contain only letters (`[A-Za-
795
+ # z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`),
796
+ # tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255
797
+ # characters in length, and it must not start with `"goog"`.
798
+ # Corresponds to the JSON property `name`
799
+ # @return [String]
800
+ attr_accessor :name
801
+
802
+ def initialize(**args)
803
+ update!(**args)
804
+ end
805
+
806
+ # Update properties of this object
807
+ def update!(**args)
808
+ @name = args[:name] if args.key?(:name)
809
+ end
810
+ end
811
+ end
812
+ end
813
+ end