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,98 @@
<?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\Batch;
class Accelerator extends \Google\Model
{
/**
* @var string
*/
public $count;
/**
* @var string
*/
public $driverVersion;
/**
* @var bool
*/
public $installGpuDrivers;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* @param string
*/
public function setDriverVersion($driverVersion)
{
$this->driverVersion = $driverVersion;
}
/**
* @return string
*/
public function getDriverVersion()
{
return $this->driverVersion;
}
/**
* @param bool
*/
public function setInstallGpuDrivers($installGpuDrivers)
{
$this->installGpuDrivers = $installGpuDrivers;
}
/**
* @return bool
*/
public function getInstallGpuDrivers()
{
return $this->installGpuDrivers;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Accelerator::class, 'Google_Service_Batch_Accelerator');

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\Batch;
class ActionCondition extends \Google\Collection
{
protected $collection_key = 'exitCodes';
/**
* @var int[]
*/
public $exitCodes;
/**
* @param int[]
*/
public function setExitCodes($exitCodes)
{
$this->exitCodes = $exitCodes;
}
/**
* @return int[]
*/
public function getExitCodes()
{
return $this->exitCodes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActionCondition::class, 'Google_Service_Batch_ActionCondition');

View File

@@ -0,0 +1,117 @@
<?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\Batch;
class AgentContainer extends \Google\Collection
{
protected $collection_key = 'volumes';
/**
* @var string[]
*/
public $commands;
/**
* @var string
*/
public $entrypoint;
/**
* @var string
*/
public $imageUri;
/**
* @var string
*/
public $options;
/**
* @var string[]
*/
public $volumes;
/**
* @param string[]
*/
public function setCommands($commands)
{
$this->commands = $commands;
}
/**
* @return string[]
*/
public function getCommands()
{
return $this->commands;
}
/**
* @param string
*/
public function setEntrypoint($entrypoint)
{
$this->entrypoint = $entrypoint;
}
/**
* @return string
*/
public function getEntrypoint()
{
return $this->entrypoint;
}
/**
* @param string
*/
public function setImageUri($imageUri)
{
$this->imageUri = $imageUri;
}
/**
* @return string
*/
public function getImageUri()
{
return $this->imageUri;
}
/**
* @param string
*/
public function setOptions($options)
{
$this->options = $options;
}
/**
* @return string
*/
public function getOptions()
{
return $this->options;
}
/**
* @param string[]
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return string[]
*/
public function getVolumes()
{
return $this->volumes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentContainer::class, 'Google_Service_Batch_AgentContainer');

View File

@@ -0,0 +1,78 @@
<?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\Batch;
class AgentEnvironment extends \Google\Model
{
protected $encryptedVariablesType = AgentKMSEnvMap::class;
protected $encryptedVariablesDataType = '';
/**
* @var string[]
*/
public $secretVariables;
/**
* @var string[]
*/
public $variables;
/**
* @param AgentKMSEnvMap
*/
public function setEncryptedVariables(AgentKMSEnvMap $encryptedVariables)
{
$this->encryptedVariables = $encryptedVariables;
}
/**
* @return AgentKMSEnvMap
*/
public function getEncryptedVariables()
{
return $this->encryptedVariables;
}
/**
* @param string[]
*/
public function setSecretVariables($secretVariables)
{
$this->secretVariables = $secretVariables;
}
/**
* @return string[]
*/
public function getSecretVariables()
{
return $this->secretVariables;
}
/**
* @param string[]
*/
public function setVariables($variables)
{
$this->variables = $variables;
}
/**
* @return string[]
*/
public function getVariables()
{
return $this->variables;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentEnvironment::class, 'Google_Service_Batch_AgentEnvironment');

View File

@@ -0,0 +1,115 @@
<?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\Batch;
class AgentInfo extends \Google\Collection
{
protected $collection_key = 'tasks';
/**
* @var string
*/
public $jobId;
/**
* @var string
*/
public $reportTime;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $taskGroupId;
protected $tasksType = AgentTaskInfo::class;
protected $tasksDataType = 'array';
/**
* @param string
*/
public function setJobId($jobId)
{
$this->jobId = $jobId;
}
/**
* @return string
*/
public function getJobId()
{
return $this->jobId;
}
/**
* @param string
*/
public function setReportTime($reportTime)
{
$this->reportTime = $reportTime;
}
/**
* @return string
*/
public function getReportTime()
{
return $this->reportTime;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setTaskGroupId($taskGroupId)
{
$this->taskGroupId = $taskGroupId;
}
/**
* @return string
*/
public function getTaskGroupId()
{
return $this->taskGroupId;
}
/**
* @param AgentTaskInfo[]
*/
public function setTasks($tasks)
{
$this->tasks = $tasks;
}
/**
* @return AgentTaskInfo[]
*/
public function getTasks()
{
return $this->tasks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentInfo::class, 'Google_Service_Batch_AgentInfo');

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\Batch;
class AgentKMSEnvMap extends \Google\Model
{
/**
* @var string
*/
public $cipherText;
/**
* @var string
*/
public $keyName;
/**
* @param string
*/
public function setCipherText($cipherText)
{
$this->cipherText = $cipherText;
}
/**
* @return string
*/
public function getCipherText()
{
return $this->cipherText;
}
/**
* @param string
*/
public function setKeyName($keyName)
{
$this->keyName = $keyName;
}
/**
* @return string
*/
public function getKeyName()
{
return $this->keyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentKMSEnvMap::class, 'Google_Service_Batch_AgentKMSEnvMap');

View File

@@ -0,0 +1,206 @@
<?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\Batch;
class AgentMetadata extends \Google\Model
{
/**
* @var string
*/
public $creationTime;
/**
* @var string
*/
public $creator;
/**
* @var string
*/
public $imageVersion;
/**
* @var string
*/
public $instance;
/**
* @var string
*/
public $instanceId;
/**
* @var bool
*/
public $instancePreemptionNoticeReceived;
/**
* @var string
*/
public $machineType;
/**
* @var string[]
*/
public $osRelease;
/**
* @var string
*/
public $version;
/**
* @var string
*/
public $zone;
/**
* @param string
*/
public function setCreationTime($creationTime)
{
$this->creationTime = $creationTime;
}
/**
* @return string
*/
public function getCreationTime()
{
return $this->creationTime;
}
/**
* @param string
*/
public function setCreator($creator)
{
$this->creator = $creator;
}
/**
* @return string
*/
public function getCreator()
{
return $this->creator;
}
/**
* @param string
*/
public function setImageVersion($imageVersion)
{
$this->imageVersion = $imageVersion;
}
/**
* @return string
*/
public function getImageVersion()
{
return $this->imageVersion;
}
/**
* @param string
*/
public function setInstance($instance)
{
$this->instance = $instance;
}
/**
* @return string
*/
public function getInstance()
{
return $this->instance;
}
/**
* @param string
*/
public function setInstanceId($instanceId)
{
$this->instanceId = $instanceId;
}
/**
* @return string
*/
public function getInstanceId()
{
return $this->instanceId;
}
/**
* @param bool
*/
public function setInstancePreemptionNoticeReceived($instancePreemptionNoticeReceived)
{
$this->instancePreemptionNoticeReceived = $instancePreemptionNoticeReceived;
}
/**
* @return bool
*/
public function getInstancePreemptionNoticeReceived()
{
return $this->instancePreemptionNoticeReceived;
}
/**
* @param string
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* @param string[]
*/
public function setOsRelease($osRelease)
{
$this->osRelease = $osRelease;
}
/**
* @return string[]
*/
public function getOsRelease()
{
return $this->osRelease;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
/**
* @param string
*/
public function setZone($zone)
{
$this->zone = $zone;
}
/**
* @return string
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentMetadata::class, 'Google_Service_Batch_AgentMetadata');

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\Batch;
class AgentScript extends \Google\Model
{
/**
* @var string
*/
public $path;
/**
* @var string
*/
public $text;
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentScript::class, 'Google_Service_Batch_AgentScript');

View File

@@ -0,0 +1,146 @@
<?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\Batch;
class AgentTask extends \Google\Model
{
protected $agentTaskSpecType = AgentTaskSpec::class;
protected $agentTaskSpecDataType = '';
/**
* @var string
*/
public $intendedState;
/**
* @var string
*/
public $reachedBarrier;
protected $specType = TaskSpec::class;
protected $specDataType = '';
protected $statusType = TaskStatus::class;
protected $statusDataType = '';
/**
* @var string
*/
public $task;
/**
* @var string
*/
public $taskSource;
/**
* @param AgentTaskSpec
*/
public function setAgentTaskSpec(AgentTaskSpec $agentTaskSpec)
{
$this->agentTaskSpec = $agentTaskSpec;
}
/**
* @return AgentTaskSpec
*/
public function getAgentTaskSpec()
{
return $this->agentTaskSpec;
}
/**
* @param string
*/
public function setIntendedState($intendedState)
{
$this->intendedState = $intendedState;
}
/**
* @return string
*/
public function getIntendedState()
{
return $this->intendedState;
}
/**
* @param string
*/
public function setReachedBarrier($reachedBarrier)
{
$this->reachedBarrier = $reachedBarrier;
}
/**
* @return string
*/
public function getReachedBarrier()
{
return $this->reachedBarrier;
}
/**
* @param TaskSpec
*/
public function setSpec(TaskSpec $spec)
{
$this->spec = $spec;
}
/**
* @return TaskSpec
*/
public function getSpec()
{
return $this->spec;
}
/**
* @param TaskStatus
*/
public function setStatus(TaskStatus $status)
{
$this->status = $status;
}
/**
* @return TaskStatus
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setTask($task)
{
$this->task = $task;
}
/**
* @return string
*/
public function getTask()
{
return $this->task;
}
/**
* @param string
*/
public function setTaskSource($taskSource)
{
$this->taskSource = $taskSource;
}
/**
* @return string
*/
public function getTaskSource()
{
return $this->taskSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentTask::class, 'Google_Service_Batch_AgentTask');

View File

@@ -0,0 +1,78 @@
<?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\Batch;
class AgentTaskInfo extends \Google\Model
{
/**
* @var string
*/
public $runnable;
/**
* @var string
*/
public $taskId;
protected $taskStatusType = TaskStatus::class;
protected $taskStatusDataType = '';
/**
* @param string
*/
public function setRunnable($runnable)
{
$this->runnable = $runnable;
}
/**
* @return string
*/
public function getRunnable()
{
return $this->runnable;
}
/**
* @param string
*/
public function setTaskId($taskId)
{
$this->taskId = $taskId;
}
/**
* @return string
*/
public function getTaskId()
{
return $this->taskId;
}
/**
* @param TaskStatus
*/
public function setTaskStatus(TaskStatus $taskStatus)
{
$this->taskStatus = $taskStatus;
}
/**
* @return TaskStatus
*/
public function getTaskStatus()
{
return $this->taskStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentTaskInfo::class, 'Google_Service_Batch_AgentTaskInfo');

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\Batch;
class AgentTaskLoggingOption extends \Google\Model
{
/**
* @var string[]
*/
public $labels;
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentTaskLoggingOption::class, 'Google_Service_Batch_AgentTaskLoggingOption');

View File

@@ -0,0 +1,146 @@
<?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\Batch;
class AgentTaskRunnable extends \Google\Model
{
/**
* @var bool
*/
public $alwaysRun;
/**
* @var bool
*/
public $background;
protected $containerType = AgentContainer::class;
protected $containerDataType = '';
protected $environmentType = AgentEnvironment::class;
protected $environmentDataType = '';
/**
* @var bool
*/
public $ignoreExitStatus;
protected $scriptType = AgentScript::class;
protected $scriptDataType = '';
/**
* @var string
*/
public $timeout;
/**
* @param bool
*/
public function setAlwaysRun($alwaysRun)
{
$this->alwaysRun = $alwaysRun;
}
/**
* @return bool
*/
public function getAlwaysRun()
{
return $this->alwaysRun;
}
/**
* @param bool
*/
public function setBackground($background)
{
$this->background = $background;
}
/**
* @return bool
*/
public function getBackground()
{
return $this->background;
}
/**
* @param AgentContainer
*/
public function setContainer(AgentContainer $container)
{
$this->container = $container;
}
/**
* @return AgentContainer
*/
public function getContainer()
{
return $this->container;
}
/**
* @param AgentEnvironment
*/
public function setEnvironment(AgentEnvironment $environment)
{
$this->environment = $environment;
}
/**
* @return AgentEnvironment
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* @param bool
*/
public function setIgnoreExitStatus($ignoreExitStatus)
{
$this->ignoreExitStatus = $ignoreExitStatus;
}
/**
* @return bool
*/
public function getIgnoreExitStatus()
{
return $this->ignoreExitStatus;
}
/**
* @param AgentScript
*/
public function setScript(AgentScript $script)
{
$this->script = $script;
}
/**
* @return AgentScript
*/
public function getScript()
{
return $this->script;
}
/**
* @param string
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentTaskRunnable::class, 'Google_Service_Batch_AgentTaskRunnable');

View File

@@ -0,0 +1,109 @@
<?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\Batch;
class AgentTaskSpec extends \Google\Collection
{
protected $collection_key = 'runnables';
protected $environmentType = AgentEnvironment::class;
protected $environmentDataType = '';
protected $loggingOptionType = AgentTaskLoggingOption::class;
protected $loggingOptionDataType = '';
/**
* @var string
*/
public $maxRunDuration;
protected $runnablesType = AgentTaskRunnable::class;
protected $runnablesDataType = 'array';
protected $userAccountType = AgentTaskUserAccount::class;
protected $userAccountDataType = '';
/**
* @param AgentEnvironment
*/
public function setEnvironment(AgentEnvironment $environment)
{
$this->environment = $environment;
}
/**
* @return AgentEnvironment
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* @param AgentTaskLoggingOption
*/
public function setLoggingOption(AgentTaskLoggingOption $loggingOption)
{
$this->loggingOption = $loggingOption;
}
/**
* @return AgentTaskLoggingOption
*/
public function getLoggingOption()
{
return $this->loggingOption;
}
/**
* @param string
*/
public function setMaxRunDuration($maxRunDuration)
{
$this->maxRunDuration = $maxRunDuration;
}
/**
* @return string
*/
public function getMaxRunDuration()
{
return $this->maxRunDuration;
}
/**
* @param AgentTaskRunnable[]
*/
public function setRunnables($runnables)
{
$this->runnables = $runnables;
}
/**
* @return AgentTaskRunnable[]
*/
public function getRunnables()
{
return $this->runnables;
}
/**
* @param AgentTaskUserAccount
*/
public function setUserAccount(AgentTaskUserAccount $userAccount)
{
$this->userAccount = $userAccount;
}
/**
* @return AgentTaskUserAccount
*/
public function getUserAccount()
{
return $this->userAccount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentTaskSpec::class, 'Google_Service_Batch_AgentTaskSpec');

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\Batch;
class AgentTaskUserAccount extends \Google\Model
{
/**
* @var string
*/
public $gid;
/**
* @var string
*/
public $uid;
/**
* @param string
*/
public function setGid($gid)
{
$this->gid = $gid;
}
/**
* @return string
*/
public function getGid()
{
return $this->gid;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentTaskUserAccount::class, 'Google_Service_Batch_AgentTaskUserAccount');

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\Batch;
class AgentTimingInfo extends \Google\Model
{
/**
* @var string
*/
public $agentStartupTime;
/**
* @var string
*/
public $bootTime;
/**
* @var string
*/
public $scriptStartupTime;
/**
* @param string
*/
public function setAgentStartupTime($agentStartupTime)
{
$this->agentStartupTime = $agentStartupTime;
}
/**
* @return string
*/
public function getAgentStartupTime()
{
return $this->agentStartupTime;
}
/**
* @param string
*/
public function setBootTime($bootTime)
{
$this->bootTime = $bootTime;
}
/**
* @return string
*/
public function getBootTime()
{
return $this->bootTime;
}
/**
* @param string
*/
public function setScriptStartupTime($scriptStartupTime)
{
$this->scriptStartupTime = $scriptStartupTime;
}
/**
* @return string
*/
public function getScriptStartupTime()
{
return $this->scriptStartupTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentTimingInfo::class, 'Google_Service_Batch_AgentTimingInfo');

View File

@@ -0,0 +1,143 @@
<?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\Batch;
class AllocationPolicy extends \Google\Collection
{
protected $collection_key = 'tags';
protected $instancesType = InstancePolicyOrTemplate::class;
protected $instancesDataType = 'array';
/**
* @var string[]
*/
public $labels;
protected $locationType = LocationPolicy::class;
protected $locationDataType = '';
protected $networkType = NetworkPolicy::class;
protected $networkDataType = '';
protected $placementType = PlacementPolicy::class;
protected $placementDataType = '';
protected $serviceAccountType = ServiceAccount::class;
protected $serviceAccountDataType = '';
/**
* @var string[]
*/
public $tags;
/**
* @param InstancePolicyOrTemplate[]
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return InstancePolicyOrTemplate[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param LocationPolicy
*/
public function setLocation(LocationPolicy $location)
{
$this->location = $location;
}
/**
* @return LocationPolicy
*/
public function getLocation()
{
return $this->location;
}
/**
* @param NetworkPolicy
*/
public function setNetwork(NetworkPolicy $network)
{
$this->network = $network;
}
/**
* @return NetworkPolicy
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param PlacementPolicy
*/
public function setPlacement(PlacementPolicy $placement)
{
$this->placement = $placement;
}
/**
* @return PlacementPolicy
*/
public function getPlacement()
{
return $this->placement;
}
/**
* @param ServiceAccount
*/
public function setServiceAccount(ServiceAccount $serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return ServiceAccount
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* @param string[]
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationPolicy::class, 'Google_Service_Batch_AllocationPolicy');

View File

@@ -0,0 +1,78 @@
<?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\Batch;
class AttachedDisk extends \Google\Model
{
/**
* @var string
*/
public $deviceName;
/**
* @var string
*/
public $existingDisk;
protected $newDiskType = Disk::class;
protected $newDiskDataType = '';
/**
* @param string
*/
public function setDeviceName($deviceName)
{
$this->deviceName = $deviceName;
}
/**
* @return string
*/
public function getDeviceName()
{
return $this->deviceName;
}
/**
* @param string
*/
public function setExistingDisk($existingDisk)
{
$this->existingDisk = $existingDisk;
}
/**
* @return string
*/
public function getExistingDisk()
{
return $this->existingDisk;
}
/**
* @param Disk
*/
public function setNewDisk(Disk $newDisk)
{
$this->newDisk = $newDisk;
}
/**
* @return Disk
*/
public function getNewDisk()
{
return $this->newDisk;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttachedDisk::class, 'Google_Service_Batch_AttachedDisk');

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\Batch;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
public $auditLogConfigs;
/**
* @var string
*/
public $service;
/**
* @param AuditLogConfig[]
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* @param string
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_Batch_AuditConfig');

View File

@@ -0,0 +1,63 @@
<?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\Batch;
class AuditLogConfig extends \Google\Collection
{
protected $collection_key = 'exemptedMembers';
/**
* @var string[]
*/
public $exemptedMembers;
/**
* @var string
*/
public $logType;
/**
* @param string[]
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* @param string
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return string
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_Batch_AuditLogConfig');

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\Batch;
class Barrier extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Barrier::class, 'Google_Service_Batch_Barrier');

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\Batch;
class BatchEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchEmpty::class, 'Google_Service_Batch_BatchEmpty');

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\Batch;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
public $condition;
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_Batch_Binding');

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\Batch;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_Batch_CancelOperationRequest');

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\Batch;
class CloudLoggingOption extends \Google\Model
{
/**
* @var bool
*/
public $useGenericTaskMonitoredResource;
/**
* @param bool
*/
public function setUseGenericTaskMonitoredResource($useGenericTaskMonitoredResource)
{
$this->useGenericTaskMonitoredResource = $useGenericTaskMonitoredResource;
}
/**
* @return bool
*/
public function getUseGenericTaskMonitoredResource()
{
return $this->useGenericTaskMonitoredResource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudLoggingOption::class, 'Google_Service_Batch_CloudLoggingOption');

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\Batch;
class ComputeResource extends \Google\Model
{
/**
* @var string
*/
public $bootDiskMib;
/**
* @var string
*/
public $cpuMilli;
/**
* @var string
*/
public $memoryMib;
/**
* @param string
*/
public function setBootDiskMib($bootDiskMib)
{
$this->bootDiskMib = $bootDiskMib;
}
/**
* @return string
*/
public function getBootDiskMib()
{
return $this->bootDiskMib;
}
/**
* @param string
*/
public function setCpuMilli($cpuMilli)
{
$this->cpuMilli = $cpuMilli;
}
/**
* @return string
*/
public function getCpuMilli()
{
return $this->cpuMilli;
}
/**
* @param string
*/
public function setMemoryMib($memoryMib)
{
$this->memoryMib = $memoryMib;
}
/**
* @return string
*/
public function getMemoryMib()
{
return $this->memoryMib;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ComputeResource::class, 'Google_Service_Batch_ComputeResource');

View File

@@ -0,0 +1,189 @@
<?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\Batch;
class Container extends \Google\Collection
{
protected $collection_key = 'volumes';
/**
* @var bool
*/
public $blockExternalNetwork;
/**
* @var string[]
*/
public $commands;
/**
* @var bool
*/
public $enableImageStreaming;
/**
* @var string
*/
public $entrypoint;
/**
* @var string
*/
public $imageUri;
/**
* @var string
*/
public $options;
/**
* @var string
*/
public $password;
/**
* @var string
*/
public $username;
/**
* @var string[]
*/
public $volumes;
/**
* @param bool
*/
public function setBlockExternalNetwork($blockExternalNetwork)
{
$this->blockExternalNetwork = $blockExternalNetwork;
}
/**
* @return bool
*/
public function getBlockExternalNetwork()
{
return $this->blockExternalNetwork;
}
/**
* @param string[]
*/
public function setCommands($commands)
{
$this->commands = $commands;
}
/**
* @return string[]
*/
public function getCommands()
{
return $this->commands;
}
/**
* @param bool
*/
public function setEnableImageStreaming($enableImageStreaming)
{
$this->enableImageStreaming = $enableImageStreaming;
}
/**
* @return bool
*/
public function getEnableImageStreaming()
{
return $this->enableImageStreaming;
}
/**
* @param string
*/
public function setEntrypoint($entrypoint)
{
$this->entrypoint = $entrypoint;
}
/**
* @return string
*/
public function getEntrypoint()
{
return $this->entrypoint;
}
/**
* @param string
*/
public function setImageUri($imageUri)
{
$this->imageUri = $imageUri;
}
/**
* @return string
*/
public function getImageUri()
{
return $this->imageUri;
}
/**
* @param string
*/
public function setOptions($options)
{
$this->options = $options;
}
/**
* @return string
*/
public function getOptions()
{
return $this->options;
}
/**
* @param string
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* @param string
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
/**
* @param string[]
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return string[]
*/
public function getVolumes()
{
return $this->volumes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Container::class, 'Google_Service_Batch_Container');

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\Batch;
class Disk extends \Google\Model
{
/**
* @var string
*/
public $diskInterface;
/**
* @var string
*/
public $image;
/**
* @var string
*/
public $sizeGb;
/**
* @var string
*/
public $snapshot;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setDiskInterface($diskInterface)
{
$this->diskInterface = $diskInterface;
}
/**
* @return string
*/
public function getDiskInterface()
{
return $this->diskInterface;
}
/**
* @param string
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* @param string
*/
public function setSizeGb($sizeGb)
{
$this->sizeGb = $sizeGb;
}
/**
* @return string
*/
public function getSizeGb()
{
return $this->sizeGb;
}
/**
* @param string
*/
public function setSnapshot($snapshot)
{
$this->snapshot = $snapshot;
}
/**
* @return string
*/
public function getSnapshot()
{
return $this->snapshot;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Disk::class, 'Google_Service_Batch_Disk');

View File

@@ -0,0 +1,78 @@
<?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\Batch;
class Environment extends \Google\Model
{
protected $encryptedVariablesType = KMSEnvMap::class;
protected $encryptedVariablesDataType = '';
/**
* @var string[]
*/
public $secretVariables;
/**
* @var string[]
*/
public $variables;
/**
* @param KMSEnvMap
*/
public function setEncryptedVariables(KMSEnvMap $encryptedVariables)
{
$this->encryptedVariables = $encryptedVariables;
}
/**
* @return KMSEnvMap
*/
public function getEncryptedVariables()
{
return $this->encryptedVariables;
}
/**
* @param string[]
*/
public function setSecretVariables($secretVariables)
{
$this->secretVariables = $secretVariables;
}
/**
* @return string[]
*/
public function getSecretVariables()
{
return $this->secretVariables;
}
/**
* @param string[]
*/
public function setVariables($variables)
{
$this->variables = $variables;
}
/**
* @return string[]
*/
public function getVariables()
{
return $this->variables;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Environment::class, 'Google_Service_Batch_Environment');

View File

@@ -0,0 +1,98 @@
<?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\Batch;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_Batch_Expr');

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\Batch;
class GCS extends \Google\Model
{
/**
* @var string
*/
public $remotePath;
/**
* @param string
*/
public function setRemotePath($remotePath)
{
$this->remotePath = $remotePath;
}
/**
* @return string
*/
public function getRemotePath()
{
return $this->remotePath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GCS::class, 'Google_Service_Batch_GCS');

View File

@@ -0,0 +1,147 @@
<?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\Batch;
class InstancePolicy extends \Google\Collection
{
protected $collection_key = 'disks';
protected $acceleratorsType = Accelerator::class;
protected $acceleratorsDataType = 'array';
protected $bootDiskType = Disk::class;
protected $bootDiskDataType = '';
protected $disksType = AttachedDisk::class;
protected $disksDataType = 'array';
/**
* @var string
*/
public $machineType;
/**
* @var string
*/
public $minCpuPlatform;
/**
* @var string
*/
public $provisioningModel;
/**
* @var string
*/
public $reservation;
/**
* @param Accelerator[]
*/
public function setAccelerators($accelerators)
{
$this->accelerators = $accelerators;
}
/**
* @return Accelerator[]
*/
public function getAccelerators()
{
return $this->accelerators;
}
/**
* @param Disk
*/
public function setBootDisk(Disk $bootDisk)
{
$this->bootDisk = $bootDisk;
}
/**
* @return Disk
*/
public function getBootDisk()
{
return $this->bootDisk;
}
/**
* @param AttachedDisk[]
*/
public function setDisks($disks)
{
$this->disks = $disks;
}
/**
* @return AttachedDisk[]
*/
public function getDisks()
{
return $this->disks;
}
/**
* @param string
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* @param string
*/
public function setMinCpuPlatform($minCpuPlatform)
{
$this->minCpuPlatform = $minCpuPlatform;
}
/**
* @return string
*/
public function getMinCpuPlatform()
{
return $this->minCpuPlatform;
}
/**
* @param string
*/
public function setProvisioningModel($provisioningModel)
{
$this->provisioningModel = $provisioningModel;
}
/**
* @return string
*/
public function getProvisioningModel()
{
return $this->provisioningModel;
}
/**
* @param string
*/
public function setReservation($reservation)
{
$this->reservation = $reservation;
}
/**
* @return string
*/
public function getReservation()
{
return $this->reservation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancePolicy::class, 'Google_Service_Batch_InstancePolicy');

View File

@@ -0,0 +1,114 @@
<?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\Batch;
class InstancePolicyOrTemplate extends \Google\Model
{
/**
* @var bool
*/
public $blockProjectSshKeys;
/**
* @var bool
*/
public $installGpuDrivers;
/**
* @var bool
*/
public $installOpsAgent;
/**
* @var string
*/
public $instanceTemplate;
protected $policyType = InstancePolicy::class;
protected $policyDataType = '';
/**
* @param bool
*/
public function setBlockProjectSshKeys($blockProjectSshKeys)
{
$this->blockProjectSshKeys = $blockProjectSshKeys;
}
/**
* @return bool
*/
public function getBlockProjectSshKeys()
{
return $this->blockProjectSshKeys;
}
/**
* @param bool
*/
public function setInstallGpuDrivers($installGpuDrivers)
{
$this->installGpuDrivers = $installGpuDrivers;
}
/**
* @return bool
*/
public function getInstallGpuDrivers()
{
return $this->installGpuDrivers;
}
/**
* @param bool
*/
public function setInstallOpsAgent($installOpsAgent)
{
$this->installOpsAgent = $installOpsAgent;
}
/**
* @return bool
*/
public function getInstallOpsAgent()
{
return $this->installOpsAgent;
}
/**
* @param string
*/
public function setInstanceTemplate($instanceTemplate)
{
$this->instanceTemplate = $instanceTemplate;
}
/**
* @return string
*/
public function getInstanceTemplate()
{
return $this->instanceTemplate;
}
/**
* @param InstancePolicy
*/
public function setPolicy(InstancePolicy $policy)
{
$this->policy = $policy;
}
/**
* @return InstancePolicy
*/
public function getPolicy()
{
return $this->policy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstancePolicyOrTemplate::class, 'Google_Service_Batch_InstancePolicyOrTemplate');

View File

@@ -0,0 +1,96 @@
<?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\Batch;
class InstanceStatus extends \Google\Model
{
protected $bootDiskType = Disk::class;
protected $bootDiskDataType = '';
/**
* @var string
*/
public $machineType;
/**
* @var string
*/
public $provisioningModel;
/**
* @var string
*/
public $taskPack;
/**
* @param Disk
*/
public function setBootDisk(Disk $bootDisk)
{
$this->bootDisk = $bootDisk;
}
/**
* @return Disk
*/
public function getBootDisk()
{
return $this->bootDisk;
}
/**
* @param string
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* @param string
*/
public function setProvisioningModel($provisioningModel)
{
$this->provisioningModel = $provisioningModel;
}
/**
* @return string
*/
public function getProvisioningModel()
{
return $this->provisioningModel;
}
/**
* @param string
*/
public function setTaskPack($taskPack)
{
$this->taskPack = $taskPack;
}
/**
* @return string
*/
public function getTaskPack()
{
return $this->taskPack;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceStatus::class, 'Google_Service_Batch_InstanceStatus');

View File

@@ -0,0 +1,215 @@
<?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\Batch;
class Job extends \Google\Collection
{
protected $collection_key = 'taskGroups';
protected $allocationPolicyType = AllocationPolicy::class;
protected $allocationPolicyDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string[]
*/
public $labels;
protected $logsPolicyType = LogsPolicy::class;
protected $logsPolicyDataType = '';
/**
* @var string
*/
public $name;
protected $notificationsType = JobNotification::class;
protected $notificationsDataType = 'array';
/**
* @var string
*/
public $priority;
protected $statusType = JobStatus::class;
protected $statusDataType = '';
protected $taskGroupsType = TaskGroup::class;
protected $taskGroupsDataType = 'array';
/**
* @var string
*/
public $uid;
/**
* @var string
*/
public $updateTime;
/**
* @param AllocationPolicy
*/
public function setAllocationPolicy(AllocationPolicy $allocationPolicy)
{
$this->allocationPolicy = $allocationPolicy;
}
/**
* @return AllocationPolicy
*/
public function getAllocationPolicy()
{
return $this->allocationPolicy;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param LogsPolicy
*/
public function setLogsPolicy(LogsPolicy $logsPolicy)
{
$this->logsPolicy = $logsPolicy;
}
/**
* @return LogsPolicy
*/
public function getLogsPolicy()
{
return $this->logsPolicy;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param JobNotification[]
*/
public function setNotifications($notifications)
{
$this->notifications = $notifications;
}
/**
* @return JobNotification[]
*/
public function getNotifications()
{
return $this->notifications;
}
/**
* @param string
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return string
*/
public function getPriority()
{
return $this->priority;
}
/**
* @param JobStatus
*/
public function setStatus(JobStatus $status)
{
$this->status = $status;
}
/**
* @return JobStatus
*/
public function getStatus()
{
return $this->status;
}
/**
* @param TaskGroup[]
*/
public function setTaskGroups($taskGroups)
{
$this->taskGroups = $taskGroups;
}
/**
* @return TaskGroup[]
*/
public function getTaskGroups()
{
return $this->taskGroups;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* @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(Job::class, 'Google_Service_Batch_Job');

View File

@@ -0,0 +1,60 @@
<?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\Batch;
class JobNotification extends \Google\Model
{
protected $messageType = Message::class;
protected $messageDataType = '';
/**
* @var string
*/
public $pubsubTopic;
/**
* @param Message
*/
public function setMessage(Message $message)
{
$this->message = $message;
}
/**
* @return Message
*/
public function getMessage()
{
return $this->message;
}
/**
* @param string
*/
public function setPubsubTopic($pubsubTopic)
{
$this->pubsubTopic = $pubsubTopic;
}
/**
* @return string
*/
public function getPubsubTopic()
{
return $this->pubsubTopic;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(JobNotification::class, 'Google_Service_Batch_JobNotification');

View File

@@ -0,0 +1,95 @@
<?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\Batch;
class JobStatus extends \Google\Collection
{
protected $collection_key = 'statusEvents';
/**
* @var string
*/
public $runDuration;
/**
* @var string
*/
public $state;
protected $statusEventsType = StatusEvent::class;
protected $statusEventsDataType = 'array';
protected $taskGroupsType = TaskGroupStatus::class;
protected $taskGroupsDataType = 'map';
/**
* @param string
*/
public function setRunDuration($runDuration)
{
$this->runDuration = $runDuration;
}
/**
* @return string
*/
public function getRunDuration()
{
return $this->runDuration;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param StatusEvent[]
*/
public function setStatusEvents($statusEvents)
{
$this->statusEvents = $statusEvents;
}
/**
* @return StatusEvent[]
*/
public function getStatusEvents()
{
return $this->statusEvents;
}
/**
* @param TaskGroupStatus[]
*/
public function setTaskGroups($taskGroups)
{
$this->taskGroups = $taskGroups;
}
/**
* @return TaskGroupStatus[]
*/
public function getTaskGroups()
{
return $this->taskGroups;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(JobStatus::class, 'Google_Service_Batch_JobStatus');

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\Batch;
class KMSEnvMap extends \Google\Model
{
/**
* @var string
*/
public $cipherText;
/**
* @var string
*/
public $keyName;
/**
* @param string
*/
public function setCipherText($cipherText)
{
$this->cipherText = $cipherText;
}
/**
* @return string
*/
public function getCipherText()
{
return $this->cipherText;
}
/**
* @param string
*/
public function setKeyName($keyName)
{
$this->keyName = $keyName;
}
/**
* @return string
*/
public function getKeyName()
{
return $this->keyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KMSEnvMap::class, 'Google_Service_Batch_KMSEnvMap');

View File

@@ -0,0 +1,60 @@
<?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\Batch;
class LifecyclePolicy extends \Google\Model
{
/**
* @var string
*/
public $action;
protected $actionConditionType = ActionCondition::class;
protected $actionConditionDataType = '';
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param ActionCondition
*/
public function setActionCondition(ActionCondition $actionCondition)
{
$this->actionCondition = $actionCondition;
}
/**
* @return ActionCondition
*/
public function getActionCondition()
{
return $this->actionCondition;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LifecyclePolicy::class, 'Google_Service_Batch_LifecyclePolicy');

View File

@@ -0,0 +1,79 @@
<?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\Batch;
class ListJobsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $jobsType = Job::class;
protected $jobsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var string[]
*/
public $unreachable;
/**
* @param Job[]
*/
public function setJobs($jobs)
{
$this->jobs = $jobs;
}
/**
* @return Job[]
*/
public function getJobs()
{
return $this->jobs;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListJobsResponse::class, 'Google_Service_Batch_ListJobsResponse');

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\Batch;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Location[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* @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(ListLocationsResponse::class, 'Google_Service_Batch_ListLocationsResponse');

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\Batch;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_Batch_ListOperationsResponse');

View File

@@ -0,0 +1,79 @@
<?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\Batch;
class ListTasksResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $tasksType = Task::class;
protected $tasksDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Task[]
*/
public function setTasks($tasks)
{
$this->tasks = $tasks;
}
/**
* @return Task[]
*/
public function getTasks()
{
return $this->tasks;
}
/**
* @param string[]
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTasksResponse::class, 'Google_Service_Batch_ListTasksResponse');

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\Batch;
class Location extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $locationId;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_Batch_Location');

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\Batch;
class LocationPolicy extends \Google\Collection
{
protected $collection_key = 'allowedLocations';
/**
* @var string[]
*/
public $allowedLocations;
/**
* @param string[]
*/
public function setAllowedLocations($allowedLocations)
{
$this->allowedLocations = $allowedLocations;
}
/**
* @return string[]
*/
public function getAllowedLocations()
{
return $this->allowedLocations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationPolicy::class, 'Google_Service_Batch_LocationPolicy');

View File

@@ -0,0 +1,78 @@
<?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\Batch;
class LogsPolicy extends \Google\Model
{
protected $cloudLoggingOptionType = CloudLoggingOption::class;
protected $cloudLoggingOptionDataType = '';
/**
* @var string
*/
public $destination;
/**
* @var string
*/
public $logsPath;
/**
* @param CloudLoggingOption
*/
public function setCloudLoggingOption(CloudLoggingOption $cloudLoggingOption)
{
$this->cloudLoggingOption = $cloudLoggingOption;
}
/**
* @return CloudLoggingOption
*/
public function getCloudLoggingOption()
{
return $this->cloudLoggingOption;
}
/**
* @param string
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* @param string
*/
public function setLogsPath($logsPath)
{
$this->logsPath = $logsPath;
}
/**
* @return string
*/
public function getLogsPath()
{
return $this->logsPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogsPolicy::class, 'Google_Service_Batch_LogsPolicy');

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\Batch;
class Message extends \Google\Model
{
/**
* @var string
*/
public $newJobState;
/**
* @var string
*/
public $newTaskState;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setNewJobState($newJobState)
{
$this->newJobState = $newJobState;
}
/**
* @return string
*/
public function getNewJobState()
{
return $this->newJobState;
}
/**
* @param string
*/
public function setNewTaskState($newTaskState)
{
$this->newTaskState = $newTaskState;
}
/**
* @return string
*/
public function getNewTaskState()
{
return $this->newTaskState;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Message::class, 'Google_Service_Batch_Message');

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\Batch;
class NFS extends \Google\Model
{
/**
* @var string
*/
public $remotePath;
/**
* @var string
*/
public $server;
/**
* @param string
*/
public function setRemotePath($remotePath)
{
$this->remotePath = $remotePath;
}
/**
* @return string
*/
public function getRemotePath()
{
return $this->remotePath;
}
/**
* @param string
*/
public function setServer($server)
{
$this->server = $server;
}
/**
* @return string
*/
public function getServer()
{
return $this->server;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NFS::class, 'Google_Service_Batch_NFS');

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\Batch;
class NetworkInterface extends \Google\Model
{
/**
* @var string
*/
public $network;
/**
* @var bool
*/
public $noExternalIpAddress;
/**
* @var string
*/
public $subnetwork;
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param bool
*/
public function setNoExternalIpAddress($noExternalIpAddress)
{
$this->noExternalIpAddress = $noExternalIpAddress;
}
/**
* @return bool
*/
public function getNoExternalIpAddress()
{
return $this->noExternalIpAddress;
}
/**
* @param string
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkInterface::class, 'Google_Service_Batch_NetworkInterface');

View File

@@ -0,0 +1,43 @@
<?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\Batch;
class NetworkPolicy extends \Google\Collection
{
protected $collection_key = 'networkInterfaces';
protected $networkInterfacesType = NetworkInterface::class;
protected $networkInterfacesDataType = 'array';
/**
* @param NetworkInterface[]
*/
public function setNetworkInterfaces($networkInterfaces)
{
$this->networkInterfaces = $networkInterfaces;
}
/**
* @return NetworkInterface[]
*/
public function getNetworkInterfaces()
{
return $this->networkInterfaces;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkPolicy::class, 'Google_Service_Batch_NetworkPolicy');

View File

@@ -0,0 +1,114 @@
<?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\Batch;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_Batch_Operation');

View File

@@ -0,0 +1,152 @@
<?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\Batch;
class OperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var bool
*/
public $requestedCancellation;
/**
* @var string
*/
public $statusMessage;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param bool
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* @param string
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_Batch_OperationMetadata');

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\Batch;
class PlacementPolicy extends \Google\Model
{
/**
* @var string
*/
public $collocation;
/**
* @var string
*/
public $maxDistance;
/**
* @param string
*/
public function setCollocation($collocation)
{
$this->collocation = $collocation;
}
/**
* @return string
*/
public function getCollocation()
{
return $this->collocation;
}
/**
* @param string
*/
public function setMaxDistance($maxDistance)
{
$this->maxDistance = $maxDistance;
}
/**
* @return string
*/
public function getMaxDistance()
{
return $this->maxDistance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlacementPolicy::class, 'Google_Service_Batch_PlacementPolicy');

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\Batch;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
public $auditConfigs;
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
public $bindings;
/**
* @var string
*/
public $etag;
/**
* @var int
*/
public $version;
/**
* @param AuditConfig[]
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* @param Binding[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param int
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_Batch_Policy');

View File

@@ -0,0 +1,74 @@
<?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\Batch;
class ReportAgentStateRequest extends \Google\Model
{
protected $agentInfoType = AgentInfo::class;
protected $agentInfoDataType = '';
protected $agentTimingInfoType = AgentTimingInfo::class;
protected $agentTimingInfoDataType = '';
protected $metadataType = AgentMetadata::class;
protected $metadataDataType = '';
/**
* @param AgentInfo
*/
public function setAgentInfo(AgentInfo $agentInfo)
{
$this->agentInfo = $agentInfo;
}
/**
* @return AgentInfo
*/
public function getAgentInfo()
{
return $this->agentInfo;
}
/**
* @param AgentTimingInfo
*/
public function setAgentTimingInfo(AgentTimingInfo $agentTimingInfo)
{
$this->agentTimingInfo = $agentTimingInfo;
}
/**
* @return AgentTimingInfo
*/
public function getAgentTimingInfo()
{
return $this->agentTimingInfo;
}
/**
* @param AgentMetadata
*/
public function setMetadata(AgentMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return AgentMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportAgentStateRequest::class, 'Google_Service_Batch_ReportAgentStateRequest');

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\Batch;
class ReportAgentStateResponse extends \Google\Collection
{
protected $collection_key = 'tasks';
/**
* @var string
*/
public $defaultReportInterval;
/**
* @var string
*/
public $minReportInterval;
protected $tasksType = AgentTask::class;
protected $tasksDataType = 'array';
/**
* @var bool
*/
public $useBatchMonitoredResource;
/**
* @param string
*/
public function setDefaultReportInterval($defaultReportInterval)
{
$this->defaultReportInterval = $defaultReportInterval;
}
/**
* @return string
*/
public function getDefaultReportInterval()
{
return $this->defaultReportInterval;
}
/**
* @param string
*/
public function setMinReportInterval($minReportInterval)
{
$this->minReportInterval = $minReportInterval;
}
/**
* @return string
*/
public function getMinReportInterval()
{
return $this->minReportInterval;
}
/**
* @param AgentTask[]
*/
public function setTasks($tasks)
{
$this->tasks = $tasks;
}
/**
* @return AgentTask[]
*/
public function getTasks()
{
return $this->tasks;
}
/**
* @param bool
*/
public function setUseBatchMonitoredResource($useBatchMonitoredResource)
{
$this->useBatchMonitoredResource = $useBatchMonitoredResource;
}
/**
* @return bool
*/
public function getUseBatchMonitoredResource()
{
return $this->useBatchMonitoredResource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportAgentStateResponse::class, 'Google_Service_Batch_ReportAgentStateResponse');

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\Batch\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $batchService = new Google\Service\Batch(...);
* $projects = $batchService->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_Batch_Resource_Projects');

View File

@@ -0,0 +1,74 @@
<?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\Batch\Resource;
use Google\Service\Batch\ListLocationsResponse;
use Google\Service\Batch\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $batchService = new Google\Service\Batch(...);
* $locations = $batchService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Batch_Resource_ProjectsLocations');

View File

@@ -0,0 +1,133 @@
<?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\Batch\Resource;
use Google\Service\Batch\Job;
use Google\Service\Batch\ListJobsResponse;
use Google\Service\Batch\Operation;
/**
* The "jobs" collection of methods.
* Typical usage is:
* <code>
* $batchService = new Google\Service\Batch(...);
* $jobs = $batchService->projects_locations_jobs;
* </code>
*/
class ProjectsLocationsJobs extends \Google\Service\Resource
{
/**
* Create a Job. (jobs.create)
*
* @param string $parent Required. The parent resource name where the Job will
* be created. Pattern: "projects/{project}/locations/{location}"
* @param Job $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string jobId ID used to uniquely identify the Job within its
* parent scope. This field should contain at most 63 characters and must start
* with lowercase characters. Only lowercase characters, numbers and '-' are
* accepted. The '-' character cannot be the first or the last one. A system
* generated ID will be used if the field is not set. The job.name field in the
* request will be ignored and the created resource name of the Job will be
* "{parent}/jobs/{job_id}".
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Job
* @throws \Google\Service\Exception
*/
public function create($parent, Job $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Job::class);
}
/**
* Delete a Job. (jobs.delete)
*
* @param string $name Job name.
* @param array $optParams Optional parameters.
*
* @opt_param string reason Optional. Reason for this deletion.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Get a Job specified by its resource name. (jobs.get)
*
* @param string $name Required. Job name.
* @param array $optParams Optional parameters.
* @return Job
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Job::class);
}
/**
* List all Jobs for a project within a region. (jobs.listProjectsLocationsJobs)
*
* @param string $parent Parent path.
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param string orderBy Optional. Sort results. Supported are "name", "name
* desc", "create_time", and "create_time desc".
* @opt_param int pageSize Page size.
* @opt_param string pageToken Page token.
* @return ListJobsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsJobs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListJobsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsJobs::class, 'Google_Service_Batch_Resource_ProjectsLocationsJobs');

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\Batch\Resource;
/**
* The "taskGroups" collection of methods.
* Typical usage is:
* <code>
* $batchService = new Google\Service\Batch(...);
* $taskGroups = $batchService->projects_locations_jobs_taskGroups;
* </code>
*/
class ProjectsLocationsJobsTaskGroups extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsJobsTaskGroups::class, 'Google_Service_Batch_Resource_ProjectsLocationsJobsTaskGroups');

View File

@@ -0,0 +1,72 @@
<?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\Batch\Resource;
use Google\Service\Batch\ListTasksResponse;
use Google\Service\Batch\Task;
/**
* The "tasks" collection of methods.
* Typical usage is:
* <code>
* $batchService = new Google\Service\Batch(...);
* $tasks = $batchService->projects_locations_jobs_taskGroups_tasks;
* </code>
*/
class ProjectsLocationsJobsTaskGroupsTasks extends \Google\Service\Resource
{
/**
* Return a single Task. (tasks.get)
*
* @param string $name Required. Task name.
* @param array $optParams Optional parameters.
* @return Task
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Task::class);
}
/**
* List Tasks associated with a job.
* (tasks.listProjectsLocationsJobsTaskGroupsTasks)
*
* @param string $parent Required. Name of a TaskGroup from which Tasks are
* being requested. Pattern:
* "projects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}"
* @param array $optParams Optional parameters.
*
* @opt_param string filter Task filter, null filter matches all Tasks. Filter
* string should be of the format State=TaskStatus.State e.g. State=RUNNING
* @opt_param int pageSize Page size.
* @opt_param string pageToken Page token.
* @return ListTasksResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsJobsTaskGroupsTasks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTasksResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsJobsTaskGroupsTasks::class, 'Google_Service_Batch_Resource_ProjectsLocationsJobsTaskGroupsTasks');

View File

@@ -0,0 +1,108 @@
<?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\Batch\Resource;
use Google\Service\Batch\Policy;
use Google\Service\Batch\SetIamPolicyRequest;
use Google\Service\Batch\TestIamPermissionsRequest;
use Google\Service\Batch\TestIamPermissionsResponse;
/**
* The "nodes" collection of methods.
* Typical usage is:
* <code>
* $batchService = new Google\Service\Batch(...);
* $nodes = $batchService->nodes;
* </code>
*/
class ProjectsLocationsNodes extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (nodes.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (nodes.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (nodes.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNodes::class, 'Google_Service_Batch_Resource_ProjectsLocationsNodes');

View File

@@ -0,0 +1,114 @@
<?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\Batch\Resource;
use Google\Service\Batch\BatchEmpty;
use Google\Service\Batch\CancelOperationRequest;
use Google\Service\Batch\ListOperationsResponse;
use Google\Service\Batch\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $batchService = new Google\Service\Batch(...);
* $operations = $batchService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], BatchEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return BatchEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BatchEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_Batch_Resource_ProjectsLocationsOperations');

View File

@@ -0,0 +1,52 @@
<?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\Batch\Resource;
use Google\Service\Batch\ReportAgentStateRequest;
use Google\Service\Batch\ReportAgentStateResponse;
/**
* The "state" collection of methods.
* Typical usage is:
* <code>
* $batchService = new Google\Service\Batch(...);
* $state = $batchService->projects_locations_state;
* </code>
*/
class ProjectsLocationsState extends \Google\Service\Resource
{
/**
* Report agent's state, e.g. agent status and tasks information (state.report)
*
* @param string $parent Required. Format:
* projects/{project}/locations/{location} {project} should be a project number.
* @param ReportAgentStateRequest $postBody
* @param array $optParams Optional parameters.
* @return ReportAgentStateResponse
* @throws \Google\Service\Exception
*/
public function report($parent, ReportAgentStateRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('report', [$params], ReportAgentStateResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsState::class, 'Google_Service_Batch_Resource_ProjectsLocationsState');

View File

@@ -0,0 +1,108 @@
<?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\Batch\Resource;
use Google\Service\Batch\Policy;
use Google\Service\Batch\SetIamPolicyRequest;
use Google\Service\Batch\TestIamPermissionsRequest;
use Google\Service\Batch\TestIamPermissionsResponse;
/**
* The "tasks" collection of methods.
* Typical usage is:
* <code>
* $batchService = new Google\Service\Batch(...);
* $tasks = $batchService->tasks;
* </code>
*/
class ProjectsLocationsTasks extends \Google\Service\Resource
{
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (tasks.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (tasks.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* `NOT_FOUND` error. Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (tasks.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTasks::class, 'Google_Service_Batch_Resource_ProjectsLocationsTasks');

View File

@@ -0,0 +1,198 @@
<?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\Batch;
class Runnable extends \Google\Model
{
/**
* @var bool
*/
public $alwaysRun;
/**
* @var bool
*/
public $background;
protected $barrierType = Barrier::class;
protected $barrierDataType = '';
protected $containerType = Container::class;
protected $containerDataType = '';
/**
* @var string
*/
public $displayName;
protected $environmentType = Environment::class;
protected $environmentDataType = '';
/**
* @var bool
*/
public $ignoreExitStatus;
/**
* @var string[]
*/
public $labels;
protected $scriptType = Script::class;
protected $scriptDataType = '';
/**
* @var string
*/
public $timeout;
/**
* @param bool
*/
public function setAlwaysRun($alwaysRun)
{
$this->alwaysRun = $alwaysRun;
}
/**
* @return bool
*/
public function getAlwaysRun()
{
return $this->alwaysRun;
}
/**
* @param bool
*/
public function setBackground($background)
{
$this->background = $background;
}
/**
* @return bool
*/
public function getBackground()
{
return $this->background;
}
/**
* @param Barrier
*/
public function setBarrier(Barrier $barrier)
{
$this->barrier = $barrier;
}
/**
* @return Barrier
*/
public function getBarrier()
{
return $this->barrier;
}
/**
* @param Container
*/
public function setContainer(Container $container)
{
$this->container = $container;
}
/**
* @return Container
*/
public function getContainer()
{
return $this->container;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param Environment
*/
public function setEnvironment(Environment $environment)
{
$this->environment = $environment;
}
/**
* @return Environment
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* @param bool
*/
public function setIgnoreExitStatus($ignoreExitStatus)
{
$this->ignoreExitStatus = $ignoreExitStatus;
}
/**
* @return bool
*/
public function getIgnoreExitStatus()
{
return $this->ignoreExitStatus;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param Script
*/
public function setScript(Script $script)
{
$this->script = $script;
}
/**
* @return Script
*/
public function getScript()
{
return $this->script;
}
/**
* @param string
*/
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
/**
* @return string
*/
public function getTimeout()
{
return $this->timeout;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Runnable::class, 'Google_Service_Batch_Runnable');

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\Batch;
class Script extends \Google\Model
{
/**
* @var string
*/
public $path;
/**
* @var string
*/
public $text;
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Script::class, 'Google_Service_Batch_Script');

View File

@@ -0,0 +1,63 @@
<?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\Batch;
class ServiceAccount extends \Google\Collection
{
protected $collection_key = 'scopes';
/**
* @var string
*/
public $email;
/**
* @var string[]
*/
public $scopes;
/**
* @param string
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* @param string[]
*/
public function setScopes($scopes)
{
$this->scopes = $scopes;
}
/**
* @return string[]
*/
public function getScopes()
{
return $this->scopes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServiceAccount::class, 'Google_Service_Batch_ServiceAccount');

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\Batch;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
public $policy;
/**
* @var string
*/
public $updateMask;
/**
* @param Policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_Batch_SetIamPolicyRequest');

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\Batch;
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_Batch_Status');

View File

@@ -0,0 +1,114 @@
<?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\Batch;
class StatusEvent extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $eventTime;
protected $taskExecutionType = TaskExecution::class;
protected $taskExecutionDataType = '';
/**
* @var string
*/
public $taskState;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* @param TaskExecution
*/
public function setTaskExecution(TaskExecution $taskExecution)
{
$this->taskExecution = $taskExecution;
}
/**
* @return TaskExecution
*/
public function getTaskExecution()
{
return $this->taskExecution;
}
/**
* @param string
*/
public function setTaskState($taskState)
{
$this->taskState = $taskState;
}
/**
* @return string
*/
public function getTaskState()
{
return $this->taskState;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StatusEvent::class, 'Google_Service_Batch_StatusEvent');

View File

@@ -0,0 +1,60 @@
<?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\Batch;
class Task extends \Google\Model
{
/**
* @var string
*/
public $name;
protected $statusType = TaskStatus::class;
protected $statusDataType = '';
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param TaskStatus
*/
public function setStatus(TaskStatus $status)
{
$this->status = $status;
}
/**
* @return TaskStatus
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Task::class, 'Google_Service_Batch_Task');

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\Batch;
class TaskExecution extends \Google\Model
{
/**
* @var int
*/
public $exitCode;
/**
* @param int
*/
public function setExitCode($exitCode)
{
$this->exitCode = $exitCode;
}
/**
* @return int
*/
public function getExitCode()
{
return $this->exitCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskExecution::class, 'Google_Service_Batch_TaskExecution');

View File

@@ -0,0 +1,203 @@
<?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\Batch;
class TaskGroup extends \Google\Collection
{
protected $collection_key = 'taskEnvironments';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $parallelism;
/**
* @var bool
*/
public $permissiveSsh;
/**
* @var bool
*/
public $requireHostsFile;
/**
* @var bool
*/
public $runAsNonRoot;
/**
* @var string
*/
public $schedulingPolicy;
/**
* @var string
*/
public $taskCount;
/**
* @var string
*/
public $taskCountPerNode;
protected $taskEnvironmentsType = Environment::class;
protected $taskEnvironmentsDataType = 'array';
protected $taskSpecType = TaskSpec::class;
protected $taskSpecDataType = '';
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setParallelism($parallelism)
{
$this->parallelism = $parallelism;
}
/**
* @return string
*/
public function getParallelism()
{
return $this->parallelism;
}
/**
* @param bool
*/
public function setPermissiveSsh($permissiveSsh)
{
$this->permissiveSsh = $permissiveSsh;
}
/**
* @return bool
*/
public function getPermissiveSsh()
{
return $this->permissiveSsh;
}
/**
* @param bool
*/
public function setRequireHostsFile($requireHostsFile)
{
$this->requireHostsFile = $requireHostsFile;
}
/**
* @return bool
*/
public function getRequireHostsFile()
{
return $this->requireHostsFile;
}
/**
* @param bool
*/
public function setRunAsNonRoot($runAsNonRoot)
{
$this->runAsNonRoot = $runAsNonRoot;
}
/**
* @return bool
*/
public function getRunAsNonRoot()
{
return $this->runAsNonRoot;
}
/**
* @param string
*/
public function setSchedulingPolicy($schedulingPolicy)
{
$this->schedulingPolicy = $schedulingPolicy;
}
/**
* @return string
*/
public function getSchedulingPolicy()
{
return $this->schedulingPolicy;
}
/**
* @param string
*/
public function setTaskCount($taskCount)
{
$this->taskCount = $taskCount;
}
/**
* @return string
*/
public function getTaskCount()
{
return $this->taskCount;
}
/**
* @param string
*/
public function setTaskCountPerNode($taskCountPerNode)
{
$this->taskCountPerNode = $taskCountPerNode;
}
/**
* @return string
*/
public function getTaskCountPerNode()
{
return $this->taskCountPerNode;
}
/**
* @param Environment[]
*/
public function setTaskEnvironments($taskEnvironments)
{
$this->taskEnvironments = $taskEnvironments;
}
/**
* @return Environment[]
*/
public function getTaskEnvironments()
{
return $this->taskEnvironments;
}
/**
* @param TaskSpec
*/
public function setTaskSpec(TaskSpec $taskSpec)
{
$this->taskSpec = $taskSpec;
}
/**
* @return TaskSpec
*/
public function getTaskSpec()
{
return $this->taskSpec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskGroup::class, 'Google_Service_Batch_TaskGroup');

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\Batch;
class TaskGroupStatus extends \Google\Collection
{
protected $collection_key = 'instances';
/**
* @var string[]
*/
public $counts;
protected $instancesType = InstanceStatus::class;
protected $instancesDataType = 'array';
/**
* @param string[]
*/
public function setCounts($counts)
{
$this->counts = $counts;
}
/**
* @return string[]
*/
public function getCounts()
{
return $this->counts;
}
/**
* @param InstanceStatus[]
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return InstanceStatus[]
*/
public function getInstances()
{
return $this->instances;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskGroupStatus::class, 'Google_Service_Batch_TaskGroupStatus');

View File

@@ -0,0 +1,161 @@
<?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\Batch;
class TaskSpec extends \Google\Collection
{
protected $collection_key = 'volumes';
protected $computeResourceType = ComputeResource::class;
protected $computeResourceDataType = '';
protected $environmentType = Environment::class;
protected $environmentDataType = '';
/**
* @var string[]
*/
public $environments;
protected $lifecyclePoliciesType = LifecyclePolicy::class;
protected $lifecyclePoliciesDataType = 'array';
/**
* @var int
*/
public $maxRetryCount;
/**
* @var string
*/
public $maxRunDuration;
protected $runnablesType = Runnable::class;
protected $runnablesDataType = 'array';
protected $volumesType = Volume::class;
protected $volumesDataType = 'array';
/**
* @param ComputeResource
*/
public function setComputeResource(ComputeResource $computeResource)
{
$this->computeResource = $computeResource;
}
/**
* @return ComputeResource
*/
public function getComputeResource()
{
return $this->computeResource;
}
/**
* @param Environment
*/
public function setEnvironment(Environment $environment)
{
$this->environment = $environment;
}
/**
* @return Environment
*/
public function getEnvironment()
{
return $this->environment;
}
/**
* @param string[]
*/
public function setEnvironments($environments)
{
$this->environments = $environments;
}
/**
* @return string[]
*/
public function getEnvironments()
{
return $this->environments;
}
/**
* @param LifecyclePolicy[]
*/
public function setLifecyclePolicies($lifecyclePolicies)
{
$this->lifecyclePolicies = $lifecyclePolicies;
}
/**
* @return LifecyclePolicy[]
*/
public function getLifecyclePolicies()
{
return $this->lifecyclePolicies;
}
/**
* @param int
*/
public function setMaxRetryCount($maxRetryCount)
{
$this->maxRetryCount = $maxRetryCount;
}
/**
* @return int
*/
public function getMaxRetryCount()
{
return $this->maxRetryCount;
}
/**
* @param string
*/
public function setMaxRunDuration($maxRunDuration)
{
$this->maxRunDuration = $maxRunDuration;
}
/**
* @return string
*/
public function getMaxRunDuration()
{
return $this->maxRunDuration;
}
/**
* @param Runnable[]
*/
public function setRunnables($runnables)
{
$this->runnables = $runnables;
}
/**
* @return Runnable[]
*/
public function getRunnables()
{
return $this->runnables;
}
/**
* @param Volume[]
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return Volume[]
*/
public function getVolumes()
{
return $this->volumes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskSpec::class, 'Google_Service_Batch_TaskSpec');

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\Batch;
class TaskStatus extends \Google\Collection
{
protected $collection_key = 'statusEvents';
/**
* @var string
*/
public $state;
protected $statusEventsType = StatusEvent::class;
protected $statusEventsDataType = 'array';
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param StatusEvent[]
*/
public function setStatusEvents($statusEvents)
{
$this->statusEvents = $statusEvents;
}
/**
* @return StatusEvent[]
*/
public function getStatusEvents()
{
return $this->statusEvents;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskStatus::class, 'Google_Service_Batch_TaskStatus');

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\Batch;
class TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsRequest::class, 'Google_Service_Batch_TestIamPermissionsRequest');

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\Batch;
class TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsResponse::class, 'Google_Service_Batch_TestIamPermissionsResponse');

View File

@@ -0,0 +1,113 @@
<?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\Batch;
class Volume extends \Google\Collection
{
protected $collection_key = 'mountOptions';
/**
* @var string
*/
public $deviceName;
protected $gcsType = GCS::class;
protected $gcsDataType = '';
/**
* @var string[]
*/
public $mountOptions;
/**
* @var string
*/
public $mountPath;
protected $nfsType = NFS::class;
protected $nfsDataType = '';
/**
* @param string
*/
public function setDeviceName($deviceName)
{
$this->deviceName = $deviceName;
}
/**
* @return string
*/
public function getDeviceName()
{
return $this->deviceName;
}
/**
* @param GCS
*/
public function setGcs(GCS $gcs)
{
$this->gcs = $gcs;
}
/**
* @return GCS
*/
public function getGcs()
{
return $this->gcs;
}
/**
* @param string[]
*/
public function setMountOptions($mountOptions)
{
$this->mountOptions = $mountOptions;
}
/**
* @return string[]
*/
public function getMountOptions()
{
return $this->mountOptions;
}
/**
* @param string
*/
public function setMountPath($mountPath)
{
$this->mountPath = $mountPath;
}
/**
* @return string
*/
public function getMountPath()
{
return $this->mountPath;
}
/**
* @param NFS
*/
public function setNfs(NFS $nfs)
{
$this->nfs = $nfs;
}
/**
* @return NFS
*/
public function getNfs()
{
return $this->nfs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Volume::class, 'Google_Service_Batch_Volume');