Debian Codegraph @

docs/dyn/metastore_v2.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_v2.html">Dataproc Metastore API</a> . <a href="metastore_v2.projects.html">projects</a> . <a href="metastore_v2.projects.locations.html">locations</a> . <a href="metastore_v2.projects.locations.services.html">services</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="metastore_v2.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="#alterLocation">alterLocation(service, body=None, x__xgafv=None)</a></code></p>
84 <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>
85 <p class="toc_element">
86 <code><a href="#alterTableProperties">alterTableProperties(service, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Alter metadata table properties.</p>
88 <p class="toc_element">
89 <code><a href="#close">close()</a></code></p>
90 <p class="firstline">Close httplib2 connections.</p>
91 <p class="toc_element">
92 <code><a href="#create">create(parent, body=None, requestId=None, serviceId=None, x__xgafv=None)</a></code></p>
93 <p class="firstline">Creates a metastore service in a project and location.</p>
94 <p class="toc_element">
95 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Deletes a single service.</p>
97 <p class="toc_element">
98 <code><a href="#exportMetadata">exportMetadata(service, body=None, x__xgafv=None)</a></code></p>
99 <p class="firstline">Exports metadata from a service.</p>
100 <p class="toc_element">
101 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
102 <p class="firstline">Gets the details of a single service.</p>
103 <p class="toc_element">
104 <code><a href="#importMetadata">importMetadata(name, body=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Imports Metadata into a Dataproc Metastore service.</p>
106 <p class="toc_element">
107 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">Lists services in a project and location.</p>
109 <p class="toc_element">
110 <code><a href="#list_next">list_next()</a></code></p>
111 <p class="firstline">Retrieves the next page of results.</p>
112 <p class="toc_element">
113 <code><a href="#moveTableToDatabase">moveTableToDatabase(service, body=None, x__xgafv=None)</a></code></p>
114 <p class="firstline">Move a table to another database.</p>
115 <p class="toc_element">
116 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
117 <p class="firstline">Updates the parameters of a single service.</p>
118 <p class="toc_element">
119 <code><a href="#queryMetadata">queryMetadata(service, body=None, x__xgafv=None)</a></code></p>
120 <p class="firstline">Query Dataproc Metastore metadata.</p>
121 <p class="toc_element">
122 <code><a href="#restore">restore(service, body=None, x__xgafv=None)</a></code></p>
123 <p class="firstline">Restores a service from a backup.</p>
124 <h3>Method Details</h3>
125 <div class="method">
126 <code class="details" id="alterLocation">alterLocation(service, body=None, x__xgafv=None)</code>
127 <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.
128
129 Args:
130 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)
131 body: object, The request body.
132 The object takes the form of:
133
134 { # Request message for DataprocMetastore.AlterMetadataResourceLocation.
135 &quot;locationUri&quot;: &quot;A String&quot;, # Required. The new location URI for the metadata resource.
136 &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}
137 }
138
139 x__xgafv: string, V1 error format.
140 Allowed values
141 1 - v1 error format
142 2 - v2 error format
143
144 Returns:
145 An object of the form:
146
147 { # This resource represents a long-running operation that is the result of a network API call.
148 &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.
149 &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.
150 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
151 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
152 {
153 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
154 },
155 ],
156 &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.
157 },
158 &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.
159 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
160 },
161 &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}.
162 &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.
163 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
164 },
165 }</pre>
166 </div>
167
168 <div class="method">
169 <code class="details" id="alterTableProperties">alterTableProperties(service, body=None, x__xgafv=None)</code>
170 <pre>Alter metadata table properties.
171
172 Args:
173 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)
174 body: object, The request body.
175 The object takes the form of:
176
177 { # Request message for DataprocMetastore.AlterTableProperties.
178 &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
179 &quot;a_key&quot;: &quot;A String&quot;,
180 },
181 &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}
182 &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 }
183 }
184
185 x__xgafv: string, V1 error format.
186 Allowed values
187 1 - v1 error format
188 2 - v2 error format
189
190 Returns:
191 An object of the form:
192
193 { # This resource represents a long-running operation that is the result of a network API call.
194 &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.
195 &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.
196 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
197 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
198 {
199 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
200 },
201 ],
202 &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.
203 },
204 &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.
205 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
206 },
207 &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}.
208 &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.
209 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
210 },
211 }</pre>
212 </div>
213
214 <div class="method">
215 <code class="details" id="close">close()</code>
216 <pre>Close httplib2 connections.</pre>
217 </div>
218
219 <div class="method">
220 <code class="details" id="create">create(parent, body=None, requestId=None, serviceId=None, x__xgafv=None)</code>
221 <pre>Creates a metastore service in a project and location.
222
223 Args:
224 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)
225 body: object, The request body.
226 The object takes the form of:
227
228 { # A managed metastore service that serves metadata queries.
229 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was created.
230 &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.
231 },
232 &quot;endpoints&quot;: [ # Output only. The list of endpoints used to access the metastore service.
233 { # An endpoint used to access the metastore service.
234 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
235 &quot;region&quot;: &quot;A String&quot;, # Output only. The region where the endpoint is located.
236 },
237 ],
238 &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.
239 &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.
240 &quot;a_key&quot;: { # Configuration information for the auxiliary service versions.
241 &quot;configOverrides&quot;: { # 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.
242 &quot;a_key&quot;: &quot;A String&quot;,
243 },
244 &quot;endpoints&quot;: [ # Output only. The list of endpoints used to access the auxiliary metastore service, includes version and region data.
245 { # An endpoint used to access the metastore service.
246 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
247 &quot;region&quot;: &quot;A String&quot;, # Output only. The region where the endpoint is located.
248 },
249 ],
250 &quot;version&quot;: &quot;A String&quot;, # The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service&#x27;s version.
251 },
252 },
253 &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.
254 &quot;a_key&quot;: &quot;A String&quot;,
255 },
256 &quot;endpointProtocol&quot;: &quot;A String&quot;, # Optional. The protocol to use for the metastore service endpoint. If unspecified, defaults to GRPC.
257 &quot;version&quot;: &quot;A String&quot;, # Immutable. The Hive metastore schema version.
258 },
259 &quot;labels&quot;: { # User-defined labels for the metastore service.
260 &quot;a_key&quot;: &quot;A String&quot;,
261 },
262 &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.
263 &quot;dataCatalogConfig&quot;: { # Specifies how metastore metadata should be integrated with the Data Catalog service. # Optional. The integration config for the Data Catalog service.
264 &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.
265 },
266 },
267 &quot;name&quot;: &quot;A String&quot;, # Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}.
268 &quot;scalingConfig&quot;: { # Represents the scaling configuration of a metastore service. # Optional. Scaling configuration of the metastore service.
269 &quot;scalingFactor&quot;: 42, # Optional. Scaling factor from 1 to 5, increments of 1.
270 },
271 &quot;scheduledBackup&quot;: { # This specifies the configuration of scheduled backup. # Optional. The configuration of scheduled backup for the metastore service.
272 &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.
273 &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.
274 &quot;enabled&quot;: True or False, # Optional. Defines whether the scheduled backup is enabled. The default value is false.
275 &quot;latestBackup&quot;: { # The details of the latest scheduled backup. # Output only. The details of the latest scheduled backup.
276 &quot;backupId&quot;: &quot;A String&quot;, # Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress.
277 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the backup completion.
278 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the backup was started.
279 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
280 },
281 &quot;nextScheduledTime&quot;: &quot;A String&quot;, # Output only. The time when the next backups execution is scheduled to start.
282 &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.
283 },
284 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the metastore service.
285 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of the metastore service, if available.
286 &quot;uid&quot;: &quot;A String&quot;, # Output only. The globally unique resource identifier of the metastore service.
287 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was last updated.
288 &quot;warehouseGcsUri&quot;: &quot;A String&quot;, # Required. A Cloud Storage URI (starting with gs://) that specifies the default warehouse directory of the Hive Metastore.
289 }
290
291 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.
292 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.
293 x__xgafv: string, V1 error format.
294 Allowed values
295 1 - v1 error format
296 2 - v2 error format
297
298 Returns:
299 An object of the form:
300
301 { # This resource represents a long-running operation that is the result of a network API call.
302 &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.
303 &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.
304 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
305 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
306 {
307 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
308 },
309 ],
310 &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.
311 },
312 &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.
313 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
314 },
315 &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}.
316 &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.
317 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
318 },
319 }</pre>
320 </div>
321
322 <div class="method">
323 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
324 <pre>Deletes a single service.
325
326 Args:
327 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)
328 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.
329 x__xgafv: string, V1 error format.
330 Allowed values
331 1 - v1 error format
332 2 - v2 error format
333
334 Returns:
335 An object of the form:
336
337 { # This resource represents a long-running operation that is the result of a network API call.
338 &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.
339 &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.
340 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
341 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
342 {
343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
344 },
345 ],
346 &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.
347 },
348 &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.
349 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
350 },
351 &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}.
352 &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.
353 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
354 },
355 }</pre>
356 </div>
357
358 <div class="method">
359 <code class="details" id="exportMetadata">exportMetadata(service, body=None, x__xgafv=None)</code>
360 <pre>Exports metadata from a service.
361
362 Args:
363 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)
364 body: object, The request body.
365 The object takes the form of:
366
367 { # Request message for DataprocMetastore.ExportMetadata.
368 &quot;databaseDumpType&quot;: &quot;A String&quot;, # Optional. The type of the database dump. If unspecified, defaults to MYSQL.
369 &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.
370 &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.
371 }
372
373 x__xgafv: string, V1 error format.
374 Allowed values
375 1 - v1 error format
376 2 - v2 error format
377
378 Returns:
379 An object of the form:
380
381 { # This resource represents a long-running operation that is the result of a network API call.
382 &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.
383 &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.
384 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
385 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
386 {
387 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
388 },
389 ],
390 &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.
391 },
392 &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.
393 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
394 },
395 &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}.
396 &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.
397 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
398 },
399 }</pre>
400 </div>
401
402 <div class="method">
403 <code class="details" id="get">get(name, x__xgafv=None)</code>
404 <pre>Gets the details of a single service.
405
406 Args:
407 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)
408 x__xgafv: string, V1 error format.
409 Allowed values
410 1 - v1 error format
411 2 - v2 error format
412
413 Returns:
414 An object of the form:
415
416 { # A managed metastore service that serves metadata queries.
417 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was created.
418 &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.
419 },
420 &quot;endpoints&quot;: [ # Output only. The list of endpoints used to access the metastore service.
421 { # An endpoint used to access the metastore service.
422 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
423 &quot;region&quot;: &quot;A String&quot;, # Output only. The region where the endpoint is located.
424 },
425 ],
426 &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.
427 &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.
428 &quot;a_key&quot;: { # Configuration information for the auxiliary service versions.
429 &quot;configOverrides&quot;: { # 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.
430 &quot;a_key&quot;: &quot;A String&quot;,
431 },
432 &quot;endpoints&quot;: [ # Output only. The list of endpoints used to access the auxiliary metastore service, includes version and region data.
433 { # An endpoint used to access the metastore service.
434 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
435 &quot;region&quot;: &quot;A String&quot;, # Output only. The region where the endpoint is located.
436 },
437 ],
438 &quot;version&quot;: &quot;A String&quot;, # The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service&#x27;s version.
439 },
440 },
441 &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.
442 &quot;a_key&quot;: &quot;A String&quot;,
443 },
444 &quot;endpointProtocol&quot;: &quot;A String&quot;, # Optional. The protocol to use for the metastore service endpoint. If unspecified, defaults to GRPC.
445 &quot;version&quot;: &quot;A String&quot;, # Immutable. The Hive metastore schema version.
446 },
447 &quot;labels&quot;: { # User-defined labels for the metastore service.
448 &quot;a_key&quot;: &quot;A String&quot;,
449 },
450 &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.
451 &quot;dataCatalogConfig&quot;: { # Specifies how metastore metadata should be integrated with the Data Catalog service. # Optional. The integration config for the Data Catalog service.
452 &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.
453 },
454 },
455 &quot;name&quot;: &quot;A String&quot;, # Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}.
456 &quot;scalingConfig&quot;: { # Represents the scaling configuration of a metastore service. # Optional. Scaling configuration of the metastore service.
457 &quot;scalingFactor&quot;: 42, # Optional. Scaling factor from 1 to 5, increments of 1.
458 },
459 &quot;scheduledBackup&quot;: { # This specifies the configuration of scheduled backup. # Optional. The configuration of scheduled backup for the metastore service.
460 &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.
461 &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.
462 &quot;enabled&quot;: True or False, # Optional. Defines whether the scheduled backup is enabled. The default value is false.
463 &quot;latestBackup&quot;: { # The details of the latest scheduled backup. # Output only. The details of the latest scheduled backup.
464 &quot;backupId&quot;: &quot;A String&quot;, # Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress.
465 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the backup completion.
466 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the backup was started.
467 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
468 },
469 &quot;nextScheduledTime&quot;: &quot;A String&quot;, # Output only. The time when the next backups execution is scheduled to start.
470 &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.
471 },
472 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the metastore service.
473 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of the metastore service, if available.
474 &quot;uid&quot;: &quot;A String&quot;, # Output only. The globally unique resource identifier of the metastore service.
475 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was last updated.
476 &quot;warehouseGcsUri&quot;: &quot;A String&quot;, # Required. A Cloud Storage URI (starting with gs://) that specifies the default warehouse directory of the Hive Metastore.
477 }</pre>
478 </div>
479
480 <div class="method">
481 <code class="details" id="importMetadata">importMetadata(name, body=None, x__xgafv=None)</code>
482 <pre>Imports Metadata into a Dataproc Metastore service.
483
484 Args:
485 name: string, Immutable. The relative resource name of the metastore service to run import, in the following form:projects/{project_id}/locations/{location_id}/services/{service_id}. (required)
486 body: object, The request body.
487 The object takes the form of:
488
489 { # Request message for DataprocMetastore.CreateMetadataImport.
490 &quot;databaseDump&quot;: { # A specification of the location and metadata type for a database dump from a relational database management system. # Immutable. A database dump from a pre-existing metastore&#x27;s database.
491 &quot;gcsUri&quot;: &quot;A String&quot;, # Required. A Cloud Storage object or folder URI that specifies the source from which to import metadata. It must begin with gs://.
492 &quot;type&quot;: &quot;A String&quot;, # Optional. The type of the database dump. If unspecified, defaults to MYSQL.
493 },
494 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the metadata import.
495 &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.
496 }
497
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="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
529 <pre>Lists services in a project and location.
530
531 Args:
532 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)
533 filter: string, Optional. The filter to apply to list results.
534 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.
535 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.
536 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.
537 x__xgafv: string, V1 error format.
538 Allowed values
539 1 - v1 error format
540 2 - v2 error format
541
542 Returns:
543 An object of the form:
544
545 { # Response message for DataprocMetastore.ListServices.
546 &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.
547 &quot;services&quot;: [ # The services in the specified location.
548 { # A managed metastore service that serves metadata queries.
549 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was created.
550 &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.
551 },
552 &quot;endpoints&quot;: [ # Output only. The list of endpoints used to access the metastore service.
553 { # An endpoint used to access the metastore service.
554 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
555 &quot;region&quot;: &quot;A String&quot;, # Output only. The region where the endpoint is located.
556 },
557 ],
558 &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.
559 &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.
560 &quot;a_key&quot;: { # Configuration information for the auxiliary service versions.
561 &quot;configOverrides&quot;: { # 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.
562 &quot;a_key&quot;: &quot;A String&quot;,
563 },
564 &quot;endpoints&quot;: [ # Output only. The list of endpoints used to access the auxiliary metastore service, includes version and region data.
565 { # An endpoint used to access the metastore service.
566 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
567 &quot;region&quot;: &quot;A String&quot;, # Output only. The region where the endpoint is located.
568 },
569 ],
570 &quot;version&quot;: &quot;A String&quot;, # The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service&#x27;s version.
571 },
572 },
573 &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.
574 &quot;a_key&quot;: &quot;A String&quot;,
575 },
576 &quot;endpointProtocol&quot;: &quot;A String&quot;, # Optional. The protocol to use for the metastore service endpoint. If unspecified, defaults to GRPC.
577 &quot;version&quot;: &quot;A String&quot;, # Immutable. The Hive metastore schema version.
578 },
579 &quot;labels&quot;: { # User-defined labels for the metastore service.
580 &quot;a_key&quot;: &quot;A String&quot;,
581 },
582 &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.
583 &quot;dataCatalogConfig&quot;: { # Specifies how metastore metadata should be integrated with the Data Catalog service. # Optional. The integration config for the Data Catalog service.
584 &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.
585 },
586 },
587 &quot;name&quot;: &quot;A String&quot;, # Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}.
588 &quot;scalingConfig&quot;: { # Represents the scaling configuration of a metastore service. # Optional. Scaling configuration of the metastore service.
589 &quot;scalingFactor&quot;: 42, # Optional. Scaling factor from 1 to 5, increments of 1.
590 },
591 &quot;scheduledBackup&quot;: { # This specifies the configuration of scheduled backup. # Optional. The configuration of scheduled backup for the metastore service.
592 &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.
593 &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.
594 &quot;enabled&quot;: True or False, # Optional. Defines whether the scheduled backup is enabled. The default value is false.
595 &quot;latestBackup&quot;: { # The details of the latest scheduled backup. # Output only. The details of the latest scheduled backup.
596 &quot;backupId&quot;: &quot;A String&quot;, # Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress.
597 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the backup completion.
598 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the backup was started.
599 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
600 },
601 &quot;nextScheduledTime&quot;: &quot;A String&quot;, # Output only. The time when the next backups execution is scheduled to start.
602 &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.
603 },
604 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the metastore service.
605 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of the metastore service, if available.
606 &quot;uid&quot;: &quot;A String&quot;, # Output only. The globally unique resource identifier of the metastore service.
607 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was last updated.
608 &quot;warehouseGcsUri&quot;: &quot;A String&quot;, # Required. A Cloud Storage URI (starting with gs://) that specifies the default warehouse directory of the Hive Metastore.
609 },
610 ],
611 &quot;unreachable&quot;: [ # Locations that could not be reached.
612 &quot;A String&quot;,
613 ],
614 }</pre>
615 </div>
616
617 <div class="method">
618 <code class="details" id="list_next">list_next()</code>
619 <pre>Retrieves the next page of results.
620
621 Args:
622 previous_request: The request for the previous page. (required)
623 previous_response: The response from the request for the previous page. (required)
624
625 Returns:
626 A request object that you can call &#x27;execute()&#x27; on to request the next
627 page. Returns None if there are no more items in the collection.
628 </pre>
629 </div>
630
631 <div class="method">
632 <code class="details" id="moveTableToDatabase">moveTableToDatabase(service, body=None, x__xgafv=None)</code>
633 <pre>Move a table to another database.
634
635 Args:
636 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)
637 body: object, The request body.
638 The object takes the form of:
639
640 { # Request message for DataprocMetastore.MoveTableToDatabase.
641 &quot;dbName&quot;: &quot;A String&quot;, # Required. The name of the database where the table resides.
642 &quot;destinationDbName&quot;: &quot;A String&quot;, # Required. The name of the database where the table should be moved.
643 &quot;tableName&quot;: &quot;A String&quot;, # Required. The name of the table to be moved.
644 }
645
646 x__xgafv: string, V1 error format.
647 Allowed values
648 1 - v1 error format
649 2 - v2 error format
650
651 Returns:
652 An object of the form:
653
654 { # This resource represents a long-running operation that is the result of a network API call.
655 &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.
656 &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.
657 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
658 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
659 {
660 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
661 },
662 ],
663 &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.
664 },
665 &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.
666 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
667 },
668 &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}.
669 &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.
670 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
671 },
672 }</pre>
673 </div>
674
675 <div class="method">
676 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
677 <pre>Updates the parameters of a single service.
678
679 Args:
680 name: string, Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}. (required)
681 body: object, The request body.
682 The object takes the form of:
683
684 { # A managed metastore service that serves metadata queries.
685 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was created.
686 &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.
687 },
688 &quot;endpoints&quot;: [ # Output only. The list of endpoints used to access the metastore service.
689 { # An endpoint used to access the metastore service.
690 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
691 &quot;region&quot;: &quot;A String&quot;, # Output only. The region where the endpoint is located.
692 },
693 ],
694 &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.
695 &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.
696 &quot;a_key&quot;: { # Configuration information for the auxiliary service versions.
697 &quot;configOverrides&quot;: { # 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.
698 &quot;a_key&quot;: &quot;A String&quot;,
699 },
700 &quot;endpoints&quot;: [ # Output only. The list of endpoints used to access the auxiliary metastore service, includes version and region data.
701 { # An endpoint used to access the metastore service.
702 &quot;endpointUri&quot;: &quot;A String&quot;, # Output only. The URI of the endpoint used to access the metastore service.
703 &quot;region&quot;: &quot;A String&quot;, # Output only. The region where the endpoint is located.
704 },
705 ],
706 &quot;version&quot;: &quot;A String&quot;, # The Hive metastore version of the auxiliary service. It must be less than the primary Hive metastore service&#x27;s version.
707 },
708 },
709 &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.
710 &quot;a_key&quot;: &quot;A String&quot;,
711 },
712 &quot;endpointProtocol&quot;: &quot;A String&quot;, # Optional. The protocol to use for the metastore service endpoint. If unspecified, defaults to GRPC.
713 &quot;version&quot;: &quot;A String&quot;, # Immutable. The Hive metastore schema version.
714 },
715 &quot;labels&quot;: { # User-defined labels for the metastore service.
716 &quot;a_key&quot;: &quot;A String&quot;,
717 },
718 &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.
719 &quot;dataCatalogConfig&quot;: { # Specifies how metastore metadata should be integrated with the Data Catalog service. # Optional. The integration config for the Data Catalog service.
720 &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.
721 },
722 },
723 &quot;name&quot;: &quot;A String&quot;, # Immutable. The relative resource name of the metastore service, in the following format:projects/{project_number}/locations/{location_id}/services/{service_id}.
724 &quot;scalingConfig&quot;: { # Represents the scaling configuration of a metastore service. # Optional. Scaling configuration of the metastore service.
725 &quot;scalingFactor&quot;: 42, # Optional. Scaling factor from 1 to 5, increments of 1.
726 },
727 &quot;scheduledBackup&quot;: { # This specifies the configuration of scheduled backup. # Optional. The configuration of scheduled backup for the metastore service.
728 &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.
729 &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.
730 &quot;enabled&quot;: True or False, # Optional. Defines whether the scheduled backup is enabled. The default value is false.
731 &quot;latestBackup&quot;: { # The details of the latest scheduled backup. # Output only. The details of the latest scheduled backup.
732 &quot;backupId&quot;: &quot;A String&quot;, # Output only. The ID of an in-progress scheduled backup. Empty if no backup is in progress.
733 &quot;duration&quot;: &quot;A String&quot;, # Output only. The duration of the backup completion.
734 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The time when the backup was started.
735 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the backup.
736 },
737 &quot;nextScheduledTime&quot;: &quot;A String&quot;, # Output only. The time when the next backups execution is scheduled to start.
738 &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.
739 },
740 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the metastore service.
741 &quot;stateMessage&quot;: &quot;A String&quot;, # Output only. Additional information about the current state of the metastore service, if available.
742 &quot;uid&quot;: &quot;A String&quot;, # Output only. The globally unique resource identifier of the metastore service.
743 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the metastore service was last updated.
744 &quot;warehouseGcsUri&quot;: &quot;A String&quot;, # Required. A Cloud Storage URI (starting with gs://) that specifies the default warehouse directory of the Hive Metastore.
745 }
746
747 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.
748 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.
749 x__xgafv: string, V1 error format.
750 Allowed values
751 1 - v1 error format
752 2 - v2 error format
753
754 Returns:
755 An object of the form:
756
757 { # This resource represents a long-running operation that is the result of a network API call.
758 &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.
759 &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.
760 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
761 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
762 {
763 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
764 },
765 ],
766 &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.
767 },
768 &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.
769 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
770 },
771 &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}.
772 &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.
773 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
774 },
775 }</pre>
776 </div>
777
778 <div class="method">
779 <code class="details" id="queryMetadata">queryMetadata(service, body=None, x__xgafv=None)</code>
780 <pre>Query Dataproc Metastore metadata.
781
782 Args:
783 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)
784 body: object, The request body.
785 The object takes the form of:
786
787 { # Request message for DataprocMetastore.QueryMetadata.
788 &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.
789 }
790
791 x__xgafv: string, V1 error format.
792 Allowed values
793 1 - v1 error format
794 2 - v2 error format
795
796 Returns:
797 An object of the form:
798
799 { # This resource represents a long-running operation that is the result of a network API call.
800 &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.
801 &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.
802 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
803 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
804 {
805 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
806 },
807 ],
808 &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.
809 },
810 &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.
811 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
812 },
813 &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}.
814 &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.
815 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
816 },
817 }</pre>
818 </div>
819
820 <div class="method">
821 <code class="details" id="restore">restore(service, body=None, x__xgafv=None)</code>
822 <pre>Restores a service from a backup.
823
824 Args:
825 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)
826 body: object, The request body.
827 The object takes the form of:
828
829 { # Request message for DataprocMetastore.Restore.
830 &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.
831 &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.
832 &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.
833 &quot;restoreType&quot;: &quot;A String&quot;, # Optional. The type of restore. If unspecified, defaults to METADATA_ONLY.
834 }
835
836 x__xgafv: string, V1 error format.
837 Allowed values
838 1 - v1 error format
839 2 - v2 error format
840
841 Returns:
842 An object of the form:
843
844 { # This resource represents a long-running operation that is the result of a network API call.
845 &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.
846 &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.
847 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
848 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
849 {
850 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
851 },
852 ],
853 &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.
854 },
855 &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.
856 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
857 },
858 &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}.
859 &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.
860 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
861 },
862 }</pre>
863 </div>
864
865 </body></html>