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.GoogleApiServiceIdentity.description
- schemas.GoogleApiServiceIdentity.id
- schemas.GoogleApiServiceIdentity.properties.description.description
- schemas.GoogleApiServiceIdentity.properties.description.type
- schemas.GoogleApiServiceIdentity.properties.displayName.description
- schemas.GoogleApiServiceIdentity.properties.displayName.type
- schemas.GoogleApiServiceIdentity.properties.serviceAccountParent.description
- schemas.GoogleApiServiceIdentity.properties.serviceAccountParent.type
- schemas.GoogleApiServiceIdentity.type
- schemas.HttpRule.properties.allowHalfDuplex.description
- schemas.HttpRule.properties.allowHalfDuplex.type
- schemas.Usage.properties.serviceIdentity.$ref
- schemas.Usage.properties.serviceIdentity.description

#### serviceusage:v1beta1
The following keys were deleted:
- schemas.GoogleApiServiceIdentity.description
- schemas.GoogleApiServiceIdentity.id
- schemas.GoogleApiServiceIdentity.properties.description.description
- schemas.GoogleApiServiceIdentity.properties.description.type
- schemas.GoogleApiServiceIdentity.properties.displayName.description
- schemas.GoogleApiServiceIdentity.properties.displayName.type
- schemas.GoogleApiServiceIdentity.properties.serviceAccountParent.description
- schemas.GoogleApiServiceIdentity.properties.serviceAccountParent.type
- schemas.GoogleApiServiceIdentity.type
- schemas.HttpRule.properties.allowHalfDuplex.description
- schemas.HttpRule.properties.allowHalfDuplex.type
- schemas.Usage.properties.serviceIdentity.$ref
- schemas.Usage.properties.serviceIdentity.description
  • Loading branch information
