diff --git a/packages/google-cloud-batch/google/cloud/batch/gapic_version.py b/packages/google-cloud-batch/google/cloud/batch/gapic_version.py index b6bd82a78613..558c8aab67c5 100644 --- a/packages/google-cloud-batch/google/cloud/batch/gapic_version.py +++ b/packages/google-cloud-batch/google/cloud/batch/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.17.31" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-batch/google/cloud/batch_v1/gapic_version.py b/packages/google-cloud-batch/google/cloud/batch_v1/gapic_version.py index b6bd82a78613..558c8aab67c5 100644 --- a/packages/google-cloud-batch/google/cloud/batch_v1/gapic_version.py +++ b/packages/google-cloud-batch/google/cloud/batch_v1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.17.31" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-batch/google/cloud/batch_v1/types/job.py b/packages/google-cloud-batch/google/cloud/batch_v1/types/job.py index a5aca6e5d1bc..0fd45dd52761 100644 --- a/packages/google-cloud-batch/google/cloud/batch_v1/types/job.py +++ b/packages/google-cloud-batch/google/cloud/batch_v1/types/job.py @@ -60,13 +60,18 @@ class Job(proto.Message): Compute resource allocation for all TaskGroups in the Job. labels (MutableMapping[str, str]): - 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 `__ - apply. Label names that start with "goog-" or "google-" are - reserved. + Custom labels to apply to the job and any Cloud Logging + `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 `__. status (google.cloud.batch_v1.types.JobStatus): Output only. Job status. It is read only for users. @@ -446,13 +451,18 @@ class AllocationPolicy(proto.Message): account, beyond the default cloud-platform scope. (list of strings) labels (MutableMapping[str, str]): - 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 `__ - 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 `__. network (google.cloud.batch_v1.types.AllocationPolicy.NetworkPolicy): The network policy. @@ -729,10 +739,10 @@ class InstancePolicy(proto.Message): file system or a raw storage drive that is not ready for data storage and accessing. reservation (str): - 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. """ machine_type: str = proto.Field( diff --git a/packages/google-cloud-batch/google/cloud/batch_v1alpha/gapic_version.py b/packages/google-cloud-batch/google/cloud/batch_v1alpha/gapic_version.py index b6bd82a78613..558c8aab67c5 100644 --- a/packages/google-cloud-batch/google/cloud/batch_v1alpha/gapic_version.py +++ b/packages/google-cloud-batch/google/cloud/batch_v1alpha/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "0.17.31" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-batch/google/cloud/batch_v1alpha/types/job.py b/packages/google-cloud-batch/google/cloud/batch_v1alpha/types/job.py index 744d6bdb9a8b..f8952a864233 100644 --- a/packages/google-cloud-batch/google/cloud/batch_v1alpha/types/job.py +++ b/packages/google-cloud-batch/google/cloud/batch_v1alpha/types/job.py @@ -69,13 +69,18 @@ class Job(proto.Message): Compute resource allocation for all TaskGroups in the Job. labels (MutableMapping[str, str]): - 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 `__ - apply. Label names that start with "goog-" or "google-" are - reserved. + Custom labels to apply to the job and any Cloud Logging + `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 `__. status (google.cloud.batch_v1alpha.types.JobStatus): Output only. Job status. It is read only for users. @@ -568,13 +573,18 @@ class AllocationPolicy(proto.Message): account, beyond the default cloud-platform scope. (list of strings) labels (MutableMapping[str, str]): - 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 `__ - 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 `__. network (google.cloud.batch_v1alpha.types.AllocationPolicy.NetworkPolicy): The network policy. @@ -861,10 +871,10 @@ class InstancePolicy(proto.Message): file system or a raw storage drive that is not ready for data storage and accessing. reservation (str): - 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. """ allowed_machine_types: MutableSequence[str] = proto.RepeatedField( @@ -928,7 +938,11 @@ class InstancePolicyOrTemplate(proto.Message): instance_template (str): Name of an instance template used to create VMs. Named the field as 'instance_template' instead of 'template' to avoid - c++ keyword conflict. + C++ keyword conflict. + + Batch only supports global instance templates. You can + specify the global instance template as a full or partial + URL. This field is a member of `oneof`_ ``policy_template``. install_gpu_drivers (bool): diff --git a/packages/google-cloud-batch/samples/generated_samples/snippet_metadata_google.cloud.batch.v1.json b/packages/google-cloud-batch/samples/generated_samples/snippet_metadata_google.cloud.batch.v1.json index ee4fbd362887..e2df1067e4dd 100644 --- a/packages/google-cloud-batch/samples/generated_samples/snippet_metadata_google.cloud.batch.v1.json +++ b/packages/google-cloud-batch/samples/generated_samples/snippet_metadata_google.cloud.batch.v1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-batch", - "version": "0.17.31" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-batch/samples/generated_samples/snippet_metadata_google.cloud.batch.v1alpha.json b/packages/google-cloud-batch/samples/generated_samples/snippet_metadata_google.cloud.batch.v1alpha.json index f52304810a06..7f67670b100c 100644 --- a/packages/google-cloud-batch/samples/generated_samples/snippet_metadata_google.cloud.batch.v1alpha.json +++ b/packages/google-cloud-batch/samples/generated_samples/snippet_metadata_google.cloud.batch.v1alpha.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-batch", - "version": "0.17.31" + "version": "0.1.0" }, "snippets": [ {