Skip to content

Commit

Permalink
feat(remotebuildexecution)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### remotebuildexecution:v1alpha

The following keys were deleted:
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.description
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.id
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.properties.nodeType.description
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.properties.nodeType.type
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.properties.nodesZone.description
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.properties.nodesZone.type
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.type
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.properties.soleTenancy.$ref
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.properties.soleTenancy.description

The following keys were added:
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.properties.soleTenantNodeType.description
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.properties.soleTenantNodeType.type

The following keys were changed:
- schemas.GoogleDevtoolsRemotebuildbotCommandStatus.properties.code.enum
- schemas.GoogleDevtoolsRemotebuildbotCommandStatus.properties.code.enumDescriptions

#### remotebuildexecution:v1

The following keys were deleted:
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.description
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.id
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.properties.nodeType.description
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.properties.nodeType.type
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.properties.nodesZone.description
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.properties.nodesZone.type
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.type
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.properties.soleTenancy.$ref
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.properties.soleTenancy.description

The following keys were added:
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.properties.soleTenantNodeType.description
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.properties.soleTenantNodeType.type

The following keys were changed:
- schemas.GoogleDevtoolsRemotebuildbotCommandStatus.properties.code.enum
- schemas.GoogleDevtoolsRemotebuildbotCommandStatus.properties.code.enumDescriptions

#### remotebuildexecution:v2

The following keys were deleted:
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.description
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.id
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.properties.nodeType.description
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.properties.nodeType.type
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.properties.nodesZone.description
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.properties.nodesZone.type
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.type
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.properties.soleTenancy.$ref
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.properties.soleTenancy.description

The following keys were added:
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.properties.soleTenantNodeType.description
- schemas.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.properties.soleTenantNodeType.type

The following keys were changed:
- schemas.GoogleDevtoolsRemotebuildbotCommandStatus.properties.code.enum
- schemas.GoogleDevtoolsRemotebuildbotCommandStatus.properties.code.enumDescriptions
  • Loading branch information
