source: vendor/google/apiclient-services/src/Baremetalsolution/Resource/ProjectsLocationsProvisioningConfigs.php

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

Upload project files

  • Property mode set to 100644
File size: 4.1 KB
Line 
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\Baremetalsolution\Resource;
19
20use Google\Service\Baremetalsolution\ProvisioningConfig;
21use Google\Service\Baremetalsolution\SubmitProvisioningConfigRequest;
22use Google\Service\Baremetalsolution\SubmitProvisioningConfigResponse;
23
24/**
25 * The "provisioningConfigs" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
29 * $provisioningConfigs = $baremetalsolutionService->projects_locations_provisioningConfigs;
30 * </code>
31 */
32class ProjectsLocationsProvisioningConfigs extends \Google\Service\Resource
33{
34 /**
35 * Create new ProvisioningConfig. (provisioningConfigs.create)
36 *
37 * @param string $parent Required. The parent project and location containing
38 * the ProvisioningConfig.
39 * @param ProvisioningConfig $postBody
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string email Optional. Email provided to send a confirmation with
43 * provisioning config to.
44 * @return ProvisioningConfig
45 * @throws \Google\Service\Exception
46 */
47 public function create($parent, ProvisioningConfig $postBody, $optParams = [])
48 {
49 $params = ['parent' => $parent, 'postBody' => $postBody];
50 $params = array_merge($params, $optParams);
51 return $this->call('create', [$params], ProvisioningConfig::class);
52 }
53 /**
54 * Get ProvisioningConfig by name. (provisioningConfigs.get)
55 *
56 * @param string $name Required. Name of the ProvisioningConfig.
57 * @param array $optParams Optional parameters.
58 * @return ProvisioningConfig
59 * @throws \Google\Service\Exception
60 */
61 public function get($name, $optParams = [])
62 {
63 $params = ['name' => $name];
64 $params = array_merge($params, $optParams);
65 return $this->call('get', [$params], ProvisioningConfig::class);
66 }
67 /**
68 * Update existing ProvisioningConfig. (provisioningConfigs.patch)
69 *
70 * @param string $name Output only. The system-generated name of the
71 * provisioning config. This follows the UUID format.
72 * @param ProvisioningConfig $postBody
73 * @param array $optParams Optional parameters.
74 *
75 * @opt_param string email Optional. Email provided to send a confirmation with
76 * provisioning config to.
77 * @opt_param string updateMask Required. The list of fields to update.
78 * @return ProvisioningConfig
79 * @throws \Google\Service\Exception
80 */
81 public function patch($name, ProvisioningConfig $postBody, $optParams = [])
82 {
83 $params = ['name' => $name, 'postBody' => $postBody];
84 $params = array_merge($params, $optParams);
85 return $this->call('patch', [$params], ProvisioningConfig::class);
86 }
87 /**
88 * Submit a provisiong configuration for a given project.
89 * (provisioningConfigs.submit)
90 *
91 * @param string $parent Required. The parent project and location containing
92 * the ProvisioningConfig.
93 * @param SubmitProvisioningConfigRequest $postBody
94 * @param array $optParams Optional parameters.
95 * @return SubmitProvisioningConfigResponse
96 * @throws \Google\Service\Exception
97 */
98 public function submit($parent, SubmitProvisioningConfigRequest $postBody, $optParams = [])
99 {
100 $params = ['parent' => $parent, 'postBody' => $postBody];
101 $params = array_merge($params, $optParams);
102 return $this->call('submit', [$params], SubmitProvisioningConfigResponse::class);
103 }
104}
105
106// Adding a class alias for backwards compatibility with the previous class name.
107class_alias(ProjectsLocationsProvisioningConfigs::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsProvisioningConfigs');
Note: See TracBrowser for help on using the repository browser.