Skip to content

Commit c1bb83c

Browse files
yoshi-automationfeywind
authored andcommitted
feat(bigtableadmin)!: update the API
BREAKING CHANGE: This release has breaking changes. #### bigtableadmin:v2 The following keys were deleted: - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.description - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.flatPath - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.httpMethod - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.id - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.parameterOrder - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.parameters.resource.description - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.parameters.resource.location - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.parameters.resource.pattern - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.parameters.resource.required - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.parameters.resource.type - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.path - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.request.$ref - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.response.$ref - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.getIamPolicy.scopes - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.description - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.flatPath - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.httpMethod - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.id - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.parameterOrder - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.parameters.resource.description - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.parameters.resource.location - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.parameters.resource.pattern - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.parameters.resource.required - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.parameters.resource.type - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.path - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.request.$ref - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.response.$ref - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.setIamPolicy.scopes - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.description - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.flatPath - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.httpMethod - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.id - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.parameterOrder - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.parameters.resource.description - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.parameters.resource.location - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.parameters.resource.pattern - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.parameters.resource.required - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.parameters.resource.type - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.path - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.request.$ref - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.response.$ref - resources.projects.resources.instances.resources.tables.resources.schemaBundles.methods.testIamPermissions.scopes The following keys were added: - resources.operations.resources.projects.resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.operations.resources.projects.resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.operations.resources.projects.resources.operations.methods.list.parameters.returnPartialSuccess.type - resources.projects.resources.instances.resources.materializedViews.methods.get.parameters.view.description - resources.projects.resources.instances.resources.materializedViews.methods.get.parameters.view.enum - resources.projects.resources.instances.resources.materializedViews.methods.get.parameters.view.enumDescriptions - resources.projects.resources.instances.resources.materializedViews.methods.get.parameters.view.location - resources.projects.resources.instances.resources.materializedViews.methods.get.parameters.view.type - resources.projects.resources.instances.resources.materializedViews.methods.list.parameters.view.description - resources.projects.resources.instances.resources.materializedViews.methods.list.parameters.view.enum - resources.projects.resources.instances.resources.materializedViews.methods.list.parameters.view.enumDescriptions - resources.projects.resources.instances.resources.materializedViews.methods.list.parameters.view.location - resources.projects.resources.instances.resources.materializedViews.methods.list.parameters.view.type - schemas.GoogleBigtableAdminV2MaterializedViewClusterState.description - schemas.GoogleBigtableAdminV2MaterializedViewClusterState.id - schemas.GoogleBigtableAdminV2MaterializedViewClusterState.properties.replicationState.description - schemas.GoogleBigtableAdminV2MaterializedViewClusterState.properties.replicationState.enum - schemas.GoogleBigtableAdminV2MaterializedViewClusterState.properties.replicationState.enumDescriptions - schemas.GoogleBigtableAdminV2MaterializedViewClusterState.properties.replicationState.readOnly - schemas.GoogleBigtableAdminV2MaterializedViewClusterState.properties.replicationState.type - schemas.GoogleBigtableAdminV2MaterializedViewClusterState.type - schemas.ListOperationsResponse.properties.unreachable.description - schemas.ListOperationsResponse.properties.unreachable.items.type - schemas.ListOperationsResponse.properties.unreachable.type - schemas.MaterializedView.properties.clusterStates.additionalProperties.$ref - schemas.MaterializedView.properties.clusterStates.description - schemas.MaterializedView.properties.clusterStates.readOnly - schemas.MaterializedView.properties.clusterStates.type
1 parent e141b9f commit c1bb83c

File tree

2 files changed

+119
-612
lines changed

2 files changed

+119
-612
lines changed

discovery/bigtableadmin-v2.json

