Skip to content

Commit

Permalink
fix(batch): update the API
Browse files Browse the repository at this point in the history
#### batch:v1

The following keys were changed:
- schemas.AllocationPolicy.properties.labels.description
- schemas.InstancePolicy.properties.reservation.description
- schemas.InstancePolicyOrTemplate.properties.instanceTemplate.description
- schemas.Job.properties.labels.description
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 10, 2024
1 parent 623bc3c commit 2ebc243
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions discovery/batch-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@
}
}
},
"revision": "20240821",
"revision": "20240925",
"rootUrl": "https://batch.googleapis.com/",
"schemas": {
"Accelerator": {
Expand Down Expand Up @@ -1001,7 +1001,7 @@
"additionalProperties": {
"type": "string"
},
"description": "Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with \"goog-\" or \"google-\" are reserved.",
"description": "Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with \"goog-\" or \"google-\" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).",
"type": "object"
},
"location": {
Expand Down Expand Up @@ -1264,7 +1264,7 @@
"type": "string"
},
"reservation": {
"description": "Optional. If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.",
"description": "Optional. If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation. Additionally, VMs will not consume any reservation if \"NO_RESERVATION\" is specified.",
"type": "string"
}
},
Expand All @@ -1287,7 +1287,7 @@
"type": "boolean"
},
"instanceTemplate": {
"description": "Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict.",
"description": "Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid C++ keyword conflict. Batch only supports global instance templates. You can specify the global instance template as a full or partial URL.",
"type": "string"
},
"policy": {
Expand Down Expand Up @@ -1351,7 +1351,7 @@
"additionalProperties": {
"type": "string"
},
"description": "Labels for the Job. Labels could be user provided or system generated. For example, \"labels\": { \"department\": \"finance\", \"environment\": \"test\" } You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with \"goog-\" or \"google-\" are reserved.",
"description": "Custom labels to apply to the job and any Cloud Logging [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) that it generates. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with \"goog-\" or \"google-\" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).",
"type": "object"
},
"logsPolicy": {
Expand Down
8 changes: 4 additions & 4 deletions src/apis/batch/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export namespace batch_v1 {
*/
instances?: Schema$InstancePolicyOrTemplate[];
/**
* Labels applied to all VM instances and other resources created by AllocationPolicy. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
* Custom labels to apply to the job and all the Compute Engine resources that both are created by this allocation policy and support labels. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
*/
labels?: {[key: string]: string} | null;
/**
Expand Down Expand Up @@ -650,7 +650,7 @@ export namespace batch_v1 {
*/
provisioningModel?: string | null;
/**
* Optional. If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.
* Optional. If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation. Additionally, VMs will not consume any reservation if "NO_RESERVATION" is specified.
*/
reservation?: string | null;
}
Expand All @@ -671,7 +671,7 @@ export namespace batch_v1 {
*/
installOpsAgent?: boolean | null;
/**
* Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid c++ keyword conflict.
* Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid C++ keyword conflict. Batch only supports global instance templates. You can specify the global instance template as a full or partial URL.
*/
instanceTemplate?: string | null;
/**
Expand Down Expand Up @@ -713,7 +713,7 @@ export namespace batch_v1 {
*/
createTime?: string | null;
/**
* Labels for the Job. Labels could be user provided or system generated. For example, "labels": { "department": "finance", "environment": "test" \} You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
* Custom labels to apply to the job and any Cloud Logging [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) that it generates. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
*/
labels?: {[key: string]: string} | null;
/**
Expand Down

0 comments on commit 2ebc243

Please sign in to comment.