mirror of
https://github.com/googleapis/googleapis.git
synced 2026-08-16 13:00:34 +02:00
docs: state one Resource Allowance per region per project limitation 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: 620950825
This commit is contained in:
parent
94e9108c42
commit
08f330c00c
4 changed files with 14 additions and 6 deletions
|
|
@ -12,7 +12,7 @@ types:
|
|||
- name: google.cloud.batch.v1alpha.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
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@
|
|||
{ "service": "google.cloud.batch.v1alpha.BatchService", "method": "UpdateJob"},
|
||||
{ "service": "google.cloud.batch.v1alpha.BatchService", "method": "CreateResourceAllowance" },
|
||||
{ "service": "google.cloud.batch.v1alpha.BatchService", "method": "DeleteResourceAllowance" },
|
||||
{ "service": "google.cloud.batch.v1alpha.BatchService", "method": "UpdateResourceAllowance"}
|
||||
{ "service": "google.cloud.batch.v1alpha.BatchService", "method": "UpdateResourceAllowance"},
|
||||
{ "service": "google.cloud.batch.v1alpha.BatchService", "method": "CancelTasks"}
|
||||
],
|
||||
"timeout": "60s"
|
||||
}]
|
||||
|
|
|
|||
|
|
@ -70,6 +70,8 @@ enum ResourceAllowanceState {
|
|||
}
|
||||
|
||||
// The Resource Allowance description for Cloud Batch.
|
||||
// Only one Resource Allowance is supported now under a specific location and
|
||||
// project.
|
||||
message ResourceAllowance {
|
||||
option (google.api.resource) = {
|
||||
type: "batch.googleapis.com/ResourceAllowance"
|
||||
|
|
@ -140,10 +142,13 @@ message UsageResourceAllowanceSpec {
|
|||
}
|
||||
|
||||
// Required. Limit value of a UsageResourceAllowance within its one
|
||||
// duration. Default is 0. For example, you can set `limit` as 10000.0 with
|
||||
// duration of the current month by setting `calendar_period` field as
|
||||
// monthly. That means in your current month, 10000.0 is the cour hour
|
||||
// limitation that your resources are allowed to consume.
|
||||
// duration.
|
||||
//
|
||||
// Limit cannot be a negative value. Default is 0.
|
||||
// For example, you can set `limit` as 10000.0 with duration of the current
|
||||
// month by setting `calendar_period` field as monthly. That means in your
|
||||
// current month, 10000.0 is the core hour limitation that your resources
|
||||
// are allowed to consume.
|
||||
optional double limit = 2 [(google.api.field_behavior) = REQUIRED];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -352,6 +352,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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue