Class: Google::Cloud::Bigquery::Reservation::V1::Assignment
- Inherits:
-
Object
- Object
- Google::Cloud::Bigquery::Reservation::V1::Assignment
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb
Overview
An assignment allows a project to submit jobs of a certain type using slots from the specified reservation.
Defined Under Namespace
Instance Attribute Summary collapse
-
#assignee ⇒ ::String
The resource which will use the reservation.
-
#job_type ⇒ ::Google::Cloud::Bigquery::Reservation::V1::Assignment::JobType
Which type of jobs will use the reservation.
-
#name ⇒ ::String
readonly
Output only.
-
#state ⇒ ::Google::Cloud::Bigquery::Reservation::V1::Assignment::State
readonly
Output only.
Instance Attribute Details
#assignee ⇒ ::String
Returns The resource which will use the reservation. E.g.
projects/myproject
, folders/123
, or organizations/456
.
528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 |
# File 'proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb', line 528 class Assignment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of job, which could be specified when using the reservation. module JobType # Invalid type. Requests with this value will be rejected with # error code `google.rpc.Code.INVALID_ARGUMENT`. JOB_TYPE_UNSPECIFIED = 0 # Pipeline (load/export) jobs from the project will use the reservation. PIPELINE = 1 # Query jobs from the project will use the reservation. QUERY = 2 # BigQuery ML jobs that use services external to BigQuery for model # training. These jobs will not utilize idle slots from other reservations. ML_EXTERNAL = 3 # Background jobs that BigQuery runs for the customers in the background. BACKGROUND = 4 end # Assignment will remain in PENDING state if no active capacity commitment is # present. It will become ACTIVE when some capacity commitment becomes # active. module State # Invalid state value. STATE_UNSPECIFIED = 0 # Queries from assignee will be executed as on-demand, if related # assignment is pending. PENDING = 1 # Assignment is ready. ACTIVE = 2 end end |
#job_type ⇒ ::Google::Cloud::Bigquery::Reservation::V1::Assignment::JobType
Returns Which type of jobs will use the reservation.
528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 |
# File 'proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb', line 528 class Assignment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of job, which could be specified when using the reservation. module JobType # Invalid type. Requests with this value will be rejected with # error code `google.rpc.Code.INVALID_ARGUMENT`. JOB_TYPE_UNSPECIFIED = 0 # Pipeline (load/export) jobs from the project will use the reservation. PIPELINE = 1 # Query jobs from the project will use the reservation. QUERY = 2 # BigQuery ML jobs that use services external to BigQuery for model # training. These jobs will not utilize idle slots from other reservations. ML_EXTERNAL = 3 # Background jobs that BigQuery runs for the customers in the background. BACKGROUND = 4 end # Assignment will remain in PENDING state if no active capacity commitment is # present. It will become ACTIVE when some capacity commitment becomes # active. module State # Invalid state value. STATE_UNSPECIFIED = 0 # Queries from assignee will be executed as on-demand, if related # assignment is pending. PENDING = 1 # Assignment is ready. ACTIVE = 2 end end |
#name ⇒ ::String (readonly)
Returns Output only. Name of the resource. E.g.:
projects/myproject/locations/US/reservations/team1-prod/assignments/123
.
The assignment_id must only contain lower case alphanumeric characters or
dashes and the max length is 64 characters.
528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 |
# File 'proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb', line 528 class Assignment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of job, which could be specified when using the reservation. module JobType # Invalid type. Requests with this value will be rejected with # error code `google.rpc.Code.INVALID_ARGUMENT`. JOB_TYPE_UNSPECIFIED = 0 # Pipeline (load/export) jobs from the project will use the reservation. PIPELINE = 1 # Query jobs from the project will use the reservation. QUERY = 2 # BigQuery ML jobs that use services external to BigQuery for model # training. These jobs will not utilize idle slots from other reservations. ML_EXTERNAL = 3 # Background jobs that BigQuery runs for the customers in the background. BACKGROUND = 4 end # Assignment will remain in PENDING state if no active capacity commitment is # present. It will become ACTIVE when some capacity commitment becomes # active. module State # Invalid state value. STATE_UNSPECIFIED = 0 # Queries from assignee will be executed as on-demand, if related # assignment is pending. PENDING = 1 # Assignment is ready. ACTIVE = 2 end end |
#state ⇒ ::Google::Cloud::Bigquery::Reservation::V1::Assignment::State (readonly)
Returns Output only. State of the assignment.
528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 |
# File 'proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb', line 528 class Assignment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of job, which could be specified when using the reservation. module JobType # Invalid type. Requests with this value will be rejected with # error code `google.rpc.Code.INVALID_ARGUMENT`. JOB_TYPE_UNSPECIFIED = 0 # Pipeline (load/export) jobs from the project will use the reservation. PIPELINE = 1 # Query jobs from the project will use the reservation. QUERY = 2 # BigQuery ML jobs that use services external to BigQuery for model # training. These jobs will not utilize idle slots from other reservations. ML_EXTERNAL = 3 # Background jobs that BigQuery runs for the customers in the background. BACKGROUND = 4 end # Assignment will remain in PENDING state if no active capacity commitment is # present. It will become ACTIVE when some capacity commitment becomes # active. module State # Invalid state value. STATE_UNSPECIFIED = 0 # Queries from assignee will be executed as on-demand, if related # assignment is pending. PENDING = 1 # Assignment is ready. ACTIVE = 2 end end |