lib/google/apis/bigqueryreservation_v1beta1/service.rb in google-apis-bigqueryreservation_v1beta1-0.4.0 vs lib/google/apis/bigqueryreservation_v1beta1/service.rb in google-apis-bigqueryreservation_v1beta1-0.5.0

- old
+ new

@@ -175,10 +175,15 @@ # Creates a new capacity commitment resource. # @param [String] parent # Required. Resource name of the parent reservation. E.g., `projects/myproject/ # locations/US` # @param [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] capacity_commitment_object + # @param [String] capacity_commitment_id + # The optional capacity commitment ID. Capacity commitment name will be + # generated automatically if this field is empty. This field must only contain + # lower case alphanumeric characters or dash. Max length is 64 characters. NOTE: + # this ID won't be kept if the capacity commitment is split or merged. # @param [Boolean] enforce_single_admin_project_per_org # If true, fail the request if another project in the organization has a # capacity commitment. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -195,17 +200,18 @@ # @return [Google::Apis::BigqueryreservationV1beta1::CapacityCommitment] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_capacity_commitment(parent, capacity_commitment_object = nil, enforce_single_admin_project_per_org: nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_location_capacity_commitment(parent, capacity_commitment_object = nil, capacity_commitment_id: nil, enforce_single_admin_project_per_org: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/capacityCommitments', options) command.request_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation command.request_object = capacity_commitment_object command.response_representation = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment::Representation command.response_class = Google::Apis::BigqueryreservationV1beta1::CapacityCommitment command.params['parent'] = parent unless parent.nil? + command.query['capacityCommitmentId'] = capacity_commitment_id unless capacity_commitment_id.nil? command.query['enforceSingleAdminProjectPerOrg'] = enforce_single_admin_project_per_org unless enforce_single_admin_project_per_org.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end @@ -629,10 +635,14 @@ # does not match location of the reservation. # @param [String] parent # Required. The parent resource name of the assignment E.g. `projects/myproject/ # locations/US/reservations/team1-prod` # @param [Google::Apis::BigqueryreservationV1beta1::Assignment] assignment_object + # @param [String] assignment_id + # The optional assignment ID. Assignment name will be generated automatically if + # this field is empty. This field must only contain lower case alphanumeric + # characters or dash. Max length is 64 characters. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -646,16 +656,17 @@ # @return [Google::Apis::BigqueryreservationV1beta1::Assignment] # # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def create_project_location_reservation_assignment(parent, assignment_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def create_project_location_reservation_assignment(parent, assignment_object = nil, assignment_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1beta1/{+parent}/assignments', options) command.request_representation = Google::Apis::BigqueryreservationV1beta1::Assignment::Representation command.request_object = assignment_object command.response_representation = Google::Apis::BigqueryreservationV1beta1::Assignment::Representation command.response_class = Google::Apis::BigqueryreservationV1beta1::Assignment command.params['parent'] = parent unless parent.nil? + command.query['assignmentId'] = assignment_id unless assignment_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end