source: vendor/google/apiclient-services/src/CertificateManager/Resource/ProjectsLocationsCertificateMapsCertificateMapEntries.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 6.0 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\CertificateMapEntry;
21use Google\Service\CertificateManager\ListCertificateMapEntriesResponse;
22use Google\Service\CertificateManager\Operation;
23
24/**
25 * The "certificateMapEntries" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $certificatemanagerService = new Google\Service\CertificateManager(...);
29 * $certificateMapEntries = $certificatemanagerService->projects_locations_certificateMaps_certificateMapEntries;
30 * </code>
31 */
32class ProjectsLocationsCertificateMapsCertificateMapEntries extends \Google\Service\Resource
33{
34 /**
35 * Creates a new CertificateMapEntry in a given project and location.
36 * (certificateMapEntries.create)
37 *
38 * @param string $parent Required. The parent resource of the certificate map
39 * entry. Must be in the format `projects/locations/certificateMaps`.
40 * @param CertificateMapEntry $postBody
41 * @param array $optParams Optional parameters.
42 *
43 * @opt_param string certificateMapEntryId Required. A user-provided name of the
44 * certificate map entry.
45 * @return Operation
46 * @throws \Google\Service\Exception
47 */
48 public function create($parent, CertificateMapEntry $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 CertificateMapEntry. (certificateMapEntries.delete)
56 *
57 * @param string $name Required. A name of the certificate map entry to delete.
58 * Must be in the format
59 * `projects/locations/certificateMaps/certificateMapEntries`.
60 * @param array $optParams Optional parameters.
61 * @return Operation
62 * @throws \Google\Service\Exception
63 */
64 public function delete($name, $optParams = [])
65 {
66 $params = ['name' => $name];
67 $params = array_merge($params, $optParams);
68 return $this->call('delete', [$params], Operation::class);
69 }
70 /**
71 * Gets details of a single CertificateMapEntry. (certificateMapEntries.get)
72 *
73 * @param string $name Required. A name of the certificate map entry to
74 * describe. Must be in the format
75 * `projects/locations/certificateMaps/certificateMapEntries`.
76 * @param array $optParams Optional parameters.
77 * @return CertificateMapEntry
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], CertificateMapEntry::class);
85 }
86 /**
87 * Lists CertificateMapEntries in a given project and location. (certificateMapE
88 * ntries.listProjectsLocationsCertificateMapsCertificateMapEntries)
89 *
90 * @param string $parent Required. The project, location and certificate map
91 * from which the certificate map entries should be listed, specified in the
92 * format `projects/locations/certificateMaps`.
93 * @param array $optParams Optional parameters.
94 *
95 * @opt_param string filter Optional. Filter expression to restrict the returned
96 * Certificate Map Entries.
97 * @opt_param string orderBy Optional. A list of Certificate Map Entry field
98 * names used to specify the order of the returned results. The default sorting
99 * order is ascending. To specify descending order for a field, add a suffix `"
100 * desc"`.
101 * @opt_param int pageSize Optional. Maximum number of certificate map entries
102 * to return. The service may return fewer than this value. If unspecified, at
103 * most 50 certificate map entries will be returned. The maximum value is 1000;
104 * values above 1000 will be coerced to 1000.
105 * @opt_param string pageToken Optional. The value returned by the last
106 * `ListCertificateMapEntriesResponse`. Indicates that this is a continuation of
107 * a prior `ListCertificateMapEntries` call, and that the system should return
108 * the next page of data.
109 * @return ListCertificateMapEntriesResponse
110 * @throws \Google\Service\Exception
111 */
112 public function listProjectsLocationsCertificateMapsCertificateMapEntries($parent, $optParams = [])
113 {
114 $params = ['parent' => $parent];
115 $params = array_merge($params, $optParams);
116 return $this->call('list', [$params], ListCertificateMapEntriesResponse::class);
117 }
118 /**
119 * Updates a CertificateMapEntry. (certificateMapEntries.patch)
120 *
121 * @param string $name Identifier. A user-defined name of the Certificate Map
122 * Entry. Certificate Map Entry names must be unique globally and match pattern
123 * `projects/locations/certificateMaps/certificateMapEntries`.
124 * @param CertificateMapEntry $postBody
125 * @param array $optParams Optional parameters.
126 *
127 * @opt_param string updateMask Required. The update mask applies to the
128 * resource. For the `FieldMask` definition, see
129 * https://developers.google.com/protocol-
130 * buffers/docs/reference/google.protobuf#fieldmask.
131 * @return Operation
132 * @throws \Google\Service\Exception
133 */
134 public function patch($name, CertificateMapEntry $postBody, $optParams = [])
135 {
136 $params = ['name' => $name, 'postBody' => $postBody];
137 $params = array_merge($params, $optParams);
138 return $this->call('patch', [$params], Operation::class);
139 }
140}
141
142// Adding a class alias for backwards compatibility with the previous class name.
143class_alias(ProjectsLocationsCertificateMapsCertificateMapEntries::class, 'Google_Service_CertificateManager_Resource_ProjectsLocationsCertificateMapsCertificateMapEntries');
Note: See TracBrowser for help on using the repository browser.