Class: Google::Apis::BigqueryreservationV1::Assignment
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryreservationV1::Assignment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigqueryreservation_v1/classes.rb,
lib/google/apis/bigqueryreservation_v1/representations.rb,
lib/google/apis/bigqueryreservation_v1/representations.rb
Overview
An 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.
-
#enable_gemini_in_bigquery ⇒ Boolean
(also: #enable_gemini_in_bigquery?)
Optional.
-
#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.
66 67 68 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 66 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 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 34 def assignee @assignee end |
#enable_gemini_in_bigquery ⇒ Boolean Also known as: enable_gemini_in_bigquery?
Optional. This field controls if "Gemini in BigQuery" (https://cloud.google.
com/gemini/docs/bigquery/overview) features should be enabled for this
reservation assignment, which is not on by default. "Gemini in BigQuery" has a
distinct compliance posture from BigQuery. If this field is set to true, the
assignment job type is QUERY, and the parent reservation edition is
ENTERPRISE_PLUS, then the assignment will give the grantee project/
organization access to "Gemini in BigQuery" features.
Corresponds to the JSON property enableGeminiInBigquery
45 46 47 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 45 def enable_gemini_in_bigquery @enable_gemini_in_bigquery end |
#job_type ⇒ String
Which type of jobs will use the reservation.
Corresponds to the JSON property jobType
51 52 53 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 51 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
. The assignment_id must only contain
lower case alphanumeric characters or dashes and the max length is 64
characters.
Corresponds to the JSON property name
59 60 61 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 59 def name @name end |
#state ⇒ String
Output only. State of the assignment.
Corresponds to the JSON property state
64 65 66 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 64 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
71 72 73 74 75 76 77 |
# File 'lib/google/apis/bigqueryreservation_v1/classes.rb', line 71 def update!(**args) @assignee = args[:assignee] if args.key?(:assignee) @enable_gemini_in_bigquery = args[:enable_gemini_in_bigquery] if args.key?(:enable_gemini_in_bigquery) @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 |