[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\Config\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\Config\ListTerraformVersionsResponse;
|
---|
| 21 | use Google\Service\Config\TerraformVersion;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * The "terraformVersions" collection of methods.
|
---|
| 25 | * Typical usage is:
|
---|
| 26 | * <code>
|
---|
| 27 | * $configService = new Google\Service\Config(...);
|
---|
| 28 | * $terraformVersions = $configService->projects_locations_terraformVersions;
|
---|
| 29 | * </code>
|
---|
| 30 | */
|
---|
| 31 | class ProjectsLocationsTerraformVersions extends \Google\Service\Resource
|
---|
| 32 | {
|
---|
| 33 | /**
|
---|
| 34 | * Gets details about a TerraformVersion. (terraformVersions.get)
|
---|
| 35 | *
|
---|
| 36 | * @param string $name Required. The name of the TerraformVersion. Format: 'proj
|
---|
| 37 | * ects/{project_id}/locations/{location}/terraformVersions/{terraform_version}'
|
---|
| 38 | * @param array $optParams Optional parameters.
|
---|
| 39 | * @return TerraformVersion
|
---|
| 40 | * @throws \Google\Service\Exception
|
---|
| 41 | */
|
---|
| 42 | public function get($name, $optParams = [])
|
---|
| 43 | {
|
---|
| 44 | $params = ['name' => $name];
|
---|
| 45 | $params = array_merge($params, $optParams);
|
---|
| 46 | return $this->call('get', [$params], TerraformVersion::class);
|
---|
| 47 | }
|
---|
| 48 | /**
|
---|
| 49 | * Lists TerraformVersions in a given project and location.
|
---|
| 50 | * (terraformVersions.listProjectsLocationsTerraformVersions)
|
---|
| 51 | *
|
---|
| 52 | * @param string $parent Required. The parent in whose context the
|
---|
| 53 | * TerraformVersions are listed. The parent value is in the format:
|
---|
| 54 | * 'projects/{project_id}/locations/{location}'.
|
---|
| 55 | * @param array $optParams Optional parameters.
|
---|
| 56 | *
|
---|
| 57 | * @opt_param string filter Optional. Lists the TerraformVersions that match the
|
---|
| 58 | * filter expression. A filter expression filters the resources listed in the
|
---|
| 59 | * response. The expression must be of the form '{field} {operator} {value}'
|
---|
| 60 | * where operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon
|
---|
| 61 | * ':' represents a HAS operator which is roughly synonymous with equality).
|
---|
| 62 | * {field} can refer to a proto or JSON field, or a synthetic field. Field names
|
---|
| 63 | * can be camelCase or snake_case.
|
---|
| 64 | * @opt_param string orderBy Optional. Field to use to sort the list.
|
---|
| 65 | * @opt_param int pageSize Optional. When requesting a page of resources,
|
---|
| 66 | * 'page_size' specifies number of resources to return. If unspecified, at most
|
---|
| 67 | * 500 will be returned. The maximum value is 1000.
|
---|
| 68 | * @opt_param string pageToken Optional. Token returned by previous call to
|
---|
| 69 | * 'ListTerraformVersions' which specifies the position in the list from where
|
---|
| 70 | * to continue listing the resources.
|
---|
| 71 | * @return ListTerraformVersionsResponse
|
---|
| 72 | * @throws \Google\Service\Exception
|
---|
| 73 | */
|
---|
| 74 | public function listProjectsLocationsTerraformVersions($parent, $optParams = [])
|
---|
| 75 | {
|
---|
| 76 | $params = ['parent' => $parent];
|
---|
| 77 | $params = array_merge($params, $optParams);
|
---|
| 78 | return $this->call('list', [$params], ListTerraformVersionsResponse::class);
|
---|
| 79 | }
|
---|
| 80 | }
|
---|
| 81 |
|
---|
| 82 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 83 | class_alias(ProjectsLocationsTerraformVersions::class, 'Google_Service_Config_Resource_ProjectsLocationsTerraformVersions');
|
---|