source: vendor/google/apiclient-services/src/CertificateManager/Resource/ProjectsLocationsCertificateIssuanceConfigs.php

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

Upload project files

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