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->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 */ 47 public function create($parent, CertificateMapEntry $postBody, $optParams = []) 48 { 49 $params = ['parent' => $parent, 'postBody' => $postBody]; 50 $params = array_merge($params, $optParams); 51 return $this->call('create', [$params], Operation::class); 52 } 53 /** 54 * Deletes a single CertificateMapEntry. (certificateMapEntries.delete) 55 * 56 * @param string $name Required. A name of the certificate map entry to delete. 57 * Must be in the format 58 * `projects/locations/certificateMaps/certificateMapEntries`. 59 * @param array $optParams Optional parameters. 60 * @return Operation 61 */ 62 public function delete($name, $optParams = []) 63 { 64 $params = ['name' => $name]; 65 $params = array_merge($params, $optParams); 66 return $this->call('delete', [$params], Operation::class); 67 } 68 /** 69 * Gets details of a single CertificateMapEntry. (certificateMapEntries.get) 70 * 71 * @param string $name Required. A name of the certificate map entry to 72 * describe. Must be in the format 73 * `projects/locations/certificateMaps/certificateMapEntries`. 74 * @param array $optParams Optional parameters. 75 * @return CertificateMapEntry 76 */ 77 public function get($name, $optParams = []) 78 { 79 $params = ['name' => $name]; 80 $params = array_merge($params, $optParams); 81 return $this->call('get', [$params], CertificateMapEntry::class); 82 } 83 /** 84 * Lists CertificateMapEntries in a given project and location. (certificateMapE 85 * ntries.listProjectsLocationsCertificateMapsCertificateMapEntries) 86 * 87 * @param string $parent Required. The project, location and certificate map 88 * from which the certificate map entries should be listed, specified in the 89 * format `projects/locations/certificateMaps`. 90 * @param array $optParams Optional parameters. 91 * 92 * @opt_param string filter Filter expression to restrict the returned 93 * Certificate Map Entries. 94 * @opt_param string orderBy A list of Certificate Map Entry field names used to 95 * specify the order of the returned results. The default sorting order is 96 * ascending. To specify descending order for a field, add a suffix " desc". 97 * @opt_param int pageSize Maximum number of certificate map entries to return. 98 * The service may return fewer than this value. If unspecified, at most 50 99 * certificate map entries will be returned. The maximum value is 1000; values 100 * above 1000 will be coerced to 1000. 101 * @opt_param string pageToken The value returned by the last 102 * `ListCertificateMapEntriesResponse`. Indicates that this is a continuation of 103 * a prior `ListCertificateMapEntries` call, and that the system should return 104 * the next page of data. 105 * @return ListCertificateMapEntriesResponse 106 */ 107 public function listProjectsLocationsCertificateMapsCertificateMapEntries($parent, $optParams = []) 108 { 109 $params = ['parent' => $parent]; 110 $params = array_merge($params, $optParams); 111 return $this->call('list', [$params], ListCertificateMapEntriesResponse::class); 112 } 113 /** 114 * Updates a CertificateMapEntry. (certificateMapEntries.patch) 115 * 116 * @param string $name A user-defined name of the Certificate Map Entry. 117 * Certificate Map Entry names must be unique globally and match pattern 118 * `projects/locations/certificateMaps/certificateMapEntries`. 119 * @param CertificateMapEntry $postBody 120 * @param array $optParams Optional parameters. 121 * 122 * @opt_param string updateMask Required. The update mask applies to the 123 * resource. For the `FieldMask` definition, see https://developers.google.com 124 * /protocol-buffers/docs/reference/google.protobuf#fieldmask. 125 * @return Operation 126 */ 127 public function patch($name, CertificateMapEntry $postBody, $optParams = []) 128 { 129 $params = ['name' => $name, 'postBody' => $postBody]; 130 $params = array_merge($params, $optParams); 131 return $this->call('patch', [$params], Operation::class); 132 } 133} 134 135// Adding a class alias for backwards compatibility with the previous class name. 136class_alias(ProjectsLocationsCertificateMapsCertificateMapEntries::class, 'Google_Service_CertificateManager_Resource_ProjectsLocationsCertificateMapsCertificateMapEntries'); 137