Skip to content

Commit

Permalink
feat(serviceusage)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.
#### serviceusage:v1
The following keys were deleted:
- schemas.Endpoint.properties.features.description
- schemas.Endpoint.properties.features.items.type
- schemas.Endpoint.properties.features.type

#### serviceusage:v1beta1
The following keys were deleted:
- schemas.Endpoint.properties.features.description
- schemas.Endpoint.properties.features.items.type
- schemas.Endpoint.properties.features.type

The following keys were added:
- schemas.ConsumerQuotaMetric.properties.unit.description
- schemas.ConsumerQuotaMetric.properties.unit.type
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jun 10, 2020
1 parent 092ebef commit 6914841
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 25 deletions.
9 changes: 1 addition & 8 deletions discovery/serviceusage-v1.json
Expand Up @@ -426,7 +426,7 @@
}
}
},
"revision": "20200603",
"revision": "20200606",
"rootUrl": "https://serviceusage.googleapis.com/",
"schemas": {
"AdminQuotaPolicy": {
Expand Down Expand Up @@ -1042,13 +1042,6 @@
"description": "Allowing\n[CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka\ncross-domain traffic, would allow the backends served from this endpoint to\nreceive and respond to HTTP OPTIONS requests. The response will be used by\nthe browser to determine whether the subsequent cross-origin request is\nallowed to proceed.",
"type": "boolean"
},
"features": {
"description": "The list of features enabled on this endpoint.",
"items": {
"type": "string"
},
"type": "array"
},
"name": {
"description": "The canonical name of this endpoint.",
"type": "string"
Expand Down
13 changes: 5 additions & 8 deletions discovery/serviceusage-v1beta1.json
Expand Up @@ -764,7 +764,7 @@
}
}
},
"revision": "20200603",
"revision": "20200606",
"rootUrl": "https://serviceusage.googleapis.com/",
"schemas": {
"AdminQuotaPolicy": {
Expand Down Expand Up @@ -1170,6 +1170,10 @@
"name": {
"description": "The resource name of the quota settings on this metric for this consumer.\n\nAn example name would be:\n`projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus\n\nThe resource name is intended to be opaque and should not be parsed for\nits component strings, since its representation could change in the future.",
"type": "string"
},
"unit": {
"description": "The units in which the metric value is reported.",
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -1415,13 +1419,6 @@
"description": "Allowing\n[CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka\ncross-domain traffic, would allow the backends served from this endpoint to\nreceive and respond to HTTP OPTIONS requests. The response will be used by\nthe browser to determine whether the subsequent cross-origin request is\nallowed to proceed.",
"type": "boolean"
},
"features": {
"description": "The list of features enabled on this endpoint.",
"items": {
"type": "string"
},
"type": "array"
},
"name": {
"description": "The canonical name of this endpoint.",
"type": "string"
Expand Down
4 changes: 0 additions & 4 deletions src/apis/serviceusage/v1.ts
Expand Up @@ -577,10 +577,6 @@ export namespace serviceusage_v1 {
* Allowing [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka cross-domain traffic, would allow the backends served from this endpoint to receive and respond to HTTP OPTIONS requests. The response will be used by the browser to determine whether the subsequent cross-origin request is allowed to proceed.
*/
allowCors?: boolean | null;
/**
* The list of features enabled on this endpoint.
*/
features?: string[] | null;
/**
* The canonical name of this endpoint.
*/
Expand Down
11 changes: 6 additions & 5 deletions src/apis/serviceusage/v1beta1.ts
Expand Up @@ -425,6 +425,10 @@ export namespace serviceusage_v1beta1 {
* The resource name of the quota settings on this metric for this consumer. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus The resource name is intended to be opaque and should not be parsed for its component strings, since its representation could change in the future.
*/
name?: string | null;
/**
* The units in which the metric value is reported.
*/
unit?: string | null;
}
/**
* `Context` defines which contexts an API requests. Example: context: rules: - selector: "*" requested: - google.rpc.context.ProjectContext - google.rpc.context.OriginContext The above specifies that all methods in the API request `google.rpc.context.ProjectContext` and `google.rpc.context.OriginContext`. Available context types are defined in package `google.rpc.context`. This also provides mechanism to whitelist any protobuf message extension that can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and “x-goog-ext-<extension_id>-jspb” format. For example, list any service specific protobuf types that can appear in grpc metadata as follows in your yaml file: Example: context: rules: - selector: "google.example.library.v1.LibraryService.CreateBook" allowed_request_extensions: - google.foo.v1.NewExtension allowed_response_extensions: - google.foo.v1.NewExtension You can also specify extension ID instead of fully qualified extension name here.
Expand Down Expand Up @@ -609,10 +613,6 @@ export namespace serviceusage_v1beta1 {
* Allowing [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka cross-domain traffic, would allow the backends served from this endpoint to receive and respond to HTTP OPTIONS requests. The response will be used by the browser to determine whether the subsequent cross-origin request is allowed to proceed.
*/
allowCors?: boolean | null;
/**
* The list of features enabled on this endpoint.
*/
features?: string[] | null;
/**
* The canonical name of this endpoint.
*/
Expand Down Expand Up @@ -2948,7 +2948,8 @@ export namespace serviceusage_v1beta1 {
* // "consumerQuotaLimits": [],
* // "displayName": "my_displayName",
* // "metric": "my_metric",
* // "name": "my_name"
* // "name": "my_name",
* // "unit": "my_unit"
* // }
* }
*
Expand Down

0 comments on commit 6914841

Please sign in to comment.