Skip to content

Commit

Permalink
docs: state one Resource Allowance per region per project limitation …
Browse files Browse the repository at this point in the history
…on v1alpha

docs: A comment for field `max_run_duration` in message `.google.cloud.batch.v1alpha.TaskSpec` and `.google.cloud.batch.v1.TaskSpec` is changed
docs: add non-negative restriction comment for usage_resource_allowance.spec.limit.limit exposed on v1alpha

PiperOrigin-RevId: 621609903
  • Loading branch information
Google APIs authored and Copybara-Service committed Apr 3, 2024
1 parent 3b81ceb commit e48fc79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google/cloud/batch/v1/batch_v1.yaml
Expand Up @@ -12,7 +12,7 @@ types:
- name: google.cloud.batch.v1.OperationMetadata

documentation:
summary: An API to manage the running of batch resources on Google Cloud Platform.
summary: An API to manage the running of Batch resources on Google Cloud Platform.
overview: '(include == google/cloud/batch/doc/overview.md ==)'
rules:
- selector: google.cloud.location.Locations.GetLocation
Expand Down
3 changes: 2 additions & 1 deletion google/cloud/batch/v1/batch_v1_grpc_service_config.json
Expand Up @@ -25,7 +25,8 @@
{ "service": "google.cloud.batch.v1.BatchService", "method": "UpdateJob"},
{ "service": "google.cloud.batch.v1.BatchService", "method": "CreateResourceAllowance" },
{ "service": "google.cloud.batch.v1.BatchService", "method": "DeleteResourceAllowance" },
{ "service": "google.cloud.batch.v1.BatchService", "method": "UpdateResourceAllowance"}
{ "service": "google.cloud.batch.v1.BatchService", "method": "UpdateResourceAllowance"},
{ "service": "google.cloud.batch.v1.BatchService", "method": "CancelTasks"}
],
"timeout": "60s"
}]
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/batch/v1/task.proto
Expand Up @@ -333,6 +333,8 @@ message TaskSpec {

// Maximum duration the task should run.
// The task will be killed and marked as FAILED if over this limit.
// The valid value range for max_run_duration in seconds is [0,
// 315576000000.999999999],
google.protobuf.Duration max_run_duration = 4;

// Maximum number of retries on failures.
Expand Down

0 comments on commit e48fc79

Please sign in to comment.