Initial commit

This commit is contained in:
Caribana
2017-05-26 11:41:26 +02:00
commit 61c24500af
6264 changed files with 645934 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_CancelOperationRequest extends Google_Model
{
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_Cardinality extends Google_Model
{
public $number;
public $path;
public function setNumber($number)
{
$this->number = $number;
}
public function getNumber()
{
return $this->number;
}
public function setPath($path)
{
$this->path = $path;
}
public function getPath()
{
return $this->path;
}
}

View File

@@ -0,0 +1,31 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_EndCondition extends Google_Model
{
protected $cardinalityType = 'Google_Service_CloudRuntimeConfig_Cardinality';
protected $cardinalityDataType = '';
public function setCardinality(Google_Service_CloudRuntimeConfig_Cardinality $cardinality)
{
$this->cardinality = $cardinality;
}
public function getCardinality()
{
return $this->cardinality;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_ListConfigsResponse extends Google_Collection
{
protected $collection_key = 'configs';
protected $configsType = 'Google_Service_CloudRuntimeConfig_RuntimeConfig';
protected $configsDataType = 'array';
public $nextPageToken;
public function setConfigs($configs)
{
$this->configs = $configs;
}
public function getConfigs()
{
return $this->configs;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_ListOperationsResponse extends Google_Collection
{
protected $collection_key = 'operations';
public $nextPageToken;
protected $operationsType = 'Google_Service_CloudRuntimeConfig_Operation';
protected $operationsDataType = 'array';
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
public function setOperations($operations)
{
$this->operations = $operations;
}
public function getOperations()
{
return $this->operations;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_ListVariablesResponse extends Google_Collection
{
protected $collection_key = 'variables';
public $nextPageToken;
protected $variablesType = 'Google_Service_CloudRuntimeConfig_Variable';
protected $variablesDataType = 'array';
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
public function setVariables($variables)
{
$this->variables = $variables;
}
public function getVariables()
{
return $this->variables;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_ListWaitersResponse extends Google_Collection
{
protected $collection_key = 'waiters';
public $nextPageToken;
protected $waitersType = 'Google_Service_CloudRuntimeConfig_Waiter';
protected $waitersDataType = 'array';
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
public function setWaiters($waiters)
{
$this->waiters = $waiters;
}
public function getWaiters()
{
return $this->waiters;
}
}

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_Operation extends Google_Model
{
public $done;
protected $errorType = 'Google_Service_CloudRuntimeConfig_Status';
protected $errorDataType = '';
public $metadata;
public $name;
public $response;
public function setDone($done)
{
$this->done = $done;
}
public function getDone()
{
return $this->done;
}
public function setError(Google_Service_CloudRuntimeConfig_Status $error)
{
$this->error = $error;
}
public function getError()
{
return $this->error;
}
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
public function getMetadata()
{
return $this->metadata;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setResponse($response)
{
$this->response = $response;
}
public function getResponse()
{
return $this->response;
}
}

View File

@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $runtimeconfigService = new Google_Service_CloudRuntimeConfig(...);
* $operations = $runtimeconfigService->operations;
* </code>
*/
class Google_Service_CloudRuntimeConfig_Resource_Operations 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 Google_Service_CloudRuntimeConfig_CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty
*/
public function cancel($name, Google_Service_CloudRuntimeConfig_CancelOperationRequest $postBody, $optParams = array())
{
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('cancel', array($params), "Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty");
}
/**
* 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 Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty
*/
public function delete($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty");
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
*
* NOTE: the `name` binding below allows API services to override the binding to
* use different resource name schemes, such as `users/operations`.
* (operations.listOperations)
*
* @param string $name The name of the operation collection.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken The standard list page token.
* @opt_param int pageSize The standard list page size.
* @opt_param string filter The standard list filter.
* @return Google_Service_CloudRuntimeConfig_ListOperationsResponse
*/
public function listOperations($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_CloudRuntimeConfig_ListOperationsResponse");
}
}

View File

@@ -0,0 +1,28 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $runtimeconfigService = new Google_Service_CloudRuntimeConfig(...);
* $projects = $runtimeconfigService->projects;
* </code>
*/
class Google_Service_CloudRuntimeConfig_Resource_Projects extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,123 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "configs" collection of methods.
* Typical usage is:
* <code>
* $runtimeconfigService = new Google_Service_CloudRuntimeConfig(...);
* $configs = $runtimeconfigService->configs;
* </code>
*/
class Google_Service_CloudRuntimeConfig_Resource_ProjectsConfigs extends Google_Service_Resource
{
/**
* Creates a new RuntimeConfig resource. The configuration name must be unique
* within project. (configs.create)
*
* @param string $parent The [project
* ID](https://support.google.com/cloud/answer/6158840?hl=en_topic=6158848) for
* this request, in the format `projects/[PROJECT_ID]`.
* @param Google_Service_CloudRuntimeConfig_RuntimeConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional unique request_id. If server receives
* two Create requests with the same request_id then second request will be
* ignored and the resource stored in the backend will be returned. Empty
* request_id fields are ignored. It is responsibility of the client to ensure
* uniqueness of the request_id strings. The strings are limited to 64
* characters.
* @return Google_Service_CloudRuntimeConfig_RuntimeConfig
*/
public function create($parent, Google_Service_CloudRuntimeConfig_RuntimeConfig $postBody, $optParams = array())
{
$params = array('parent' => $parent, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_CloudRuntimeConfig_RuntimeConfig");
}
/**
* Deletes a RuntimeConfig resource. (configs.delete)
*
* @param string $name The RuntimeConfig resource to delete, in the format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
* @param array $optParams Optional parameters.
* @return Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty
*/
public function delete($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty");
}
/**
* Gets information about a RuntimeConfig resource. (configs.get)
*
* @param string $name The name of the RuntimeConfig resource to retrieve, in
* the format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
* @param array $optParams Optional parameters.
* @return Google_Service_CloudRuntimeConfig_RuntimeConfig
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_CloudRuntimeConfig_RuntimeConfig");
}
/**
* Lists all the RuntimeConfig resources within project.
* (configs.listProjectsConfigs)
*
* @param string $parent The [project
* ID](https://support.google.com/cloud/answer/6158840?hl=en_topic=6158848) for
* this request, in the format `projects/[PROJECT_ID]`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Specifies the number of results to return per page.
* If there are fewer elements than the specified number, returns all elements.
* @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
* a `nextPageToken` returned by a previous list request to get the next page of
* results.
* @return Google_Service_CloudRuntimeConfig_ListConfigsResponse
*/
public function listProjectsConfigs($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_CloudRuntimeConfig_ListConfigsResponse");
}
/**
* Updates a RuntimeConfig resource. The configuration must exist beforehand.
* (configs.update)
*
* @param string $name The name of the RuntimeConfig resource to update, in the
* format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
* @param Google_Service_CloudRuntimeConfig_RuntimeConfig $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_CloudRuntimeConfig_RuntimeConfig
*/
public function update($name, Google_Service_CloudRuntimeConfig_RuntimeConfig $postBody, $optParams = array())
{
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_CloudRuntimeConfig_RuntimeConfig");
}
}

View File

@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $runtimeconfigService = new Google_Service_CloudRuntimeConfig(...);
* $operations = $runtimeconfigService->operations;
* </code>
*/
class Google_Service_CloudRuntimeConfig_Resource_ProjectsConfigsOperations extends Google_Service_Resource
{
/**
* 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 Google_Service_CloudRuntimeConfig_Operation
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_CloudRuntimeConfig_Operation");
}
}

View File

@@ -0,0 +1,170 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "variables" collection of methods.
* Typical usage is:
* <code>
* $runtimeconfigService = new Google_Service_CloudRuntimeConfig(...);
* $variables = $runtimeconfigService->variables;
* </code>
*/
class Google_Service_CloudRuntimeConfig_Resource_ProjectsConfigsVariables extends Google_Service_Resource
{
/**
* Creates a variable within the given configuration. You cannot create a
* variable with a name that is a prefix of an existing variable name, or a name
* that has an existing variable name as a prefix.
*
* To learn more about creating a variable, read the [Setting and Getting Data
* ](/deployment-manager/runtime-configurator/set-and-get-variables)
* documentation. (variables.create)
*
* @param string $parent The path to the RutimeConfig resource that this
* variable should belong to. The configuration must exist beforehand; the path
* must by in the format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
* @param Google_Service_CloudRuntimeConfig_Variable $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional unique request_id. If server receives
* two Create requests with the same request_id then second request will be
* ignored and the resource stored in the backend will be returned. Empty
* request_id fields are ignored. It is responsibility of the client to ensure
* uniqueness of the request_id strings. The strings are limited to 64
* characters.
* @return Google_Service_CloudRuntimeConfig_Variable
*/
public function create($parent, Google_Service_CloudRuntimeConfig_Variable $postBody, $optParams = array())
{
$params = array('parent' => $parent, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_CloudRuntimeConfig_Variable");
}
/**
* Deletes a variable or multiple variables.
*
* If you specify a variable name, then that variable is deleted. If you specify
* a prefix and `recursive` is true, then all variables with that prefix are
* deleted. You must set a `recursive` to true if you delete variables by
* prefix. (variables.delete)
*
* @param string $name The name of the variable to delete, in the format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]`
* @param array $optParams Optional parameters.
*
* @opt_param bool recursive Set to `true` to recursively delete multiple
* variables with the same prefix.
* @return Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty
*/
public function delete($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty");
}
/**
* Gets information about a single variable. (variables.get)
*
* @param string $name The name of the variable to return, in the format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]`
* @param array $optParams Optional parameters.
* @return Google_Service_CloudRuntimeConfig_Variable
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_CloudRuntimeConfig_Variable");
}
/**
* Lists variables within given a configuration, matching any provided filters.
* This only lists variable names, not the values.
* (variables.listProjectsConfigsVariables)
*
* @param string $parent The path to the RuntimeConfig resource for which you
* want to list variables. The configuration must exist beforehand; the path
* must by in the format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Specifies the number of results to return per page.
* If there are fewer elements than the specified number, returns all elements.
* @opt_param string filter Filters variables by matching the specified filter.
* For example:
*
* `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`.
* @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
* a `nextPageToken` returned by a previous list request to get the next page of
* results.
* @return Google_Service_CloudRuntimeConfig_ListVariablesResponse
*/
public function listProjectsConfigsVariables($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_CloudRuntimeConfig_ListVariablesResponse");
}
/**
* Updates an existing variable with a new value. (variables.update)
*
* @param string $name The name of the variable to update, in the format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]`
* @param Google_Service_CloudRuntimeConfig_Variable $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_CloudRuntimeConfig_Variable
*/
public function update($name, Google_Service_CloudRuntimeConfig_Variable $postBody, $optParams = array())
{
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_CloudRuntimeConfig_Variable");
}
/**
* Watches a specific variable and waits for a change in the variable's value.
* When there is a change, this method returns the new value or times out.
*
* If a variable is deleted while being watched, the `variableState` state is
* set to `DELETED` and the method returns the last known variable `value`.
*
* If you set the deadline for watching to a larger value than internal timeout
* (60 seconds), the current variable value is returned and the `variableState`
* will be `VARIABLE_STATE_UNSPECIFIED`.
*
* To learn more about creating a watcher, read the [Watching a Variable for
* Changes](/deployment-manager/runtime-configurator/watching-a-variable)
* documentation. (variables.watch)
*
* @param string $name The name of the variable to watch, in the format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
* @param Google_Service_CloudRuntimeConfig_WatchVariableRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_CloudRuntimeConfig_Variable
*/
public function watch($name, Google_Service_CloudRuntimeConfig_WatchVariableRequest $postBody, $optParams = array())
{
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('watch', array($params), "Google_Service_CloudRuntimeConfig_Variable");
}
}

View File

@@ -0,0 +1,111 @@
<?php
/*
* Copyright 2016 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.
*/
/**
* The "waiters" collection of methods.
* Typical usage is:
* <code>
* $runtimeconfigService = new Google_Service_CloudRuntimeConfig(...);
* $waiters = $runtimeconfigService->waiters;
* </code>
*/
class Google_Service_CloudRuntimeConfig_Resource_ProjectsConfigsWaiters extends Google_Service_Resource
{
/**
* Creates a Waiter resource. This operation returns a long-running Operation
* resource which can be polled for completion. However, a waiter with the given
* name will exist (and can be retrieved) prior to the operation completing. If
* the operation fails, the failed Waiter resource will still exist and must be
* deleted prior to subsequent creation attempts. (waiters.create)
*
* @param string $parent The path to the configuration that will own the waiter.
* The configuration must exist beforehand; the path must by in the format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`.
* @param Google_Service_CloudRuntimeConfig_Waiter $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string requestId An optional unique request_id. If server receives
* two Create requests with the same request_id then second request will be
* ignored and information stored in the backend will be returned. Empty
* request_id fields are ignored. It is responsibility of the client to ensure
* uniqueness of the request_id strings. The strings are limited to 64
* characters.
* @return Google_Service_CloudRuntimeConfig_Operation
*/
public function create($parent, Google_Service_CloudRuntimeConfig_Waiter $postBody, $optParams = array())
{
$params = array('parent' => $parent, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_CloudRuntimeConfig_Operation");
}
/**
* Deletes the waiter with the specified name. (waiters.delete)
*
* @param string $name The Waiter resource to delete, in the format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]`
* @param array $optParams Optional parameters.
* @return Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty
*/
public function delete($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty");
}
/**
* Gets information about a single waiter. (waiters.get)
*
* @param string $name The fully-qualified name of the Waiter resource object to
* retrieve, in the format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]`
* @param array $optParams Optional parameters.
* @return Google_Service_CloudRuntimeConfig_Waiter
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_CloudRuntimeConfig_Waiter");
}
/**
* List waiters within the given configuration.
* (waiters.listProjectsConfigsWaiters)
*
* @param string $parent The path to the configuration for which you want to get
* a list of waiters. The configuration must exist beforehand; the path must by
* in the format:
*
* `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Specifies the number of results to return per page.
* If there are fewer elements than the specified number, returns all elements.
* @opt_param string pageToken Specifies a page token to use. Set `pageToken` to
* a `nextPageToken` returned by a previous list request to get the next page of
* results.
* @return Google_Service_CloudRuntimeConfig_ListWaitersResponse
*/
public function listProjectsConfigsWaiters($parent, $optParams = array())
{
$params = array('parent' => $parent);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_CloudRuntimeConfig_ListWaitersResponse");
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_RuntimeConfig extends Google_Model
{
public $description;
public $name;
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
}

View File

@@ -0,0 +1,20 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_RuntimeconfigEmpty extends Google_Model
{
}

View File

@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_Status extends Google_Collection
{
protected $collection_key = 'details';
public $code;
public $details;
public $message;
public function setCode($code)
{
$this->code = $code;
}
public function getCode()
{
return $this->code;
}
public function setDetails($details)
{
$this->details = $details;
}
public function getDetails()
{
return $this->details;
}
public function setMessage($message)
{
$this->message = $message;
}
public function getMessage()
{
return $this->message;
}
}

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_Variable extends Google_Model
{
public $name;
public $state;
public $text;
public $updateTime;
public $value;
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setState($state)
{
$this->state = $state;
}
public function getState()
{
return $this->state;
}
public function setText($text)
{
$this->text = $text;
}
public function getText()
{
return $this->text;
}
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
public function getUpdateTime()
{
return $this->updateTime;
}
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
}

View File

@@ -0,0 +1,87 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_Waiter extends Google_Model
{
public $createTime;
public $done;
protected $errorType = 'Google_Service_CloudRuntimeConfig_Status';
protected $errorDataType = '';
protected $failureType = 'Google_Service_CloudRuntimeConfig_EndCondition';
protected $failureDataType = '';
public $name;
protected $successType = 'Google_Service_CloudRuntimeConfig_EndCondition';
protected $successDataType = '';
public $timeout;
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
public function getCreateTime()
{
return $this->createTime;
}
public function setDone($done)
{
$this->done = $done;
}
public function getDone()
{
return $this->done;
}
public function setError(Google_Service_CloudRuntimeConfig_Status $error)
{
$this->error = $error;
}
public function getError()
{
return $this->error;
}
public function setFailure(Google_Service_CloudRuntimeConfig_EndCondition $failure)
{
$this->failure = $failure;
}
public function getFailure()
{
return $this->failure;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setSuccess(Google_Service_CloudRuntimeConfig_EndCondition $success)
{
$this->success = $success;
}
public function getSuccess()
{
return $this->success;
}
public function setTimeout($timeout)
{
$this->timeout = $timeout;
}
public function getTimeout()
{
return $this->timeout;
}
}

View File

@@ -0,0 +1,30 @@
<?php
/*
* Copyright 2016 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.
*/
class Google_Service_CloudRuntimeConfig_WatchVariableRequest extends Google_Model
{
public $newerThan;
public function setNewerThan($newerThan)
{
$this->newerThan = $newerThan;
}
public function getNewerThan()
{
return $this->newerThan;
}
}