source: vendor/google/apiclient-services/src/CertificateManager/Resource/ProjectsLocationsCertificateMaps.php@ e3d4e0a

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

Upload project files

  • Property mode set to 100644
File size: 5.5 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\CertificateManager\Resource;
19
20use Google\Service\CertificateManager\CertificateMap;
21use Google\Service\CertificateManager\ListCertificateMapsResponse;
22use Google\Service\CertificateManager\Operation;
23
24/**
25 * The "certificateMaps" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $certificatemanagerService = new Google\Service\CertificateManager(...);
29 * $certificateMaps = $certificatemanagerService->projects_locations_certificateMaps;
30 * </code>
31 */
32class ProjectsLocationsCertificateMaps extends \Google\Service\Resource
33{
34 /**
35 * Creates a new CertificateMap in a given project and location.
36 * (certificateMaps.create)
37 *
38 * @param string $parent Required. The parent resource of the certificate map.
39 * Must be in the format `projects/locations`.
40 * @param CertificateMap $postBody
41 * @param array $optParams Optional parameters.
42 *
43 * @opt_param string certificateMapId Required. A user-provided name of the
44 * certificate map.
45 * @return Operation
46 * @throws \Google\Service\Exception
47 */
48 public function create($parent, CertificateMap $postBody, $optParams = [])
49 {
50 $params = ['parent' => $parent, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('create', [$params], Operation::class);
53 }
54 /**
55 * Deletes a single CertificateMap. A Certificate Map can't be deleted if it
56 * contains Certificate Map Entries. Remove all the entries from the map before
57 * calling this method. (certificateMaps.delete)
58 *
59 * @param string $name Required. A name of the certificate map to delete. Must
60 * be in the format `projects/locations/certificateMaps`.
61 * @param array $optParams Optional parameters.
62 * @return Operation
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], Operation::class);
70 }
71 /**
72 * Gets details of a single CertificateMap. (certificateMaps.get)
73 *
74 * @param string $name Required. A name of the certificate map to describe. Must
75 * be in the format `projects/locations/certificateMaps`.
76 * @param array $optParams Optional parameters.
77 * @return CertificateMap
78 * @throws \Google\Service\Exception
79 */
80 public function get($name, $optParams = [])
81 {
82 $params = ['name' => $name];
83 $params = array_merge($params, $optParams);
84 return $this->call('get', [$params], CertificateMap::class);
85 }
86 /**
87 * Lists CertificateMaps in a given project and location.
88 * (certificateMaps.listProjectsLocationsCertificateMaps)
89 *
90 * @param string $parent Required. The project and location from which the
91 * certificate maps should be listed, specified in the format
92 * `projects/locations`.
93 * @param array $optParams Optional parameters.
94 *
95 * @opt_param string filter Optional. Filter expression to restrict the
96 * Certificates Maps returned.
97 * @opt_param string orderBy Optional. A list of Certificate Map field names
98 * used to specify the order of the returned results. The default sorting order
99 * is ascending. To specify descending order for a field, add a suffix `"
100 * desc"`.
101 * @opt_param int pageSize Optional. Maximum number of certificate maps to
102 * return per call.
103 * @opt_param string pageToken Optional. The value returned by the last
104 * `ListCertificateMapsResponse`. Indicates that this is a continuation of a
105 * prior `ListCertificateMaps` call, and that the system should return the next
106 * page of data.
107 * @return ListCertificateMapsResponse
108 * @throws \Google\Service\Exception
109 */
110 public function listProjectsLocationsCertificateMaps($parent, $optParams = [])
111 {
112 $params = ['parent' => $parent];
113 $params = array_merge($params, $optParams);
114 return $this->call('list', [$params], ListCertificateMapsResponse::class);
115 }
116 /**
117 * Updates a CertificateMap. (certificateMaps.patch)
118 *
119 * @param string $name Identifier. A user-defined name of the Certificate Map.
120 * Certificate Map names must be unique globally and match pattern
121 * `projects/locations/certificateMaps`.
122 * @param CertificateMap $postBody
123 * @param array $optParams Optional parameters.
124 *
125 * @opt_param string updateMask Required. The update mask applies to the
126 * resource. For the `FieldMask` definition, see
127 * https://developers.google.com/protocol-
128 * buffers/docs/reference/google.protobuf#fieldmask.
129 * @return Operation
130 * @throws \Google\Service\Exception
131 */
132 public function patch($name, CertificateMap $postBody, $optParams = [])
133 {
134 $params = ['name' => $name, 'postBody' => $postBody];
135 $params = array_merge($params, $optParams);
136 return $this->call('patch', [$params], Operation::class);
137 }
138}
139
140// Adding a class alias for backwards compatibility with the previous class name.
141class_alias(ProjectsLocationsCertificateMaps::class, 'Google_Service_CertificateManager_Resource_ProjectsLocationsCertificateMaps');
Note: See TracBrowser for help on using the repository browser.