source: vendor/google/apiclient-services/src/CloudComposer/Resource/ProjectsLocationsEnvironmentsUserWorkloadsConfigMaps.php

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

Upload project files

  • Property mode set to 100644
File size: 5.6 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\CloudComposer\Resource;
19
20use Google\Service\CloudComposer\ComposerEmpty;
21use Google\Service\CloudComposer\ListUserWorkloadsConfigMapsResponse;
22use Google\Service\CloudComposer\UserWorkloadsConfigMap;
23
24/**
25 * The "userWorkloadsConfigMaps" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $composerService = new Google\Service\CloudComposer(...);
29 * $userWorkloadsConfigMaps = $composerService->projects_locations_environments_userWorkloadsConfigMaps;
30 * </code>
31 */
32class ProjectsLocationsEnvironmentsUserWorkloadsConfigMaps extends \Google\Service\Resource
33{
34 /**
35 * Creates a user workloads ConfigMap. This method is supported for Cloud
36 * Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
37 * (userWorkloadsConfigMaps.create)
38 *
39 * @param string $parent Required. The environment name to create a ConfigMap
40 * for, in the form:
41 * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
42 * @param UserWorkloadsConfigMap $postBody
43 * @param array $optParams Optional parameters.
44 * @return UserWorkloadsConfigMap
45 * @throws \Google\Service\Exception
46 */
47 public function create($parent, UserWorkloadsConfigMap $postBody, $optParams = [])
48 {
49 $params = ['parent' => $parent, 'postBody' => $postBody];
50 $params = array_merge($params, $optParams);
51 return $this->call('create', [$params], UserWorkloadsConfigMap::class);
52 }
53 /**
54 * Deletes a user workloads ConfigMap. This method is supported for Cloud
55 * Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
56 * (userWorkloadsConfigMaps.delete)
57 *
58 * @param string $name Required. The ConfigMap to delete, in the form: "projects
59 * /{projectId}/locations/{locationId}/environments/{environmentId}/userWorkload
60 * sConfigMaps/{userWorkloadsConfigMapId}"
61 * @param array $optParams Optional parameters.
62 * @return ComposerEmpty
63 * @throws \Google\Service\Exception
64 */
65 public function delete($name, $optParams = [])
66 {
67 $params = ['name' => $name];
68 $params = array_merge($params, $optParams);
69 return $this->call('delete', [$params], ComposerEmpty::class);
70 }
71 /**
72 * Gets an existing user workloads ConfigMap. This method is supported for Cloud
73 * Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
74 * (userWorkloadsConfigMaps.get)
75 *
76 * @param string $name Required. The resource name of the ConfigMap to get, in
77 * the form: "projects/{projectId}/locations/{locationId}/environments/{environm
78 * entId}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"
79 * @param array $optParams Optional parameters.
80 * @return UserWorkloadsConfigMap
81 * @throws \Google\Service\Exception
82 */
83 public function get($name, $optParams = [])
84 {
85 $params = ['name' => $name];
86 $params = array_merge($params, $optParams);
87 return $this->call('get', [$params], UserWorkloadsConfigMap::class);
88 }
89 /**
90 * Lists user workloads ConfigMaps. This method is supported for Cloud Composer
91 * environments in versions composer-3.*.*-airflow-*.*.* and newer. (userWorkloa
92 * dsConfigMaps.listProjectsLocationsEnvironmentsUserWorkloadsConfigMaps)
93 *
94 * @param string $parent Required. List ConfigMaps in the given environment, in
95 * the form:
96 * "projects/{projectId}/locations/{locationId}/environments/{environmentId}"
97 * @param array $optParams Optional parameters.
98 *
99 * @opt_param int pageSize Optional. The maximum number of ConfigMaps to return.
100 * @opt_param string pageToken Optional. The next_page_token value returned from
101 * a previous List request, if any.
102 * @return ListUserWorkloadsConfigMapsResponse
103 * @throws \Google\Service\Exception
104 */
105 public function listProjectsLocationsEnvironmentsUserWorkloadsConfigMaps($parent, $optParams = [])
106 {
107 $params = ['parent' => $parent];
108 $params = array_merge($params, $optParams);
109 return $this->call('list', [$params], ListUserWorkloadsConfigMapsResponse::class);
110 }
111 /**
112 * Updates a user workloads ConfigMap. This method is supported for Cloud
113 * Composer environments in versions composer-3.*.*-airflow-*.*.* and newer.
114 * (userWorkloadsConfigMaps.update)
115 *
116 * @param string $name Identifier. The resource name of the ConfigMap, in the
117 * form: "projects/{projectId}/locations/{locationId}/environments/{environmentI
118 * d}/userWorkloadsConfigMaps/{userWorkloadsConfigMapId}"
119 * @param UserWorkloadsConfigMap $postBody
120 * @param array $optParams Optional parameters.
121 * @return UserWorkloadsConfigMap
122 * @throws \Google\Service\Exception
123 */
124 public function update($name, UserWorkloadsConfigMap $postBody, $optParams = [])
125 {
126 $params = ['name' => $name, 'postBody' => $postBody];
127 $params = array_merge($params, $optParams);
128 return $this->call('update', [$params], UserWorkloadsConfigMap::class);
129 }
130}
131
132// Adding a class alias for backwards compatibility with the previous class name.
133class_alias(ProjectsLocationsEnvironmentsUserWorkloadsConfigMaps::class, 'Google_Service_CloudComposer_Resource_ProjectsLocationsEnvironmentsUserWorkloadsConfigMaps');
Note: See TracBrowser for help on using the repository browser.