google-cloud-pubsub-v1 0.11.0 → 1.11.1

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.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +72 -101
  3. data/README.md +32 -22
  4. data/lib/google/cloud/pubsub/v1/{publisher/helpers.rb → _helpers.rb} +4 -10
  5. data/lib/google/cloud/pubsub/v1/iam_policy/client.rb +33 -337
  6. data/lib/google/cloud/pubsub/v1/iam_policy/credentials.rb +6 -2
  7. data/lib/google/cloud/pubsub/v1/iam_policy.rb +5 -31
  8. data/lib/google/cloud/pubsub/v1/publisher/credentials.rb +2 -37
  9. data/lib/google/cloud/pubsub/v1/publisher.rb +2 -35
  10. data/lib/google/cloud/pubsub/v1/schema_service/client.rb +571 -35
  11. data/lib/google/cloud/pubsub/v1/schema_service.rb +1 -1
  12. data/lib/google/cloud/pubsub/v1/subscriber/credentials.rb +2 -37
  13. data/lib/google/cloud/pubsub/v1/subscriber.rb +2 -36
  14. data/lib/google/cloud/pubsub/v1/{subscriber → subscription_admin}/client.rb +299 -208
  15. data/lib/google/cloud/pubsub/v1/subscription_admin/credentials.rb +52 -0
  16. data/lib/google/cloud/pubsub/v1/subscription_admin/helpers.rb +50 -0
  17. data/lib/google/cloud/pubsub/v1/{subscriber → subscription_admin}/paths.rb +3 -3
  18. data/lib/google/cloud/pubsub/v1/subscription_admin.rb +51 -0
  19. data/lib/google/cloud/pubsub/v1/{publisher → topic_admin}/client.rb +199 -108
  20. data/lib/google/cloud/pubsub/v1/topic_admin/credentials.rb +52 -0
  21. data/lib/google/cloud/pubsub/v1/topic_admin/helpers.rb +50 -0
  22. data/lib/google/cloud/pubsub/v1/{publisher → topic_admin}/paths.rb +3 -3
  23. data/lib/google/cloud/pubsub/v1/topic_admin.rb +50 -0
  24. data/lib/google/cloud/pubsub/v1/version.rb +1 -1
  25. data/lib/google/cloud/pubsub/v1.rb +4 -5
  26. data/lib/google/pubsub/v1/pubsub_pb.rb +63 -246
  27. data/lib/google/pubsub/v1/pubsub_services_pb.rb +23 -24
  28. data/lib/google/pubsub/v1/schema_pb.rb +31 -60
  29. data/lib/google/pubsub/v1/schema_services_pb.rb +8 -0
  30. data/proto_docs/google/api/client.rb +473 -0
  31. data/proto_docs/google/api/field_behavior.rb +14 -0
  32. data/proto_docs/google/api/launch_stage.rb +71 -0
  33. data/proto_docs/google/api/resource.rb +7 -2
  34. data/proto_docs/google/protobuf/empty.rb +0 -2
  35. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  36. data/proto_docs/google/pubsub/v1/pubsub.rb +1189 -227
  37. data/proto_docs/google/pubsub/v1/schema.rb +93 -4
  38. metadata +25 -142
  39. data/lib/google/cloud/pubsub/v1/subscriber/helpers.rb +0 -25
  40. data/proto_docs/google/iam/v1/iam_policy.rb +0 -87
  41. data/proto_docs/google/iam/v1/options.rb +0 -50
  42. data/proto_docs/google/iam/v1/policy.rb +0 -418
@@ -34,6 +34,12 @@ module Google
34
34
  # The definition of the schema. This should contain a string representing
35
35
  # the full definition of the schema that is a valid schema definition of
36
36
  # the type specified in `type`.
37
+ # @!attribute [r] revision_id
38
+ # @return [::String]
39
+ # Output only. Immutable. The revision ID of the schema.
40
+ # @!attribute [r] revision_create_time
41
+ # @return [::Google::Protobuf::Timestamp]
42
+ # Output only. The timestamp that the revision was created.
37
43
  class Schema
38
44
  include ::Google::Protobuf::MessageExts
39
45
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -68,8 +74,8 @@ module Google
68
74
  # The ID to use for the schema, which will become the final component of
69
75
  # the schema's resource name.
70
76
  #
