Skip to content

Commit b9168f1

Browse files
feat(looker): update the api
#### looker:v1 The following keys were added: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes (Total Keys: 3) - resources.projects.resources.locations.resources.instances.methods.restore (Total Keys: 12) - resources.projects.resources.locations.resources.instances.resources.backups.methods.create (Total Keys: 12) - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.instances.resources.backups.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.instances.resources.backups.methods.list (Total Keys: 18) - schemas.InstanceBackup (Total Keys: 13) - schemas.ListInstanceBackupsResponse (Total Keys: 7) - schemas.RestoreInstanceRequest (Total Keys: 3)
1 parent cd5734f commit b9168f1

File tree

3 files changed

+296
-3
lines changed

3 files changed

+296
-3
lines changed

docs/dyn/looker_v1.projects.locations.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h2>Instance Methods</h2>
9191
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
9292
<p class="firstline">Gets information about a location.</p>
9393
<p class="toc_element">
94-
<code><a href="#list">list(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
94+
<code><a href="#list">list(name, extraLocationTypes=None, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
9595
<p class="firstline">Lists information about the supported locations for this service.</p>
9696
<p class="toc_element">
9797
<code><a href="#list_next">list_next()</a></code></p>
@@ -130,11 +130,12 @@ <h3>Method Details</h3>
130130
</div>
131131

132132
<div class="method">
133-
<code class="details" id="list">list(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
133+
<code class="details" id="list">list(name, extraLocationTypes=None, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
134134
<pre>Lists information about the supported locations for this service.
135135

136136
Args:
137137
name: string, The resource that owns the locations collection, if applicable. (required)
138+
extraLocationTypes: string, Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations. (repeated)
138139
filter: string, A filter to narrow down results to a preferred subset. The filtering language accepts strings like `&quot;displayName=tokyo&quot;`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
139140
pageSize: integer, The maximum number of results to return. If not set, the service selects a default.
140141
pageToken: string, A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.

docs/dyn/looker_v1.projects.locations.instances.html

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@
7474

7575
<h1><a href="looker_v1.html">Looker (Google Cloud core) API</a> . <a href="looker_v1.projects.html">projects</a> . <a href="looker_v1.projects.locations.html">locations</a> . <a href="looker_v1.projects.locations.instances.html">instances</a></h1>
7676
<h2>Instance Methods</h2>
77+
<p class="toc_element">
78+
<code><a href="looker_v1.projects.locations.instances.backups.html">backups()</a></code>
79+
</p>
80+
<p class="firstline">Returns the backups Resource.</p>
81+
7782
<p class="toc_element">
7883
<code><a href="#close">close()</a></code></p>
7984
<p class="firstline">Close httplib2 connections.</p>
@@ -104,6 +109,9 @@ <h2>Instance Methods</h2>
104109
<p class="toc_element">
105110
<code><a href="#restart">restart(name, body=None, x__xgafv=None)</a></code></p>
106111
<p class="firstline">Restart instance.</p>
112+
<p class="toc_element">
113+
<code><a href="#restore">restore(name, body=None, x__xgafv=None)</a></code></p>
114+
<p class="firstline">Restore Looker instance.</p>
107115
<h3>Method Details</h3>
108116
<div class="method">
109117
<code class="details" id="close">close()</code>
@@ -838,4 +846,46 @@ <h3>Method Details</h3>
838846
}</pre>
839847
</div>
840848

849+
<div class="method">
850+
<code class="details" id="restore">restore(name, body=None, x__xgafv=None)</code>
851+
<pre>Restore Looker instance.
852+
853+
Args:
854+
name: string, Required. Instance being restored Format: projects/{project}/locations/{location}/instances/{instance} (required)
855+
body: object, The request body.
856+
The object takes the form of:
857+
858+
{ # Request options for restoring an instance
859+
&quot;backup&quot;: &quot;A String&quot;, # Required. Backup being used to restore the instance Format: projects/{project}/locations/{location}/instances/{instance}/backups/{backup}
860+
}
861+
862+
x__xgafv: string, V1 error format.
863+
Allowed values
864+
1 - v1 error format
865+
2 - v2 error format
866+
867+
Returns:
868+
An object of the form:
869+
870+
{ # This resource represents a long-running operation that is the result of a network API call.
871+
&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.
872+
&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.
873+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
874+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
875+
{
876+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
877+
},
878+
],
879+
&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.
880+
},
881+
&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.
882+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
883+
},
884+
&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}`.
885+
&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`.
886+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
887+
},
888+
}</pre>
889+
</div>
890+
841891
</body></html>

