source: vendor/google/apiclient-services/src/Config/Resource/ProjectsLocationsDeploymentsRevisionsResources.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload project files

  • Property mode set to 100644
File size: 3.6 KB
Line 
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
18namespace Google\Service\Config\Resource;
19
20use Google\Service\Config\ConfigResource;
21use Google\Service\Config\ListResourcesResponse;
22
23/**
24 * The "resources" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $configService = new Google\Service\Config(...);
28 * $resources = $configService->projects_locations_deployments_revisions_resources;
29 * </code>
30 */
31class ProjectsLocationsDeploymentsRevisionsResources extends \Google\Service\Resource
32{
33 /**
34 * Gets details about a Resource deployed by Infra Manager. (resources.get)
35 *
36 * @param string $name Required. The name of the Resource in the format: 'projec
37 * ts/{project_id}/locations/{location}/deployments/{deployment}/revisions/{revi
38 * sion}/resource/{resource}'.
39 * @param array $optParams Optional parameters.
40 * @return ConfigResource
41 * @throws \Google\Service\Exception
42 */
43 public function get($name, $optParams = [])
44 {
45 $params = ['name' => $name];
46 $params = array_merge($params, $optParams);
47 return $this->call('get', [$params], ConfigResource::class);
48 }
49 /**
50 * Lists Resources in a given revision.
51 * (resources.listProjectsLocationsDeploymentsRevisionsResources)
52 *
53 * @param string $parent Required. The parent in whose context the Resources are
54 * listed. The parent value is in the format: 'projects/{project_id}/locations/{
55 * location}/deployments/{deployment}/revisions/{revision}'.
56 * @param array $optParams Optional parameters.
57 *
58 * @opt_param string filter Lists the Resources that match the filter
59 * expression. A filter expression filters the resources listed in the response.
60 * The expression must be of the form '{field} {operator} {value}' where
61 * operators: '<', '>', '<=', '>=', '!=', '=', ':' are supported (colon ':'
62 * represents a HAS operator which is roughly synonymous with equality). {field}
63 * can refer to a proto or JSON field, or a synthetic field. Field names can be
64 * camelCase or snake_case. Examples: - Filter by name: name =
65 * "projects/foo/locations/us-
66 * central1/deployments/dep/revisions/bar/resources/baz
67 * @opt_param string orderBy Field to use to sort the list.
68 * @opt_param int pageSize When requesting a page of resources, 'page_size'
69 * specifies number of resources to return. If unspecified, at most 500 will be
70 * returned. The maximum value is 1000.
71 * @opt_param string pageToken Token returned by previous call to
72 * 'ListResources' which specifies the position in the list from where to
73 * continue listing the resources.
74 * @return ListResourcesResponse
75 * @throws \Google\Service\Exception
76 */
77 public function listProjectsLocationsDeploymentsRevisionsResources($parent, $optParams = [])
78 {
79 $params = ['parent' => $parent];
80 $params = array_merge($params, $optParams);
81 return $this->call('list', [$params], ListResourcesResponse::class);
82 }
83}
84
85// Adding a class alias for backwards compatibility with the previous class name.
86class_alias(ProjectsLocationsDeploymentsRevisionsResources::class, 'Google_Service_Config_Resource_ProjectsLocationsDeploymentsRevisionsResources');
Note: See TracBrowser for help on using the repository browser.