71
- # See https://cloud.google.com/pubsub/docs/admin#resource_names for resource
72
- # name constraints.
77
+ # See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for
78
+ # resource name constraints.
73
79
  class CreateSchemaRequest
74
80
  include ::Google::Protobuf::MessageExts
75
81
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -83,8 +89,7 @@ module Google
83
89
  # @!attribute [rw] view
84
90
  # @return [::Google::Cloud::PubSub::V1::SchemaView]
85
91
  # The set of fields to return in the response. If not set, returns a Schema
86
- # with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all
87
- # fields.
92
+ # with all fields filled out. Set to `BASIC` to omit the `definition`.
88
93
  class GetSchemaRequest
89
94
  include ::Google::Protobuf::MessageExts
90
95
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -126,6 +131,86 @@ module Google
126
131
  extend ::Google::Protobuf::MessageExts::ClassMethods
127
132
  end
128
133
 
134
+ # Request for the `ListSchemaRevisions` method.
135
+ # @!attribute [rw] name
136
+ # @return [::String]
137
+ # Required. The name of the schema to list revisions for.
138
+ # @!attribute [rw] view
139
+ # @return [::Google::Cloud::PubSub::V1::SchemaView]
140
+ # The set of Schema fields to return in the response. If not set, returns
141
+ # Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
142
+ # retrieve all fields.
143
+ # @!attribute [rw] page_size
144
+ # @return [::Integer]
145
+ # The maximum number of revisions to return per page.
146
+ # @!attribute [rw] page_token
147
+ # @return [::String]
148
+ # The page token, received from a previous ListSchemaRevisions call.
149
+ # Provide this to retrieve the subsequent page.
150
+ class ListSchemaRevisionsRequest
151
+ include ::Google::Protobuf::MessageExts
152
+ extend ::Google::Protobuf::MessageExts::ClassMethods
153
+ end
154
+
155
+ # Response for the `ListSchemaRevisions` method.
156
+ # @!attribute [rw] schemas
157
+ # @return [::Array<::Google::Cloud::PubSub::V1::Schema>]
158
+ # The revisions of the schema.
159
+ # @!attribute [rw] next_page_token
160
+ # @return [::String]
161
+ # A token that can be sent as `page_token` to retrieve the next page.
162
+ # If this field is empty, there are no subsequent pages.
163
+ class ListSchemaRevisionsResponse
164
+ include ::Google::Protobuf::MessageExts
165
+ extend ::Google::Protobuf::MessageExts::ClassMethods
166
+ end
167
+
168
+ # Request for CommitSchema method.
169
+ # @!attribute [rw] name
170
+ # @return [::String]
171
+ # Required. The name of the schema we are revising.
172
+ # Format is `projects/{project}/schemas/{schema}`.
173
+ # @!attribute [rw] schema
174
+ # @return [::Google::Cloud::PubSub::V1::Schema]
175
+ # Required. The schema revision to commit.
176
+ class CommitSchemaRequest
177
+ include ::Google::Protobuf::MessageExts
178
+ extend ::Google::Protobuf::MessageExts::ClassMethods
179
+ end
180
+
181
+ # Request for the `RollbackSchema` method.
182
+ # @!attribute [rw] name
183
+ # @return [::String]
184
+ # Required. The schema being rolled back with revision id.
185
+ # @!attribute [rw] revision_id
186
+ # @return [::String]
187
+ # Required. The revision ID to roll back to.
188
+ # It must be a revision of the same schema.
189
+ #
190
+ # Example: c7cfa2a8
191
+ class RollbackSchemaRequest
192
+ include ::Google::Protobuf::MessageExts
193
+ extend ::Google::Protobuf::MessageExts::ClassMethods
194
+ end
195
+
196
+ # Request for the `DeleteSchemaRevision` method.
197
+ # @!attribute [rw] name
198
+ # @return [::String]
199
+ # Required. The name of the schema revision to be deleted, with a revision ID
200
+ # explicitly included.
201
+ #
202
+ # Example: `projects/123/schemas/my-schema@c7cfa2a8`
203
+ # @!attribute [rw] revision_id
204
+ # @deprecated This field is deprecated and may be removed in the next major version update.
205
+ # @return [::String]
206
+ # Optional. This field is deprecated and should not be used for specifying
207
+ # the revision ID. The revision ID should be specified via the `name`
208
+ # parameter.
209
+ class DeleteSchemaRevisionRequest
210
+ include ::Google::Protobuf::MessageExts
211
+ extend ::Google::Protobuf::MessageExts::ClassMethods
212
+ end
213
+
129
214
  # Request for the `DeleteSchema` method.
