Skip to content

Commit

Permalink
feat(workstations): update the API
Browse files Browse the repository at this point in the history
#### workstations:v1beta

The following keys were added:
- schemas.Workstation.properties.kmsKey.description
- schemas.Workstation.properties.kmsKey.readOnly
- schemas.Workstation.properties.kmsKey.type

#### workstations:v1

The following keys were added:
- schemas.DomainConfig.description
- schemas.DomainConfig.id
- schemas.DomainConfig.properties.domain.description
- schemas.DomainConfig.properties.domain.type
- schemas.DomainConfig.type
- schemas.Workstation.properties.kmsKey.description
- schemas.Workstation.properties.kmsKey.readOnly
- schemas.Workstation.properties.kmsKey.type
- schemas.WorkstationCluster.properties.domainConfig.$ref
- schemas.WorkstationCluster.properties.domainConfig.description
  • Loading branch information
yoshi-automation authored and sofisl committed Jan 3, 2024
1 parent 4c49597 commit 174cd20
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 2 deletions.
22 changes: 21 additions & 1 deletion discovery/workstations-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@
}
}
},
"revision": "20231101",
"revision": "20231129",
"rootUrl": "https://workstations.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -1330,6 +1330,17 @@
},
"type": "object"
},
"DomainConfig": {
"description": "Configuration options for a custom domain.",
"id": "DomainConfig",
"properties": {
"domain": {
"description": "Immutable. Domain used by Workstations for HTTP ingress.",
"type": "string"
}
},
"type": "object"
},
"Expr": {
"description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() < 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' && document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.",
"id": "Expr",
Expand Down Expand Up @@ -2040,6 +2051,11 @@
"readOnly": true,
"type": "string"
},
"kmsKey": {
"description": "Output only. The name of the Google Cloud KMS encryption key used to encrypt this workstation. The KMS key can only be configured in the WorkstationConfig. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.",
"readOnly": true,
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
Expand Down Expand Up @@ -2140,6 +2156,10 @@
"description": "Optional. Human-readable name for this workstation cluster.",
"type": "string"
},
"domainConfig": {
"$ref": "DomainConfig",
"description": "Optional. Configuration options for a custom domain."
},
"etag": {
"description": "Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.",
"type": "string"
Expand Down
7 changes: 6 additions & 1 deletion discovery/workstations-v1beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@
}
}
},
"revision": "20231101",
"revision": "20231129",
"rootUrl": "https://workstations.googleapis.com/",
"schemas": {
"Accelerator": {
Expand Down Expand Up @@ -1992,6 +1992,11 @@
"readOnly": true,
"type": "string"
},
"kmsKey": {
"description": "Output only. The name of the Google Cloud KMS encryption key used to encrypt this workstation. The KMS key can only be configured in the WorkstationConfig. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.",
"readOnly": true,
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
Expand Down
17 changes: 17 additions & 0 deletions src/apis/workstations/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,15 @@ export namespace workstations_v1 {
*/
kmsKeyServiceAccount?: string | null;
}
/**
* Configuration options for a custom domain.
*/
export interface Schema$DomainConfig {
/**
* Immutable. Domain used by Workstations for HTTP ingress.
*/
domain?: string | null;
}
/**
* Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
*/
Expand Down Expand Up @@ -741,6 +750,10 @@ export namespace workstations_v1 {
* Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format `{port\}-{host\}`.
*/
host?: string | null;
/**
* Output only. The name of the Google Cloud KMS encryption key used to encrypt this workstation. The KMS key can only be configured in the WorkstationConfig. The expected format is `projects/x/locations/x/keyRings/x/cryptoKeys/x`.
*/
kmsKey?: string | null;
/**
* Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.
*/
Expand Down Expand Up @@ -802,6 +815,10 @@ export namespace workstations_v1 {
* Optional. Human-readable name for this workstation cluster.
*/
displayName?: string | null;
/**
* Optional. Configuration options for a custom domain.
*/
domainConfig?: Schema$DomainConfig;
/**
* Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.
*/
Expand Down
4 changes: 4 additions & 0 deletions src/apis/workstations/v1beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,10 @@ export namespace workstations_v1beta {
* Output only. Host to which clients can send HTTPS traffic that will be received by the workstation. Authorized traffic will be received to the workstation as HTTP on port 80. To send traffic to a different port, clients may prefix the host with the destination port in the format `{port\}-{host\}`.
*/
host?: string | null;
/**
* Output only. The name of the Google Cloud KMS encryption key used to encrypt this workstation. The KMS key can only be configured in the WorkstationConfig. The expected format is `projects/x/locations/x/keyRings/x/cryptoKeys/x`.
*/
kmsKey?: string | null;
/**
* Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation and that are also propagated to the underlying Compute Engine resources.
*/
Expand Down

0 comments on commit 174cd20

Please sign in to comment.