Skip to content

Commit

Permalink
feat(servicenetworking)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.
#### servicenetworking:v1beta
The following keys were deleted:
- schemas.HttpRule.properties.allowHalfDuplex.description
- schemas.HttpRule.properties.allowHalfDuplex.type
- schemas.ServiceIdentity.description
- schemas.ServiceIdentity.id
- schemas.ServiceIdentity.properties.description.description
- schemas.ServiceIdentity.properties.description.type
- schemas.ServiceIdentity.properties.displayName.description
- schemas.ServiceIdentity.properties.displayName.type
- schemas.ServiceIdentity.properties.serviceAccountParent.description
- schemas.ServiceIdentity.properties.serviceAccountParent.type
- schemas.ServiceIdentity.type
- schemas.Usage.properties.serviceIdentity.$ref
- schemas.Usage.properties.serviceIdentity.description

The following keys were changed:
- schemas.Service.properties.configVersion.description

#### servicenetworking:v1
The following keys were deleted:
- schemas.HttpRule.properties.allowHalfDuplex.description
- schemas.HttpRule.properties.allowHalfDuplex.type
- schemas.ServiceIdentity.description
- schemas.ServiceIdentity.id
- schemas.ServiceIdentity.properties.description.description
- schemas.ServiceIdentity.properties.description.type
- schemas.ServiceIdentity.properties.displayName.description
- schemas.ServiceIdentity.properties.displayName.type
- schemas.ServiceIdentity.properties.serviceAccountParent.description
- schemas.ServiceIdentity.properties.serviceAccountParent.type
- schemas.ServiceIdentity.type
- schemas.Usage.properties.serviceIdentity.$ref
- schemas.Usage.properties.serviceIdentity.description

The following keys were changed:
- schemas.Service.properties.configVersion.description
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 21, 2020
1 parent b9afcd7 commit 6809a01
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 110 deletions.
31 changes: 2 additions & 29 deletions discovery/servicenetworking-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@
}
}
},
"revision": "20201015",
"revision": "20201020",
"rootUrl": "https://servicenetworking.googleapis.com/",
"schemas": {
"AddDnsRecordSetMetadata": {
Expand Down Expand Up @@ -1771,10 +1771,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 @@ -2648,7 +2644,7 @@
"description": "Billing configuration."
},
"configVersion": {
"description": "The semantic version of the service configuration. The config version affects the interpretation of the service configuration. For example, certain features are enabled by default for certain config versions. The latest config version is `3`.",
"description": "This field is obsolete. Its value must be set to `3`.",
"format": "uint32",
"type": "integer"
},
Expand Down Expand Up @@ -2764,25 +2760,6 @@
},
"type": "object"
},
"ServiceIdentity": {
"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": "ServiceIdentity",
"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"
},
"SourceContext": {
"description": "`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.",
"id": "SourceContext",
Expand Down Expand Up @@ -3011,10 +2988,6 @@
"$ref": "UsageRule"
},
"type": "array"
},
"serviceIdentity": {
"$ref": "ServiceIdentity",
"description": "The configuration of a per-product per-project service identity."
}
},
"type": "object"
Expand Down
31 changes: 2 additions & 29 deletions discovery/servicenetworking-v1beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
}
}
},
"revision": "20201015",
"revision": "20201020",
"rootUrl": "https://servicenetworking.googleapis.com/",
"schemas": {
"AddDnsRecordSetMetadata": {
Expand Down Expand Up @@ -1200,10 +1200,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 @@ -1991,7 +1987,7 @@
"description": "Billing configuration."
},
"configVersion": {
"description": "The semantic version of the service configuration. The config version affects the interpretation of the service configuration. For example, certain features are enabled by default for certain config versions. The latest config version is `3`.",
"description": "This field is obsolete. Its value must be set to `3`.",
"format": "uint32",
"type": "integer"
},
Expand Down Expand Up @@ -2107,25 +2103,6 @@
},
"type": "object"
},
"ServiceIdentity": {
"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": "ServiceIdentity",
"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"
},
"SourceContext": {
"description": "`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.",
"id": "SourceContext",
Expand Down Expand Up @@ -2331,10 +2308,6 @@
"$ref": "UsageRule"
},
"type": "array"
},
"serviceIdentity": {
"$ref": "ServiceIdentity",
"description": "The configuration of a per-product per-project service identity."
}
},
"type": "object"
Expand Down
27 changes: 1 addition & 26 deletions src/apis/servicenetworking/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -846,10 +846,6 @@ export namespace servicenetworking_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 @@ -1458,7 +1454,7 @@ export namespace servicenetworking_v1 {
*/
billing?: Schema$Billing;
/**
* The semantic version of the service configuration. The config version affects the interpretation of the service configuration. For example, certain features are enabled by default for certain config versions. The latest config version is `3`.
* This field is obsolete. Its value must be set to `3`.
*/
configVersion?: number | null;
/**
Expand Down Expand Up @@ -1550,23 +1546,6 @@ export namespace servicenetworking_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$ServiceIdentity {
/**
* 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;
}
/**
* `SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.
*/
Expand Down Expand Up @@ -1732,10 +1711,6 @@ export namespace servicenetworking_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$ServiceIdentity;
}
/**
* 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
27 changes: 1 addition & 26 deletions src/apis/servicenetworking/v1beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,10 +764,6 @@ export namespace servicenetworking_v1beta {
* 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 @@ -1311,7 +1307,7 @@ export namespace servicenetworking_v1beta {
*/
billing?: Schema$Billing;
/**
* The semantic version of the service configuration. The config version affects the interpretation of the service configuration. For example, certain features are enabled by default for certain config versions. The latest config version is `3`.
* This field is obsolete. Its value must be set to `3`.
*/
configVersion?: number | null;
/**
Expand Down Expand Up @@ -1403,23 +1399,6 @@ export namespace servicenetworking_v1beta {
*/
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$ServiceIdentity {
/**
* 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;
}
/**
* `SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.
*/
Expand Down Expand Up @@ -1564,10 +1543,6 @@ export namespace servicenetworking_v1beta {
* 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$ServiceIdentity;
}
/**
* 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 6809a01

Please sign in to comment.