130
215
  # @!attribute [rw] name
131
216
  # @return [::String]
@@ -166,9 +251,13 @@ module Google
166
251
  # Name of the schema against which to validate.
167
252
  #
168
253
  # Format is `projects/{project}/schemas/{schema}`.
254
+ #
255
+ # Note: The following fields are mutually exclusive: `name`, `schema`. If a field in that set is populated, all other fields in the set will automatically be cleared.
169
256
  # @!attribute [rw] schema
170
257
  # @return [::Google::Cloud::PubSub::V1::Schema]
171
258
  # Ad-hoc schema against which to validate
259
+ #
260
+ # Note: The following fields are mutually exclusive: `schema`, `name`. If a field in that set is populated, all other fields in the set will automatically be cleared.
172
261
  # @!attribute [rw] message
173
262
  # @return [::String]
174
263
  # Message to validate against the provided `schema_spec`.
metadata CHANGED
@@ -1,37 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-pubsub-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2022-07-07 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0.10'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: 2.a
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '0.10'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: 2.a
33
- - !ruby/object:Gem::Dependency
34
- name: google-cloud-errors
35
14
  requirement: !ruby/object:Gem::Requirement
36
15
  requirements:
37
16
  - - "~>"
@@ -45,131 +24,33 @@ dependencies:
45
24
  - !ruby/object:Gem::Version
46
25
  version: '1.0'
47
26
  - !ruby/object:Gem::Dependency
48
- name: grpc-google-iam-v1
27
+ name: google-cloud-errors
49
28
  requirement: !ruby/object:Gem::Requirement
50
29
  requirements:
51
30
  - - "~>"
52
31
  - !ruby/object:Gem::Version
53
- version: '1.1'
32
+ version: '1.0'
54
33
  type: :runtime
55
34
  prerelease: false
56
35
  version_requirements: !ruby/object:Gem::Requirement
57
36
  requirements:
58
37
  - - "~>"
59
38
  - !ruby/object:Gem::Version
60
- version: '1.1'
61
- - !ruby/object:Gem::Dependency
62
- name: google-style
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: 1.26.1
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: 1.26.1
75
- - !ruby/object:Gem::Dependency
76
- name: minitest
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '5.16'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '5.16'
89
- - !ruby/object:Gem::Dependency
90
- name: minitest-focus
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '1.1'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '1.1'
103
- - !ruby/object:Gem::Dependency
104
- name: minitest-rg
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '5.2'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "~>"
115
- - !ruby/object:Gem::Version
116
- version: '5.2'
117
- - !ruby/object:Gem::Dependency
118
- name: rake
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: '13.0'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- version: '13.0'
131
- - !ruby/object:Gem::Dependency
132
- name: redcarpet
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '3.0'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '3.0'
145
- - !ruby/object:Gem::Dependency
146
- name: simplecov
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '0.18'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '0.18'
39
+ version: '1.0'
159
40
  - !ruby/object:Gem::Dependency
160
- name: yard
41
+ name: google-iam-v1
161
42
  requirement: !ruby/object:Gem::Requirement
162
43
  requirements:
163
44
  - - "~>"
164
45
  - !ruby/object:Gem::Version
165
- version: '0.9'
166
- type: :development
46
+ version: '1.3'
47
+ type: :runtime
167
48
  prerelease: false
168
49
  version_requirements: !ruby/object:Gem::Requirement
169
50
  requirements:
170
51
  - - "~>"
171
52
  - !ruby/object:Gem::Version
172
- version: '0.9'
53
+ version: '1.3'
173
54
  description: Cloud Pub/Sub is a fully-managed real-time messaging service that allows
174
55
  you to send and receive messages between independent applications. Note that google-cloud-pubsub-v1
175
56
  is a version-specific client library. For most uses, we recommend installing the
@@ -185,34 +66,38 @@ files:
185
66
  - README.md
186
67
  - lib/google-cloud-pubsub-v1.rb
187
68
  - lib/google/cloud/pubsub/v1.rb
69
+ - lib/google/cloud/pubsub/v1/_helpers.rb
188
70
  - lib/google/cloud/pubsub/v1/iam_policy.rb
