ManagedIdentityCertificate.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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\CertificateManager;
  18. class ManagedIdentityCertificate extends \Google\Model
  19. {
  20. /**
  21. * State is unspecified.
  22. */
  23. public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
  24. /**
  25. * Certificate Manager attempts to provision or renew the certificate. If the
  26. * process takes longer than expected, consult the `provisioning_issue` field.
  27. */
  28. public const STATE_PROVISIONING = 'PROVISIONING';
  29. /**
  30. * Multiple certificate provisioning attempts failed and Certificate Manager
  31. * gave up. To try again, delete and create a new managed Certificate
  32. * resource. For details see the `provisioning_issue` field.
  33. */
  34. public const STATE_FAILED = 'FAILED';
  35. /**
  36. * The certificate management is working, and a certificate has been
  37. * provisioned.
  38. */
  39. public const STATE_ACTIVE = 'ACTIVE';
  40. /**
  41. * Required. Immutable. SPIFFE ID of the Managed Identity used for this
  42. * certificate.
  43. *
  44. * @var string
  45. */
  46. public $identity;
  47. protected $provisioningIssueType = ProvisioningIssue::class;
  48. protected $provisioningIssueDataType = '';
  49. /**
  50. * Output only. State of the managed certificate resource.
  51. *
  52. * @var string
  53. */
  54. public $state;
  55. /**
  56. * Required. Immutable. SPIFFE ID of the Managed Identity used for this
  57. * certificate.
  58. *
  59. * @param string $identity
  60. */
  61. public function setIdentity($identity)
  62. {
  63. $this->identity = $identity;
  64. }
  65. /**
  66. * @return string
  67. */
  68. public function getIdentity()
  69. {
  70. return $this->identity;
  71. }
  72. /**
  73. * Output only. Information about issues with provisioning a managed
  74. * certificate.
  75. *
  76. * @param ProvisioningIssue $provisioningIssue
  77. */
  78. public function setProvisioningIssue(ProvisioningIssue $provisioningIssue)
  79. {
  80. $this->provisioningIssue = $provisioningIssue;
  81. }
  82. /**
  83. * @return ProvisioningIssue
  84. */
  85. public function getProvisioningIssue()
  86. {
  87. return $this->provisioningIssue;
  88. }
  89. /**
  90. * Output only. State of the managed certificate resource.
  91. *
  92. * Accepted values: STATE_UNSPECIFIED, PROVISIONING, FAILED, ACTIVE
  93. *
  94. * @param self::STATE_* $state
  95. */
  96. public function setState($state)
  97. {
  98. $this->state = $state;
  99. }
  100. /**
  101. * @return self::STATE_*
  102. */
  103. public function getState()
  104. {
  105. return $this->state;
  106. }
  107. }
  108. // Adding a class alias for backwards compatibility with the previous class name.
  109. class_alias(ManagedIdentityCertificate::class, 'Google_Service_CertificateManager_ManagedIdentityCertificate');