google-cloud-gemini_data_analytics-v1beta 0.a → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/cloud/gemini_data_analytics/v1beta/bindings_override.rb +75 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/client.rb +1286 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/credentials.rb +47 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/operations.rb +813 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/paths.rb +69 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/client.rb +1212 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/operations.rb +914 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/service_stub.rb +573 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest.rb +54 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service.rb +56 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/client.rb +928 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/credentials.rb +47 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/paths.rb +102 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/client.rb +877 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/service_stub.rb +382 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest.rb +55 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service.rb +57 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/rest.rb +39 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/version.rb +7 -2
- data/lib/google/cloud/gemini_data_analytics/v1beta.rb +46 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/context_pb.rb +54 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/conversation_pb.rb +52 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/credentials_pb.rb +47 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/data_agent_pb.rb +49 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_pb.rb +67 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/data_agent_service_services_pb.rb +60 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/data_analytics_agent_pb.rb +46 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_pb.rb +85 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_services_pb.rb +57 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/datasource_pb.rb +58 -0
- data/lib/google-cloud-gemini_data_analytics-v1beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb +136 -0
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/conversation.rb +144 -0
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/credentials.rb +74 -0
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_agent.rb +90 -0
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_agent_service.rb +267 -0
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_analytics_agent.rb +46 -0
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb +576 -0
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/datasource.rb +280 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +426 -0
- data/proto_docs/google/longrunning/operations.rb +173 -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/struct.rb +108 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +123 -9
@@ -0,0 +1,280 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module GeminiDataAnalytics
|
23
|
+
module V1beta
|
24
|
+
# A collection of references to datasources.
|
25
|
+
# @!attribute [rw] bq
|
26
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::BigQueryTableReferences]
|
27
|
+
# References to BigQuery tables.
|
28
|
+
#
|
29
|
+
# Note: The following fields are mutually exclusive: `bq`, `studio`, `looker`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
30
|
+
# @!attribute [rw] studio
|
31
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::StudioDatasourceReferences]
|
32
|
+
# References to Looker Studio datasources.
|
33
|
+
#
|
34
|
+
# Note: The following fields are mutually exclusive: `studio`, `bq`, `looker`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
35
|
+
# @!attribute [rw] looker
|
36
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::LookerExploreReferences]
|
37
|
+
# References to Looker Explores.
|
38
|
+
#
|
39
|
+
# Note: The following fields are mutually exclusive: `looker`, `bq`, `studio`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
40
|
+
class DatasourceReferences
|
41
|
+
include ::Google::Protobuf::MessageExts
|
42
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
43
|
+
end
|
44
|
+
|
45
|
+
# Message representing references to BigQuery tables.
|
46
|
+
# @!attribute [rw] table_references
|
47
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::BigQueryTableReference>]
|
48
|
+
# Required. References to BigQuery tables.
|
49
|
+
class BigQueryTableReferences
|
50
|
+
include ::Google::Protobuf::MessageExts
|
51
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
52
|
+
end
|
53
|
+
|
54
|
+
# Message representing a reference to a single BigQuery table.
|
55
|
+
# @!attribute [rw] project_id
|
56
|
+
# @return [::String]
|
57
|
+
# Required. The project that the table belongs to.
|
58
|
+
# @!attribute [rw] dataset_id
|
59
|
+
# @return [::String]
|
60
|
+
# Required. The dataset that the table belongs to.
|
61
|
+
# @!attribute [rw] table_id
|
62
|
+
# @return [::String]
|
63
|
+
# Required. The table id.
|
64
|
+
# @!attribute [rw] schema
|
65
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::Schema]
|
66
|
+
# Optional. The schema of the datasource.
|
67
|
+
class BigQueryTableReference
|
68
|
+
include ::Google::Protobuf::MessageExts
|
69
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
70
|
+
end
|
71
|
+
|
72
|
+
# Message representing references to Looker Studio datasources.
|
73
|
+
# @!attribute [rw] studio_references
|
74
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::StudioDatasourceReference>]
|
75
|
+
# The references to the studio datasources.
|
76
|
+
class StudioDatasourceReferences
|
77
|
+
include ::Google::Protobuf::MessageExts
|
78
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
79
|
+
end
|
80
|
+
|
81
|
+
# Message representing a reference to a single Looker Studio datasource.
|
82
|
+
# @!attribute [rw] datasource_id
|
83
|
+
# @return [::String]
|
84
|
+
# Required. The id of the datasource.
|
85
|
+
class StudioDatasourceReference
|
86
|
+
include ::Google::Protobuf::MessageExts
|
87
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
88
|
+
end
|
89
|
+
|
90
|
+
# Message representing references to Looker explores.
|
91
|
+
# @!attribute [rw] explore_references
|
92
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::LookerExploreReference>]
|
93
|
+
# Required. References to Looker explores.
|
94
|
+
# @!attribute [rw] credentials
|
95
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::Credentials]
|
96
|
+
# Optional. The credentials to use when calling the Looker API.
|
97
|
+
#
|
98
|
+
# Currently supports both OAuth token and API key-based credentials, as
|
99
|
+
# described in
|
100
|
+
# [Authentication with an
|
101
|
+
# SDK](https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk).
|
102
|
+
class LookerExploreReferences
|
103
|
+
include ::Google::Protobuf::MessageExts
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
105
|
+
end
|
106
|
+
|
107
|
+
# Message representing a reference to a single Looker explore.
|
108
|
+
# @!attribute [rw] looker_instance_uri
|
109
|
+
# @return [::String]
|
110
|
+
# Required. The base url of the Looker instance.
|
111
|
+
#
|
112
|
+
# Note: The following fields are mutually exclusive: `looker_instance_uri`, `private_looker_instance_info`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
113
|
+
# @!attribute [rw] private_looker_instance_info
|
114
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::PrivateLookerInstanceInfo]
|
115
|
+
# Private Looker instance info.
|
116
|
+
#
|
117
|
+
# Note: The following fields are mutually exclusive: `private_looker_instance_info`, `looker_instance_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
118
|
+
# @!attribute [rw] lookml_model
|
119
|
+
# @return [::String]
|
120
|
+
# Required. Looker model, as outlined in
|
121
|
+
# [Major LookML
|
122
|
+
# structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures).
|
123
|
+
# Name of the LookML model.
|
124
|
+
# @!attribute [rw] explore
|
125
|
+
# @return [::String]
|
126
|
+
# Required. Looker Explore, as outlined in
|
127
|
+
# [Major LookML
|
128
|
+
# structures](https://cloud.google.com/looker/docs/lookml-terms-and-concepts#major_lookml_structures).
|
129
|
+
# Name of the LookML Explore.
|
130
|
+
# @!attribute [rw] schema
|
131
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::Schema]
|
132
|
+
# Optional. The schema of the datasource.
|
133
|
+
class LookerExploreReference
|
134
|
+
include ::Google::Protobuf::MessageExts
|
135
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
136
|
+
end
|
137
|
+
|
138
|
+
# Message representing a private Looker instance info required if the Looker
|
139
|
+
# instance is behind a private network.
|
140
|
+
# @!attribute [rw] looker_instance_id
|
141
|
+
# @return [::String]
|
142
|
+
# The Looker instance id.
|
143
|
+
# @!attribute [rw] service_directory_name
|
144
|
+
# @return [::String]
|
145
|
+
# The service directory name of the Looker instance.
|
146
|
+
class PrivateLookerInstanceInfo
|
147
|
+
include ::Google::Protobuf::MessageExts
|
148
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
149
|
+
end
|
150
|
+
|
151
|
+
# A datasource that can be used to answer questions.
|
152
|
+
# @!attribute [rw] bigquery_table_reference
|
153
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::BigQueryTableReference]
|
154
|
+
# A reference to a BigQuery table.
|
155
|
+
#
|
156
|
+
# Note: The following fields are mutually exclusive: `bigquery_table_reference`, `studio_datasource_id`, `looker_explore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
157
|
+
# @!attribute [rw] studio_datasource_id
|
158
|
+
# @return [::String]
|
159
|
+
# A reference to a Looker Studio datasource.
|
160
|
+
#
|
161
|
+
# Note: The following fields are mutually exclusive: `studio_datasource_id`, `bigquery_table_reference`, `looker_explore_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
162
|
+
# @!attribute [rw] looker_explore_reference
|
163
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::LookerExploreReference]
|
164
|
+
# A reference to a Looker explore.
|
165
|
+
#
|
166
|
+
# Note: The following fields are mutually exclusive: `looker_explore_reference`, `bigquery_table_reference`, `studio_datasource_id`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
167
|
+
# @!attribute [rw] schema
|
168
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::Schema]
|
169
|
+
# Optional. The schema of the datasource.
|
170
|
+
class Datasource
|
171
|
+
include ::Google::Protobuf::MessageExts
|
172
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
173
|
+
end
|
174
|
+
|
175
|
+
# The schema of a Datasource or QueryResult instance.
|
176
|
+
# @!attribute [rw] fields
|
177
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Field>]
|
178
|
+
# Optional. The fields in the schema.
|
179
|
+
# @!attribute [rw] description
|
180
|
+
# @return [::String]
|
181
|
+
# Optional. A textual description of the table's content and purpose.
|
182
|
+
# For example: "Contains information about customer orders in our e-commerce
|
183
|
+
# store."
|
184
|
+
# @!attribute [rw] synonyms
|
185
|
+
# @return [::Array<::String>]
|
186
|
+
# Optional. A list of alternative names or synonyms that can be used to refer
|
187
|
+
# to the table. For example: ["sales", "orders", "purchases"]
|
188
|
+
# @!attribute [rw] tags
|
189
|
+
# @return [::Array<::String>]
|
190
|
+
# Optional. A list of tags or keywords associated with the table, used for
|
191
|
+
# categorization. For example: ["transaction", "revenue", "customer_data"]
|
192
|
+
# @!attribute [rw] display_name
|
193
|
+
# @return [::String]
|
194
|
+
# Optional. Table display_name (same as label in
|
195
|
+
# cloud/data_analytics/anarres/data/looker/proto/model_explore.proto), not
|
196
|
+
# required, currently only Looker has this field.
|
197
|
+
# @!attribute [rw] filters
|
198
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::DataFilter>]
|
199
|
+
# Optional. The filters on the datasource's underlying data. Currently only
|
200
|
+
# used for Looker data sources.
|
201
|
+
class Schema
|
202
|
+
include ::Google::Protobuf::MessageExts
|
203
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
204
|
+
end
|
205
|
+
|
206
|
+
# A field in a schema.
|
207
|
+
# @!attribute [rw] name
|
208
|
+
# @return [::String]
|
209
|
+
# Optional. The name of the field.
|
210
|
+
# @!attribute [rw] type
|
211
|
+
# @return [::String]
|
212
|
+
# Optional. The type of the field.
|
213
|
+
# @!attribute [rw] description
|
214
|
+
# @return [::String]
|
215
|
+
# Optional. A brief description of the field.
|
216
|
+
# @!attribute [rw] mode
|
217
|
+
# @return [::String]
|
218
|
+
# Optional. The mode of the field (e.g., NULLABLE, REPEATED).
|
219
|
+
# @!attribute [rw] synonyms
|
220
|
+
# @return [::Array<::String>]
|
221
|
+
# Optional. A list of alternative names or synonyms that can be used to refer
|
222
|
+
# to this field. For example: ["id", "customerid", "cust_id"]
|
223
|
+
# @!attribute [rw] tags
|
224
|
+
# @return [::Array<::String>]
|
225
|
+
# Optional. A list of tags or keywords associated with the field, used for
|
226
|
+
# categorization. For example: ["identifier", "customer", "pii"]
|
227
|
+
# @!attribute [rw] display_name
|
228
|
+
# @return [::String]
|
229
|
+
# Optional. Field display_name (same as label in
|
230
|
+
# @!attribute [rw] subfields
|
231
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Field>]
|
232
|
+
# Optional. Recursive property for nested schema structures.
|
233
|
+
# @!attribute [rw] category
|
234
|
+
# @return [::String]
|
235
|
+
# Optional. Field category, not required, currently only useful for Looker.
|
236
|
+
# We are using a string to avoid depending on an external package and keep
|
237
|
+
# this package self-contained.
|
238
|
+
# @!attribute [rw] value_format
|
239
|
+
# @return [::String]
|
240
|
+
# Optional. Looker only. Value format of the field.
|
241
|
+
# Ref:
|
242
|
+
# https://cloud.google.com/looker/docs/reference/param-field-value-format
|
243
|
+
class Field
|
244
|
+
include ::Google::Protobuf::MessageExts
|
245
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
246
|
+
end
|
247
|
+
|
248
|
+
# A filter on a datasource's underlying data. Filter syntax documentation:
|
249
|
+
# https://cloud.google.com/looker/docs/filter-expressions
|
250
|
+
# @!attribute [rw] field
|
251
|
+
# @return [::String]
|
252
|
+
# Optional. The field to filter on. For example: ["event_date",
|
253
|
+
# "customer_id", "product_category"]
|
254
|
+
# @!attribute [rw] value
|
255
|
+
# @return [::String]
|
256
|
+
# Optional. The default value used for this filter if the filter is not
|
257
|
+
# overridden in a query. For example: ["after 2024-01-01", "123", "-fashion"]
|
258
|
+
# @!attribute [rw] type
|
259
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataFilterType]
|
260
|
+
# Optional. The type of filter present on a datasource, such as
|
261
|
+
# ALWAYS_FILTER.
|
262
|
+
class DataFilter
|
263
|
+
include ::Google::Protobuf::MessageExts
|
264
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
265
|
+
end
|
266
|
+
|
267
|
+
# The type of filter present on a datasource, such as ALWAYS_FILTER.
|
268
|
+
module DataFilterType
|
269
|
+
# The filter type was not specified.
|
270
|
+
DATA_FILTER_TYPE_UNSPECIFIED = 0
|
271
|
+
|
272
|
+
# A filter that the user configures, and any queries to the Explore will
|
273
|
+
# always apply this filter by default. Currently only used for Looker data
|
274
|
+
# sources.
|
275
|
+
ALWAYS_FILTER = 1
|
276
|
+
end
|
277
|
+
end
|
278
|
+
end
|
279
|
+
end
|
280
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module 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
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module 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
|