SslPolicyWarnings.php 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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 SslPolicyWarnings extends \Google\Collection
  19. {
  20. /**
  21. * Warning about failed cleanup of transient changes made by a failed
  22. * operation.
  23. */
  24. public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
  25. /**
  26. * A link to a deprecated resource was created.
  27. */
  28. public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
  29. /**
  30. * When deploying and at least one of the resources has a type marked as
  31. * deprecated
  32. */
  33. public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
  34. /**
  35. * The user created a boot disk that is larger than image size.
  36. */
  37. public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
  38. /**
  39. * When deploying and at least one of the resources has a type marked as
  40. * experimental
  41. */
  42. public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
  43. /**
  44. * Warning that is present in an external api call
  45. */
  46. public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
  47. /**
  48. * Warning that value of a field has been overridden. Deprecated unused field.
  49. *
  50. * @deprecated
  51. */
  52. public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
  53. /**
  54. * The operation involved use of an injected kernel, which is deprecated.
  55. */
  56. public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
  57. /**
  58. * A WEIGHTED_MAGLEV backend service is associated with a health check that is
  59. * not of type HTTP/HTTPS/HTTP2.
  60. */
  61. public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
  62. /**
  63. * When deploying a deployment with a exceedingly large number of resources
  64. */
  65. public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
  66. /**
  67. * Resource can't be retrieved due to list overhead quota exceed which
  68. * captures the amount of resources filtered out by user-defined list filter.
  69. */
  70. public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
  71. /**
  72. * A resource depends on a missing type
  73. */
  74. public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
  75. /**
  76. * The route's nextHopIp address is not assigned to an instance on the
  77. * network.
  78. */
  79. public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
  80. /**
  81. * The route's next hop instance cannot ip forward.
  82. */
  83. public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
  84. /**
  85. * The route's nextHopInstance URL refers to an instance that does not have an
  86. * ipv6 interface on the same network as the route.
  87. */
  88. public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
  89. /**
  90. * The route's nextHopInstance URL refers to an instance that does not exist.
  91. */
  92. public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
  93. /**
  94. * The route's nextHopInstance URL refers to an instance that is not on the
  95. * same network as the route.
  96. */
  97. public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
  98. /**
  99. * The route's next hop instance does not have a status of RUNNING.
  100. */
  101. public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
  102. /**
  103. * Error which is not critical. We decided to continue the process despite the
  104. * mentioned error.
  105. */
  106. public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
  107. /**
  108. * No results are present on a particular list page.
  109. */
  110. public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
  111. /**
  112. * Success is reported, but some results may be missing due to errors
  113. */
  114. public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
  115. /**
  116. * Quota information is not available to client requests (e.g: regions.list).
  117. */
  118. public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
  119. /**
  120. * The user attempted to use a resource that requires a TOS they have not
  121. * accepted.
  122. */
  123. public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
  124. /**
  125. * Warning that a resource is in use.
  126. */
  127. public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
  128. /**
  129. * One or more of the resources set to auto-delete could not be deleted
  130. * because they were in use.
  131. */
  132. public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
  133. /**
  134. * When a resource schema validation is ignored.
  135. */
  136. public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
  137. /**
  138. * Instance template used in instance group manager is valid as such, but its
  139. * application does not make a lot of sense, because it allows only single
  140. * instance in instance group.
  141. */
  142. public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
  143. /**
  144. * When undeclared properties in the schema are present
  145. */
  146. public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
  147. /**
  148. * A given scope cannot be reached.
  149. */
  150. public const CODE_UNREACHABLE = 'UNREACHABLE';
  151. protected $collection_key = 'data';
  152. /**
  153. * [Output Only] A warning code, if applicable. For example, Compute Engine
  154. * returns NO_RESULTS_ON_PAGE if there are no results in the response.
  155. *
  156. * @var string
  157. */
  158. public $code;
  159. protected $dataType = SslPolicyWarningsData::class;
  160. protected $dataDataType = 'array';
  161. /**
  162. * [Output Only] A human-readable description of the warning code.
  163. *
  164. * @var string
  165. */
  166. public $message;
  167. /**
  168. * [Output Only] A warning code, if applicable. For example, Compute Engine
  169. * returns NO_RESULTS_ON_PAGE if there are no results in the response.
  170. *
  171. * Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
  172. * DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
  173. * EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
  174. * INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
  175. * LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
  176. * MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
  177. * NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
  178. * NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
  179. * NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
  180. * PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
  181. * RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
  182. * SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
  183. * UNDECLARED_PROPERTIES, UNREACHABLE
  184. *
  185. * @param self::CODE_* $code
  186. */
  187. public function setCode($code)
  188. {
  189. $this->code = $code;
  190. }
  191. /**
  192. * @return self::CODE_*
  193. */
  194. public function getCode()
  195. {
  196. return $this->code;
  197. }
  198. /**
  199. * [Output Only] Metadata about this warning in key: value format. For
  200. * example:
  201. *
  202. * "data": [ { "key": "scope", "value": "zones/us-east1-d" }
  203. *
  204. * @param SslPolicyWarningsData[] $data
  205. */
  206. public function setData($data)
  207. {
  208. $this->data = $data;
  209. }
  210. /**
  211. * @return SslPolicyWarningsData[]
  212. */
  213. public function getData()
  214. {
  215. return $this->data;
  216. }
  217. /**
  218. * [Output Only] A human-readable description of the warning code.
  219. *
  220. * @param string $message
  221. */
  222. public function setMessage($message)
  223. {
  224. $this->message = $message;
  225. }
  226. /**
  227. * @return string
  228. */
  229. public function getMessage()
  230. {
  231. return $this->message;
  232. }
  233. }
  234. // Adding a class alias for backwards compatibility with the previous class name.
  235. class_alias(SslPolicyWarnings::class, 'Google_Service_Compute_SslPolicyWarnings');