Skip to content

Commit

Permalink
feat(storage)!: update the API
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JustinBeckwith committed Oct 5, 2020
1 parent e85236f commit 3b2528f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 32 deletions.
12 changes: 4 additions & 8 deletions discovery/storage-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -3229,7 +3229,7 @@
}
}
},
"revision": "20200727",
"revision": "20200927",
"rootUrl": "https://storage.googleapis.com/",
"schemas": {
"Bucket": {
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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": {
Expand Down
36 changes: 12 additions & 24 deletions src/apis/storage/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
/**
Expand Down Expand Up @@ -2197,8 +2193,7 @@ export namespace storage_v1 {
* // "updated": "my_updated",
* // "versioning": {},
* // "website": {},
* // "zoneAffinity": [],
* // "zoneSeparation": false
* // "zoneAffinity": []
* // }
* }
*
Expand Down Expand Up @@ -2520,8 +2515,7 @@ export namespace storage_v1 {
* // "updated": "my_updated",
* // "versioning": {},
* // "website": {},
* // "zoneAffinity": [],
* // "zoneSeparation": false
* // "zoneAffinity": []
* // }
* },
* });
Expand Down Expand Up @@ -2555,8 +2549,7 @@ export namespace storage_v1 {
* // "updated": "my_updated",
* // "versioning": {},
* // "website": {},
* // "zoneAffinity": [],
* // "zoneSeparation": false
* // "zoneAffinity": []
* // }
* }
*
Expand Down Expand Up @@ -2878,8 +2871,7 @@ export namespace storage_v1 {
* // "updated": "my_updated",
* // "versioning": {},
* // "website": {},
* // "zoneAffinity": [],
* // "zoneSeparation": false
* // "zoneAffinity": []
* // }
* }
*
Expand Down Expand Up @@ -3055,8 +3047,7 @@ export namespace storage_v1 {
* // "updated": "my_updated",
* // "versioning": {},
* // "website": {},
* // "zoneAffinity": [],
* // "zoneSeparation": false
* // "zoneAffinity": []
* // }
* },
* });
Expand Down Expand Up @@ -3090,8 +3081,7 @@ export namespace storage_v1 {
* // "updated": "my_updated",
* // "versioning": {},
* // "website": {},
* // "zoneAffinity": [],
* // "zoneSeparation": false
* // "zoneAffinity": []
* // }
* }
*
Expand Down Expand Up @@ -3582,8 +3572,7 @@ export namespace storage_v1 {
* // "updated": "my_updated",
* // "versioning": {},
* // "website": {},
* // "zoneAffinity": [],
* // "zoneSeparation": false
* // "zoneAffinity": []
* // }
* },
* });
Expand Down Expand Up @@ -3617,8 +3606,7 @@ export namespace storage_v1 {
* // "updated": "my_updated",
* // "versioning": {},
* // "website": {},
* // "zoneAffinity": [],
* // "zoneSeparation": false
* // "zoneAffinity": []
* // }
* }
*
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
/**
Expand Down

0 comments on commit 3b2528f

Please sign in to comment.