Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class Assignment extends \Google\Model
{
/**
* @var string
*/
public $assignee;
/**
* @var bool
*/
public $enableGeminiInBigquery;
/**
* @var string
*/
public $jobType;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setAssignee($assignee)
{
$this->assignee = $assignee;
}
/**
* @return string
*/
public function getAssignee()
{
return $this->assignee;
}
/**
* @param bool
*/
public function setEnableGeminiInBigquery($enableGeminiInBigquery)
{
$this->enableGeminiInBigquery = $enableGeminiInBigquery;
}
/**
* @return bool
*/
public function getEnableGeminiInBigquery()
{
return $this->enableGeminiInBigquery;
}
/**
* @param string
*/
public function setJobType($jobType)
{
$this->jobType = $jobType;
}
/**
* @return string
*/
public function getJobType()
{
return $this->jobType;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Assignment::class, 'Google_Service_BigQueryReservation_Assignment');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class Autoscale extends \Google\Model
{
/**
* @var string
*/
public $currentSlots;
/**
* @var string
*/
public $maxSlots;
/**
* @param string
*/
public function setCurrentSlots($currentSlots)
{
$this->currentSlots = $currentSlots;
}
/**
* @return string
*/
public function getCurrentSlots()
{
return $this->currentSlots;
}
/**
* @param string
*/
public function setMaxSlots($maxSlots)
{
$this->maxSlots = $maxSlots;
}
/**
* @return string
*/
public function getMaxSlots()
{
return $this->maxSlots;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Autoscale::class, 'Google_Service_BigQueryReservation_Autoscale');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class BiReservation extends \Google\Collection
{
protected $collection_key = 'preferredTables';
/**
* @var string
*/
public $name;
protected $preferredTablesType = TableReference::class;
protected $preferredTablesDataType = 'array';
/**
* @var string
*/
public $size;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param TableReference[]
*/
public function setPreferredTables($preferredTables)
{
$this->preferredTables = $preferredTables;
}
/**
* @return TableReference[]
*/
public function getPreferredTables()
{
return $this->preferredTables;
}
/**
* @param string
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @return string
*/
public function getSize()
{
return $this->size;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BiReservation::class, 'Google_Service_BigQueryReservation_BiReservation');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class BigqueryreservationEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigqueryreservationEmpty::class, 'Google_Service_BigQueryReservation_BigqueryreservationEmpty');

View File

@@ -0,0 +1,222 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class CapacityCommitment extends \Google\Model
{
/**
* @var string
*/
public $commitmentEndTime;
/**
* @var string
*/
public $commitmentStartTime;
/**
* @var string
*/
public $edition;
protected $failureStatusType = Status::class;
protected $failureStatusDataType = '';
/**
* @var bool
*/
public $isFlatRate;
/**
* @var bool
*/
public $multiRegionAuxiliary;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $plan;
/**
* @var string
*/
public $renewalPlan;
/**
* @var string
*/
public $slotCount;
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setCommitmentEndTime($commitmentEndTime)
{
$this->commitmentEndTime = $commitmentEndTime;
}
/**
* @return string
*/
public function getCommitmentEndTime()
{
return $this->commitmentEndTime;
}
/**
* @param string
*/
public function setCommitmentStartTime($commitmentStartTime)
{
$this->commitmentStartTime = $commitmentStartTime;
}
/**
* @return string
*/
public function getCommitmentStartTime()
{
return $this->commitmentStartTime;
}
/**
* @param string
*/
public function setEdition($edition)
{
$this->edition = $edition;
}
/**
* @return string
*/
public function getEdition()
{
return $this->edition;
}
/**
* @param Status
*/
public function setFailureStatus(Status $failureStatus)
{
$this->failureStatus = $failureStatus;
}
/**
* @return Status
*/
public function getFailureStatus()
{
return $this->failureStatus;
}
/**
* @param bool
*/
public function setIsFlatRate($isFlatRate)
{
$this->isFlatRate = $isFlatRate;
}
/**
* @return bool
*/
public function getIsFlatRate()
{
return $this->isFlatRate;
}
/**
* @param bool
*/
public function setMultiRegionAuxiliary($multiRegionAuxiliary)
{
$this->multiRegionAuxiliary = $multiRegionAuxiliary;
}
/**
* @return bool
*/
public function getMultiRegionAuxiliary()
{
return $this->multiRegionAuxiliary;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPlan($plan)
{
$this->plan = $plan;
}
/**
* @return string
*/
public function getPlan()
{
return $this->plan;
}
/**
* @param string
*/
public function setRenewalPlan($renewalPlan)
{
$this->renewalPlan = $renewalPlan;
}
/**
* @return string
*/
public function getRenewalPlan()
{
return $this->renewalPlan;
}
/**
* @param string
*/
public function setSlotCount($slotCount)
{
$this->slotCount = $slotCount;
}
/**
* @return string
*/
public function getSlotCount()
{
return $this->slotCount;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CapacityCommitment::class, 'Google_Service_BigQueryReservation_CapacityCommitment');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class FailoverReservationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FailoverReservationRequest::class, 'Google_Service_BigQueryReservation_FailoverReservationRequest');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class ListAssignmentsResponse extends \Google\Collection
{
protected $collection_key = 'assignments';
protected $assignmentsType = Assignment::class;
protected $assignmentsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Assignment[]
*/
public function setAssignments($assignments)
{
$this->assignments = $assignments;
}
/**
* @return Assignment[]
*/
public function getAssignments()
{
return $this->assignments;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAssignmentsResponse::class, 'Google_Service_BigQueryReservation_ListAssignmentsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class ListCapacityCommitmentsResponse extends \Google\Collection
{
protected $collection_key = 'capacityCommitments';
protected $capacityCommitmentsType = CapacityCommitment::class;
protected $capacityCommitmentsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param CapacityCommitment[]
*/
public function setCapacityCommitments($capacityCommitments)
{
$this->capacityCommitments = $capacityCommitments;
}
/**
* @return CapacityCommitment[]
*/
public function getCapacityCommitments()
{
return $this->capacityCommitments;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListCapacityCommitmentsResponse::class, 'Google_Service_BigQueryReservation_ListCapacityCommitmentsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class ListReservationsResponse extends \Google\Collection
{
protected $collection_key = 'reservations';
/**
* @var string
*/
public $nextPageToken;
protected $reservationsType = Reservation::class;
protected $reservationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Reservation[]
*/
public function setReservations($reservations)
{
$this->reservations = $reservations;
}
/**
* @return Reservation[]
*/
public function getReservations()
{
return $this->reservations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListReservationsResponse::class, 'Google_Service_BigQueryReservation_ListReservationsResponse');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class MergeCapacityCommitmentsRequest extends \Google\Collection
{
protected $collection_key = 'capacityCommitmentIds';
/**
* @var string[]
*/
public $capacityCommitmentIds;
/**
* @param string[]
*/
public function setCapacityCommitmentIds($capacityCommitmentIds)
{
$this->capacityCommitmentIds = $capacityCommitmentIds;
}
/**
* @return string[]
*/
public function getCapacityCommitmentIds()
{
return $this->capacityCommitmentIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MergeCapacityCommitmentsRequest::class, 'Google_Service_BigQueryReservation_MergeCapacityCommitmentsRequest');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class MoveAssignmentRequest extends \Google\Model
{
/**
* @var string
*/
public $assignmentId;
/**
* @var string
*/
public $destinationId;
/**
* @param string
*/
public function setAssignmentId($assignmentId)
{
$this->assignmentId = $assignmentId;
}
/**
* @return string
*/
public function getAssignmentId()
{
return $this->assignmentId;
}
/**
* @param string
*/
public function setDestinationId($destinationId)
{
$this->destinationId = $destinationId;
}
/**
* @return string
*/
public function getDestinationId()
{
return $this->destinationId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MoveAssignmentRequest::class, 'Google_Service_BigQueryReservation_MoveAssignmentRequest');

View File

@@ -0,0 +1,258 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class Reservation extends \Google\Model
{
protected $autoscaleType = Autoscale::class;
protected $autoscaleDataType = '';
/**
* @var string
*/
public $concurrency;
/**
* @var string
*/
public $creationTime;
/**
* @var string
*/
public $edition;
/**
* @var bool
*/
public $ignoreIdleSlots;
/**
* @var string[]
*/
public $labels;
/**
* @var bool
*/
public $multiRegionAuxiliary;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $originalPrimaryLocation;
/**
* @var string
*/
public $primaryLocation;
/**
* @var string
*/
public $secondaryLocation;
/**
* @var string
*/
public $slotCapacity;
/**
* @var string
*/
public $updateTime;
/**
* @param Autoscale
*/
public function setAutoscale(Autoscale $autoscale)
{
$this->autoscale = $autoscale;
}
/**
* @return Autoscale
*/
public function getAutoscale()
{
return $this->autoscale;
}
/**
* @param string
*/
public function setConcurrency($concurrency)
{
$this->concurrency = $concurrency;
}
/**
* @return string
*/
public function getConcurrency()
{
return $this->concurrency;
}
/**
* @param string
*/
public function setCreationTime($creationTime)
{
$this->creationTime = $creationTime;
}
/**
* @return string
*/
public function getCreationTime()
{
return $this->creationTime;
}
/**
* @param string
*/
public function setEdition($edition)
{
$this->edition = $edition;
}
/**
* @return string
*/
public function getEdition()
{
return $this->edition;
}
/**
* @param bool
*/
public function setIgnoreIdleSlots($ignoreIdleSlots)
{
$this->ignoreIdleSlots = $ignoreIdleSlots;
}
/**
* @return bool
*/
public function getIgnoreIdleSlots()
{
return $this->ignoreIdleSlots;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param bool
*/
public function setMultiRegionAuxiliary($multiRegionAuxiliary)
{
$this->multiRegionAuxiliary = $multiRegionAuxiliary;
}
/**
* @return bool
*/
public function getMultiRegionAuxiliary()
{
return $this->multiRegionAuxiliary;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOriginalPrimaryLocation($originalPrimaryLocation)
{
$this->originalPrimaryLocation = $originalPrimaryLocation;
}
/**
* @return string
*/
public function getOriginalPrimaryLocation()
{
return $this->originalPrimaryLocation;
}
/**
* @param string
*/
public function setPrimaryLocation($primaryLocation)
{
$this->primaryLocation = $primaryLocation;
}
/**
* @return string
*/
public function getPrimaryLocation()
{
return $this->primaryLocation;
}
/**
* @param string
*/
public function setSecondaryLocation($secondaryLocation)
{
$this->secondaryLocation = $secondaryLocation;
}
/**
* @return string
*/
public function getSecondaryLocation()
{
return $this->secondaryLocation;
}
/**
* @param string
*/
public function setSlotCapacity($slotCapacity)
{
$this->slotCapacity = $slotCapacity;
}
/**
* @return string
*/
public function getSlotCapacity()
{
return $this->slotCapacity;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Reservation::class, 'Google_Service_BigQueryReservation_Reservation');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $bigqueryreservationService = new Google\Service\BigQueryReservation(...);
* $projects = $bigqueryreservationService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_BigQueryReservation_Resource_Projects');

View File

@@ -0,0 +1,142 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation\Resource;
use Google\Service\BigQueryReservation\BiReservation;
use Google\Service\BigQueryReservation\SearchAllAssignmentsResponse;
use Google\Service\BigQueryReservation\SearchAssignmentsResponse;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $bigqueryreservationService = new Google\Service\BigQueryReservation(...);
* $locations = $bigqueryreservationService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Retrieves a BI reservation. (locations.getBiReservation)
*
* @param string $name Required. Name of the requested reservation, for example:
* `projects/{project_id}/locations/{location_id}/biReservation`
* @param array $optParams Optional parameters.
* @return BiReservation
* @throws \Google\Service\Exception
*/
public function getBiReservation($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getBiReservation', [$params], BiReservation::class);
}
/**
* Looks up assignments for a specified resource for a particular region. If the
* request is about a project: 1. Assignments created on the project will be
* returned if they exist. 2. Otherwise assignments created on the closest
* ancestor will be returned. 3. Assignments for different JobTypes will all be
* returned. The same logic applies if the request is about a folder. If the
* request is about an organization, then assignments created on the
* organization will be returned (organization doesn't have ancestors).
* Comparing to ListAssignments, there are some behavior differences: 1.
* permission on the assignee will be verified in this API. 2. Hierarchy lookup
* (project->folder->organization) happens in this API. 3. Parent here is
* `projects/locations`, instead of `projects/locationsreservations`.
* (locations.searchAllAssignments)
*
* @param string $parent Required. The resource name with location (project name
* could be the wildcard '-'), e.g.: `projects/-/locations/US`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of items to return per page.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @opt_param string query Please specify resource name as assignee in the
* query. Examples: * `assignee=projects/myproject` * `assignee=folders/123` *
* `assignee=organizations/456`
* @return SearchAllAssignmentsResponse
* @throws \Google\Service\Exception
*/
public function searchAllAssignments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('searchAllAssignments', [$params], SearchAllAssignmentsResponse::class);
}
/**
* Deprecated: Looks up assignments for a specified resource for a particular
* region. If the request is about a project: 1. Assignments created on the
* project will be returned if they exist. 2. Otherwise assignments created on
* the closest ancestor will be returned. 3. Assignments for different JobTypes
* will all be returned. The same logic applies if the request is about a
* folder. If the request is about an organization, then assignments created on
* the organization will be returned (organization doesn't have ancestors).
* Comparing to ListAssignments, there are some behavior differences: 1.
* permission on the assignee will be verified in this API. 2. Hierarchy lookup
* (project->folder->organization) happens in this API. 3. Parent here is
* `projects/locations`, instead of `projects/locationsreservations`. **Note**
* "-" cannot be used for projects nor locations. (locations.searchAssignments)
*
* @param string $parent Required. The resource name of the admin
* project(containing project and location), e.g.:
* `projects/myproject/locations/US`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of items to return per page.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @opt_param string query Please specify resource name as assignee in the
* query. Examples: * `assignee=projects/myproject` * `assignee=folders/123` *
* `assignee=organizations/456`
* @return SearchAssignmentsResponse
* @throws \Google\Service\Exception
*/
public function searchAssignments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('searchAssignments', [$params], SearchAssignmentsResponse::class);
}
/**
* Updates a BI reservation. Only fields specified in the `field_mask` are
* updated. A singleton BI reservation always exists with default size 0. In
* order to reserve BI capacity it needs to be updated to an amount greater than
* 0. In order to release BI capacity reservation size must be set to 0.
* (locations.updateBiReservation)
*
* @param string $name The resource name of the singleton BI reservation.
* Reservation names have the form
* `projects/{project_id}/locations/{location_id}/biReservation`.
* @param BiReservation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask A list of fields to be updated in this request.
* @return BiReservation
* @throws \Google\Service\Exception
*/
public function updateBiReservation($name, BiReservation $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateBiReservation', [$params], BiReservation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_BigQueryReservation_Resource_ProjectsLocations');

View File

@@ -0,0 +1,188 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation\Resource;
use Google\Service\BigQueryReservation\BigqueryreservationEmpty;
use Google\Service\BigQueryReservation\CapacityCommitment;
use Google\Service\BigQueryReservation\ListCapacityCommitmentsResponse;
use Google\Service\BigQueryReservation\MergeCapacityCommitmentsRequest;
use Google\Service\BigQueryReservation\SplitCapacityCommitmentRequest;
use Google\Service\BigQueryReservation\SplitCapacityCommitmentResponse;
/**
* The "capacityCommitments" collection of methods.
* Typical usage is:
* <code>
* $bigqueryreservationService = new Google\Service\BigQueryReservation(...);
* $capacityCommitments = $bigqueryreservationService->projects_locations_capacityCommitments;
* </code>
*/
class ProjectsLocationsCapacityCommitments extends \Google\Service\Resource
{
/**
* Creates a new capacity commitment resource. (capacityCommitments.create)
*
* @param string $parent Required. Resource name of the parent reservation.
* E.g., `projects/myproject/locations/US`
* @param CapacityCommitment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string capacityCommitmentId 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
* dashes. The first and last character cannot be a dash. Max length is 64
* characters. NOTE: this ID won't be kept if the capacity commitment is split
* or merged.
* @opt_param bool enforceSingleAdminProjectPerOrg If true, fail the request if
* another project in the organization has a capacity commitment.
* @return CapacityCommitment
* @throws \Google\Service\Exception
*/
public function create($parent, CapacityCommitment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], CapacityCommitment::class);
}
/**
* Deletes a capacity commitment. Attempting to delete capacity commitment
* before its commitment_end_time will fail with the error code
* `google.rpc.Code.FAILED_PRECONDITION`. (capacityCommitments.delete)
*
* @param string $name Required. Resource name of the capacity commitment to
* delete. E.g., `projects/myproject/locations/US/capacityCommitments/123`
* @param array $optParams Optional parameters.
*
* @opt_param bool force Can be used to force delete commitments even if
* assignments exist. Deleting commitments with assignments may cause queries to
* fail if they no longer have access to slots.
* @return BigqueryreservationEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigqueryreservationEmpty::class);
}
/**
* Returns information about the capacity commitment. (capacityCommitments.get)
*
* @param string $name Required. Resource name of the capacity commitment to
* retrieve. E.g., `projects/myproject/locations/US/capacityCommitments/123`
* @param array $optParams Optional parameters.
* @return CapacityCommitment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CapacityCommitment::class);
}
/**
* Lists all the capacity commitments for the admin project.
* (capacityCommitments.listProjectsLocationsCapacityCommitments)
*
* @param string $parent Required. Resource name of the parent reservation.
* E.g., `projects/myproject/locations/US`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of items to return.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListCapacityCommitmentsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsCapacityCommitments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListCapacityCommitmentsResponse::class);
}
/**
* Merges capacity commitments of the same plan into a single commitment. The
* resulting capacity commitment has the greater commitment_end_time out of the
* to-be-merged capacity commitments. Attempting to merge capacity commitments
* of different plan will fail with the error code
* `google.rpc.Code.FAILED_PRECONDITION`. (capacityCommitments.merge)
*
* @param string $parent Parent resource that identifies admin project and
* location e.g., `projects/myproject/locations/us`
* @param MergeCapacityCommitmentsRequest $postBody
* @param array $optParams Optional parameters.
* @return CapacityCommitment
* @throws \Google\Service\Exception
*/
public function merge($parent, MergeCapacityCommitmentsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('merge', [$params], CapacityCommitment::class);
}
/**
* Updates an existing capacity commitment. Only `plan` and `renewal_plan`
* fields can be updated. Plan can only be changed to a plan of a longer
* commitment period. Attempting to change to a plan with shorter commitment
* period will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.
* (capacityCommitments.patch)
*
* @param string $name Output only. The resource name of the capacity
* commitment, e.g., `projects/myproject/locations/US/capacityCommitments/123`
* The commitment_id must only contain lower case alphanumeric characters or
* dashes. It must start with a letter and must not end with a dash. Its maximum
* length is 64 characters.
* @param CapacityCommitment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Standard field mask for the set of fields to be
* updated.
* @return CapacityCommitment
* @throws \Google\Service\Exception
*/
public function patch($name, CapacityCommitment $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], CapacityCommitment::class);
}
/**
* Splits capacity commitment to two commitments of the same plan and
* `commitment_end_time`. A common use case is to enable downgrading
* commitments. For example, in order to downgrade from 10000 slots to 8000, you
* might split a 10000 capacity commitment into commitments of 2000 and 8000.
* Then, you delete the first one after the commitment end time passes.
* (capacityCommitments.split)
*
* @param string $name Required. The resource name e.g.,:
* `projects/myproject/locations/US/capacityCommitments/123`
* @param SplitCapacityCommitmentRequest $postBody
* @param array $optParams Optional parameters.
* @return SplitCapacityCommitmentResponse
* @throws \Google\Service\Exception
*/
public function split($name, SplitCapacityCommitmentRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('split', [$params], SplitCapacityCommitmentResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsCapacityCommitments::class, 'Google_Service_BigQueryReservation_Resource_ProjectsLocationsCapacityCommitments');

View File

@@ -0,0 +1,150 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation\Resource;
use Google\Service\BigQueryReservation\BigqueryreservationEmpty;
use Google\Service\BigQueryReservation\FailoverReservationRequest;
use Google\Service\BigQueryReservation\ListReservationsResponse;
use Google\Service\BigQueryReservation\Reservation;
/**
* The "reservations" collection of methods.
* Typical usage is:
* <code>
* $bigqueryreservationService = new Google\Service\BigQueryReservation(...);
* $reservations = $bigqueryreservationService->projects_locations_reservations;
* </code>
*/
class ProjectsLocationsReservations extends \Google\Service\Resource
{
/**
* Creates a new reservation resource. (reservations.create)
*
* @param string $parent Required. Project, location. E.g.,
* `projects/myproject/locations/US`
* @param Reservation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string reservationId The reservation ID. It must only contain
* lower case alphanumeric characters or dashes. It must start with a letter and
* must not end with a dash. Its maximum length is 64 characters.
* @return Reservation
* @throws \Google\Service\Exception
*/
public function create($parent, Reservation $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Reservation::class);
}
/**
* Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when
* reservation has assignments. (reservations.delete)
*
* @param string $name Required. Resource name of the reservation to retrieve.
* E.g., `projects/myproject/locations/US/reservations/team1-prod`
* @param array $optParams Optional parameters.
* @return BigqueryreservationEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigqueryreservationEmpty::class);
}
/**
* Fail over a reservation to the secondary location. The operation should be
* done in the current secondary location, which will be promoted to the new
* primary location for the reservation. Attempting to failover a reservation in
* the current primary location will fail with the error code
* `google.rpc.Code.FAILED_PRECONDITION`. (reservations.failoverReservation)
*
* @param string $name Required. Resource name of the reservation to failover.
* E.g., `projects/myproject/locations/US/reservations/team1-prod`
* @param FailoverReservationRequest $postBody
* @param array $optParams Optional parameters.
* @return Reservation
* @throws \Google\Service\Exception
*/
public function failoverReservation($name, FailoverReservationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('failoverReservation', [$params], Reservation::class);
}
/**
* Returns information about the reservation. (reservations.get)
*
* @param string $name Required. Resource name of the reservation to retrieve.
* E.g., `projects/myproject/locations/US/reservations/team1-prod`
* @param array $optParams Optional parameters.
* @return Reservation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Reservation::class);
}
/**
* Lists all the reservations for the project in the specified location.
* (reservations.listProjectsLocationsReservations)
*
* @param string $parent Required. The parent resource name containing project
* and location, e.g.: `projects/myproject/locations/US`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of items to return per page.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListReservationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsReservations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReservationsResponse::class);
}
/**
* Updates an existing reservation resource. (reservations.patch)
*
* @param string $name The resource name of the reservation, e.g.,
* `projects/locations/reservations/team1-prod`. The reservation_id must only
* contain lower case alphanumeric characters or dashes. It must start with a
* letter and must not end with a dash. Its maximum length is 64 characters.
* @param Reservation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Standard field mask for the set of fields to be
* updated.
* @return Reservation
* @throws \Google\Service\Exception
*/
public function patch($name, Reservation $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Reservation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsReservations::class, 'Google_Service_BigQueryReservation_Resource_ProjectsLocationsReservations');

View File

@@ -0,0 +1,171 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation\Resource;
use Google\Service\BigQueryReservation\Assignment;
use Google\Service\BigQueryReservation\BigqueryreservationEmpty;
use Google\Service\BigQueryReservation\ListAssignmentsResponse;
use Google\Service\BigQueryReservation\MoveAssignmentRequest;
/**
* The "assignments" collection of methods.
* Typical usage is:
* <code>
* $bigqueryreservationService = new Google\Service\BigQueryReservation(...);
* $assignments = $bigqueryreservationService->projects_locations_reservations_assignments;
* </code>
*/
class ProjectsLocationsReservationsAssignments extends \Google\Service\Resource
{
/**
* Creates an assignment object which allows the given project to submit jobs of
* a certain type using slots from the specified reservation. Currently a
* resource (project, folder, organization) can only have one assignment per
* each (job_type, location) combination, and that reservation will be used for
* all jobs of the matching type. Different assignments can be created on
* different levels of the projects, folders or organization hierarchy. During
* query execution, the assignment is looked up at the project, folder and
* organization levels in that order. The first assignment found is applied to
* the query. When creating assignments, it does not matter if other assignments
* exist at higher levels. Example: * The organization `organizationA` contains
* two projects, `project1` and `project2`. * Assignments for all three entities
* (`organizationA`, `project1`, and `project2`) could all be created and mapped
* to the same or different reservations. "None" assignments represent an
* absence of the assignment. Projects assigned to None use on-demand pricing.
* To create a "None" assignment, use "none" as a reservation_id in the parent.
* Example parent: `projects/myproject/locations/US/reservations/none`. Returns
* `google.rpc.Code.PERMISSION_DENIED` if user does not have 'bigquery.admin'
* permissions on the project using the reservation and the project that owns
* this reservation. Returns `google.rpc.Code.INVALID_ARGUMENT` when location of
* the assignment does not match location of the reservation.
* (assignments.create)
*
* @param string $parent Required. The parent resource name of the assignment
* E.g. `projects/myproject/locations/US/reservations/team1-prod`
* @param Assignment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string assignmentId 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 dashes. Max length is 64
* characters.
* @return Assignment
* @throws \Google\Service\Exception
*/
public function create($parent, Assignment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Assignment::class);
}
/**
* Deletes a assignment. No expansion will happen. Example: * Organization
* `organizationA` contains two projects, `project1` and `project2`. *
* Reservation `res1` exists and was created previously. * CreateAssignment was
* used previously to define the following associations between entities and
* reservations: `` and `` In this example, deletion of the `` assignment won't
* affect the other assignment ``. After said deletion, queries from `project1`
* will still use `res1` while queries from `project2` will switch to use on-
* demand mode. (assignments.delete)
*
* @param string $name Required. Name of the resource, e.g.
* `projects/myproject/locations/US/reservations/team1-prod/assignments/123`
* @param array $optParams Optional parameters.
* @return BigqueryreservationEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BigqueryreservationEmpty::class);
}
/**
* Lists assignments. Only explicitly created assignments will be returned.
* Example: * Organization `organizationA` contains two projects, `project1` and
* `project2`. * Reservation `res1` exists and was created previously. *
* CreateAssignment was used previously to define the following associations
* between entities and reservations: `` and `` In this example, ListAssignments
* will just return the above two assignments for reservation `res1`, and no
* expansion/merge will happen. The wildcard "-" can be used for reservations in
* the request. In that case all assignments belongs to the specified project
* and location will be listed. **Note** "-" cannot be used for projects nor
* locations. (assignments.listProjectsLocationsReservationsAssignments)
*
* @param string $parent Required. The parent resource name e.g.:
* `projects/myproject/locations/US/reservations/team1-prod` Or:
* `projects/myproject/locations/US/reservations/-`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of items to return per page.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListAssignmentsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsReservationsAssignments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAssignmentsResponse::class);
}
/**
* Moves an assignment under a new reservation. This differs from removing an
* existing assignment and recreating a new one by providing a transactional
* change that ensures an assignee always has an associated reservation.
* (assignments.move)
*
* @param string $name Required. The resource name of the assignment, e.g.
* `projects/myproject/locations/US/reservations/team1-prod/assignments/123`
* @param MoveAssignmentRequest $postBody
* @param array $optParams Optional parameters.
* @return Assignment
* @throws \Google\Service\Exception
*/
public function move($name, MoveAssignmentRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('move', [$params], Assignment::class);
}
/**
* Updates an existing assignment. Only the `priority` field can be updated.
* (assignments.patch)
*
* @param string $name 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.
* @param Assignment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Standard field mask for the set of fields to be
* updated.
* @return Assignment
* @throws \Google\Service\Exception
*/
public function patch($name, Assignment $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Assignment::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsReservationsAssignments::class, 'Google_Service_BigQueryReservation_Resource_ProjectsLocationsReservationsAssignments');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class SearchAllAssignmentsResponse extends \Google\Collection
{
protected $collection_key = 'assignments';
protected $assignmentsType = Assignment::class;
protected $assignmentsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Assignment[]
*/
public function setAssignments($assignments)
{
$this->assignments = $assignments;
}
/**
* @return Assignment[]
*/
public function getAssignments()
{
return $this->assignments;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchAllAssignmentsResponse::class, 'Google_Service_BigQueryReservation_SearchAllAssignmentsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class SearchAssignmentsResponse extends \Google\Collection
{
protected $collection_key = 'assignments';
protected $assignmentsType = Assignment::class;
protected $assignmentsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Assignment[]
*/
public function setAssignments($assignments)
{
$this->assignments = $assignments;
}
/**
* @return Assignment[]
*/
public function getAssignments()
{
return $this->assignments;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SearchAssignmentsResponse::class, 'Google_Service_BigQueryReservation_SearchAssignmentsResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class SplitCapacityCommitmentRequest extends \Google\Model
{
/**
* @var string
*/
public $slotCount;
/**
* @param string
*/
public function setSlotCount($slotCount)
{
$this->slotCount = $slotCount;
}
/**
* @return string
*/
public function getSlotCount()
{
return $this->slotCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SplitCapacityCommitmentRequest::class, 'Google_Service_BigQueryReservation_SplitCapacityCommitmentRequest');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class SplitCapacityCommitmentResponse extends \Google\Model
{
protected $firstType = CapacityCommitment::class;
protected $firstDataType = '';
protected $secondType = CapacityCommitment::class;
protected $secondDataType = '';
/**
* @param CapacityCommitment
*/
public function setFirst(CapacityCommitment $first)
{
$this->first = $first;
}
/**
* @return CapacityCommitment
*/
public function getFirst()
{
return $this->first;
}
/**
* @param CapacityCommitment
*/
public function setSecond(CapacityCommitment $second)
{
$this->second = $second;
}
/**
* @return CapacityCommitment
*/
public function getSecond()
{
return $this->second;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SplitCapacityCommitmentResponse::class, 'Google_Service_BigQueryReservation_SplitCapacityCommitmentResponse');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_BigQueryReservation_Status');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\BigQueryReservation;
class TableReference extends \Google\Model
{
/**
* @var string
*/
public $datasetId;
/**
* @var string
*/
public $projectId;
/**
* @var string
*/
public $tableId;
/**
* @param string
*/
public function setDatasetId($datasetId)
{
$this->datasetId = $datasetId;
}
/**
* @return string
*/
public function getDatasetId()
{
return $this->datasetId;
}
/**
* @param string
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* @param string
*/
public function setTableId($tableId)
{
$this->tableId = $tableId;
}
/**
* @return string
*/
public function getTableId()
{
return $this->tableId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TableReference::class, 'Google_Service_BigQueryReservation_TableReference');