189
71
  - lib/google/cloud/pubsub/v1/iam_policy/client.rb
190
72
  - lib/google/cloud/pubsub/v1/iam_policy/credentials.rb
191
73
  - lib/google/cloud/pubsub/v1/publisher.rb
192
- - lib/google/cloud/pubsub/v1/publisher/client.rb
193
74
  - lib/google/cloud/pubsub/v1/publisher/credentials.rb
194
- - lib/google/cloud/pubsub/v1/publisher/helpers.rb
195
- - lib/google/cloud/pubsub/v1/publisher/paths.rb
196
75
  - lib/google/cloud/pubsub/v1/schema_service.rb
197
76
  - lib/google/cloud/pubsub/v1/schema_service/client.rb
198
77
  - lib/google/cloud/pubsub/v1/schema_service/credentials.rb
199
78
  - lib/google/cloud/pubsub/v1/schema_service/paths.rb
200
79
  - lib/google/cloud/pubsub/v1/subscriber.rb
201
- - lib/google/cloud/pubsub/v1/subscriber/client.rb
202
80
  - lib/google/cloud/pubsub/v1/subscriber/credentials.rb
203
- - lib/google/cloud/pubsub/v1/subscriber/helpers.rb
204
- - lib/google/cloud/pubsub/v1/subscriber/paths.rb
81
+ - lib/google/cloud/pubsub/v1/subscription_admin.rb
82
+ - lib/google/cloud/pubsub/v1/subscription_admin/client.rb
83
+ - lib/google/cloud/pubsub/v1/subscription_admin/credentials.rb
84
+ - lib/google/cloud/pubsub/v1/subscription_admin/helpers.rb
85
+ - lib/google/cloud/pubsub/v1/subscription_admin/paths.rb
86
+ - lib/google/cloud/pubsub/v1/topic_admin.rb
87
+ - lib/google/cloud/pubsub/v1/topic_admin/client.rb
88
+ - lib/google/cloud/pubsub/v1/topic_admin/credentials.rb
89
+ - lib/google/cloud/pubsub/v1/topic_admin/helpers.rb
90
+ - lib/google/cloud/pubsub/v1/topic_admin/paths.rb
205
91
  - lib/google/cloud/pubsub/v1/version.rb
206
92
  - lib/google/pubsub/v1/pubsub_pb.rb
207
93
  - lib/google/pubsub/v1/pubsub_services_pb.rb
208
94
  - lib/google/pubsub/v1/schema_pb.rb
209
95
  - lib/google/pubsub/v1/schema_services_pb.rb
210
96
  - proto_docs/README.md
97
+ - proto_docs/google/api/client.rb
211
98
  - proto_docs/google/api/field_behavior.rb
99
+ - proto_docs/google/api/launch_stage.rb
212
100
  - proto_docs/google/api/resource.rb
213
- - proto_docs/google/iam/v1/iam_policy.rb
214
- - proto_docs/google/iam/v1/options.rb
215
- - proto_docs/google/iam/v1/policy.rb
216
101
  - proto_docs/google/protobuf/duration.rb
217
102
  - proto_docs/google/protobuf/empty.rb
218
103
  - proto_docs/google/protobuf/field_mask.rb
@@ -224,7 +109,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
224
109
  licenses:
225
110
  - Apache-2.0
226
111
  metadata: {}
227
- post_install_message:
228
112
  rdoc_options: []
229
113
  require_paths:
230
114
  - lib
@@ -232,15 +116,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
232
116
  requirements:
233
117
  - - ">="
234
118
  - !ruby/object:Gem::Version
235
- version: '2.6'
119
+ version: '3.1'
236
120
  required_rubygems_version: !ruby/object:Gem::Requirement
237
121
  requirements:
238
122
  - - ">="
239
123
  - !ruby/object:Gem::Version
240
124
  version: '0'
241
125
  requirements: []
242
- rubygems_version: 3.3.14
243
- signing_key:
126
+ rubygems_version: 3.6.9
244
127
  specification_version: 4
