Skip to content

Commit bb547f7

Browse files
feat(looker): update the API
#### looker:v1 The following keys were added: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.location - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.repeated - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.type - resources.projects.resources.locations.resources.instances.methods.restore.description - resources.projects.resources.locations.resources.instances.methods.restore.flatPath - resources.projects.resources.locations.resources.instances.methods.restore.httpMethod - resources.projects.resources.locations.resources.instances.methods.restore.id - resources.projects.resources.locations.resources.instances.methods.restore.parameterOrder - resources.projects.resources.locations.resources.instances.methods.restore.parameters.name.description - resources.projects.resources.locations.resources.instances.methods.restore.parameters.name.location - resources.projects.resources.locations.resources.instances.methods.restore.parameters.name.pattern - resources.projects.resources.locations.resources.instances.methods.restore.parameters.name.required - resources.projects.resources.locations.resources.instances.methods.restore.parameters.name.type - resources.projects.resources.locations.resources.instances.methods.restore.path - resources.projects.resources.locations.resources.instances.methods.restore.request.$ref - resources.projects.resources.locations.resources.instances.methods.restore.response.$ref - resources.projects.resources.locations.resources.instances.methods.restore.scopes - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.description - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.flatPath - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.httpMethod - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.id - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.parameterOrder - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.parameters.parent.description - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.parameters.parent.location - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.parameters.parent.pattern - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.parameters.parent.required - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.parameters.parent.type - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.path - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.request.$ref - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.response.$ref - resources.projects.resources.locations.resources.instances.resources.backups.methods.create.scopes - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.description - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.flatPath - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.httpMethod - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.id - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.parameterOrder - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.parameters.name.description - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.parameters.name.location - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.parameters.name.pattern - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.parameters.name.required - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.parameters.name.type - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.path - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.response.$ref - resources.projects.resources.locations.resources.instances.resources.backups.methods.delete.scopes - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.description - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.flatPath - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.httpMethod - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.id - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.parameterOrder - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.parameters.name.description - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.parameters.name.location - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.parameters.name.pattern - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.parameters.name.required - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.parameters.name.type - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.path - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.response.$ref - resources.projects.resources.locations.resources.instances.resources.backups.methods.get.scopes - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.description - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.flatPath - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.httpMethod - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.id - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameterOrder - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.orderBy.description - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.orderBy.location - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.orderBy.type - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.pageSize.description - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.pageSize.format - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.pageSize.location - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.pageSize.type - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.pageToken.description - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.pageToken.location - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.pageToken.type - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.parent.description - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.parent.location - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.parent.pattern - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.parent.required - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.parameters.parent.type - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.path - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.response.$ref - resources.projects.resources.locations.resources.instances.resources.backups.methods.list.scopes - schemas.InstanceBackup.description - schemas.InstanceBackup.id - schemas.InstanceBackup.properties.createTime.description - schemas.InstanceBackup.properties.createTime.format - schemas.InstanceBackup.properties.createTime.readOnly - schemas.InstanceBackup.properties.createTime.type - schemas.InstanceBackup.properties.encryptionConfig.$ref - schemas.InstanceBackup.properties.encryptionConfig.description - schemas.InstanceBackup.properties.encryptionConfig.readOnly - schemas.InstanceBackup.properties.expireTime.description - schemas.InstanceBackup.properties.expireTime.format - schemas.InstanceBackup.properties.expireTime.readOnly - schemas.InstanceBackup.properties.expireTime.type - schemas.InstanceBackup.properties.name.description - schemas.InstanceBackup.properties.name.type - schemas.InstanceBackup.properties.state.description - schemas.InstanceBackup.properties.state.enum - schemas.InstanceBackup.properties.state.enumDescriptions - schemas.InstanceBackup.properties.state.readOnly - schemas.InstanceBackup.properties.state.type - schemas.InstanceBackup.type - schemas.ListInstanceBackupsResponse.description - schemas.ListInstanceBackupsResponse.id - schemas.ListInstanceBackupsResponse.properties.instanceBackups.description - schemas.ListInstanceBackupsResponse.properties.instanceBackups.items.$ref - schemas.ListInstanceBackupsResponse.properties.instanceBackups.type - schemas.ListInstanceBackupsResponse.properties.nextPageToken.description - schemas.ListInstanceBackupsResponse.properties.nextPageToken.type - schemas.ListInstanceBackupsResponse.properties.unreachable.description - schemas.ListInstanceBackupsResponse.properties.unreachable.items.type - schemas.ListInstanceBackupsResponse.properties.unreachable.type - schemas.ListInstanceBackupsResponse.type - schemas.RestoreInstanceRequest.description - schemas.RestoreInstanceRequest.id - schemas.RestoreInstanceRequest.properties.backup.description - schemas.RestoreInstanceRequest.properties.backup.type - schemas.RestoreInstanceRequest.type
1 parent 0f172af commit bb547f7

File tree

2 files changed

+810
-1
lines changed

2 files changed

+810
-1
lines changed

‎discovery/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)