AWSV4Signature.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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\Compute;
  18. class AWSV4Signature extends \Google\Model
  19. {
  20. /**
  21. * The access key used for s3 bucket authentication. Required for updating or
  22. * creating a backend that uses AWS v4 signature authentication, but will not
  23. * be returned as part of the configuration when queried with a REST API GET
  24. * request.
  25. *
  26. * @InputOnly
  27. *
  28. * @var string
  29. */
  30. public $accessKey;
  31. /**
  32. * The identifier of an access key used for s3 bucket authentication.
  33. *
  34. * @var string
  35. */
  36. public $accessKeyId;
  37. /**
  38. * The optional version identifier for the access key. You can use this to
  39. * keep track of different iterations of your access key.
  40. *
  41. * @var string
  42. */
  43. public $accessKeyVersion;
  44. /**
  45. * The name of the cloud region of your origin. This is a free-form field with
  46. * the name of the region your cloud uses to host your origin. For example,
  47. * "us-east-1" for AWS or "us-ashburn-1" for OCI.
  48. *
  49. * @var string
  50. */
  51. public $originRegion;
  52. /**
  53. * The access key used for s3 bucket authentication. Required for updating or
  54. * creating a backend that uses AWS v4 signature authentication, but will not
  55. * be returned as part of the configuration when queried with a REST API GET
  56. * request.
  57. *
  58. * @InputOnly
  59. *
  60. * @param string $accessKey
  61. */
  62. public function setAccessKey($accessKey)
  63. {
  64. $this->accessKey = $accessKey;
  65. }
  66. /**
  67. * @return string
  68. */
  69. public function getAccessKey()
  70. {
  71. return $this->accessKey;
  72. }
  73. /**
  74. * The identifier of an access key used for s3 bucket authentication.
  75. *
  76. * @param string $accessKeyId
  77. */
  78. public function setAccessKeyId($accessKeyId)
  79. {
  80. $this->accessKeyId = $accessKeyId;
  81. }
  82. /**
  83. * @return string
  84. */
  85. public function getAccessKeyId()
  86. {
  87. return $this->accessKeyId;
  88. }
  89. /**
  90. * The optional version identifier for the access key. You can use this to
  91. * keep track of different iterations of your access key.
  92. *
  93. * @param string $accessKeyVersion
  94. */
  95. public function setAccessKeyVersion($accessKeyVersion)
  96. {
  97. $this->accessKeyVersion = $accessKeyVersion;
  98. }
  99. /**
  100. * @return string
  101. */
  102. public function getAccessKeyVersion()
  103. {
  104. return $this->accessKeyVersion;
  105. }
  106. /**
  107. * The name of the cloud region of your origin. This is a free-form field with
  108. * the name of the region your cloud uses to host your origin. For example,
  109. * "us-east-1" for AWS or "us-ashburn-1" for OCI.
  110. *
  111. * @param string $originRegion
  112. */
  113. public function setOriginRegion($originRegion)
  114. {
  115. $this->originRegion = $originRegion;
  116. }
  117. /**
  118. * @return string
  119. */
  120. public function getOriginRegion()
  121. {
  122. return $this->originRegion;
  123. }
  124. }
  125. // Adding a class alias for backwards compatibility with the previous class name.
  126. class_alias(AWSV4Signature::class, 'Google_Service_Compute_AWSV4Signature');