gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,130 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AWSV4Signature extends \Google\Model
{
/**
* The access key used for s3 bucket authentication. Required for updating or
* creating a backend that uses AWS v4 signature authentication, but will not
* be returned as part of the configuration when queried with a REST API GET
* request.
*
* @InputOnly
*
* @var string
*/
public $accessKey;
/**
* The identifier of an access key used for s3 bucket authentication.
*
* @var string
*/
public $accessKeyId;
/**
* The optional version identifier for the access key. You can use this to
* keep track of different iterations of your access key.
*
* @var string
*/
public $accessKeyVersion;
/**
* The name of the cloud region of your origin. This is a free-form field with
* the name of the region your cloud uses to host your origin. For example,
* "us-east-1" for AWS or "us-ashburn-1" for OCI.
*
* @var string
*/
public $originRegion;
/**
* The access key used for s3 bucket authentication. Required for updating or
* creating a backend that uses AWS v4 signature authentication, but will not
* be returned as part of the configuration when queried with a REST API GET
* request.
*
* @InputOnly
*
* @param string $accessKey
*/
public function setAccessKey($accessKey)
{
$this->accessKey = $accessKey;
}
/**
* @return string
*/
public function getAccessKey()
{
return $this->accessKey;
}
/**
* The identifier of an access key used for s3 bucket authentication.
*
* @param string $accessKeyId
*/
public function setAccessKeyId($accessKeyId)
{
$this->accessKeyId = $accessKeyId;
}
/**
* @return string
*/
public function getAccessKeyId()
{
return $this->accessKeyId;
}
/**
* The optional version identifier for the access key. You can use this to
* keep track of different iterations of your access key.
*
* @param string $accessKeyVersion
*/
public function setAccessKeyVersion($accessKeyVersion)
{
$this->accessKeyVersion = $accessKeyVersion;
}
/**
* @return string
*/
public function getAccessKeyVersion()
{
return $this->accessKeyVersion;
}
/**
* The name of the cloud region of your origin. This is a free-form field with
* the name of the region your cloud uses to host your origin. For example,
* "us-east-1" for AWS or "us-ashburn-1" for OCI.
*
* @param string $originRegion
*/
public function setOriginRegion($originRegion)
{
$this->originRegion = $originRegion;
}
/**
* @return string
*/
public function getOriginRegion()
{
return $this->originRegion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AWSV4Signature::class, 'Google_Service_Compute_AWSV4Signature');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorConfig extends \Google\Model
{
/**
* The number of the guest accelerator cards exposed to this instance.
*
* @var int
*/
public $acceleratorCount;
/**
* Full or partial URL of the accelerator type resource to attach to this
* instance. For example:projects/my-project/zones/us-
* central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an
* instance template, specify only the accelerator name. See GPUs on Compute
* Engine for a full list of accelerator types.
*
* @var string
*/
public $acceleratorType;
/**
* The number of the guest accelerator cards exposed to this instance.
*
* @param int $acceleratorCount
*/
public function setAcceleratorCount($acceleratorCount)
{
$this->acceleratorCount = $acceleratorCount;
}
/**
* @return int
*/
public function getAcceleratorCount()
{
return $this->acceleratorCount;
}
/**
* Full or partial URL of the accelerator type resource to attach to this
* instance. For example:projects/my-project/zones/us-
* central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an
* instance template, specify only the accelerator name. See GPUs on Compute
* Engine for a full list of accelerator types.
*
* @param string $acceleratorType
*/
public function setAcceleratorType($acceleratorType)
{
$this->acceleratorType = $acceleratorType;
}
/**
* @return string
*/
public function getAcceleratorType()
{
return $this->acceleratorType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorConfig::class, 'Google_Service_Compute_AcceleratorConfig');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorTopologiesInfo extends \Google\Collection
{
protected $collection_key = 'acceleratorTopologyInfos';
protected $acceleratorTopologyInfosType = AcceleratorTopologiesInfoAcceleratorTopologyInfo::class;
protected $acceleratorTopologyInfosDataType = 'array';
/**
* Info for each accelerator topology.
*
* @param AcceleratorTopologiesInfoAcceleratorTopologyInfo[] $acceleratorTopologyInfos
*/
public function setAcceleratorTopologyInfos($acceleratorTopologyInfos)
{
$this->acceleratorTopologyInfos = $acceleratorTopologyInfos;
}
/**
* @return AcceleratorTopologiesInfoAcceleratorTopologyInfo[]
*/
public function getAcceleratorTopologyInfos()
{
return $this->acceleratorTopologyInfos;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorTopologiesInfo::class, 'Google_Service_Compute_AcceleratorTopologiesInfo');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorTopologiesInfoAcceleratorTopologyInfo extends \Google\Collection
{
protected $collection_key = 'infoPerTopologyStates';
/**
* The accelerator topology.
*
* @var string
*/
public $acceleratorTopology;
protected $infoPerTopologyStatesType = AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState::class;
protected $infoPerTopologyStatesDataType = 'array';
/**
* The accelerator topology.
*
* @param string $acceleratorTopology
*/
public function setAcceleratorTopology($acceleratorTopology)
{
$this->acceleratorTopology = $acceleratorTopology;
}
/**
* @return string
*/
public function getAcceleratorTopology()
{
return $this->acceleratorTopology;
}
/**
* Info for each topology state.
*
* @param AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState[] $infoPerTopologyStates
*/
public function setInfoPerTopologyStates($infoPerTopologyStates)
{
$this->infoPerTopologyStates = $infoPerTopologyStates;
}
/**
* @return AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState[]
*/
public function getInfoPerTopologyStates()
{
return $this->infoPerTopologyStates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorTopologiesInfoAcceleratorTopologyInfo::class, 'Google_Service_Compute_AcceleratorTopologiesInfoAcceleratorTopologyInfo');
@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState extends \Google\Model
{
/**
* The accelerator topology is available.
*/
public const STATE_AVAILABLE = 'AVAILABLE';
/**
* The accelerator topology is degraded. The underlying capacity is not in a
* healthy state and is not available.
*/
public const STATE_DEGRADED = 'DEGRADED';
/**
* The accelerator topology is running. If there are both running and degraded
* hosts within a topology, DEGRADED state will be returned.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The state of the topology is unspecified.
*/
public const STATE_TOPOLOGY_STATE_UNSPECIFIED = 'TOPOLOGY_STATE_UNSPECIFIED';
/**
* This value has been deprecated and is no longer used.
*
* @deprecated
*/
public const STATE_UNHEALTHY = 'UNHEALTHY';
/**
* The number of accelerator topologies in this state.
*
* @var int
*/
public $count;
/**
* The state of the accelerator topology.
*
* @var string
*/
public $state;
/**
* The number of accelerator topologies in this state.
*
* @param int $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* The state of the accelerator topology.
*
* Accepted values: AVAILABLE, DEGRADED, RUNNING, TOPOLOGY_STATE_UNSPECIFIED,
* UNHEALTHY
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState::class, 'Google_Service_Compute_AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState');
@@ -0,0 +1,230 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorType extends \Google\Model
{
/**
* [Output Only] Creation timestamp inRFC3339 text format.
*
* @var string
*/
public $creationTimestamp;
protected $deprecatedType = DeprecationStatus::class;
protected $deprecatedDataType = '';
/**
* [Output Only] An optional textual description of the resource.
*
* @var string
*/
public $description;
/**
* [Output Only] The unique identifier for the resource. This identifier is
* defined by the server.
*
* @var string
*/
public $id;
/**
* Output only. [Output Only] The type of the resource.
* Alwayscompute#acceleratorType for accelerator types.
*
* @var string
*/
public $kind;
/**
* [Output Only] Maximum number of accelerator cards allowed per instance.
*
* @var int
*/
public $maximumCardsPerInstance;
/**
* [Output Only] Name of the resource.
*
* @var string
*/
public $name;
/**
* Output only. [Output Only] Server-defined, fully qualified URL for this
* resource.
*
* @var string
*/
public $selfLink;
/**
* [Output Only] The name of the zone where the accelerator type resides, such
* as us-central1-a. You must specify this field as part of the HTTP request
* URL. It is not settable as a field in the request body.
*
* @var string
*/
public $zone;
/**
* [Output Only] Creation timestamp inRFC3339 text format.
*
* @param string $creationTimestamp
*/
public function setCreationTimestamp($creationTimestamp)
{
$this->creationTimestamp = $creationTimestamp;
}
/**
* @return string
*/
public function getCreationTimestamp()
{
return $this->creationTimestamp;
}
/**
* [Output Only] The deprecation status associated with this accelerator type.
*
* @param DeprecationStatus $deprecated
*/
public function setDeprecated(DeprecationStatus $deprecated)
{
$this->deprecated = $deprecated;
}
/**
* @return DeprecationStatus
*/
public function getDeprecated()
{
return $this->deprecated;
}
/**
* [Output Only] An optional textual description of the resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* [Output Only] The unique identifier for the resource. This identifier is
* defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. [Output Only] The type of the resource.
* Alwayscompute#acceleratorType for accelerator types.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] Maximum number of accelerator cards allowed per instance.
*
* @param int $maximumCardsPerInstance
*/
public function setMaximumCardsPerInstance($maximumCardsPerInstance)
{
$this->maximumCardsPerInstance = $maximumCardsPerInstance;
}
/**
* @return int
*/
public function getMaximumCardsPerInstance()
{
return $this->maximumCardsPerInstance;
}
/**
* [Output Only] Name of the resource.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. [Output Only] Server-defined, fully qualified URL for this
* resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* [Output Only] The name of the zone where the accelerator type resides, such
* as us-central1-a. You must specify this field as part of the HTTP request
* URL. It is not settable as a field in the request body.
*
* @param string $zone
*/
public function setZone($zone)
{
$this->zone = $zone;
}
/**
* @return string
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorType::class, 'Google_Service_Compute_AcceleratorType');
@@ -0,0 +1,185 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorTypeAggregatedList extends \Google\Collection
{
protected $collection_key = 'unreachables';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
protected $itemsType = AcceleratorTypesScopedList::class;
protected $itemsDataType = 'map';
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#acceleratorTypeAggregatedList for aggregated lists of
* accelerator types.
*
* @var string
*/
public $kind;
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @var string
*/
public $selfLink;
/**
* Output only. [Output Only] Unreachable resources.
*
* @var string[]
*/
public $unreachables;
protected $warningType = AcceleratorTypeAggregatedListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of AcceleratorTypesScopedList resources.
*
* @param AcceleratorTypesScopedList[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return AcceleratorTypesScopedList[]
*/
public function getItems()
{
return $this->items;
}
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#acceleratorTypeAggregatedList for aggregated lists of
* accelerator types.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Output only. [Output Only] Unreachable resources.
*
* @param string[] $unreachables
*/
public function setUnreachables($unreachables)
{
$this->unreachables = $unreachables;
}
/**
* @return string[]
*/
public function getUnreachables()
{
return $this->unreachables;
}
/**
* [Output Only] Informational warning message.
*
* @param AcceleratorTypeAggregatedListWarning $warning
*/
public function setWarning(AcceleratorTypeAggregatedListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return AcceleratorTypeAggregatedListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorTypeAggregatedList::class, 'Google_Service_Compute_AcceleratorTypeAggregatedList');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorTypeAggregatedListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = AcceleratorTypeAggregatedListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param AcceleratorTypeAggregatedListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return AcceleratorTypeAggregatedListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorTypeAggregatedListWarning::class, 'Google_Service_Compute_AcceleratorTypeAggregatedListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorTypeAggregatedListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorTypeAggregatedListWarningData::class, 'Google_Service_Compute_AcceleratorTypeAggregatedListWarningData');
@@ -0,0 +1,161 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorTypeList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
protected $itemsType = AcceleratorType::class;
protected $itemsDataType = 'array';
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#acceleratorTypeList for lists of accelerator types.
*
* @var string
*/
public $kind;
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @var string
*/
public $selfLink;
protected $warningType = AcceleratorTypeListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of AcceleratorType resources.
*
* @param AcceleratorType[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return AcceleratorType[]
*/
public function getItems()
{
return $this->items;
}
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#acceleratorTypeList for lists of accelerator types.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* [Output Only] Informational warning message.
*
* @param AcceleratorTypeListWarning $warning
*/
public function setWarning(AcceleratorTypeListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return AcceleratorTypeListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorTypeList::class, 'Google_Service_Compute_AcceleratorTypeList');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorTypeListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = AcceleratorTypeListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param AcceleratorTypeListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return AcceleratorTypeListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorTypeListWarning::class, 'Google_Service_Compute_AcceleratorTypeListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorTypeListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorTypeListWarningData::class, 'Google_Service_Compute_AcceleratorTypeListWarningData');
@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorTypesScopedList extends \Google\Collection
{
protected $collection_key = 'acceleratorTypes';
protected $acceleratorTypesType = AcceleratorType::class;
protected $acceleratorTypesDataType = 'array';
protected $warningType = AcceleratorTypesScopedListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] A list of accelerator types contained in this scope.
*
* @param AcceleratorType[] $acceleratorTypes
*/
public function setAcceleratorTypes($acceleratorTypes)
{
$this->acceleratorTypes = $acceleratorTypes;
}
/**
* @return AcceleratorType[]
*/
public function getAcceleratorTypes()
{
return $this->acceleratorTypes;
}
/**
* [Output Only] An informational warning that appears when the accelerator
* types list is empty.
*
* @param AcceleratorTypesScopedListWarning $warning
*/
public function setWarning(AcceleratorTypesScopedListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return AcceleratorTypesScopedListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorTypesScopedList::class, 'Google_Service_Compute_AcceleratorTypesScopedList');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorTypesScopedListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = AcceleratorTypesScopedListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param AcceleratorTypesScopedListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return AcceleratorTypesScopedListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorTypesScopedListWarning::class, 'Google_Service_Compute_AcceleratorTypesScopedListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AcceleratorTypesScopedListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AcceleratorTypesScopedListWarningData::class, 'Google_Service_Compute_AcceleratorTypesScopedListWarningData');
@@ -0,0 +1,338 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AccessConfig extends \Google\Model
{
/**
* Public internet quality with fixed bandwidth.
*/
public const NETWORK_TIER_FIXED_STANDARD = 'FIXED_STANDARD';
/**
* High quality, Google-grade network tier, support for all networking
* products.
*/
public const NETWORK_TIER_PREMIUM = 'PREMIUM';
/**
* Public internet quality, only limited support for other networking
* products.
*/
public const NETWORK_TIER_STANDARD = 'STANDARD';
/**
* (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is
* expired or not configured.
*/
public const NETWORK_TIER_STANDARD_OVERRIDES_FIXED_STANDARD = 'STANDARD_OVERRIDES_FIXED_STANDARD';
public const TYPE_DIRECT_IPV6 = 'DIRECT_IPV6';
public const TYPE_ONE_TO_ONE_NAT = 'ONE_TO_ONE_NAT';
/**
* Applies to ipv6AccessConfigs only. The first IPv6 address of the external
* IPv6 range associated with this instance, prefix length is stored
* inexternalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP
* address, it must be unused and in the same region as the instance's zone.
* If not specified, Google Cloud will automatically assign an external IPv6
* address from the instance's subnetwork.
*
* @var string
*/
public $externalIpv6;
/**
* Applies to ipv6AccessConfigs only. The prefix length of the external IPv6
* range.
*
* @var int
*/
public $externalIpv6PrefixLength;
/**
* Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig
* for access configs.
*
* @var string
*/
public $kind;
/**
* The name of this access configuration. In accessConfigs (IPv4), the default
* and recommended name is External NAT, but you can use any arbitrary string,
* such as My external IP orNetwork Access. In ipv6AccessConfigs, the
* recommend name is External IPv6.
*
* @var string
*/
public $name;
/**
* Applies to accessConfigs (IPv4) only. Anexternal IP address associated with
* this instance. Specify an unused static external IP address available to
* the project or leave this field undefined to use an IP from a shared
* ephemeral IP address pool. If you specify a static external IP address, it
* must live in the same region as the zone of the instance.
*
* @var string
*/
public $natIP;
/**
* This signifies the networking tier used for configuring this access
* configuration and can only take the following values: PREMIUM,STANDARD.
*
* If an AccessConfig is specified without a valid external IP address, an
* ephemeral IP will be created with this networkTier.
*
* If an AccessConfig with a valid external IP address is specified, it must
* match that of the networkTier associated with the Address resource owning
* that IP.
*
* @var string
*/
public $networkTier;
/**
* The DNS domain name for the public PTR record.
*
* You can set this field only if the `setPublicPtr` field is enabled
* inaccessConfig. If this field is unspecified inipv6AccessConfig, a default
* PTR record will be created for first IP in associated external IPv6 range.
*
* @var string
*/
public $publicPtrDomainName;
/**
* The resource URL for the security policy associated with this access
* config.
*
* @var string
*/
public $securityPolicy;
/**
* Specifies whether a public DNS 'PTR' record should be created to map the
* external IP address of the instance to a DNS domain name.
*
* This field is not used in ipv6AccessConfig. A default PTR record will be
* created if the VM has external IPv6 range associated.
*
* @var bool
*/
public $setPublicPtr;
/**
* The type of configuration. In accessConfigs (IPv4), the default and only
* option is ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and only option
* isDIRECT_IPV6.
*
* @var string
*/
public $type;
/**
* Applies to ipv6AccessConfigs only. The first IPv6 address of the external
* IPv6 range associated with this instance, prefix length is stored
* inexternalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP
* address, it must be unused and in the same region as the instance's zone.
* If not specified, Google Cloud will automatically assign an external IPv6
* address from the instance's subnetwork.
*
* @param string $externalIpv6
*/
public function setExternalIpv6($externalIpv6)
{
$this->externalIpv6 = $externalIpv6;
}
/**
* @return string
*/
public function getExternalIpv6()
{
return $this->externalIpv6;
}
/**
* Applies to ipv6AccessConfigs only. The prefix length of the external IPv6
* range.
*
* @param int $externalIpv6PrefixLength
*/
public function setExternalIpv6PrefixLength($externalIpv6PrefixLength)
{
$this->externalIpv6PrefixLength = $externalIpv6PrefixLength;
}
/**
* @return int
*/
public function getExternalIpv6PrefixLength()
{
return $this->externalIpv6PrefixLength;
}
/**
* Output only. [Output Only] Type of the resource. Alwayscompute#accessConfig
* for access configs.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The name of this access configuration. In accessConfigs (IPv4), the default
* and recommended name is External NAT, but you can use any arbitrary string,
* such as My external IP orNetwork Access. In ipv6AccessConfigs, the
* recommend name is External IPv6.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Applies to accessConfigs (IPv4) only. Anexternal IP address associated with
* this instance. Specify an unused static external IP address available to
* the project or leave this field undefined to use an IP from a shared
* ephemeral IP address pool. If you specify a static external IP address, it
* must live in the same region as the zone of the instance.
*
* @param string $natIP
*/
public function setNatIP($natIP)
{
$this->natIP = $natIP;
}
/**
* @return string
*/
public function getNatIP()
{
return $this->natIP;
}
/**
* This signifies the networking tier used for configuring this access
* configuration and can only take the following values: PREMIUM,STANDARD.
*
* If an AccessConfig is specified without a valid external IP address, an
* ephemeral IP will be created with this networkTier.
*
* If an AccessConfig with a valid external IP address is specified, it must
* match that of the networkTier associated with the Address resource owning
* that IP.
*
* Accepted values: FIXED_STANDARD, PREMIUM, STANDARD,
* STANDARD_OVERRIDES_FIXED_STANDARD
*
* @param self::NETWORK_TIER_* $networkTier
*/
public function setNetworkTier($networkTier)
{
$this->networkTier = $networkTier;
}
/**
* @return self::NETWORK_TIER_*
*/
public function getNetworkTier()
{
return $this->networkTier;
}
/**
* The DNS domain name for the public PTR record.
*
* You can set this field only if the `setPublicPtr` field is enabled
* inaccessConfig. If this field is unspecified inipv6AccessConfig, a default
* PTR record will be created for first IP in associated external IPv6 range.
*
* @param string $publicPtrDomainName
*/
public function setPublicPtrDomainName($publicPtrDomainName)
{
$this->publicPtrDomainName = $publicPtrDomainName;
}
/**
* @return string
*/
public function getPublicPtrDomainName()
{
return $this->publicPtrDomainName;
}
/**
* The resource URL for the security policy associated with this access
* config.
*
* @param string $securityPolicy
*/
public function setSecurityPolicy($securityPolicy)
{
$this->securityPolicy = $securityPolicy;
}
/**
* @return string
*/
public function getSecurityPolicy()
{
return $this->securityPolicy;
}
/**
* Specifies whether a public DNS 'PTR' record should be created to map the
* external IP address of the instance to a DNS domain name.
*
* This field is not used in ipv6AccessConfig. A default PTR record will be
* created if the VM has external IPv6 range associated.
*
* @param bool $setPublicPtr
*/
public function setSetPublicPtr($setPublicPtr)
{
$this->setPublicPtr = $setPublicPtr;
}
/**
* @return bool
*/
public function getSetPublicPtr()
{
return $this->setPublicPtr;
}
/**
* The type of configuration. In accessConfigs (IPv4), the default and only
* option is ONE_TO_ONE_NAT. Inipv6AccessConfigs, the default and only option
* isDIRECT_IPV6.
*
* Accepted values: DIRECT_IPV6, ONE_TO_ONE_NAT
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessConfig::class, 'Google_Service_Compute_AccessConfig');
+720
View File
@@ -0,0 +1,720 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class Address extends \Google\Collection
{
/**
* A publicly visible external IP address.
*/
public const ADDRESS_TYPE_EXTERNAL = 'EXTERNAL';
/**
* A private network IP address, for use with an Instance or Internal Load
* Balancer forwarding rule.
*/
public const ADDRESS_TYPE_INTERNAL = 'INTERNAL';
public const ADDRESS_TYPE_UNSPECIFIED_TYPE = 'UNSPECIFIED_TYPE';
public const IP_VERSION_IPV4 = 'IPV4';
public const IP_VERSION_IPV6 = 'IPV6';
public const IP_VERSION_UNSPECIFIED_VERSION = 'UNSPECIFIED_VERSION';
/**
* Reserved IPv6 address can be used on network load balancer.
*/
public const IPV6_ENDPOINT_TYPE_NETLB = 'NETLB';
/**
* Reserved IPv6 address can be used on VM.
*/
public const IPV6_ENDPOINT_TYPE_VM = 'VM';
/**
* Public internet quality with fixed bandwidth.
*/
public const NETWORK_TIER_FIXED_STANDARD = 'FIXED_STANDARD';
/**
* High quality, Google-grade network tier, support for all networking
* products.
*/
public const NETWORK_TIER_PREMIUM = 'PREMIUM';
/**
* Public internet quality, only limited support for other networking
* products.
*/
public const NETWORK_TIER_STANDARD = 'STANDARD';
/**
* (Output only) Temporary tier for FIXED_STANDARD when fixed standard tier is
* expired or not configured.
*/
public const NETWORK_TIER_STANDARD_OVERRIDES_FIXED_STANDARD = 'STANDARD_OVERRIDES_FIXED_STANDARD';
/**
* DNS resolver address in the subnetwork.
*/
public const PURPOSE_DNS_RESOLVER = 'DNS_RESOLVER';
/**
* VM internal/alias IP, Internal LB service IP, etc.
*/
public const PURPOSE_GCE_ENDPOINT = 'GCE_ENDPOINT';
/**
* A regional internal IP address range reserved for the VLAN attachment that
* is used in HA VPN over Cloud Interconnect. This regional internal IP
* address range must not overlap with any IP address range of subnet/route in
* the VPC network and its peering networks. After the VLAN attachment is
* created with the reserved IP address range, when creating a new VPN
* gateway, its interface IP address is allocated from the associated VLAN
* attachments IP address range.
*/
public const PURPOSE_IPSEC_INTERCONNECT = 'IPSEC_INTERCONNECT';
/**
* External IP automatically reserved for Cloud NAT.
*/
public const PURPOSE_NAT_AUTO = 'NAT_AUTO';
/**
* A private network IP address that can be used to configure Private Service
* Connect. This purpose can be specified only forGLOBAL addresses of Type
* INTERNAL
*/
public const PURPOSE_PRIVATE_SERVICE_CONNECT = 'PRIVATE_SERVICE_CONNECT';
/**
* A regional internal IP address range reserved for Serverless.
*/
public const PURPOSE_SERVERLESS = 'SERVERLESS';
/**
* A private network IP address that can be shared by multiple Internal Load
* Balancer forwarding rules.
*/
public const PURPOSE_SHARED_LOADBALANCER_VIP = 'SHARED_LOADBALANCER_VIP';
/**
* IP range for peer networks.
*/
public const PURPOSE_VPC_PEERING = 'VPC_PEERING';
/**
* Address is being used by another resource and is not available.
*/
public const STATUS_IN_USE = 'IN_USE';
/**
* Address is reserved and available to use.
*/
public const STATUS_RESERVED = 'RESERVED';
/**
* Address is being reserved.
*/
public const STATUS_RESERVING = 'RESERVING';
protected $collection_key = 'users';
/**
* The static IP address represented by this resource.
*
* @var string
*/
public $address;
/**
* The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified,
* defaults to EXTERNAL.
*
* @var string
*/
public $addressType;
/**
* Output only. [Output Only] Creation timestamp inRFC3339 text format.
*
* @var string
*/
public $creationTimestamp;
/**
* An optional description of this resource. Provide this field when you
* create the resource.
*
* @var string
*/
public $description;
/**
* Output only. [Output Only] The unique identifier for the resource. This
* identifier is defined by the server.
*
* @var string
*/
public $id;
/**
* Reference to the source of external IPv4 addresses, like a
* PublicDelegatedPrefix (PDP) for BYOIP. The PDP must support enhanced IPv4
* allocations.
*
* Use one of the following formats to specify a PDP when reserving an
* external IPv4 address using BYOIP. - Full resource URL, as inhtt
* ps://www.googleapis.com/compute/v1/projects/projectId/regions/region/public
* DelegatedPrefixes/pdp-name - Partial URL, as in
* - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name
* - regions/region/publicDelegatedPrefixes/pdp-name
*
* @var string
*/
public $ipCollection;
/**
* The IP version that will be used by this address. Valid options areIPV4 or
* IPV6.
*
* @var string
*/
public $ipVersion;
/**
* The endpoint type of this address, which should be VM or NETLB. This is
* used for deciding which type of endpoint this address can be used after the
* external IPv6 address reservation.
*
* @var string
*/
public $ipv6EndpointType;
/**
* Output only. [Output Only] Type of the resource. Always compute#address for
* addresses.
*
* @var string
*/
public $kind;
/**
* A fingerprint for the labels being applied to this Address, which is
* essentially a hash of the labels set used for optimistic locking. The
* fingerprint is initially generated by Compute Engine and changes after
* every request to modify or update labels. You must always provide an up-to-
* date fingerprint hash in order to update or change labels, otherwise the
* request will fail with error412 conditionNotMet.
*
* To see the latest fingerprint, make a get() request to retrieve an Address.
*
* @var string
*/
public $labelFingerprint;
/**
* Labels for this resource. These can only be added or modified by
* thesetLabels method. Each label key/value pair must comply withRFC1035.
* Label values may be empty.
*
* @var string[]
*/
public $labels;
/**
* Name of the resource. Provided by the client when the resource is created.
* The name must be 1-63 characters long, and comply withRFC1035.
* Specifically, the name must be 1-63 characters long and match the regular
* expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a
* lowercase letter, and all following characters (except for the last
* character) must be a dash, lowercase letter, or digit. The last character
* must be a lowercase letter or digit.
*
* @var string
*/
public $name;
/**
* The URL of the network in which to reserve the address. This field can only
* be used with INTERNAL type with theVPC_PEERING purpose.
*
* @var string
*/
public $network;
/**
* This signifies the networking tier used for configuring this address and
* can only take the following values: PREMIUM orSTANDARD. Internal IP
* addresses are always Premium Tier; global external IP addresses are always
* Premium Tier; regional external IP addresses can be either Standard or
* Premium Tier.
*
* If this field is not specified, it is assumed to be PREMIUM.
*
* @var string
*/
public $networkTier;
/**
* The prefix length if the resource represents an IP range.
*
* @var int
*/
public $prefixLength;
/**
* The purpose of this resource, which can be one of the following values:
* - GCE_ENDPOINT for addresses that are used by VM instances, alias IP
* ranges, load balancers, and similar resources. - DNS_RESOLVER for a
* DNS resolver address in a subnetwork for a Cloud DNS inbound
* forwarder IP addresses (regional internal IP address in a subnet of
* a VPC network) - VPC_PEERING for global internal IP addresses used for
* private services access allocated ranges. - NAT_AUTO for the regional
* external IP addresses used by Cloud NAT when allocating addresses
* using automatic NAT IP address allocation. -
* IPSEC_INTERCONNECT for addresses created from a private IP range that
* are reserved for a VLAN attachment in an *HA VPN over Cloud
* Interconnect* configuration. These addresses are regional resources.
* - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned
* to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for
* a private network address that is used to configure Private Service
* Connect. Only global internal addresses can use this purpose.
*
* @var string
*/
public $purpose;
/**
* Output only. [Output Only] The URL of the region where a regional address
* resides. For regional addresses, you must specify the region as a path
* parameter in the HTTP request URL. *This field is not applicable to global
* addresses.*
*
* @var string
*/
public $region;
/**
* [Output Only] Server-defined URL for the resource.
*
* @var string
*/
public $selfLink;
/**
* Output only. [Output Only] The status of the address, which can be one
* ofRESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently
* in the process of being reserved. A RESERVED address is currently reserved
* and available to use. An IN_USE address is currently being used by another
* resource and is not available.
*
* @var string
*/
public $status;
/**
* The URL of the subnetwork in which to reserve the address. If an IP address
* is specified, it must be within the subnetwork's IP range. This field can
* only be used with INTERNAL type with aGCE_ENDPOINT or DNS_RESOLVER purpose.
*
* @var string
*/
public $subnetwork;
/**
* [Output Only] The URLs of the resources that are using this address.
*
* @var string[]
*/
public $users;
/**
* The static IP address represented by this resource.
*
* @param string $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* The type of address to reserve, either INTERNAL orEXTERNAL. If unspecified,
* defaults to EXTERNAL.
*
* Accepted values: EXTERNAL, INTERNAL, UNSPECIFIED_TYPE
*
* @param self::ADDRESS_TYPE_* $addressType
*/
public function setAddressType($addressType)
{
$this->addressType = $addressType;
}
/**
* @return self::ADDRESS_TYPE_*
*/
public function getAddressType()
{
return $this->addressType;
}
/**
* Output only. [Output Only] Creation timestamp inRFC3339 text format.
*
* @param string $creationTimestamp
*/
public function setCreationTimestamp($creationTimestamp)
{
$this->creationTimestamp = $creationTimestamp;
}
/**
* @return string
*/
public function getCreationTimestamp()
{
return $this->creationTimestamp;
}
/**
* An optional description of this resource. Provide this field when you
* create the resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. [Output Only] The unique identifier for the resource. This
* identifier is defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Reference to the source of external IPv4 addresses, like a
* PublicDelegatedPrefix (PDP) for BYOIP. The PDP must support enhanced IPv4
* allocations.
*
* Use one of the following formats to specify a PDP when reserving an
* external IPv4 address using BYOIP. - Full resource URL, as inhtt
* ps://www.googleapis.com/compute/v1/projects/projectId/regions/region/public
* DelegatedPrefixes/pdp-name - Partial URL, as in
* - projects/projectId/regions/region/publicDelegatedPrefixes/pdp-name
* - regions/region/publicDelegatedPrefixes/pdp-name
*
* @param string $ipCollection
*/
public function setIpCollection($ipCollection)
{
$this->ipCollection = $ipCollection;
}
/**
* @return string
*/
public function getIpCollection()
{
return $this->ipCollection;
}
/**
* The IP version that will be used by this address. Valid options areIPV4 or
* IPV6.
*
* Accepted values: IPV4, IPV6, UNSPECIFIED_VERSION
*
* @param self::IP_VERSION_* $ipVersion
*/
public function setIpVersion($ipVersion)
{
$this->ipVersion = $ipVersion;
}
/**
* @return self::IP_VERSION_*
*/
public function getIpVersion()
{
return $this->ipVersion;
}
/**
* The endpoint type of this address, which should be VM or NETLB. This is
* used for deciding which type of endpoint this address can be used after the
* external IPv6 address reservation.
*
* Accepted values: NETLB, VM
*
* @param self::IPV6_ENDPOINT_TYPE_* $ipv6EndpointType
*/
public function setIpv6EndpointType($ipv6EndpointType)
{
$this->ipv6EndpointType = $ipv6EndpointType;
}
/**
* @return self::IPV6_ENDPOINT_TYPE_*
*/
public function getIpv6EndpointType()
{
return $this->ipv6EndpointType;
}
/**
* Output only. [Output Only] Type of the resource. Always compute#address for
* addresses.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* A fingerprint for the labels being applied to this Address, which is
* essentially a hash of the labels set used for optimistic locking. The
* fingerprint is initially generated by Compute Engine and changes after
* every request to modify or update labels. You must always provide an up-to-
* date fingerprint hash in order to update or change labels, otherwise the
* request will fail with error412 conditionNotMet.
*
* To see the latest fingerprint, make a get() request to retrieve an Address.
*
* @param string $labelFingerprint
*/
public function setLabelFingerprint($labelFingerprint)
{
$this->labelFingerprint = $labelFingerprint;
}
/**
* @return string
*/
public function getLabelFingerprint()
{
return $this->labelFingerprint;
}
/**
* Labels for this resource. These can only be added or modified by
* thesetLabels method. Each label key/value pair must comply withRFC1035.
* Label values may be empty.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Name of the resource. Provided by the client when the resource is created.
* The name must be 1-63 characters long, and comply withRFC1035.
* Specifically, the name must be 1-63 characters long and match the regular
* expression `[a-z]([-a-z0-9]*[a-z0-9])?`. The first character must be a
* lowercase letter, and all following characters (except for the last
* character) must be a dash, lowercase letter, or digit. The last character
* must be a lowercase letter or digit.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The URL of the network in which to reserve the address. This field can only
* be used with INTERNAL type with theVPC_PEERING purpose.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* This signifies the networking tier used for configuring this address and
* can only take the following values: PREMIUM orSTANDARD. Internal IP
* addresses are always Premium Tier; global external IP addresses are always
* Premium Tier; regional external IP addresses can be either Standard or
* Premium Tier.
*
* If this field is not specified, it is assumed to be PREMIUM.
*
* Accepted values: FIXED_STANDARD, PREMIUM, STANDARD,
* STANDARD_OVERRIDES_FIXED_STANDARD
*
* @param self::NETWORK_TIER_* $networkTier
*/
public function setNetworkTier($networkTier)
{
$this->networkTier = $networkTier;
}
/**
* @return self::NETWORK_TIER_*
*/
public function getNetworkTier()
{
return $this->networkTier;
}
/**
* The prefix length if the resource represents an IP range.
*
* @param int $prefixLength
*/
public function setPrefixLength($prefixLength)
{
$this->prefixLength = $prefixLength;
}
/**
* @return int
*/
public function getPrefixLength()
{
return $this->prefixLength;
}
/**
* The purpose of this resource, which can be one of the following values:
* - GCE_ENDPOINT for addresses that are used by VM instances, alias IP
* ranges, load balancers, and similar resources. - DNS_RESOLVER for a
* DNS resolver address in a subnetwork for a Cloud DNS inbound
* forwarder IP addresses (regional internal IP address in a subnet of
* a VPC network) - VPC_PEERING for global internal IP addresses used for
* private services access allocated ranges. - NAT_AUTO for the regional
* external IP addresses used by Cloud NAT when allocating addresses
* using automatic NAT IP address allocation. -
* IPSEC_INTERCONNECT for addresses created from a private IP range that
* are reserved for a VLAN attachment in an *HA VPN over Cloud
* Interconnect* configuration. These addresses are regional resources.
* - `SHARED_LOADBALANCER_VIP` for an internal IP address that is assigned
* to multiple internal forwarding rules. - `PRIVATE_SERVICE_CONNECT` for
* a private network address that is used to configure Private Service
* Connect. Only global internal addresses can use this purpose.
*
* Accepted values: DNS_RESOLVER, GCE_ENDPOINT, IPSEC_INTERCONNECT, NAT_AUTO,
* PRIVATE_SERVICE_CONNECT, SERVERLESS, SHARED_LOADBALANCER_VIP, VPC_PEERING
*
* @param self::PURPOSE_* $purpose
*/
public function setPurpose($purpose)
{
$this->purpose = $purpose;
}
/**
* @return self::PURPOSE_*
*/
public function getPurpose()
{
return $this->purpose;
}
/**
* Output only. [Output Only] The URL of the region where a regional address
* resides. For regional addresses, you must specify the region as a path
* parameter in the HTTP request URL. *This field is not applicable to global
* addresses.*
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* [Output Only] Server-defined URL for the resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Output only. [Output Only] The status of the address, which can be one
* ofRESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently
* in the process of being reserved. A RESERVED address is currently reserved
* and available to use. An IN_USE address is currently being used by another
* resource and is not available.
*
* Accepted values: IN_USE, RESERVED, RESERVING
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* The URL of the subnetwork in which to reserve the address. If an IP address
* is specified, it must be within the subnetwork's IP range. This field can
* only be used with INTERNAL type with aGCE_ENDPOINT or DNS_RESOLVER purpose.
*
* @param string $subnetwork
*/
public function setSubnetwork($subnetwork)
{
$this->subnetwork = $subnetwork;
}
/**
* @return string
*/
public function getSubnetwork()
{
return $this->subnetwork;
}
/**
* [Output Only] The URLs of the resources that are using this address.
*
* @param string[] $users
*/
public function setUsers($users)
{
$this->users = $users;
}
/**
* @return string[]
*/
public function getUsers()
{
return $this->users;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Address::class, 'Google_Service_Compute_Address');
@@ -0,0 +1,183 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AddressAggregatedList extends \Google\Collection
{
protected $collection_key = 'unreachables';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
protected $itemsType = AddressesScopedList::class;
protected $itemsDataType = 'map';
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#addressAggregatedList for aggregated lists of addresses.
*
* @var string
*/
public $kind;
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @var string
*/
public $selfLink;
/**
* Output only. [Output Only] Unreachable resources.
*
* @var string[]
*/
public $unreachables;
protected $warningType = AddressAggregatedListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of AddressesScopedList resources.
*
* @param AddressesScopedList[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return AddressesScopedList[]
*/
public function getItems()
{
return $this->items;
}
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#addressAggregatedList for aggregated lists of addresses.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Output only. [Output Only] Unreachable resources.
*
* @param string[] $unreachables
*/
public function setUnreachables($unreachables)
{
$this->unreachables = $unreachables;
}
/**
* @return string[]
*/
public function getUnreachables()
{
return $this->unreachables;
}
/**
* [Output Only] Informational warning message.
*
* @param AddressAggregatedListWarning $warning
*/
public function setWarning(AddressAggregatedListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return AddressAggregatedListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddressAggregatedList::class, 'Google_Service_Compute_AddressAggregatedList');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AddressAggregatedListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = AddressAggregatedListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param AddressAggregatedListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return AddressAggregatedListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddressAggregatedListWarning::class, 'Google_Service_Compute_AddressAggregatedListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AddressAggregatedListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddressAggregatedListWarningData::class, 'Google_Service_Compute_AddressAggregatedListWarningData');
@@ -0,0 +1,161 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AddressList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
protected $itemsType = Address::class;
protected $itemsDataType = 'array';
/**
* Output only. [Output Only] Type of resource. Always compute#addressList for
* lists of addresses.
*
* @var string
*/
public $kind;
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @var string
*/
public $selfLink;
protected $warningType = AddressListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of Address resources.
*
* @param Address[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Address[]
*/
public function getItems()
{
return $this->items;
}
/**
* Output only. [Output Only] Type of resource. Always compute#addressList for
* lists of addresses.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* [Output Only] Informational warning message.
*
* @param AddressListWarning $warning
*/
public function setWarning(AddressListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return AddressListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddressList::class, 'Google_Service_Compute_AddressList');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AddressListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = AddressListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param AddressListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return AddressListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddressListWarning::class, 'Google_Service_Compute_AddressListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AddressListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddressListWarningData::class, 'Google_Service_Compute_AddressListWarningData');
@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AddressesScopedList extends \Google\Collection
{
protected $collection_key = 'addresses';
protected $addressesType = Address::class;
protected $addressesDataType = 'array';
protected $warningType = AddressesScopedListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] A list of addresses contained in this scope.
*
* @param Address[] $addresses
*/
public function setAddresses($addresses)
{
$this->addresses = $addresses;
}
/**
* @return Address[]
*/
public function getAddresses()
{
return $this->addresses;
}
/**
* [Output Only] Informational warning which replaces the list of addresses
* when the list is empty.
*
* @param AddressesScopedListWarning $warning
*/
public function setWarning(AddressesScopedListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return AddressesScopedListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddressesScopedList::class, 'Google_Service_Compute_AddressesScopedList');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AddressesScopedListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = AddressesScopedListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param AddressesScopedListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return AddressesScopedListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddressesScopedListWarning::class, 'Google_Service_Compute_AddressesScopedListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AddressesScopedListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddressesScopedListWarningData::class, 'Google_Service_Compute_AddressesScopedListWarningData');
@@ -0,0 +1,192 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AdvancedMachineFeatures extends \Google\Model
{
/**
* Architecturally defined non-LLC events.
*/
public const PERFORMANCE_MONITORING_UNIT_ARCHITECTURAL = 'ARCHITECTURAL';
/**
* Most documented core/L2 and LLC events.
*/
public const PERFORMANCE_MONITORING_UNIT_ENHANCED = 'ENHANCED';
public const PERFORMANCE_MONITORING_UNIT_PERFORMANCE_MONITORING_UNIT_UNSPECIFIED = 'PERFORMANCE_MONITORING_UNIT_UNSPECIFIED';
/**
* Most documented core/L2 events.
*/
public const PERFORMANCE_MONITORING_UNIT_STANDARD = 'STANDARD';
/**
* Whether to enable nested virtualization or not (default is false).
*
* @var bool
*/
public $enableNestedVirtualization;
/**
* Whether to enable UEFI networking for instance creation.
*
* @var bool
*/
public $enableUefiNetworking;
/**
* Type of Performance Monitoring Unit requested on instance.
*
* @var string
*/
public $performanceMonitoringUnit;
/**
* The number of threads per physical core. To disable simultaneous
* multithreading (SMT) set this to 1. If unset, the maximum number of threads
* supported per core by the underlying processor is assumed.
*
* @var int
*/
public $threadsPerCore;
/**
* Turbo frequency mode to use for the instance. Supported modes include: *
* ALL_CORE_MAX
*
* Using empty string or not setting this field will use the platform-specific
* default turbo mode.
*
* @var string
*/
public $turboMode;
/**
* The number of physical cores to expose to an instance. Multiply by the
* number of threads per core to compute the total number of virtual CPUs to
* expose to the instance. If unset, the number of cores is inferred from the
* instance's nominal CPU count and the underlying platform's SMT width.
*
* @var int
*/
public $visibleCoreCount;
/**
* Whether to enable nested virtualization or not (default is false).
*
* @param bool $enableNestedVirtualization
*/
public function setEnableNestedVirtualization($enableNestedVirtualization)
{
$this->enableNestedVirtualization = $enableNestedVirtualization;
}
/**
* @return bool
*/
public function getEnableNestedVirtualization()
{
return $this->enableNestedVirtualization;
}
/**
* Whether to enable UEFI networking for instance creation.
*
* @param bool $enableUefiNetworking
*/
public function setEnableUefiNetworking($enableUefiNetworking)
{
$this->enableUefiNetworking = $enableUefiNetworking;
}
/**
* @return bool
*/
public function getEnableUefiNetworking()
{
return $this->enableUefiNetworking;
}
/**
* Type of Performance Monitoring Unit requested on instance.
*
* Accepted values: ARCHITECTURAL, ENHANCED,
* PERFORMANCE_MONITORING_UNIT_UNSPECIFIED, STANDARD
*
* @param self::PERFORMANCE_MONITORING_UNIT_* $performanceMonitoringUnit
*/
public function setPerformanceMonitoringUnit($performanceMonitoringUnit)
{
$this->performanceMonitoringUnit = $performanceMonitoringUnit;
}
/**
* @return self::PERFORMANCE_MONITORING_UNIT_*
*/
public function getPerformanceMonitoringUnit()
{
return $this->performanceMonitoringUnit;
}
/**
* The number of threads per physical core. To disable simultaneous
* multithreading (SMT) set this to 1. If unset, the maximum number of threads
* supported per core by the underlying processor is assumed.
*
* @param int $threadsPerCore
*/
public function setThreadsPerCore($threadsPerCore)
{
$this->threadsPerCore = $threadsPerCore;
}
/**
* @return int
*/
public function getThreadsPerCore()
{
return $this->threadsPerCore;
}
/**
* Turbo frequency mode to use for the instance. Supported modes include: *
* ALL_CORE_MAX
*
* Using empty string or not setting this field will use the platform-specific
* default turbo mode.
*
* @param string $turboMode
*/
public function setTurboMode($turboMode)
{
$this->turboMode = $turboMode;
}
/**
* @return string
*/
public function getTurboMode()
{
return $this->turboMode;
}
/**
* The number of physical cores to expose to an instance. Multiply by the
* number of threads per core to compute the total number of virtual CPUs to
* expose to the instance. If unset, the number of cores is inferred from the
* instance's nominal CPU count and the underlying platform's SMT width.
*
* @param int $visibleCoreCount
*/
public function setVisibleCoreCount($visibleCoreCount)
{
$this->visibleCoreCount = $visibleCoreCount;
}
/**
* @return int
*/
public function getVisibleCoreCount()
{
return $this->visibleCoreCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AdvancedMachineFeatures::class, 'Google_Service_Compute_AdvancedMachineFeatures');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AliasIpRange extends \Google\Model
{
/**
* The IP alias ranges to allocate for this interface. This IP CIDR range must
* belong to the specified subnetwork and cannot contain IP addresses reserved
* by system or used by other network interfaces. This range may be a single
* IP address (such as 10.2.3.4), a netmask (such as/24) or a CIDR-formatted
* string (such as10.1.2.0/24).
*
* @var string
*/
public $ipCidrRange;
/**
* The name of a subnetwork secondary IP range from which to allocate an IP
* alias range. If not specified, the primary range of the subnetwork is used.
*
* @var string
*/
public $subnetworkRangeName;
/**
* The IP alias ranges to allocate for this interface. This IP CIDR range must
* belong to the specified subnetwork and cannot contain IP addresses reserved
* by system or used by other network interfaces. This range may be a single
* IP address (such as 10.2.3.4), a netmask (such as/24) or a CIDR-formatted
* string (such as10.1.2.0/24).
*
* @param string $ipCidrRange
*/
public function setIpCidrRange($ipCidrRange)
{
$this->ipCidrRange = $ipCidrRange;
}
/**
* @return string
*/
public function getIpCidrRange()
{
return $this->ipCidrRange;
}
/**
* The name of a subnetwork secondary IP range from which to allocate an IP
* alias range. If not specified, the primary range of the subnetwork is used.
*
* @param string $subnetworkRangeName
*/
public function setSubnetworkRangeName($subnetworkRangeName)
{
$this->subnetworkRangeName = $subnetworkRangeName;
}
/**
* @return string
*/
public function getSubnetworkRangeName()
{
return $this->subnetworkRangeName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AliasIpRange::class, 'Google_Service_Compute_AliasIpRange');
@@ -0,0 +1,137 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AllocationAggregateReservation extends \Google\Collection
{
public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_DEVICE_CT3 = 'VM_FAMILY_CLOUD_TPU_DEVICE_CT3';
public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L = 'VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L';
public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP = 'VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP';
public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E = 'VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E';
public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P = 'VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P';
public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P = 'VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P';
public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P = 'VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P';
public const VM_FAMILY_VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X = 'VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X';
/**
* Reserved resources will be optimized for BATCH workloads, such as ML
* training.
*/
public const WORKLOAD_TYPE_BATCH = 'BATCH';
/**
* Reserved resources will be optimized for SERVING workloads, such as ML
* inference.
*/
public const WORKLOAD_TYPE_SERVING = 'SERVING';
public const WORKLOAD_TYPE_UNSPECIFIED = 'UNSPECIFIED';
protected $collection_key = 'reservedResources';
protected $inUseResourcesType = AllocationAggregateReservationReservedResourceInfo::class;
protected $inUseResourcesDataType = 'array';
protected $reservedResourcesType = AllocationAggregateReservationReservedResourceInfo::class;
protected $reservedResourcesDataType = 'array';
/**
* The VM family that all instances scheduled against this reservation must
* belong to.
*
* @var string
*/
public $vmFamily;
/**
* The workload type of the instances that will target this reservation.
*
* @var string
*/
public $workloadType;
/**
* Output only. [Output only] List of resources currently in use.
*
* @param AllocationAggregateReservationReservedResourceInfo[] $inUseResources
*/
public function setInUseResources($inUseResources)
{
$this->inUseResources = $inUseResources;
}
/**
* @return AllocationAggregateReservationReservedResourceInfo[]
*/
public function getInUseResources()
{
return $this->inUseResources;
}
/**
* List of reserved resources (CPUs, memory, accelerators).
*
* @param AllocationAggregateReservationReservedResourceInfo[] $reservedResources
*/
public function setReservedResources($reservedResources)
{
$this->reservedResources = $reservedResources;
}
/**
* @return AllocationAggregateReservationReservedResourceInfo[]
*/
public function getReservedResources()
{
return $this->reservedResources;
}
/**
* The VM family that all instances scheduled against this reservation must
* belong to.
*
* Accepted values: VM_FAMILY_CLOUD_TPU_DEVICE_CT3,
* VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L,
* VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP,
* VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT6E,
* VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P, VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P,
* VM_FAMILY_CLOUD_TPU_POD_SLICE_CT5P, VM_FAMILY_CLOUD_TPU_POD_SLICE_TPU7X
*
* @param self::VM_FAMILY_* $vmFamily
*/
public function setVmFamily($vmFamily)
{
$this->vmFamily = $vmFamily;
}
/**
* @return self::VM_FAMILY_*
*/
public function getVmFamily()
{
return $this->vmFamily;
}
/**
* The workload type of the instances that will target this reservation.
*
* Accepted values: BATCH, SERVING, UNSPECIFIED
*
* @param self::WORKLOAD_TYPE_* $workloadType
*/
public function setWorkloadType($workloadType)
{
$this->workloadType = $workloadType;
}
/**
* @return self::WORKLOAD_TYPE_*
*/
public function getWorkloadType()
{
return $this->workloadType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationAggregateReservation::class, 'Google_Service_Compute_AllocationAggregateReservation');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AllocationAggregateReservationReservedResourceInfo extends \Google\Model
{
protected $acceleratorType = AllocationAggregateReservationReservedResourceInfoAccelerator::class;
protected $acceleratorDataType = '';
/**
* Properties of accelerator resources in this reservation.
*
* @param AllocationAggregateReservationReservedResourceInfoAccelerator $accelerator
*/
public function setAccelerator(AllocationAggregateReservationReservedResourceInfoAccelerator $accelerator)
{
$this->accelerator = $accelerator;
}
/**
* @return AllocationAggregateReservationReservedResourceInfoAccelerator
*/
public function getAccelerator()
{
return $this->accelerator;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationAggregateReservationReservedResourceInfo::class, 'Google_Service_Compute_AllocationAggregateReservationReservedResourceInfo');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AllocationAggregateReservationReservedResourceInfoAccelerator extends \Google\Model
{
/**
* Number of accelerators of specified type.
*
* @var int
*/
public $acceleratorCount;
/**
* Full or partial URL to accelerator type. e.g.
* "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l"
*
* @var string
*/
public $acceleratorType;
/**
* Number of accelerators of specified type.
*
* @param int $acceleratorCount
*/
public function setAcceleratorCount($acceleratorCount)
{
$this->acceleratorCount = $acceleratorCount;
}
/**
* @return int
*/
public function getAcceleratorCount()
{
return $this->acceleratorCount;
}
/**
* Full or partial URL to accelerator type. e.g.
* "projects/{PROJECT}/zones/{ZONE}/acceleratorTypes/ct4l"
*
* @param string $acceleratorType
*/
public function setAcceleratorType($acceleratorType)
{
$this->acceleratorType = $acceleratorType;
}
/**
* @return string
*/
public function getAcceleratorType()
{
return $this->acceleratorType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationAggregateReservationReservedResourceInfoAccelerator::class, 'Google_Service_Compute_AllocationAggregateReservationReservedResourceInfoAccelerator');
@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AllocationReservationSharingPolicy extends \Google\Model
{
/**
* Allow all Google Cloud managed services to share reservations.
*/
public const SERVICE_SHARE_TYPE_ALLOW_ALL = 'ALLOW_ALL';
/**
* [Default] Disallow sharing with all Google Cloud services.
*/
public const SERVICE_SHARE_TYPE_DISALLOW_ALL = 'DISALLOW_ALL';
public const SERVICE_SHARE_TYPE_SERVICE_SHARE_TYPE_UNSPECIFIED = 'SERVICE_SHARE_TYPE_UNSPECIFIED';
/**
* Sharing config for all Google Cloud services.
*
* @var string
*/
public $serviceShareType;
/**
* Sharing config for all Google Cloud services.
*
* Accepted values: ALLOW_ALL, DISALLOW_ALL, SERVICE_SHARE_TYPE_UNSPECIFIED
*
* @param self::SERVICE_SHARE_TYPE_* $serviceShareType
*/
public function setServiceShareType($serviceShareType)
{
$this->serviceShareType = $serviceShareType;
}
/**
* @return self::SERVICE_SHARE_TYPE_*
*/
public function getServiceShareType()
{
return $this->serviceShareType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationReservationSharingPolicy::class, 'Google_Service_Compute_AllocationReservationSharingPolicy');
@@ -0,0 +1,102 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AllocationResourceStatus extends \Google\Model
{
protected $healthInfoType = AllocationResourceStatusHealthInfo::class;
protected $healthInfoDataType = '';
/**
* The number of reservation blocks associated with this reservation.
*
* @var int
*/
public $reservationBlockCount;
protected $reservationMaintenanceType = GroupMaintenanceInfo::class;
protected $reservationMaintenanceDataType = '';
protected $specificSkuAllocationType = AllocationResourceStatusSpecificSKUAllocation::class;
protected $specificSkuAllocationDataType = '';
/**
* [Output only] Health information for the reservation.
*
* @param AllocationResourceStatusHealthInfo $healthInfo
*/
public function setHealthInfo(AllocationResourceStatusHealthInfo $healthInfo)
{
$this->healthInfo = $healthInfo;
}
/**
* @return AllocationResourceStatusHealthInfo
*/
public function getHealthInfo()
{
return $this->healthInfo;
}
/**
* The number of reservation blocks associated with this reservation.
*
* @param int $reservationBlockCount
*/
public function setReservationBlockCount($reservationBlockCount)
{
$this->reservationBlockCount = $reservationBlockCount;
}
/**
* @return int
*/
public function getReservationBlockCount()
{
return $this->reservationBlockCount;
}
/**
* Maintenance information for this reservation
*
* @param GroupMaintenanceInfo $reservationMaintenance
*/
public function setReservationMaintenance(GroupMaintenanceInfo $reservationMaintenance)
{
$this->reservationMaintenance = $reservationMaintenance;
}
/**
* @return GroupMaintenanceInfo
*/
public function getReservationMaintenance()
{
return $this->reservationMaintenance;
}
/**
* Allocation Properties of this reservation.
*
* @param AllocationResourceStatusSpecificSKUAllocation $specificSkuAllocation
*/
public function setSpecificSkuAllocation(AllocationResourceStatusSpecificSKUAllocation $specificSkuAllocation)
{
$this->specificSkuAllocation = $specificSkuAllocation;
}
/**
* @return AllocationResourceStatusSpecificSKUAllocation
*/
public function getSpecificSkuAllocation()
{
return $this->specificSkuAllocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationResourceStatus::class, 'Google_Service_Compute_AllocationResourceStatus');
@@ -0,0 +1,106 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AllocationResourceStatusHealthInfo extends \Google\Model
{
/**
* The reservation is degraded.
*/
public const HEALTH_STATUS_DEGRADED = 'DEGRADED';
/**
* The reservation is healthy.
*/
public const HEALTH_STATUS_HEALTHY = 'HEALTHY';
/**
* The health status of the reservation is unspecified.
*/
public const HEALTH_STATUS_HEALTH_STATUS_UNSPECIFIED = 'HEALTH_STATUS_UNSPECIFIED';
/**
* The number of reservation blocks that are degraded.
*
* @var int
*/
public $degradedBlockCount;
/**
* The health status of the reservation.
*
* @var string
*/
public $healthStatus;
/**
* The number of reservation blocks that are healthy.
*
* @var int
*/
public $healthyBlockCount;
/**
* The number of reservation blocks that are degraded.
*
* @param int $degradedBlockCount
*/
public function setDegradedBlockCount($degradedBlockCount)
{
$this->degradedBlockCount = $degradedBlockCount;
}
/**
* @return int
*/
public function getDegradedBlockCount()
{
return $this->degradedBlockCount;
}
/**
* The health status of the reservation.
*
* Accepted values: DEGRADED, HEALTHY, HEALTH_STATUS_UNSPECIFIED
*
* @param self::HEALTH_STATUS_* $healthStatus
*/
public function setHealthStatus($healthStatus)
{
$this->healthStatus = $healthStatus;
}
/**
* @return self::HEALTH_STATUS_*
*/
public function getHealthStatus()
{
return $this->healthStatus;
}
/**
* The number of reservation blocks that are healthy.
*
* @param int $healthyBlockCount
*/
public function setHealthyBlockCount($healthyBlockCount)
{
$this->healthyBlockCount = $healthyBlockCount;
}
/**
* @return int
*/
public function getHealthyBlockCount()
{
return $this->healthyBlockCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationResourceStatusHealthInfo::class, 'Google_Service_Compute_AllocationResourceStatusHealthInfo');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AllocationResourceStatusSpecificSKUAllocation extends \Google\Model
{
/**
* ID of the instance template used to populate reservation properties.
*
* @var string
*/
public $sourceInstanceTemplateId;
/**
* Per service utilization breakdown. The Key is the Google Cloud managed
* service name.
*
* @var string[]
*/
public $utilizations;
/**
* ID of the instance template used to populate reservation properties.
*
* @param string $sourceInstanceTemplateId
*/
public function setSourceInstanceTemplateId($sourceInstanceTemplateId)
{
$this->sourceInstanceTemplateId = $sourceInstanceTemplateId;
}
/**
* @return string
*/
public function getSourceInstanceTemplateId()
{
return $this->sourceInstanceTemplateId;
}
/**
* Per service utilization breakdown. The Key is the Google Cloud managed
* service name.
*
* @param string[] $utilizations
*/
public function setUtilizations($utilizations)
{
$this->utilizations = $utilizations;
}
/**
* @return string[]
*/
public function getUtilizations()
{
return $this->utilizations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationResourceStatusSpecificSKUAllocation::class, 'Google_Service_Compute_AllocationResourceStatusSpecificSKUAllocation');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk extends \Google\Model
{
public const INTERFACE_NVME = 'NVME';
public const INTERFACE_SCSI = 'SCSI';
/**
* Specifies the size of the disk in base-2 GB.
*
* @var string
*/
public $diskSizeGb;
/**
* Specifies the disk interface to use for attaching this disk, which is
* either SCSI or NVME. The default isSCSI. For performance characteristics of
* SCSI over NVMe, seeLocal SSD performance.
*
* @var string
*/
public $interface;
/**
* Specifies the size of the disk in base-2 GB.
*
* @param string $diskSizeGb
*/
public function setDiskSizeGb($diskSizeGb)
{
$this->diskSizeGb = $diskSizeGb;
}
/**
* @return string
*/
public function getDiskSizeGb()
{
return $this->diskSizeGb;
}
/**
* Specifies the disk interface to use for attaching this disk, which is
* either SCSI or NVME. The default isSCSI. For performance characteristics of
* SCSI over NVMe, seeLocal SSD performance.
*
* Accepted values: NVME, SCSI
*
* @param self::INTERFACE_* $interface
*/
public function setInterface($interface)
{
$this->interface = $interface;
}
/**
* @return self::INTERFACE_*
*/
public function getInterface()
{
return $this->interface;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk::class, 'Google_Service_Compute_AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk');
@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AllocationSpecificSKUAllocationReservedInstanceProperties extends \Google\Collection
{
protected $collection_key = 'localSsds';
protected $guestAcceleratorsType = AcceleratorConfig::class;
protected $guestAcceleratorsDataType = 'array';
protected $localSsdsType = AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk::class;
protected $localSsdsDataType = 'array';
/**
* An opaque location hint used to place the allocation close to other
* resources. This field is for use by internal tools that use the public API.
*
* @var string
*/
public $locationHint;
/**
* Specifies type of machine (name only) which has fixed number of vCPUs and
* fixed amount of memory. This also includes specifying custom machine type
* following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.
*
* @var string
*/
public $machineType;
/**
* Minimum cpu platform the reservation.
*
* @var string
*/
public $minCpuPlatform;
/**
* Specifies accelerator type and count.
*
* @param AcceleratorConfig[] $guestAccelerators
*/
public function setGuestAccelerators($guestAccelerators)
{
$this->guestAccelerators = $guestAccelerators;
}
/**
* @return AcceleratorConfig[]
*/
public function getGuestAccelerators()
{
return $this->guestAccelerators;
}
/**
* Specifies amount of local ssd to reserve with each instance. The type of
* disk is local-ssd.
*
* @param AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk[] $localSsds
*/
public function setLocalSsds($localSsds)
{
$this->localSsds = $localSsds;
}
/**
* @return AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk[]
*/
public function getLocalSsds()
{
return $this->localSsds;
}
/**
* An opaque location hint used to place the allocation close to other
* resources. This field is for use by internal tools that use the public API.
*
* @param string $locationHint
*/
public function setLocationHint($locationHint)
{
$this->locationHint = $locationHint;
}
/**
* @return string
*/
public function getLocationHint()
{
return $this->locationHint;
}
/**
* Specifies type of machine (name only) which has fixed number of vCPUs and
* fixed amount of memory. This also includes specifying custom machine type
* following custom-NUMBER_OF_CPUS-AMOUNT_OF_MEMORY pattern.
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Minimum cpu platform the reservation.
*
* @param string $minCpuPlatform
*/
public function setMinCpuPlatform($minCpuPlatform)
{
$this->minCpuPlatform = $minCpuPlatform;
}
/**
* @return string
*/
public function getMinCpuPlatform()
{
return $this->minCpuPlatform;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationSpecificSKUAllocationReservedInstanceProperties::class, 'Google_Service_Compute_AllocationSpecificSKUAllocationReservedInstanceProperties');
@@ -0,0 +1,150 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AllocationSpecificSKUReservation extends \Google\Model
{
/**
* Output only. [Output Only] Indicates how many instances are actually usable
* currently.
*
* @var string
*/
public $assuredCount;
/**
* Specifies the number of resources that are allocated.
*
* @var string
*/
public $count;
/**
* Output only. [Output Only] Indicates how many instances are in use.
*
* @var string
*/
public $inUseCount;
protected $instancePropertiesType = AllocationSpecificSKUAllocationReservedInstanceProperties::class;
protected $instancePropertiesDataType = '';
/**
* Specifies the instance template to create the reservation. If you use this
* field, you must exclude the instanceProperties field.
*
* This field is optional, and it can be a full or partial URL. For example,
* the following are all valid URLs to an instance template: -
* https://www.googleapis.com/compute/v1/projects/project/global/instanceTempl
* ates/instanceTemplate -
* projects/project/global/instanceTemplates/instanceTemplate -
* global/instanceTemplates/instanceTemplate
*
* @var string
*/
public $sourceInstanceTemplate;
/**
* Output only. [Output Only] Indicates how many instances are actually usable
* currently.
*
* @param string $assuredCount
*/
public function setAssuredCount($assuredCount)
{
$this->assuredCount = $assuredCount;
}
/**
* @return string
*/
public function getAssuredCount()
{
return $this->assuredCount;
}
/**
* Specifies the number of resources that are allocated.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* Output only. [Output Only] Indicates how many instances are in use.
*
* @param string $inUseCount
*/
public function setInUseCount($inUseCount)
{
$this->inUseCount = $inUseCount;
}
/**
* @return string
*/
public function getInUseCount()
{
return $this->inUseCount;
}
/**
* The instance properties for the reservation.
*
* @param AllocationSpecificSKUAllocationReservedInstanceProperties $instanceProperties
*/
public function setInstanceProperties(AllocationSpecificSKUAllocationReservedInstanceProperties $instanceProperties)
{
$this->instanceProperties = $instanceProperties;
}
/**
* @return AllocationSpecificSKUAllocationReservedInstanceProperties
*/
public function getInstanceProperties()
{
return $this->instanceProperties;
}
/**
* Specifies the instance template to create the reservation. If you use this
* field, you must exclude the instanceProperties field.
*
* This field is optional, and it can be a full or partial URL. For example,
* the following are all valid URLs to an instance template: -
* https://www.googleapis.com/compute/v1/projects/project/global/instanceTempl
* ates/instanceTemplate -
* projects/project/global/instanceTemplates/instanceTemplate -
* global/instanceTemplates/instanceTemplate
*
* @param string $sourceInstanceTemplate
*/
public function setSourceInstanceTemplate($sourceInstanceTemplate)
{
$this->sourceInstanceTemplate = $sourceInstanceTemplate;
}
/**
* @return string
*/
public function getSourceInstanceTemplate()
{
return $this->sourceInstanceTemplate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllocationSpecificSKUReservation::class, 'Google_Service_Compute_AllocationSpecificSKUReservation');
@@ -0,0 +1,544 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AttachedDisk extends \Google\Collection
{
/**
* Default value indicating Architecture is not set.
*/
public const ARCHITECTURE_ARCHITECTURE_UNSPECIFIED = 'ARCHITECTURE_UNSPECIFIED';
/**
* Machines with architecture ARM64
*/
public const ARCHITECTURE_ARM64 = 'ARM64';
/**
* Machines with architecture X86_64
*/
public const ARCHITECTURE_X86_64 = 'X86_64';
public const INTERFACE_NVME = 'NVME';
public const INTERFACE_SCSI = 'SCSI';
/**
* Attaches this disk in read-only mode. Multiple virtual machines can use a
* disk in read-only mode at a time.
*/
public const MODE_READ_ONLY = 'READ_ONLY';
/**
* *[Default]* Attaches this disk in read-write mode. Only one virtual machine
* at a time can be attached to a disk in read-write mode.
*/
public const MODE_READ_WRITE = 'READ_WRITE';
/**
* *[Default]* Disk state has not been preserved.
*/
public const SAVED_STATE_DISK_SAVED_STATE_UNSPECIFIED = 'DISK_SAVED_STATE_UNSPECIFIED';
/**
* Disk state has been preserved.
*/
public const SAVED_STATE_PRESERVED = 'PRESERVED';
public const TYPE_PERSISTENT = 'PERSISTENT';
public const TYPE_SCRATCH = 'SCRATCH';
protected $collection_key = 'licenses';
/**
* Output only. [Output Only] The architecture of the attached disk. Valid
* values are ARM64 or X86_64.
*
* @var string
*/
public $architecture;
/**
* Specifies whether the disk will be auto-deleted when the instance is
* deleted (but not when the disk is detached from the instance).
*
* @var bool
*/
public $autoDelete;
/**
* Indicates that this is a boot disk. The virtual machine will use the first
* partition of the disk for its root filesystem.
*
* @var bool
*/
public $boot;
/**
* Specifies a unique device name of your choice that is reflected into
* the/dev/disk/by-id/google-* tree of a Linux operating system running within
* the instance. This name can be used to reference the device for mounting,
* resizing, and so on, from within the instance.
*
* If not specified, the server chooses a default device name to apply to this
* disk, in the form persistent-disk-x, where x is a number assigned by Google
* Compute Engine. This field is only applicable for persistent disks.
*
* @var string
*/
public $deviceName;
protected $diskEncryptionKeyType = CustomerEncryptionKey::class;
protected $diskEncryptionKeyDataType = '';
/**
* The size of the disk in GB.
*
* @var string
*/
public $diskSizeGb;
/**
* [Input Only] Whether to force attach the regional disk even if it's
* currently attached to another instance. If you try to force attach a zonal
* disk to an instance, you will receive an error.
*
* @var bool
*/
public $forceAttach;
protected $guestOsFeaturesType = GuestOsFeature::class;
protected $guestOsFeaturesDataType = 'array';
/**
* Output only. [Output Only] A zero-based index to this disk, where 0 is
* reserved for the boot disk. If you have many disks attached to an instance,
* each disk would have a unique index number.
*
* @var int
*/
public $index;
protected $initializeParamsType = AttachedDiskInitializeParams::class;
protected $initializeParamsDataType = '';
/**
* Specifies the disk interface to use for attaching this disk, which is
* either SCSI or NVME. For most machine types, the default is SCSI. Local
* SSDs can use either NVME or SCSI. In certain configurations, persistent
* disks can use NVMe. For more information, seeAbout persistent disks.
*
* @var string
*/
public $interface;
/**
* Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk
* for attached disks.
*
* @var string
*/
public $kind;
/**
* Output only. [Output Only] Any valid publicly visible licenses.
*
* @var string[]
*/
public $licenses;
/**
* The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If
* not specified, the default is to attach the disk in READ_WRITE mode.
*
* @var string
*/
public $mode;
/**
* Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED
* state, this field is set to PRESERVED if the LocalSSD data has been saved
* to a persistent location by customer request. (see the discard_local_ssd
* option on Stop/Suspend). Read-only in the api.
*
* @var string
*/
public $savedState;
protected $shieldedInstanceInitialStateType = InitialStateConfig::class;
protected $shieldedInstanceInitialStateDataType = '';
/**
* Specifies a valid partial or full URL to an existing Persistent Disk
* resource. When creating a new instance boot disk, one
* ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or
* disks.source is required.
*
* If desired, you can also attach existing non-root persistent disks using
* this property. This field is only applicable for persistent disks.
*
* Note that for InstanceTemplate, specify the disk name for zonal disk, and
* the URL for regional disk.
*
* @var string
*/
public $source;
/**
* Specifies the type of the disk, either SCRATCH orPERSISTENT. If not
* specified, the default isPERSISTENT.
*
* @var string
*/
public $type;
/**
* Output only. [Output Only] The architecture of the attached disk. Valid
* values are ARM64 or X86_64.
*
* Accepted values: ARCHITECTURE_UNSPECIFIED, ARM64, X86_64
*
* @param self::ARCHITECTURE_* $architecture
*/
public function setArchitecture($architecture)
{
$this->architecture = $architecture;
}
/**
* @return self::ARCHITECTURE_*
*/
public function getArchitecture()
{
return $this->architecture;
}
/**
* Specifies whether the disk will be auto-deleted when the instance is
* deleted (but not when the disk is detached from the instance).
*
* @param bool $autoDelete
*/
public function setAutoDelete($autoDelete)
{
$this->autoDelete = $autoDelete;
}
/**
* @return bool
*/
public function getAutoDelete()
{
return $this->autoDelete;
}
/**
* Indicates that this is a boot disk. The virtual machine will use the first
* partition of the disk for its root filesystem.
*
* @param bool $boot
*/
public function setBoot($boot)
{
$this->boot = $boot;
}
/**
* @return bool
*/
public function getBoot()
{
return $this->boot;
}
/**
* Specifies a unique device name of your choice that is reflected into
* the/dev/disk/by-id/google-* tree of a Linux operating system running within
* the instance. This name can be used to reference the device for mounting,
* resizing, and so on, from within the instance.
*
* If not specified, the server chooses a default device name to apply to this
* disk, in the form persistent-disk-x, where x is a number assigned by Google
* Compute Engine. This field is only applicable for persistent disks.
*
* @param string $deviceName
*/
public function setDeviceName($deviceName)
{
$this->deviceName = $deviceName;
}
/**
* @return string
*/
public function getDeviceName()
{
return $this->deviceName;
}
/**
* Encrypts or decrypts a disk using acustomer-supplied encryption key.
*
* If you are creating a new disk, this field encrypts the new disk using an
* encryption key that you provide. If you are attaching an existing disk that
* is already encrypted, this field decrypts the disk using the customer-
* supplied encryption key.
*
* If you encrypt a disk using a customer-supplied key, you must provide the
* same key again when you attempt to use this resource at a later time. For
* example, you must provide the key when you create a snapshot or an image
* from the disk or when you attach the disk to a virtual machine instance.
*
* If you do not provide an encryption key, then the disk will be encrypted
* using an automatically generated key and you do not need to provide a key
* to use the disk later.
*
* Note:
*
* Instance templates do not storecustomer-supplied encryption keys, so you
* cannot use your own keys to encrypt disks in amanaged instance group.
*
* You cannot create VMs that have disks with customer-supplied keys using the
* bulk insert method.
*
* @param CustomerEncryptionKey $diskEncryptionKey
*/
public function setDiskEncryptionKey(CustomerEncryptionKey $diskEncryptionKey)
{
$this->diskEncryptionKey = $diskEncryptionKey;
}
/**
* @return CustomerEncryptionKey
*/
public function getDiskEncryptionKey()
{
return $this->diskEncryptionKey;
}
/**
* The size of the disk in GB.
*
* @param string $diskSizeGb
*/
public function setDiskSizeGb($diskSizeGb)
{
$this->diskSizeGb = $diskSizeGb;
}
/**
* @return string
*/
public function getDiskSizeGb()
{
return $this->diskSizeGb;
}
/**
* [Input Only] Whether to force attach the regional disk even if it's
* currently attached to another instance. If you try to force attach a zonal
* disk to an instance, you will receive an error.
*
* @param bool $forceAttach
*/
public function setForceAttach($forceAttach)
{
$this->forceAttach = $forceAttach;
}
/**
* @return bool
*/
public function getForceAttach()
{
return $this->forceAttach;
}
/**
* A list of features to enable on the guest operating system. Applicable only
* for bootable images. Read Enabling guest operating system features to see a
* list of available options.
*
* @param GuestOsFeature[] $guestOsFeatures
*/
public function setGuestOsFeatures($guestOsFeatures)
{
$this->guestOsFeatures = $guestOsFeatures;
}
/**
* @return GuestOsFeature[]
*/
public function getGuestOsFeatures()
{
return $this->guestOsFeatures;
}
/**
* Output only. [Output Only] A zero-based index to this disk, where 0 is
* reserved for the boot disk. If you have many disks attached to an instance,
* each disk would have a unique index number.
*
* @param int $index
*/
public function setIndex($index)
{
$this->index = $index;
}
/**
* @return int
*/
public function getIndex()
{
return $this->index;
}
/**
* [Input Only] Specifies the parameters for a new disk that will be created
* alongside the new instance. Use initialization parameters to create boot
* disks or local SSDs attached to the new instance.
*
* This property is mutually exclusive with the source property; you can only
* define one or the other, but not both.
*
* @param AttachedDiskInitializeParams $initializeParams
*/
public function setInitializeParams(AttachedDiskInitializeParams $initializeParams)
{
$this->initializeParams = $initializeParams;
}
/**
* @return AttachedDiskInitializeParams
*/
public function getInitializeParams()
{
return $this->initializeParams;
}
/**
* Specifies the disk interface to use for attaching this disk, which is
* either SCSI or NVME. For most machine types, the default is SCSI. Local
* SSDs can use either NVME or SCSI. In certain configurations, persistent
* disks can use NVMe. For more information, seeAbout persistent disks.
*
* Accepted values: NVME, SCSI
*
* @param self::INTERFACE_* $interface
*/
public function setInterface($interface)
{
$this->interface = $interface;
}
/**
* @return self::INTERFACE_*
*/
public function getInterface()
{
return $this->interface;
}
/**
* Output only. [Output Only] Type of the resource. Alwayscompute#attachedDisk
* for attached disks.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Output only. [Output Only] Any valid publicly visible licenses.
*
* @param string[] $licenses
*/
public function setLicenses($licenses)
{
$this->licenses = $licenses;
}
/**
* @return string[]
*/
public function getLicenses()
{
return $this->licenses;
}
/**
* The mode in which to attach this disk, either READ_WRITE orREAD_ONLY. If
* not specified, the default is to attach the disk in READ_WRITE mode.
*
* Accepted values: READ_ONLY, READ_WRITE
*
* @param self::MODE_* $mode
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return self::MODE_*
*/
public function getMode()
{
return $this->mode;
}
/**
* Output only. For LocalSSD disks on VM Instances in STOPPED or SUSPENDED
* state, this field is set to PRESERVED if the LocalSSD data has been saved
* to a persistent location by customer request. (see the discard_local_ssd
* option on Stop/Suspend). Read-only in the api.
*
* Accepted values: DISK_SAVED_STATE_UNSPECIFIED, PRESERVED
*
* @param self::SAVED_STATE_* $savedState
*/
public function setSavedState($savedState)
{
$this->savedState = $savedState;
}
/**
* @return self::SAVED_STATE_*
*/
public function getSavedState()
{
return $this->savedState;
}
/**
* Output only. [Output Only] shielded vm initial state stored on disk
*
* @param InitialStateConfig $shieldedInstanceInitialState
*/
public function setShieldedInstanceInitialState(InitialStateConfig $shieldedInstanceInitialState)
{
$this->shieldedInstanceInitialState = $shieldedInstanceInitialState;
}
/**
* @return InitialStateConfig
*/
public function getShieldedInstanceInitialState()
{
return $this->shieldedInstanceInitialState;
}
/**
* Specifies a valid partial or full URL to an existing Persistent Disk
* resource. When creating a new instance boot disk, one
* ofinitializeParams.sourceImage orinitializeParams.sourceSnapshot or
* disks.source is required.
*
* If desired, you can also attach existing non-root persistent disks using
* this property. This field is only applicable for persistent disks.
*
* Note that for InstanceTemplate, specify the disk name for zonal disk, and
* the URL for regional disk.
*
* @param string $source
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* Specifies the type of the disk, either SCRATCH orPERSISTENT. If not
* specified, the default isPERSISTENT.
*
* Accepted values: PERSISTENT, SCRATCH
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttachedDisk::class, 'Google_Service_Compute_AttachedDisk');
@@ -0,0 +1,600 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AttachedDiskInitializeParams extends \Google\Collection
{
/**
* Default value indicating Architecture is not set.
*/
public const ARCHITECTURE_ARCHITECTURE_UNSPECIFIED = 'ARCHITECTURE_UNSPECIFIED';
/**
* Machines with architecture ARM64
*/
public const ARCHITECTURE_ARM64 = 'ARM64';
/**
* Machines with architecture X86_64
*/
public const ARCHITECTURE_X86_64 = 'X86_64';
/**
* Always recreate the disk.
*/
public const ON_UPDATE_ACTION_RECREATE_DISK = 'RECREATE_DISK';
/**
* Recreate the disk if source (image, snapshot) of this disk is different
* from source of existing disk.
*/
public const ON_UPDATE_ACTION_RECREATE_DISK_IF_SOURCE_CHANGED = 'RECREATE_DISK_IF_SOURCE_CHANGED';
/**
* Use the existing disk, this is the default behaviour.
*/
public const ON_UPDATE_ACTION_USE_EXISTING_DISK = 'USE_EXISTING_DISK';
protected $collection_key = 'resourcePolicies';
/**
* The architecture of the attached disk. Valid values are arm64 or x86_64.
*
* @var string
*/
public $architecture;
/**
* An optional description. Provide this property when creating the disk.
*
* @var string
*/
public $description;
/**
* Specifies the disk name. If not specified, the default is to use the name
* of the instance. If a disk with the same name already exists in the given
* region, the existing disk is attached to the new instance and the new disk
* is not created.
*
* @var string
*/
public $diskName;
/**
* Specifies the size of the disk in base-2 GB. The size must be at least 10
* GB. If you specify a sourceImage, which is required for boot disks, the
* default size is the size of the sourceImage. If you do not specify a
* sourceImage, the default disk size is 500 GB.
*
* @var string
*/
public $diskSizeGb;
/**
* @var string
*/
public $diskType;
/**
* Whether this disk is using confidential compute mode.
*
* @var bool
*/
public $enableConfidentialCompute;
/**
* Labels to apply to this disk. These can be later modified by
* thedisks.setLabels method. This field is only applicable for persistent
* disks.
*
* @var string[]
*/
public $labels;
/**
* A list of publicly visible licenses. Reserved for Google's use.
*
* @var string[]
*/
public $licenses;
/**
* Specifies which action to take on instance update with this disk. Default
* is to use the existing disk.
*
* @var string
*/
public $onUpdateAction;
/**
* Indicates how many IOPS to provision for the disk. This sets the number of
* I/O operations per second that the disk can handle. Values must be between
* 10,000 and 120,000. For more details, see theExtreme persistent disk
* documentation.
*
* @var string
*/
public $provisionedIops;
/**
* Indicates how much throughput to provision for the disk. This sets the
* number of throughput mb per second that the disk can handle. Values must
* greater than or equal to 1.
*
* @var string
*/
public $provisionedThroughput;
/**
* Required for each regional disk associated with the instance. Specify the
* URLs of the zones where the disk should be replicated to. You must provide
* exactly two replica zones, and one zone must be the same as the instance
* zone.
*
* @var string[]
*/
public $replicaZones;
/**
* Input only. Resource manager tags to be bound to the disk. Tag keys and
* values have the same definition as resource manager tags. Keys and values
* can be either in numeric format, such as `tagKeys/{tag_key_id}` and
* `tagValues/{tag_value_id}` or in namespaced format such as
* `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`.
* The field is ignored (both PUT & PATCH) when empty.
*
* @var string[]
*/
public $resourceManagerTags;
/**
* Resource policies applied to this disk for automatic snapshot creations.
* Specified using the full or partial URL. For instance template, specify
* only the resource policy name.
*
* @var string[]
*/
public $resourcePolicies;
/**
* The source image to create this disk. When creating a new instance boot
* disk, one of initializeParams.sourceImage orinitializeParams.sourceSnapshot
* or disks.source is required.
*
* To create a disk with one of the public operating system images, specify
* the image by its family name. For example, specifyfamily/debian-9 to use
* the latest Debian 9 image:
*
* projects/debian-cloud/global/images/family/debian-9
*
* Alternatively, use a specific version of a public operating system image:
*
* projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD
*
* To create a disk with a custom image that you created, specify the image
* name in the following format:
*
* global/images/my-custom-image
*
* You can also specify a custom image by its image family, which returns the
* latest version of the image in that family. Replace the image name with
* family/family-name:
*
* global/images/family/my-image-family
*
* If the source image is deleted later, this field will not be set.
*
* @var string
*/
public $sourceImage;
protected $sourceImageEncryptionKeyType = CustomerEncryptionKey::class;
protected $sourceImageEncryptionKeyDataType = '';
/**
* The source snapshot to create this disk. When creating a new instance boot
* disk, one of initializeParams.sourceSnapshot orinitializeParams.sourceImage
* or disks.source is required.
*
* To create a disk with a snapshot that you created, specify the snapshot
* name in the following format:
*
* global/snapshots/my-backup
*
* If the source snapshot is deleted later, this field will not be set.
*
* Note: You cannot create VMs in bulk using a snapshot as the source. Use an
* image instead when you create VMs using the bulk insert method.
*
* @var string
*/
public $sourceSnapshot;
protected $sourceSnapshotEncryptionKeyType = CustomerEncryptionKey::class;
protected $sourceSnapshotEncryptionKeyDataType = '';
/**
* The storage pool in which the new disk is created. You can provide this as
* a partial or full URL to the resource. For example, the following are valid
* values: - https://www.googleapis.com/compute/v1/projects/proje
* ct/zones/zone/storagePools/storagePool -
* projects/project/zones/zone/storagePools/storagePool -
* zones/zone/storagePools/storagePool
*
* @var string
*/
public $storagePool;
/**
* The architecture of the attached disk. Valid values are arm64 or x86_64.
*
* Accepted values: ARCHITECTURE_UNSPECIFIED, ARM64, X86_64
*
* @param self::ARCHITECTURE_* $architecture
*/
public function setArchitecture($architecture)
{
$this->architecture = $architecture;
}
/**
* @return self::ARCHITECTURE_*
*/
public function getArchitecture()
{
return $this->architecture;
}
/**
* An optional description. Provide this property when creating the disk.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Specifies the disk name. If not specified, the default is to use the name
* of the instance. If a disk with the same name already exists in the given
* region, the existing disk is attached to the new instance and the new disk
* is not created.
*
* @param string $diskName
*/
public function setDiskName($diskName)
{
$this->diskName = $diskName;
}
/**
* @return string
*/
public function getDiskName()
{
return $this->diskName;
}
/**
* Specifies the size of the disk in base-2 GB. The size must be at least 10
* GB. If you specify a sourceImage, which is required for boot disks, the
* default size is the size of the sourceImage. If you do not specify a
* sourceImage, the default disk size is 500 GB.
*
* @param string $diskSizeGb
*/
public function setDiskSizeGb($diskSizeGb)
{
$this->diskSizeGb = $diskSizeGb;
}
/**
* @return string
*/
public function getDiskSizeGb()
{
return $this->diskSizeGb;
}
/**
* @param string $diskType
*/
public function setDiskType($diskType)
{
$this->diskType = $diskType;
}
/**
* @return string
*/
public function getDiskType()
{
return $this->diskType;
}
/**
* Whether this disk is using confidential compute mode.
*
* @param bool $enableConfidentialCompute
*/
public function setEnableConfidentialCompute($enableConfidentialCompute)
{
$this->enableConfidentialCompute = $enableConfidentialCompute;
}
/**
* @return bool
*/
public function getEnableConfidentialCompute()
{
return $this->enableConfidentialCompute;
}
/**
* Labels to apply to this disk. These can be later modified by
* thedisks.setLabels method. This field is only applicable for persistent
* disks.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* A list of publicly visible licenses. Reserved for Google's use.
*
* @param string[] $licenses
*/
public function setLicenses($licenses)
{
$this->licenses = $licenses;
}
/**
* @return string[]
*/
public function getLicenses()
{
return $this->licenses;
}
/**
* Specifies which action to take on instance update with this disk. Default
* is to use the existing disk.
*
* Accepted values: RECREATE_DISK, RECREATE_DISK_IF_SOURCE_CHANGED,
* USE_EXISTING_DISK
*
* @param self::ON_UPDATE_ACTION_* $onUpdateAction
*/
public function setOnUpdateAction($onUpdateAction)
{
$this->onUpdateAction = $onUpdateAction;
}
/**
* @return self::ON_UPDATE_ACTION_*
*/
public function getOnUpdateAction()
{
return $this->onUpdateAction;
}
/**
* Indicates how many IOPS to provision for the disk. This sets the number of
* I/O operations per second that the disk can handle. Values must be between
* 10,000 and 120,000. For more details, see theExtreme persistent disk
* documentation.
*
* @param string $provisionedIops
*/
public function setProvisionedIops($provisionedIops)
{
$this->provisionedIops = $provisionedIops;
}
/**
* @return string
*/
public function getProvisionedIops()
{
return $this->provisionedIops;
}
/**
* Indicates how much throughput to provision for the disk. This sets the
* number of throughput mb per second that the disk can handle. Values must
* greater than or equal to 1.
*
* @param string $provisionedThroughput
*/
public function setProvisionedThroughput($provisionedThroughput)
{
$this->provisionedThroughput = $provisionedThroughput;
}
/**
* @return string
*/
public function getProvisionedThroughput()
{
return $this->provisionedThroughput;
}
/**
* Required for each regional disk associated with the instance. Specify the
* URLs of the zones where the disk should be replicated to. You must provide
* exactly two replica zones, and one zone must be the same as the instance
* zone.
*
* @param string[] $replicaZones
*/
public function setReplicaZones($replicaZones)
{
$this->replicaZones = $replicaZones;
}
/**
* @return string[]
*/
public function getReplicaZones()
{
return $this->replicaZones;
}
/**
* Input only. Resource manager tags to be bound to the disk. Tag keys and
* values have the same definition as resource manager tags. Keys and values
* can be either in numeric format, such as `tagKeys/{tag_key_id}` and
* `tagValues/{tag_value_id}` or in namespaced format such as
* `{org_id|project_id}/{tag_key_short_name}` and `{tag_value_short_name}`.
* The field is ignored (both PUT & PATCH) when empty.
*
* @param string[] $resourceManagerTags
*/
public function setResourceManagerTags($resourceManagerTags)
{
$this->resourceManagerTags = $resourceManagerTags;
}
/**
* @return string[]
*/
public function getResourceManagerTags()
{
return $this->resourceManagerTags;
}
/**
* Resource policies applied to this disk for automatic snapshot creations.
* Specified using the full or partial URL. For instance template, specify
* only the resource policy name.
*
* @param string[] $resourcePolicies
*/
public function setResourcePolicies($resourcePolicies)
{
$this->resourcePolicies = $resourcePolicies;
}
/**
* @return string[]
*/
public function getResourcePolicies()
{
return $this->resourcePolicies;
}
/**
* The source image to create this disk. When creating a new instance boot
* disk, one of initializeParams.sourceImage orinitializeParams.sourceSnapshot
* or disks.source is required.
*
* To create a disk with one of the public operating system images, specify
* the image by its family name. For example, specifyfamily/debian-9 to use
* the latest Debian 9 image:
*
* projects/debian-cloud/global/images/family/debian-9
*
* Alternatively, use a specific version of a public operating system image:
*
* projects/debian-cloud/global/images/debian-9-stretch-vYYYYMMDD
*
* To create a disk with a custom image that you created, specify the image
* name in the following format:
*
* global/images/my-custom-image
*
* You can also specify a custom image by its image family, which returns the
* latest version of the image in that family. Replace the image name with
* family/family-name:
*
* global/images/family/my-image-family
*
* If the source image is deleted later, this field will not be set.
*
* @param string $sourceImage
*/
public function setSourceImage($sourceImage)
{
$this->sourceImage = $sourceImage;
}
/**
* @return string
*/
public function getSourceImage()
{
return $this->sourceImage;
}
/**
* Thecustomer-supplied encryption key of the source image. Required if the
* source image is protected by a customer-supplied encryption key.
*
* InstanceTemplate and InstancePropertiesPatch do not storecustomer-supplied
* encryption keys, so you cannot create disks for instances in a managed
* instance group if the source images are encrypted with your own keys.
*
* @param CustomerEncryptionKey $sourceImageEncryptionKey
*/
public function setSourceImageEncryptionKey(CustomerEncryptionKey $sourceImageEncryptionKey)
{
$this->sourceImageEncryptionKey = $sourceImageEncryptionKey;
}
/**
* @return CustomerEncryptionKey
*/
public function getSourceImageEncryptionKey()
{
return $this->sourceImageEncryptionKey;
}
/**
* The source snapshot to create this disk. When creating a new instance boot
* disk, one of initializeParams.sourceSnapshot orinitializeParams.sourceImage
* or disks.source is required.
*
* To create a disk with a snapshot that you created, specify the snapshot
* name in the following format:
*
* global/snapshots/my-backup
*
* If the source snapshot is deleted later, this field will not be set.
*
* Note: You cannot create VMs in bulk using a snapshot as the source. Use an
* image instead when you create VMs using the bulk insert method.
*
* @param string $sourceSnapshot
*/
public function setSourceSnapshot($sourceSnapshot)
{
$this->sourceSnapshot = $sourceSnapshot;
}
/**
* @return string
*/
public function getSourceSnapshot()
{
return $this->sourceSnapshot;
}
/**
* Thecustomer-supplied encryption key of the source snapshot.
*
* @param CustomerEncryptionKey $sourceSnapshotEncryptionKey
*/
public function setSourceSnapshotEncryptionKey(CustomerEncryptionKey $sourceSnapshotEncryptionKey)
{
$this->sourceSnapshotEncryptionKey = $sourceSnapshotEncryptionKey;
}
/**
* @return CustomerEncryptionKey
*/
public function getSourceSnapshotEncryptionKey()
{
return $this->sourceSnapshotEncryptionKey;
}
/**
* The storage pool in which the new disk is created. You can provide this as
* a partial or full URL to the resource. For example, the following are valid
* values: - https://www.googleapis.com/compute/v1/projects/proje
* ct/zones/zone/storagePools/storagePool -
* projects/project/zones/zone/storagePools/storagePool -
* zones/zone/storagePools/storagePool
*
* @param string $storagePool
*/
public function setStoragePool($storagePool)
{
$this->storagePool = $storagePool;
}
/**
* @return string
*/
public function getStoragePool()
{
return $this->storagePool;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttachedDiskInitializeParams::class, 'Google_Service_Compute_AttachedDiskInitializeParams');
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_Compute_AuditConfig');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AuditLogConfig extends \Google\Collection
{
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: ADMIN_READ, DATA_READ, DATA_WRITE, LOG_TYPE_UNSPECIFIED
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_Compute_AuditLogConfig');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AuthorizationLoggingOptions extends \Google\Model
{
/**
* @var string
*/
public $permissionType;
/**
* @param string
*/
public function setPermissionType($permissionType)
{
$this->permissionType = $permissionType;
}
/**
* @return string
*/
public function getPermissionType()
{
return $this->permissionType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizationLoggingOptions::class, 'Google_Service_Compute_AuthorizationLoggingOptions');
@@ -0,0 +1,397 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class Autoscaler extends \Google\Collection
{
/**
* Configuration is acknowledged to be effective
*/
public const STATUS_ACTIVE = 'ACTIVE';
/**
* Configuration is being deleted
*/
public const STATUS_DELETING = 'DELETING';
/**
* Configuration has errors. Actionable for users.
*/
public const STATUS_ERROR = 'ERROR';
/**
* Autoscaler backend hasn't read new/updated configuration
*/
public const STATUS_PENDING = 'PENDING';
protected $collection_key = 'statusDetails';
protected $autoscalingPolicyType = AutoscalingPolicy::class;
protected $autoscalingPolicyDataType = '';
/**
* Output only. [Output Only] Creation timestamp inRFC3339 text format.
*
* @var string
*/
public $creationTimestamp;
/**
* An optional description of this resource. Provide this property when you
* create the resource.
*
* @var string
*/
public $description;
/**
* Output only. [Output Only] The unique identifier for the resource. This
* identifier is defined by the server.
*
* @var string
*/
public $id;
/**
* Output only. [Output Only] Type of the resource. Always compute#autoscaler
* for autoscalers.
*
* @var string
*/
public $kind;
/**
* Name of the resource. Provided by the client when the resource is created.
* The name must be 1-63 characters long, and comply withRFC1035.
* Specifically, the name must be 1-63 characters long and match the regular
* expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
* must be a lowercase letter, and all following characters must be a dash,
* lowercase letter, or digit, except the last character, which cannot be a
* dash.
*
* @var string
*/
public $name;
/**
* Output only. [Output Only] Target recommended MIG size (number of
* instances) computed by autoscaler. Autoscaler calculates the recommended
* MIG size even when the autoscaling policy mode is different from ON. This
* field is empty when autoscaler is not connected to an existing managed
* instance group or autoscaler did not generate its prediction.
*
* @var int
*/
public $recommendedSize;
/**
* Output only. [Output Only] URL of theregion where the instance group
* resides (for autoscalers living in regional scope).
*
* @var string
*/
public $region;
protected $scalingScheduleStatusType = ScalingScheduleStatus::class;
protected $scalingScheduleStatusDataType = 'map';
/**
* [Output Only] Server-defined URL for the resource.
*
* @var string
*/
public $selfLink;
/**
* [Output Only] The status of the autoscaler configuration. Current set of
* possible values: - PENDING: Autoscaler backend hasn't read
* new/updated configuration. - DELETING: Configuration is being
* deleted. - ACTIVE: Configuration is acknowledged to be effective.
* Some warnings might be present in the statusDetails field. - ERROR:
* Configuration has errors. Actionable for users. Details are present in
* the statusDetails field.
*
* New values might be added in the future.
*
* @var string
*/
public $status;
protected $statusDetailsType = AutoscalerStatusDetails::class;
protected $statusDetailsDataType = 'array';
/**
* URL of the managed instance group that this autoscaler will scale. This
* field is required when creating an autoscaler.
*
* @var string
*/
public $target;
/**
* Output only. [Output Only] URL of thezone where the instance group resides
* (for autoscalers living in zonal scope).
*
* @var string
*/
public $zone;
/**
* The configuration parameters for the autoscaling algorithm. You can define
* one or more signals for an autoscaler:
* cpuUtilization,customMetricUtilizations, andloadBalancingUtilization.
*
* If none of these are specified, the default will be to autoscale based
* oncpuUtilization to 0.6 or 60%.
*
* @param AutoscalingPolicy $autoscalingPolicy
*/
public function setAutoscalingPolicy(AutoscalingPolicy $autoscalingPolicy)
{
$this->autoscalingPolicy = $autoscalingPolicy;
}
/**
* @return AutoscalingPolicy
*/
public function getAutoscalingPolicy()
{
return $this->autoscalingPolicy;
}
/**
* Output only. [Output Only] Creation timestamp inRFC3339 text format.
*
* @param string $creationTimestamp
*/
public function setCreationTimestamp($creationTimestamp)
{
$this->creationTimestamp = $creationTimestamp;
}
/**
* @return string
*/
public function getCreationTimestamp()
{
return $this->creationTimestamp;
}
/**
* An optional description of this resource. Provide this property when you
* create the resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. [Output Only] The unique identifier for the resource. This
* identifier is defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. [Output Only] Type of the resource. Always compute#autoscaler
* for autoscalers.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Name of the resource. Provided by the client when the resource is created.
* The name must be 1-63 characters long, and comply withRFC1035.
* Specifically, the name must be 1-63 characters long and match the regular
* expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
* must be a lowercase letter, and all following characters must be a dash,
* lowercase letter, or digit, except the last character, which cannot be a
* dash.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. [Output Only] Target recommended MIG size (number of
* instances) computed by autoscaler. Autoscaler calculates the recommended
* MIG size even when the autoscaling policy mode is different from ON. This
* field is empty when autoscaler is not connected to an existing managed
* instance group or autoscaler did not generate its prediction.
*
* @param int $recommendedSize
*/
public function setRecommendedSize($recommendedSize)
{
$this->recommendedSize = $recommendedSize;
}
/**
* @return int
*/
public function getRecommendedSize()
{
return $this->recommendedSize;
}
/**
* Output only. [Output Only] URL of theregion where the instance group
* resides (for autoscalers living in regional scope).
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* Output only. [Output Only] Status information of existing scaling
* schedules.
*
* @param ScalingScheduleStatus[] $scalingScheduleStatus
*/
public function setScalingScheduleStatus($scalingScheduleStatus)
{
$this->scalingScheduleStatus = $scalingScheduleStatus;
}
/**
* @return ScalingScheduleStatus[]
*/
public function getScalingScheduleStatus()
{
return $this->scalingScheduleStatus;
}
/**
* [Output Only] Server-defined URL for the resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* [Output Only] The status of the autoscaler configuration. Current set of
* possible values: - PENDING: Autoscaler backend hasn't read
* new/updated configuration. - DELETING: Configuration is being
* deleted. - ACTIVE: Configuration is acknowledged to be effective.
* Some warnings might be present in the statusDetails field. - ERROR:
* Configuration has errors. Actionable for users. Details are present in
* the statusDetails field.
*
* New values might be added in the future.
*
* Accepted values: ACTIVE, DELETING, ERROR, PENDING
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
/**
* [Output Only] Human-readable details about the current state of the
* autoscaler. Read the documentation forCommonly returned status messages for
* examples of status messages you might encounter.
*
* @param AutoscalerStatusDetails[] $statusDetails
*/
public function setStatusDetails($statusDetails)
{
$this->statusDetails = $statusDetails;
}
/**
* @return AutoscalerStatusDetails[]
*/
public function getStatusDetails()
{
return $this->statusDetails;
}
/**
* URL of the managed instance group that this autoscaler will scale. This
* field is required when creating an autoscaler.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. [Output Only] URL of thezone where the instance group resides
* (for autoscalers living in zonal scope).
*
* @param string $zone
*/
public function setZone($zone)
{
$this->zone = $zone;
}
/**
* @return string
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Autoscaler::class, 'Google_Service_Compute_Autoscaler');
@@ -0,0 +1,185 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalerAggregatedList extends \Google\Collection
{
protected $collection_key = 'unreachables';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
protected $itemsType = AutoscalersScopedList::class;
protected $itemsDataType = 'map';
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#autoscalerAggregatedList for aggregated lists of autoscalers.
*
* @var string
*/
public $kind;
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @var string
*/
public $selfLink;
/**
* Output only. [Output Only] Unreachable resources. end_interface:
* MixerListResponseWithEtagBuilder
*
* @var string[]
*/
public $unreachables;
protected $warningType = AutoscalerAggregatedListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of AutoscalersScopedList resources.
*
* @param AutoscalersScopedList[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return AutoscalersScopedList[]
*/
public function getItems()
{
return $this->items;
}
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#autoscalerAggregatedList for aggregated lists of autoscalers.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Output only. [Output Only] Unreachable resources. end_interface:
* MixerListResponseWithEtagBuilder
*
* @param string[] $unreachables
*/
public function setUnreachables($unreachables)
{
$this->unreachables = $unreachables;
}
/**
* @return string[]
*/
public function getUnreachables()
{
return $this->unreachables;
}
/**
* [Output Only] Informational warning message.
*
* @param AutoscalerAggregatedListWarning $warning
*/
public function setWarning(AutoscalerAggregatedListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return AutoscalerAggregatedListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalerAggregatedList::class, 'Google_Service_Compute_AutoscalerAggregatedList');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalerAggregatedListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = AutoscalerAggregatedListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param AutoscalerAggregatedListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return AutoscalerAggregatedListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalerAggregatedListWarning::class, 'Google_Service_Compute_AutoscalerAggregatedListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalerAggregatedListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalerAggregatedListWarningData::class, 'Google_Service_Compute_AutoscalerAggregatedListWarningData');
@@ -0,0 +1,161 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalerList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
protected $itemsType = Autoscaler::class;
protected $itemsDataType = 'array';
/**
* Output only. [Output Only] Type of resource. Always compute#autoscalerList
* for lists of autoscalers.
*
* @var string
*/
public $kind;
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @var string
*/
public $selfLink;
protected $warningType = AutoscalerListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of Autoscaler resources.
*
* @param Autoscaler[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Autoscaler[]
*/
public function getItems()
{
return $this->items;
}
/**
* Output only. [Output Only] Type of resource. Always compute#autoscalerList
* for lists of autoscalers.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* [Output Only] Informational warning message.
*
* @param AutoscalerListWarning $warning
*/
public function setWarning(AutoscalerListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return AutoscalerListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalerList::class, 'Google_Service_Compute_AutoscalerList');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalerListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = AutoscalerListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param AutoscalerListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return AutoscalerListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalerListWarning::class, 'Google_Service_Compute_AutoscalerListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalerListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalerListWarningData::class, 'Google_Service_Compute_AutoscalerListWarningData');
@@ -0,0 +1,250 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalerStatusDetails extends \Google\Model
{
/**
* All instances in the instance group are unhealthy (not in RUNNING state).
*/
public const TYPE_ALL_INSTANCES_UNHEALTHY = 'ALL_INSTANCES_UNHEALTHY';
/**
* There is no backend service attached to the instance group.
*/
public const TYPE_BACKEND_SERVICE_DOES_NOT_EXIST = 'BACKEND_SERVICE_DOES_NOT_EXIST';
/**
* Autoscaler recommends a size greater than maxNumReplicas.
*/
public const TYPE_CAPPED_AT_MAX_NUM_REPLICAS = 'CAPPED_AT_MAX_NUM_REPLICAS';
/**
* The custom metric samples are not exported often enough to be a credible
* base for autoscaling.
*/
public const TYPE_CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE = 'CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE';
/**
* The custom metric that was specified does not exist or does not have the
* necessary labels.
*/
public const TYPE_CUSTOM_METRIC_INVALID = 'CUSTOM_METRIC_INVALID';
/**
* The minNumReplicas is equal to maxNumReplicas. This means the autoscaler
* cannot add or remove instances from the instance group.
*/
public const TYPE_MIN_EQUALS_MAX = 'MIN_EQUALS_MAX';
/**
* The autoscaler did not receive any data from the custom metric configured
* for autoscaling.
*/
public const TYPE_MISSING_CUSTOM_METRIC_DATA_POINTS = 'MISSING_CUSTOM_METRIC_DATA_POINTS';
/**
* The autoscaler is configured to scale based on a load balancing signal but
* the instance group has not received any requests from the load balancer.
*/
public const TYPE_MISSING_LOAD_BALANCING_DATA_POINTS = 'MISSING_LOAD_BALANCING_DATA_POINTS';
/**
* Autoscaling is turned off. The number of instances in the group won't
* change automatically. The autoscaling configuration is preserved.
*/
public const TYPE_MODE_OFF = 'MODE_OFF';
/**
* Autoscaling is in the "Autoscale only scale out" mode. Instances in the
* group will be only added.
*/
public const TYPE_MODE_ONLY_SCALE_OUT = 'MODE_ONLY_SCALE_OUT';
/**
* Autoscaling is in the "Autoscale only out" mode. Instances in the group
* will be only added.
*/
public const TYPE_MODE_ONLY_UP = 'MODE_ONLY_UP';
/**
* The instance group cannot be autoscaled because it has more than one
* backend service attached to it.
*/
public const TYPE_MORE_THAN_ONE_BACKEND_SERVICE = 'MORE_THAN_ONE_BACKEND_SERVICE';
/**
* There is insufficient quota for the necessary resources, such as CPU or
* number of instances.
*/
public const TYPE_NOT_ENOUGH_QUOTA_AVAILABLE = 'NOT_ENOUGH_QUOTA_AVAILABLE';
/**
* Showed only for regional autoscalers: there is a resource stockout in the
* chosen region.
*/
public const TYPE_REGION_RESOURCE_STOCKOUT = 'REGION_RESOURCE_STOCKOUT';
/**
* The target to be scaled does not exist.
*/
public const TYPE_SCALING_TARGET_DOES_NOT_EXIST = 'SCALING_TARGET_DOES_NOT_EXIST';
/**
* For some scaling schedules minRequiredReplicas is greater than
* maxNumReplicas. Autoscaler always recommends at most maxNumReplicas
* instances.
*/
public const TYPE_SCHEDULED_INSTANCES_GREATER_THAN_AUTOSCALER_MAX = 'SCHEDULED_INSTANCES_GREATER_THAN_AUTOSCALER_MAX';
/**
* For some scaling schedules minRequiredReplicas is less than minNumReplicas.
* Autoscaler always recommends at least minNumReplicas instances.
*/
public const TYPE_SCHEDULED_INSTANCES_LESS_THAN_AUTOSCALER_MIN = 'SCHEDULED_INSTANCES_LESS_THAN_AUTOSCALER_MIN';
public const TYPE_UNKNOWN = 'UNKNOWN';
/**
* Autoscaling does not work with an HTTP/S load balancer that has been
* configured for maxRate.
*/
public const TYPE_UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION = 'UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION';
/**
* For zonal autoscalers: there is a resource stockout in the chosen zone. For
* regional autoscalers: in at least one of the zones you're using there is a
* resource stockout.
*/
public const TYPE_ZONE_RESOURCE_STOCKOUT = 'ZONE_RESOURCE_STOCKOUT';
/**
* The status message.
*
* @var string
*/
public $message;
/**
* The type of error, warning, or notice returned. Current set of possible
* values: - ALL_INSTANCES_UNHEALTHY (WARNING): All instances in
* the instance group are unhealthy (not in RUNNING state). -
* BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service
* attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING):
* Autoscaler recommends a size greater than maxNumReplicas. -
* CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric
* samples are not exported often enough to be a credible base for
* autoscaling. - CUSTOM_METRIC_INVALID (ERROR): The custom metric
* that was specified does not exist or does not have the necessary
* labels. - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to
* maxNumReplicas. This means the autoscaler cannot add or remove
* instances from the instance group. - MISSING_CUSTOM_METRIC_DATA_POINTS
* (WARNING): The autoscaler did not receive any data from the custom
* metric configured for autoscaling. -
* MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is
* configured to scale based on a load balancing signal but the instance
* group has not received any requests from the load balancer. -
* MODE_OFF (WARNING): Autoscaling is turned off. The number of instances
* in the group won't change automatically. The autoscaling configuration
* is preserved. - MODE_ONLY_UP (WARNING): Autoscaling is in the
* "Autoscale only out" mode. The autoscaler can add instances but not
* remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance
* group cannot be autoscaled because it has more than one backend
* service attached to it. - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There
* is insufficient quota for the necessary resources, such as CPU or
* number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): Shown only
* for regional autoscalers: there is a resource stockout in the chosen
* region. - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be
* scaled does not exist. -
* UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling
* does not work with an HTTP/S load balancer that has been configured
* for maxRate. - ZONE_RESOURCE_STOCKOUT (ERROR): For zonal
* autoscalers: there is a resource stockout in the chosen zone. For
* regional autoscalers: in at least one of the zones you're using there
* is a resource stockout.
*
* New values might be added in the future. Some of the values might not be
* available in all API versions.
*
* @var string
*/
public $type;
/**
* The status message.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* The type of error, warning, or notice returned. Current set of possible
* values: - ALL_INSTANCES_UNHEALTHY (WARNING): All instances in
* the instance group are unhealthy (not in RUNNING state). -
* BACKEND_SERVICE_DOES_NOT_EXIST (ERROR): There is no backend service
* attached to the instance group. - CAPPED_AT_MAX_NUM_REPLICAS (WARNING):
* Autoscaler recommends a size greater than maxNumReplicas. -
* CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE (WARNING): The custom metric
* samples are not exported often enough to be a credible base for
* autoscaling. - CUSTOM_METRIC_INVALID (ERROR): The custom metric
* that was specified does not exist or does not have the necessary
* labels. - MIN_EQUALS_MAX (WARNING): The minNumReplicas is equal to
* maxNumReplicas. This means the autoscaler cannot add or remove
* instances from the instance group. - MISSING_CUSTOM_METRIC_DATA_POINTS
* (WARNING): The autoscaler did not receive any data from the custom
* metric configured for autoscaling. -
* MISSING_LOAD_BALANCING_DATA_POINTS (WARNING): The autoscaler is
* configured to scale based on a load balancing signal but the instance
* group has not received any requests from the load balancer. -
* MODE_OFF (WARNING): Autoscaling is turned off. The number of instances
* in the group won't change automatically. The autoscaling configuration
* is preserved. - MODE_ONLY_UP (WARNING): Autoscaling is in the
* "Autoscale only out" mode. The autoscaler can add instances but not
* remove any. - MORE_THAN_ONE_BACKEND_SERVICE (ERROR): The instance
* group cannot be autoscaled because it has more than one backend
* service attached to it. - NOT_ENOUGH_QUOTA_AVAILABLE (ERROR): There
* is insufficient quota for the necessary resources, such as CPU or
* number of instances. - REGION_RESOURCE_STOCKOUT (ERROR): Shown only
* for regional autoscalers: there is a resource stockout in the chosen
* region. - SCALING_TARGET_DOES_NOT_EXIST (ERROR): The target to be
* scaled does not exist. -
* UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION (ERROR): Autoscaling
* does not work with an HTTP/S load balancer that has been configured
* for maxRate. - ZONE_RESOURCE_STOCKOUT (ERROR): For zonal
* autoscalers: there is a resource stockout in the chosen zone. For
* regional autoscalers: in at least one of the zones you're using there
* is a resource stockout.
*
* New values might be added in the future. Some of the values might not be
* available in all API versions.
*
* Accepted values: ALL_INSTANCES_UNHEALTHY, BACKEND_SERVICE_DOES_NOT_EXIST,
* CAPPED_AT_MAX_NUM_REPLICAS, CUSTOM_METRIC_DATA_POINTS_TOO_SPARSE,
* CUSTOM_METRIC_INVALID, MIN_EQUALS_MAX, MISSING_CUSTOM_METRIC_DATA_POINTS,
* MISSING_LOAD_BALANCING_DATA_POINTS, MODE_OFF, MODE_ONLY_SCALE_OUT,
* MODE_ONLY_UP, MORE_THAN_ONE_BACKEND_SERVICE, NOT_ENOUGH_QUOTA_AVAILABLE,
* REGION_RESOURCE_STOCKOUT, SCALING_TARGET_DOES_NOT_EXIST,
* SCHEDULED_INSTANCES_GREATER_THAN_AUTOSCALER_MAX,
* SCHEDULED_INSTANCES_LESS_THAN_AUTOSCALER_MIN, UNKNOWN,
* UNSUPPORTED_MAX_RATE_LOAD_BALANCING_CONFIGURATION, ZONE_RESOURCE_STOCKOUT
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalerStatusDetails::class, 'Google_Service_Compute_AutoscalerStatusDetails');
@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalersScopedList extends \Google\Collection
{
protected $collection_key = 'autoscalers';
protected $autoscalersType = Autoscaler::class;
protected $autoscalersDataType = 'array';
protected $warningType = AutoscalersScopedListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] A list of autoscalers contained in this scope.
*
* @param Autoscaler[] $autoscalers
*/
public function setAutoscalers($autoscalers)
{
$this->autoscalers = $autoscalers;
}
/**
* @return Autoscaler[]
*/
public function getAutoscalers()
{
return $this->autoscalers;
}
/**
* [Output Only] Informational warning which replaces the list of autoscalers
* when the list is empty.
*
* @param AutoscalersScopedListWarning $warning
*/
public function setWarning(AutoscalersScopedListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return AutoscalersScopedListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalersScopedList::class, 'Google_Service_Compute_AutoscalersScopedList');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalersScopedListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = AutoscalersScopedListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param AutoscalersScopedListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return AutoscalersScopedListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalersScopedListWarning::class, 'Google_Service_Compute_AutoscalersScopedListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalersScopedListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalersScopedListWarningData::class, 'Google_Service_Compute_AutoscalersScopedListWarningData');
@@ -0,0 +1,305 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalingPolicy extends \Google\Collection
{
/**
* Do not automatically scale the MIG in or out. The recommended_size field
* contains the size of MIG that would be set if the actuation mode was
* enabled.
*/
public const MODE_OFF = 'OFF';
/**
* Automatically scale the MIG in and out according to the policy.
*/
public const MODE_ON = 'ON';
/**
* Automatically create VMs according to the policy, but do not scale the MIG
* in.
*/
public const MODE_ONLY_SCALE_OUT = 'ONLY_SCALE_OUT';
/**
* Automatically create VMs according to the policy, but do not scale the MIG
* in.
*/
public const MODE_ONLY_UP = 'ONLY_UP';
protected $collection_key = 'customMetricUtilizations';
/**
* The number of seconds that your application takes to initialize on a VM
* instance. This is referred to as the [initialization
* period](/compute/docs/autoscaler#cool_down_period). Specifying an accurate
* initialization period improves autoscaler decisions. For example, when
* scaling out, the autoscaler ignores data from VMs that are still
* initializing because those VMs might not yet represent normal usage of your
* application. The default initialization period is 60 seconds.
*
* Initialization periods might vary because of numerous factors. We recommend
* that you test how long your application takes to initialize. To do this,
* create a VM and time your application's startup process.
*
* @var int
*/
public $coolDownPeriodSec;
protected $cpuUtilizationType = AutoscalingPolicyCpuUtilization::class;
protected $cpuUtilizationDataType = '';
protected $customMetricUtilizationsType = AutoscalingPolicyCustomMetricUtilization::class;
protected $customMetricUtilizationsDataType = 'array';
protected $loadBalancingUtilizationType = AutoscalingPolicyLoadBalancingUtilization::class;
protected $loadBalancingUtilizationDataType = '';
/**
* The maximum number of instances that the autoscaler can scale out to. This
* is required when creating or updating an autoscaler. The maximum number of
* replicas must not be lower than minimal number of replicas.
*
* @var int
*/
public $maxNumReplicas;
/**
* The minimum number of replicas that the autoscaler can scale in to. This
* cannot be less than 0. If not provided, autoscaler chooses a default value
* depending on maximum number of instances allowed.
*
* @var int
*/
public $minNumReplicas;
/**
* Defines the operating mode for this policy. The following modes are
* available: - OFF: Disables the autoscaler but maintains its
* configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM
* instances only. - ON: Enables all autoscaler activities according to its
* policy.
*
* For more information, see "Turning off or restricting an autoscaler"
*
* @var string
*/
public $mode;
protected $scaleInControlType = AutoscalingPolicyScaleInControl::class;
protected $scaleInControlDataType = '';
protected $scalingSchedulesType = AutoscalingPolicyScalingSchedule::class;
protected $scalingSchedulesDataType = 'map';
/**
* The number of seconds that autoscaler waits for load stabilization before
* making scale-in decisions. This is referred to as the [stabilization
* period](/compute/docs/autoscaler#stabilization_period). This might appear
* as a delay in scaling in but it is an important mechanism for your
* application to not have fluctuating size due to short term load
* fluctuations.
*
* The default stabilization period is 600 seconds.
*
* @var int
*/
public $stabilizationPeriodSec;
/**
* The number of seconds that your application takes to initialize on a VM
* instance. This is referred to as the [initialization
* period](/compute/docs/autoscaler#cool_down_period). Specifying an accurate
* initialization period improves autoscaler decisions. For example, when
* scaling out, the autoscaler ignores data from VMs that are still
* initializing because those VMs might not yet represent normal usage of your
* application. The default initialization period is 60 seconds.
*
* Initialization periods might vary because of numerous factors. We recommend
* that you test how long your application takes to initialize. To do this,
* create a VM and time your application's startup process.
*
* @param int $coolDownPeriodSec
*/
public function setCoolDownPeriodSec($coolDownPeriodSec)
{
$this->coolDownPeriodSec = $coolDownPeriodSec;
}
/**
* @return int
*/
public function getCoolDownPeriodSec()
{
return $this->coolDownPeriodSec;
}
/**
* Defines the CPU utilization policy that allows the autoscaler to scale
* based on the average CPU utilization of a managed instance group.
*
* @param AutoscalingPolicyCpuUtilization $cpuUtilization
*/
public function setCpuUtilization(AutoscalingPolicyCpuUtilization $cpuUtilization)
{
$this->cpuUtilization = $cpuUtilization;
}
/**
* @return AutoscalingPolicyCpuUtilization
*/
public function getCpuUtilization()
{
return $this->cpuUtilization;
}
/**
* Configuration parameters of autoscaling based on a custom metric.
*
* @param AutoscalingPolicyCustomMetricUtilization[] $customMetricUtilizations
*/
public function setCustomMetricUtilizations($customMetricUtilizations)
{
$this->customMetricUtilizations = $customMetricUtilizations;
}
/**
* @return AutoscalingPolicyCustomMetricUtilization[]
*/
public function getCustomMetricUtilizations()
{
return $this->customMetricUtilizations;
}
/**
* Configuration parameters of autoscaling based on load balancer.
*
* @param AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization
*/
public function setLoadBalancingUtilization(AutoscalingPolicyLoadBalancingUtilization $loadBalancingUtilization)
{
$this->loadBalancingUtilization = $loadBalancingUtilization;
}
/**
* @return AutoscalingPolicyLoadBalancingUtilization
*/
public function getLoadBalancingUtilization()
{
return $this->loadBalancingUtilization;
}
/**
* The maximum number of instances that the autoscaler can scale out to. This
* is required when creating or updating an autoscaler. The maximum number of
* replicas must not be lower than minimal number of replicas.
*
* @param int $maxNumReplicas
*/
public function setMaxNumReplicas($maxNumReplicas)
{
$this->maxNumReplicas = $maxNumReplicas;
}
/**
* @return int
*/
public function getMaxNumReplicas()
{
return $this->maxNumReplicas;
}
/**
* The minimum number of replicas that the autoscaler can scale in to. This
* cannot be less than 0. If not provided, autoscaler chooses a default value
* depending on maximum number of instances allowed.
*
* @param int $minNumReplicas
*/
public function setMinNumReplicas($minNumReplicas)
{
$this->minNumReplicas = $minNumReplicas;
}
/**
* @return int
*/
public function getMinNumReplicas()
{
return $this->minNumReplicas;
}
/**
* Defines the operating mode for this policy. The following modes are
* available: - OFF: Disables the autoscaler but maintains its
* configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM
* instances only. - ON: Enables all autoscaler activities according to its
* policy.
*
* For more information, see "Turning off or restricting an autoscaler"
*
* Accepted values: OFF, ON, ONLY_SCALE_OUT, ONLY_UP
*
* @param self::MODE_* $mode
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return self::MODE_*
*/
public function getMode()
{
return $this->mode;
}
/**
* @param AutoscalingPolicyScaleInControl $scaleInControl
*/
public function setScaleInControl(AutoscalingPolicyScaleInControl $scaleInControl)
{
$this->scaleInControl = $scaleInControl;
}
/**
* @return AutoscalingPolicyScaleInControl
*/
public function getScaleInControl()
{
return $this->scaleInControl;
}
/**
* Scaling schedules defined for an autoscaler. Multiple schedules can be set
* on an autoscaler, and they can overlap. During overlapping periods the
* greatest min_required_replicas of all scaling schedules is applied. Up to
* 128 scaling schedules are allowed.
*
* @param AutoscalingPolicyScalingSchedule[] $scalingSchedules
*/
public function setScalingSchedules($scalingSchedules)
{
$this->scalingSchedules = $scalingSchedules;
}
/**
* @return AutoscalingPolicyScalingSchedule[]
*/
public function getScalingSchedules()
{
return $this->scalingSchedules;
}
/**
* The number of seconds that autoscaler waits for load stabilization before
* making scale-in decisions. This is referred to as the [stabilization
* period](/compute/docs/autoscaler#stabilization_period). This might appear
* as a delay in scaling in but it is an important mechanism for your
* application to not have fluctuating size due to short term load
* fluctuations.
*
* The default stabilization period is 600 seconds.
*
* @param int $stabilizationPeriodSec
*/
public function setStabilizationPeriodSec($stabilizationPeriodSec)
{
$this->stabilizationPeriodSec = $stabilizationPeriodSec;
}
/**
* @return int
*/
public function getStabilizationPeriodSec()
{
return $this->stabilizationPeriodSec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalingPolicy::class, 'Google_Service_Compute_AutoscalingPolicy');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalingPolicyCpuUtilization extends \Google\Model
{
/**
* No predictive method is used. The autoscaler scales the group to meet
* current demand based on real-time metrics
*/
public const PREDICTIVE_METHOD_NONE = 'NONE';
/**
* Predictive autoscaling improves availability by monitoring daily and weekly
* load patterns and scaling out ahead of anticipated demand.
*/
public const PREDICTIVE_METHOD_OPTIMIZE_AVAILABILITY = 'OPTIMIZE_AVAILABILITY';
/**
* Indicates whether predictive autoscaling based on CPU metric is enabled.
* Valid values are:
*
* * NONE (default). No predictive method is used. The autoscaler scales the
* group to meet current demand based on real-time metrics. *
* OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by
* monitoring daily and weekly load patterns and scaling out ahead of
* anticipated demand.
*
* @var string
*/
public $predictiveMethod;
/**
* The target CPU utilization that the autoscaler maintains. Must be a float
* value in the range (0, 1]. If not specified, the default is0.6.
*
* If the CPU level is below the target utilization, the autoscaler scales in
* the number of instances until it reaches the minimum number of instances
* you specified or until the average CPU of your instances reaches the target
* utilization.
*
* If the average CPU is above the target utilization, the autoscaler scales
* out until it reaches the maximum number of instances you specified or until
* the average utilization reaches the target utilization.
*
* @var
*/
public $utilizationTarget;
/**
* Indicates whether predictive autoscaling based on CPU metric is enabled.
* Valid values are:
*
* * NONE (default). No predictive method is used. The autoscaler scales the
* group to meet current demand based on real-time metrics. *
* OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by
* monitoring daily and weekly load patterns and scaling out ahead of
* anticipated demand.
*
* Accepted values: NONE, OPTIMIZE_AVAILABILITY
*
* @param self::PREDICTIVE_METHOD_* $predictiveMethod
*/
public function setPredictiveMethod($predictiveMethod)
{
$this->predictiveMethod = $predictiveMethod;
}
/**
* @return self::PREDICTIVE_METHOD_*
*/
public function getPredictiveMethod()
{
return $this->predictiveMethod;
}
public function setUtilizationTarget($utilizationTarget)
{
$this->utilizationTarget = $utilizationTarget;
}
public function getUtilizationTarget()
{
return $this->utilizationTarget;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalingPolicyCpuUtilization::class, 'Google_Service_Compute_AutoscalingPolicyCpuUtilization');
@@ -0,0 +1,218 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalingPolicyCustomMetricUtilization extends \Google\Model
{
/**
* Sets the utilization target value for a cumulative or delta metric,
* expressed as the rate of growth per minute.
*/
public const UTILIZATION_TARGET_TYPE_DELTA_PER_MINUTE = 'DELTA_PER_MINUTE';
/**
* Sets the utilization target value for a cumulative or delta metric,
* expressed as the rate of growth per second.
*/
public const UTILIZATION_TARGET_TYPE_DELTA_PER_SECOND = 'DELTA_PER_SECOND';
/**
* Sets the utilization target value for a gauge metric. The autoscaler will
* collect the average utilization of the virtual machines from the last
* couple of minutes, and compare the value to the utilization target value to
* perform autoscaling.
*/
public const UTILIZATION_TARGET_TYPE_GAUGE = 'GAUGE';
/**
* A filter string, compatible with a Stackdriver Monitoringfilter string
* forTimeSeries.list API call. This filter is used to select a specific
* TimeSeries for the purpose of autoscaling and to determine whether the
* metric is exporting per-instance or per-group data.
*
* For the filter to be valid for autoscaling purposes, the following rules
* apply: - You can only use the AND operator for joining
* selectors. - You can only use direct equality comparison operator
* (=) without any functions for each selector. - You can specify the
* metric in both the filter string and in the metric field. However,
* if specified in both places, the metric must be identical. - The
* monitored resource type determines what kind of values are expected
* for the metric. If it is a gce_instance, the autoscaler expects the
* metric to include a separate TimeSeries for each instance in a
* group. In such a case, you cannot filter on resource labels.
* If the resource type is any other value, the autoscaler expects this
* metric to contain values that apply to the entire autoscaled
* instance group and resource label filtering can be performed to
* point autoscaler at the correct TimeSeries to scale upon. This is
* called a *per-group metric* for the purpose of autoscaling. If
* not specified, the type defaults to gce_instance.
*
* Try to provide a filter that is selective enough to pick just one
* TimeSeries for the autoscaled group or for each of the instances (if you
* are using gce_instance resource type). If multiple TimeSeries are returned
* upon the query execution, the autoscaler will sum their respective values
* to obtain its scaling value.
*
* @var string
*/
public $filter;
/**
* The identifier (type) of the Stackdriver Monitoring metric. The metric
* cannot have negative values.
*
* The metric must have a value type of INT64 orDOUBLE.
*
* @var string
*/
public $metric;
/**
* If scaling is based on a per-group metric value that represents the total
* amount of work to be done or resource usage, set this value to an amount
* assigned for a single instance of the scaled group. Autoscaler keeps the
* number of instances proportional to the value of this metric. The metric
* itself does not change value due to group resizing.
*
* A good metric to use with the target is for
* examplepubsub.googleapis.com/subscription/num_undelivered_messages or a
* custom metric exporting the total number of requests coming to your
* instances.
*
* A bad example would be a metric exporting an average or median latency,
* since this value can't include a chunk assignable to a single instance, it
* could be better used with utilization_target instead.
*
* @var
*/
public $singleInstanceAssignment;
/**
* The target value of the metric that autoscaler maintains. This must be a
* positive value. A utilization metric scales number of virtual machines
* handling requests to increase or decrease proportionally to the metric.
*
* For example, a good metric to use as a utilization_target ishttps://www.goo
* gleapis.com/compute/v1/instance/network/received_bytes_count. The
* autoscaler works to keep this value constant for each of the instances.
*
* @var
*/
public $utilizationTarget;
/**
* Defines how target utilization value is expressed for a Stackdriver
* Monitoring metric. Either GAUGE,DELTA_PER_SECOND, or DELTA_PER_MINUTE.
*
* @var string
*/
public $utilizationTargetType;
/**
* A filter string, compatible with a Stackdriver Monitoringfilter string
* forTimeSeries.list API call. This filter is used to select a specific
* TimeSeries for the purpose of autoscaling and to determine whether the
* metric is exporting per-instance or per-group data.
*
* For the filter to be valid for autoscaling purposes, the following rules
* apply: - You can only use the AND operator for joining
* selectors. - You can only use direct equality comparison operator
* (=) without any functions for each selector. - You can specify the
* metric in both the filter string and in the metric field. However,
* if specified in both places, the metric must be identical. - The
* monitored resource type determines what kind of values are expected
* for the metric. If it is a gce_instance, the autoscaler expects the
* metric to include a separate TimeSeries for each instance in a
* group. In such a case, you cannot filter on resource labels.
* If the resource type is any other value, the autoscaler expects this
* metric to contain values that apply to the entire autoscaled
* instance group and resource label filtering can be performed to
* point autoscaler at the correct TimeSeries to scale upon. This is
* called a *per-group metric* for the purpose of autoscaling. If
* not specified, the type defaults to gce_instance.
*
* Try to provide a filter that is selective enough to pick just one
* TimeSeries for the autoscaled group or for each of the instances (if you
* are using gce_instance resource type). If multiple TimeSeries are returned
* upon the query execution, the autoscaler will sum their respective values
* to obtain its scaling value.
*
* @param string $filter
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* The identifier (type) of the Stackdriver Monitoring metric. The metric
* cannot have negative values.
*
* The metric must have a value type of INT64 orDOUBLE.
*
* @param string $metric
*/
public function setMetric($metric)
{
$this->metric = $metric;
}
/**
* @return string
*/
public function getMetric()
{
return $this->metric;
}
public function setSingleInstanceAssignment($singleInstanceAssignment)
{
$this->singleInstanceAssignment = $singleInstanceAssignment;
}
public function getSingleInstanceAssignment()
{
return $this->singleInstanceAssignment;
}
public function setUtilizationTarget($utilizationTarget)
{
$this->utilizationTarget = $utilizationTarget;
}
public function getUtilizationTarget()
{
return $this->utilizationTarget;
}
/**
* Defines how target utilization value is expressed for a Stackdriver
* Monitoring metric. Either GAUGE,DELTA_PER_SECOND, or DELTA_PER_MINUTE.
*
* Accepted values: DELTA_PER_MINUTE, DELTA_PER_SECOND, GAUGE
*
* @param self::UTILIZATION_TARGET_TYPE_* $utilizationTargetType
*/
public function setUtilizationTargetType($utilizationTargetType)
{
$this->utilizationTargetType = $utilizationTargetType;
}
/**
* @return self::UTILIZATION_TARGET_TYPE_*
*/
public function getUtilizationTargetType()
{
return $this->utilizationTargetType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalingPolicyCustomMetricUtilization::class, 'Google_Service_Compute_AutoscalingPolicyCustomMetricUtilization');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalingPolicyLoadBalancingUtilization extends \Google\Model
{
/**
* Fraction of backend capacity utilization (set in HTTP(S) load balancing
* configuration) that the autoscaler maintains. Must be a positive float
* value. If not defined, the default is 0.8.
*
* @var
*/
public $utilizationTarget;
public function setUtilizationTarget($utilizationTarget)
{
$this->utilizationTarget = $utilizationTarget;
}
public function getUtilizationTarget()
{
return $this->utilizationTarget;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalingPolicyLoadBalancingUtilization::class, 'Google_Service_Compute_AutoscalingPolicyLoadBalancingUtilization');
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalingPolicyScaleInControl extends \Google\Model
{
protected $maxScaledInReplicasType = FixedOrPercent::class;
protected $maxScaledInReplicasDataType = '';
/**
* How far back autoscaling looks when computing recommendations to include
* directives regarding slower scale in, as described above.
*
* @var int
*/
public $timeWindowSec;
/**
* Maximum allowed number (or %) of VMs that can be deducted from the peak
* recommendation during the window autoscaler looks at when computing
* recommendations. Possibly all these VMs can be deleted at once so user
* service needs to be prepared to lose that many VMs in one step.
*
* @param FixedOrPercent $maxScaledInReplicas
*/
public function setMaxScaledInReplicas(FixedOrPercent $maxScaledInReplicas)
{
$this->maxScaledInReplicas = $maxScaledInReplicas;
}
/**
* @return FixedOrPercent
*/
public function getMaxScaledInReplicas()
{
return $this->maxScaledInReplicas;
}
/**
* How far back autoscaling looks when computing recommendations to include
* directives regarding slower scale in, as described above.
*
* @param int $timeWindowSec
*/
public function setTimeWindowSec($timeWindowSec)
{
$this->timeWindowSec = $timeWindowSec;
}
/**
* @return int
*/
public function getTimeWindowSec()
{
return $this->timeWindowSec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalingPolicyScaleInControl::class, 'Google_Service_Compute_AutoscalingPolicyScaleInControl');
@@ -0,0 +1,184 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class AutoscalingPolicyScalingSchedule extends \Google\Model
{
/**
* A description of a scaling schedule.
*
* @var string
*/
public $description;
/**
* A boolean value that specifies whether a scaling schedule can influence
* autoscaler recommendations. If set to true, then a scaling schedule has no
* effect. This field is optional, and its value is false by default.
*
* @var bool
*/
public $disabled;
/**
* The duration of time intervals, in seconds, for which this scaling schedule
* is to run. The minimum allowed value is 300. This field is required.
*
* @var int
*/
public $durationSec;
/**
* The minimum number of VM instances that the autoscaler will recommend in
* time intervals starting according to schedule. This field is required.
*
* @var int
*/
public $minRequiredReplicas;
/**
* The start timestamps of time intervals when this scaling schedule is to
* provide a scaling signal. This field uses the extended cron format (with an
* optional year field). The expression can describe a single timestamp if the
* optional year is set, in which case the scaling schedule runs once. The
* schedule is interpreted with respect to time_zone. This field is required.
* Note: These timestamps only describe when autoscaler starts providing the
* scaling signal. The VMs need additional time to become serving.
*
* @var string
*/
public $schedule;
/**
* The time zone to use when interpreting the schedule. The value of this
* field must be a time zone name from the tz database:
* https://en.wikipedia.org/wiki/Tz_database. This field is assigned a default
* value of "UTC" if left empty.
*
* @var string
*/
public $timeZone;
/**
* A description of a scaling schedule.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* A boolean value that specifies whether a scaling schedule can influence
* autoscaler recommendations. If set to true, then a scaling schedule has no
* effect. This field is optional, and its value is false by default.
*
* @param bool $disabled
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* The duration of time intervals, in seconds, for which this scaling schedule
* is to run. The minimum allowed value is 300. This field is required.
*
* @param int $durationSec
*/
public function setDurationSec($durationSec)
{
$this->durationSec = $durationSec;
}
/**
* @return int
*/
public function getDurationSec()
{
return $this->durationSec;
}
/**
* The minimum number of VM instances that the autoscaler will recommend in
* time intervals starting according to schedule. This field is required.
*
* @param int $minRequiredReplicas
*/
public function setMinRequiredReplicas($minRequiredReplicas)
{
$this->minRequiredReplicas = $minRequiredReplicas;
}
/**
* @return int
*/
public function getMinRequiredReplicas()
{
return $this->minRequiredReplicas;
}
/**
* The start timestamps of time intervals when this scaling schedule is to
* provide a scaling signal. This field uses the extended cron format (with an
* optional year field). The expression can describe a single timestamp if the
* optional year is set, in which case the scaling schedule runs once. The
* schedule is interpreted with respect to time_zone. This field is required.
* Note: These timestamps only describe when autoscaler starts providing the
* scaling signal. The VMs need additional time to become serving.
*
* @param string $schedule
*/
public function setSchedule($schedule)
{
$this->schedule = $schedule;
}
/**
* @return string
*/
public function getSchedule()
{
return $this->schedule;
}
/**
* The time zone to use when interpreting the schedule. The value of this
* field must be a time zone name from the tz database:
* https://en.wikipedia.org/wiki/Tz_database. This field is assigned a default
* value of "UTC" if left empty.
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AutoscalingPolicyScalingSchedule::class, 'Google_Service_Compute_AutoscalingPolicyScalingSchedule');
+610
View File
@@ -0,0 +1,610 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class Backend extends \Google\Collection
{
/**
* Balance based on the number of simultaneous connections.
*/
public const BALANCING_MODE_CONNECTION = 'CONNECTION';
/**
* Based on custom defined and reported metrics.
*/
public const BALANCING_MODE_CUSTOM_METRICS = 'CUSTOM_METRICS';
/**
* Balance based on the number of in-flight requests.
*/
public const BALANCING_MODE_IN_FLIGHT = 'IN_FLIGHT';
/**
* Balance based on requests per second (RPS).
*/
public const BALANCING_MODE_RATE = 'RATE';
/**
* Balance based on the backend utilization.
*/
public const BALANCING_MODE_UTILIZATION = 'UTILIZATION';
/**
* No preference.
*/
public const PREFERENCE_DEFAULT = 'DEFAULT';
/**
* If preference is unspecified, we set it to the DEFAULT value
*/
public const PREFERENCE_PREFERENCE_UNSPECIFIED = 'PREFERENCE_UNSPECIFIED';
/**
* Traffic will be sent to this backend first.
*/
public const PREFERENCE_PREFERRED = 'PREFERRED';
/**
* Most of the requests are expected to take more than multiple seconds to
* finish.
*/
public const TRAFFIC_DURATION_LONG = 'LONG';
/**
* Most requests are expected to finish with a sub-second latency.
*/
public const TRAFFIC_DURATION_SHORT = 'SHORT';
/**
* Traffic duration is unspecified.
*/
public const TRAFFIC_DURATION_TRAFFIC_DURATION_UNSPECIFIED = 'TRAFFIC_DURATION_UNSPECIFIED';
protected $collection_key = 'customMetrics';
/**
* Specifies how to determine whether the backend of a load balancer can
* handle additional traffic or is fully loaded. For usage guidelines, see
* Connection balancing mode.
*
* Backends must use compatible balancing modes. For more information, see
* Supported balancing modes and target capacity settings and Restrictions and
* guidance for instance groups.
*
* Note: Currently, if you use the API to configure incompatible balancing
* modes, the configuration might be accepted even though it has no impact and
* is ignored. Specifically, Backend.maxUtilization is ignored when
* Backend.balancingMode is RATE. In the future, this incompatible combination
* will be rejected.
*
* @var string
*/
public $balancingMode;
/**
* A multiplier applied to the backend's target capacity of its balancing
* mode. The default value is 1, which means the group serves up to 100% of
* its configured capacity (depending onbalancingMode). A setting of 0 means
* the group is completely drained, offering 0% of its available capacity. The
* valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting larger
* than 0 and smaller than0.1. You cannot configure a setting of 0 when there
* is only one backend attached to the backend service.
*
* Not available with backends that don't support using abalancingMode. This
* includes backends such as global internet NEGs, regional serverless NEGs,
* and PSC NEGs.
*
* @var float
*/
public $capacityScaler;
protected $customMetricsType = BackendCustomMetric::class;
protected $customMetricsDataType = 'array';
/**
* An optional description of this resource. Provide this property when you
* create the resource.
*
* @var string
*/
public $description;
/**
* This field designates whether this is a failover backend. More than one
* failover backend can be configured for a given BackendService.
*
* @var bool
*/
public $failover;
/**
* The fully-qualified URL of aninstance group or network endpoint group (NEG)
* resource. To determine what types of backends a load balancer supports, see
* the [Backend services overview](https://cloud.google.com/load-
* balancing/docs/backend-service#backends).
*
* You must use the *fully-qualified* URL (starting
* withhttps://www.googleapis.com/) to specify the instance group or NEG.
* Partial URLs are not supported.
*
* If haPolicy is specified, backends must refer to NEG resources of type
* GCE_VM_IP.
*
* @var string
*/
public $group;
/**
* Defines a target maximum number of simultaneous connections. For usage
* guidelines, seeConnection balancing mode and Utilization balancing mode.
* Not available if the backend'sbalancingMode is RATE.
*
* @var int
*/
public $maxConnections;
/**
* Defines a target maximum number of simultaneous connections. For usage
* guidelines, seeConnection balancing mode and Utilization balancing mode.
*
* Not available if the backend's balancingMode isRATE.
*
* @var int
*/
public $maxConnectionsPerEndpoint;
/**
* Defines a target maximum number of simultaneous connections. For usage
* guidelines, seeConnection balancing mode and Utilization balancing mode.
*
* Not available if the backend's balancingMode isRATE.
*
* @var int
*/
public $maxConnectionsPerInstance;
/**
* Defines a maximum number of in-flight requests for the whole NEG or
* instance group. Not available if backend's balancingMode isRATE or
* CONNECTION.
*
* @var int
*/
public $maxInFlightRequests;
/**
* Defines a maximum number of in-flight requests for a single endpoint. Not
* available if backend's balancingMode is RATE or CONNECTION.
*
* @var int
*/
public $maxInFlightRequestsPerEndpoint;
/**
* Defines a maximum number of in-flight requests for a single VM. Not
* available if backend's balancingMode is RATE or CONNECTION.
*
* @var int
*/
public $maxInFlightRequestsPerInstance;
/**
* Defines a maximum number of HTTP requests per second (RPS). For usage
* guidelines, seeRate balancing mode and Utilization balancing mode.
*
* Not available if the backend's balancingMode isCONNECTION.
*
* @var int
*/
public $maxRate;
/**
* Defines a maximum target for requests per second (RPS). For usage
* guidelines, seeRate balancing mode and Utilization balancing mode.
*
* Not available if the backend's balancingMode isCONNECTION.
*
* @var float
*/
public $maxRatePerEndpoint;
/**
* Defines a maximum target for requests per second (RPS). For usage
* guidelines, seeRate balancing mode and Utilization balancing mode.
*
* Not available if the backend's balancingMode isCONNECTION.
*
* @var float
*/
public $maxRatePerInstance;
/**
* Optional parameter to define a target capacity for theUTILIZATION balancing
* mode. The valid range is[0.0, 1.0].
*
* For usage guidelines, seeUtilization balancing mode.
*
* @var float
*/
public $maxUtilization;
protected $orchestrationInfoType = BackendBackendOrchestrationInfo::class;
protected $orchestrationInfoDataType = '';
/**
* This field indicates whether this backend should be fully utilized before
* sending traffic to backends with default preference. The possible values
* are: - PREFERRED: Backends with this preference level will be
* filled up to their capacity limits first, based on RTT. - DEFAULT: If
* preferred backends don't have enough capacity, backends in this layer
* would be used and traffic would be assigned based on the load balancing
* algorithm you use. This is the default
*
* @var string
*/
public $preference;
/**
* @var string
*/
public $trafficDuration;
/**
* Specifies how to determine whether the backend of a load balancer can
* handle additional traffic or is fully loaded. For usage guidelines, see
* Connection balancing mode.
*
* Backends must use compatible balancing modes. For more information, see
* Supported balancing modes and target capacity settings and Restrictions and
* guidance for instance groups.
*
* Note: Currently, if you use the API to configure incompatible balancing
* modes, the configuration might be accepted even though it has no impact and
* is ignored. Specifically, Backend.maxUtilization is ignored when
* Backend.balancingMode is RATE. In the future, this incompatible combination
* will be rejected.
*
* Accepted values: CONNECTION, CUSTOM_METRICS, IN_FLIGHT, RATE, UTILIZATION
*
* @param self::BALANCING_MODE_* $balancingMode
*/
public function setBalancingMode($balancingMode)
{
$this->balancingMode = $balancingMode;
}
/**
* @return self::BALANCING_MODE_*
*/
public function getBalancingMode()
{
return $this->balancingMode;
}
/**
* A multiplier applied to the backend's target capacity of its balancing
* mode. The default value is 1, which means the group serves up to 100% of
* its configured capacity (depending onbalancingMode). A setting of 0 means
* the group is completely drained, offering 0% of its available capacity. The
* valid ranges are 0.0 and [0.1,1.0]. You cannot configure a setting larger
* than 0 and smaller than0.1. You cannot configure a setting of 0 when there
* is only one backend attached to the backend service.
*
* Not available with backends that don't support using abalancingMode. This
* includes backends such as global internet NEGs, regional serverless NEGs,
* and PSC NEGs.
*
* @param float $capacityScaler
*/
public function setCapacityScaler($capacityScaler)
{
$this->capacityScaler = $capacityScaler;
}
/**
* @return float
*/
public function getCapacityScaler()
{
return $this->capacityScaler;
}
/**
* List of custom metrics that are used for CUSTOM_METRICS BalancingMode.
*
* @param BackendCustomMetric[] $customMetrics
*/
public function setCustomMetrics($customMetrics)
{
$this->customMetrics = $customMetrics;
}
/**
* @return BackendCustomMetric[]
*/
public function getCustomMetrics()
{
return $this->customMetrics;
}
/**
* An optional description of this resource. Provide this property when you
* create the resource.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* This field designates whether this is a failover backend. More than one
* failover backend can be configured for a given BackendService.
*
* @param bool $failover
*/
public function setFailover($failover)
{
$this->failover = $failover;
}
/**
* @return bool
*/
public function getFailover()
{
return $this->failover;
}
/**
* The fully-qualified URL of aninstance group or network endpoint group (NEG)
* resource. To determine what types of backends a load balancer supports, see
* the [Backend services overview](https://cloud.google.com/load-
* balancing/docs/backend-service#backends).
*
* You must use the *fully-qualified* URL (starting
* withhttps://www.googleapis.com/) to specify the instance group or NEG.
* Partial URLs are not supported.
*
* If haPolicy is specified, backends must refer to NEG resources of type
* GCE_VM_IP.
*
* @param string $group
*/
public function setGroup($group)
{
$this->group = $group;
}
/**
* @return string
*/
public function getGroup()
{
return $this->group;
}
/**
* Defines a target maximum number of simultaneous connections. For usage
* guidelines, seeConnection balancing mode and Utilization balancing mode.
* Not available if the backend'sbalancingMode is RATE.
*
* @param int $maxConnections
*/
public function setMaxConnections($maxConnections)
{
$this->maxConnections = $maxConnections;
}
/**
* @return int
*/
public function getMaxConnections()
{
return $this->maxConnections;
}
/**
* Defines a target maximum number of simultaneous connections. For usage
* guidelines, seeConnection balancing mode and Utilization balancing mode.
*
* Not available if the backend's balancingMode isRATE.
*
* @param int $maxConnectionsPerEndpoint
*/
public function setMaxConnectionsPerEndpoint($maxConnectionsPerEndpoint)
{
$this->maxConnectionsPerEndpoint = $maxConnectionsPerEndpoint;
}
/**
* @return int
*/
public function getMaxConnectionsPerEndpoint()
{
return $this->maxConnectionsPerEndpoint;
}
/**
* Defines a target maximum number of simultaneous connections. For usage
* guidelines, seeConnection balancing mode and Utilization balancing mode.
*
* Not available if the backend's balancingMode isRATE.
*
* @param int $maxConnectionsPerInstance
*/
public function setMaxConnectionsPerInstance($maxConnectionsPerInstance)
{
$this->maxConnectionsPerInstance = $maxConnectionsPerInstance;
}
/**
* @return int
*/
public function getMaxConnectionsPerInstance()
{
return $this->maxConnectionsPerInstance;
}
/**
* Defines a maximum number of in-flight requests for the whole NEG or
* instance group. Not available if backend's balancingMode isRATE or
* CONNECTION.
*
* @param int $maxInFlightRequests
*/
public function setMaxInFlightRequests($maxInFlightRequests)
{
$this->maxInFlightRequests = $maxInFlightRequests;
}
/**
* @return int
*/
public function getMaxInFlightRequests()
{
return $this->maxInFlightRequests;
}
/**
* Defines a maximum number of in-flight requests for a single endpoint. Not
* available if backend's balancingMode is RATE or CONNECTION.
*
* @param int $maxInFlightRequestsPerEndpoint
*/
public function setMaxInFlightRequestsPerEndpoint($maxInFlightRequestsPerEndpoint)
{
$this->maxInFlightRequestsPerEndpoint = $maxInFlightRequestsPerEndpoint;
}
/**
* @return int
*/
public function getMaxInFlightRequestsPerEndpoint()
{
return $this->maxInFlightRequestsPerEndpoint;
}
/**
* Defines a maximum number of in-flight requests for a single VM. Not
* available if backend's balancingMode is RATE or CONNECTION.
*
* @param int $maxInFlightRequestsPerInstance
*/
public function setMaxInFlightRequestsPerInstance($maxInFlightRequestsPerInstance)
{
$this->maxInFlightRequestsPerInstance = $maxInFlightRequestsPerInstance;
}
/**
* @return int
*/
public function getMaxInFlightRequestsPerInstance()
{
return $this->maxInFlightRequestsPerInstance;
}
/**
* Defines a maximum number of HTTP requests per second (RPS). For usage
* guidelines, seeRate balancing mode and Utilization balancing mode.
*
* Not available if the backend's balancingMode isCONNECTION.
*
* @param int $maxRate
*/
public function setMaxRate($maxRate)
{
$this->maxRate = $maxRate;
}
/**
* @return int
*/
public function getMaxRate()
{
return $this->maxRate;
}
/**
* Defines a maximum target for requests per second (RPS). For usage
* guidelines, seeRate balancing mode and Utilization balancing mode.
*
* Not available if the backend's balancingMode isCONNECTION.
*
* @param float $maxRatePerEndpoint
*/
public function setMaxRatePerEndpoint($maxRatePerEndpoint)
{
$this->maxRatePerEndpoint = $maxRatePerEndpoint;
}
/**
* @return float
*/
public function getMaxRatePerEndpoint()
{
return $this->maxRatePerEndpoint;
}
/**
* Defines a maximum target for requests per second (RPS). For usage
* guidelines, seeRate balancing mode and Utilization balancing mode.
*
* Not available if the backend's balancingMode isCONNECTION.
*
* @param float $maxRatePerInstance
*/
public function setMaxRatePerInstance($maxRatePerInstance)
{
$this->maxRatePerInstance = $maxRatePerInstance;
}
/**
* @return float
*/
public function getMaxRatePerInstance()
{
return $this->maxRatePerInstance;
}
/**
* Optional parameter to define a target capacity for theUTILIZATION balancing
* mode. The valid range is[0.0, 1.0].
*
* For usage guidelines, seeUtilization balancing mode.
*
* @param float $maxUtilization
*/
public function setMaxUtilization($maxUtilization)
{
$this->maxUtilization = $maxUtilization;
}
/**
* @return float
*/
public function getMaxUtilization()
{
return $this->maxUtilization;
}
/**
* Information about the resource or system that manages the backend.
*
* @param BackendBackendOrchestrationInfo $orchestrationInfo
*/
public function setOrchestrationInfo(BackendBackendOrchestrationInfo $orchestrationInfo)
{
$this->orchestrationInfo = $orchestrationInfo;
}
/**
* @return BackendBackendOrchestrationInfo
*/
public function getOrchestrationInfo()
{
return $this->orchestrationInfo;
}
/**
* This field indicates whether this backend should be fully utilized before
* sending traffic to backends with default preference. The possible values
* are: - PREFERRED: Backends with this preference level will be
* filled up to their capacity limits first, based on RTT. - DEFAULT: If
* preferred backends don't have enough capacity, backends in this layer
* would be used and traffic would be assigned based on the load balancing
* algorithm you use. This is the default
*
* Accepted values: DEFAULT, PREFERENCE_UNSPECIFIED, PREFERRED
*
* @param self::PREFERENCE_* $preference
*/
public function setPreference($preference)
{
$this->preference = $preference;
}
/**
* @return self::PREFERENCE_*
*/
public function getPreference()
{
return $this->preference;
}
/**
* @param self::TRAFFIC_DURATION_* $trafficDuration
*/
public function setTrafficDuration($trafficDuration)
{
$this->trafficDuration = $trafficDuration;
}
/**
* @return self::TRAFFIC_DURATION_*
*/
public function getTrafficDuration()
{
return $this->trafficDuration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Backend::class, 'Google_Service_Compute_Backend');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBackendOrchestrationInfo extends \Google\Model
{
/**
* The URI of the resource or system that manages the backend.
*
* @var string
*/
public $resourceUri;
/**
* The URI of the resource or system that manages the backend.
*
* @param string $resourceUri
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBackendOrchestrationInfo::class, 'Google_Service_Compute_BackendBackendOrchestrationInfo');
@@ -0,0 +1,426 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucket extends \Google\Collection
{
/**
* Automatically uses the best compression based on the Accept-Encoding header
* sent by the client.
*/
public const COMPRESSION_MODE_AUTOMATIC = 'AUTOMATIC';
/**
* Disables compression. Existing compressed responses cached by Cloud CDN
* will not be served to clients.
*/
public const COMPRESSION_MODE_DISABLED = 'DISABLED';
/**
* Signifies that this will be used for regional external Application Load
* Balancers.
*/
public const LOAD_BALANCING_SCHEME_EXTERNAL_MANAGED = 'EXTERNAL_MANAGED';
/**
* Signifies that this will be used for internal Application Load Balancers.
*/
public const LOAD_BALANCING_SCHEME_INTERNAL_MANAGED = 'INTERNAL_MANAGED';
protected $collection_key = 'usedBy';
/**
* Cloud Storage bucket name.
*
* @var string
*/
public $bucketName;
protected $cdnPolicyType = BackendBucketCdnPolicy::class;
protected $cdnPolicyDataType = '';
/**
* Compress text responses using Brotli or gzip compression, based on the
* client's Accept-Encoding header.
*
* @var string
*/
public $compressionMode;
/**
* [Output Only] Creation timestamp inRFC3339 text format.
*
* @var string
*/
public $creationTimestamp;
/**
* Headers that the Application Load Balancer should add to proxied responses.
*
* @var string[]
*/
public $customResponseHeaders;
/**
* An optional textual description of the resource; provided by the client
* when the resource is created.
*
* @var string
*/
public $description;
/**
* [Output Only] The resource URL for the edge security policy associated with
* this backend bucket.
*
* @var string
*/
public $edgeSecurityPolicy;
/**
* If true, enable Cloud CDN for this BackendBucket.
*
* @var bool
*/
public $enableCdn;
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
/**
* Output only. Type of the resource.
*
* @var string
*/
public $kind;
/**
* The value can only be INTERNAL_MANAGED for cross-region internal layer 7
* load balancer.
*
* If loadBalancingScheme is not specified, the backend bucket can be used by
* classic global external load balancers, or global application external load
* balancers, or both.
*
* @var string
*/
public $loadBalancingScheme;
/**
* Name of the resource. Provided by the client when the resource is created.
* The name must be 1-63 characters long, and comply withRFC1035.
* Specifically, the name must be 1-63 characters long and match the regular
* expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
* must be a lowercase letter, and all following characters must be a dash,
* lowercase letter, or digit, except the last character, which cannot be a
* dash.
*
* @var string
*/
public $name;
protected $paramsType = BackendBucketParams::class;
protected $paramsDataType = '';
/**
* Output only. [Output Only] URL of the region where the regional backend
* bucket resides. This field is not applicable to global backend buckets. You
* must specify this field as part of the HTTP request URL. It is not settable
* as a field in the request body.
*
* @var string
*/
public $region;
/**
* [Output Only] Server-defined URL for the resource.
*
* @var string
*/
public $selfLink;
protected $usedByType = BackendBucketUsedBy::class;
protected $usedByDataType = 'array';
/**
* Cloud Storage bucket name.
*
* @param string $bucketName
*/
public function setBucketName($bucketName)
{
$this->bucketName = $bucketName;
}
/**
* @return string
*/
public function getBucketName()
{
return $this->bucketName;
}
/**
* Cloud CDN configuration for this BackendBucket.
*
* @param BackendBucketCdnPolicy $cdnPolicy
*/
public function setCdnPolicy(BackendBucketCdnPolicy $cdnPolicy)
{
$this->cdnPolicy = $cdnPolicy;
}
/**
* @return BackendBucketCdnPolicy
*/
public function getCdnPolicy()
{
return $this->cdnPolicy;
}
/**
* Compress text responses using Brotli or gzip compression, based on the
* client's Accept-Encoding header.
*
* Accepted values: AUTOMATIC, DISABLED
*
* @param self::COMPRESSION_MODE_* $compressionMode
*/
public function setCompressionMode($compressionMode)
{
$this->compressionMode = $compressionMode;
}
/**
* @return self::COMPRESSION_MODE_*
*/
public function getCompressionMode()
{
return $this->compressionMode;
}
/**
* [Output Only] Creation timestamp inRFC3339 text format.
*
* @param string $creationTimestamp
*/
public function setCreationTimestamp($creationTimestamp)
{
$this->creationTimestamp = $creationTimestamp;
}
/**
* @return string
*/
public function getCreationTimestamp()
{
return $this->creationTimestamp;
}
/**
* Headers that the Application Load Balancer should add to proxied responses.
*
* @param string[] $customResponseHeaders
*/
public function setCustomResponseHeaders($customResponseHeaders)
{
$this->customResponseHeaders = $customResponseHeaders;
}
/**
* @return string[]
*/
public function getCustomResponseHeaders()
{
return $this->customResponseHeaders;
}
/**
* An optional textual description of the resource; provided by the client
* when the resource is created.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* [Output Only] The resource URL for the edge security policy associated with
* this backend bucket.
*
* @param string $edgeSecurityPolicy
*/
public function setEdgeSecurityPolicy($edgeSecurityPolicy)
{
$this->edgeSecurityPolicy = $edgeSecurityPolicy;
}
/**
* @return string
*/
public function getEdgeSecurityPolicy()
{
return $this->edgeSecurityPolicy;
}
/**
* If true, enable Cloud CDN for this BackendBucket.
*
* @param bool $enableCdn
*/
public function setEnableCdn($enableCdn)
{
$this->enableCdn = $enableCdn;
}
/**
* @return bool
*/
public function getEnableCdn()
{
return $this->enableCdn;
}
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. Type of the resource.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The value can only be INTERNAL_MANAGED for cross-region internal layer 7
* load balancer.
*
* If loadBalancingScheme is not specified, the backend bucket can be used by
* classic global external load balancers, or global application external load
* balancers, or both.
*
* Accepted values: EXTERNAL_MANAGED, INTERNAL_MANAGED
*
* @param self::LOAD_BALANCING_SCHEME_* $loadBalancingScheme
*/
public function setLoadBalancingScheme($loadBalancingScheme)
{
$this->loadBalancingScheme = $loadBalancingScheme;
}
/**
* @return self::LOAD_BALANCING_SCHEME_*
*/
public function getLoadBalancingScheme()
{
return $this->loadBalancingScheme;
}
/**
* Name of the resource. Provided by the client when the resource is created.
* The name must be 1-63 characters long, and comply withRFC1035.
* Specifically, the name must be 1-63 characters long and match the regular
* expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
* must be a lowercase letter, and all following characters must be a dash,
* lowercase letter, or digit, except the last character, which cannot be a
* dash.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Input only. [Input Only] Additional params passed with the request, but not
* persisted as part of resource payload.
*
* @param BackendBucketParams $params
*/
public function setParams(BackendBucketParams $params)
{
$this->params = $params;
}
/**
* @return BackendBucketParams
*/
public function getParams()
{
return $this->params;
}
/**
* Output only. [Output Only] URL of the region where the regional backend
* bucket resides. This field is not applicable to global backend buckets. You
* must specify this field as part of the HTTP request URL. It is not settable
* as a field in the request body.
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* [Output Only] Server-defined URL for the resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Output only. [Output Only] List of resources referencing that backend
* bucket.
*
* @param BackendBucketUsedBy[] $usedBy
*/
public function setUsedBy($usedBy)
{
$this->usedBy = $usedBy;
}
/**
* @return BackendBucketUsedBy[]
*/
public function getUsedBy()
{
return $this->usedBy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucket::class, 'Google_Service_Compute_BackendBucket');
@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketAggregatedList extends \Google\Model
{
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
protected $itemsType = BackendBucketsScopedList::class;
protected $itemsDataType = 'map';
/**
* Output only. Type of resource.
*
* @var string
*/
public $kind;
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @var string
*/
public $selfLink;
protected $warningType = BackendBucketAggregatedListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of BackendBucketsScopedList resources.
*
* @param BackendBucketsScopedList[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return BackendBucketsScopedList[]
*/
public function getItems()
{
return $this->items;
}
/**
* Output only. Type of resource.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* [Output Only] Informational warning message.
*
* @param BackendBucketAggregatedListWarning $warning
*/
public function setWarning(BackendBucketAggregatedListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return BackendBucketAggregatedListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketAggregatedList::class, 'Google_Service_Compute_BackendBucketAggregatedList');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketAggregatedListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = BackendBucketAggregatedListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param BackendBucketAggregatedListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return BackendBucketAggregatedListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketAggregatedListWarning::class, 'Google_Service_Compute_BackendBucketAggregatedListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketAggregatedListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketAggregatedListWarningData::class, 'Google_Service_Compute_BackendBucketAggregatedListWarningData');
@@ -0,0 +1,443 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketCdnPolicy extends \Google\Collection
{
/**
* Automatically cache static content, including common image formats, media
* (video and audio), and web assets (JavaScript and CSS). Requests and
* responses that are marked as uncacheable, as well as dynamic content
* (including HTML), will not be cached.
*/
public const CACHE_MODE_CACHE_ALL_STATIC = 'CACHE_ALL_STATIC';
/**
* Cache all content, ignoring any "private", "no-store" or "no-cache"
* directives in Cache-Control response headers. Warning: this may result in
* Cloud CDN caching private, per-user (user identifiable) content.
*/
public const CACHE_MODE_FORCE_CACHE_ALL = 'FORCE_CACHE_ALL';
public const CACHE_MODE_INVALID_CACHE_MODE = 'INVALID_CACHE_MODE';
/**
* Requires the origin to set valid caching headers to cache content.
* Responses without these headers will not be cached at Google's edge, and
* will require a full trip to the origin on every request, potentially
* impacting performance and increasing load on the origin server.
*/
public const CACHE_MODE_USE_ORIGIN_HEADERS = 'USE_ORIGIN_HEADERS';
protected $collection_key = 'signedUrlKeyNames';
protected $bypassCacheOnRequestHeadersType = BackendBucketCdnPolicyBypassCacheOnRequestHeader::class;
protected $bypassCacheOnRequestHeadersDataType = 'array';
protected $cacheKeyPolicyType = BackendBucketCdnPolicyCacheKeyPolicy::class;
protected $cacheKeyPolicyDataType = '';
/**
* Specifies the cache setting for all responses from this backend. The
* possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid
* caching headers to cache content. Responses without these headers will not
* be cached at Google's edge, and will require a full trip to the origin on
* every request, potentially impacting performance and increasing load on the
* origin server.FORCE_CACHE_ALL Cache all content, ignoring any "private",
* "no-store" or "no-cache" directives in Cache-Control response headers.
* Warning: this may result in Cloud CDN caching private, per-user (user
* identifiable) content.CACHE_ALL_STATIC Automatically cache static content,
* including common image formats, media (video and audio), and web assets
* (JavaScript and CSS). Requests and responses that are marked as
* uncacheable, as well as dynamic content (including HTML), will not be
* cached.
*
* If no value is provided for cdnPolicy.cacheMode, it defaults to
* CACHE_ALL_STATIC.
*
* @var string
*/
public $cacheMode;
/**
* Specifies a separate client (e.g. browser client) maximum TTL. This is used
* to clamp the max-age (or Expires) value sent to the client. With
* FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the
* response max-age directive, along with a "public" directive. For cacheable
* content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the
* origin (if specified), or else sets the response max-age directive to the
* lesser of the client_ttl and default_ttl, and also ensures a "public"
* cache-control directive is present. If a client TTL is not specified, a
* default value (1 hour) will be used. The maximum allowed value is
* 31,622,400s (1 year).
*
* @var int
*/
public $clientTtl;
/**
* Specifies the default TTL for cached content served by this origin for
* responses that do not have an existing valid TTL (max-age or s-maxage).
* Setting a TTL of "0" means "always revalidate". The value of defaultTTL
* cannot be set to a value greater than that of maxTTL, but can be equal.
* When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite
* the TTL set in all responses. The maximum allowed value is 31,622,400s (1
* year), noting that infrequently accessed objects may be evicted from the
* cache before the defined TTL.
*
* @var int
*/
public $defaultTtl;
/**
* Specifies the maximum allowed TTL for cached content served by this origin.
* Cache directives that attempt to set a max-age or s-maxage higher than
* this, or an Expires header more than maxTTL seconds in the future will be
* capped at the value of maxTTL, as if it were the value of an s-maxage
* Cache-Control directive. Headers sent to the client will not be modified.
* Setting a TTL of "0" means "always revalidate". The maximum allowed value
* is 31,622,400s (1 year), noting that infrequently accessed objects may be
* evicted from the cache before the defined TTL.
*
* @var int
*/
public $maxTtl;
/**
* Negative caching allows per-status code TTLs to be set, in order to apply
* fine-grained caching for common errors or redirects. This can reduce the
* load on your origin and improve end-user experience by reducing response
* latency. When the cache mode is set to CACHE_ALL_STATIC or
* USE_ORIGIN_HEADERS, negative caching applies to responses with the
* specified response code that lack any Cache-Control, Expires, or Pragma:
* no-cache directives. When the cache mode is set to FORCE_CACHE_ALL,
* negative caching applies to all responses with the specified response code,
* and override any caching headers. By default, Cloud CDN will apply the
* following default TTLs to these status codes: HTTP 300 (Multiple Choice),
* 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451
* (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 501 (Not
* Implemented): 60s. These defaults can be overridden in
* negative_caching_policy.
*
* @var bool
*/
public $negativeCaching;
protected $negativeCachingPolicyType = BackendBucketCdnPolicyNegativeCachingPolicy::class;
protected $negativeCachingPolicyDataType = 'array';
/**
* If true then Cloud CDN will combine multiple concurrent cache fill requests
* into a small number of requests to the origin.
*
* @var bool
*/
public $requestCoalescing;
/**
* Serve existing content from the cache (if available) when revalidating
* content with the origin, or when an error is encountered when refreshing
* the cache. This setting defines the default "max-stale" duration for any
* cached responses that do not specify a max-stale directive. Stale responses
* that exceed the TTL configured here will not be served. The default limit
* (max-stale) is 86400s (1 day), which will allow stale content to be served
* up to this limit beyond the max-age (or s-maxage) of a cached response. The
* maximum allowed value is 604800 (1 week). Set this to zero (0) to disable
* serve-while-stale.
*
* @var int
*/
public $serveWhileStale;
/**
* Maximum number of seconds the response to a signed URL request will be
* considered fresh. After this time period, the response will be revalidated
* before being served. Defaults to 1hr (3600s). When serving responses to
* signed URL requests, Cloud CDN will internally behave as though all
* responses from this backend had a "Cache-Control: public, max-age=[TTL]"
* header, regardless of any existing Cache-Control header. The actual headers
* served in responses will not be altered.
*
* @var string
*/
public $signedUrlCacheMaxAgeSec;
/**
* [Output Only] Names of the keys for signing request URLs.
*
* @var string[]
*/
public $signedUrlKeyNames;
/**
* Bypass the cache when the specified request headers are matched - e.g.
* Pragma or Authorization headers. Up to 5 headers can be specified. The
* cache is bypassed for all cdnPolicy.cacheMode settings.
*
* @param BackendBucketCdnPolicyBypassCacheOnRequestHeader[] $bypassCacheOnRequestHeaders
*/
public function setBypassCacheOnRequestHeaders($bypassCacheOnRequestHeaders)
{
$this->bypassCacheOnRequestHeaders = $bypassCacheOnRequestHeaders;
}
/**
* @return BackendBucketCdnPolicyBypassCacheOnRequestHeader[]
*/
public function getBypassCacheOnRequestHeaders()
{
return $this->bypassCacheOnRequestHeaders;
}
/**
* The CacheKeyPolicy for this CdnPolicy.
*
* @param BackendBucketCdnPolicyCacheKeyPolicy $cacheKeyPolicy
*/
public function setCacheKeyPolicy(BackendBucketCdnPolicyCacheKeyPolicy $cacheKeyPolicy)
{
$this->cacheKeyPolicy = $cacheKeyPolicy;
}
/**
* @return BackendBucketCdnPolicyCacheKeyPolicy
*/
public function getCacheKeyPolicy()
{
return $this->cacheKeyPolicy;
}
/**
* Specifies the cache setting for all responses from this backend. The
* possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid
* caching headers to cache content. Responses without these headers will not
* be cached at Google's edge, and will require a full trip to the origin on
* every request, potentially impacting performance and increasing load on the
* origin server.FORCE_CACHE_ALL Cache all content, ignoring any "private",
* "no-store" or "no-cache" directives in Cache-Control response headers.
* Warning: this may result in Cloud CDN caching private, per-user (user
* identifiable) content.CACHE_ALL_STATIC Automatically cache static content,
* including common image formats, media (video and audio), and web assets
* (JavaScript and CSS). Requests and responses that are marked as
* uncacheable, as well as dynamic content (including HTML), will not be
* cached.
*
* If no value is provided for cdnPolicy.cacheMode, it defaults to
* CACHE_ALL_STATIC.
*
* Accepted values: CACHE_ALL_STATIC, FORCE_CACHE_ALL, INVALID_CACHE_MODE,
* USE_ORIGIN_HEADERS
*
* @param self::CACHE_MODE_* $cacheMode
*/
public function setCacheMode($cacheMode)
{
$this->cacheMode = $cacheMode;
}
/**
* @return self::CACHE_MODE_*
*/
public function getCacheMode()
{
return $this->cacheMode;
}
/**
* Specifies a separate client (e.g. browser client) maximum TTL. This is used
* to clamp the max-age (or Expires) value sent to the client. With
* FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the
* response max-age directive, along with a "public" directive. For cacheable
* content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the
* origin (if specified), or else sets the response max-age directive to the
* lesser of the client_ttl and default_ttl, and also ensures a "public"
* cache-control directive is present. If a client TTL is not specified, a
* default value (1 hour) will be used. The maximum allowed value is
* 31,622,400s (1 year).
*
* @param int $clientTtl
*/
public function setClientTtl($clientTtl)
{
$this->clientTtl = $clientTtl;
}
/**
* @return int
*/
public function getClientTtl()
{
return $this->clientTtl;
}
/**
* Specifies the default TTL for cached content served by this origin for
* responses that do not have an existing valid TTL (max-age or s-maxage).
* Setting a TTL of "0" means "always revalidate". The value of defaultTTL
* cannot be set to a value greater than that of maxTTL, but can be equal.
* When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite
* the TTL set in all responses. The maximum allowed value is 31,622,400s (1
* year), noting that infrequently accessed objects may be evicted from the
* cache before the defined TTL.
*
* @param int $defaultTtl
*/
public function setDefaultTtl($defaultTtl)
{
$this->defaultTtl = $defaultTtl;
}
/**
* @return int
*/
public function getDefaultTtl()
{
return $this->defaultTtl;
}
/**
* Specifies the maximum allowed TTL for cached content served by this origin.
* Cache directives that attempt to set a max-age or s-maxage higher than
* this, or an Expires header more than maxTTL seconds in the future will be
* capped at the value of maxTTL, as if it were the value of an s-maxage
* Cache-Control directive. Headers sent to the client will not be modified.
* Setting a TTL of "0" means "always revalidate". The maximum allowed value
* is 31,622,400s (1 year), noting that infrequently accessed objects may be
* evicted from the cache before the defined TTL.
*
* @param int $maxTtl
*/
public function setMaxTtl($maxTtl)
{
$this->maxTtl = $maxTtl;
}
/**
* @return int
*/
public function getMaxTtl()
{
return $this->maxTtl;
}
/**
* Negative caching allows per-status code TTLs to be set, in order to apply
* fine-grained caching for common errors or redirects. This can reduce the
* load on your origin and improve end-user experience by reducing response
* latency. When the cache mode is set to CACHE_ALL_STATIC or
* USE_ORIGIN_HEADERS, negative caching applies to responses with the
* specified response code that lack any Cache-Control, Expires, or Pragma:
* no-cache directives. When the cache mode is set to FORCE_CACHE_ALL,
* negative caching applies to all responses with the specified response code,
* and override any caching headers. By default, Cloud CDN will apply the
* following default TTLs to these status codes: HTTP 300 (Multiple Choice),
* 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451
* (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 501 (Not
* Implemented): 60s. These defaults can be overridden in
* negative_caching_policy.
*
* @param bool $negativeCaching
*/
public function setNegativeCaching($negativeCaching)
{
$this->negativeCaching = $negativeCaching;
}
/**
* @return bool
*/
public function getNegativeCaching()
{
return $this->negativeCaching;
}
/**
* Sets a cache TTL for the specified HTTP status code. negative_caching must
* be enabled to configure negative_caching_policy. Omitting the policy and
* leaving negative_caching enabled will use Cloud CDN's default cache TTLs.
* Note that when specifying an explicit negative_caching_policy, you should
* take care to specify a cache TTL for all response codes that you wish to
* cache. Cloud CDN will not apply any default negative caching when a policy
* exists.
*
* @param BackendBucketCdnPolicyNegativeCachingPolicy[] $negativeCachingPolicy
*/
public function setNegativeCachingPolicy($negativeCachingPolicy)
{
$this->negativeCachingPolicy = $negativeCachingPolicy;
}
/**
* @return BackendBucketCdnPolicyNegativeCachingPolicy[]
*/
public function getNegativeCachingPolicy()
{
return $this->negativeCachingPolicy;
}
/**
* If true then Cloud CDN will combine multiple concurrent cache fill requests
* into a small number of requests to the origin.
*
* @param bool $requestCoalescing
*/
public function setRequestCoalescing($requestCoalescing)
{
$this->requestCoalescing = $requestCoalescing;
}
/**
* @return bool
*/
public function getRequestCoalescing()
{
return $this->requestCoalescing;
}
/**
* Serve existing content from the cache (if available) when revalidating
* content with the origin, or when an error is encountered when refreshing
* the cache. This setting defines the default "max-stale" duration for any
* cached responses that do not specify a max-stale directive. Stale responses
* that exceed the TTL configured here will not be served. The default limit
* (max-stale) is 86400s (1 day), which will allow stale content to be served
* up to this limit beyond the max-age (or s-maxage) of a cached response. The
* maximum allowed value is 604800 (1 week). Set this to zero (0) to disable
* serve-while-stale.
*
* @param int $serveWhileStale
*/
public function setServeWhileStale($serveWhileStale)
{
$this->serveWhileStale = $serveWhileStale;
}
/**
* @return int
*/
public function getServeWhileStale()
{
return $this->serveWhileStale;
}
/**
* Maximum number of seconds the response to a signed URL request will be
* considered fresh. After this time period, the response will be revalidated
* before being served. Defaults to 1hr (3600s). When serving responses to
* signed URL requests, Cloud CDN will internally behave as though all
* responses from this backend had a "Cache-Control: public, max-age=[TTL]"
* header, regardless of any existing Cache-Control header. The actual headers
* served in responses will not be altered.
*
* @param string $signedUrlCacheMaxAgeSec
*/
public function setSignedUrlCacheMaxAgeSec($signedUrlCacheMaxAgeSec)
{
$this->signedUrlCacheMaxAgeSec = $signedUrlCacheMaxAgeSec;
}
/**
* @return string
*/
public function getSignedUrlCacheMaxAgeSec()
{
return $this->signedUrlCacheMaxAgeSec;
}
/**
* [Output Only] Names of the keys for signing request URLs.
*
* @param string[] $signedUrlKeyNames
*/
public function setSignedUrlKeyNames($signedUrlKeyNames)
{
$this->signedUrlKeyNames = $signedUrlKeyNames;
}
/**
* @return string[]
*/
public function getSignedUrlKeyNames()
{
return $this->signedUrlKeyNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketCdnPolicy::class, 'Google_Service_Compute_BackendBucketCdnPolicy');
@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketCdnPolicyBypassCacheOnRequestHeader extends \Google\Model
{
/**
* The header field name to match on when bypassing cache. Values are case-
* insensitive.
*
* @var string
*/
public $headerName;
/**
* The header field name to match on when bypassing cache. Values are case-
* insensitive.
*
* @param string $headerName
*/
public function setHeaderName($headerName)
{
$this->headerName = $headerName;
}
/**
* @return string
*/
public function getHeaderName()
{
return $this->headerName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketCdnPolicyBypassCacheOnRequestHeader::class, 'Google_Service_Compute_BackendBucketCdnPolicyBypassCacheOnRequestHeader');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketCdnPolicyCacheKeyPolicy extends \Google\Collection
{
protected $collection_key = 'queryStringWhitelist';
/**
* Allows HTTP request headers (by name) to be used in the cache key.
*
* @var string[]
*/
public $includeHttpHeaders;
/**
* Names of query string parameters to include in cache keys. Default
* parameters are always included. '&' and '=' will be percent encoded and not
* treated as delimiters.
*
* @var string[]
*/
public $queryStringWhitelist;
/**
* Allows HTTP request headers (by name) to be used in the cache key.
*
* @param string[] $includeHttpHeaders
*/
public function setIncludeHttpHeaders($includeHttpHeaders)
{
$this->includeHttpHeaders = $includeHttpHeaders;
}
/**
* @return string[]
*/
public function getIncludeHttpHeaders()
{
return $this->includeHttpHeaders;
}
/**
* Names of query string parameters to include in cache keys. Default
* parameters are always included. '&' and '=' will be percent encoded and not
* treated as delimiters.
*
* @param string[] $queryStringWhitelist
*/
public function setQueryStringWhitelist($queryStringWhitelist)
{
$this->queryStringWhitelist = $queryStringWhitelist;
}
/**
* @return string[]
*/
public function getQueryStringWhitelist()
{
return $this->queryStringWhitelist;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketCdnPolicyCacheKeyPolicy::class, 'Google_Service_Compute_BackendBucketCdnPolicyCacheKeyPolicy');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketCdnPolicyNegativeCachingPolicy extends \Google\Model
{
/**
* The HTTP status code to define a TTL against. Only HTTP status codes 300,
* 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be specified as
* values, and you cannot specify a status code more than once.
*
* @var int
*/
public $code;
/**
* The TTL (in seconds) for which to cache responses with the corresponding
* status code. The maximum allowed value is 1800s (30 minutes), noting that
* infrequently accessed objects may be evicted from the cache before the
* defined TTL.
*
* @var int
*/
public $ttl;
/**
* The HTTP status code to define a TTL against. Only HTTP status codes 300,
* 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be specified as
* values, and you cannot specify a status code more than once.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* The TTL (in seconds) for which to cache responses with the corresponding
* status code. The maximum allowed value is 1800s (30 minutes), noting that
* infrequently accessed objects may be evicted from the cache before the
* defined TTL.
*
* @param int $ttl
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return int
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketCdnPolicyNegativeCachingPolicy::class, 'Google_Service_Compute_BackendBucketCdnPolicyNegativeCachingPolicy');
@@ -0,0 +1,159 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
protected $itemsType = BackendBucket::class;
protected $itemsDataType = 'array';
/**
* Output only. Type of resource.
*
* @var string
*/
public $kind;
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @var string
*/
public $selfLink;
protected $warningType = BackendBucketListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of BackendBucket resources.
*
* @param BackendBucket[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return BackendBucket[]
*/
public function getItems()
{
return $this->items;
}
/**
* Output only. Type of resource.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* [Output Only] Informational warning message.
*
* @param BackendBucketListWarning $warning
*/
public function setWarning(BackendBucketListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return BackendBucketListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketList::class, 'Google_Service_Compute_BackendBucketList');
@@ -0,0 +1,161 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketListUsable extends \Google\Collection
{
protected $collection_key = 'items';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
protected $itemsType = BackendBucket::class;
protected $itemsDataType = 'array';
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#usableBackendBucketList for lists of usable backend buckets.
*
* @var string
*/
public $kind;
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @var string
*/
public $selfLink;
protected $warningType = BackendBucketListUsableWarning::class;
protected $warningDataType = '';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of BackendBucket resources.
*
* @param BackendBucket[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return BackendBucket[]
*/
public function getItems()
{
return $this->items;
}
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#usableBackendBucketList for lists of usable backend buckets.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* [Output Only] Informational warning message.
*
* @param BackendBucketListUsableWarning $warning
*/
public function setWarning(BackendBucketListUsableWarning $warning)
{
$this->warning = $warning;
}
/**
* @return BackendBucketListUsableWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketListUsable::class, 'Google_Service_Compute_BackendBucketListUsable');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketListUsableWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = BackendBucketListUsableWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param BackendBucketListUsableWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return BackendBucketListUsableWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketListUsableWarning::class, 'Google_Service_Compute_BackendBucketListUsableWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketListUsableWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketListUsableWarningData::class, 'Google_Service_Compute_BackendBucketListUsableWarningData');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = BackendBucketListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param BackendBucketListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return BackendBucketListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketListWarning::class, 'Google_Service_Compute_BackendBucketListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketListWarningData::class, 'Google_Service_Compute_BackendBucketListWarningData');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketParams extends \Google\Model
{
/**
* Tag keys/values directly bound to this resource. Tag keys and values have
* the same definition as resource manager tags. The field is allowed for
* INSERT only. The keys/values to set on the resource should be specified in
* either ID { : } or Namespaced format { : }. For example the following are
* valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" :
* "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"}
* Note: * Invalid combinations of ID & namespaced format is not supported.
* For instance: {"123/environment" : "tagValues/444"} is invalid.
*
* @var string[]
*/
public $resourceManagerTags;
/**
* Tag keys/values directly bound to this resource. Tag keys and values have
* the same definition as resource manager tags. The field is allowed for
* INSERT only. The keys/values to set on the resource should be specified in
* either ID { : } or Namespaced format { : }. For example the following are
* valid inputs: * {"tagKeys/333" : "tagValues/444", "tagKeys/123" :
* "tagValues/456"} * {"123/environment" : "production", "345/abc" : "xyz"}
* Note: * Invalid combinations of ID & namespaced format is not supported.
* For instance: {"123/environment" : "tagValues/444"} is invalid.
*
* @param string[] $resourceManagerTags
*/
public function setResourceManagerTags($resourceManagerTags)
{
$this->resourceManagerTags = $resourceManagerTags;
}
/**
* @return string[]
*/
public function getResourceManagerTags()
{
return $this->resourceManagerTags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketParams::class, 'Google_Service_Compute_BackendBucketParams');
@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketUsedBy extends \Google\Model
{
/**
* Output only. [Output Only] Server-defined URL for UrlMaps referencing that
* BackendBucket.
*
* @var string
*/
public $reference;
/**
* Output only. [Output Only] Server-defined URL for UrlMaps referencing that
* BackendBucket.
*
* @param string $reference
*/
public function setReference($reference)
{
$this->reference = $reference;
}
/**
* @return string
*/
public function getReference()
{
return $this->reference;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketUsedBy::class, 'Google_Service_Compute_BackendBucketUsedBy');
@@ -0,0 +1,64 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketsScopedList extends \Google\Collection
{
protected $collection_key = 'backendBuckets';
protected $backendBucketsType = BackendBucket::class;
protected $backendBucketsDataType = 'array';
protected $warningType = BackendBucketsScopedListWarning::class;
protected $warningDataType = '';
/**
* A list of BackendBuckets contained in this scope.
*
* @param BackendBucket[] $backendBuckets
*/
public function setBackendBuckets($backendBuckets)
{
$this->backendBuckets = $backendBuckets;
}
/**
* @return BackendBucket[]
*/
public function getBackendBuckets()
{
return $this->backendBuckets;
}
/**
* Informational warning which replaces the list of backend services when the
* list is empty.
*
* @param BackendBucketsScopedListWarning $warning
*/
public function setWarning(BackendBucketsScopedListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return BackendBucketsScopedListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketsScopedList::class, 'Google_Service_Compute_BackendBucketsScopedList');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketsScopedListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = BackendBucketsScopedListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param BackendBucketsScopedListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return BackendBucketsScopedListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketsScopedListWarning::class, 'Google_Service_Compute_BackendBucketsScopedListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendBucketsScopedListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendBucketsScopedListWarningData::class, 'Google_Service_Compute_BackendBucketsScopedListWarningData');
@@ -0,0 +1,112 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendCustomMetric extends \Google\Model
{
/**
* If true, the metric data is collected and reported to Cloud Monitoring, but
* is not used for load balancing.
*
* @var bool
*/
public $dryRun;
/**
* Optional parameter to define a target utilization for the Custom Metrics
* balancing mode. The valid range is [0.0, 1.0].
*
* @var float
*/
public $maxUtilization;
/**
* Name of a custom utilization signal. The name must be 1-64 characters long
* and match the regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means
* that the first character must be a lowercase letter, and all following
* characters must be a dash, period, underscore, lowercase letter, or digit,
* except the last character, which cannot be a dash, period, or underscore.
* For usage guidelines, see Custom Metrics balancing mode. This field can
* only be used for a global or regional backend service with the
* loadBalancingScheme set to EXTERNAL_MANAGED,INTERNAL_MANAGED
* INTERNAL_SELF_MANAGED.
*
* @var string
*/
public $name;
/**
* If true, the metric data is collected and reported to Cloud Monitoring, but
* is not used for load balancing.
*
* @param bool $dryRun
*/
public function setDryRun($dryRun)
{
$this->dryRun = $dryRun;
}
/**
* @return bool
*/
public function getDryRun()
{
return $this->dryRun;
}
/**
* Optional parameter to define a target utilization for the Custom Metrics
* balancing mode. The valid range is [0.0, 1.0].
*
* @param float $maxUtilization
*/
public function setMaxUtilization($maxUtilization)
{
$this->maxUtilization = $maxUtilization;
}
/**
* @return float
*/
public function getMaxUtilization()
{
return $this->maxUtilization;
}
/**
* Name of a custom utilization signal. The name must be 1-64 characters long
* and match the regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means
* that the first character must be a lowercase letter, and all following
* characters must be a dash, period, underscore, lowercase letter, or digit,
* except the last character, which cannot be a dash, period, or underscore.
* For usage guidelines, see Custom Metrics balancing mode. This field can
* only be used for a global or regional backend service with the
* loadBalancingScheme set to EXTERNAL_MANAGED,INTERNAL_MANAGED
* INTERNAL_SELF_MANAGED.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendCustomMetric::class, 'Google_Service_Compute_BackendCustomMetric');
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,181 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceAggregatedList extends \Google\Collection
{
protected $collection_key = 'unreachables';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
protected $itemsType = BackendServicesScopedList::class;
protected $itemsDataType = 'map';
/**
* Output only. Type of resource.
*
* @var string
*/
public $kind;
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @var string
*/
public $selfLink;
/**
* Output only. [Output Only] Unreachable resources.
*
* @var string[]
*/
public $unreachables;
protected $warningType = BackendServiceAggregatedListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of BackendServicesScopedList resources.
*
* @param BackendServicesScopedList[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return BackendServicesScopedList[]
*/
public function getItems()
{
return $this->items;
}
/**
* Output only. Type of resource.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Output only. [Output Only] Unreachable resources.
*
* @param string[] $unreachables
*/
public function setUnreachables($unreachables)
{
$this->unreachables = $unreachables;
}
/**
* @return string[]
*/
public function getUnreachables()
{
return $this->unreachables;
}
/**
* [Output Only] Informational warning message.
*
* @param BackendServiceAggregatedListWarning $warning
*/
public function setWarning(BackendServiceAggregatedListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return BackendServiceAggregatedListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceAggregatedList::class, 'Google_Service_Compute_BackendServiceAggregatedList');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceAggregatedListWarning extends \Google\Collection
{
/**
* Warning about failed cleanup of transient changes made by a failed
* operation.
*/
public const CODE_CLEANUP_FAILED = 'CLEANUP_FAILED';
/**
* A link to a deprecated resource was created.
*/
public const CODE_DEPRECATED_RESOURCE_USED = 'DEPRECATED_RESOURCE_USED';
/**
* When deploying and at least one of the resources has a type marked as
* deprecated
*/
public const CODE_DEPRECATED_TYPE_USED = 'DEPRECATED_TYPE_USED';
/**
* The user created a boot disk that is larger than image size.
*/
public const CODE_DISK_SIZE_LARGER_THAN_IMAGE_SIZE = 'DISK_SIZE_LARGER_THAN_IMAGE_SIZE';
/**
* When deploying and at least one of the resources has a type marked as
* experimental
*/
public const CODE_EXPERIMENTAL_TYPE_USED = 'EXPERIMENTAL_TYPE_USED';
/**
* Warning that is present in an external api call
*/
public const CODE_EXTERNAL_API_WARNING = 'EXTERNAL_API_WARNING';
/**
* Warning that value of a field has been overridden. Deprecated unused field.
*
* @deprecated
*/
public const CODE_FIELD_VALUE_OVERRIDEN = 'FIELD_VALUE_OVERRIDEN';
/**
* The operation involved use of an injected kernel, which is deprecated.
*/
public const CODE_INJECTED_KERNELS_DEPRECATED = 'INJECTED_KERNELS_DEPRECATED';
/**
* A WEIGHTED_MAGLEV backend service is associated with a health check that is
* not of type HTTP/HTTPS/HTTP2.
*/
public const CODE_INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB = 'INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB';
/**
* When deploying a deployment with a exceedingly large number of resources
*/
public const CODE_LARGE_DEPLOYMENT_WARNING = 'LARGE_DEPLOYMENT_WARNING';
/**
* Resource can't be retrieved due to list overhead quota exceed which
* captures the amount of resources filtered out by user-defined list filter.
*/
public const CODE_LIST_OVERHEAD_QUOTA_EXCEED = 'LIST_OVERHEAD_QUOTA_EXCEED';
/**
* A resource depends on a missing type
*/
public const CODE_MISSING_TYPE_DEPENDENCY = 'MISSING_TYPE_DEPENDENCY';
/**
* The route's nextHopIp address is not assigned to an instance on the
* network.
*/
public const CODE_NEXT_HOP_ADDRESS_NOT_ASSIGNED = 'NEXT_HOP_ADDRESS_NOT_ASSIGNED';
/**
* The route's next hop instance cannot ip forward.
*/
public const CODE_NEXT_HOP_CANNOT_IP_FORWARD = 'NEXT_HOP_CANNOT_IP_FORWARD';
/**
* The route's nextHopInstance URL refers to an instance that does not have an
* ipv6 interface on the same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE = 'NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE';
/**
* The route's nextHopInstance URL refers to an instance that does not exist.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_FOUND = 'NEXT_HOP_INSTANCE_NOT_FOUND';
/**
* The route's nextHopInstance URL refers to an instance that is not on the
* same network as the route.
*/
public const CODE_NEXT_HOP_INSTANCE_NOT_ON_NETWORK = 'NEXT_HOP_INSTANCE_NOT_ON_NETWORK';
/**
* The route's next hop instance does not have a status of RUNNING.
*/
public const CODE_NEXT_HOP_NOT_RUNNING = 'NEXT_HOP_NOT_RUNNING';
/**
* Error which is not critical. We decided to continue the process despite the
* mentioned error.
*/
public const CODE_NOT_CRITICAL_ERROR = 'NOT_CRITICAL_ERROR';
/**
* No results are present on a particular list page.
*/
public const CODE_NO_RESULTS_ON_PAGE = 'NO_RESULTS_ON_PAGE';
/**
* Success is reported, but some results may be missing due to errors
*/
public const CODE_PARTIAL_SUCCESS = 'PARTIAL_SUCCESS';
/**
* Quota information is not available to client requests (e.g: regions.list).
*/
public const CODE_QUOTA_INFO_UNAVAILABLE = 'QUOTA_INFO_UNAVAILABLE';
/**
* The user attempted to use a resource that requires a TOS they have not
* accepted.
*/
public const CODE_REQUIRED_TOS_AGREEMENT = 'REQUIRED_TOS_AGREEMENT';
/**
* Warning that a resource is in use.
*/
public const CODE_RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING = 'RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING';
/**
* One or more of the resources set to auto-delete could not be deleted
* because they were in use.
*/
public const CODE_RESOURCE_NOT_DELETED = 'RESOURCE_NOT_DELETED';
/**
* When a resource schema validation is ignored.
*/
public const CODE_SCHEMA_VALIDATION_IGNORED = 'SCHEMA_VALIDATION_IGNORED';
/**
* Instance template used in instance group manager is valid as such, but its
* application does not make a lot of sense, because it allows only single
* instance in instance group.
*/
public const CODE_SINGLE_INSTANCE_PROPERTY_TEMPLATE = 'SINGLE_INSTANCE_PROPERTY_TEMPLATE';
/**
* When undeclared properties in the schema are present
*/
public const CODE_UNDECLARED_PROPERTIES = 'UNDECLARED_PROPERTIES';
/**
* A given scope cannot be reached.
*/
public const CODE_UNREACHABLE = 'UNREACHABLE';
protected $collection_key = 'data';
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* @var string
*/
public $code;
protected $dataType = BackendServiceAggregatedListWarningData::class;
protected $dataDataType = 'array';
/**
* [Output Only] A human-readable description of the warning code.
*
* @var string
*/
public $message;
/**
* [Output Only] A warning code, if applicable. For example, Compute Engine
* returns NO_RESULTS_ON_PAGE if there are no results in the response.
*
* Accepted values: CLEANUP_FAILED, DEPRECATED_RESOURCE_USED,
* DEPRECATED_TYPE_USED, DISK_SIZE_LARGER_THAN_IMAGE_SIZE,
* EXPERIMENTAL_TYPE_USED, EXTERNAL_API_WARNING, FIELD_VALUE_OVERRIDEN,
* INJECTED_KERNELS_DEPRECATED, INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB,
* LARGE_DEPLOYMENT_WARNING, LIST_OVERHEAD_QUOTA_EXCEED,
* MISSING_TYPE_DEPENDENCY, NEXT_HOP_ADDRESS_NOT_ASSIGNED,
* NEXT_HOP_CANNOT_IP_FORWARD, NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE,
* NEXT_HOP_INSTANCE_NOT_FOUND, NEXT_HOP_INSTANCE_NOT_ON_NETWORK,
* NEXT_HOP_NOT_RUNNING, NOT_CRITICAL_ERROR, NO_RESULTS_ON_PAGE,
* PARTIAL_SUCCESS, QUOTA_INFO_UNAVAILABLE, REQUIRED_TOS_AGREEMENT,
* RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING, RESOURCE_NOT_DELETED,
* SCHEMA_VALIDATION_IGNORED, SINGLE_INSTANCE_PROPERTY_TEMPLATE,
* UNDECLARED_PROPERTIES, UNREACHABLE
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* [Output Only] Metadata about this warning in key: value format. For
* example:
*
* "data": [ { "key": "scope", "value": "zones/us-east1-d" }
*
* @param BackendServiceAggregatedListWarningData[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return BackendServiceAggregatedListWarningData[]
*/
public function getData()
{
return $this->data;
}
/**
* [Output Only] A human-readable description of the warning code.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceAggregatedListWarning::class, 'Google_Service_Compute_BackendServiceAggregatedListWarning');
@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceAggregatedListWarningData extends \Google\Model
{
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @var string
*/
public $key;
/**
* [Output Only] A warning data value corresponding to the key.
*
* @var string
*/
public $value;
/**
* [Output Only] A key that provides more detail on the warning being
* returned. For example, for warnings where there are no results in a list
* request for a particular zone, this key might be scope and the key value
* might be the zone name. Other examples might be a key indicating a
* deprecated resource and a suggested replacement, or a warning about invalid
* network settings (for example, if an instance attempts to perform IP
* forwarding but is not enabled for IP forwarding).
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* [Output Only] A warning data value corresponding to the key.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceAggregatedListWarningData::class, 'Google_Service_Compute_BackendServiceAggregatedListWarningData');
@@ -0,0 +1,443 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceCdnPolicy extends \Google\Collection
{
/**
* Automatically cache static content, including common image formats, media
* (video and audio), and web assets (JavaScript and CSS). Requests and
* responses that are marked as uncacheable, as well as dynamic content
* (including HTML), will not be cached.
*/
public const CACHE_MODE_CACHE_ALL_STATIC = 'CACHE_ALL_STATIC';
/**
* Cache all content, ignoring any "private", "no-store" or "no-cache"
* directives in Cache-Control response headers. Warning: this may result in
* Cloud CDN caching private, per-user (user identifiable) content.
*/
public const CACHE_MODE_FORCE_CACHE_ALL = 'FORCE_CACHE_ALL';
public const CACHE_MODE_INVALID_CACHE_MODE = 'INVALID_CACHE_MODE';
/**
* Requires the origin to set valid caching headers to cache content.
* Responses without these headers will not be cached at Google's edge, and
* will require a full trip to the origin on every request, potentially
* impacting performance and increasing load on the origin server.
*/
public const CACHE_MODE_USE_ORIGIN_HEADERS = 'USE_ORIGIN_HEADERS';
protected $collection_key = 'signedUrlKeyNames';
protected $bypassCacheOnRequestHeadersType = BackendServiceCdnPolicyBypassCacheOnRequestHeader::class;
protected $bypassCacheOnRequestHeadersDataType = 'array';
protected $cacheKeyPolicyType = CacheKeyPolicy::class;
protected $cacheKeyPolicyDataType = '';
/**
* Specifies the cache setting for all responses from this backend. The
* possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid
* caching headers to cache content. Responses without these headers will not
* be cached at Google's edge, and will require a full trip to the origin on
* every request, potentially impacting performance and increasing load on the
* origin server.FORCE_CACHE_ALL Cache all content, ignoring any "private",
* "no-store" or "no-cache" directives in Cache-Control response headers.
* Warning: this may result in Cloud CDN caching private, per-user (user
* identifiable) content.CACHE_ALL_STATIC Automatically cache static content,
* including common image formats, media (video and audio), and web assets
* (JavaScript and CSS). Requests and responses that are marked as
* uncacheable, as well as dynamic content (including HTML), will not be
* cached.
*
* If no value is provided for cdnPolicy.cacheMode, it defaults to
* CACHE_ALL_STATIC.
*
* @var string
*/
public $cacheMode;
/**
* Specifies a separate client (e.g. browser client) maximum TTL. This is used
* to clamp the max-age (or Expires) value sent to the client. With
* FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the
* response max-age directive, along with a "public" directive. For cacheable
* content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the
* origin (if specified), or else sets the response max-age directive to the
* lesser of the client_ttl and default_ttl, and also ensures a "public"
* cache-control directive is present. If a client TTL is not specified, a
* default value (1 hour) will be used. The maximum allowed value is
* 31,622,400s (1 year).
*
* @var int
*/
public $clientTtl;
/**
* Specifies the default TTL for cached content served by this origin for
* responses that do not have an existing valid TTL (max-age or s-maxage).
* Setting a TTL of "0" means "always revalidate". The value of defaultTTL
* cannot be set to a value greater than that of maxTTL, but can be equal.
* When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite
* the TTL set in all responses. The maximum allowed value is 31,622,400s (1
* year), noting that infrequently accessed objects may be evicted from the
* cache before the defined TTL.
*
* @var int
*/
public $defaultTtl;
/**
* Specifies the maximum allowed TTL for cached content served by this origin.
* Cache directives that attempt to set a max-age or s-maxage higher than
* this, or an Expires header more than maxTTL seconds in the future will be
* capped at the value of maxTTL, as if it were the value of an s-maxage
* Cache-Control directive. Headers sent to the client will not be modified.
* Setting a TTL of "0" means "always revalidate". The maximum allowed value
* is 31,622,400s (1 year), noting that infrequently accessed objects may be
* evicted from the cache before the defined TTL.
*
* @var int
*/
public $maxTtl;
/**
* Negative caching allows per-status code TTLs to be set, in order to apply
* fine-grained caching for common errors or redirects. This can reduce the
* load on your origin and improve end-user experience by reducing response
* latency. When the cache mode is set to CACHE_ALL_STATIC or
* USE_ORIGIN_HEADERS, negative caching applies to responses with the
* specified response code that lack any Cache-Control, Expires, or Pragma:
* no-cache directives. When the cache mode is set to FORCE_CACHE_ALL,
* negative caching applies to all responses with the specified response code,
* and override any caching headers. By default, Cloud CDN will apply the
* following default TTLs to these status codes: HTTP 300 (Multiple Choice),
* 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451
* (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 501 (Not
* Implemented): 60s. These defaults can be overridden in
* negative_caching_policy.
*
* @var bool
*/
public $negativeCaching;
protected $negativeCachingPolicyType = BackendServiceCdnPolicyNegativeCachingPolicy::class;
protected $negativeCachingPolicyDataType = 'array';
/**
* If true then Cloud CDN will combine multiple concurrent cache fill requests
* into a small number of requests to the origin.
*
* @var bool
*/
public $requestCoalescing;
/**
* Serve existing content from the cache (if available) when revalidating
* content with the origin, or when an error is encountered when refreshing
* the cache. This setting defines the default "max-stale" duration for any
* cached responses that do not specify a max-stale directive. Stale responses
* that exceed the TTL configured here will not be served. The default limit
* (max-stale) is 86400s (1 day), which will allow stale content to be served
* up to this limit beyond the max-age (or s-maxage) of a cached response. The
* maximum allowed value is 604800 (1 week). Set this to zero (0) to disable
* serve-while-stale.
*
* @var int
*/
public $serveWhileStale;
/**
* Maximum number of seconds the response to a signed URL request will be
* considered fresh. After this time period, the response will be revalidated
* before being served. Defaults to 1hr (3600s). When serving responses to
* signed URL requests, Cloud CDN will internally behave as though all
* responses from this backend had a "Cache-Control: public, max-age=[TTL]"
* header, regardless of any existing Cache-Control header. The actual headers
* served in responses will not be altered.
*
* @var string
*/
public $signedUrlCacheMaxAgeSec;
/**
* [Output Only] Names of the keys for signing request URLs.
*
* @var string[]
*/
public $signedUrlKeyNames;
/**
* Bypass the cache when the specified request headers are matched - e.g.
* Pragma or Authorization headers. Up to 5 headers can be specified. The
* cache is bypassed for all cdnPolicy.cacheMode settings.
*
* @param BackendServiceCdnPolicyBypassCacheOnRequestHeader[] $bypassCacheOnRequestHeaders
*/
public function setBypassCacheOnRequestHeaders($bypassCacheOnRequestHeaders)
{
$this->bypassCacheOnRequestHeaders = $bypassCacheOnRequestHeaders;
}
/**
* @return BackendServiceCdnPolicyBypassCacheOnRequestHeader[]
*/
public function getBypassCacheOnRequestHeaders()
{
return $this->bypassCacheOnRequestHeaders;
}
/**
* The CacheKeyPolicy for this CdnPolicy.
*
* @param CacheKeyPolicy $cacheKeyPolicy
*/
public function setCacheKeyPolicy(CacheKeyPolicy $cacheKeyPolicy)
{
$this->cacheKeyPolicy = $cacheKeyPolicy;
}
/**
* @return CacheKeyPolicy
*/
public function getCacheKeyPolicy()
{
return $this->cacheKeyPolicy;
}
/**
* Specifies the cache setting for all responses from this backend. The
* possible values are:USE_ORIGIN_HEADERS Requires the origin to set valid
* caching headers to cache content. Responses without these headers will not
* be cached at Google's edge, and will require a full trip to the origin on
* every request, potentially impacting performance and increasing load on the
* origin server.FORCE_CACHE_ALL Cache all content, ignoring any "private",
* "no-store" or "no-cache" directives in Cache-Control response headers.
* Warning: this may result in Cloud CDN caching private, per-user (user
* identifiable) content.CACHE_ALL_STATIC Automatically cache static content,
* including common image formats, media (video and audio), and web assets
* (JavaScript and CSS). Requests and responses that are marked as
* uncacheable, as well as dynamic content (including HTML), will not be
* cached.
*
* If no value is provided for cdnPolicy.cacheMode, it defaults to
* CACHE_ALL_STATIC.
*
* Accepted values: CACHE_ALL_STATIC, FORCE_CACHE_ALL, INVALID_CACHE_MODE,
* USE_ORIGIN_HEADERS
*
* @param self::CACHE_MODE_* $cacheMode
*/
public function setCacheMode($cacheMode)
{
$this->cacheMode = $cacheMode;
}
/**
* @return self::CACHE_MODE_*
*/
public function getCacheMode()
{
return $this->cacheMode;
}
/**
* Specifies a separate client (e.g. browser client) maximum TTL. This is used
* to clamp the max-age (or Expires) value sent to the client. With
* FORCE_CACHE_ALL, the lesser of client_ttl and default_ttl is used for the
* response max-age directive, along with a "public" directive. For cacheable
* content in CACHE_ALL_STATIC mode, client_ttl clamps the max-age from the
* origin (if specified), or else sets the response max-age directive to the
* lesser of the client_ttl and default_ttl, and also ensures a "public"
* cache-control directive is present. If a client TTL is not specified, a
* default value (1 hour) will be used. The maximum allowed value is
* 31,622,400s (1 year).
*
* @param int $clientTtl
*/
public function setClientTtl($clientTtl)
{
$this->clientTtl = $clientTtl;
}
/**
* @return int
*/
public function getClientTtl()
{
return $this->clientTtl;
}
/**
* Specifies the default TTL for cached content served by this origin for
* responses that do not have an existing valid TTL (max-age or s-maxage).
* Setting a TTL of "0" means "always revalidate". The value of defaultTTL
* cannot be set to a value greater than that of maxTTL, but can be equal.
* When the cacheMode is set to FORCE_CACHE_ALL, the defaultTTL will overwrite
* the TTL set in all responses. The maximum allowed value is 31,622,400s (1
* year), noting that infrequently accessed objects may be evicted from the
* cache before the defined TTL.
*
* @param int $defaultTtl
*/
public function setDefaultTtl($defaultTtl)
{
$this->defaultTtl = $defaultTtl;
}
/**
* @return int
*/
public function getDefaultTtl()
{
return $this->defaultTtl;
}
/**
* Specifies the maximum allowed TTL for cached content served by this origin.
* Cache directives that attempt to set a max-age or s-maxage higher than
* this, or an Expires header more than maxTTL seconds in the future will be
* capped at the value of maxTTL, as if it were the value of an s-maxage
* Cache-Control directive. Headers sent to the client will not be modified.
* Setting a TTL of "0" means "always revalidate". The maximum allowed value
* is 31,622,400s (1 year), noting that infrequently accessed objects may be
* evicted from the cache before the defined TTL.
*
* @param int $maxTtl
*/
public function setMaxTtl($maxTtl)
{
$this->maxTtl = $maxTtl;
}
/**
* @return int
*/
public function getMaxTtl()
{
return $this->maxTtl;
}
/**
* Negative caching allows per-status code TTLs to be set, in order to apply
* fine-grained caching for common errors or redirects. This can reduce the
* load on your origin and improve end-user experience by reducing response
* latency. When the cache mode is set to CACHE_ALL_STATIC or
* USE_ORIGIN_HEADERS, negative caching applies to responses with the
* specified response code that lack any Cache-Control, Expires, or Pragma:
* no-cache directives. When the cache mode is set to FORCE_CACHE_ALL,
* negative caching applies to all responses with the specified response code,
* and override any caching headers. By default, Cloud CDN will apply the
* following default TTLs to these status codes: HTTP 300 (Multiple Choice),
* 301, 308 (Permanent Redirects): 10m HTTP 404 (Not Found), 410 (Gone), 451
* (Unavailable For Legal Reasons): 120s HTTP 405 (Method Not Found), 501 (Not
* Implemented): 60s. These defaults can be overridden in
* negative_caching_policy.
*
* @param bool $negativeCaching
*/
public function setNegativeCaching($negativeCaching)
{
$this->negativeCaching = $negativeCaching;
}
/**
* @return bool
*/
public function getNegativeCaching()
{
return $this->negativeCaching;
}
/**
* Sets a cache TTL for the specified HTTP status code. negative_caching must
* be enabled to configure negative_caching_policy. Omitting the policy and
* leaving negative_caching enabled will use Cloud CDN's default cache TTLs.
* Note that when specifying an explicit negative_caching_policy, you should
* take care to specify a cache TTL for all response codes that you wish to
* cache. Cloud CDN will not apply any default negative caching when a policy
* exists.
*
* @param BackendServiceCdnPolicyNegativeCachingPolicy[] $negativeCachingPolicy
*/
public function setNegativeCachingPolicy($negativeCachingPolicy)
{
$this->negativeCachingPolicy = $negativeCachingPolicy;
}
/**
* @return BackendServiceCdnPolicyNegativeCachingPolicy[]
*/
public function getNegativeCachingPolicy()
{
return $this->negativeCachingPolicy;
}
/**
* If true then Cloud CDN will combine multiple concurrent cache fill requests
* into a small number of requests to the origin.
*
* @param bool $requestCoalescing
*/
public function setRequestCoalescing($requestCoalescing)
{
$this->requestCoalescing = $requestCoalescing;
}
/**
* @return bool
*/
public function getRequestCoalescing()
{
return $this->requestCoalescing;
}
/**
* Serve existing content from the cache (if available) when revalidating
* content with the origin, or when an error is encountered when refreshing
* the cache. This setting defines the default "max-stale" duration for any
* cached responses that do not specify a max-stale directive. Stale responses
* that exceed the TTL configured here will not be served. The default limit
* (max-stale) is 86400s (1 day), which will allow stale content to be served
* up to this limit beyond the max-age (or s-maxage) of a cached response. The
* maximum allowed value is 604800 (1 week). Set this to zero (0) to disable
* serve-while-stale.
*
* @param int $serveWhileStale
*/
public function setServeWhileStale($serveWhileStale)
{
$this->serveWhileStale = $serveWhileStale;
}
/**
* @return int
*/
public function getServeWhileStale()
{
return $this->serveWhileStale;
}
/**
* Maximum number of seconds the response to a signed URL request will be
* considered fresh. After this time period, the response will be revalidated
* before being served. Defaults to 1hr (3600s). When serving responses to
* signed URL requests, Cloud CDN will internally behave as though all
* responses from this backend had a "Cache-Control: public, max-age=[TTL]"
* header, regardless of any existing Cache-Control header. The actual headers
* served in responses will not be altered.
*
* @param string $signedUrlCacheMaxAgeSec
*/
public function setSignedUrlCacheMaxAgeSec($signedUrlCacheMaxAgeSec)
{
$this->signedUrlCacheMaxAgeSec = $signedUrlCacheMaxAgeSec;
}
/**
* @return string
*/
public function getSignedUrlCacheMaxAgeSec()
{
return $this->signedUrlCacheMaxAgeSec;
}
/**
* [Output Only] Names of the keys for signing request URLs.
*
* @param string[] $signedUrlKeyNames
*/
public function setSignedUrlKeyNames($signedUrlKeyNames)
{
$this->signedUrlKeyNames = $signedUrlKeyNames;
}
/**
* @return string[]
*/
public function getSignedUrlKeyNames()
{
return $this->signedUrlKeyNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceCdnPolicy::class, 'Google_Service_Compute_BackendServiceCdnPolicy');
@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceCdnPolicyBypassCacheOnRequestHeader extends \Google\Model
{
/**
* The header field name to match on when bypassing cache. Values are case-
* insensitive.
*
* @var string
*/
public $headerName;
/**
* The header field name to match on when bypassing cache. Values are case-
* insensitive.
*
* @param string $headerName
*/
public function setHeaderName($headerName)
{
$this->headerName = $headerName;
}
/**
* @return string
*/
public function getHeaderName()
{
return $this->headerName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceCdnPolicyBypassCacheOnRequestHeader::class, 'Google_Service_Compute_BackendServiceCdnPolicyBypassCacheOnRequestHeader');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceCdnPolicyNegativeCachingPolicy extends \Google\Model
{
/**
* The HTTP status code to define a TTL against. Only HTTP status codes 300,
* 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be specified as
* values, and you cannot specify a status code more than once.
*
* @var int
*/
public $code;
/**
* The TTL (in seconds) for which to cache responses with the corresponding
* status code. The maximum allowed value is 1800s (30 minutes), noting that
* infrequently accessed objects may be evicted from the cache before the
* defined TTL.
*
* @var int
*/
public $ttl;
/**
* The HTTP status code to define a TTL against. Only HTTP status codes 300,
* 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 can be specified as
* values, and you cannot specify a status code more than once.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* The TTL (in seconds) for which to cache responses with the corresponding
* status code. The maximum allowed value is 1800s (30 minutes), noting that
* infrequently accessed objects may be evicted from the cache before the
* defined TTL.
*
* @param int $ttl
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return int
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceCdnPolicyNegativeCachingPolicy::class, 'Google_Service_Compute_BackendServiceCdnPolicyNegativeCachingPolicy');
@@ -0,0 +1,210 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceConnectionTrackingPolicy extends \Google\Model
{
public const CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_ALWAYS_PERSIST = 'ALWAYS_PERSIST';
public const CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_DEFAULT_FOR_PROTOCOL = 'DEFAULT_FOR_PROTOCOL';
public const CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_NEVER_PERSIST = 'NEVER_PERSIST';
public const TRACKING_MODE_INVALID_TRACKING_MODE = 'INVALID_TRACKING_MODE';
public const TRACKING_MODE_PER_CONNECTION = 'PER_CONNECTION';
public const TRACKING_MODE_PER_SESSION = 'PER_SESSION';
/**
* Specifies connection persistence when backends are unhealthy. The default
* value is DEFAULT_FOR_PROTOCOL.
*
* If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on
* unhealthy backends only for connection-oriented protocols (TCP and SCTP)
* and only if the Tracking Mode isPER_CONNECTION (default tracking mode) or
* the Session Affinity is configured for 5-tuple. They do not persist forUDP.
*
* If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing
* connections on the unhealthy backend are never persisted on the unhealthy
* backend. They are always diverted to newly selected healthy backends
* (unless all backends are unhealthy).
*
* If set to ALWAYS_PERSIST, existing connections always persist on unhealthy
* backends regardless of protocol and session affinity. It is generally not
* recommended to use this mode overriding the default.
*
* For more details, see [Connection Persistence for Network Load
* Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-
* backend-service#connection-persistence) and [Connection Persistence for
* Internal TCP/UDP Load Balancing](https://cloud.google.com/load-
* balancing/docs/internal#connection-persistence).
*
* @var string
*/
public $connectionPersistenceOnUnhealthyBackends;
/**
* Enable Strong Session Affinity for external passthrough Network Load
* Balancers. This option is not available publicly.
*
* @var bool
*/
public $enableStrongAffinity;
/**
* Specifies how long to keep a Connection Tracking entry while there is no
* matching traffic (in seconds).
*
* For internal passthrough Network Load Balancers: - The minimum
* (default) is 10 minutes and the maximum is 16 hours. - It can be set
* only if Connection Tracking is less than 5-tuple (i.e. Session Affinity
* is CLIENT_IP_NO_DESTINATION,CLIENT_IP or CLIENT_IP_PROTO, and Tracking
* Mode is PER_SESSION).
*
* For external passthrough Network Load Balancers the default is 60 seconds.
* This option is not available publicly.
*
* @var int
*/
public $idleTimeoutSec;
/**
* Specifies the key used for connection tracking. There are two options:
* - PER_CONNECTION: This is the default mode. The Connection Tracking is
* performed as per the Connection Key (default Hash Method) for the
* specific protocol. - PER_SESSION: The Connection Tracking is performed
* as per the configured Session Affinity. It matches the configured
* Session Affinity.
*
* For more details, see [Tracking Mode for Network Load
* Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-
* backend-service#tracking-mode) and [Tracking Mode for Internal TCP/UDP Load
* Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-
* mode).
*
* @var string
*/
public $trackingMode;
/**
* Specifies connection persistence when backends are unhealthy. The default
* value is DEFAULT_FOR_PROTOCOL.
*
* If set to DEFAULT_FOR_PROTOCOL, the existing connections persist on
* unhealthy backends only for connection-oriented protocols (TCP and SCTP)
* and only if the Tracking Mode isPER_CONNECTION (default tracking mode) or
* the Session Affinity is configured for 5-tuple. They do not persist forUDP.
*
* If set to NEVER_PERSIST, after a backend becomes unhealthy, the existing
* connections on the unhealthy backend are never persisted on the unhealthy
* backend. They are always diverted to newly selected healthy backends
* (unless all backends are unhealthy).
*
* If set to ALWAYS_PERSIST, existing connections always persist on unhealthy
* backends regardless of protocol and session affinity. It is generally not
* recommended to use this mode overriding the default.
*
* For more details, see [Connection Persistence for Network Load
* Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-
* backend-service#connection-persistence) and [Connection Persistence for
* Internal TCP/UDP Load Balancing](https://cloud.google.com/load-
* balancing/docs/internal#connection-persistence).
*
* Accepted values: ALWAYS_PERSIST, DEFAULT_FOR_PROTOCOL, NEVER_PERSIST
*
* @param self::CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_* $connectionPersistenceOnUnhealthyBackends
*/
public function setConnectionPersistenceOnUnhealthyBackends($connectionPersistenceOnUnhealthyBackends)
{
$this->connectionPersistenceOnUnhealthyBackends = $connectionPersistenceOnUnhealthyBackends;
}
/**
* @return self::CONNECTION_PERSISTENCE_ON_UNHEALTHY_BACKENDS_*
*/
public function getConnectionPersistenceOnUnhealthyBackends()
{
return $this->connectionPersistenceOnUnhealthyBackends;
}
/**
* Enable Strong Session Affinity for external passthrough Network Load
* Balancers. This option is not available publicly.
*
* @param bool $enableStrongAffinity
*/
public function setEnableStrongAffinity($enableStrongAffinity)
{
$this->enableStrongAffinity = $enableStrongAffinity;
}
/**
* @return bool
*/
public function getEnableStrongAffinity()
{
return $this->enableStrongAffinity;
}
/**
* Specifies how long to keep a Connection Tracking entry while there is no
* matching traffic (in seconds).
*
* For internal passthrough Network Load Balancers: - The minimum
* (default) is 10 minutes and the maximum is 16 hours. - It can be set
* only if Connection Tracking is less than 5-tuple (i.e. Session Affinity
* is CLIENT_IP_NO_DESTINATION,CLIENT_IP or CLIENT_IP_PROTO, and Tracking
* Mode is PER_SESSION).
*
* For external passthrough Network Load Balancers the default is 60 seconds.
* This option is not available publicly.
*
* @param int $idleTimeoutSec
*/
public function setIdleTimeoutSec($idleTimeoutSec)
{
$this->idleTimeoutSec = $idleTimeoutSec;
}
/**
* @return int
*/
public function getIdleTimeoutSec()
{
return $this->idleTimeoutSec;
}
/**
* Specifies the key used for connection tracking. There are two options:
* - PER_CONNECTION: This is the default mode. The Connection Tracking is
* performed as per the Connection Key (default Hash Method) for the
* specific protocol. - PER_SESSION: The Connection Tracking is performed
* as per the configured Session Affinity. It matches the configured
* Session Affinity.
*
* For more details, see [Tracking Mode for Network Load
* Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-
* backend-service#tracking-mode) and [Tracking Mode for Internal TCP/UDP Load
* Balancing](https://cloud.google.com/load-balancing/docs/internal#tracking-
* mode).
*
* Accepted values: INVALID_TRACKING_MODE, PER_CONNECTION, PER_SESSION
*
* @param self::TRACKING_MODE_* $trackingMode
*/
public function setTrackingMode($trackingMode)
{
$this->trackingMode = $trackingMode;
}
/**
* @return self::TRACKING_MODE_*
*/
public function getTrackingMode()
{
return $this->trackingMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceConnectionTrackingPolicy::class, 'Google_Service_Compute_BackendServiceConnectionTrackingPolicy');
@@ -0,0 +1,86 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceCustomMetric extends \Google\Model
{
/**
* If true, the metric data is not used for load balancing.
*
* @var bool
*/
public $dryRun;
/**
* Name of a custom utilization signal. The name must be 1-64 characters long
* and match the regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means
* that the first character must be a lowercase letter, and all following
* characters must be a dash, period, underscore, lowercase letter, or digit,
* except the last character, which cannot be a dash, period, or underscore.
* For usage guidelines, see Custom Metrics balancing mode. This field can
* only be used for a global or regional backend service with the
* loadBalancingScheme set to EXTERNAL_MANAGED,INTERNAL_MANAGED
* INTERNAL_SELF_MANAGED.
*
* @var string
*/
public $name;
/**
* If true, the metric data is not used for load balancing.
*
* @param bool $dryRun
*/
public function setDryRun($dryRun)
{
$this->dryRun = $dryRun;
}
/**
* @return bool
*/
public function getDryRun()
{
return $this->dryRun;
}
/**
* Name of a custom utilization signal. The name must be 1-64 characters long
* and match the regular expression `[a-z]([-_.a-z0-9]*[a-z0-9])?` which means
* that the first character must be a lowercase letter, and all following
* characters must be a dash, period, underscore, lowercase letter, or digit,
* except the last character, which cannot be a dash, period, or underscore.
* For usage guidelines, see Custom Metrics balancing mode. This field can
* only be used for a global or regional backend service with the
* loadBalancingScheme set to EXTERNAL_MANAGED,INTERNAL_MANAGED
* INTERNAL_SELF_MANAGED.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceCustomMetric::class, 'Google_Service_Compute_BackendServiceCustomMetric');
@@ -0,0 +1,128 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceFailoverPolicy extends \Google\Model
{
/**
* This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED.
*
* The default is false.
*
* @var bool
*/
public $disableConnectionDrainOnFailover;
/**
* If set to true, connections to the load balancer are dropped when all
* primary and all backup backend VMs are unhealthy.If set to false,
* connections are distributed among all primary VMs when all primary and all
* backup backend VMs are unhealthy. For load balancers that have
* configurable failover: [Internal passthrough Network Load
* Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-
* overview) and [external passthrough Network Load
* Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-
* failover-overview). The default is false.
*
* @var bool
*/
public $dropTrafficIfUnhealthy;
/**
* The value of the field must be in the range[0, 1]. If the value is 0, the
* load balancer performs a failover when the number of healthy primary VMs
* equals zero. For all other values, the load balancer performs a failover
* when the total number of healthy primary VMs is less than this ratio. For
* load balancers that have configurable failover: [Internal TCP/UDP Load
* Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-
* overview) and [external TCP/UDP Load
* Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-
* failover-overview).
*
* @var float
*/
public $failoverRatio;
/**
* This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED.
*
* The default is false.
*
* @param bool $disableConnectionDrainOnFailover
*/
public function setDisableConnectionDrainOnFailover($disableConnectionDrainOnFailover)
{
$this->disableConnectionDrainOnFailover = $disableConnectionDrainOnFailover;
}
/**
* @return bool
*/
public function getDisableConnectionDrainOnFailover()
{
return $this->disableConnectionDrainOnFailover;
}
/**
* If set to true, connections to the load balancer are dropped when all
* primary and all backup backend VMs are unhealthy.If set to false,
* connections are distributed among all primary VMs when all primary and all
* backup backend VMs are unhealthy. For load balancers that have
* configurable failover: [Internal passthrough Network Load
* Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-
* overview) and [external passthrough Network Load
* Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-
* failover-overview). The default is false.
*
* @param bool $dropTrafficIfUnhealthy
*/
public function setDropTrafficIfUnhealthy($dropTrafficIfUnhealthy)
{
$this->dropTrafficIfUnhealthy = $dropTrafficIfUnhealthy;
}
/**
* @return bool
*/
public function getDropTrafficIfUnhealthy()
{
return $this->dropTrafficIfUnhealthy;
}
/**
* The value of the field must be in the range[0, 1]. If the value is 0, the
* load balancer performs a failover when the number of healthy primary VMs
* equals zero. For all other values, the load balancer performs a failover
* when the total number of healthy primary VMs is less than this ratio. For
* load balancers that have configurable failover: [Internal TCP/UDP Load
* Balancing](https://cloud.google.com/load-balancing/docs/internal/failover-
* overview) and [external TCP/UDP Load
* Balancing](https://cloud.google.com/load-balancing/docs/network/networklb-
* failover-overview).
*
* @param float $failoverRatio
*/
public function setFailoverRatio($failoverRatio)
{
$this->failoverRatio = $failoverRatio;
}
/**
* @return float
*/
public function getFailoverRatio()
{
return $this->failoverRatio;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceFailoverPolicy::class, 'Google_Service_Compute_BackendServiceFailoverPolicy');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceGroupHealth extends \Google\Collection
{
protected $collection_key = 'healthStatus';
/**
* Metadata defined as annotations on the network endpoint group.
*
* @var string[]
*/
public $annotations;
protected $healthStatusType = HealthStatus::class;
protected $healthStatusDataType = 'array';
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#backendServiceGroupHealth for the health of backend services.
*
* @var string
*/
public $kind;
/**
* Metadata defined as annotations on the network endpoint group.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Health state of the backend instances or endpoints in requested instance or
* network endpoint group, determined based on configured health checks.
*
* @param HealthStatus[] $healthStatus
*/
public function setHealthStatus($healthStatus)
{
$this->healthStatus = $healthStatus;
}
/**
* @return HealthStatus[]
*/
public function getHealthStatus()
{
return $this->healthStatus;
}
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#backendServiceGroupHealth for the health of backend services.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceGroupHealth::class, 'Google_Service_Compute_BackendServiceGroupHealth');
@@ -0,0 +1,193 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceHAPolicy extends \Google\Model
{
public const FAST_IPM_OVE_DISABLED = 'DISABLED';
public const FAST_IPM_OVE_GARP_RA = 'GARP_RA';
/**
* Specifies whether fast IP move is enabled, and if so, the mechanism to
* achieve it.
*
* Supported values are: - DISABLED: Fast IP Move is disabled. You can
* only use the haPolicy.leader API to update the leader. - >GARP_RA:
* Provides a method to very quickly define a new network endpoint as the
* leader. This method is faster than updating the leader using the
* haPolicy.leader API. Fast IP move works as follows: The VM hosting the
* network endpoint that should become the new leader sends either a
* Gratuitous ARP (GARP) packet (IPv4) or an ICMPv6 Router
* Advertisement(RA) packet (IPv6). Google Cloud immediately but
* temporarily associates the forwarding rule IP address with that VM, and
* both new and in-flight packets are quickly delivered to that VM.
*
* Note the important properties of the Fast IP Move functionality: -
* The GARP/RA-initiated re-routing stays active for approximately 20
* minutes. After triggering fast failover, you must also appropriately set
* the haPolicy.leader. - The new leader instance should continue to send
* GARP/RA packets periodically every 10 seconds until at least 10 minutes
* after updating the haPolicy.leader (but stop immediately if it is no
* longer the leader). - After triggering a fast failover, we recommend
* that you wait at least 3 seconds before sending another GARP/RA packet
* from a different VM instance to avoid race conditions. - Don't send
* GARP/RA packets from different VM instances at the same time. If
* multiple instances continue to send GARP/RA packets, traffic might be
* routed to different destinations in an alternating order. This condition
* ceases when a single instance issues a GARP/RA packet. - The GARP/RA
* request always takes priority over the leader API. Using the
* haPolicy.leader API to change the leader to a different instance will
* have no effect until the GARP/RA request becomes inactive. - The
* GARP/RA packets should follow the GARP/RA Packet Specifications.. -
* When multiple forwarding rules refer to a regional backend service, you
* need only send a GARP or RA packet for a single forwarding rule virtual
* IP. The virtual IPs for all forwarding rules targeting the same backend
* service will also be moved to the sender of the GARP or RA packet.
*
* The following are the Fast IP Move limitations (that is, when fastIPMove is
* not DISABLED): - Multiple forwarding rules cannot use the same IP
* address if one of them refers to a regional backend service with
* fastIPMove. - The regional backend service must set the network field,
* and all NEGs must belong to that network. However, individual NEGs
* can belong to different subnetworks of that network. - The maximum
* number of network endpoints across all backends of a backend service
* with fastIPMove is 32. - The maximum number of backend services with
* fastIPMove that can have the same network endpoint attached to one of
* its backends is 64. - The maximum number of backend services with
* fastIPMove in a VPC in a region is 64. - The network endpoints that
* are attached to a backend of a backend service with fastIPMove cannot
* resolve to Gen3+ machines for IPv6. - Traffic directed to the leader by
* a static route next hop will not be redirected to a new leader by fast
* failover. Such traffic will only be redirected once an haPolicy.leader
* update has taken effect. Only traffic to the forwarding rule's virtual
* IP will be redirected to a new leader by fast failover.
*
* haPolicy.fastIPMove can be set only at backend service creation time. Once
* set, it cannot be updated.
*
* By default, fastIpMove is set to DISABLED.
*
* @var string
*/
public $fastIPMove;
protected $leaderType = BackendServiceHAPolicyLeader::class;
protected $leaderDataType = '';
/**
* Specifies whether fast IP move is enabled, and if so, the mechanism to
* achieve it.
*
* Supported values are: - DISABLED: Fast IP Move is disabled. You can
* only use the haPolicy.leader API to update the leader. - >GARP_RA:
* Provides a method to very quickly define a new network endpoint as the
* leader. This method is faster than updating the leader using the
* haPolicy.leader API. Fast IP move works as follows: The VM hosting the
* network endpoint that should become the new leader sends either a
* Gratuitous ARP (GARP) packet (IPv4) or an ICMPv6 Router
* Advertisement(RA) packet (IPv6). Google Cloud immediately but
* temporarily associates the forwarding rule IP address with that VM, and
* both new and in-flight packets are quickly delivered to that VM.
*
* Note the important properties of the Fast IP Move functionality: -
* The GARP/RA-initiated re-routing stays active for approximately 20
* minutes. After triggering fast failover, you must also appropriately set
* the haPolicy.leader. - The new leader instance should continue to send
* GARP/RA packets periodically every 10 seconds until at least 10 minutes
* after updating the haPolicy.leader (but stop immediately if it is no
* longer the leader). - After triggering a fast failover, we recommend
* that you wait at least 3 seconds before sending another GARP/RA packet
* from a different VM instance to avoid race conditions. - Don't send
* GARP/RA packets from different VM instances at the same time. If
* multiple instances continue to send GARP/RA packets, traffic might be
* routed to different destinations in an alternating order. This condition
* ceases when a single instance issues a GARP/RA packet. - The GARP/RA
* request always takes priority over the leader API. Using the
* haPolicy.leader API to change the leader to a different instance will
* have no effect until the GARP/RA request becomes inactive. - The
* GARP/RA packets should follow the GARP/RA Packet Specifications.. -
* When multiple forwarding rules refer to a regional backend service, you
* need only send a GARP or RA packet for a single forwarding rule virtual
* IP. The virtual IPs for all forwarding rules targeting the same backend
* service will also be moved to the sender of the GARP or RA packet.
*
* The following are the Fast IP Move limitations (that is, when fastIPMove is
* not DISABLED): - Multiple forwarding rules cannot use the same IP
* address if one of them refers to a regional backend service with
* fastIPMove. - The regional backend service must set the network field,
* and all NEGs must belong to that network. However, individual NEGs
* can belong to different subnetworks of that network. - The maximum
* number of network endpoints across all backends of a backend service
* with fastIPMove is 32. - The maximum number of backend services with
* fastIPMove that can have the same network endpoint attached to one of
* its backends is 64. - The maximum number of backend services with
* fastIPMove in a VPC in a region is 64. - The network endpoints that
* are attached to a backend of a backend service with fastIPMove cannot
* resolve to Gen3+ machines for IPv6. - Traffic directed to the leader by
* a static route next hop will not be redirected to a new leader by fast
* failover. Such traffic will only be redirected once an haPolicy.leader
* update has taken effect. Only traffic to the forwarding rule's virtual
* IP will be redirected to a new leader by fast failover.
*
* haPolicy.fastIPMove can be set only at backend service creation time. Once
* set, it cannot be updated.
*
* By default, fastIpMove is set to DISABLED.
*
* Accepted values: DISABLED, GARP_RA
*
* @param self::FAST_IPM_OVE_* $fastIPMove
*/
public function setFastIPMove($fastIPMove)
{
$this->fastIPMove = $fastIPMove;
}
/**
* @return self::FAST_IPM_OVE_*
*/
public function getFastIPMove()
{
return $this->fastIPMove;
}
/**
* Selects one of the network endpoints attached to the backend NEGs of this
* service as the active endpoint (the leader) that receives all traffic.
*
* When the leader changes, there is no connection draining to persist
* existing connections on the old leader.
*
* You are responsible for selecting a suitable endpoint as the leader. For
* example, preferring a healthy endpoint over unhealthy ones. Note that this
* service does not track backend endpoint health, and selects the configured
* leader unconditionally.
*
* @param BackendServiceHAPolicyLeader $leader
*/
public function setLeader(BackendServiceHAPolicyLeader $leader)
{
$this->leader = $leader;
}
/**
* @return BackendServiceHAPolicyLeader
*/
public function getLeader()
{
return $this->leader;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceHAPolicy::class, 'Google_Service_Compute_BackendServiceHAPolicy');
@@ -0,0 +1,83 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceHAPolicyLeader extends \Google\Model
{
/**
* A fully-qualified URL (starting with https://www.googleapis.com/) of the
* zonal Network Endpoint Group (NEG) with `GCE_VM_IP` endpoints that the
* leader is attached to.
*
* The leader's backendGroup must already be specified as a backend of this
* backend service. Removing a backend that is designated as the leader's
* backendGroup is not permitted.
*
* @var string
*/
public $backendGroup;
protected $networkEndpointType = BackendServiceHAPolicyLeaderNetworkEndpoint::class;
protected $networkEndpointDataType = '';
/**
* A fully-qualified URL (starting with https://www.googleapis.com/) of the
* zonal Network Endpoint Group (NEG) with `GCE_VM_IP` endpoints that the
* leader is attached to.
*
* The leader's backendGroup must already be specified as a backend of this
* backend service. Removing a backend that is designated as the leader's
* backendGroup is not permitted.
*
* @param string $backendGroup
*/
public function setBackendGroup($backendGroup)
{
$this->backendGroup = $backendGroup;
}
/**
* @return string
*/
public function getBackendGroup()
{
return $this->backendGroup;
}
/**
* The network endpoint within the leader.backendGroup that is designated as
* the leader.
*
* This network endpoint cannot be detached from the NEG specified in the
* haPolicy.leader.backendGroup until the leader is updated with another
* network endpoint, or the leader is removed from the haPolicy.
*
* @param BackendServiceHAPolicyLeaderNetworkEndpoint $networkEndpoint
*/
public function setNetworkEndpoint(BackendServiceHAPolicyLeaderNetworkEndpoint $networkEndpoint)
{
$this->networkEndpoint = $networkEndpoint;
}
/**
* @return BackendServiceHAPolicyLeaderNetworkEndpoint
*/
public function getNetworkEndpoint()
{
return $this->networkEndpoint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceHAPolicyLeader::class, 'Google_Service_Compute_BackendServiceHAPolicyLeader');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceHAPolicyLeaderNetworkEndpoint extends \Google\Model
{
/**
* The name of the VM instance of the leader network endpoint. The instance
* must already be attached to the NEG specified in the
* haPolicy.leader.backendGroup.
*
* The name must be 1-63 characters long, and comply with RFC1035.
* Authorization requires the following IAM permission on the specified
* resource instance: compute.instances.use
*
* @var string
*/
public $instance;
/**
* The name of the VM instance of the leader network endpoint. The instance
* must already be attached to the NEG specified in the
* haPolicy.leader.backendGroup.
*
* The name must be 1-63 characters long, and comply with RFC1035.
* Authorization requires the following IAM permission on the specified
* resource instance: compute.instances.use
*
* @param string $instance
*/
public function setInstance($instance)
{
$this->instance = $instance;
}
/**
* @return string
*/
public function getInstance()
{
return $this->instance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceHAPolicyLeaderNetworkEndpoint::class, 'Google_Service_Compute_BackendServiceHAPolicyLeaderNetworkEndpoint');
@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceHttpCookie extends \Google\Model
{
/**
* Name of the cookie.
*
* @var string
*/
public $name;
/**
* Path to set for the cookie.
*
* @var string
*/
public $path;
protected $ttlType = Duration::class;
protected $ttlDataType = '';
/**
* Name of the cookie.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Path to set for the cookie.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Lifetime of the cookie.
*
* @param Duration $ttl
*/
public function setTtl(Duration $ttl)
{
$this->ttl = $ttl;
}
/**
* @return Duration
*/
public function getTtl()
{
return $this->ttl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceHttpCookie::class, 'Google_Service_Compute_BackendServiceHttpCookie');
@@ -0,0 +1,126 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceIAP extends \Google\Model
{
/**
* Whether the serving infrastructure will authenticate and authorize all
* incoming requests.
*
* @var bool
*/
public $enabled;
/**
* OAuth2 client ID to use for the authentication flow.
*
* @var string
*/
public $oauth2ClientId;
/**
* OAuth2 client secret to use for the authentication flow. For security
* reasons, this value cannot be retrieved via the API. Instead, the SHA-256
* hash of the value is returned in the oauth2ClientSecretSha256 field.
*
* @InputOnly
*
* @var string
*/
public $oauth2ClientSecret;
/**
* Output only. [Output Only] SHA256 hash value for the field
* oauth2_client_secret above.
*
* @var string
*/
public $oauth2ClientSecretSha256;
/**
* Whether the serving infrastructure will authenticate and authorize all
* incoming requests.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* OAuth2 client ID to use for the authentication flow.
*
* @param string $oauth2ClientId
*/
public function setOauth2ClientId($oauth2ClientId)
{
$this->oauth2ClientId = $oauth2ClientId;
}
/**
* @return string
*/
public function getOauth2ClientId()
{
return $this->oauth2ClientId;
}
/**
* OAuth2 client secret to use for the authentication flow. For security
* reasons, this value cannot be retrieved via the API. Instead, the SHA-256
* hash of the value is returned in the oauth2ClientSecretSha256 field.
*
* @InputOnly
*
* @param string $oauth2ClientSecret
*/
public function setOauth2ClientSecret($oauth2ClientSecret)
{
$this->oauth2ClientSecret = $oauth2ClientSecret;
}
/**
* @return string
*/
public function getOauth2ClientSecret()
{
return $this->oauth2ClientSecret;
}
/**
* Output only. [Output Only] SHA256 hash value for the field
* oauth2_client_secret above.
*
* @param string $oauth2ClientSecretSha256
*/
public function setOauth2ClientSecretSha256($oauth2ClientSecretSha256)
{
$this->oauth2ClientSecretSha256 = $oauth2ClientSecretSha256;
}
/**
* @return string
*/
public function getOauth2ClientSecretSha256()
{
return $this->oauth2ClientSecretSha256;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceIAP::class, 'Google_Service_Compute_BackendServiceIAP');
@@ -0,0 +1,161 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
protected $itemsType = BackendService::class;
protected $itemsDataType = 'array';
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#backendServiceList for lists of backend services.
*
* @var string
*/
public $kind;
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @var string
*/
public $selfLink;
protected $warningType = BackendServiceListWarning::class;
protected $warningDataType = '';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of BackendService resources.
*
* @param BackendService[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return BackendService[]
*/
public function getItems()
{
return $this->items;
}
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#backendServiceList for lists of backend services.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* [Output Only] Informational warning message.
*
* @param BackendServiceListWarning $warning
*/
public function setWarning(BackendServiceListWarning $warning)
{
$this->warning = $warning;
}
/**
* @return BackendServiceListWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceList::class, 'Google_Service_Compute_BackendServiceList');
@@ -0,0 +1,163 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Compute;
class BackendServiceListUsable extends \Google\Collection
{
protected $collection_key = 'items';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @var string
*/
public $id;
protected $itemsType = BackendService::class;
protected $itemsDataType = 'array';
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#usableBackendServiceList for lists of usable backend
* services.
*
* @var string
*/
public $kind;
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @var string
*/
public $nextPageToken;
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @var string
*/
public $selfLink;
protected $warningType = BackendServiceListUsableWarning::class;
protected $warningDataType = '';
/**
* [Output Only] Unique identifier for the resource; defined by the server.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of BackendService resources.
*
* @param BackendService[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return BackendService[]
*/
public function getItems()
{
return $this->items;
}
/**
* Output only. [Output Only] Type of resource.
* Alwayscompute#usableBackendServiceList for lists of usable backend
* services.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* [Output Only] This token allows you to get the next page of results for
* list requests. If the number of results is larger thanmaxResults, use the
* nextPageToken as a value for the query parameter pageToken in the next list
* request. Subsequent list requests will have their own nextPageToken to
* continue paging through the results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Output only. [Output Only] Server-defined URL for this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* [Output Only] Informational warning message.
*
* @param BackendServiceListUsableWarning $warning
*/
public function setWarning(BackendServiceListUsableWarning $warning)
{
$this->warning = $warning;
}
/**
* @return BackendServiceListUsableWarning
*/
public function getWarning()
{
return $this->warning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackendServiceListUsable::class, 'Google_Service_Compute_BackendServiceListUsable');

Some files were not shown because too many files have changed in this diff Show More