Skip to content

Commit

Permalink
feat(lifesciences): update the API
Browse files Browse the repository at this point in the history
#### lifesciences:v2beta
The following keys were added:
- schemas.ExistingDisk.description
- schemas.ExistingDisk.id
- schemas.ExistingDisk.properties.disk.description
- schemas.ExistingDisk.properties.disk.type
- schemas.ExistingDisk.type
- schemas.PersistentDisk.description
- schemas.PersistentDisk.id
- schemas.PersistentDisk.properties.sizeGb.description
- schemas.PersistentDisk.properties.sizeGb.format
- schemas.PersistentDisk.properties.sizeGb.type
- schemas.PersistentDisk.properties.sourceImage.description
- schemas.PersistentDisk.properties.sourceImage.type
- schemas.PersistentDisk.properties.type.description
- schemas.PersistentDisk.properties.type.type
- schemas.PersistentDisk.type
- schemas.VirtualMachine.properties.volumes.description
- schemas.VirtualMachine.properties.volumes.items.$ref
- schemas.VirtualMachine.properties.volumes.type
- schemas.Volume.description
- schemas.Volume.id
- schemas.Volume.properties.existingDisk.$ref
- schemas.Volume.properties.existingDisk.description
- schemas.Volume.properties.persistentDisk.$ref
- schemas.Volume.properties.persistentDisk.description
- schemas.Volume.properties.volume.description
- schemas.Volume.properties.volume.type
- schemas.Volume.type
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 20, 2020
1 parent b69694e commit 9917f7d
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 1 deletion.
59 changes: 58 additions & 1 deletion discovery/lifesciences-v2beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
}
}
},
"revision": "20200814",
"revision": "20201001",
"rootUrl": "https://lifesciences.googleapis.com/",
"schemas": {
"Accelerator": {
Expand Down Expand Up @@ -594,6 +594,17 @@
},
"type": "object"
},
"ExistingDisk": {
"description": "Configuration for an existing disk to be attached to the VM.",
"id": "ExistingDisk",
"properties": {
"disk": {
"description": "If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones//disks/`, where `` is the zone in which the instance is allocated. The disk must be ext4 formatted. If all `Mount` references to this disk have the `read_only` flag set to true, the disk will be attached in `read-only` mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.",
"type": "string"
}
},
"type": "object"
},
"FailedEvent": {
"description": "An event generated when the execution of a pipeline has failed. Note that other events can continue to occur after this event.",
"id": "FailedEvent",
Expand Down Expand Up @@ -830,6 +841,26 @@
},
"type": "object"
},
"PersistentDisk": {
"description": "Configuration for a persistent disk to be attached to the VM. See https://cloud.google.com/compute/docs/disks/performance for more information about disk type, size, and performance considerations.",
"id": "PersistentDisk",
"properties": {
"sizeGb": {
"description": "The size, in GB, of the disk to attach. If the size is not specified, a default is chosen to ensure reasonable I/O performance. If the disk type is specified as `local-ssd`, multiple local drives are automatically combined to provide the requested size. Note, however, that each physical SSD is 375GB in size, and no more than 8 drives can be attached to a single instance.",
"format": "int32",
"type": "integer"
},
"sourceImage": {
"description": "An image to put on the disk before attaching it to the VM.",
"type": "string"
},
"type": {
"description": "The Compute Engine disk type. If unspecified, `pd-standard` is used.",
"type": "string"
}
},
"type": "object"
},
"Pipeline": {
"description": "Specifies a series of actions to execute, expressed as Docker containers.",
"id": "Pipeline",
Expand Down Expand Up @@ -1076,6 +1107,32 @@
"serviceAccount": {
"$ref": "ServiceAccount",
"description": "The service account to install on the VM. This account does not need any permissions other than those required by the pipeline."
},
"volumes": {
"description": "The list of disks and other storage to create or attach to the VM.",
"items": {
"$ref": "Volume"
},
"type": "array"
}
},
"type": "object"
},
"Volume": {
"description": "Carries information about storage that can be attached to a VM.",
"id": "Volume",
"properties": {
"existingDisk": {
"$ref": "ExistingDisk",
"description": "Configuration for a existing disk."
},
"persistentDisk": {
"$ref": "PersistentDisk",
"description": "Configuration for a persistent disk."
},
"volume": {
"description": "A user-supplied name for the volume. Used when mounting the volume into `Actions`. The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.",
"type": "string"
}
},
"type": "object"
Expand Down
47 changes: 47 additions & 0 deletions src/apis/lifesciences/v2beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,15 @@ export namespace lifesciences_v2beta {
*/
workerReleased?: Schema$WorkerReleasedEvent;
}
/**
* Configuration for an existing disk to be attached to the VM.
*/
export interface Schema$ExistingDisk {
/**
* If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones//disks/`, where `` is the zone in which the instance is allocated. The disk must be ext4 formatted. If all `Mount` references to this disk have the `read_only` flag set to true, the disk will be attached in `read-only` mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.
*/
disk?: string | null;
}
/**
* An event generated when the execution of a pipeline has failed. Note that other events can continue to occur after this event.
*/
Expand Down Expand Up @@ -507,6 +516,23 @@ export namespace lifesciences_v2beta {
*/
response?: {[key: string]: any} | null;
}
/**
* Configuration for a persistent disk to be attached to the VM. See https://cloud.google.com/compute/docs/disks/performance for more information about disk type, size, and performance considerations.
*/
export interface Schema$PersistentDisk {
/**
* The size, in GB, of the disk to attach. If the size is not specified, a default is chosen to ensure reasonable I/O performance. If the disk type is specified as `local-ssd`, multiple local drives are automatically combined to provide the requested size. Note, however, that each physical SSD is 375GB in size, and no more than 8 drives can be attached to a single instance.
*/
sizeGb?: number | null;
/**
* An image to put on the disk before attaching it to the VM.
*/
sourceImage?: string | null;
/**
* The Compute Engine disk type. If unspecified, `pd-standard` is used.
*/
type?: string | null;
}
/**
* Specifies a series of actions to execute, expressed as Docker containers.
*/
Expand Down Expand Up @@ -692,6 +718,27 @@ export namespace lifesciences_v2beta {
* The service account to install on the VM. This account does not need any permissions other than those required by the pipeline.
*/
serviceAccount?: Schema$ServiceAccount;
/**
* The list of disks and other storage to create or attach to the VM.
*/
volumes?: Schema$Volume[];
}
/**
* Carries information about storage that can be attached to a VM.
*/
export interface Schema$Volume {
/**
* Configuration for a existing disk.
*/
existingDisk?: Schema$ExistingDisk;
/**
* Configuration for a persistent disk.
*/
persistentDisk?: Schema$PersistentDisk;
/**
* A user-supplied name for the volume. Used when mounting the volume into `Actions`. The name must contain only upper and lowercase alphanumeric characters and hyphens and cannot start with a hyphen.
*/
volume?: string | null;
}
/**
* An event generated after a worker VM has been assigned to run the pipeline.
Expand Down

0 comments on commit 9917f7d

Please sign in to comment.