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;
19
20use Google\Client;
21
22/**
23 * Service definition for CloudRuntimeConfig (v1).
24 *
25 * <p>
26 * The Runtime Configurator allows you to dynamically configure and expose
27 * variables through Google Cloud Platform. In addition, you can also set
28 * Watchers and Waiters that will watch for changes to your data and return
29 * based on certain conditions.</p>
30 *
31 * <p>
32 * For more information about this service, see the API
33 * <a href="https://cloud.google.com/deployment-manager/runtime-configurator/" target="_blank">Documentation</a>
34 * </p>
35 *
36 * @author Google, Inc.
37 */
38class CloudRuntimeConfig extends \Google\Service
39{
40  /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
41  const CLOUD_PLATFORM =
42      "https://www.googleapis.com/auth/cloud-platform";
43  /** Manage your Google Cloud Platform services' runtime configuration. */
44  const CLOUDRUNTIMECONFIG =
45      "https://www.googleapis.com/auth/cloudruntimeconfig";
46
47  public $operations;
48
49  /**
50   * Constructs the internal representation of the CloudRuntimeConfig service.
51   *
52   * @param Client|array $clientOrConfig The client used to deliver requests, or a
53   *                                     config array to pass to a new Client instance.
54   * @param string $rootUrl The root URL used for requests to the service.
55   */
56  public function __construct($clientOrConfig = [], $rootUrl = null)
57  {
58    parent::__construct($clientOrConfig);
59    $this->rootUrl = $rootUrl ?: 'https://runtimeconfig.googleapis.com/';
60    $this->servicePath = '';
61    $this->batchPath = 'batch';
62    $this->version = 'v1';
63    $this->serviceName = 'runtimeconfig';
64
65    $this->operations = new CloudRuntimeConfig\Resource\Operations(
66        $this,
67        $this->serviceName,
68        'operations',
69        [
70          'methods' => [
71            'cancel' => [
72              'path' => 'v1/{+name}:cancel',
73              'httpMethod' => 'POST',
74              'parameters' => [
75                'name' => [
76                  'location' => 'path',
77                  'type' => 'string',
78                  'required' => true,
79                ],
80              ],
81            ],'delete' => [
82              'path' => 'v1/{+name}',
83              'httpMethod' => 'DELETE',
84              'parameters' => [
85                'name' => [
86                  'location' => 'path',
87                  'type' => 'string',
88                  'required' => true,
89                ],
90              ],
91            ],'list' => [
92              'path' => 'v1/{+name}',
93              'httpMethod' => 'GET',
94              'parameters' => [
95                'name' => [
96                  'location' => 'path',
97                  'type' => 'string',
98                  'required' => true,
99                ],
100                'filter' => [
101                  'location' => 'query',
102                  'type' => 'string',
103                ],
104                'pageSize' => [
105                  'location' => 'query',
106                  'type' => 'integer',
107                ],
108                'pageToken' => [
109                  'location' => 'query',
110                  'type' => 'string',
111                ],
112              ],
113            ],
114          ]
115        ]
116    );
117  }
118}
119
120// Adding a class alias for backwards compatibility with the previous class name.
121class_alias(CloudRuntimeConfig::class, 'Google_Service_CloudRuntimeConfig');
122