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:v1beta1

The following keys were deleted:
- schemas.Endpoint.properties.aliases.description
- schemas.Endpoint.properties.aliases.items.type
- schemas.Endpoint.properties.aliases.type

The following keys were added:
- schemas.CreateAdminQuotaPolicyMetadata.description
- schemas.CreateAdminQuotaPolicyMetadata.id
- schemas.CreateAdminQuotaPolicyMetadata.type
- schemas.DeleteAdminQuotaPolicyMetadata.description
- schemas.DeleteAdminQuotaPolicyMetadata.id
- schemas.DeleteAdminQuotaPolicyMetadata.type
- schemas.GetServiceIdentityMetadata.description
- schemas.GetServiceIdentityMetadata.id
- schemas.GetServiceIdentityMetadata.type
- schemas.ImportAdminOverridesMetadata.description
- schemas.ImportAdminOverridesMetadata.id
- schemas.ImportAdminOverridesMetadata.type
- schemas.ImportAdminQuotaPoliciesMetadata.description
- schemas.ImportAdminQuotaPoliciesMetadata.id
- schemas.ImportAdminQuotaPoliciesMetadata.type
- schemas.ImportConsumerOverridesMetadata.description
- schemas.ImportConsumerOverridesMetadata.id
- schemas.ImportConsumerOverridesMetadata.type
- schemas.UpdateAdminQuotaPolicyMetadata.description
- schemas.UpdateAdminQuotaPolicyMetadata.id
- schemas.UpdateAdminQuotaPolicyMetadata.type

#### serviceusage:v1

The following keys were deleted:
- schemas.Endpoint.properties.aliases.description
- schemas.Endpoint.properties.aliases.items.type
- schemas.Endpoint.properties.aliases.type

