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\CloudRun\Resource;
19
20use Google\Service\CloudRun\Configuration;
21use Google\Service\CloudRun\ListConfigurationsResponse;
22
23/**
24 * The "configurations" collection of methods.
25 * Typical usage is:
26 *  <code>
27 *   $runService = new Google\Service\CloudRun(...);
28 *   $configurations = $runService->configurations;
29 *  </code>
30 */
31class ProjectsLocationsConfigurations extends \Google\Service\Resource
32{
33  /**
34   * Get information about a configuration. (configurations.get)
35   *
36   * @param string $name The name of the configuration to retrieve. For Cloud Run
37   * (fully managed), replace {namespace_id} with the project ID or number.
38   * @param array $optParams Optional parameters.
39   * @return Configuration
40   */
41  public function get($name, $optParams = [])
42  {
43    $params = ['name' => $name];
44    $params = array_merge($params, $optParams);
45    return $this->call('get', [$params], Configuration::class);
46  }
47  /**
48   * List configurations. (configurations.listProjectsLocationsConfigurations)
49   *
50   * @param string $parent The namespace from which the configurations should be
51   * listed. For Cloud Run (fully managed), replace {namespace_id} with the
52   * project ID or number.
53   * @param array $optParams Optional parameters.
54   *
55   * @opt_param string continue Optional. Encoded string to continue paging.
56   * @opt_param string fieldSelector Allows to filter resources based on a
57   * specific value for a field name. Send this in a query string format. i.e.
58   * 'metadata.name%3Dlorem'. Not currently used by Cloud Run.
59   * @opt_param bool includeUninitialized Not currently used by Cloud Run.
60   * @opt_param string labelSelector Allows to filter resources based on a label.
61   * Supported operations are =, !=, exists, in, and notIn.
62   * @opt_param int limit Optional. The maximum number of records that should be
63   * returned.
64   * @opt_param string resourceVersion The baseline resource version from which
65   * the list or watch operation should start. Not currently used by Cloud Run.
66   * @opt_param bool watch Flag that indicates that the client expects to watch
67   * this resource as well. Not currently used by Cloud Run.
68   * @return ListConfigurationsResponse
69   */
70  public function listProjectsLocationsConfigurations($parent, $optParams = [])
71  {
72    $params = ['parent' => $parent];
73    $params = array_merge($params, $optParams);
74    return $this->call('list', [$params], ListConfigurationsResponse::class);
75  }
76}
77
78// Adding a class alias for backwards compatibility with the previous class name.
79class_alias(ProjectsLocationsConfigurations::class, 'Google_Service_CloudRun_Resource_ProjectsLocationsConfigurations');
80