Class: Google::Cloud::Bigquery::Reservation::V1::Assignment

Inherits:
Object
  • Object
show all
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

Modules: JobType, State

Instance Attribute Summary collapse

Instance Attribute Details

#assignee::String

Returns The resource which will use the reservation. E.g. projects/myproject, folders/123, or organizations/456.

Returns:

  • (::String)

    The resource which will use the reservation. E.g. projects/myproject, folders/123, or organizations/456.



484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
# File 'proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb', line 484

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.

Returns:



484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
# File 'proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb', line 484

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.

Returns:

  • (::String)

    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.



484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
# File 'proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb', line 484

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.

Returns:



484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
# File 'proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb', line 484

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