yoshi-automation authored and bcoe committed Oct 28, 2020
1 parent 628fe5f commit e047b67
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 106 deletions.
29 changes: 1 addition & 28 deletions discovery/serviceusage-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@
}
}
},
"revision": "20201019",
"revision": "20201026",
"rootUrl": "https://serviceusage.googleapis.com/",
"schemas": {
"AdminQuotaPolicy": {
Expand Down Expand Up @@ -1400,25 +1400,6 @@
},
"type": "object"
},
"GoogleApiServiceIdentity": {
"description": "The per-product per-project service identity for a service. Use this field to configure per-product per-project service identity. Example of a service identity configuration. usage: service_identity: - service_account_parent: \"projects/123456789\" display_name: \"Cloud XXX Service Agent\" description: \"Used as the identity of Cloud XXX to access resources\"",
"id": "GoogleApiServiceIdentity",
"properties": {
"description": {
"description": "Optional. A user-specified opaque description of the service account. Must be less than or equal to 256 UTF-8 bytes.",
"type": "string"
},
"displayName": {
"description": "Optional. A user-specified name for the service account. Must be less than or equal to 100 UTF-8 bytes.",
"type": "string"
},
"serviceAccountParent": {
"description": "A service account project that hosts the service accounts. An example name would be: `projects/123456789`",
"type": "string"
}
},
"type": "object"
},
"GoogleApiServiceusageV1OperationMetadata": {
"description": "The operation metadata returned for the batchend services operation.",
"id": "GoogleApiServiceusageV1OperationMetadata",
Expand Down Expand Up @@ -1589,10 +1570,6 @@
},
"type": "array"
},
"allowHalfDuplex": {
"description": "When this flag is set to true, HTTP requests will be allowed to invoke a half-duplex streaming method.",
"type": "boolean"
},
"body": {
"description": "The name of the request field whose value is mapped to the HTTP request body, or `*` for mapping all request fields not captured by the path pattern to the HTTP body, or omitted for not having any HTTP request body. NOTE: the referred field must be present at the top-level of the request message type.",
"type": "string"
Expand Down Expand Up @@ -2546,10 +2523,6 @@
"$ref": "UsageRule"
},
"type": "array"
},
"serviceIdentity": {
"$ref": "GoogleApiServiceIdentity",
"description": "The configuration of a per-product per-project service identity."
}
},
"type": "object"
Expand Down
29 changes: 1 addition & 28 deletions discovery/serviceusage-v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@
}
}
},
"revision": "20201019",
"revision": "20201026",
"rootUrl": "https://serviceusage.googleapis.com/",
"schemas": {
"AdminQuotaPolicy": {
Expand Down Expand Up @@ -1833,25 +1833,6 @@
},
"type": "object"
},
"GoogleApiServiceIdentity": {
"description": "The per-product per-project service identity for a service. Use this field to configure per-product per-project service identity. Example of a service identity configuration. usage: service_identity: - service_account_parent: \"projects/123456789\" display_name: \"Cloud XXX Service Agent\" description: \"Used as the identity of Cloud XXX to access resources\"",
"id": "GoogleApiServiceIdentity",
"properties": {
"description": {
"description": "Optional. A user-specified opaque description of the service account. Must be less than or equal to 256 UTF-8 bytes.",
"type": "string"
},
"displayName": {
"description": "Optional. A user-specified name for the service account. Must be less than or equal to 100 UTF-8 bytes.",
"type": "string"
},
"serviceAccountParent": {
"description": "A service account project that hosts the service accounts. An example name would be: `projects/123456789`",
"type": "string"
}
},
"type": "object"
},
"GoogleApiServiceusageV1OperationMetadata": {
"description": "The operation metadata returned for the batchend services operation.",
"id": "GoogleApiServiceusageV1OperationMetadata",
Expand Down Expand Up @@ -2022,10 +2003,6 @@
},
"type": "array"
},
"allowHalfDuplex": {
"description": "When this flag is set to true, HTTP requests will be allowed to invoke a half-duplex streaming method.",
"type": "boolean"
},
"body": {
"description": "The name of the request field whose value is mapped to the HTTP request body, or `*` for mapping all request fields not captured by the path pattern to the HTTP body, or omitted for not having any HTTP request body. NOTE: the referred field must be present at the top-level of the request message type.",
"type": "string"
Expand Down Expand Up @@ -3187,10 +3164,6 @@
"$ref": "UsageRule"
},
"type": "array"
},
"serviceIdentity": {
"$ref": "GoogleApiServiceIdentity",
"description": "The configuration of a per-product per-project service identity."
}
},
"type": "object"
Expand Down
25 changes: 0 additions & 25 deletions src/apis/serviceusage/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -803,23 +803,6 @@ export namespace serviceusage_v1 {
*/
usage?: Schema$Usage;
}
/**
* The per-product per-project service identity for a service. Use this field to configure per-product per-project service identity. Example of a service identity configuration. usage: service_identity: - service_account_parent: "projects/123456789" display_name: "Cloud XXX Service Agent" description: "Used as the identity of Cloud XXX to access resources"
*/
export interface Schema$GoogleApiServiceIdentity {
/**
* Optional. A user-specified opaque description of the service account. Must be less than or equal to 256 UTF-8 bytes.
*/
description?: string | null;
/**
* Optional. A user-specified name for the service account. Must be less than or equal to 100 UTF-8 bytes.
*/
displayName?: string | null;
/**
* A service account project that hosts the service accounts. An example name would be: `projects/123456789`
*/
serviceAccountParent?: string | null;
}
/**
* Response message for getting service identity.
*/
Expand Down Expand Up @@ -942,10 +925,6 @@ export namespace serviceusage_v1 {
* Additional HTTP bindings for the selector. Nested bindings must not contain an `additional_bindings` field themselves (that is, the nesting may only be one level deep).
*/
additionalBindings?: Schema$HttpRule[];
/**
* When this flag is set to true, HTTP requests will be allowed to invoke a half-duplex streaming method.
*/
allowHalfDuplex?: boolean | null;
/**
* The name of the request field whose value is mapped to the HTTP request body, or `*` for mapping all request fields not captured by the path pattern to the HTTP body, or omitted for not having any HTTP request body. NOTE: the referred field must be present at the top-level of the request message type.
*/
Expand Down Expand Up @@ -1589,10 +1568,6 @@ export namespace serviceusage_v1 {
* A list of usage rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order.
*/
rules?: Schema$UsageRule[];
/**
* The configuration of a per-product per-project service identity.
*/
serviceIdentity?: Schema$GoogleApiServiceIdentity;
}
/**
* Usage configuration rules for the service. NOTE: Under development. Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity. Use this rule to allow/disallow unregistered calls. Example of an API that wants to allow unregistered calls for entire service. usage: rules: - selector: "*" allow_unregistered_calls: true Example of a method that wants to allow unregistered calls. usage: rules: - selector: "google.example.library.v1.LibraryService.CreateBook" allow_unregistered_calls: true
Expand Down
25 changes: 0 additions & 25 deletions src/apis/serviceusage/v1beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,23 +835,6 @@ export namespace serviceusage_v1beta1 {
*/
usage?: Schema$Usage;
}
/**
* The per-product per-project service identity for a service. Use this field to configure per-product per-project service identity. Example of a service identity configuration. usage: service_identity: - service_account_parent: "projects/123456789" display_name: "Cloud XXX Service Agent" description: "Used as the identity of Cloud XXX to access resources"
*/
export interface Schema$GoogleApiServiceIdentity {
/**
* Optional. A user-specified opaque description of the service account. Must be less than or equal to 256 UTF-8 bytes.
*/
description?: string | null;
/**
* Optional. A user-specified name for the service account. Must be less than or equal to 100 UTF-8 bytes.
*/
displayName?: string | null;
/**
* A service account project that hosts the service accounts. An example name would be: `projects/123456789`
*/
serviceAccountParent?: string | null;
}
/**
* Response message for getting service identity.
*/
Expand Down Expand Up @@ -974,10 +957,6 @@ export namespace serviceusage_v1beta1 {
* Additional HTTP bindings for the selector. Nested bindings must not contain an `additional_bindings` field themselves (that is, the nesting may only be one level deep).
*/
additionalBindings?: Schema$HttpRule[];
/**
* When this flag is set to true, HTTP requests will be allowed to invoke a half-duplex streaming method.
*/
allowHalfDuplex?: boolean | null;
/**
* The name of the request field whose value is mapped to the HTTP request body, or `*` for mapping all request fields not captured by the path pattern to the HTTP body, or omitted for not having any HTTP request body. NOTE: the referred field must be present at the top-level of the request message type.
*/
Expand Down Expand Up @@ -1777,10 +1756,6 @@ export namespace serviceusage_v1beta1 {
* A list of usage rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order.
*/
rules?: Schema$UsageRule[];
/**
* The configuration of a per-product per-project service identity.
*/
serviceIdentity?: Schema$GoogleApiServiceIdentity;
}
/**
* Usage configuration rules for the service. NOTE: Under development. Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity. Use this rule to allow/disallow unregistered calls. Example of an API that wants to allow unregistered calls for entire service. usage: rules: - selector: "*" allow_unregistered_calls: true Example of a method that wants to allow unregistered calls. usage: rules: - selector: "google.example.library.v1.LibraryService.CreateBook" allow_unregistered_calls: true
Expand Down

0 comments on commit e047b67

Please sign in to comment.