[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;
|
---|
| 19 |
|
---|
| 20 | use Google\Client;
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * Service definition for PublicCertificateAuthority (v1).
|
---|
| 24 | *
|
---|
| 25 | * <p>
|
---|
| 26 | * The Public Certificate Authority API may be used to create and manage ACME
|
---|
| 27 | * external account binding keys associated with Google Trust Services' publicly
|
---|
| 28 | * trusted certificate authority.</p>
|
---|
| 29 | *
|
---|
| 30 | * <p>
|
---|
| 31 | * For more information about this service, see the API
|
---|
| 32 | * <a href="https://cloud.google.com/public-certificate-authority/docs" target="_blank">Documentation</a>
|
---|
| 33 | * </p>
|
---|
| 34 | *
|
---|
| 35 | * @author Google, Inc.
|
---|
| 36 | */
|
---|
| 37 | class PublicCertificateAuthority extends \Google\Service
|
---|
| 38 | {
|
---|
| 39 | /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
|
---|
| 40 | const CLOUD_PLATFORM =
|
---|
| 41 | "https://www.googleapis.com/auth/cloud-platform";
|
---|
| 42 |
|
---|
| 43 | public $projects_locations_externalAccountKeys;
|
---|
| 44 | public $rootUrlTemplate;
|
---|
| 45 |
|
---|
| 46 | /**
|
---|
| 47 | * Constructs the internal representation of the PublicCertificateAuthority
|
---|
| 48 | * service.
|
---|
| 49 | *
|
---|
| 50 | * @param Client|array $clientOrConfig The client used to deliver requests, or a
|
---|
| 51 | * config array to pass to a new Client instance.
|
---|
| 52 | * @param string $rootUrl The root URL used for requests to the service.
|
---|
| 53 | */
|
---|
| 54 | public function __construct($clientOrConfig = [], $rootUrl = null)
|
---|
| 55 | {
|
---|
| 56 | parent::__construct($clientOrConfig);
|
---|
| 57 | $this->rootUrl = $rootUrl ?: 'https://publicca.googleapis.com/';
|
---|
| 58 | $this->rootUrlTemplate = $rootUrl ?: 'https://publicca.UNIVERSE_DOMAIN/';
|
---|
| 59 | $this->servicePath = '';
|
---|
| 60 | $this->batchPath = 'batch';
|
---|
| 61 | $this->version = 'v1';
|
---|
| 62 | $this->serviceName = 'publicca';
|
---|
| 63 |
|
---|
| 64 | $this->projects_locations_externalAccountKeys = new PublicCertificateAuthority\Resource\ProjectsLocationsExternalAccountKeys(
|
---|
| 65 | $this,
|
---|
| 66 | $this->serviceName,
|
---|
| 67 | 'externalAccountKeys',
|
---|
| 68 | [
|
---|
| 69 | 'methods' => [
|
---|
| 70 | 'create' => [
|
---|
| 71 | 'path' => 'v1/{+parent}/externalAccountKeys',
|
---|
| 72 | 'httpMethod' => 'POST',
|
---|
| 73 | 'parameters' => [
|
---|
| 74 | 'parent' => [
|
---|
| 75 | 'location' => 'path',
|
---|
| 76 | 'type' => 'string',
|
---|
| 77 | 'required' => true,
|
---|
| 78 | ],
|
---|
| 79 | ],
|
---|
| 80 | ],
|
---|
| 81 | ]
|
---|
| 82 | ]
|
---|
| 83 | );
|
---|
| 84 | }
|
---|
| 85 | }
|
---|
| 86 |
|
---|
| 87 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 88 | class_alias(PublicCertificateAuthority::class, 'Google_Service_PublicCertificateAuthority');
|
---|