source: vendor/google/apiclient-services/src/Dataform/Resource/ProjectsLocationsRepositoriesReleaseConfigs.php

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

Upload project files

  • Property mode set to 100644
File size: 5.2 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\Dataform\Resource;
19
20use Google\Service\Dataform\DataformEmpty;
21use Google\Service\Dataform\ListReleaseConfigsResponse;
22use Google\Service\Dataform\ReleaseConfig;
23
24/**
25 * The "releaseConfigs" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $dataformService = new Google\Service\Dataform(...);
29 * $releaseConfigs = $dataformService->projects_locations_repositories_releaseConfigs;
30 * </code>
31 */
32class ProjectsLocationsRepositoriesReleaseConfigs extends \Google\Service\Resource
33{
34 /**
35 * Creates a new ReleaseConfig in a given Repository. (releaseConfigs.create)
36 *
37 * @param string $parent Required. The repository in which to create the release
38 * config. Must be in the format `projects/locations/repositories`.
39 * @param ReleaseConfig $postBody
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string releaseConfigId Required. The ID to use for the release
43 * config, which will become the final component of the release config's
44 * resource name.
45 * @return ReleaseConfig
46 * @throws \Google\Service\Exception
47 */
48 public function create($parent, ReleaseConfig $postBody, $optParams = [])
49 {
50 $params = ['parent' => $parent, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('create', [$params], ReleaseConfig::class);
53 }
54 /**
55 * Deletes a single ReleaseConfig. (releaseConfigs.delete)
56 *
57 * @param string $name Required. The release config's name.
58 * @param array $optParams Optional parameters.
59 * @return DataformEmpty
60 * @throws \Google\Service\Exception
61 */
62 public function delete($name, $optParams = [])
63 {
64 $params = ['name' => $name];
65 $params = array_merge($params, $optParams);
66 return $this->call('delete', [$params], DataformEmpty::class);
67 }
68 /**
69 * Fetches a single ReleaseConfig. (releaseConfigs.get)
70 *
71 * @param string $name Required. The release config's name.
72 * @param array $optParams Optional parameters.
73 * @return ReleaseConfig
74 * @throws \Google\Service\Exception
75 */
76 public function get($name, $optParams = [])
77 {
78 $params = ['name' => $name];
79 $params = array_merge($params, $optParams);
80 return $this->call('get', [$params], ReleaseConfig::class);
81 }
82 /**
83 * Lists ReleaseConfigs in a given Repository.
84 * (releaseConfigs.listProjectsLocationsRepositoriesReleaseConfigs)
85 *
86 * @param string $parent Required. The repository in which to list release
87 * configs. Must be in the format `projects/locations/repositories`.
88 * @param array $optParams Optional parameters.
89 *
90 * @opt_param int pageSize Optional. Maximum number of release configs to
91 * return. The server may return fewer items than requested. If unspecified, the
92 * server will pick an appropriate default.
93 * @opt_param string pageToken Optional. Page token received from a previous
94 * `ListReleaseConfigs` call. Provide this to retrieve the subsequent page. When
95 * paginating, all other parameters provided to `ListReleaseConfigs`, with the
96 * exception of `page_size`, must match the call that provided the page token.
97 * @return ListReleaseConfigsResponse
98 * @throws \Google\Service\Exception
99 */
100 public function listProjectsLocationsRepositoriesReleaseConfigs($parent, $optParams = [])
101 {
102 $params = ['parent' => $parent];
103 $params = array_merge($params, $optParams);
104 return $this->call('list', [$params], ListReleaseConfigsResponse::class);
105 }
106 /**
107 * Updates a single ReleaseConfig. *Note:* This method does not fully implement
108 * AIP/134. In particular: 1. The wildcard entry (***) is treated as a bad
109 * request 2. When the *field_mask* is omitted, instead of only updating the set
110 * fields, the request is treated as a full update on all modifiable fields
111 * (releaseConfigs.patch)
112 *
113 * @param string $name Identifier. The release config's name.
114 * @param ReleaseConfig $postBody
115 * @param array $optParams Optional parameters.
116 *
117 * @opt_param string updateMask Optional. Specifies the fields to be updated in
118 * the release config. If left unset, all fields will be updated.
119 * @return ReleaseConfig
120 * @throws \Google\Service\Exception
121 */
122 public function patch($name, ReleaseConfig $postBody, $optParams = [])
123 {
124 $params = ['name' => $name, 'postBody' => $postBody];
125 $params = array_merge($params, $optParams);
126 return $this->call('patch', [$params], ReleaseConfig::class);
127 }
128}
129
130// Adding a class alias for backwards compatibility with the previous class name.
131class_alias(ProjectsLocationsRepositoriesReleaseConfigs::class, 'Google_Service_Dataform_Resource_ProjectsLocationsRepositoriesReleaseConfigs');
Note: See TracBrowser for help on using the repository browser.