PublicCertificateAuthority.php 2.9 KB

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