yoshi-automation authored and bcoe committed Dec 3, 2020
1 parent 92577ce commit e97a056
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 108 deletions.
29 changes: 8 additions & 21 deletions discovery/remotebuildexecution-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
}
}
},
"revision": "20201006",
"revision": "20201201",
"rootUrl": "https://remotebuildexecution.googleapis.com/",
"schemas": {
"BuildBazelRemoteExecutionV2Action": {
Expand Down Expand Up @@ -1042,7 +1042,8 @@
"DOCKER_CREATE_RUNTIME_FILE_NOT_FOUND",
"DOCKER_CREATE_RUNTIME_PERMISSION_DENIED",
"DOCKER_CREATE_PROCESS_FILE_NOT_FOUND",
"DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR"
"DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR",
"DOCKER_TOO_MANY_SYMBOLIC_LINK_LEVELS"
],
"enumDescriptions": [
"The command succeeded.",
Expand Down Expand Up @@ -1082,7 +1083,8 @@
"Docker failed to create OCI runtime because of file not found.",
"Docker failed to create OCI runtime because of permission denied.",
"Docker failed to create process because of file not found.",
"Docker failed to run containers with CreateComputeSystem error that involves an incorrect parameter (more specific version of DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that is user-caused)."
"Docker failed to run containers with CreateComputeSystem error that involves an incorrect parameter (more specific version of DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that is user-caused).",
"Docker failed to create an overlay mount because of too many levels of symbolic links."
],
"type": "string"
},
Expand Down Expand Up @@ -1411,21 +1413,6 @@
},
"type": "object"
},
"GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig": {
"description": "SoleTenancyConfig specifies information required to host a pool on STNs.",
"id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig",
"properties": {
"nodeType": {
"description": "The sole-tenant node type to host the pool's workers on.",
"type": "string"
},
"nodesZone": {
"description": "Zone in which STNs are reserved.",
"type": "string"
}
},
"type": "object"
},
"GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest": {
"description": "The request used for `UpdateInstance`.",
"id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest",
Expand Down Expand Up @@ -1511,9 +1498,9 @@
"description": "Determines whether the worker is reserved (equivalent to a Compute Engine on-demand VM and therefore won't be preempted). See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for more details.",
"type": "boolean"
},
"soleTenancy": {
"$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig",
"description": "Sole-tenant node information for pools hosted on STNs."
"soleTenantNodeType": {
"description": "The node type name to be used for sole-tenant nodes.",
"type": "string"
},
"vmImage": {
"description": "The name of the image used by each VM.",
Expand Down
29 changes: 8 additions & 21 deletions discovery/remotebuildexecution-v1alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@
}
}
},
"revision": "20201006",
"revision": "20201201",
"rootUrl": "https://admin-remotebuildexecution.googleapis.com/",
"schemas": {
"BuildBazelRemoteExecutionV2Action": {
Expand Down Expand Up @@ -1156,7 +1156,8 @@
"DOCKER_CREATE_RUNTIME_FILE_NOT_FOUND",
"DOCKER_CREATE_RUNTIME_PERMISSION_DENIED",
"DOCKER_CREATE_PROCESS_FILE_NOT_FOUND",
"DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR"
"DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR",
"DOCKER_TOO_MANY_SYMBOLIC_LINK_LEVELS"
],
"enumDescriptions": [
"The command succeeded.",
Expand Down Expand Up @@ -1196,7 +1197,8 @@
"Docker failed to create OCI runtime because of file not found.",
"Docker failed to create OCI runtime because of permission denied.",
"Docker failed to create process because of file not found.",
"Docker failed to run containers with CreateComputeSystem error that involves an incorrect parameter (more specific version of DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that is user-caused)."
"Docker failed to run containers with CreateComputeSystem error that involves an incorrect parameter (more specific version of DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that is user-caused).",
"Docker failed to create an overlay mount because of too many levels of symbolic links."
],
"type": "string"
},
Expand Down Expand Up @@ -1525,21 +1527,6 @@
},
"type": "object"
},
"GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig": {
"description": "SoleTenancyConfig specifies information required to host a pool on STNs.",
"id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig",
"properties": {
"nodeType": {
"description": "The sole-tenant node type to host the pool's workers on.",
"type": "string"
},
"nodesZone": {
"description": "Zone in which STNs are reserved.",
"type": "string"
}
},
"type": "object"
},
"GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest": {
"description": "The request used for `UpdateInstance`.",
"id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest",
Expand Down Expand Up @@ -1625,9 +1612,9 @@
"description": "Determines whether the worker is reserved (equivalent to a Compute Engine on-demand VM and therefore won't be preempted). See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for more details.",
"type": "boolean"
},
"soleTenancy": {
"$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig",
"description": "Sole-tenant node information for pools hosted on STNs."
"soleTenantNodeType": {
"description": "The node type name to be used for sole-tenant nodes.",
"type": "string"
},
"vmImage": {
"description": "The name of the image used by each VM.",
Expand Down
29 changes: 8 additions & 21 deletions discovery/remotebuildexecution-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@
}
}
},
"revision": "20201006",
"revision": "20201201",
"rootUrl": "https://remotebuildexecution.googleapis.com/",
"schemas": {
"BuildBazelRemoteExecutionV2Action": {
Expand Down Expand Up @@ -1571,7 +1571,8 @@
"DOCKER_CREATE_RUNTIME_FILE_NOT_FOUND",
"DOCKER_CREATE_RUNTIME_PERMISSION_DENIED",
"DOCKER_CREATE_PROCESS_FILE_NOT_FOUND",
"DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR"
"DOCKER_CREATE_COMPUTE_SYSTEM_INCORRECT_PARAMETER_ERROR",
"DOCKER_TOO_MANY_SYMBOLIC_LINK_LEVELS"
],
"enumDescriptions": [
"The command succeeded.",
Expand Down Expand Up @@ -1611,7 +1612,8 @@
"Docker failed to create OCI runtime because of file not found.",
"Docker failed to create OCI runtime because of permission denied.",
"Docker failed to create process because of file not found.",
"Docker failed to run containers with CreateComputeSystem error that involves an incorrect parameter (more specific version of DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that is user-caused)."
"Docker failed to run containers with CreateComputeSystem error that involves an incorrect parameter (more specific version of DOCKER_CREATE_COMPUTE_SYSTEM_ERROR that is user-caused).",
"Docker failed to create an overlay mount because of too many levels of symbolic links."
],
"type": "string"
},
Expand Down Expand Up @@ -1940,21 +1942,6 @@
},
"type": "object"
},
"GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig": {
"description": "SoleTenancyConfig specifies information required to host a pool on STNs.",
"id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig",
"properties": {
"nodeType": {
"description": "The sole-tenant node type to host the pool's workers on.",
"type": "string"
},
"nodesZone": {
"description": "Zone in which STNs are reserved.",
"type": "string"
}
},
"type": "object"
},
"GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest": {
"description": "The request used for `UpdateInstance`.",
"id": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest",
Expand Down Expand Up @@ -2040,9 +2027,9 @@
"description": "Determines whether the worker is reserved (equivalent to a Compute Engine on-demand VM and therefore won't be preempted). See [Preemptible VMs](https://cloud.google.com/preemptible-vms/) for more details.",
"type": "boolean"
},
"soleTenancy": {
"$ref": "GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig",
"description": "Sole-tenant node information for pools hosted on STNs."
"soleTenantNodeType": {
"description": "The node type name to be used for sole-tenant nodes.",
"type": "string"
},
"vmImage": {
"description": "The name of the image used by each VM.",
Expand Down
17 changes: 2 additions & 15 deletions src/apis/remotebuildexecution/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -886,19 +886,6 @@ export namespace remotebuildexecution_v1 {
*/
workerPools?: Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool[];
}
/**
* SoleTenancyConfig specifies information required to host a pool on STNs.
*/
export interface Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig {
/**
* Zone in which STNs are reserved.
*/
nodesZone?: string | null;
/**
* The sole-tenant node type to host the pool's workers on.
*/
nodeType?: string | null;
}
/**
* The request used for `UpdateInstance`.
*/
Expand Down Expand Up @@ -974,9 +961,9 @@ export namespace remotebuildexecution_v1 {
*/
reserved?: boolean | null;
/**
* Sole-tenant node information for pools hosted on STNs.
* The node type name to be used for sole-tenant nodes.
*/
soleTenancy?: Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig;
soleTenantNodeType?: string | null;
/**
* The name of the image used by each VM.
*/
Expand Down
17 changes: 2 additions & 15 deletions src/apis/remotebuildexecution/v1alpha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,19 +873,6 @@ export namespace remotebuildexecution_v1alpha {
*/
workerPools?: Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool[];
}
/**
* SoleTenancyConfig specifies information required to host a pool on STNs.
*/
export interface Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig {
/**
* Zone in which STNs are reserved.
*/
nodesZone?: string | null;
/**
* The sole-tenant node type to host the pool's workers on.
*/
nodeType?: string | null;
}
/**
* The request used for `UpdateInstance`.
*/
Expand Down Expand Up @@ -961,9 +948,9 @@ export namespace remotebuildexecution_v1alpha {
*/
reserved?: boolean | null;
/**
* Sole-tenant node information for pools hosted on STNs.
* The node type name to be used for sole-tenant nodes.
*/
soleTenancy?: Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig;
soleTenantNodeType?: string | null;
/**
* The name of the image used by each VM.
*/
Expand Down
17 changes: 2 additions & 15 deletions src/apis/remotebuildexecution/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1145,19 +1145,6 @@ export namespace remotebuildexecution_v2 {
*/
workerPools?: Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool[];
}
/**
* SoleTenancyConfig specifies information required to host a pool on STNs.
*/
export interface Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig {
/**
* Zone in which STNs are reserved.
*/
nodesZone?: string | null;
/**
* The sole-tenant node type to host the pool's workers on.
*/
nodeType?: string | null;
}
/**
* The request used for `UpdateInstance`.
*/
Expand Down Expand Up @@ -1233,9 +1220,9 @@ export namespace remotebuildexecution_v2 {
*/
reserved?: boolean | null;
/**
* Sole-tenant node information for pools hosted on STNs.
* The node type name to be used for sole-tenant nodes.
*/
soleTenancy?: Schema$GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig;
soleTenantNodeType?: string | null;
/**
* The name of the image used by each VM.
*/
Expand Down

0 comments on commit e97a056

Please # to comment.