245
- summary: API Client library for the Cloud Pub/Sub V1 API
128
+ summary: Provides reliable, many-to-many, asynchronous messaging between applications.
246
129
  test_files: []
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2020 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
-
18
- Google::Cloud::PubSub::V1::Subscriber::Client.configure do |config|
19
- config.channel_args ||= {}
20
- config.channel_args["grpc.max_send_message_length"] = -1
21
- config.channel_args["grpc.max_receive_message_length"] = -1
22
- config.channel_args["grpc.keepalive_time_ms"] = 300_000
23
- # Set max metadata size to 4 MB.
24
- config.channel_args["grpc.max_metadata_size"] = 4 * 1024 * 1024
25
- end
@@ -1,87 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2020 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 Iam
22
- module V1
23
- # Request message for `SetIamPolicy` method.
24
- # @!attribute [rw] resource
25
- # @return [::String]
26
- # REQUIRED: The resource for which the policy is being specified.
27
- # See the operation documentation for the appropriate value for this field.
28
- # @!attribute [rw] policy
29
- # @return [::Google::Iam::V1::Policy]
30
- # REQUIRED: The complete policy to be applied to the `resource`. The size of
31
- # the policy is limited to a few 10s of KB. An empty policy is a
32
- # valid policy but certain Cloud Platform services (such as Projects)
33
- # might reject them.
34
- # @!attribute [rw] update_mask
35
- # @return [::Google::Protobuf::FieldMask]
36
- # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
37
- # the fields in the mask will be modified. If no mask is provided, the
38
- # following default mask is used:
39
- #
40
- # `paths: "bindings, etag"`
41
- class SetIamPolicyRequest
42
- include ::Google::Protobuf::MessageExts
43
- extend ::Google::Protobuf::MessageExts::ClassMethods
44
- end
45
-
46
- # Request message for `GetIamPolicy` method.
47
- # @!attribute [rw] resource
48
- # @return [::String]
49
- # REQUIRED: The resource for which the policy is being requested.
50
- # See the operation documentation for the appropriate value for this field.
51
- # @!attribute [rw] options
52
- # @return [::Google::Iam::V1::GetPolicyOptions]
53
- # OPTIONAL: A `GetPolicyOptions` object for specifying options to
54
- # `GetIamPolicy`.
55
- class GetIamPolicyRequest
56
- include ::Google::Protobuf::MessageExts
57
- extend ::Google::Protobuf::MessageExts::ClassMethods
58
- end
59
-
60
- # Request message for `TestIamPermissions` method.
61
- # @!attribute [rw] resource
62
- # @return [::String]
63
- # REQUIRED: The resource for which the policy detail is being requested.
64
- # See the operation documentation for the appropriate value for this field.
65
- # @!attribute [rw] permissions
66
- # @return [::Array<::String>]
67
- # The set of permissions to check for the `resource`. Permissions with
68
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
69
- # information see
70
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
71
- class TestIamPermissionsRequest
72
- include ::Google::Protobuf::MessageExts
73
- extend ::Google::Protobuf::MessageExts::ClassMethods
74
- end
75
-
76
- # Response message for `TestIamPermissions` method.
77
- # @!attribute [rw] permissions
78
- # @return [::Array<::String>]
79
- # A subset of `TestPermissionsRequest.permissions` that the caller is
80
- # allowed.
81
- class TestIamPermissionsResponse
82
- include ::Google::Protobuf::MessageExts
83
- extend ::Google::Protobuf::MessageExts::ClassMethods
84
- end
85
- end
86
- end
87
- end
@@ -1,50 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2020 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 Iam
22
- module V1
23
- # Encapsulates settings provided to GetIamPolicy.
24
- # @!attribute [rw] requested_policy_version
25
- # @return [::Integer]
26
- # Optional. The maximum policy version that will be used to format the
27
- # policy.
28
- #
29
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
30
- # rejected.
31
- #
32
- # Requests for policies with any conditional role bindings must specify
33
- # version 3. Policies with no conditional role bindings may specify any valid
34
- # value or leave the field unset.
35
- #
36
- # The policy in the response might use the policy version that you specified,
37
- # or it might use a lower policy version. For example, if you specify version
38
- # 3, but the policy has no conditional role bindings, the response uses
39
- # version 1.
40
- #
41
- # To learn which resources support conditions in their IAM policies, see the
42
- # [IAM
43
- # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
44
- class GetPolicyOptions
45
- include ::Google::Protobuf::MessageExts
46
- extend ::Google::Protobuf::MessageExts::ClassMethods
47
- end
48
- end
49
- end
50
- end