The following keys were added:
- schemas.CreateAdminQuotaPolicyMetadata.description
- schemas.CreateAdminQuotaPolicyMetadata.id
- schemas.CreateAdminQuotaPolicyMetadata.type
- schemas.DeleteAdminQuotaPolicyMetadata.description
- schemas.DeleteAdminQuotaPolicyMetadata.id
- schemas.DeleteAdminQuotaPolicyMetadata.type
- schemas.GetServiceIdentityMetadata.description
- schemas.GetServiceIdentityMetadata.id
- schemas.GetServiceIdentityMetadata.type
- schemas.ImportAdminOverridesMetadata.description
- schemas.ImportAdminOverridesMetadata.id
- schemas.ImportAdminOverridesMetadata.type
- schemas.ImportAdminQuotaPoliciesMetadata.description
- schemas.ImportAdminQuotaPoliciesMetadata.id
- schemas.ImportAdminQuotaPoliciesMetadata.type
- schemas.ImportConsumerOverridesMetadata.description
- schemas.ImportConsumerOverridesMetadata.id
- schemas.ImportConsumerOverridesMetadata.type
- schemas.UpdateAdminQuotaPolicyMetadata.description
- schemas.UpdateAdminQuotaPolicyMetadata.id
- schemas.UpdateAdminQuotaPolicyMetadata.type
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 20, 2021
1 parent 7c39c04 commit 5d25614
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 24 deletions.
51 changes: 43 additions & 8 deletions discovery/serviceusage-v1.json
Expand Up @@ -426,7 +426,7 @@
}
}
},
"revision": "20210331",
"revision": "20210413",
"rootUrl": "https://serviceusage.googleapis.com/",
"schemas": {
"AdminQuotaPolicy": {
Expand Down Expand Up @@ -860,6 +860,12 @@
},
"type": "object"
},
"CreateAdminQuotaPolicyMetadata": {
"description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by CreateAdminQuotaPolicy.",
"id": "CreateAdminQuotaPolicyMetadata",
"properties": {},
"type": "object"
},
"CustomError": {
"description": "Customize service error responses. For example, list any service specific protobuf types that can appear in error detail lists of error responses. Example: custom_error: types: - google.foo.v1.CustomError - google.foo.v1.AnotherError",
"id": "CustomError",
Expand Down Expand Up @@ -911,6 +917,12 @@
},
"type": "object"
},
"DeleteAdminQuotaPolicyMetadata": {
"description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by DeleteAdminQuotaPolicy.",
"id": "DeleteAdminQuotaPolicyMetadata",
"properties": {},
"type": "object"
},
"DisableServiceRequest": {
"description": "Request message for the `DisableService` method.",
"id": "DisableServiceRequest",
Expand Down Expand Up @@ -1045,13 +1057,6 @@
"description": "`Endpoint` describes a network endpoint of a service that serves a set of APIs. It is commonly known as a service endpoint. A service may expose any number of service endpoints, and all service endpoints share the same service definition, such as quota limits and monitoring metrics. Example service configuration: name: library-example.googleapis.com endpoints: # Below entry makes 'google.example.library.v1.Library' # API be served from endpoint address library-example.googleapis.com. # It also allows HTTP OPTIONS calls to be passed to the backend, for # it to decide whether the subsequent cross-origin request is # allowed to proceed. - name: library-example.googleapis.com allow_cors: true",
"id": "Endpoint",
"properties": {
"aliases": {
"description": "DEPRECATED: This field is no longer supported. Instead of using aliases, please specify multiple google.api.Endpoint for each of the intended aliases. Additional names that this endpoint will be hosted on.",
"items": {
"type": "string"
},
"type": "array"
},
"allowCors": {
"description": "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.",
"type": "boolean"
Expand Down Expand Up @@ -1237,6 +1242,12 @@
},
"type": "object"
},
"GetServiceIdentityMetadata": {
"description": "Metadata for the `GetServiceIdentity` method.",
"id": "GetServiceIdentityMetadata",
"properties": {},
"type": "object"
},
"GetServiceIdentityResponse": {
"description": "Response message for getting service identity.",
"id": "GetServiceIdentityResponse",
Expand Down Expand Up @@ -1609,6 +1620,12 @@
},
"type": "object"
},
"ImportAdminOverridesMetadata": {
"description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.",
"id": "ImportAdminOverridesMetadata",
"properties": {},
"type": "object"
},
"ImportAdminOverridesResponse": {
"description": "Response message for ImportAdminOverrides",
"id": "ImportAdminOverridesResponse",
Expand All @@ -1623,6 +1640,12 @@
},
"type": "object"
},
"ImportAdminQuotaPoliciesMetadata": {
"description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminQuotaPolicies.",
"id": "ImportAdminQuotaPoliciesMetadata",
"properties": {},
"type": "object"
},
"ImportAdminQuotaPoliciesResponse": {
"description": "Response message for ImportAdminQuotaPolicies",
"id": "ImportAdminQuotaPoliciesResponse",
Expand All @@ -1637,6 +1660,12 @@
},
"type": "object"
},
"ImportConsumerOverridesMetadata": {
"description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportConsumerOverrides.",
"id": "ImportConsumerOverridesMetadata",
"properties": {},
"type": "object"
},
"ImportConsumerOverridesResponse": {
"description": "Response message for ImportConsumerOverrides",
"id": "ImportConsumerOverridesResponse",
Expand Down Expand Up @@ -2502,6 +2531,12 @@
},
"type": "object"
},
"UpdateAdminQuotaPolicyMetadata": {
"description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by UpdateAdminQuotaPolicy.",
"id": "UpdateAdminQuotaPolicyMetadata",
"properties": {},
"type": "object"
},
"Usage": {
"description": "Configuration controlling usage of a service.",
"id": "Usage",
Expand Down
51 changes: 43 additions & 8 deletions discovery/serviceusage-v1beta1.json
Expand Up @@ -959,7 +959,7 @@
}
}
},
"revision": "20210331",
"revision": "20210413",
"rootUrl": "https://serviceusage.googleapis.com/",
"schemas": {
"AdminQuotaPolicy": {
Expand Down Expand Up @@ -1444,6 +1444,12 @@
},
"type": "object"
},
"CreateAdminQuotaPolicyMetadata": {
"description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by CreateAdminQuotaPolicy.",
"id": "CreateAdminQuotaPolicyMetadata",
"properties": {},
"type": "object"
},
"CustomError": {
"description": "Customize service error responses. For example, list any service specific protobuf types that can appear in error detail lists of error responses. Example: custom_error: types: - google.foo.v1.CustomError - google.foo.v1.AnotherError",
"id": "CustomError",
Expand Down Expand Up @@ -1495,6 +1501,12 @@
},
"type": "object"
},
"DeleteAdminQuotaPolicyMetadata": {
"description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by DeleteAdminQuotaPolicy.",
"id": "DeleteAdminQuotaPolicyMetadata",
"properties": {},
"type": "object"
},
"DisableServiceRequest": {
"description": "Request message for the `DisableService` method.",
"id": "DisableServiceRequest",
Expand Down Expand Up @@ -1610,13 +1622,6 @@
"description": "`Endpoint` describes a network endpoint of a service that serves a set of APIs. It is commonly known as a service endpoint. A service may expose any number of service endpoints, and all service endpoints share the same service definition, such as quota limits and monitoring metrics. Example service configuration: name: library-example.googleapis.com endpoints: # Below entry makes 'google.example.library.v1.Library' # API be served from endpoint address library-example.googleapis.com. # It also allows HTTP OPTIONS calls to be passed to the backend, for # it to decide whether the subsequent cross-origin request is # allowed to proceed. - name: library-example.googleapis.com allow_cors: true",
"id": "Endpoint",
"properties": {
"aliases": {
"description": "DEPRECATED: This field is no longer supported. Instead of using aliases, please specify multiple google.api.Endpoint for each of the intended aliases. Additional names that this endpoint will be hosted on.",
"items": {
"type": "string"
},
"type": "array"
},
"allowCors": {
"description": "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.",
"type": "boolean"
Expand Down Expand Up @@ -1802,6 +1807,12 @@
},
"type": "object"
},
"GetServiceIdentityMetadata": {
"description": "Metadata for the `GetServiceIdentity` method.",
"id": "GetServiceIdentityMetadata",
"properties": {},
"type": "object"
},
"GetServiceIdentityResponse": {
"description": "Response message for getting service identity.",
"id": "GetServiceIdentityResponse",
Expand Down Expand Up @@ -2174,6 +2185,12 @@
},
"type": "object"
},
"ImportAdminOverridesMetadata": {
"description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.",
"id": "ImportAdminOverridesMetadata",
"properties": {},
"type": "object"
},
"ImportAdminOverridesRequest": {
"description": "Request message for ImportAdminOverrides",
"id": "ImportAdminOverridesRequest",
Expand Down Expand Up @@ -2220,6 +2237,12 @@
},
"type": "object"
},
"ImportAdminQuotaPoliciesMetadata": {
"description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminQuotaPolicies.",
"id": "ImportAdminQuotaPoliciesMetadata",
"properties": {},
"type": "object"
},
"ImportAdminQuotaPoliciesResponse": {
"description": "Response message for ImportAdminQuotaPolicies",
"id": "ImportAdminQuotaPoliciesResponse",
Expand All @@ -2234,6 +2257,12 @@
},
"type": "object"
},
"ImportConsumerOverridesMetadata": {
"description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportConsumerOverrides.",
"id": "ImportConsumerOverridesMetadata",
"properties": {},
"type": "object"
},
"ImportConsumerOverridesRequest": {
"description": "Request message for ImportConsumerOverrides",
"id": "ImportConsumerOverridesRequest",
Expand Down Expand Up @@ -3324,6 +3353,12 @@
},
"type": "object"
},
"UpdateAdminQuotaPolicyMetadata": {
"description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by UpdateAdminQuotaPolicy.",
"id": "UpdateAdminQuotaPolicyMetadata",
"properties": {},
"type": "object"
},
"Usage": {
"description": "Configuration controlling usage of a service.",
"id": "Usage",
Expand Down
32 changes: 28 additions & 4 deletions src/apis/serviceusage/v1.ts
Expand Up @@ -430,6 +430,10 @@ export namespace serviceusage_v1 {
*/
environment?: string | null;
}
/**
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by CreateAdminQuotaPolicy.
*/
export interface Schema$CreateAdminQuotaPolicyMetadata {}
/**
* Customize service error responses. For example, list any service specific protobuf types that can appear in error detail lists of error responses. Example: custom_error: types: - google.foo.v1.CustomError - google.foo.v1.AnotherError
*/
Expand Down Expand Up @@ -469,6 +473,10 @@ export namespace serviceusage_v1 {
*/
path?: string | null;
}
/**
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by DeleteAdminQuotaPolicy.
*/
export interface Schema$DeleteAdminQuotaPolicyMetadata {}
/**
* Request message for the `DisableService` method.
*/
Expand Down Expand Up @@ -571,10 +579,6 @@ export namespace serviceusage_v1 {
* `Endpoint` describes a network endpoint of a service that serves a set of APIs. It is commonly known as a service endpoint. A service may expose any number of service endpoints, and all service endpoints share the same service definition, such as quota limits and monitoring metrics. Example service configuration: name: library-example.googleapis.com endpoints: # Below entry makes 'google.example.library.v1.Library' # API be served from endpoint address library-example.googleapis.com. # It also allows HTTP OPTIONS calls to be passed to the backend, for # it to decide whether the subsequent cross-origin request is # allowed to proceed. - name: library-example.googleapis.com allow_cors: true
*/
export interface Schema$Endpoint {
/**
* DEPRECATED: This field is no longer supported. Instead of using aliases, please specify multiple google.api.Endpoint for each of the intended aliases. Additional names that this endpoint will be hosted on.
*/
aliases?: string[] | null;
/**
* 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.
*/
Expand Down Expand Up @@ -675,6 +679,10 @@ export namespace serviceusage_v1 {
*/
typeUrl?: string | null;
}
/**
* Metadata for the `GetServiceIdentity` method.
*/
export interface Schema$GetServiceIdentityMetadata {}
/**
* Response message for getting service identity.
*/
Expand Down Expand Up @@ -960,6 +968,10 @@ export namespace serviceusage_v1 {
*/
selector?: string | null;
}
/**
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.
*/
export interface Schema$ImportAdminOverridesMetadata {}
/**
* Response message for ImportAdminOverrides
*/
Expand All @@ -969,6 +981,10 @@ export namespace serviceusage_v1 {
*/
overrides?: Schema$QuotaOverride[];
}
/**
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminQuotaPolicies.
*/
export interface Schema$ImportAdminQuotaPoliciesMetadata {}
/**
* Response message for ImportAdminQuotaPolicies
*/
Expand All @@ -978,6 +994,10 @@ export namespace serviceusage_v1 {
*/
policies?: Schema$AdminQuotaPolicy[];
}
/**
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportConsumerOverrides.
*/
export interface Schema$ImportConsumerOverridesMetadata {}
/**
* Response message for ImportConsumerOverrides
*/
Expand Down Expand Up @@ -1550,6 +1570,10 @@ export namespace serviceusage_v1 {
*/
syntax?: string | null;
}
/**
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by UpdateAdminQuotaPolicy.
*/
export interface Schema$UpdateAdminQuotaPolicyMetadata {}
/**
* Configuration controlling usage of a service.
*/
Expand Down

0 comments on commit 5d25614

Please sign in to comment.