[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\Appengine\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\Appengine\AppengineEmpty;
|
---|
| 21 | use Google\Service\Appengine\AuthorizedCertificate;
|
---|
| 22 | use Google\Service\Appengine\ListAuthorizedCertificatesResponse;
|
---|
| 23 |
|
---|
| 24 | /**
|
---|
| 25 | * The "authorizedCertificates" collection of methods.
|
---|
| 26 | * Typical usage is:
|
---|
| 27 | * <code>
|
---|
| 28 | * $appengineService = new Google\Service\Appengine(...);
|
---|
| 29 | * $authorizedCertificates = $appengineService->apps_authorizedCertificates;
|
---|
| 30 | * </code>
|
---|
| 31 | */
|
---|
| 32 | class AppsAuthorizedCertificates extends \Google\Service\Resource
|
---|
| 33 | {
|
---|
| 34 | /**
|
---|
| 35 | * Uploads the specified SSL certificate. (authorizedCertificates.create)
|
---|
| 36 | *
|
---|
| 37 | * @param string $appsId Part of `parent`. Name of the parent Application
|
---|
| 38 | * resource. Example: apps/myapp.
|
---|
| 39 | * @param AuthorizedCertificate $postBody
|
---|
| 40 | * @param array $optParams Optional parameters.
|
---|
| 41 | * @return AuthorizedCertificate
|
---|
| 42 | * @throws \Google\Service\Exception
|
---|
| 43 | */
|
---|
| 44 | public function create($appsId, AuthorizedCertificate $postBody, $optParams = [])
|
---|
| 45 | {
|
---|
| 46 | $params = ['appsId' => $appsId, 'postBody' => $postBody];
|
---|
| 47 | $params = array_merge($params, $optParams);
|
---|
| 48 | return $this->call('create', [$params], AuthorizedCertificate::class);
|
---|
| 49 | }
|
---|
| 50 | /**
|
---|
| 51 | * Deletes the specified SSL certificate. (authorizedCertificates.delete)
|
---|
| 52 | *
|
---|
| 53 | * @param string $appsId Part of `name`. Name of the resource to delete.
|
---|
| 54 | * Example: apps/myapp/authorizedCertificates/12345.
|
---|
| 55 | * @param string $authorizedCertificatesId Part of `name`. See documentation of
|
---|
| 56 | * `appsId`.
|
---|
| 57 | * @param array $optParams Optional parameters.
|
---|
| 58 | * @return AppengineEmpty
|
---|
| 59 | * @throws \Google\Service\Exception
|
---|
| 60 | */
|
---|
| 61 | public function delete($appsId, $authorizedCertificatesId, $optParams = [])
|
---|
| 62 | {
|
---|
| 63 | $params = ['appsId' => $appsId, 'authorizedCertificatesId' => $authorizedCertificatesId];
|
---|
| 64 | $params = array_merge($params, $optParams);
|
---|
| 65 | return $this->call('delete', [$params], AppengineEmpty::class);
|
---|
| 66 | }
|
---|
| 67 | /**
|
---|
| 68 | * Gets the specified SSL certificate. (authorizedCertificates.get)
|
---|
| 69 | *
|
---|
| 70 | * @param string $appsId Part of `name`. Name of the resource requested.
|
---|
| 71 | * Example: apps/myapp/authorizedCertificates/12345.
|
---|
| 72 | * @param string $authorizedCertificatesId Part of `name`. See documentation of
|
---|
| 73 | * `appsId`.
|
---|
| 74 | * @param array $optParams Optional parameters.
|
---|
| 75 | *
|
---|
| 76 | * @opt_param string view Controls the set of fields returned in the GET
|
---|
| 77 | * response.
|
---|
| 78 | * @return AuthorizedCertificate
|
---|
| 79 | * @throws \Google\Service\Exception
|
---|
| 80 | */
|
---|
| 81 | public function get($appsId, $authorizedCertificatesId, $optParams = [])
|
---|
| 82 | {
|
---|
| 83 | $params = ['appsId' => $appsId, 'authorizedCertificatesId' => $authorizedCertificatesId];
|
---|
| 84 | $params = array_merge($params, $optParams);
|
---|
| 85 | return $this->call('get', [$params], AuthorizedCertificate::class);
|
---|
| 86 | }
|
---|
| 87 | /**
|
---|
| 88 | * Lists all SSL certificates the user is authorized to administer.
|
---|
| 89 | * (authorizedCertificates.listAppsAuthorizedCertificates)
|
---|
| 90 | *
|
---|
| 91 | * @param string $appsId Part of `parent`. Name of the parent Application
|
---|
| 92 | * resource. Example: apps/myapp.
|
---|
| 93 | * @param array $optParams Optional parameters.
|
---|
| 94 | *
|
---|
| 95 | * @opt_param int pageSize Maximum results to return per page.
|
---|
| 96 | * @opt_param string pageToken Continuation token for fetching the next page of
|
---|
| 97 | * results.
|
---|
| 98 | * @opt_param string view Controls the set of fields returned in the LIST
|
---|
| 99 | * response.
|
---|
| 100 | * @return ListAuthorizedCertificatesResponse
|
---|
| 101 | * @throws \Google\Service\Exception
|
---|
| 102 | */
|
---|
| 103 | public function listAppsAuthorizedCertificates($appsId, $optParams = [])
|
---|
| 104 | {
|
---|
| 105 | $params = ['appsId' => $appsId];
|
---|
| 106 | $params = array_merge($params, $optParams);
|
---|
| 107 | return $this->call('list', [$params], ListAuthorizedCertificatesResponse::class);
|
---|
| 108 | }
|
---|
| 109 | /**
|
---|
| 110 | * Updates the specified SSL certificate. To renew a certificate and maintain
|
---|
| 111 | * its existing domain mappings, update certificate_data with a new certificate.
|
---|
| 112 | * The new certificate must be applicable to the same domains as the original
|
---|
| 113 | * certificate. The certificate display_name may also be updated.
|
---|
| 114 | * (authorizedCertificates.patch)
|
---|
| 115 | *
|
---|
| 116 | * @param string $appsId Part of `name`. Name of the resource to update.
|
---|
| 117 | * Example: apps/myapp/authorizedCertificates/12345.
|
---|
| 118 | * @param string $authorizedCertificatesId Part of `name`. See documentation of
|
---|
| 119 | * `appsId`.
|
---|
| 120 | * @param AuthorizedCertificate $postBody
|
---|
| 121 | * @param array $optParams Optional parameters.
|
---|
| 122 | *
|
---|
| 123 | * @opt_param string updateMask Standard field mask for the set of fields to be
|
---|
| 124 | * updated. Updates are only supported on the certificate_raw_data and
|
---|
| 125 | * display_name fields.
|
---|
| 126 | * @return AuthorizedCertificate
|
---|
| 127 | * @throws \Google\Service\Exception
|
---|
| 128 | */
|
---|
| 129 | public function patch($appsId, $authorizedCertificatesId, AuthorizedCertificate $postBody, $optParams = [])
|
---|
| 130 | {
|
---|
| 131 | $params = ['appsId' => $appsId, 'authorizedCertificatesId' => $authorizedCertificatesId, 'postBody' => $postBody];
|
---|
| 132 | $params = array_merge($params, $optParams);
|
---|
| 133 | return $this->call('patch', [$params], AuthorizedCertificate::class);
|
---|
| 134 | }
|
---|
| 135 | }
|
---|
| 136 |
|
---|
| 137 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 138 | class_alias(AppsAuthorizedCertificates::class, 'Google_Service_Appengine_Resource_AppsAuthorizedCertificates');
|
---|