Lines changed: 77 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@
199199
"description": "The standard list page token.",
200200
"location": "query",
201201
"type": "string"
202+
},
203+
"returnPartialSuccess": {
204+
"description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true` when reading across collections e.g. when `parent` is set to `\"projects/example/locations/-\"`. This field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
205+
"location": "query",
206+
"type": "boolean"
202207
}
203208
},
204209
"path": "v2/{+name}/operations",
@@ -1689,6 +1694,23 @@
16891694
"pattern": "^projects/[^/]+/instances/[^/]+/materializedViews/[^/]+$",
16901695
"required": true,
16911696
"type": "string"
1697+
},
1698+
"view": {
1699+
"description": "Optional. Describes which of the materialized view's fields should be populated in the response. Defaults to SCHEMA_VIEW.",
1700+
"enum": [
1701+
"VIEW_UNSPECIFIED",
1702+
"SCHEMA_VIEW",
1703+
"REPLICATION_VIEW",
1704+
"FULL"
1705+
],
1706+
"enumDescriptions": [
1707+
"Uses the default view for each method as documented in its request.",
1708+
"Only populates fields related to the materialized view's schema.",
1709+
"Only populates fields related to the materialized view's replication state.",
1710+
"Populates all fields."
1711+
],
1712+
"location": "query",
1713+
"type": "string"
16921714
}
16931715
},
16941716
"path": "v2/{+name}",
@@ -1763,6 +1785,23 @@
17631785
"pattern": "^projects/[^/]+/instances/[^/]+$",
17641786
"required": true,
17651787
"type": "string"
1788+
},
1789+
"view": {
1790+
"description": "Optional. Describes which of the materialized view's fields should be populated in the response. For now, only the default value SCHEMA_VIEW is supported.",
1791+
"enum": [
1792+
"VIEW_UNSPECIFIED",
1793+
"SCHEMA_VIEW",
1794+
"REPLICATION_VIEW",
1795+
"FULL"
1796+
],
1797+
"enumDescriptions": [
1798+
"Uses the default view for each method as documented in its request.",
1799+
"Only populates fields related to the materialized view's schema.",
1800+
"Only populates fields related to the materialized view's replication state.",
1801+
"Populates all fields."
1802+
],
1803+
"location": "query",
1804+
"type": "string"
17661805
}
17671806
},
17681807
"path": "v2/{+parent}/materializedViews",
@@ -2817,38 +2856,6 @@
28172856
"https://www.googleapis.com/auth/cloud-platform"
28182857
]
28192858
},
2820-
"getIamPolicy": {
2821-
"description": "Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource exists but does not have a policy set.",
2822-
"flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/schemaBundles/{schemaBundlesId}:getIamPolicy",
2823-
"httpMethod": "POST",
2824-
"id": "bigtableadmin.projects.instances.tables.schemaBundles.getIamPolicy",
2825-
"parameterOrder": [
2826-
"resource"
2827-
],
2828-
"parameters": {
2829-
"resource": {
2830-
"description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.",
2831-
"location": "path",
2832-
"pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+/schemaBundles/[^/]+$",
2833-
"required": true,
2834-
"type": "string"
2835-
}
2836-
},
2837-
"path": "v2/{+resource}:getIamPolicy",
2838-
"request": {
2839-
"$ref": "GetIamPolicyRequest"
2840-
},
2841-
"response": {
2842-
"$ref": "Policy"
2843-
},
2844-
"scopes": [
2845-
"https://www.googleapis.com/auth/bigtable.admin",
2846-
"https://www.googleapis.com/auth/bigtable.admin.table",
2847-
"https://www.googleapis.com/auth/cloud-bigtable.admin",
2848-
"https://www.googleapis.com/auth/cloud-bigtable.admin.table",
2849-
"https://www.googleapis.com/auth/cloud-platform"
2850-
]
2851-
},
28522859
"list": {
28532860
"description": "Lists all schema bundles associated with the specified table.",
28542861
"flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/schemaBundles",
@@ -2948,70 +2955,6 @@
29482955
"https://www.googleapis.com/auth/cloud-bigtable.admin.table",
29492956
"https://www.googleapis.com/auth/cloud-platform"
29502957
]
2951-
},
2952-
"setIamPolicy": {
2953-
"description": "Sets the access control policy on a Bigtable resource. Replaces any existing policy.",
2954-
"flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/schemaBundles/{schemaBundlesId}:setIamPolicy",
2955-
"httpMethod": "POST",
2956-
"id": "bigtableadmin.projects.instances.tables.schemaBundles.setIamPolicy",
2957-
"parameterOrder": [
2958-
"resource"
2959-
],
2960-
"parameters": {
2961-
"resource": {
2962-
"description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.",
2963-
"location": "path",
2964-
"pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+/schemaBundles/[^/]+$",
2965-
"required": true,
2966-
"type": "string"
2967-
}
2968-
},
2969-
"path": "v2/{+resource}:setIamPolicy",
2970-
"request": {
2971-
"$ref": "SetIamPolicyRequest"
2972-
},
2973-
"response": {
2974-
"$ref": "Policy"
2975-
},
2976-
"scopes": [
2977-
"https://www.googleapis.com/auth/bigtable.admin",
2978-
"https://www.googleapis.com/auth/bigtable.admin.table",
2979-
"https://www.googleapis.com/auth/cloud-bigtable.admin",
2980-
"https://www.googleapis.com/auth/cloud-bigtable.admin.table",
2981-
"https://www.googleapis.com/auth/cloud-platform"
2982-
]
2983-
},
2984-
"testIamPermissions": {
2985-
"description": "Returns permissions that the caller has on the specified Bigtable resource.",
2986-
"flatPath": "v2/projects/{projectsId}/instances/{instancesId}/tables/{tablesId}/schemaBundles/{schemaBundlesId}:testIamPermissions",
2987-
"httpMethod": "POST",
2988-
"id": "bigtableadmin.projects.instances.tables.schemaBundles.testIamPermissions",
2989-
"parameterOrder": [
2990-
"resource"
2991-
],
2992-
"parameters": {
2993-
"resource": {
2994-
"description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.",
2995-
"location": "path",
2996-
"pattern": "^projects/[^/]+/instances/[^/]+/tables/[^/]+/schemaBundles/[^/]+$",
2997-
"required": true,
2998-
"type": "string"
2999-
}
3000-
},
3001-
"path": "v2/{+resource}:testIamPermissions",
3002-
"request": {
3003-
"$ref": "TestIamPermissionsRequest"
3004-
},
3005-
"response": {
3006-
"$ref": "TestIamPermissionsResponse"
3007-
},
3008-
"scopes": [
3009-
"https://www.googleapis.com/auth/bigtable.admin",
3010-
"https://www.googleapis.com/auth/bigtable.admin.table",
3011-
"https://www.googleapis.com/auth/cloud-bigtable.admin",
3012-
"https://www.googleapis.com/auth/cloud-bigtable.admin.table",
3013-
"https://www.googleapis.com/auth/cloud-platform"
3014-
]
30152958
}
30162959
}
30172960
}
@@ -3079,7 +3022,7 @@
30793022
}
30803023
}
30813024
},
3082-
"revision": "20250912",
3025+
"revision": "20251004",
30833026
"rootUrl": "https://bigtableadmin.googleapis.com/",
30843027
"schemas": {
30853028
"AppProfile": {
@@ -4195,6 +4138,28 @@
41954138
},
41964139
"type": "object"
41974140
},
4141+
"GoogleBigtableAdminV2MaterializedViewClusterState": {
4142+
"description": "The state of a materialized view's data in a particular cluster.",
4143+
"id": "GoogleBigtableAdminV2MaterializedViewClusterState",
4144+
"properties": {
4145+
"replicationState": {
4146+
"description": "Output only. The state of the materialized view in this cluster.",
4147+
"enum": [
4148+
"STATE_NOT_KNOWN",
4149+
"INITIALIZING",
4150+
"READY"
4151+
],
4152+
"enumDescriptions": [
4153+
"The state of the materialized view is unknown in this cluster.",
4154+
"The cluster or view was recently created, and the materialized view must finish backfilling before it can begin serving Data API requests.",
4155+
"The materialized view can serve Data API requests from this cluster. Depending on materialization and replication delay, reads may not immediately reflect the state of the materialized view in other clusters."
4156+
],
4157+
"readOnly": true,
4158+
"type": "string"
4159+
}
4160+
},
4161+
"type": "object"
4162+
},
41984163
"GoogleBigtableAdminV2TypeAggregate": {
41994164
"description": "A value that combines incremental updates into a summarized value. Data is never directly written or read using type `Aggregate`. Writes provide either the `input_type` or `state_type`, and reads always return the `state_type` .",
42004165
"id": "GoogleBigtableAdminV2TypeAggregate",
@@ -4879,6 +4844,13 @@
48794844
"$ref": "Operation"
48804845
},
48814846
"type": "array"
4847+
},
4848+
"unreachable": {
4849+
"description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections e.g. when attempting to list all resources across all supported locations.",
4850+
"items": {
4851+
"type": "string"
4852+
},
4853+
"type": "array"
48824854
}
48834855
},
48844856
"type": "object"
@@ -4980,6 +4952,14 @@
49804952
"description": "A materialized view object that can be referenced in SQL queries.",
49814953
"id": "MaterializedView",
49824954
"properties": {
4955+
"clusterStates": {
4956+
"additionalProperties": {
4957+
"$ref": "GoogleBigtableAdminV2MaterializedViewClusterState"
4958+
},
4959+
"description": "Output only. Map from cluster ID to per-cluster materialized view state. If it could not be determined whether or not the materialized view has data in a particular cluster (for example, if its zone is unavailable), then there will be an entry for the cluster with `STATE_NOT_KNOWN` state. Views: `REPLICATION_VIEW`, `FULL`.",
4960+
"readOnly": true,
4961+
"type": "object"
4962+
},
49834963
"deletionProtection": {
49844964
"description": "Set to true to make the MaterializedView protected against deletion. Views: `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL`.",
49854965
"type": "boolean"

0 commit comments

Comments
 (0)