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/**
19 * Service definition for CloudShell (v1).
20 *
21 * <p>
22 * Allows users to start, configure, and connect to interactive shell sessions
23 * running in the cloud.</p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://cloud.google.com/shell/docs/" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32class Google_Service_CloudShell extends Google_Service
33{
34  /** View and manage your data across Google Cloud Platform services. */
35  const CLOUD_PLATFORM =
36      "https://www.googleapis.com/auth/cloud-platform";
37
38  public $operations;
39
40  /**
41   * Constructs the internal representation of the CloudShell service.
42   *
43   * @param Google_Client $client
44   */
45  public function __construct(Google_Client $client)
46  {
47    parent::__construct($client);
48    $this->rootUrl = 'https://cloudshell.googleapis.com/';
49    $this->servicePath = '';
50    $this->batchPath = 'batch';
51    $this->version = 'v1';
52    $this->serviceName = 'cloudshell';
53
54    $this->operations = new Google_Service_CloudShell_Resource_Operations(
55        $this,
56        $this->serviceName,
57        'operations',
58        array(
59          'methods' => array(
60            'cancel' => array(
61              'path' => 'v1/{+name}:cancel',
62              'httpMethod' => 'POST',
63              'parameters' => array(
64                'name' => array(
65                  'location' => 'path',
66                  'type' => 'string',
67                  'required' => true,
68                ),
69              ),
70            ),'delete' => array(
71              'path' => 'v1/{+name}',
72              'httpMethod' => 'DELETE',
73              'parameters' => array(
74                'name' => array(
75                  'location' => 'path',
76                  'type' => 'string',
77                  'required' => true,
78                ),
79              ),
80            ),'get' => array(
81              'path' => 'v1/{+name}',
82              'httpMethod' => 'GET',
83              'parameters' => array(
84                'name' => array(
85                  'location' => 'path',
86                  'type' => 'string',
87                  'required' => true,
88                ),
89              ),
90            ),'list' => array(
91              'path' => 'v1/{+name}',
92              'httpMethod' => 'GET',
93              'parameters' => array(
94                'name' => array(
95                  'location' => 'path',
96                  'type' => 'string',
97                  'required' => true,
98                ),
99                'pageToken' => array(
100                  'location' => 'query',
101                  'type' => 'string',
102                ),
103                'pageSize' => array(
104                  'location' => 'query',
105                  'type' => 'integer',
106                ),
107                'filter' => array(
108                  'location' => 'query',
109                  'type' => 'string',
110                ),
111              ),
112            ),
113          )
114        )
115    );
116  }
117}
118