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 | namespace Google\Service\OSConfig\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\OSConfig\ProjectFeatureSettings;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * The "global" collection of methods.
|
---|
24 | * Typical usage is:
|
---|
25 | * <code>
|
---|
26 | * $osconfigService = new Google\Service\OSConfig(...);
|
---|
27 | * $global = $osconfigService->projects_locations_global;
|
---|
28 | * </code>
|
---|
29 | */
|
---|
30 | class ProjectsLocationsOsconfigGlobal extends \Google\Service\Resource
|
---|
31 | {
|
---|
32 | /**
|
---|
33 | * GetProjectFeatureSettings returns the VM Manager feature settings for a
|
---|
34 | * project. (global.getProjectFeatureSettings)
|
---|
35 | *
|
---|
36 | * @param string $name Required. Name specifies the URL for the
|
---|
37 | * ProjectFeatureSettings resource:
|
---|
38 | * projects/project_id/locations/global/projectFeatureSettings.
|
---|
39 | * @param array $optParams Optional parameters.
|
---|
40 | * @return ProjectFeatureSettings
|
---|
41 | * @throws \Google\Service\Exception
|
---|
42 | */
|
---|
43 | public function getProjectFeatureSettings($name, $optParams = [])
|
---|
44 | {
|
---|
45 | $params = ['name' => $name];
|
---|
46 | $params = array_merge($params, $optParams);
|
---|
47 | return $this->call('getProjectFeatureSettings', [$params], ProjectFeatureSettings::class);
|
---|
48 | }
|
---|
49 | /**
|
---|
50 | * UpdateProjectFeatureSettings sets the VM Manager features for a project.
|
---|
51 | * (global.updateProjectFeatureSettings)
|
---|
52 | *
|
---|
53 | * @param string $name Required. Immutable. Name specifies the URL for the
|
---|
54 | * ProjectFeatureSettings resource:
|
---|
55 | * projects/project_id/locations/global/projectFeatureSettings.
|
---|
56 | * @param ProjectFeatureSettings $postBody
|
---|
57 | * @param array $optParams Optional parameters.
|
---|
58 | *
|
---|
59 | * @opt_param string updateMask Optional. Field mask that controls which fields
|
---|
60 | * of the ProjectFeatureSettings should be updated.
|
---|
61 | * @return ProjectFeatureSettings
|
---|
62 | * @throws \Google\Service\Exception
|
---|
63 | */
|
---|
64 | public function updateProjectFeatureSettings($name, ProjectFeatureSettings $postBody, $optParams = [])
|
---|
65 | {
|
---|
66 | $params = ['name' => $name, 'postBody' => $postBody];
|
---|
67 | $params = array_merge($params, $optParams);
|
---|
68 | return $this->call('updateProjectFeatureSettings', [$params], ProjectFeatureSettings::class);
|
---|
69 | }
|
---|
70 | }
|
---|
71 |
|
---|
72 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
73 | class_alias(ProjectsLocationsOsconfigGlobal::class, 'Google_Service_OSConfig_Resource_ProjectsLocationsOsconfigGlobal');
|
---|