source: vendor/google/apiclient-services/src/CloudOSLogin.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 6.1 KB
RevLine 
[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
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for CloudOSLogin (v1).
24 *
25 * <p>
26 * You can use OS Login to manage access to your VM instances using IAM roles.</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://cloud.google.com/compute/docs/oslogin/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class CloudOSLogin extends \Google\Service
36{
37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
38 const CLOUD_PLATFORM =
39 "https://www.googleapis.com/auth/cloud-platform";
40 /** View your data across Google Cloud services and see the email address of your Google Account. */
41 const CLOUD_PLATFORM_READ_ONLY =
42 "https://www.googleapis.com/auth/cloud-platform.read-only";
43 /** View and manage your Google Compute Engine resources. */
44 const COMPUTE =
45 "https://www.googleapis.com/auth/compute";
46 /** View your Google Compute Engine resources. */
47 const COMPUTE_READONLY =
48 "https://www.googleapis.com/auth/compute.readonly";
49
50 public $users;
51 public $users_projects;
52 public $users_sshPublicKeys;
53 public $rootUrlTemplate;
54
55 /**
56 * Constructs the internal representation of the CloudOSLogin service.
57 *
58 * @param Client|array $clientOrConfig The client used to deliver requests, or a
59 * config array to pass to a new Client instance.
60 * @param string $rootUrl The root URL used for requests to the service.
61 */
62 public function __construct($clientOrConfig = [], $rootUrl = null)
63 {
64 parent::__construct($clientOrConfig);
65 $this->rootUrl = $rootUrl ?: 'https://oslogin.googleapis.com/';
66 $this->rootUrlTemplate = $rootUrl ?: 'https://oslogin.UNIVERSE_DOMAIN/';
67 $this->servicePath = '';
68 $this->batchPath = 'batch';
69 $this->version = 'v1';
70 $this->serviceName = 'oslogin';
71
72 $this->users = new CloudOSLogin\Resource\Users(
73 $this,
74 $this->serviceName,
75 'users',
76 [
77 'methods' => [
78 'getLoginProfile' => [
79 'path' => 'v1/{+name}/loginProfile',
80 'httpMethod' => 'GET',
81 'parameters' => [
82 'name' => [
83 'location' => 'path',
84 'type' => 'string',
85 'required' => true,
86 ],
87 'projectId' => [
88 'location' => 'query',
89 'type' => 'string',
90 ],
91 'systemId' => [
92 'location' => 'query',
93 'type' => 'string',
94 ],
95 ],
96 ],'importSshPublicKey' => [
97 'path' => 'v1/{+parent}:importSshPublicKey',
98 'httpMethod' => 'POST',
99 'parameters' => [
100 'parent' => [
101 'location' => 'path',
102 'type' => 'string',
103 'required' => true,
104 ],
105 'projectId' => [
106 'location' => 'query',
107 'type' => 'string',
108 ],
109 'regions' => [
110 'location' => 'query',
111 'type' => 'string',
112 'repeated' => true,
113 ],
114 ],
115 ],
116 ]
117 ]
118 );
119 $this->users_projects = new CloudOSLogin\Resource\UsersProjects(
120 $this,
121 $this->serviceName,
122 'projects',
123 [
124 'methods' => [
125 'delete' => [
126 'path' => 'v1/{+name}',
127 'httpMethod' => 'DELETE',
128 'parameters' => [
129 'name' => [
130 'location' => 'path',
131 'type' => 'string',
132 'required' => true,
133 ],
134 ],
135 ],
136 ]
137 ]
138 );
139 $this->users_sshPublicKeys = new CloudOSLogin\Resource\UsersSshPublicKeys(
140 $this,
141 $this->serviceName,
142 'sshPublicKeys',
143 [
144 'methods' => [
145 'create' => [
146 'path' => 'v1/{+parent}/sshPublicKeys',
147 'httpMethod' => 'POST',
148 'parameters' => [
149 'parent' => [
150 'location' => 'path',
151 'type' => 'string',
152 'required' => true,
153 ],
154 ],
155 ],'delete' => [
156 'path' => 'v1/{+name}',
157 'httpMethod' => 'DELETE',
158 'parameters' => [
159 'name' => [
160 'location' => 'path',
161 'type' => 'string',
162 'required' => true,
163 ],
164 ],
165 ],'get' => [
166 'path' => 'v1/{+name}',
167 'httpMethod' => 'GET',
168 'parameters' => [
169 'name' => [
170 'location' => 'path',
171 'type' => 'string',
172 'required' => true,
173 ],
174 ],
175 ],'patch' => [
176 'path' => 'v1/{+name}',
177 'httpMethod' => 'PATCH',
178 'parameters' => [
179 'name' => [
180 'location' => 'path',
181 'type' => 'string',
182 'required' => true,
183 ],
184 'updateMask' => [
185 'location' => 'query',
186 'type' => 'string',
187 ],
188 ],
189 ],
190 ]
191 ]
192 );
193 }
194}
195
196// Adding a class alias for backwards compatibility with the previous class name.
197class_alias(CloudOSLogin::class, 'Google_Service_CloudOSLogin');
Note: See TracBrowser for help on using the repository browser.