googleapiclient/discovery_cache/documents/looker.v1.json

Lines changed: 243 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@
143143
"name"
144144
],
145145
"parameters": {
146+
"extraLocationTypes": {
147+
"description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.",
148+
"location": "query",
149+
"repeated": true,
150+
"type": "string"
151+
},
146152
"filter": {
147153
"description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
148154
"location": "query",
@@ -420,6 +426,159 @@
420426
"scopes": [
421427
"https://www.googleapis.com/auth/cloud-platform"
422428
]
429+
},
430+
"restore": {
431+
"description": "Restore Looker instance.",
432+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}:restore",
433+
"httpMethod": "POST",
434+
"id": "looker.projects.locations.instances.restore",
435+
"parameterOrder": [
436+
"name"
437+
],
438+
"parameters": {
439+
"name": {
440+
"description": "Required. Instance being restored Format: projects/{project}/locations/{location}/instances/{instance}",
441+
"location": "path",
442+
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
443+
"required": true,
444+
"type": "string"
445+
}
446+
},
447+
"path": "v1/{+name}:restore",
448+
"request": {
449+
"$ref": "RestoreInstanceRequest"
450+
},
451+
"response": {
452+
"$ref": "Operation"
453+
},
454+
"scopes": [
455+
"https://www.googleapis.com/auth/cloud-platform"
456+
]
457+
}
458+
},
459+
"resources": {
460+
"backups": {
461+
"methods": {
462+
"create": {
463+
"description": "Backup Looker instance.",
464+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/backups",
465+
"httpMethod": "POST",
466+
"id": "looker.projects.locations.instances.backups.create",
467+
"parameterOrder": [
468+
"parent"
469+
],
470+
"parameters": {
471+
"parent": {
472+
"description": "Required. Format: projects/{project}/locations/{location}/instances/{instance}",
473+
"location": "path",
474+
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
475+
"required": true,
476+
"type": "string"
477+
}
478+
},
479+
"path": "v1/{+parent}/backups",
480+
"request": {
481+
"$ref": "InstanceBackup"
482+
},
483+
"response": {
484+
"$ref": "Operation"
485+
},
486+
"scopes": [
487+
"https://www.googleapis.com/auth/cloud-platform"
488+
]
489+
},
490+
"delete": {
491+
"description": "Delete backup.",
492+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/backups/{backupsId}",
493+
"httpMethod": "DELETE",
494+
"id": "looker.projects.locations.instances.backups.delete",
495+
"parameterOrder": [
496+
"name"
497+
],
498+
"parameters": {
499+
"name": {
500+
"description": "Required. Format: projects/{project}/locations/{location}/instances/{instance}/backups/{backup}",
501+
"location": "path",
502+
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+/backups/[^/]+$",
503+
"required": true,
504+
"type": "string"
505+
}
506+
},
507+
"path": "v1/{+name}",
508+
"response": {
509+
"$ref": "Operation"
510+
},
511+
"scopes": [
512+
"https://www.googleapis.com/auth/cloud-platform"
513+
]
514+
},
515+
"get": {
516+
"description": "",
517+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/backups/{backupsId}",
518+
"httpMethod": "GET",
519+
"id": "looker.projects.locations.instances.backups.get",
520+
"parameterOrder": [
521+
"name"
522+
],
523+
"parameters": {
524+
"name": {
525+
"description": "Required. Format: `projects/{project}/locations/{location}/instances/{instance}/backups/{backup}`.",
526+
"location": "path",
527+
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+/backups/[^/]+$",
528+
"required": true,
529+
"type": "string"
530+
}
531+
},
532+
"path": "v1/{+name}",
533+
"response": {
534+
"$ref": "InstanceBackup"
535+
},
536+
"scopes": [
537+
"https://www.googleapis.com/auth/cloud-platform"
538+
]
539+
},
540+
"list": {
541+
"description": "List backups of Looker instance.",
542+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/backups",
543+
"httpMethod": "GET",
544+
"id": "looker.projects.locations.instances.backups.list",
545+
"parameterOrder": [
546+
"parent"
547+
],
548+
"parameters": {
549+
"orderBy": {
550+
"description": "Sort results. Default order is \"create_time desc\". Other supported fields are \"state\" and \"expire_time\". https://google.aip.dev/132#ordering",
551+
"location": "query",
552+
"type": "string"
553+
},
554+
"pageSize": {
555+
"description": "The maximum number of instances to return.",
556+
"format": "int32",
557+
"location": "query",
558+
"type": "integer"
559+
},
560+
"pageToken": {
561+
"description": "A page token received from a previous ListInstances request.",
562+
"location": "query",
563+
"type": "string"
564+
},
565+
"parent": {
566+
"description": "Required. Format: projects/{project}/locations/{location}/instances/{instance}.",
567+
"location": "path",
568+
"pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$",
569+
"required": true,
570+
"type": "string"
571+
}
572+
},
573+
"path": "v1/{+parent}/backups",
574+
"response": {
575+
"$ref": "ListInstanceBackupsResponse"
576+
},
577+
"scopes": [
578+
"https://www.googleapis.com/auth/cloud-platform"
579+
]
580+
}
581+
}
423582
}
424583
}
425584
},
@@ -551,7 +710,7 @@
551710
}
552711
}
553712
},
554-
"revision": "20250305",
713+
"revision": "20250414",
555714
"rootUrl": "https://looker.googleapis.com/",
556715
"schemas": {
557716
"AdminSettings": {
@@ -971,6 +1130,78 @@
9711130
},
9721131
"type": "object"
9731132
},
1133+
"InstanceBackup": {
1134+
"description": "The details of a backup resource.",
1135+
"id": "InstanceBackup",
1136+
"properties": {
1137+
"createTime": {
1138+
"description": "Output only. The time when the backup was started.",
1139+
"format": "google-datetime",
1140+
"readOnly": true,
1141+
"type": "string"
1142+
},
1143+
"encryptionConfig": {
1144+
"$ref": "EncryptionConfig",
1145+
"description": "Output only. Current status of the CMEK encryption",
1146+
"readOnly": true
1147+
},
1148+
"expireTime": {
1149+
"description": "Output only. The time when the backup will be deleted.",
1150+
"format": "google-datetime",
1151+
"readOnly": true,
1152+
"type": "string"
1153+
},
1154+
"name": {
1155+
"description": "Immutable. The relative resource name of the backup, in the following form: `projects/{project_number}/locations/{location_id}/instances/{instance_id}/backups/{backup}`",
1156+
"type": "string"
1157+
},
1158+
"state": {
1159+
"description": "Output only. The current state of the backup.",
1160+
"enum": [
1161+
"STATE_UNSPECIFIED",
1162+
"CREATING",
1163+
"DELETING",
1164+
"ACTIVE",
1165+
"FAILED"
1166+
],
1167+
"enumDescriptions": [
1168+
"The state of the backup is unknown.",
1169+
"The backup is being created.",
1170+
"The backup is being deleted.",
1171+
"The backup is active and ready to use.",
1172+
"The backup failed."
1173+
],
1174+
"readOnly": true,
1175+
"type": "string"
1176+
}
1177+
},
1178+
"type": "object"
1179+
},
1180+
"ListInstanceBackupsResponse": {
1181+
"description": "Response from listing Looker instance backups.",
1182+
"id": "ListInstanceBackupsResponse",
1183+
"properties": {
1184+
"instanceBackups": {
1185+
"description": "The list of instances matching the request filters, up to the requested `page_size`.",
1186+
"items": {
1187+
"$ref": "InstanceBackup"
1188+
},
1189+
"type": "array"
1190+
},
1191+
"nextPageToken": {
1192+
"description": "If provided, a page token that can look up the next `page_size` results. If empty, the results list is exhausted.",
1193+
"type": "string"
1194+
},
1195+
"unreachable": {
1196+
"description": "Locations that could not be reached.",
1197+
"items": {
1198+
"type": "string"
1199+
},
1200+
"type": "array"
1201+
}
1202+
},
1203+
"type": "object"
1204+
},
9741205
"ListInstancesResponse": {
9751206
"description": "Response from ListInstances.",
9761207
"id": "ListInstancesResponse",
@@ -1237,6 +1468,17 @@
12371468
"properties": {},
12381469
"type": "object"
12391470
},
1471+
"RestoreInstanceRequest": {
1472+
"description": "Request options for restoring an instance",
1473+
"id": "RestoreInstanceRequest",
1474+
"properties": {
1475+
"backup": {
1476+
"description": "Required. Backup being used to restore the instance Format: projects/{project}/locations/{location}/instances/{instance}/backups/{backup}",
1477+
"type": "string"
1478+
}
1479+
},
1480+
"type": "object"
1481+
},
12401482
"ServiceAttachment": {
12411483
"description": "Service attachment configuration.",
12421484
"id": "ServiceAttachment",

0 commit comments

Comments
 (0)