From 3b2528faddcdf9d690d16b7bcf123300d9665ded Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 5 Oct 2020 13:15:11 -0700 Subject: [PATCH] feat(storage)!: update the API BREAKING CHANGE: This release has breaking changes. #### storage:v1 The following keys were deleted: - schemas.Bucket.properties.zoneSeparation.description - schemas.Bucket.properties.zoneSeparation.type The following keys were changed: - resources.objects.methods.compose.parameters.kmsKeyName.description - schemas.Object.properties.kmsKeyName.description --- discovery/storage-v1.json | 12 ++++-------- src/apis/storage/v1.ts | 36 ++++++++++++------------------------ 2 files changed, 16 insertions(+), 32 deletions(-) diff --git a/discovery/storage-v1.json b/discovery/storage-v1.json index 74030b9eef..679388e4b9 100644 --- a/discovery/storage-v1.json +++ b/discovery/storage-v1.json @@ -26,7 +26,7 @@ "description": "Stores and retrieves potentially large, immutable data objects.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/storage/docs/json_api/", - "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/dTOCeIt1xMAjORhzKIzyAK55178\"", + "etag": "\"3133373531323239383338313531333236393038\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -1781,7 +1781,7 @@ "type": "string" }, "kmsKeyName": { - "description": "Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request.", + "description": "Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.", "location": "query", "type": "string" }, @@ -3229,7 +3229,7 @@ } } }, - "revision": "20200727", + "revision": "20200927", "rootUrl": "https://storage.googleapis.com/", "schemas": { "Bucket": { @@ -3579,10 +3579,6 @@ "type": "string" }, "type": "array" - }, - "zoneSeparation": { - "description": "If set, objects placed in this bucket are required to be separated by disaster domain.", - "type": "boolean" } }, "type": "object" @@ -4096,7 +4092,7 @@ "type": "string" }, "kmsKeyName": { - "description": "Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.", + "description": "Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request.", "type": "string" }, "md5Hash": { diff --git a/src/apis/storage/v1.ts b/src/apis/storage/v1.ts index 1245a5c17f..cb1756c2f0 100644 --- a/src/apis/storage/v1.ts +++ b/src/apis/storage/v1.ts @@ -271,10 +271,6 @@ export namespace storage_v1 { * The zone or zones from which the bucket is intended to use zonal quota. Requests for data from outside the specified affinities are still allowed but won't be able to use zonal quota. The zone or zones need to be within the bucket location otherwise the requests will fail with a 400 Bad Request response. */ zoneAffinity?: string[] | null; - /** - * If set, objects placed in this bucket are required to be separated by disaster domain. - */ - zoneSeparation?: boolean | null; } /** * An access-control entry. @@ -647,7 +643,7 @@ export namespace storage_v1 { */ kind?: string | null; /** - * Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key. + * Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request. */ kmsKeyName?: string | null; /** @@ -2197,8 +2193,7 @@ export namespace storage_v1 { * // "updated": "my_updated", * // "versioning": {}, * // "website": {}, - * // "zoneAffinity": [], - * // "zoneSeparation": false + * // "zoneAffinity": [] * // } * } * @@ -2520,8 +2515,7 @@ export namespace storage_v1 { * // "updated": "my_updated", * // "versioning": {}, * // "website": {}, - * // "zoneAffinity": [], - * // "zoneSeparation": false + * // "zoneAffinity": [] * // } * }, * }); @@ -2555,8 +2549,7 @@ export namespace storage_v1 { * // "updated": "my_updated", * // "versioning": {}, * // "website": {}, - * // "zoneAffinity": [], - * // "zoneSeparation": false + * // "zoneAffinity": [] * // } * } * @@ -2878,8 +2871,7 @@ export namespace storage_v1 { * // "updated": "my_updated", * // "versioning": {}, * // "website": {}, - * // "zoneAffinity": [], - * // "zoneSeparation": false + * // "zoneAffinity": [] * // } * } * @@ -3055,8 +3047,7 @@ export namespace storage_v1 { * // "updated": "my_updated", * // "versioning": {}, * // "website": {}, - * // "zoneAffinity": [], - * // "zoneSeparation": false + * // "zoneAffinity": [] * // } * }, * }); @@ -3090,8 +3081,7 @@ export namespace storage_v1 { * // "updated": "my_updated", * // "versioning": {}, * // "website": {}, - * // "zoneAffinity": [], - * // "zoneSeparation": false + * // "zoneAffinity": [] * // } * } * @@ -3582,8 +3572,7 @@ export namespace storage_v1 { * // "updated": "my_updated", * // "versioning": {}, * // "website": {}, - * // "zoneAffinity": [], - * // "zoneSeparation": false + * // "zoneAffinity": [] * // } * }, * }); @@ -3617,8 +3606,7 @@ export namespace storage_v1 { * // "updated": "my_updated", * // "versioning": {}, * // "website": {}, - * // "zoneAffinity": [], - * // "zoneSeparation": false + * // "zoneAffinity": [] * // } * } * @@ -7168,7 +7156,7 @@ export namespace storage_v1 { * ifGenerationMatch: 'placeholder-value', * // Makes the operation conditional on whether the object's current metageneration matches the given value. * ifMetagenerationMatch: 'placeholder-value', - * // Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request. + * // Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any. * kmsKeyName: 'placeholder-value', * // The project to be billed for this request if the target bucket is requester-pays bucket. * provisionalUserProject: 'placeholder-value', @@ -7238,7 +7226,7 @@ export namespace storage_v1 { * @param {string=} params.destinationPredefinedAcl Apply a predefined set of access controls to the destination object. * @param {string=} params.ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object. * @param {string=} params.ifMetagenerationMatch Makes the operation conditional on whether the object's current metageneration matches the given value. - * @param {string=} params.kmsKeyName Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request. + * @param {string=} params.kmsKeyName Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any. * @param {string=} params.provisionalUserProject The project to be billed for this request if the target bucket is requester-pays bucket. * @param {string=} params.userProject The project to be billed for this request. Required for Requester Pays buckets. * @param {().ComposeRequest} params.requestBody Request body data @@ -9765,7 +9753,7 @@ export namespace storage_v1 { */ ifMetagenerationMatch?: string; /** - * Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request. + * Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any. */ kmsKeyName?: string; /**