Class: Google::Apis::BigqueryreservationV1beta1::Assignment
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryreservationV1beta1::Assignment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/bigqueryreservation_v1beta1/classes.rb,
generated/google/apis/bigqueryreservation_v1beta1/representations.rb,
generated/google/apis/bigqueryreservation_v1beta1/representations.rb
Overview
A Assignment allows a project to submit jobs of a certain type using slots from the specified reservation.
Instance Attribute Summary collapse
-
#assignee ⇒ String
The resource which will use the reservation.
-
#job_type ⇒ String
Which type of jobs will use the reservation.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Assignment
constructor
A new instance of Assignment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Assignment
Returns a new instance of Assignment.
52 53 54 |
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 52 def initialize(**args) update!(**args) end |
Instance Attribute Details
#assignee ⇒ String
The resource which will use the reservation. E.g. projects/myproject
,
folders/123
, or organizations/456
.
Corresponds to the JSON property assignee
34 35 36 |
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 34 def assignee @assignee end |
#job_type ⇒ String
Which type of jobs will use the reservation.
Corresponds to the JSON property jobType
39 40 41 |
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 39 def job_type @job_type end |
#name ⇒ String
Output only. Name of the resource. E.g.: projects/myproject/locations/US/
reservations/team1-prod/assignments/123
.
Corresponds to the JSON property name
45 46 47 |
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 45 def name @name end |
#state ⇒ String
Output only. State of the assignment.
Corresponds to the JSON property state
50 51 52 |
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 50 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
57 58 59 60 61 62 |
# File 'generated/google/apis/bigqueryreservation_v1beta1/classes.rb', line 57 def update!(**args) @assignee = args[:assignee] if args.key?(:assignee) @job_type = args[:job_type] if args.key?(:job_type) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) end |