Debian Codegraph @

docs/dyn/metastore_v1beta.projects.locations.services.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="metastore_v1beta.html">Dataproc Metastore API</a> . <a href="metastore_v1beta.projects.html">projects</a> . <a href="metastore_v1beta.projects.locations.html">locations</a> . <a href="metastore_v1beta.projects.locations.services.html">services</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="metastore_v1beta.projects.locations.services.backups.html">backups()</a></code>
79 </p>
80 <p class="firstline">Returns the backups Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="metastore_v1beta.projects.locations.services.databases.html">databases()</a></code>
84 </p>
85 <p class="firstline">Returns the databases Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="metastore_v1beta.projects.locations.services.metadataImports.html">metadataImports()</a></code>
89 </p>
90 <p class="firstline">Returns the metadataImports Resource.</p>
91
92 <p class="toc_element">
93 <code><a href="metastore_v1beta.projects.locations.services.migrationExecutions.html">migrationExecutions()</a></code>
94 </p>
95 <p class="firstline">Returns the migrationExecutions Resource.</p>
96
97 <p class="toc_element">
98 <code><a href="#alterLocation">alterLocation(service, body=None, x__xgafv=None)</a></code></p>
99 <p class="firstline">Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.</p>
100 <p class="toc_element">
101 <code><a href="#alterTableProperties">alterTableProperties(service, body=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Alter metadata table properties.</p>
103 <p class="toc_element">
104 <code><a href="#cancelMigration">cancelMigration(service, body=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Cancels the ongoing Managed Migration process.</p>
106 <p class="toc_element">
107 <code><a href="#close">close()</a></code></p>
108 <p class="firstline">Close httplib2 connections.</p>
109 <p class="toc_element">
110 <code><a href="#completeMigration">completeMigration(service, body=None, x__xgafv=None)</a></code></p>
111 <p class="firstline">Completes the managed migration process. The Dataproc Metastore service will switch to using its own backend database after successful migration.</p>
112 <p class="toc_element">
113 <code><a href="#create">create(parent, body=None, requestId=None, serviceId=None, x__xgafv=None)</a></code></p>
114 <p class="firstline">Creates a metastore service in a project and location.</p>
115 <p class="toc_element">
116 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
117 <p class="firstline">Deletes a single service.</p>
118 <p class="toc_element">
119 <code><a href="#exportMetadata">exportMetadata(service, body=None, x__xgafv=None)</a></code></p>
120 <p class="firstline">Exports metadata from a service.</p>
121 <p class="toc_element">
122 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
123 <p class="firstline">Gets the details of a single service.</p>
124 <p class="toc_element">
125 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
126 <p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
127 <p class="toc_element">
128 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
129 <p class="firstline">Lists services in a project and location.</p>
130 <p class="toc_element">
131 <code><a href="#list_next">list_next()</a></code></p>
132 <p class="firstline">Retrieves the next page of results.</p>
133 <p class="toc_element">
134 <code><a href="#moveTableToDatabase">moveTableToDatabase(service, body=None, x__xgafv=None)</a></code></p>
135 <p class="firstline">Move a table to another database.</p>
136 <p class="toc_element">
137 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
138 <p class="firstline">Updates the parameters of a single service.</p>
139 <p class="toc_element">
140 <code><a href="#queryMetadata">queryMetadata(service, body=None, x__xgafv=None)</a></code></p>
141 <p class="firstline">Query Dataproc Metastore metadata.</p>
142 <p class="toc_element">
143 <code><a href="#removeIamPolicy">removeIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
144 <p class="firstline">Removes the attached IAM policies for a resource</p>
145 <p class="toc_element">
146 <code><a href="#restore">restore(service, body=None, x__xgafv=None)</a></code></p>
147 <p class="firstline">Restores a service from a backup.</p>
148 <p class="toc_element">
149 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
150 <p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.</p>
151 <p class="toc_element">
152 <code><a href="#startMigration">startMigration(service, body=None, x__xgafv=None)</a></code></p>
153 <p class="firstline">Starts the Managed Migration process.</p>
154 <p class="toc_element">
155 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
156 <p class="firstline">Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.</p>
157 <h3>Method Details</h3>
158 <div class="method">
159 <code class="details" id="alterLocation">alterLocation(service, body=None, x__xgafv=None)</code>
160 <pre>Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.
161
162 Args:
163 service: string, Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
164 body: object, The request body.
165 The object takes the form of:
166
167 { # Request message for DataprocMetastore.AlterMetadataResourceLocation.
168 &quot;locationUri&quot;: &quot;A String&quot;, # Required. The new location URI for the metadata resource.
169 &quot;resourceName&quot;: &quot;A String&quot;, # Required. The relative metadata resource name in the following format.databases/{database_id} or databases/{database_id}/tables/{table_id} or databases/{database_id}/tables/{table_id}/partitions/{partition_id}
170 }
171
172 x__xgafv: string, V1 error format.
173 Allowed values
174 1 - v1 error format
175 2 - v2 error format
176
177 Returns:
178 An object of the form:
179
180 { # This resource represents a long-running operation that is the result of a network API call.
181 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
182 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
183 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
184 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
185 {
186 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
187 },
188 ],
189 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
190 },
191 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
192 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
193 },
194 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
195 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
196 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
197 },
198 }</pre>
199 </div>
200
201 <div class="method">
202 <code class="details" id="alterTableProperties">alterTableProperties(service, body=None, x__xgafv=None)</code>
203 <pre>Alter metadata table properties.
204
205 Args:
206 service: string, Required. The relative resource name of the Dataproc Metastore service that&#x27;s being used to mutate metadata table properties, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
207 body: object, The request body.
208 The object takes the form of:
209
210 { # Request message for DataprocMetastore.AlterTableProperties.
211 &quot;properties&quot;: { # A map that describes the desired values to mutate. If update_mask is empty, the properties will not update. Otherwise, the properties only alters the value whose associated paths exist in the update mask
212 &quot;a_key&quot;: &quot;A String&quot;,
213 },
214 &quot;tableName&quot;: &quot;A String&quot;, # Required. The name of the table containing the properties you&#x27;re altering in the following format.databases/{database_id}/tables/{table_id}
215 &quot;updateMask&quot;: &quot;A String&quot;, # A field mask that specifies the metadata table properties that are overwritten by the update. Fields specified in the update_mask are relative to the resource (not to the full request). A field is overwritten if it is in the mask.For example, given the target properties: properties { a: 1 b: 2 } And an update properties: properties { a: 2 b: 3 c: 4 } then if the field mask is:paths: &quot;properties.b&quot;, &quot;properties.c&quot;then the result will be: properties { a: 1 b: 3 c: 4 }
216 }
217
218 x__xgafv: string, V1 error format.
219 Allowed values
220 1 - v1 error format
221 2 - v2 error format
222
223 Returns:
224 An object of the form:
225
226 { # This resource represents a long-running operation that is the result of a network API call.
227 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
228 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
229 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
230 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
231 {
232 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
233 },
234 ],
235 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
236 },
237 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
238 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
239 },
240 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
241 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
242 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
243 },
244 }</pre>
245 </div>
246
247 <div class="method">
248 <code class="details" id="cancelMigration">cancelMigration(service, body=None, x__xgafv=None)</code>
249 <pre>Cancels the ongoing Managed Migration process.
250
251 Args:
252 service: string, Required. The relative resource name of the metastore service to cancel the ongoing migration to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
253 body: object, The request body.
254 The object takes the form of:
255
256 { # Request message for DataprocMetastore.CancelMigration.
257 }
258
259 x__xgafv: string, V1 error format.
260 Allowed values
261 1 - v1 error format
262 2 - v2 error format
263
264 Returns:
265 An object of the form:
266
267 { # This resource represents a long-running operation that is the result of a network API call.
268 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
269 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
270 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
271 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
272 {
273 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
274 },
275 ],
276 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
277 },
278 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
279 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
280 },
281 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
282 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
283 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
284 },
285 }</pre>
286 </div>
287
288 <div class="method">
289 <code class="details" id="close">close()</code>
290 <pre>Close httplib2 connections.</pre>
291 </div>
292
293 <div class="method">
294 <code class="details" id="completeMigration">completeMigration(service, body=None, x__xgafv=None)</code>
295 <pre>Completes the managed migration process. The Dataproc Metastore service will switch to using its own backend database after successful migration.
296
297 Args:
298 service: string, Required. The relative resource name of the metastore service to complete the migration to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
299 body: object, The request body.
300 The object takes the form of:
301
302 { # Request message for DataprocMetastore.CompleteMigration.
303 }
304
305 x__xgafv: string, V1 error format.
306 Allowed values
307 1 - v1 error format
308 2 - v2 error format
309
310 Returns:
311 An object of the form:
312
313 { # This resource represents a long-running operation that is the result of a network API call.
314 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
315 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
316 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
317 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
318 {
319 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
320 },
321 ],
322 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
323 },
324 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
325 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
326 },
327 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
328 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
329 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
330 },
331 }</pre>
332 </div>
333
334 <div class="method">
335 <code class="details" id="create">create(parent, body=None, requestId=None, serviceId=None, x__xgafv=None)</code>
336 <pre>Creates a metastore service in a project and location.
337
338 Args:
339 parent: string, Required. The relative resource name of the location in which to create a metastore service, in the following form:projects/{project_number}/locations/{location_id}. (required)
340 body: object, The request body.
341 The object takes the form of:
342
343 { # A managed metastore service that serves metadata queries.
344 &quot;artifactGcsUri&quot;: &quot;A String&quot;, # Output only. A Cloud Storage URI (starting with gs://) that specifies where artifacts related to the metastore service are stored.
345 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was created.
346 &quot;databaseType&quot;: &quot;A String&quot;, # Immutable. The database type that the Metastore service stores its data.
347 &quot;deletionProtection&quot;: True or False, # Optional. Indicates if the dataproc metastore should be protected against accidental deletions.
348 &quot;encryptionConfig&quot;: { # Encryption settings for the service. # Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated.
349 &quot;kmsKey&quot;: &quot;A String&quot;, # Optional. The fully qualified customer provided Cloud KMS key name to use for customer data encryption, in the following format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.
350 &quot;kmsKeys&quot;: [ # Optional. The list of fully qualified customer provided Cloud KMS key names for the multi-regional service. Each key must be in the following format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.
351 &quot;A String&quot;,
352 ],
353 },
354 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
355 &quot;hiveMetastoreConfig&quot;: { # Specifies configuration information specific to running Hive metastore software as the metastore service. # Configuration information specific to running Hive metastore software as the metastore service.
356 &quot;auxiliaryVersions&quot;: { # Optional. A mapping of Hive metastore version to the auxiliary version configuration. When specified, a secondary Hive metastore service is created along with the primary service. All auxiliary versions must be less than the service&#x27;s primary version. The key is the auxiliary service name and it must match the regular expression a-z?. This means that the first character must be a lowercase letter, and all the following characters must be hyphens, lowercase letters, or digits, except the last character, which cannot be a hyphen.
357 &quot;a_key&quot;: { # Configuration information for the auxiliary service versions.
358 &quot;configOverrides&quot;: { # Optional. A mapping of Hive metastore configuration key-value pairs to apply to the auxiliary Hive metastore (configured in hive-site.xml) in addition to the primary version&#x27;s overrides. If keys are present in both the auxiliary version&#x27;s overrides and the primary version&#x27;s overrides, the value from the auxiliary version&#x27;s overrides takes precedence.
359 &quot;a_key&quot;: &quot;A String&quot;,
360 },
361 &quot;networkConfig&quot;: { # Network configuration for the Dataproc Metastore service. # Output only. The network configuration contains the endpoint URI(s) of the auxiliary Hive metastore service.
362 &quot;consumers&quot;: [ # Immutable. The consumer-side network configuration for the Dataproc Metastore instance.
363 { # Contains information of the customer&#x27;s network configurations.
364 &quot;endpointLocation&quot;: &quot;A String&quot;, # Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.
365 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
366 &quot;subnetwork&quot;: &quot;A String&quot;, # Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service&#x27;s endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet&#x27;s primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}
367 },
368 ],
369 &quot;customRoutesEnabled&quot;: True or False, # Optional. Enables custom routes to be imported and exported for the Dataproc Metastore service&#x27;s peered VPC network.
370 },
371 &quot;version&quot;: &quot;A String&quot;, # Optional. The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service&#x27;s version.
372 },
373 },
374 &quot;configOverrides&quot;: { # Optional. A mapping of Hive metastore configuration key-value pairs to apply to the Hive metastore (configured in hive-site.xml). The mappings override system defaults (some keys cannot be overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version&#x27;s AuxiliaryVersionConfig.
375 &quot;a_key&quot;: &quot;A String&quot;,
376 },
377 &quot;endpointProtocol&quot;: &quot;A String&quot;, # Optional. The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.
378 &quot;kerberosConfig&quot;: { # Configuration information for a Kerberos principal. # Optional. Information used to configure the Hive metastore service as a service principal in a Kerberos realm. To disable Kerberos, use the UpdateService method and specify this field&#x27;s path (hive_metastore_config.kerberos_config) in the request&#x27;s update_mask while omitting this field from the request&#x27;s service.
379 &quot;keytab&quot;: { # A securely stored value. # Optional. A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).
380 &quot;cloudSecret&quot;: &quot;A String&quot;, # Optional. The relative resource name of a Secret Manager secret version, in the following form:projects/{project_number}/secrets/{secret_id}/versions/{version_id}.
381 },
382 &quot;krb5ConfigGcsUri&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, although the file does not need to be named krb5.conf explicitly.
383 &quot;principal&quot;: &quot;A String&quot;, # Optional. A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format.
384 },
385 &quot;version&quot;: &quot;A String&quot;, # Immutable. The Hive metastore schema version.
386 },
387 &quot;labels&quot;: { # User-defined labels for the metastore service.
388 &quot;a_key&quot;: &quot;A String&quot;,
389 },
390 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when Dataproc Metastore may perform system maintenance operation to the service. # Optional. The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time. Maintenance window is not needed for services with the SPANNER database type.
391 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Optional. The day of week, when the window starts.
392 &quot;hourOfDay&quot;: 42, # Optional. The hour of day (0-23) when the window starts.
393 },
394 &quot;metadataIntegration&quot;: { # Specifies how metastore metadata should be integrated with external services. # Optional. The setting that defines how metastore metadata should be integrated with external services and systems.
395 &quot;dataCatalogConfig&quot;: { # Specifies how metastore metadata should be integrated with the Data Catalog service. # Optional. The integration config for the Data Catalog service.
396 &quot;enabled&quot;: True or False, # Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.
397 },
398 &quot;dataplexConfig&quot;: { # Specifies how metastore metadata should be integrated with the Dataplex service. # Optional. The integration config for the Dataplex service.
399 &quot;lakeResources&quot;: { # Optional. A reference to the Lake resources that this metastore service is attached to. The key is the lake resource name. Example: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
400 &quot;a_key&quot;: { # Represents a Lake resource
401 &quot;name&quot;: &quot;A String&quot;, # The Lake resource name. Example: projects/{project_number}/locations/{location_id}/lakes/{lake_id}
402 },
403 },
404 },
405 },
406 &quot;metadataManagementActivity&quot;: { # The metadata management activities of the metastore service. # Output only. The metadata management activities of the metastore service.
407 &quot;metadataExports&quot;: [ # Output only. The latest metadata exports of the metastore service.
408 { # The details of a metadata export operation.
409 &quot;databaseDumpType&quot;: &quot;A String&quot;, # Output only. The type of the database dump.
410 &quot;destinationGcsUri&quot;: &quot;A String&quot;, # Output only. A Cloud Storage URI of a folder that metadata are exported to, in the form of gs:////, where is automatically generated.
411 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time when the export ended.
412 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the export started.
413 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the export.
414 },
415 ],
416 &quot;restores&quot;: [ # Output only. The latest restores of the metastore service.
417 { # The details of a metadata restore operation.
418 &quot;backup&quot;: &quot;A String&quot;, # Output only. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}.
419 &quot;backupLocation&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.
420 &quot;details&quot;: &quot;A String&quot;, # Output only. The restore details containing the revision of the service to be restored to, in format of JSON.
421 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time when the restore ended.
422 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the restore started.
423 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the restore.
424 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of restore.
425 },
426 ],
427 },
428 &quot;multiRegionConfig&quot;: { # Deprecated: Use a single region service instead. The multi-region config for the Dataproc Metastore service. # Optional. Deprecated: Use a single region service instead. Specifies the multi-region configuration information for the Hive metastore service.
429 &quot;certificates&quot;: [ # Output only. Deprecated: Use a single region service instead. The list of root CA certificates that a gRPC client uses to connect to a multi-regional Dataproc Metastore service.
430 { # Deprecated: Use a single region service instead. A gRPC client must install all root CA certificates to connect to a multi-regional Dataproc Metastore service and achieve failover.
431 &quot;certificate&quot;: &quot;A String&quot;, # Deprecated: Use a single region service instead. The root CA certificate in PEM format. The maximum length is 65536 bytes.
432 &quot;expirationTime&quot;: &quot;A String&quot;, # Deprecated: Use a single region service instead. The certificate expiration time in timestamp format.
433 },
434 ],
435 &quot;customRegionConfig&quot;: { # Deprecated: Use a single region service instead. Custom configuration used to specify regions that the metastore service runs in. Currently only supported in the us multi-region. # Immutable. Deprecated: Use a single region service instead.
436 &quot;readOnlyRegions&quot;: [ # Optional. The list of read-only regions where the metastore service runs in. These regions should be part (or subset) of the multi-region.
437 &quot;A String&quot;,
438 ],
439 &quot;readWriteRegions&quot;: [ # Required. The list of read-write regions where the metastore service runs in. These regions should be part (or subset) of the multi-region.
440 &quot;A String&quot;,
441 ],
442 },
443 },
444 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}.
445 &quot;network&quot;: &quot;A String&quot;, # Immutable. The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:projects/{project_number}/global/networks/{network_id}.
446 &quot;networkConfig&quot;: { # Network configuration for the Dataproc Metastore service. # Optional. The configuration specifying the network settings for the Dataproc Metastore service.
447 &quot;consumers&quot;: [ # Immutable. The consumer-side network configuration for the Dataproc Metastore instance.
448 { # Contains information of the customer&#x27;s network configurations.
449 &quot;endpointLocation&quot;: &quot;A String&quot;, # Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.
450 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
451 &quot;subnetwork&quot;: &quot;A String&quot;, # Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service&#x27;s endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet&#x27;s primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}
452 },
453 ],
454 &quot;customRoutesEnabled&quot;: True or False, # Optional. Enables custom routes to be imported and exported for the Dataproc Metastore service&#x27;s peered VPC network.
455 },
456 &quot;port&quot;: 42, # Optional. The TCP port at which the metastore service is reached. Default: 9083.
457 &quot;releaseChannel&quot;: &quot;A String&quot;, # Immutable. The release channel of the service. If unspecified, defaults to STABLE.
458 &quot;scalingConfig&quot;: { # Represents the scaling configuration of a metastore service. # Optional. Scaling configuration of the metastore service.
459 &quot;autoscalingConfig&quot;: { # Represents the autoscaling configuration of a metastore service. # Optional. The autoscaling configuration.
460 &quot;autoscalingEnabled&quot;: True or False, # Optional. Whether or not autoscaling is enabled for this service.
461 &quot;autoscalingFactor&quot;: 3.14, # Output only. The scaling factor of a service with autoscaling enabled.
462 &quot;limitConfig&quot;: { # Represents the autoscaling limit configuration of a metastore service. # Optional. The LimitConfig of the service.
463 &quot;maxScalingFactor&quot;: 3.14, # Optional. The highest scaling factor that the service should be autoscaled to.
464 &quot;minScalingFactor&quot;: 3.14, # Optional. The lowest scaling factor that the service should be autoscaled to.
465 },
466 },
467 &quot;instanceSize&quot;: &quot;A String&quot;, # An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))
468 &quot;scalingFactor&quot;: 3.14, # Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.
469 },
470 &quot;scheduledBackup&quot;: { # This specifies the configuration of scheduled backup. # Optional. The configuration of scheduled backup for the metastore service.
471 &quot;backupLocation&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing backup files will be stored below it.
472 &quot;cronSchedule&quot;: &quot;A String&quot;, # Optional. The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
473 &quot;enabled&quot;: True or False, # Optional. Defines whether the scheduled backup is enabled. The default value is false.
474 &quot;latestBackup&quot;: { # The details of the latest scheduled backup. # Output only. The details of the latest scheduled backup.
475 &quot;backupId&quot;: &quot;A String&quot;, # Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress.
476 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the backup completion.
477 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the backup was started.
478 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
479 },
480 &quot;nextScheduledTime&quot;: &quot;A String&quot;, # Output only. The time when the next backups execution is scheduled to start.
481 &quot;timeZone&quot;: &quot;A String&quot;, # Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
482 },
483 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the metastore service.
484 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of the metastore service, if available.
485 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
486 &quot;a_key&quot;: &quot;A String&quot;,
487 },
488 &quot;telemetryConfig&quot;: { # Telemetry Configuration for the Dataproc Metastore service. # Optional. The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.
489 &quot;logFormat&quot;: &quot;A String&quot;, # Optional. The output format of the Dataproc Metastore service&#x27;s logs.
490 },
491 &quot;tier&quot;: &quot;A String&quot;, # Optional. The tier of the service.
492 &quot;uid&quot;: &quot;A String&quot;, # Output only. The globally unique resource identifier of the metastore service.
493 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was last updated.
494 }
495
496 requestId: string, Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
497 serviceId: string, Required. The ID of the metastore service, which is used as the final component of the metastore service&#x27;s name.This value must be between 2 and 63 characters long inclusive, begin with a letter, end with a letter or number, and consist of alpha-numeric ASCII characters or hyphens.
498 x__xgafv: string, V1 error format.
499 Allowed values
500 1 - v1 error format
501 2 - v2 error format
502
503 Returns:
504 An object of the form:
505
506 { # This resource represents a long-running operation that is the result of a network API call.
507 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
508 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
509 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
510 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
511 {
512 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
513 },
514 ],
515 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
516 },
517 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
518 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
519 },
520 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
521 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
522 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
523 },
524 }</pre>
525 </div>
526
527 <div class="method">
528 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
529 <pre>Deletes a single service.
530
531 Args:
532 name: string, Required. The relative resource name of the metastore service to delete, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}. (required)
533 requestId: string, Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
534 x__xgafv: string, V1 error format.
535 Allowed values
536 1 - v1 error format
537 2 - v2 error format
538
539 Returns:
540 An object of the form:
541
542 { # This resource represents a long-running operation that is the result of a network API call.
543 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
544 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
545 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
546 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
547 {
548 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
549 },
550 ],
551 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
552 },
553 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
554 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
555 },
556 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
557 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
558 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
559 },
560 }</pre>
561 </div>
562
563 <div class="method">
564 <code class="details" id="exportMetadata">exportMetadata(service, body=None, x__xgafv=None)</code>
565 <pre>Exports metadata from a service.
566
567 Args:
568 service: string, Required. The relative resource name of the metastore service to run export, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
569 body: object, The request body.
570 The object takes the form of:
571
572 { # Request message for DataprocMetastore.ExportMetadata.
573 &quot;databaseDumpType&quot;: &quot;A String&quot;, # Optional. The type of the database dump. If unspecified, defaults to MYSQL.
574 &quot;destinationGcsFolder&quot;: &quot;A String&quot;, # A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing exported files will be created below it.
575 &quot;requestId&quot;: &quot;A String&quot;, # Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
576 }
577
578 x__xgafv: string, V1 error format.
579 Allowed values
580 1 - v1 error format
581 2 - v2 error format
582
583 Returns:
584 An object of the form:
585
586 { # This resource represents a long-running operation that is the result of a network API call.
587 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
588 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
589 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
590 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
591 {
592 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
593 },
594 ],
595 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
596 },
597 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
598 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
599 },
600 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
601 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
602 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
603 },
604 }</pre>
605 </div>
606
607 <div class="method">
608 <code class="details" id="get">get(name, x__xgafv=None)</code>
609 <pre>Gets the details of a single service.
610
611 Args:
612 name: string, Required. The relative resource name of the metastore service to retrieve, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}. (required)
613 x__xgafv: string, V1 error format.
614 Allowed values
615 1 - v1 error format
616 2 - v2 error format
617
618 Returns:
619 An object of the form:
620
621 { # A managed metastore service that serves metadata queries.
622 &quot;artifactGcsUri&quot;: &quot;A String&quot;, # Output only. A Cloud Storage URI (starting with gs://) that specifies where artifacts related to the metastore service are stored.
623 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was created.
624 &quot;databaseType&quot;: &quot;A String&quot;, # Immutable. The database type that the Metastore service stores its data.
625 &quot;deletionProtection&quot;: True or False, # Optional. Indicates if the dataproc metastore should be protected against accidental deletions.
626 &quot;encryptionConfig&quot;: { # Encryption settings for the service. # Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated.
627 &quot;kmsKey&quot;: &quot;A String&quot;, # Optional. The fully qualified customer provided Cloud KMS key name to use for customer data encryption, in the following format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.
628 &quot;kmsKeys&quot;: [ # Optional. The list of fully qualified customer provided Cloud KMS key names for the multi-regional service. Each key must be in the following format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.
629 &quot;A String&quot;,
630 ],
631 },
632 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
633 &quot;hiveMetastoreConfig&quot;: { # Specifies configuration information specific to running Hive metastore software as the metastore service. # Configuration information specific to running Hive metastore software as the metastore service.
634 &quot;auxiliaryVersions&quot;: { # Optional. A mapping of Hive metastore version to the auxiliary version configuration. When specified, a secondary Hive metastore service is created along with the primary service. All auxiliary versions must be less than the service&#x27;s primary version. The key is the auxiliary service name and it must match the regular expression a-z?. This means that the first character must be a lowercase letter, and all the following characters must be hyphens, lowercase letters, or digits, except the last character, which cannot be a hyphen.
635 &quot;a_key&quot;: { # Configuration information for the auxiliary service versions.
636 &quot;configOverrides&quot;: { # Optional. A mapping of Hive metastore configuration key-value pairs to apply to the auxiliary Hive metastore (configured in hive-site.xml) in addition to the primary version&#x27;s overrides. If keys are present in both the auxiliary version&#x27;s overrides and the primary version&#x27;s overrides, the value from the auxiliary version&#x27;s overrides takes precedence.
637 &quot;a_key&quot;: &quot;A String&quot;,
638 },
639 &quot;networkConfig&quot;: { # Network configuration for the Dataproc Metastore service. # Output only. The network configuration contains the endpoint URI(s) of the auxiliary Hive metastore service.
640 &quot;consumers&quot;: [ # Immutable. The consumer-side network configuration for the Dataproc Metastore instance.
641 { # Contains information of the customer&#x27;s network configurations.
642 &quot;endpointLocation&quot;: &quot;A String&quot;, # Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.
643 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
644 &quot;subnetwork&quot;: &quot;A String&quot;, # Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service&#x27;s endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet&#x27;s primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}
645 },
646 ],
647 &quot;customRoutesEnabled&quot;: True or False, # Optional. Enables custom routes to be imported and exported for the Dataproc Metastore service&#x27;s peered VPC network.
648 },
649 &quot;version&quot;: &quot;A String&quot;, # Optional. The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service&#x27;s version.
650 },
651 },
652 &quot;configOverrides&quot;: { # Optional. A mapping of Hive metastore configuration key-value pairs to apply to the Hive metastore (configured in hive-site.xml). The mappings override system defaults (some keys cannot be overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version&#x27;s AuxiliaryVersionConfig.
653 &quot;a_key&quot;: &quot;A String&quot;,
654 },
655 &quot;endpointProtocol&quot;: &quot;A String&quot;, # Optional. The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.
656 &quot;kerberosConfig&quot;: { # Configuration information for a Kerberos principal. # Optional. Information used to configure the Hive metastore service as a service principal in a Kerberos realm. To disable Kerberos, use the UpdateService method and specify this field&#x27;s path (hive_metastore_config.kerberos_config) in the request&#x27;s update_mask while omitting this field from the request&#x27;s service.
657 &quot;keytab&quot;: { # A securely stored value. # Optional. A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).
658 &quot;cloudSecret&quot;: &quot;A String&quot;, # Optional. The relative resource name of a Secret Manager secret version, in the following form:projects/{project_number}/secrets/{secret_id}/versions/{version_id}.
659 },
660 &quot;krb5ConfigGcsUri&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, although the file does not need to be named krb5.conf explicitly.
661 &quot;principal&quot;: &quot;A String&quot;, # Optional. A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format.
662 },
663 &quot;version&quot;: &quot;A String&quot;, # Immutable. The Hive metastore schema version.
664 },
665 &quot;labels&quot;: { # User-defined labels for the metastore service.
666 &quot;a_key&quot;: &quot;A String&quot;,
667 },
668 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when Dataproc Metastore may perform system maintenance operation to the service. # Optional. The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time. Maintenance window is not needed for services with the SPANNER database type.
669 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Optional. The day of week, when the window starts.
670 &quot;hourOfDay&quot;: 42, # Optional. The hour of day (0-23) when the window starts.
671 },
672 &quot;metadataIntegration&quot;: { # Specifies how metastore metadata should be integrated with external services. # Optional. The setting that defines how metastore metadata should be integrated with external services and systems.
673 &quot;dataCatalogConfig&quot;: { # Specifies how metastore metadata should be integrated with the Data Catalog service. # Optional. The integration config for the Data Catalog service.
674 &quot;enabled&quot;: True or False, # Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.
675 },
676 &quot;dataplexConfig&quot;: { # Specifies how metastore metadata should be integrated with the Dataplex service. # Optional. The integration config for the Dataplex service.
677 &quot;lakeResources&quot;: { # Optional. A reference to the Lake resources that this metastore service is attached to. The key is the lake resource name. Example: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
678 &quot;a_key&quot;: { # Represents a Lake resource
679 &quot;name&quot;: &quot;A String&quot;, # The Lake resource name. Example: projects/{project_number}/locations/{location_id}/lakes/{lake_id}
680 },
681 },
682 },
683 },
684 &quot;metadataManagementActivity&quot;: { # The metadata management activities of the metastore service. # Output only. The metadata management activities of the metastore service.
685 &quot;metadataExports&quot;: [ # Output only. The latest metadata exports of the metastore service.
686 { # The details of a metadata export operation.
687 &quot;databaseDumpType&quot;: &quot;A String&quot;, # Output only. The type of the database dump.
688 &quot;destinationGcsUri&quot;: &quot;A String&quot;, # Output only. A Cloud Storage URI of a folder that metadata are exported to, in the form of gs:////, where is automatically generated.
689 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time when the export ended.
690 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the export started.
691 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the export.
692 },
693 ],
694 &quot;restores&quot;: [ # Output only. The latest restores of the metastore service.
695 { # The details of a metadata restore operation.
696 &quot;backup&quot;: &quot;A String&quot;, # Output only. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}.
697 &quot;backupLocation&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.
698 &quot;details&quot;: &quot;A String&quot;, # Output only. The restore details containing the revision of the service to be restored to, in format of JSON.
699 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time when the restore ended.
700 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the restore started.
701 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the restore.
702 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of restore.
703 },
704 ],
705 },
706 &quot;multiRegionConfig&quot;: { # Deprecated: Use a single region service instead. The multi-region config for the Dataproc Metastore service. # Optional. Deprecated: Use a single region service instead. Specifies the multi-region configuration information for the Hive metastore service.
707 &quot;certificates&quot;: [ # Output only. Deprecated: Use a single region service instead. The list of root CA certificates that a gRPC client uses to connect to a multi-regional Dataproc Metastore service.
708 { # Deprecated: Use a single region service instead. A gRPC client must install all root CA certificates to connect to a multi-regional Dataproc Metastore service and achieve failover.
709 &quot;certificate&quot;: &quot;A String&quot;, # Deprecated: Use a single region service instead. The root CA certificate in PEM format. The maximum length is 65536 bytes.
710 &quot;expirationTime&quot;: &quot;A String&quot;, # Deprecated: Use a single region service instead. The certificate expiration time in timestamp format.
711 },
712 ],
713 &quot;customRegionConfig&quot;: { # Deprecated: Use a single region service instead. Custom configuration used to specify regions that the metastore service runs in. Currently only supported in the us multi-region. # Immutable. Deprecated: Use a single region service instead.
714 &quot;readOnlyRegions&quot;: [ # Optional. The list of read-only regions where the metastore service runs in. These regions should be part (or subset) of the multi-region.
715 &quot;A String&quot;,
716 ],
717 &quot;readWriteRegions&quot;: [ # Required. The list of read-write regions where the metastore service runs in. These regions should be part (or subset) of the multi-region.
718 &quot;A String&quot;,
719 ],
720 },
721 },
722 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}.
723 &quot;network&quot;: &quot;A String&quot;, # Immutable. The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:projects/{project_number}/global/networks/{network_id}.
724 &quot;networkConfig&quot;: { # Network configuration for the Dataproc Metastore service. # Optional. The configuration specifying the network settings for the Dataproc Metastore service.
725 &quot;consumers&quot;: [ # Immutable. The consumer-side network configuration for the Dataproc Metastore instance.
726 { # Contains information of the customer&#x27;s network configurations.
727 &quot;endpointLocation&quot;: &quot;A String&quot;, # Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.
728 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
729 &quot;subnetwork&quot;: &quot;A String&quot;, # Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service&#x27;s endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet&#x27;s primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}
730 },
731 ],
732 &quot;customRoutesEnabled&quot;: True or False, # Optional. Enables custom routes to be imported and exported for the Dataproc Metastore service&#x27;s peered VPC network.
733 },
734 &quot;port&quot;: 42, # Optional. The TCP port at which the metastore service is reached. Default: 9083.
735 &quot;releaseChannel&quot;: &quot;A String&quot;, # Immutable. The release channel of the service. If unspecified, defaults to STABLE.
736 &quot;scalingConfig&quot;: { # Represents the scaling configuration of a metastore service. # Optional. Scaling configuration of the metastore service.
737 &quot;autoscalingConfig&quot;: { # Represents the autoscaling configuration of a metastore service. # Optional. The autoscaling configuration.
738 &quot;autoscalingEnabled&quot;: True or False, # Optional. Whether or not autoscaling is enabled for this service.
739 &quot;autoscalingFactor&quot;: 3.14, # Output only. The scaling factor of a service with autoscaling enabled.
740 &quot;limitConfig&quot;: { # Represents the autoscaling limit configuration of a metastore service. # Optional. The LimitConfig of the service.
741 &quot;maxScalingFactor&quot;: 3.14, # Optional. The highest scaling factor that the service should be autoscaled to.
742 &quot;minScalingFactor&quot;: 3.14, # Optional. The lowest scaling factor that the service should be autoscaled to.
743 },
744 },
745 &quot;instanceSize&quot;: &quot;A String&quot;, # An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))
746 &quot;scalingFactor&quot;: 3.14, # Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.
747 },
748 &quot;scheduledBackup&quot;: { # This specifies the configuration of scheduled backup. # Optional. The configuration of scheduled backup for the metastore service.
749 &quot;backupLocation&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing backup files will be stored below it.
750 &quot;cronSchedule&quot;: &quot;A String&quot;, # Optional. The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
751 &quot;enabled&quot;: True or False, # Optional. Defines whether the scheduled backup is enabled. The default value is false.
752 &quot;latestBackup&quot;: { # The details of the latest scheduled backup. # Output only. The details of the latest scheduled backup.
753 &quot;backupId&quot;: &quot;A String&quot;, # Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress.
754 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the backup completion.
755 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the backup was started.
756 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
757 },
758 &quot;nextScheduledTime&quot;: &quot;A String&quot;, # Output only. The time when the next backups execution is scheduled to start.
759 &quot;timeZone&quot;: &quot;A String&quot;, # Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
760 },
761 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the metastore service.
762 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of the metastore service, if available.
763 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
764 &quot;a_key&quot;: &quot;A String&quot;,
765 },
766 &quot;telemetryConfig&quot;: { # Telemetry Configuration for the Dataproc Metastore service. # Optional. The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.
767 &quot;logFormat&quot;: &quot;A String&quot;, # Optional. The output format of the Dataproc Metastore service&#x27;s logs.
768 },
769 &quot;tier&quot;: &quot;A String&quot;, # Optional. The tier of the service.
770 &quot;uid&quot;: &quot;A String&quot;, # Output only. The globally unique resource identifier of the metastore service.
771 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was last updated.
772 }</pre>
773 </div>
774
775 <div class="method">
776 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
777 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
778
779 Args:
780 resource: string, REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
781 options_requestedPolicyVersion: integer, Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
782 x__xgafv: string, V1 error format.
783 Allowed values
784 1 - v1 error format
785 2 - v2 error format
786
787 Returns:
788 An object of the form:
789
790 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members, or principals, to a single role. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example: { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } YAML example: bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
791 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
792 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging.
793 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
794 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting [email protected] from DATA_READ logging.
795 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
796 &quot;A String&quot;,
797 ],
798 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
799 },
800 ],
801 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, storage.googleapis.com, cloudsql.googleapis.com. allServices is a special value that covers all services.
802 },
803 ],
804 &quot;bindings&quot;: [ # Associates a list of members, or principals, with a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one principal.The bindings in a Policy can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the bindings grant 50 different roles to user:[email protected], and not to any other principal, then you can add another 1,450 principals to the bindings in the Policy.
805 { # Associates members, or principals, with a role.
806 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
807 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
808 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
809 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
810 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
811 },
812 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, [email protected] . serviceAccount:{emailid}: An email address that represents a Google service account. For example, [email protected]. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, [email protected]. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workforce identity pool. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}: All workforce identities in a group. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All workforce identities with a specific attribute value. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*: All identities in a workforce identity pool. principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workload identity pool. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool group. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All identities in a workload identity pool with a certain attribute. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*: All identities in a workload identity pool. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding. deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: Deleted single identity in a workforce identity pool. For example, deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value.
813 &quot;A String&quot;,
814 ],
815 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner.For an overview of the IAM roles and permissions, see the IAM documentation (https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see here (https://cloud.google.com/iam/docs/understanding-roles).
816 },
817 ],
818 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
819 &quot;version&quot;: 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations: Getting a policy that includes a conditional role binding Adding a conditional role binding to a policy Changing a conditional role binding in a policy Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
820 }</pre>
821 </div>
822
823 <div class="method">
824 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
825 <pre>Lists services in a project and location.
826
827 Args:
828 parent: string, Required. The relative resource name of the location of metastore services to list, in the following form:projects/{project_number}/locations/{location_id}. (required)
829 filter: string, Optional. The filter to apply to list results.
830 orderBy: string, Optional. Specify the ordering of results as described in Sorting Order (https://cloud.google.com/apis/design/design_patterns#sorting_order). If not specified, the results will be sorted in the default order.
831 pageSize: integer, Optional. The maximum number of services to return. The response may contain less than the maximum number. If unspecified, no more than 500 services are returned. The maximum value is 1000; values above 1000 are changed to 1000.
832 pageToken: string, Optional. A page token, received from a previous DataprocMetastore.ListServices call. Provide this token to retrieve the subsequent page.To retrieve the first page, supply an empty page token.When paginating, other parameters provided to DataprocMetastore.ListServices must match the call that provided the page token.
833 x__xgafv: string, V1 error format.
834 Allowed values
835 1 - v1 error format
836 2 - v2 error format
837
838 Returns:
839 An object of the form:
840
841 { # Response message for DataprocMetastore.ListServices.
842 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
843 &quot;services&quot;: [ # The services in the specified location.
844 { # A managed metastore service that serves metadata queries.
845 &quot;artifactGcsUri&quot;: &quot;A String&quot;, # Output only. A Cloud Storage URI (starting with gs://) that specifies where artifacts related to the metastore service are stored.
846 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was created.
847 &quot;databaseType&quot;: &quot;A String&quot;, # Immutable. The database type that the Metastore service stores its data.
848 &quot;deletionProtection&quot;: True or False, # Optional. Indicates if the dataproc metastore should be protected against accidental deletions.
849 &quot;encryptionConfig&quot;: { # Encryption settings for the service. # Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated.
850 &quot;kmsKey&quot;: &quot;A String&quot;, # Optional. The fully qualified customer provided Cloud KMS key name to use for customer data encryption, in the following format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.
851 &quot;kmsKeys&quot;: [ # Optional. The list of fully qualified customer provided Cloud KMS key names for the multi-regional service. Each key must be in the following format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.
852 &quot;A String&quot;,
853 ],
854 },
855 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
856 &quot;hiveMetastoreConfig&quot;: { # Specifies configuration information specific to running Hive metastore software as the metastore service. # Configuration information specific to running Hive metastore software as the metastore service.
857 &quot;auxiliaryVersions&quot;: { # Optional. A mapping of Hive metastore version to the auxiliary version configuration. When specified, a secondary Hive metastore service is created along with the primary service. All auxiliary versions must be less than the service&#x27;s primary version. The key is the auxiliary service name and it must match the regular expression a-z?. This means that the first character must be a lowercase letter, and all the following characters must be hyphens, lowercase letters, or digits, except the last character, which cannot be a hyphen.
858 &quot;a_key&quot;: { # Configuration information for the auxiliary service versions.
859 &quot;configOverrides&quot;: { # Optional. A mapping of Hive metastore configuration key-value pairs to apply to the auxiliary Hive metastore (configured in hive-site.xml) in addition to the primary version&#x27;s overrides. If keys are present in both the auxiliary version&#x27;s overrides and the primary version&#x27;s overrides, the value from the auxiliary version&#x27;s overrides takes precedence.
860 &quot;a_key&quot;: &quot;A String&quot;,
861 },
862 &quot;networkConfig&quot;: { # Network configuration for the Dataproc Metastore service. # Output only. The network configuration contains the endpoint URI(s) of the auxiliary Hive metastore service.
863 &quot;consumers&quot;: [ # Immutable. The consumer-side network configuration for the Dataproc Metastore instance.
864 { # Contains information of the customer&#x27;s network configurations.
865 &quot;endpointLocation&quot;: &quot;A String&quot;, # Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.
866 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
867 &quot;subnetwork&quot;: &quot;A String&quot;, # Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service&#x27;s endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet&#x27;s primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}
868 },
869 ],
870 &quot;customRoutesEnabled&quot;: True or False, # Optional. Enables custom routes to be imported and exported for the Dataproc Metastore service&#x27;s peered VPC network.
871 },
872 &quot;version&quot;: &quot;A String&quot;, # Optional. The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service&#x27;s version.
873 },
874 },
875 &quot;configOverrides&quot;: { # Optional. A mapping of Hive metastore configuration key-value pairs to apply to the Hive metastore (configured in hive-site.xml). The mappings override system defaults (some keys cannot be overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version&#x27;s AuxiliaryVersionConfig.
876 &quot;a_key&quot;: &quot;A String&quot;,
877 },
878 &quot;endpointProtocol&quot;: &quot;A String&quot;, # Optional. The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.
879 &quot;kerberosConfig&quot;: { # Configuration information for a Kerberos principal. # Optional. Information used to configure the Hive metastore service as a service principal in a Kerberos realm. To disable Kerberos, use the UpdateService method and specify this field&#x27;s path (hive_metastore_config.kerberos_config) in the request&#x27;s update_mask while omitting this field from the request&#x27;s service.
880 &quot;keytab&quot;: { # A securely stored value. # Optional. A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).
881 &quot;cloudSecret&quot;: &quot;A String&quot;, # Optional. The relative resource name of a Secret Manager secret version, in the following form:projects/{project_number}/secrets/{secret_id}/versions/{version_id}.
882 },
883 &quot;krb5ConfigGcsUri&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, although the file does not need to be named krb5.conf explicitly.
884 &quot;principal&quot;: &quot;A String&quot;, # Optional. A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format.
885 },
886 &quot;version&quot;: &quot;A String&quot;, # Immutable. The Hive metastore schema version.
887 },
888 &quot;labels&quot;: { # User-defined labels for the metastore service.
889 &quot;a_key&quot;: &quot;A String&quot;,
890 },
891 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when Dataproc Metastore may perform system maintenance operation to the service. # Optional. The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time. Maintenance window is not needed for services with the SPANNER database type.
892 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Optional. The day of week, when the window starts.
893 &quot;hourOfDay&quot;: 42, # Optional. The hour of day (0-23) when the window starts.
894 },
895 &quot;metadataIntegration&quot;: { # Specifies how metastore metadata should be integrated with external services. # Optional. The setting that defines how metastore metadata should be integrated with external services and systems.
896 &quot;dataCatalogConfig&quot;: { # Specifies how metastore metadata should be integrated with the Data Catalog service. # Optional. The integration config for the Data Catalog service.
897 &quot;enabled&quot;: True or False, # Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.
898 },
899 &quot;dataplexConfig&quot;: { # Specifies how metastore metadata should be integrated with the Dataplex service. # Optional. The integration config for the Dataplex service.
900 &quot;lakeResources&quot;: { # Optional. A reference to the Lake resources that this metastore service is attached to. The key is the lake resource name. Example: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
901 &quot;a_key&quot;: { # Represents a Lake resource
902 &quot;name&quot;: &quot;A String&quot;, # The Lake resource name. Example: projects/{project_number}/locations/{location_id}/lakes/{lake_id}
903 },
904 },
905 },
906 },
907 &quot;metadataManagementActivity&quot;: { # The metadata management activities of the metastore service. # Output only. The metadata management activities of the metastore service.
908 &quot;metadataExports&quot;: [ # Output only. The latest metadata exports of the metastore service.
909 { # The details of a metadata export operation.
910 &quot;databaseDumpType&quot;: &quot;A String&quot;, # Output only. The type of the database dump.
911 &quot;destinationGcsUri&quot;: &quot;A String&quot;, # Output only. A Cloud Storage URI of a folder that metadata are exported to, in the form of gs:////, where is automatically generated.
912 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time when the export ended.
913 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the export started.
914 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the export.
915 },
916 ],
917 &quot;restores&quot;: [ # Output only. The latest restores of the metastore service.
918 { # The details of a metadata restore operation.
919 &quot;backup&quot;: &quot;A String&quot;, # Output only. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}.
920 &quot;backupLocation&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.
921 &quot;details&quot;: &quot;A String&quot;, # Output only. The restore details containing the revision of the service to be restored to, in format of JSON.
922 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time when the restore ended.
923 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the restore started.
924 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the restore.
925 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of restore.
926 },
927 ],
928 },
929 &quot;multiRegionConfig&quot;: { # Deprecated: Use a single region service instead. The multi-region config for the Dataproc Metastore service. # Optional. Deprecated: Use a single region service instead. Specifies the multi-region configuration information for the Hive metastore service.
930 &quot;certificates&quot;: [ # Output only. Deprecated: Use a single region service instead. The list of root CA certificates that a gRPC client uses to connect to a multi-regional Dataproc Metastore service.
931 { # Deprecated: Use a single region service instead. A gRPC client must install all root CA certificates to connect to a multi-regional Dataproc Metastore service and achieve failover.
932 &quot;certificate&quot;: &quot;A String&quot;, # Deprecated: Use a single region service instead. The root CA certificate in PEM format. The maximum length is 65536 bytes.
933 &quot;expirationTime&quot;: &quot;A String&quot;, # Deprecated: Use a single region service instead. The certificate expiration time in timestamp format.
934 },
935 ],
936 &quot;customRegionConfig&quot;: { # Deprecated: Use a single region service instead. Custom configuration used to specify regions that the metastore service runs in. Currently only supported in the us multi-region. # Immutable. Deprecated: Use a single region service instead.
937 &quot;readOnlyRegions&quot;: [ # Optional. The list of read-only regions where the metastore service runs in. These regions should be part (or subset) of the multi-region.
938 &quot;A String&quot;,
939 ],
940 &quot;readWriteRegions&quot;: [ # Required. The list of read-write regions where the metastore service runs in. These regions should be part (or subset) of the multi-region.
941 &quot;A String&quot;,
942 ],
943 },
944 },
945 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}.
946 &quot;network&quot;: &quot;A String&quot;, # Immutable. The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:projects/{project_number}/global/networks/{network_id}.
947 &quot;networkConfig&quot;: { # Network configuration for the Dataproc Metastore service. # Optional. The configuration specifying the network settings for the Dataproc Metastore service.
948 &quot;consumers&quot;: [ # Immutable. The consumer-side network configuration for the Dataproc Metastore instance.
949 { # Contains information of the customer&#x27;s network configurations.
950 &quot;endpointLocation&quot;: &quot;A String&quot;, # Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.
951 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
952 &quot;subnetwork&quot;: &quot;A String&quot;, # Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service&#x27;s endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet&#x27;s primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}
953 },
954 ],
955 &quot;customRoutesEnabled&quot;: True or False, # Optional. Enables custom routes to be imported and exported for the Dataproc Metastore service&#x27;s peered VPC network.
956 },
957 &quot;port&quot;: 42, # Optional. The TCP port at which the metastore service is reached. Default: 9083.
958 &quot;releaseChannel&quot;: &quot;A String&quot;, # Immutable. The release channel of the service. If unspecified, defaults to STABLE.
959 &quot;scalingConfig&quot;: { # Represents the scaling configuration of a metastore service. # Optional. Scaling configuration of the metastore service.
960 &quot;autoscalingConfig&quot;: { # Represents the autoscaling configuration of a metastore service. # Optional. The autoscaling configuration.
961 &quot;autoscalingEnabled&quot;: True or False, # Optional. Whether or not autoscaling is enabled for this service.
962 &quot;autoscalingFactor&quot;: 3.14, # Output only. The scaling factor of a service with autoscaling enabled.
963 &quot;limitConfig&quot;: { # Represents the autoscaling limit configuration of a metastore service. # Optional. The LimitConfig of the service.
964 &quot;maxScalingFactor&quot;: 3.14, # Optional. The highest scaling factor that the service should be autoscaled to.
965 &quot;minScalingFactor&quot;: 3.14, # Optional. The lowest scaling factor that the service should be autoscaled to.
966 },
967 },
968 &quot;instanceSize&quot;: &quot;A String&quot;, # An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))
969 &quot;scalingFactor&quot;: 3.14, # Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.
970 },
971 &quot;scheduledBackup&quot;: { # This specifies the configuration of scheduled backup. # Optional. The configuration of scheduled backup for the metastore service.
972 &quot;backupLocation&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing backup files will be stored below it.
973 &quot;cronSchedule&quot;: &quot;A String&quot;, # Optional. The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
974 &quot;enabled&quot;: True or False, # Optional. Defines whether the scheduled backup is enabled. The default value is false.
975 &quot;latestBackup&quot;: { # The details of the latest scheduled backup. # Output only. The details of the latest scheduled backup.
976 &quot;backupId&quot;: &quot;A String&quot;, # Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress.
977 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the backup completion.
978 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the backup was started.
979 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
980 },
981 &quot;nextScheduledTime&quot;: &quot;A String&quot;, # Output only. The time when the next backups execution is scheduled to start.
982 &quot;timeZone&quot;: &quot;A String&quot;, # Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
983 },
984 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the metastore service.
985 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of the metastore service, if available.
986 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
987 &quot;a_key&quot;: &quot;A String&quot;,
988 },
989 &quot;telemetryConfig&quot;: { # Telemetry Configuration for the Dataproc Metastore service. # Optional. The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.
990 &quot;logFormat&quot;: &quot;A String&quot;, # Optional. The output format of the Dataproc Metastore service&#x27;s logs.
991 },
992 &quot;tier&quot;: &quot;A String&quot;, # Optional. The tier of the service.
993 &quot;uid&quot;: &quot;A String&quot;, # Output only. The globally unique resource identifier of the metastore service.
994 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was last updated.
995 },
996 ],
997 &quot;unreachable&quot;: [ # Locations that could not be reached.
998 &quot;A String&quot;,
999 ],
1000 }</pre>
1001 </div>
1002
1003 <div class="method">
1004 <code class="details" id="list_next">list_next()</code>
1005 <pre>Retrieves the next page of results.
1006
1007 Args:
1008 previous_request: The request for the previous page. (required)
1009 previous_response: The response from the request for the previous page. (required)
1010
1011 Returns:
1012 A request object that you can call &#x27;execute()&#x27; on to request the next
1013 page. Returns None if there are no more items in the collection.
1014 </pre>
1015 </div>
1016
1017 <div class="method">
1018 <code class="details" id="moveTableToDatabase">moveTableToDatabase(service, body=None, x__xgafv=None)</code>
1019 <pre>Move a table to another database.
1020
1021 Args:
1022 service: string, Required. The relative resource name of the metastore service to mutate metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
1023 body: object, The request body.
1024 The object takes the form of:
1025
1026 { # Request message for DataprocMetastore.MoveTableToDatabase.
1027 &quot;dbName&quot;: &quot;A String&quot;, # Required. The name of the database where the table resides.
1028 &quot;destinationDbName&quot;: &quot;A String&quot;, # Required. The name of the database where the table should be moved.
1029 &quot;tableName&quot;: &quot;A String&quot;, # Required. The name of the table to be moved.
1030 }
1031
1032 x__xgafv: string, V1 error format.
1033 Allowed values
1034 1 - v1 error format
1035 2 - v2 error format
1036
1037 Returns:
1038 An object of the form:
1039
1040 { # This resource represents a long-running operation that is the result of a network API call.
1041 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
1042 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1043 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1044 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1045 {
1046 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1047 },
1048 ],
1049 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1050 },
1051 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1052 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1053 },
1054 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
1055 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
1056 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1057 },
1058 }</pre>
1059 </div>
1060
1061 <div class="method">
1062 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
1063 <pre>Updates the parameters of a single service.
1064
1065 Args:
1066 name: string, Immutable. Identifier. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}. (required)
1067 body: object, The request body.
1068 The object takes the form of:
1069
1070 { # A managed metastore service that serves metadata queries.
1071 &quot;artifactGcsUri&quot;: &quot;A String&quot;, # Output only. A Cloud Storage URI (starting with gs://) that specifies where artifacts related to the metastore service are stored.
1072 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was created.
1073 &quot;databaseType&quot;: &quot;A String&quot;, # Immutable. The database type that the Metastore service stores its data.
1074 &quot;deletionProtection&quot;: True or False, # Optional. Indicates if the dataproc metastore should be protected against accidental deletions.
1075 &quot;encryptionConfig&quot;: { # Encryption settings for the service. # Immutable. Information used to configure the Dataproc Metastore service to encrypt customer data at rest. Cannot be updated.
1076 &quot;kmsKey&quot;: &quot;A String&quot;, # Optional. The fully qualified customer provided Cloud KMS key name to use for customer data encryption, in the following format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.
1077 &quot;kmsKeys&quot;: [ # Optional. The list of fully qualified customer provided Cloud KMS key names for the multi-regional service. Each key must be in the following format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.
1078 &quot;A String&quot;,
1079 ],
1080 },
1081 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
1082 &quot;hiveMetastoreConfig&quot;: { # Specifies configuration information specific to running Hive metastore software as the metastore service. # Configuration information specific to running Hive metastore software as the metastore service.
1083 &quot;auxiliaryVersions&quot;: { # Optional. A mapping of Hive metastore version to the auxiliary version configuration. When specified, a secondary Hive metastore service is created along with the primary service. All auxiliary versions must be less than the service&#x27;s primary version. The key is the auxiliary service name and it must match the regular expression a-z?. This means that the first character must be a lowercase letter, and all the following characters must be hyphens, lowercase letters, or digits, except the last character, which cannot be a hyphen.
1084 &quot;a_key&quot;: { # Configuration information for the auxiliary service versions.
1085 &quot;configOverrides&quot;: { # Optional. A mapping of Hive metastore configuration key-value pairs to apply to the auxiliary Hive metastore (configured in hive-site.xml) in addition to the primary version&#x27;s overrides. If keys are present in both the auxiliary version&#x27;s overrides and the primary version&#x27;s overrides, the value from the auxiliary version&#x27;s overrides takes precedence.
1086 &quot;a_key&quot;: &quot;A String&quot;,
1087 },
1088 &quot;networkConfig&quot;: { # Network configuration for the Dataproc Metastore service. # Output only. The network configuration contains the endpoint URI(s) of the auxiliary Hive metastore service.
1089 &quot;consumers&quot;: [ # Immutable. The consumer-side network configuration for the Dataproc Metastore instance.
1090 { # Contains information of the customer&#x27;s network configurations.
1091 &quot;endpointLocation&quot;: &quot;A String&quot;, # Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.
1092 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
1093 &quot;subnetwork&quot;: &quot;A String&quot;, # Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service&#x27;s endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet&#x27;s primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}
1094 },
1095 ],
1096 &quot;customRoutesEnabled&quot;: True or False, # Optional. Enables custom routes to be imported and exported for the Dataproc Metastore service&#x27;s peered VPC network.
1097 },
1098 &quot;version&quot;: &quot;A String&quot;, # Optional. The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service&#x27;s version.
1099 },
1100 },
1101 &quot;configOverrides&quot;: { # Optional. A mapping of Hive metastore configuration key-value pairs to apply to the Hive metastore (configured in hive-site.xml). The mappings override system defaults (some keys cannot be overridden). These overrides are also applied to auxiliary versions and can be further customized in the auxiliary version&#x27;s AuxiliaryVersionConfig.
1102 &quot;a_key&quot;: &quot;A String&quot;,
1103 },
1104 &quot;endpointProtocol&quot;: &quot;A String&quot;, # Optional. The protocol to use for the metastore service endpoint. If unspecified, defaults to THRIFT.
1105 &quot;kerberosConfig&quot;: { # Configuration information for a Kerberos principal. # Optional. Information used to configure the Hive metastore service as a service principal in a Kerberos realm. To disable Kerberos, use the UpdateService method and specify this field&#x27;s path (hive_metastore_config.kerberos_config) in the request&#x27;s update_mask while omitting this field from the request&#x27;s service.
1106 &quot;keytab&quot;: { # A securely stored value. # Optional. A Kerberos keytab file that can be used to authenticate a service principal with a Kerberos Key Distribution Center (KDC).
1107 &quot;cloudSecret&quot;: &quot;A String&quot;, # Optional. The relative resource name of a Secret Manager secret version, in the following form:projects/{project_number}/secrets/{secret_id}/versions/{version_id}.
1108 },
1109 &quot;krb5ConfigGcsUri&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI that specifies the path to a krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, although the file does not need to be named krb5.conf explicitly.
1110 &quot;principal&quot;: &quot;A String&quot;, # Optional. A Kerberos principal that exists in the both the keytab the KDC to authenticate as. A typical principal is of the form primary/instance@REALM, but there is no exact format.
1111 },
1112 &quot;version&quot;: &quot;A String&quot;, # Immutable. The Hive metastore schema version.
1113 },
1114 &quot;labels&quot;: { # User-defined labels for the metastore service.
1115 &quot;a_key&quot;: &quot;A String&quot;,
1116 },
1117 &quot;maintenanceWindow&quot;: { # Maintenance window. This specifies when Dataproc Metastore may perform system maintenance operation to the service. # Optional. The one hour maintenance window of the metastore service. This specifies when the service can be restarted for maintenance purposes in UTC time. Maintenance window is not needed for services with the SPANNER database type.
1118 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Optional. The day of week, when the window starts.
1119 &quot;hourOfDay&quot;: 42, # Optional. The hour of day (0-23) when the window starts.
1120 },
1121 &quot;metadataIntegration&quot;: { # Specifies how metastore metadata should be integrated with external services. # Optional. The setting that defines how metastore metadata should be integrated with external services and systems.
1122 &quot;dataCatalogConfig&quot;: { # Specifies how metastore metadata should be integrated with the Data Catalog service. # Optional. The integration config for the Data Catalog service.
1123 &quot;enabled&quot;: True or False, # Optional. Defines whether the metastore metadata should be synced to Data Catalog. The default value is to disable syncing metastore metadata to Data Catalog.
1124 },
1125 &quot;dataplexConfig&quot;: { # Specifies how metastore metadata should be integrated with the Dataplex service. # Optional. The integration config for the Dataplex service.
1126 &quot;lakeResources&quot;: { # Optional. A reference to the Lake resources that this metastore service is attached to. The key is the lake resource name. Example: projects/{project_number}/locations/{location_id}/lakes/{lake_id}.
1127 &quot;a_key&quot;: { # Represents a Lake resource
1128 &quot;name&quot;: &quot;A String&quot;, # The Lake resource name. Example: projects/{project_number}/locations/{location_id}/lakes/{lake_id}
1129 },
1130 },
1131 },
1132 },
1133 &quot;metadataManagementActivity&quot;: { # The metadata management activities of the metastore service. # Output only. The metadata management activities of the metastore service.
1134 &quot;metadataExports&quot;: [ # Output only. The latest metadata exports of the metastore service.
1135 { # The details of a metadata export operation.
1136 &quot;databaseDumpType&quot;: &quot;A String&quot;, # Output only. The type of the database dump.
1137 &quot;destinationGcsUri&quot;: &quot;A String&quot;, # Output only. A Cloud Storage URI of a folder that metadata are exported to, in the form of gs:////, where is automatically generated.
1138 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time when the export ended.
1139 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the export started.
1140 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the export.
1141 },
1142 ],
1143 &quot;restores&quot;: [ # Output only. The latest restores of the metastore service.
1144 { # The details of a metadata restore operation.
1145 &quot;backup&quot;: &quot;A String&quot;, # Output only. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}.
1146 &quot;backupLocation&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI specifying where the backup artifacts are stored, in the format gs:///.
1147 &quot;details&quot;: &quot;A String&quot;, # Output only. The restore details containing the revision of the service to be restored to, in format of JSON.
1148 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time when the restore ended.
1149 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the restore started.
1150 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the restore.
1151 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of restore.
1152 },
1153 ],
1154 },
1155 &quot;multiRegionConfig&quot;: { # Deprecated: Use a single region service instead. The multi-region config for the Dataproc Metastore service. # Optional. Deprecated: Use a single region service instead. Specifies the multi-region configuration information for the Hive metastore service.
1156 &quot;certificates&quot;: [ # Output only. Deprecated: Use a single region service instead. The list of root CA certificates that a gRPC client uses to connect to a multi-regional Dataproc Metastore service.
1157 { # Deprecated: Use a single region service instead. A gRPC client must install all root CA certificates to connect to a multi-regional Dataproc Metastore service and achieve failover.
1158 &quot;certificate&quot;: &quot;A String&quot;, # Deprecated: Use a single region service instead. The root CA certificate in PEM format. The maximum length is 65536 bytes.
1159 &quot;expirationTime&quot;: &quot;A String&quot;, # Deprecated: Use a single region service instead. The certificate expiration time in timestamp format.
1160 },
1161 ],
1162 &quot;customRegionConfig&quot;: { # Deprecated: Use a single region service instead. Custom configuration used to specify regions that the metastore service runs in. Currently only supported in the us multi-region. # Immutable. Deprecated: Use a single region service instead.
1163 &quot;readOnlyRegions&quot;: [ # Optional. The list of read-only regions where the metastore service runs in. These regions should be part (or subset) of the multi-region.
1164 &quot;A String&quot;,
1165 ],
1166 &quot;readWriteRegions&quot;: [ # Required. The list of read-write regions where the metastore service runs in. These regions should be part (or subset) of the multi-region.
1167 &quot;A String&quot;,
1168 ],
1169 },
1170 },
1171 &quot;name&quot;: &quot;A String&quot;, # Immutable. Identifier. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}.
1172 &quot;network&quot;: &quot;A String&quot;, # Immutable. The relative resource name of the VPC network on which the instance can be accessed. It is specified in the following form:projects/{project_number}/global/networks/{network_id}.
1173 &quot;networkConfig&quot;: { # Network configuration for the Dataproc Metastore service. # Optional. The configuration specifying the network settings for the Dataproc Metastore service.
1174 &quot;consumers&quot;: [ # Immutable. The consumer-side network configuration for the Dataproc Metastore instance.
1175 { # Contains information of the customer&#x27;s network configurations.
1176 &quot;endpointLocation&quot;: &quot;A String&quot;, # Output only. The location of the endpoint URI. Format: projects/{project}/locations/{location}.
1177 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
1178 &quot;subnetwork&quot;: &quot;A String&quot;, # Immutable. The subnetwork of the customer project from which an IP address is reserved and used as the Dataproc Metastore service&#x27;s endpoint. It is accessible to hosts in the subnet and to all hosts in a subnet in the same region and same network. There must be at least one IP address available in the subnet&#x27;s primary range. The subnet is specified in the following form:projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}
1179 },
1180 ],
1181 &quot;customRoutesEnabled&quot;: True or False, # Optional. Enables custom routes to be imported and exported for the Dataproc Metastore service&#x27;s peered VPC network.
1182 },
1183 &quot;port&quot;: 42, # Optional. The TCP port at which the metastore service is reached. Default: 9083.
1184 &quot;releaseChannel&quot;: &quot;A String&quot;, # Immutable. The release channel of the service. If unspecified, defaults to STABLE.
1185 &quot;scalingConfig&quot;: { # Represents the scaling configuration of a metastore service. # Optional. Scaling configuration of the metastore service.
1186 &quot;autoscalingConfig&quot;: { # Represents the autoscaling configuration of a metastore service. # Optional. The autoscaling configuration.
1187 &quot;autoscalingEnabled&quot;: True or False, # Optional. Whether or not autoscaling is enabled for this service.
1188 &quot;autoscalingFactor&quot;: 3.14, # Output only. The scaling factor of a service with autoscaling enabled.
1189 &quot;limitConfig&quot;: { # Represents the autoscaling limit configuration of a metastore service. # Optional. The LimitConfig of the service.
1190 &quot;maxScalingFactor&quot;: 3.14, # Optional. The highest scaling factor that the service should be autoscaled to.
1191 &quot;minScalingFactor&quot;: 3.14, # Optional. The lowest scaling factor that the service should be autoscaled to.
1192 },
1193 },
1194 &quot;instanceSize&quot;: &quot;A String&quot;, # An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))
1195 &quot;scalingFactor&quot;: 3.14, # Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.
1196 },
1197 &quot;scheduledBackup&quot;: { # This specifies the configuration of scheduled backup. # Optional. The configuration of scheduled backup for the metastore service.
1198 &quot;backupLocation&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI of a folder, in the format gs:///. A sub-folder containing backup files will be stored below it.
1199 &quot;cronSchedule&quot;: &quot;A String&quot;, # Optional. The scheduled interval in Cron format, see https://en.wikipedia.org/wiki/Cron The default is empty: scheduled backup is not enabled. Must be specified to enable scheduled backups.
1200 &quot;enabled&quot;: True or False, # Optional. Defines whether the scheduled backup is enabled. The default value is false.
1201 &quot;latestBackup&quot;: { # The details of the latest scheduled backup. # Output only. The details of the latest scheduled backup.
1202 &quot;backupId&quot;: &quot;A String&quot;, # Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress.
1203 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the backup completion.
1204 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the backup was started.
1205 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
1206 },
1207 &quot;nextScheduledTime&quot;: &quot;A String&quot;, # Output only. The time when the next backups execution is scheduled to start.
1208 &quot;timeZone&quot;: &quot;A String&quot;, # Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g. America/Los_Angeles or Africa/Abidjan. If left unspecified, the default is UTC.
1209 },
1210 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the metastore service.
1211 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of the metastore service, if available.
1212 &quot;tags&quot;: { # Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: &quot;123/environment&quot;: &quot;production&quot;, &quot;123/costCenter&quot;: &quot;marketing&quot;
1213 &quot;a_key&quot;: &quot;A String&quot;,
1214 },
1215 &quot;telemetryConfig&quot;: { # Telemetry Configuration for the Dataproc Metastore service. # Optional. The configuration specifying telemetry settings for the Dataproc Metastore service. If unspecified defaults to JSON.
1216 &quot;logFormat&quot;: &quot;A String&quot;, # Optional. The output format of the Dataproc Metastore service&#x27;s logs.
1217 },
1218 &quot;tier&quot;: &quot;A String&quot;, # Optional. The tier of the service.
1219 &quot;uid&quot;: &quot;A String&quot;, # Output only. The globally unique resource identifier of the metastore service.
1220 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was last updated.
1221 }
1222
1223 requestId: string, Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1224 updateMask: string, Required. A field mask used to specify the fields to be overwritten in the metastore service resource by the update. Fields specified in the update_mask are relative to the resource (not to the full request). A field is overwritten if it is in the mask.
1225 x__xgafv: string, V1 error format.
1226 Allowed values
1227 1 - v1 error format
1228 2 - v2 error format
1229
1230 Returns:
1231 An object of the form:
1232
1233 { # This resource represents a long-running operation that is the result of a network API call.
1234 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
1235 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1236 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1237 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1238 {
1239 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1240 },
1241 ],
1242 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1243 },
1244 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1245 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1246 },
1247 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
1248 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
1249 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1250 },
1251 }</pre>
1252 </div>
1253
1254 <div class="method">
1255 <code class="details" id="queryMetadata">queryMetadata(service, body=None, x__xgafv=None)</code>
1256 <pre>Query Dataproc Metastore metadata.
1257
1258 Args:
1259 service: string, Required. The relative resource name of the metastore service to query metadata, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
1260 body: object, The request body.
1261 The object takes the form of:
1262
1263 { # Request message for DataprocMetastore.QueryMetadata.
1264 &quot;query&quot;: &quot;A String&quot;, # Required. A read-only SQL query to execute against the metadata database. The query cannot change or mutate the data.
1265 }
1266
1267 x__xgafv: string, V1 error format.
1268 Allowed values
1269 1 - v1 error format
1270 2 - v2 error format
1271
1272 Returns:
1273 An object of the form:
1274
1275 { # This resource represents a long-running operation that is the result of a network API call.
1276 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
1277 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1278 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1279 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1280 {
1281 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1282 },
1283 ],
1284 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1285 },
1286 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1287 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1288 },
1289 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
1290 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
1291 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1292 },
1293 }</pre>
1294 </div>
1295
1296 <div class="method">
1297 <code class="details" id="removeIamPolicy">removeIamPolicy(resource, body=None, x__xgafv=None)</code>
1298 <pre>Removes the attached IAM policies for a resource
1299
1300 Args:
1301 resource: string, Required. The relative resource name of the dataplane resource to remove IAM policy, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id} or projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}. (required)
1302 body: object, The request body.
1303 The object takes the form of:
1304
1305 { # Request message for DataprocMetastore.RemoveIamPolicy.
1306 &quot;asynchronous&quot;: True or False, # Optional. Removes IAM policy attached to database or table asynchronously when it is set. The default is false.
1307 }
1308
1309 x__xgafv: string, V1 error format.
1310 Allowed values
1311 1 - v1 error format
1312 2 - v2 error format
1313
1314 Returns:
1315 An object of the form:
1316
1317 { # Response message for DataprocMetastore.RemoveIamPolicy.
1318 &quot;success&quot;: True or False, # True if the policy is successfully removed.
1319 }</pre>
1320 </div>
1321
1322 <div class="method">
1323 <code class="details" id="restore">restore(service, body=None, x__xgafv=None)</code>
1324 <pre>Restores a service from a backup.
1325
1326 Args:
1327 service: string, Required. The relative resource name of the metastore service to run restore, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
1328 body: object, The request body.
1329 The object takes the form of:
1330
1331 { # Request message for DataprocMetastore.RestoreService.
1332 &quot;backup&quot;: &quot;A String&quot;, # Optional. The relative resource name of the metastore service backup to restore from, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}. Mutually exclusive with backup_location, and exactly one of the two must be set.
1333 &quot;backupLocation&quot;: &quot;A String&quot;, # Optional. A Cloud Storage URI specifying the location of the backup artifacts, namely - backup avro files under &quot;avro/&quot;, backup_metastore.json and service.json, in the following form:gs://. Mutually exclusive with backup, and exactly one of the two must be set.
1334 &quot;requestId&quot;: &quot;A String&quot;, # Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1335 &quot;restoreType&quot;: &quot;A String&quot;, # Optional. The type of restore. If unspecified, defaults to METADATA_ONLY.
1336 }
1337
1338 x__xgafv: string, V1 error format.
1339 Allowed values
1340 1 - v1 error format
1341 2 - v2 error format
1342
1343 Returns:
1344 An object of the form:
1345
1346 { # This resource represents a long-running operation that is the result of a network API call.
1347 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
1348 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1349 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1350 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1351 {
1352 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1353 },
1354 ],
1355 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1356 },
1357 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1358 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1359 },
1360 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
1361 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
1362 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1363 },
1364 }</pre>
1365 </div>
1366
1367 <div class="method">
1368 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
1369 <pre>Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
1370
1371 Args:
1372 resource: string, REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
1373 body: object, The request body.
1374 The object takes the form of:
1375
1376 { # Request message for SetIamPolicy method.
1377 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members, or principals, to a single role. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example: { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } YAML example: bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.
1378 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1379 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging.
1380 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1381 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting [email protected] from DATA_READ logging.
1382 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
1383 &quot;A String&quot;,
1384 ],
1385 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1386 },
1387 ],
1388 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, storage.googleapis.com, cloudsql.googleapis.com. allServices is a special value that covers all services.
1389 },
1390 ],
1391 &quot;bindings&quot;: [ # Associates a list of members, or principals, with a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one principal.The bindings in a Policy can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the bindings grant 50 different roles to user:[email protected], and not to any other principal, then you can add another 1,450 principals to the bindings in the Policy.
1392 { # Associates members, or principals, with a role.
1393 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
1394 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1395 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1396 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1397 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1398 },
1399 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, [email protected] . serviceAccount:{emailid}: An email address that represents a Google service account. For example, [email protected]. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, [email protected]. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workforce identity pool. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}: All workforce identities in a group. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All workforce identities with a specific attribute value. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*: All identities in a workforce identity pool. principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workload identity pool. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool group. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All identities in a workload identity pool with a certain attribute. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*: All identities in a workload identity pool. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding. deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: Deleted single identity in a workforce identity pool. For example, deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value.
1400 &quot;A String&quot;,
1401 ],
1402 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner.For an overview of the IAM roles and permissions, see the IAM documentation (https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see here (https://cloud.google.com/iam/docs/understanding-roles).
1403 },
1404 ],
1405 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
1406 &quot;version&quot;: 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations: Getting a policy that includes a conditional role binding Adding a conditional role binding to a policy Changing a conditional role binding in a policy Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
1407 },
1408 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used:paths: &quot;bindings, etag&quot;
1409 }
1410
1411 x__xgafv: string, V1 error format.
1412 Allowed values
1413 1 - v1 error format
1414 2 - v2 error format
1415
1416 Returns:
1417 An object of the form:
1418
1419 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members, or principals, to a single role. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example: { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } YAML example: bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).
1420 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1421 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging.
1422 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1423 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting [email protected] from DATA_READ logging.
1424 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
1425 &quot;A String&quot;,
1426 ],
1427 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1428 },
1429 ],
1430 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, storage.googleapis.com, cloudsql.googleapis.com. allServices is a special value that covers all services.
1431 },
1432 ],
1433 &quot;bindings&quot;: [ # Associates a list of members, or principals, with a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one principal.The bindings in a Policy can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the bindings grant 50 different roles to user:[email protected], and not to any other principal, then you can add another 1,450 principals to the bindings in the Policy.
1434 { # Associates members, or principals, with a role.
1435 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
1436 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1437 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1438 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1439 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1440 },
1441 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, [email protected] . serviceAccount:{emailid}: An email address that represents a Google service account. For example, [email protected]. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, [email protected]. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workforce identity pool. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}: All workforce identities in a group. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All workforce identities with a specific attribute value. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*: All identities in a workforce identity pool. principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workload identity pool. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool group. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All identities in a workload identity pool with a certain attribute. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*: All identities in a workload identity pool. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, [email protected]?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding. deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: Deleted single identity in a workforce identity pool. For example, deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value.
1442 &quot;A String&quot;,
1443 ],
1444 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner.For an overview of the IAM roles and permissions, see the IAM documentation (https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see here (https://cloud.google.com/iam/docs/understanding-roles).
1445 },
1446 ],
1447 &quot;etag&quot;: &quot;A String&quot;, # etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.
1448 &quot;version&quot;: 42, # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations: Getting a policy that includes a conditional role binding Adding a conditional role binding to a policy Changing a conditional role binding in a policy Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).
1449 }</pre>
1450 </div>
1451
1452 <div class="method">
1453 <code class="details" id="startMigration">startMigration(service, body=None, x__xgafv=None)</code>
1454 <pre>Starts the Managed Migration process.
1455
1456 Args:
1457 service: string, Required. The relative resource name of the metastore service to start migrating to, in the following format:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
1458 body: object, The request body.
1459 The object takes the form of:
1460
1461 { # Request message for DataprocMetastore.StartMigration.
1462 &quot;migrationExecution&quot;: { # The details of a migration execution resource. # Required. The configuration details for the migration.
1463 &quot;cloudSqlMigrationConfig&quot;: { # Deprecated: Migrations to Dataproc Metastore are no longer supported. Use BigLake Metastore migration instead. Configuration information for migrating from self-managed hive metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore. # Deprecated: Migrations to Dataproc Metastore are no longer supported. Use BigLake Metastore migration instead. Configuration information specific to migrating from self-managed hive metastore on Google Cloud using Cloud SQL as the backend database to Dataproc Metastore.
1464 &quot;cdcConfig&quot;: { # Configuration information to start the Change Data Capture (CDC) streams from customer database to backend database of Dataproc Metastore. # Required. Configuration information to start the Change Data Capture (CDC) streams from customer database to backend database of Dataproc Metastore. Dataproc Metastore switches to using its backend database after the cutover phase of migration.
1465 &quot;bucket&quot;: &quot;A String&quot;, # Optional. The bucket to write the intermediate stream event data in. The bucket name must be without any prefix like &quot;gs://&quot;. See the bucket naming requirements (https://cloud.google.com/storage/docs/buckets#naming). This field is optional. If not set, the Artifacts Cloud Storage bucket will be used.
1466 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password for the user that Datastream service should use for the MySQL connection. This field is not returned on request.
1467 &quot;reverseProxySubnet&quot;: &quot;A String&quot;, # Required. The URL of the subnetwork resource to create the VM instance hosting the reverse proxy in. More context in https://cloud.google.com/datastream/docs/private-connectivity#reverse-csql-proxy The subnetwork should reside in the network provided in the request that Datastream will peer to and should be in the same region as Datastream, in the following format. projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id}
1468 &quot;rootPath&quot;: &quot;A String&quot;, # Optional. The root path inside the Cloud Storage bucket. The stream event data will be written to this path. The default value is /migration.
1469 &quot;subnetIpRange&quot;: &quot;A String&quot;, # Required. A /29 CIDR IP range for peering with datastream.
1470 &quot;username&quot;: &quot;A String&quot;, # Required. The username that the Datastream service should use for the MySQL connection.
1471 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Required. Fully qualified name of the Cloud SQL instance&#x27;s VPC network or the shared VPC network that Datastream will peer to, in the following format: projects/{project_id}/locations/global/networks/{network_id}. More context in https://cloud.google.com/datastream/docs/network-connectivity-options#privateconnectivity
1472 },
1473 &quot;cloudSqlConnectionConfig&quot;: { # Configuration information to establish customer database connection before the cutover phase of migration # Required. Configuration information to establish customer database connection before the cutover phase of migration
1474 &quot;hiveDatabaseName&quot;: &quot;A String&quot;, # Required. The hive database name.
1475 &quot;instanceConnectionName&quot;: &quot;A String&quot;, # Required. Cloud SQL database connection name (project_id:region:instance_name)
1476 &quot;ipAddress&quot;: &quot;A String&quot;, # Required. The private IP address of the Cloud SQL instance.
1477 &quot;natSubnet&quot;: &quot;A String&quot;, # Required. The relative resource name of the subnetwork to be used for Private Service Connect. Note that this cannot be a regular subnet and is used only for NAT. (https://cloud.google.com/vpc/docs/about-vpc-hosted-services#psc-subnets) This subnet is used to publish the SOCKS5 proxy service. The subnet size must be at least /29 and it should reside in a network through which the Cloud SQL instance is accessible. The resource name should be in the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id}
1478 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password for the user that Dataproc Metastore service will be using to connect to the database. This field is not returned on request.
1479 &quot;port&quot;: 42, # Required. The network port of the database.
1480 &quot;proxySubnet&quot;: &quot;A String&quot;, # Required. The relative resource name of the subnetwork to deploy the SOCKS5 proxy service in. The subnetwork should reside in a network through which the Cloud SQL instance is accessible. The resource name should be in the format, projects/{project_id}/regions/{region_id}/subnetworks/{subnetwork_id}
1481 &quot;username&quot;: &quot;A String&quot;, # Required. The username that Dataproc Metastore service will use to connect to the database.
1482 },
1483 },
1484 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the migration execution was started.
1485 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The time when the migration execution finished.
1486 &quot;name&quot;: &quot;A String&quot;, # Output only. The relative resource name of the migration execution, in the following form: projects/{project_number}/locations/{location_id}/services/{service_id}/migrationExecutions/{migration_execution_id}
1487 &quot;phase&quot;: &quot;A String&quot;, # Output only. Deprecated: Phase was designed for incoming migrations to Dataproc Metastore, not applicable when migrating away from it. The current phase of the migration execution.
1488 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the migration execution.
1489 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of the migration execution.
1490 },
1491 &quot;requestId&quot;: &quot;A String&quot;, # Optional. A request ID. Specify a unique request ID to allow the server to ignore the request if it has completed. The server will ignore subsequent requests that provide a duplicate request ID for at least 60 minutes after the first request.For example, if an initial request times out, followed by another request with the same request ID, the server ignores the second request to prevent the creation of duplicate commitments.The request ID must be a valid UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) A zero UUID (00000000-0000-0000-0000-000000000000) is not supported.
1492 }
1493
1494 x__xgafv: string, V1 error format.
1495 Allowed values
1496 1 - v1 error format
1497 2 - v2 error format
1498
1499 Returns:
1500 An object of the form:
1501
1502 { # This resource represents a long-running operation that is the result of a network API call.
1503 &quot;done&quot;: True or False, # If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.
1504 &quot;error&quot;: { # The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1505 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1506 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1507 {
1508 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1509 },
1510 ],
1511 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1512 },
1513 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1514 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1515 },
1516 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.
1517 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
1518 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1519 },
1520 }</pre>
1521 </div>
1522
1523 <div class="method">
1524 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
1525 <pre>Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may &quot;fail open&quot; without warning.
1526
1527 Args:
1528 resource: string, REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
1529 body: object, The request body.
1530 The object takes the form of:
1531
1532 { # Request message for TestIamPermissions method.
1533 &quot;permissions&quot;: [ # The set of permissions to check for the resource. Permissions with wildcards (such as * or storage.*) are not allowed. For more information see IAM Overview (https://cloud.google.com/iam/docs/overview#permissions).
1534 &quot;A String&quot;,
1535 ],
1536 }
1537
1538 x__xgafv: string, V1 error format.
1539 Allowed values
1540 1 - v1 error format
1541 2 - v2 error format
1542
1543 Returns:
1544 An object of the form:
1545
1546 { # Response message for TestIamPermissions method.
1547 &quot;permissions&quot;: [ # A subset of TestPermissionsRequest.permissions that the caller is allowed.
1548 &quot;A String&quot;,
1549 ],
1550 }</pre>
1551 </div>
1552
1553 </body></html>