diff --git a/src/Compute.php b/src/Compute.php index e5b74dc3b9e..c94bee88c99 100644 --- a/src/Compute.php +++ b/src/Compute.php @@ -113,11 +113,13 @@ class Compute extends \Google\Service public $regionAutoscalers; public $regionBackendServices; public $regionCommitments; + public $regionCompositeHealthChecks; public $regionDiskTypes; public $regionDisks; public $regionHealthAggregationPolicies; public $regionHealthCheckServices; public $regionHealthChecks; + public $regionHealthSources; public $regionInstanceGroupManagers; public $regionInstanceGroups; public $regionInstanceTemplates; @@ -6943,6 +6945,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'type' => 'string', 'required' => true, ], + 'discardLocalSsd' => [ + 'location' => 'query', + 'type' => 'boolean', + ], 'minimalAction' => [ 'location' => 'query', 'type' => 'string', @@ -12480,6 +12486,196 @@ public function __construct($clientOrConfig = [], $rootUrl = null) ] ] ); + $this->regionCompositeHealthChecks = new Compute\Resource\RegionCompositeHealthChecks( + $this, + $this->serviceName, + 'regionCompositeHealthChecks', + [ + 'methods' => [ + 'aggregatedList' => [ + 'path' => 'projects/{project}/aggregated/compositeHealthChecks', + 'httpMethod' => 'GET', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'includeAllScopes' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + 'maxResults' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'orderBy' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'returnPartialSuccess' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + 'serviceProjectNumber' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'delete' => [ + 'path' => 'projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}', + 'httpMethod' => 'DELETE', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'region' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'compositeHealthCheck' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'get' => [ + 'path' => 'projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'region' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'compositeHealthCheck' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'insert' => [ + 'path' => 'projects/{project}/regions/{region}/compositeHealthChecks', + 'httpMethod' => 'POST', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'region' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'list' => [ + 'path' => 'projects/{project}/regions/{region}/compositeHealthChecks', + 'httpMethod' => 'GET', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'region' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'maxResults' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'orderBy' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'returnPartialSuccess' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + ], + ],'patch' => [ + 'path' => 'projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}', + 'httpMethod' => 'PATCH', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'region' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'compositeHealthCheck' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'testIamPermissions' => [ + 'path' => 'projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'region' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'resource' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ], + ] + ] + ); $this->regionDiskTypes = new Compute\Resource\RegionDiskTypes( $this, $this->serviceName, @@ -13156,7 +13352,45 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'regionHealthCheckServices', [ 'methods' => [ - 'delete' => [ + 'aggregatedList' => [ + 'path' => 'projects/{project}/aggregated/healthCheckServices', + 'httpMethod' => 'GET', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'includeAllScopes' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + 'maxResults' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'orderBy' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'returnPartialSuccess' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + 'serviceProjectNumber' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'delete' => [ 'path' => 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', 'httpMethod' => 'DELETE', 'parameters' => [ @@ -13478,6 +13712,196 @@ public function __construct($clientOrConfig = [], $rootUrl = null) ] ] ); + $this->regionHealthSources = new Compute\Resource\RegionHealthSources( + $this, + $this->serviceName, + 'regionHealthSources', + [ + 'methods' => [ + 'aggregatedList' => [ + 'path' => 'projects/{project}/aggregated/healthSources', + 'httpMethod' => 'GET', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'includeAllScopes' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + 'maxResults' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'orderBy' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'returnPartialSuccess' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + 'serviceProjectNumber' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'delete' => [ + 'path' => 'projects/{project}/regions/{region}/healthSources/{healthSource}', + 'httpMethod' => 'DELETE', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'region' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'healthSource' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'get' => [ + 'path' => 'projects/{project}/regions/{region}/healthSources/{healthSource}', + 'httpMethod' => 'GET', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'region' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'healthSource' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ],'insert' => [ + 'path' => 'projects/{project}/regions/{region}/healthSources', + 'httpMethod' => 'POST', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'region' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'list' => [ + 'path' => 'projects/{project}/regions/{region}/healthSources', + 'httpMethod' => 'GET', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'region' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'maxResults' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'orderBy' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'returnPartialSuccess' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + ], + ],'patch' => [ + 'path' => 'projects/{project}/regions/{region}/healthSources/{healthSource}', + 'httpMethod' => 'PATCH', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'region' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'healthSource' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'testIamPermissions' => [ + 'path' => 'projects/{project}/regions/{region}/healthSources/{resource}/testIamPermissions', + 'httpMethod' => 'POST', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'region' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'resource' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ], + ] + ] + ); $this->regionInstanceGroupManagers = new Compute\Resource\RegionInstanceGroupManagers( $this, $this->serviceName, @@ -15207,7 +15631,45 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'regionNotificationEndpoints', [ 'methods' => [ - 'delete' => [ + 'aggregatedList' => [ + 'path' => 'projects/{project}/aggregated/notificationEndpoints', + 'httpMethod' => 'GET', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'filter' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'includeAllScopes' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + 'maxResults' => [ + 'location' => 'query', + 'type' => 'integer', + ], + 'orderBy' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'pageToken' => [ + 'location' => 'query', + 'type' => 'string', + ], + 'returnPartialSuccess' => [ + 'location' => 'query', + 'type' => 'boolean', + ], + 'serviceProjectNumber' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], + ],'delete' => [ 'path' => 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', 'httpMethod' => 'DELETE', 'parameters' => [ @@ -16891,6 +17353,35 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'required' => true, ], ], + ],'getVersion' => [ + 'path' => 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}/getVersion', + 'httpMethod' => 'POST', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'zone' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'parentName' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'reservationSlot' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], ],'list' => [ 'path' => 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots', 'httpMethod' => 'GET', @@ -17028,6 +17519,35 @@ public function __construct($clientOrConfig = [], $rootUrl = null) 'type' => 'integer', ], ], + ],'getVersion' => [ + 'path' => 'projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks/{reservationSubBlock}/getVersion', + 'httpMethod' => 'POST', + 'parameters' => [ + 'project' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'zone' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'parentName' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'reservationSubBlock' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + 'requestId' => [ + 'location' => 'query', + 'type' => 'string', + ], + ], ],'list' => [ 'path' => 'projects/{project}/zones/{zone}/{+parentName}/reservationSubBlocks', 'httpMethod' => 'GET', diff --git a/src/Compute/BackendServiceFailoverPolicy.php b/src/Compute/BackendServiceFailoverPolicy.php index 2ddfbe6f8d8..0eee0ae5706 100644 --- a/src/Compute/BackendServiceFailoverPolicy.php +++ b/src/Compute/BackendServiceFailoverPolicy.php @@ -20,7 +20,7 @@ class BackendServiceFailoverPolicy extends \Google\Model { /** - * This can be set to true only if the protocol isTCP. + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. * * The default is false. * @@ -57,7 +57,7 @@ class BackendServiceFailoverPolicy extends \Google\Model public $failoverRatio; /** - * This can be set to true only if the protocol isTCP. + * This can be set to true if the protocol isTCP, UDP, or UNSPECIFIED. * * The default is false. * diff --git a/src/Compute/CompositeHealthCheck.php b/src/Compute/CompositeHealthCheck.php new file mode 100644 index 00000000000..67c66e65cd0 --- /dev/null +++ b/src/Compute/CompositeHealthCheck.php @@ -0,0 +1,317 @@ +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; + } + /** + * Fingerprint of this resource. A hash of the contents stored in this object. + * This field is used in optimistic locking. This field will be ignored when + * inserting a CompositeHealthCheck. An up-to-date fingerprint must be + * provided in order to patch the CompositeHealthCheck; Otherwise, the request + * will fail with error 412 conditionNotMet. To see the latest fingerprint, + * make a get() request to retrieve the CompositeHealthCheck. + * + * @param string $fingerprint + */ + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + /** + * @return string + */ + public function getFingerprint() + { + return $this->fingerprint; + } + /** + * URL to the destination resource. Must be set. Must be aForwardingRule. The + * ForwardingRule must have load balancing scheme INTERNAL orINTERNAL_MANAGED + * and must be regional and in the same region as the CompositeHealthCheck + * (cross-region deployment forINTERNAL_MANAGED is not supported). Can be + * mutated. + * + * @param string $healthDestination + */ + public function setHealthDestination($healthDestination) + { + $this->healthDestination = $healthDestination; + } + /** + * @return string + */ + public function getHealthDestination() + { + return $this->healthDestination; + } + /** + * URLs to the HealthSource resources whose results are AND'ed. I.e. he + * aggregated result is is HEALTHY only if all sources are HEALTHY. Must have + * at least 1. Must not have more than 10. Must be regional and in the same + * region as theCompositeHealthCheck. Can be mutated. + * + * @param string[] $healthSources + */ + public function setHealthSources($healthSources) + { + $this->healthSources = $healthSources; + } + /** + * @return string[] + */ + public function getHealthSources() + { + return $this->healthSources; + } + /** + * Output only. [Output Only] A unique identifier for this resource type. The + * server generates this identifier. + * + * @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. + * Alwayscompute#compositeHealthCheck for composite health checks. + * + * @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] URL of the region where the composite health + * check resides. This field applies only to the regional resource. 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. [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] Server-defined URL with id for the resource. + * + * @param string $selfLinkWithId + */ + public function setSelfLinkWithId($selfLinkWithId) + { + $this->selfLinkWithId = $selfLinkWithId; + } + /** + * @return string + */ + public function getSelfLinkWithId() + { + return $this->selfLinkWithId; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CompositeHealthCheck::class, 'Google_Service_Compute_CompositeHealthCheck'); diff --git a/src/Compute/CompositeHealthCheckAggregatedList.php b/src/Compute/CompositeHealthCheckAggregatedList.php new file mode 100644 index 00000000000..f74af68df0c --- /dev/null +++ b/src/Compute/CompositeHealthCheckAggregatedList.php @@ -0,0 +1,181 @@ +id = $id; + } + /** + * @return string + */ + public function getId() + { + return $this->id; + } + /** + * A list of CompositeHealthChecksScopedList resources. + * + * @param CompositeHealthChecksScopedList[] $items + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return CompositeHealthChecksScopedList[] + */ + 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 CompositeHealthCheckAggregatedListWarning $warning + */ + public function setWarning(CompositeHealthCheckAggregatedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return CompositeHealthCheckAggregatedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CompositeHealthCheckAggregatedList::class, 'Google_Service_Compute_CompositeHealthCheckAggregatedList'); diff --git a/src/Compute/CompositeHealthCheckAggregatedListWarning.php b/src/Compute/CompositeHealthCheckAggregatedListWarning.php new file mode 100644 index 00000000000..c414c005f9c --- /dev/null +++ b/src/Compute/CompositeHealthCheckAggregatedListWarning.php @@ -0,0 +1,239 @@ +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 CompositeHealthCheckAggregatedListWarningData[] $data + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return CompositeHealthCheckAggregatedListWarningData[] + */ + 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(CompositeHealthCheckAggregatedListWarning::class, 'Google_Service_Compute_CompositeHealthCheckAggregatedListWarning'); diff --git a/src/Compute/CompositeHealthCheckAggregatedListWarningData.php b/src/Compute/CompositeHealthCheckAggregatedListWarningData.php new file mode 100644 index 00000000000..fa2574053f7 --- /dev/null +++ b/src/Compute/CompositeHealthCheckAggregatedListWarningData.php @@ -0,0 +1,82 @@ +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(CompositeHealthCheckAggregatedListWarningData::class, 'Google_Service_Compute_CompositeHealthCheckAggregatedListWarningData'); diff --git a/src/Compute/CompositeHealthCheckList.php b/src/Compute/CompositeHealthCheckList.php new file mode 100644 index 00000000000..0ac042be3b5 --- /dev/null +++ b/src/Compute/CompositeHealthCheckList.php @@ -0,0 +1,161 @@ +id = $id; + } + /** + * @return string + */ + public function getId() + { + return $this->id; + } + /** + * A list of CompositeHealthCheck resources. + * + * @param CompositeHealthCheck[] $items + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return CompositeHealthCheck[] + */ + public function getItems() + { + return $this->items; + } + /** + * Output only. [Output Only] Type of the resource. + * Alwayscompute#compositeHealthCheck for composite health checks. + * + * @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] 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 CompositeHealthCheckListWarning $warning + */ + public function setWarning(CompositeHealthCheckListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return CompositeHealthCheckListWarning + */ + public function getWarning() + { + return $this->warning; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CompositeHealthCheckList::class, 'Google_Service_Compute_CompositeHealthCheckList'); diff --git a/src/Compute/CompositeHealthCheckListWarning.php b/src/Compute/CompositeHealthCheckListWarning.php new file mode 100644 index 00000000000..f7249bfdef7 --- /dev/null +++ b/src/Compute/CompositeHealthCheckListWarning.php @@ -0,0 +1,239 @@ +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 CompositeHealthCheckListWarningData[] $data + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return CompositeHealthCheckListWarningData[] + */ + 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(CompositeHealthCheckListWarning::class, 'Google_Service_Compute_CompositeHealthCheckListWarning'); diff --git a/src/Compute/CompositeHealthCheckListWarningData.php b/src/Compute/CompositeHealthCheckListWarningData.php new file mode 100644 index 00000000000..890e4ecefcf --- /dev/null +++ b/src/Compute/CompositeHealthCheckListWarningData.php @@ -0,0 +1,82 @@ +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(CompositeHealthCheckListWarningData::class, 'Google_Service_Compute_CompositeHealthCheckListWarningData'); diff --git a/src/Compute/CompositeHealthChecksScopedList.php b/src/Compute/CompositeHealthChecksScopedList.php new file mode 100644 index 00000000000..8b5ca5fb184 --- /dev/null +++ b/src/Compute/CompositeHealthChecksScopedList.php @@ -0,0 +1,64 @@ +compositeHealthChecks = $compositeHealthChecks; + } + /** + * @return CompositeHealthCheck[] + */ + public function getCompositeHealthChecks() + { + return $this->compositeHealthChecks; + } + /** + * Informational warning which replaces the list of composite health checks + * when the list is empty. + * + * @param CompositeHealthChecksScopedListWarning $warning + */ + public function setWarning(CompositeHealthChecksScopedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return CompositeHealthChecksScopedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CompositeHealthChecksScopedList::class, 'Google_Service_Compute_CompositeHealthChecksScopedList'); diff --git a/src/Compute/CompositeHealthChecksScopedListWarning.php b/src/Compute/CompositeHealthChecksScopedListWarning.php new file mode 100644 index 00000000000..774a5146755 --- /dev/null +++ b/src/Compute/CompositeHealthChecksScopedListWarning.php @@ -0,0 +1,239 @@ +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 CompositeHealthChecksScopedListWarningData[] $data + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return CompositeHealthChecksScopedListWarningData[] + */ + 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(CompositeHealthChecksScopedListWarning::class, 'Google_Service_Compute_CompositeHealthChecksScopedListWarning'); diff --git a/src/Compute/CompositeHealthChecksScopedListWarningData.php b/src/Compute/CompositeHealthChecksScopedListWarningData.php new file mode 100644 index 00000000000..0fd29315831 --- /dev/null +++ b/src/Compute/CompositeHealthChecksScopedListWarningData.php @@ -0,0 +1,82 @@ +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(CompositeHealthChecksScopedListWarningData::class, 'Google_Service_Compute_CompositeHealthChecksScopedListWarningData'); diff --git a/src/Compute/DistributionPolicy.php b/src/Compute/DistributionPolicy.php index 85787c3cdf2..f0c6a233986 100644 --- a/src/Compute/DistributionPolicy.php +++ b/src/Compute/DistributionPolicy.php @@ -82,7 +82,11 @@ public function getTargetShape() } /** * Zones where the regional managed instance group will create and manage its - * instances. + * instances. By default, a regional MIG doesn't automatically select an AI + * zone to create instances, even if an AI zone is available in the specified + * region. To create instances in an AI zone in the selected region, you must + * explicitly specify it in the distribution policy together with the other + * preferred zones. * * @param DistributionPolicyZoneConfiguration[] $zones */ diff --git a/src/Compute/GetVersionOperationMetadata.php b/src/Compute/GetVersionOperationMetadata.php new file mode 100644 index 00000000000..a907912eee8 --- /dev/null +++ b/src/Compute/GetVersionOperationMetadata.php @@ -0,0 +1,42 @@ +inlineSbomInfo = $inlineSbomInfo; + } + /** + * @return GetVersionOperationMetadataSbomInfo + */ + public function getInlineSbomInfo() + { + return $this->inlineSbomInfo; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GetVersionOperationMetadata::class, 'Google_Service_Compute_GetVersionOperationMetadata'); diff --git a/src/Compute/GetVersionOperationMetadataSbomInfo.php b/src/Compute/GetVersionOperationMetadataSbomInfo.php new file mode 100644 index 00000000000..9391f0ffd5d --- /dev/null +++ b/src/Compute/GetVersionOperationMetadataSbomInfo.php @@ -0,0 +1,74 @@ +currentComponentVersions = $currentComponentVersions; + } + /** + * @return string[] + */ + public function getCurrentComponentVersions() + { + return $this->currentComponentVersions; + } + /** + * SBOM versions scheduled for the next maintenance. The key is the component + * name and the value is the version. + * + * @param string[] $targetComponentVersions + */ + public function setTargetComponentVersions($targetComponentVersions) + { + $this->targetComponentVersions = $targetComponentVersions; + } + /** + * @return string[] + */ + public function getTargetComponentVersions() + { + return $this->targetComponentVersions; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(GetVersionOperationMetadataSbomInfo::class, 'Google_Service_Compute_GetVersionOperationMetadataSbomInfo'); diff --git a/src/Compute/HealthCheckServiceAggregatedList.php b/src/Compute/HealthCheckServiceAggregatedList.php new file mode 100644 index 00000000000..959051cc34e --- /dev/null +++ b/src/Compute/HealthCheckServiceAggregatedList.php @@ -0,0 +1,181 @@ +id = $id; + } + /** + * @return string + */ + public function getId() + { + return $this->id; + } + /** + * A list of HealthCheckServicesScopedList resources. + * + * @param HealthCheckServicesScopedList[] $items + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return HealthCheckServicesScopedList[] + */ + 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 HealthCheckServiceAggregatedListWarning $warning + */ + public function setWarning(HealthCheckServiceAggregatedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return HealthCheckServiceAggregatedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HealthCheckServiceAggregatedList::class, 'Google_Service_Compute_HealthCheckServiceAggregatedList'); diff --git a/src/Compute/HealthCheckServiceAggregatedListWarning.php b/src/Compute/HealthCheckServiceAggregatedListWarning.php new file mode 100644 index 00000000000..ad14a34a941 --- /dev/null +++ b/src/Compute/HealthCheckServiceAggregatedListWarning.php @@ -0,0 +1,239 @@ +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 HealthCheckServiceAggregatedListWarningData[] $data + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return HealthCheckServiceAggregatedListWarningData[] + */ + 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(HealthCheckServiceAggregatedListWarning::class, 'Google_Service_Compute_HealthCheckServiceAggregatedListWarning'); diff --git a/src/Compute/HealthCheckServiceAggregatedListWarningData.php b/src/Compute/HealthCheckServiceAggregatedListWarningData.php new file mode 100644 index 00000000000..60061d3f18e --- /dev/null +++ b/src/Compute/HealthCheckServiceAggregatedListWarningData.php @@ -0,0 +1,82 @@ +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(HealthCheckServiceAggregatedListWarningData::class, 'Google_Service_Compute_HealthCheckServiceAggregatedListWarningData'); diff --git a/src/Compute/HealthCheckServicesScopedList.php b/src/Compute/HealthCheckServicesScopedList.php new file mode 100644 index 00000000000..e500b02b2a3 --- /dev/null +++ b/src/Compute/HealthCheckServicesScopedList.php @@ -0,0 +1,64 @@ +resources = $resources; + } + /** + * @return HealthCheckService[] + */ + public function getResources() + { + return $this->resources; + } + /** + * Informational warning which replaces the list of backend services when the + * list is empty. + * + * @param HealthCheckServicesScopedListWarning $warning + */ + public function setWarning(HealthCheckServicesScopedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return HealthCheckServicesScopedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HealthCheckServicesScopedList::class, 'Google_Service_Compute_HealthCheckServicesScopedList'); diff --git a/src/Compute/HealthCheckServicesScopedListWarning.php b/src/Compute/HealthCheckServicesScopedListWarning.php new file mode 100644 index 00000000000..6140541bb0e --- /dev/null +++ b/src/Compute/HealthCheckServicesScopedListWarning.php @@ -0,0 +1,239 @@ +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 HealthCheckServicesScopedListWarningData[] $data + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return HealthCheckServicesScopedListWarningData[] + */ + 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(HealthCheckServicesScopedListWarning::class, 'Google_Service_Compute_HealthCheckServicesScopedListWarning'); diff --git a/src/Compute/HealthCheckServicesScopedListWarningData.php b/src/Compute/HealthCheckServicesScopedListWarningData.php new file mode 100644 index 00000000000..9eff12891f1 --- /dev/null +++ b/src/Compute/HealthCheckServicesScopedListWarningData.php @@ -0,0 +1,82 @@ +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(HealthCheckServicesScopedListWarningData::class, 'Google_Service_Compute_HealthCheckServicesScopedListWarningData'); diff --git a/src/Compute/HealthSource.php b/src/Compute/HealthSource.php new file mode 100644 index 00000000000..63b7f07ce26 --- /dev/null +++ b/src/Compute/HealthSource.php @@ -0,0 +1,346 @@ +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; + } + /** + * Fingerprint of this resource. A hash of the contents stored in this object. + * This field is used in optimistic locking. This field will be ignored when + * inserting a HealthSource. An up-to-date fingerprint must be provided in + * order to patch the HealthSource; Otherwise, the request will fail with + * error 412 conditionNotMet. To see the latest fingerprint, make a get() + * request to retrieve the HealthSource. + * + * @param string $fingerprint + */ + public function setFingerprint($fingerprint) + { + $this->fingerprint = $fingerprint; + } + /** + * @return string + */ + public function getFingerprint() + { + return $this->fingerprint; + } + /** + * URL to the HealthAggregationPolicy resource. Must be set. Must be regional + * and in the same region as the HealthSource. Can be mutated. + * + * @param string $healthAggregationPolicy + */ + public function setHealthAggregationPolicy($healthAggregationPolicy) + { + $this->healthAggregationPolicy = $healthAggregationPolicy; + } + /** + * @return string + */ + public function getHealthAggregationPolicy() + { + return $this->healthAggregationPolicy; + } + /** + * Output only. [Output Only] A unique identifier for this resource type. The + * server generates this identifier. + * + * @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. Alwayscompute#healthSource + * for health sources. + * + * @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] URL of the region where the health source + * resides. This field applies only to the regional resource. 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. [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] Server-defined URL with id for the resource. + * + * @param string $selfLinkWithId + */ + public function setSelfLinkWithId($selfLinkWithId) + { + $this->selfLinkWithId = $selfLinkWithId; + } + /** + * @return string + */ + public function getSelfLinkWithId() + { + return $this->selfLinkWithId; + } + /** + * Specifies the type of the HealthSource. The only allowed value is + * BACKEND_SERVICE. Must be specified when theHealthSource is created, and + * cannot be mutated. + * + * Accepted values: BACKEND_SERVICE + * + * @param self::SOURCE_TYPE_* $sourceType + */ + public function setSourceType($sourceType) + { + $this->sourceType = $sourceType; + } + /** + * @return self::SOURCE_TYPE_* + */ + public function getSourceType() + { + return $this->sourceType; + } + /** + * URLs to the source resources. Must be size 1. Must be aBackendService if + * the sourceType is BACKEND_SERVICE. TheBackendService must have load + * balancing schemeINTERNAL or INTERNAL_MANAGED and must be regional and in + * the same region as the HealthSource (cross-region deployment for + * INTERNAL_MANAGED is not supported). TheBackendService may use only IGs, + * MIGs, or NEGs of typeGCE_VM_IP or GCE_VM_IP_PORT. TheBackendService may not + * use haPolicy. Can be mutated. + * + * @param string[] $sources + */ + public function setSources($sources) + { + $this->sources = $sources; + } + /** + * @return string[] + */ + public function getSources() + { + return $this->sources; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HealthSource::class, 'Google_Service_Compute_HealthSource'); diff --git a/src/Compute/HealthSourceAggregatedList.php b/src/Compute/HealthSourceAggregatedList.php new file mode 100644 index 00000000000..22060e061ac --- /dev/null +++ b/src/Compute/HealthSourceAggregatedList.php @@ -0,0 +1,181 @@ +id = $id; + } + /** + * @return string + */ + public function getId() + { + return $this->id; + } + /** + * A list of HealthSourcesScopedList resources. + * + * @param HealthSourcesScopedList[] $items + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return HealthSourcesScopedList[] + */ + 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 HealthSourceAggregatedListWarning $warning + */ + public function setWarning(HealthSourceAggregatedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return HealthSourceAggregatedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HealthSourceAggregatedList::class, 'Google_Service_Compute_HealthSourceAggregatedList'); diff --git a/src/Compute/HealthSourceAggregatedListWarning.php b/src/Compute/HealthSourceAggregatedListWarning.php new file mode 100644 index 00000000000..4f0977b7f1f --- /dev/null +++ b/src/Compute/HealthSourceAggregatedListWarning.php @@ -0,0 +1,239 @@ +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 HealthSourceAggregatedListWarningData[] $data + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return HealthSourceAggregatedListWarningData[] + */ + 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(HealthSourceAggregatedListWarning::class, 'Google_Service_Compute_HealthSourceAggregatedListWarning'); diff --git a/src/Compute/HealthSourceAggregatedListWarningData.php b/src/Compute/HealthSourceAggregatedListWarningData.php new file mode 100644 index 00000000000..af595e64391 --- /dev/null +++ b/src/Compute/HealthSourceAggregatedListWarningData.php @@ -0,0 +1,82 @@ +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(HealthSourceAggregatedListWarningData::class, 'Google_Service_Compute_HealthSourceAggregatedListWarningData'); diff --git a/src/Compute/HealthSourceList.php b/src/Compute/HealthSourceList.php new file mode 100644 index 00000000000..d3335c1dd80 --- /dev/null +++ b/src/Compute/HealthSourceList.php @@ -0,0 +1,161 @@ +id = $id; + } + /** + * @return string + */ + public function getId() + { + return $this->id; + } + /** + * A list of HealthSource resources. + * + * @param HealthSource[] $items + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return HealthSource[] + */ + public function getItems() + { + return $this->items; + } + /** + * Output only. [Output Only] Type of the resource. Alwayscompute#healthSource + * for health sources. + * + * @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] 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 HealthSourceListWarning $warning + */ + public function setWarning(HealthSourceListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return HealthSourceListWarning + */ + public function getWarning() + { + return $this->warning; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HealthSourceList::class, 'Google_Service_Compute_HealthSourceList'); diff --git a/src/Compute/HealthSourceListWarning.php b/src/Compute/HealthSourceListWarning.php new file mode 100644 index 00000000000..36de3c9e6bf --- /dev/null +++ b/src/Compute/HealthSourceListWarning.php @@ -0,0 +1,239 @@ +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 HealthSourceListWarningData[] $data + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return HealthSourceListWarningData[] + */ + 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(HealthSourceListWarning::class, 'Google_Service_Compute_HealthSourceListWarning'); diff --git a/src/Compute/HealthSourceListWarningData.php b/src/Compute/HealthSourceListWarningData.php new file mode 100644 index 00000000000..6322ba127d3 --- /dev/null +++ b/src/Compute/HealthSourceListWarningData.php @@ -0,0 +1,82 @@ +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(HealthSourceListWarningData::class, 'Google_Service_Compute_HealthSourceListWarningData'); diff --git a/src/Compute/HealthSourcesScopedList.php b/src/Compute/HealthSourcesScopedList.php new file mode 100644 index 00000000000..a8ad611fdaa --- /dev/null +++ b/src/Compute/HealthSourcesScopedList.php @@ -0,0 +1,64 @@ +healthSources = $healthSources; + } + /** + * @return HealthSource[] + */ + public function getHealthSources() + { + return $this->healthSources; + } + /** + * Informational warning which replaces the list of health sources when the + * list is empty. + * + * @param HealthSourcesScopedListWarning $warning + */ + public function setWarning(HealthSourcesScopedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return HealthSourcesScopedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HealthSourcesScopedList::class, 'Google_Service_Compute_HealthSourcesScopedList'); diff --git a/src/Compute/HealthSourcesScopedListWarning.php b/src/Compute/HealthSourcesScopedListWarning.php new file mode 100644 index 00000000000..bec543af43a --- /dev/null +++ b/src/Compute/HealthSourcesScopedListWarning.php @@ -0,0 +1,239 @@ +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 HealthSourcesScopedListWarningData[] $data + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return HealthSourcesScopedListWarningData[] + */ + 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(HealthSourcesScopedListWarning::class, 'Google_Service_Compute_HealthSourcesScopedListWarning'); diff --git a/src/Compute/HealthSourcesScopedListWarningData.php b/src/Compute/HealthSourcesScopedListWarningData.php new file mode 100644 index 00000000000..7ee70eaca66 --- /dev/null +++ b/src/Compute/HealthSourcesScopedListWarningData.php @@ -0,0 +1,82 @@ +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(HealthSourcesScopedListWarningData::class, 'Google_Service_Compute_HealthSourcesScopedListWarningData'); diff --git a/src/Compute/InstanceGroupManager.php b/src/Compute/InstanceGroupManager.php index b8680aa7a34..cf95b778881 100644 --- a/src/Compute/InstanceGroupManager.php +++ b/src/Compute/InstanceGroupManager.php @@ -181,6 +181,8 @@ class InstanceGroupManager extends \Google\Collection * @var int */ public $targetSize; + protected $targetSizePolicyType = InstanceGroupManagerTargetSizePolicy::class; + protected $targetSizePolicyDataType = ''; /** * The target number of stopped instances for this managed instance group. * This number changes when you: - Stop instance using the @@ -687,6 +689,23 @@ public function getTargetSize() { return $this->targetSize; } + /** + * The policy that specifies how the MIG creates its VMs to achieve the target + * size. + * + * @param InstanceGroupManagerTargetSizePolicy $targetSizePolicy + */ + public function setTargetSizePolicy(InstanceGroupManagerTargetSizePolicy $targetSizePolicy) + { + $this->targetSizePolicy = $targetSizePolicy; + } + /** + * @return InstanceGroupManagerTargetSizePolicy + */ + public function getTargetSizePolicy() + { + return $this->targetSizePolicy; + } /** * The target number of stopped instances for this managed instance group. * This number changes when you: - Stop instance using the diff --git a/src/Compute/InstanceGroupManagerStatus.php b/src/Compute/InstanceGroupManagerStatus.php index 192280175c4..7d033c1ebac 100644 --- a/src/Compute/InstanceGroupManagerStatus.php +++ b/src/Compute/InstanceGroupManagerStatus.php @@ -17,10 +17,13 @@ namespace Google\Service\Compute; -class InstanceGroupManagerStatus extends \Google\Model +class InstanceGroupManagerStatus extends \Google\Collection { + protected $collection_key = 'appliedAcceleratorTopologies'; protected $allInstancesConfigType = InstanceGroupManagerStatusAllInstancesConfig::class; protected $allInstancesConfigDataType = ''; + protected $appliedAcceleratorTopologiesType = InstanceGroupManagerStatusAcceleratorTopology::class; + protected $appliedAcceleratorTopologiesDataType = 'array'; /** * Output only. [Output Only] The URL of theAutoscaler that targets this * instance group manager. @@ -28,6 +31,8 @@ class InstanceGroupManagerStatus extends \Google\Model * @var string */ public $autoscaler; + protected $bulkInstanceOperationType = InstanceGroupManagerStatusBulkInstanceOperation::class; + protected $bulkInstanceOperationDataType = ''; /** * Output only. [Output Only] A bit indicating whether the managed instance * group is in a stable state. A stable state means that: none of the @@ -61,6 +66,23 @@ public function getAllInstancesConfig() { return $this->allInstancesConfig; } + /** + * Output only. [Output Only] The accelerator topology applied to this MIG. + * Currently only one accelerator topology is supported. + * + * @param InstanceGroupManagerStatusAcceleratorTopology[] $appliedAcceleratorTopologies + */ + public function setAppliedAcceleratorTopologies($appliedAcceleratorTopologies) + { + $this->appliedAcceleratorTopologies = $appliedAcceleratorTopologies; + } + /** + * @return InstanceGroupManagerStatusAcceleratorTopology[] + */ + public function getAppliedAcceleratorTopologies() + { + return $this->appliedAcceleratorTopologies; + } /** * Output only. [Output Only] The URL of theAutoscaler that targets this * instance group manager. @@ -78,6 +100,22 @@ public function getAutoscaler() { return $this->autoscaler; } + /** + * Output only. [Output Only] The status of bulk instance operation. + * + * @param InstanceGroupManagerStatusBulkInstanceOperation $bulkInstanceOperation + */ + public function setBulkInstanceOperation(InstanceGroupManagerStatusBulkInstanceOperation $bulkInstanceOperation) + { + $this->bulkInstanceOperation = $bulkInstanceOperation; + } + /** + * @return InstanceGroupManagerStatusBulkInstanceOperation + */ + public function getBulkInstanceOperation() + { + return $this->bulkInstanceOperation; + } /** * Output only. [Output Only] A bit indicating whether the managed instance * group is in a stable state. A stable state means that: none of the diff --git a/src/Compute/InstanceGroupManagerStatusAcceleratorTopology.php b/src/Compute/InstanceGroupManagerStatusAcceleratorTopology.php new file mode 100644 index 00000000000..becb6f72ab3 --- /dev/null +++ b/src/Compute/InstanceGroupManagerStatusAcceleratorTopology.php @@ -0,0 +1,119 @@ +acceleratorTopology = $acceleratorTopology; + } + /** + * @return string + */ + public function getAcceleratorTopology() + { + return $this->acceleratorTopology; + } + /** + * Output only. [Output Only] The state of the accelerator topology. + * + * Accepted values: ACTIVATING, ACTIVE, DEACTIVATING, FAILED, INCOMPLETE, + * REACTIVATING + * + * @param self::STATE_* $state + */ + public function setState($state) + { + $this->state = $state; + } + /** + * @return self::STATE_* + */ + public function getState() + { + return $this->state; + } + /** + * Output only. [Output Only] The result of the latest accelerator topology + * state check. + * + * @param InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails $stateDetails + */ + public function setStateDetails(InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails $stateDetails) + { + $this->stateDetails = $stateDetails; + } + /** + * @return InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails + */ + public function getStateDetails() + { + return $this->stateDetails; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstanceGroupManagerStatusAcceleratorTopology::class, 'Google_Service_Compute_InstanceGroupManagerStatusAcceleratorTopology'); diff --git a/src/Compute/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.php b/src/Compute/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.php new file mode 100644 index 00000000000..ac6fe6e610c --- /dev/null +++ b/src/Compute/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails.php @@ -0,0 +1,68 @@ +error = $error; + } + /** + * @return InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsError + */ + public function getError() + { + return $this->error; + } + /** + * Output only. [Output Only] Timestamp is shown only if there is an error. + * The field has // RFC3339 // text format. + * + * @param string $timestamp + */ + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + /** + * @return string + */ + public function getTimestamp() + { + return $this->timestamp; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails::class, 'Google_Service_Compute_InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetails'); diff --git a/src/Compute/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsError.php b/src/Compute/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsError.php new file mode 100644 index 00000000000..c6afaee872a --- /dev/null +++ b/src/Compute/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsError.php @@ -0,0 +1,46 @@ +errors = $errors; + } + /** + * @return InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrors[] + */ + public function getErrors() + { + return $this->errors; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsError::class, 'Google_Service_Compute_InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsError'); diff --git a/src/Compute/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrors.php b/src/Compute/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrors.php new file mode 100644 index 00000000000..8255b6b9844 --- /dev/null +++ b/src/Compute/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrors.php @@ -0,0 +1,116 @@ +code = $code; + } + /** + * @return string + */ + public function getCode() + { + return $this->code; + } + /** + * [Output Only] An optional list of messages that contain the error details. + * There is a set of defined message types to use for providing details.The + * syntax depends on the error code. For example, QuotaExceededInfo will have + * details when the error code is QUOTA_EXCEEDED. + * + * @param InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrorsErrorDetails[] $errorDetails + */ + public function setErrorDetails($errorDetails) + { + $this->errorDetails = $errorDetails; + } + /** + * @return InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrorsErrorDetails[] + */ + public function getErrorDetails() + { + return $this->errorDetails; + } + /** + * [Output Only] Indicates the field in the request that caused the error. + * This property is optional. + * + * @param string $location + */ + public function setLocation($location) + { + $this->location = $location; + } + /** + * @return string + */ + public function getLocation() + { + return $this->location; + } + /** + * [Output Only] An optional, human-readable error message. + * + * @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(InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrors::class, 'Google_Service_Compute_InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrors'); diff --git a/src/Compute/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrorsErrorDetails.php b/src/Compute/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrorsErrorDetails.php new file mode 100644 index 00000000000..453a11f711f --- /dev/null +++ b/src/Compute/InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrorsErrorDetails.php @@ -0,0 +1,90 @@ +errorInfo = $errorInfo; + } + /** + * @return ErrorInfo + */ + public function getErrorInfo() + { + return $this->errorInfo; + } + /** + * @param Help $help + */ + public function setHelp(Help $help) + { + $this->help = $help; + } + /** + * @return Help + */ + public function getHelp() + { + return $this->help; + } + /** + * @param LocalizedMessage $localizedMessage + */ + public function setLocalizedMessage(LocalizedMessage $localizedMessage) + { + $this->localizedMessage = $localizedMessage; + } + /** + * @return LocalizedMessage + */ + public function getLocalizedMessage() + { + return $this->localizedMessage; + } + /** + * @param QuotaExceededInfo $quotaInfo + */ + public function setQuotaInfo(QuotaExceededInfo $quotaInfo) + { + $this->quotaInfo = $quotaInfo; + } + /** + * @return QuotaExceededInfo + */ + public function getQuotaInfo() + { + return $this->quotaInfo; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrorsErrorDetails::class, 'Google_Service_Compute_InstanceGroupManagerStatusAcceleratorTopologyAcceleratorTopologyStateDetailsErrorErrorsErrorDetails'); diff --git a/src/Compute/InstanceGroupManagerStatusBulkInstanceOperation.php b/src/Compute/InstanceGroupManagerStatusBulkInstanceOperation.php new file mode 100644 index 00000000000..d18654d6fb0 --- /dev/null +++ b/src/Compute/InstanceGroupManagerStatusBulkInstanceOperation.php @@ -0,0 +1,69 @@ +inProgress = $inProgress; + } + /** + * @return bool + */ + public function getInProgress() + { + return $this->inProgress; + } + /** + * Output only. [Output Only] Information from the last progress check of bulk + * instance operation. + * + * @param InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck $lastProgressCheck + */ + public function setLastProgressCheck(InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck $lastProgressCheck) + { + $this->lastProgressCheck = $lastProgressCheck; + } + /** + * @return InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + */ + public function getLastProgressCheck() + { + return $this->lastProgressCheck; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstanceGroupManagerStatusBulkInstanceOperation::class, 'Google_Service_Compute_InstanceGroupManagerStatusBulkInstanceOperation'); diff --git a/src/Compute/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.php b/src/Compute/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.php new file mode 100644 index 00000000000..39110a393fb --- /dev/null +++ b/src/Compute/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck.php @@ -0,0 +1,69 @@ +error = $error; + } + /** + * @return InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckError + */ + public function getError() + { + return $this->error; + } + /** + * Output only. [Output Only] Timestamp of the last progress check of bulk + * instance operation. Timestamp is in RFC3339 text format. + * + * @param string $timestamp + */ + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + /** + * @return string + */ + public function getTimestamp() + { + return $this->timestamp; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck::class, 'Google_Service_Compute_InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck'); diff --git a/src/Compute/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckError.php b/src/Compute/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckError.php new file mode 100644 index 00000000000..241f61ff4b1 --- /dev/null +++ b/src/Compute/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckError.php @@ -0,0 +1,46 @@ +errors = $errors; + } + /** + * @return InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrors[] + */ + public function getErrors() + { + return $this->errors; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckError::class, 'Google_Service_Compute_InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckError'); diff --git a/src/Compute/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrors.php b/src/Compute/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrors.php new file mode 100644 index 00000000000..c04108c0cab --- /dev/null +++ b/src/Compute/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrors.php @@ -0,0 +1,116 @@ +code = $code; + } + /** + * @return string + */ + public function getCode() + { + return $this->code; + } + /** + * [Output Only] An optional list of messages that contain the error details. + * There is a set of defined message types to use for providing details.The + * syntax depends on the error code. For example, QuotaExceededInfo will have + * details when the error code is QUOTA_EXCEEDED. + * + * @param InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrorsErrorDetails[] $errorDetails + */ + public function setErrorDetails($errorDetails) + { + $this->errorDetails = $errorDetails; + } + /** + * @return InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrorsErrorDetails[] + */ + public function getErrorDetails() + { + return $this->errorDetails; + } + /** + * [Output Only] Indicates the field in the request that caused the error. + * This property is optional. + * + * @param string $location + */ + public function setLocation($location) + { + $this->location = $location; + } + /** + * @return string + */ + public function getLocation() + { + return $this->location; + } + /** + * [Output Only] An optional, human-readable error message. + * + * @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(InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrors::class, 'Google_Service_Compute_InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrors'); diff --git a/src/Compute/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrorsErrorDetails.php b/src/Compute/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrorsErrorDetails.php new file mode 100644 index 00000000000..016385e41e3 --- /dev/null +++ b/src/Compute/InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrorsErrorDetails.php @@ -0,0 +1,90 @@ +errorInfo = $errorInfo; + } + /** + * @return ErrorInfo + */ + public function getErrorInfo() + { + return $this->errorInfo; + } + /** + * @param Help $help + */ + public function setHelp(Help $help) + { + $this->help = $help; + } + /** + * @return Help + */ + public function getHelp() + { + return $this->help; + } + /** + * @param LocalizedMessage $localizedMessage + */ + public function setLocalizedMessage(LocalizedMessage $localizedMessage) + { + $this->localizedMessage = $localizedMessage; + } + /** + * @return LocalizedMessage + */ + public function getLocalizedMessage() + { + return $this->localizedMessage; + } + /** + * @param QuotaExceededInfo $quotaInfo + */ + public function setQuotaInfo(QuotaExceededInfo $quotaInfo) + { + $this->quotaInfo = $quotaInfo; + } + /** + * @return QuotaExceededInfo + */ + public function getQuotaInfo() + { + return $this->quotaInfo; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrorsErrorDetails::class, 'Google_Service_Compute_InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheckErrorErrorsErrorDetails'); diff --git a/src/Compute/InstanceGroupManagerTargetSizePolicy.php b/src/Compute/InstanceGroupManagerTargetSizePolicy.php new file mode 100644 index 00000000000..a81b5f2437f --- /dev/null +++ b/src/Compute/InstanceGroupManagerTargetSizePolicy.php @@ -0,0 +1,69 @@ +mode = $mode; + } + /** + * @return self::MODE_* + */ + public function getMode() + { + return $this->mode; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InstanceGroupManagerTargetSizePolicy::class, 'Google_Service_Compute_InstanceGroupManagerTargetSizePolicy'); diff --git a/src/Compute/NotificationEndpointAggregatedList.php b/src/Compute/NotificationEndpointAggregatedList.php new file mode 100644 index 00000000000..c26a4bd59a5 --- /dev/null +++ b/src/Compute/NotificationEndpointAggregatedList.php @@ -0,0 +1,181 @@ +id = $id; + } + /** + * @return string + */ + public function getId() + { + return $this->id; + } + /** + * A list of NotificationEndpointsScopedList resources. + * + * @param NotificationEndpointsScopedList[] $items + */ + public function setItems($items) + { + $this->items = $items; + } + /** + * @return NotificationEndpointsScopedList[] + */ + 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 NotificationEndpointAggregatedListWarning $warning + */ + public function setWarning(NotificationEndpointAggregatedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return NotificationEndpointAggregatedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NotificationEndpointAggregatedList::class, 'Google_Service_Compute_NotificationEndpointAggregatedList'); diff --git a/src/Compute/NotificationEndpointAggregatedListWarning.php b/src/Compute/NotificationEndpointAggregatedListWarning.php new file mode 100644 index 00000000000..a935ab40354 --- /dev/null +++ b/src/Compute/NotificationEndpointAggregatedListWarning.php @@ -0,0 +1,239 @@ +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 NotificationEndpointAggregatedListWarningData[] $data + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return NotificationEndpointAggregatedListWarningData[] + */ + 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(NotificationEndpointAggregatedListWarning::class, 'Google_Service_Compute_NotificationEndpointAggregatedListWarning'); diff --git a/src/Compute/NotificationEndpointAggregatedListWarningData.php b/src/Compute/NotificationEndpointAggregatedListWarningData.php new file mode 100644 index 00000000000..71db784b51c --- /dev/null +++ b/src/Compute/NotificationEndpointAggregatedListWarningData.php @@ -0,0 +1,82 @@ +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(NotificationEndpointAggregatedListWarningData::class, 'Google_Service_Compute_NotificationEndpointAggregatedListWarningData'); diff --git a/src/Compute/NotificationEndpointsScopedList.php b/src/Compute/NotificationEndpointsScopedList.php new file mode 100644 index 00000000000..2f614b24ce5 --- /dev/null +++ b/src/Compute/NotificationEndpointsScopedList.php @@ -0,0 +1,64 @@ +resources = $resources; + } + /** + * @return NotificationEndpoint[] + */ + public function getResources() + { + return $this->resources; + } + /** + * Informational warning which replaces the list of notification endpoints + * when the list is empty. + * + * @param NotificationEndpointsScopedListWarning $warning + */ + public function setWarning(NotificationEndpointsScopedListWarning $warning) + { + $this->warning = $warning; + } + /** + * @return NotificationEndpointsScopedListWarning + */ + public function getWarning() + { + return $this->warning; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NotificationEndpointsScopedList::class, 'Google_Service_Compute_NotificationEndpointsScopedList'); diff --git a/src/Compute/NotificationEndpointsScopedListWarning.php b/src/Compute/NotificationEndpointsScopedListWarning.php new file mode 100644 index 00000000000..57e299d15b7 --- /dev/null +++ b/src/Compute/NotificationEndpointsScopedListWarning.php @@ -0,0 +1,239 @@ +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 NotificationEndpointsScopedListWarningData[] $data + */ + public function setData($data) + { + $this->data = $data; + } + /** + * @return NotificationEndpointsScopedListWarningData[] + */ + 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(NotificationEndpointsScopedListWarning::class, 'Google_Service_Compute_NotificationEndpointsScopedListWarning'); diff --git a/src/Compute/NotificationEndpointsScopedListWarningData.php b/src/Compute/NotificationEndpointsScopedListWarningData.php new file mode 100644 index 00000000000..66903fb8b07 --- /dev/null +++ b/src/Compute/NotificationEndpointsScopedListWarningData.php @@ -0,0 +1,82 @@ +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(NotificationEndpointsScopedListWarningData::class, 'Google_Service_Compute_NotificationEndpointsScopedListWarningData'); diff --git a/src/Compute/Operation.php b/src/Compute/Operation.php index d0af2bcc33d..543d37f01d4 100644 --- a/src/Compute/Operation.php +++ b/src/Compute/Operation.php @@ -52,6 +52,8 @@ class Operation extends \Google\Collection public $endTime; protected $errorType = OperationError::class; protected $errorDataType = ''; + protected $getVersionOperationMetadataType = GetVersionOperationMetadata::class; + protected $getVersionOperationMetadataDataType = ''; /** * [Output Only] If the operation fails, this field contains the HTTP error * message that was returned, such as `NOT FOUND`. @@ -273,6 +275,20 @@ public function getError() { return $this->error; } + /** + * @param GetVersionOperationMetadata $getVersionOperationMetadata + */ + public function setGetVersionOperationMetadata(GetVersionOperationMetadata $getVersionOperationMetadata) + { + $this->getVersionOperationMetadata = $getVersionOperationMetadata; + } + /** + * @return GetVersionOperationMetadata + */ + public function getGetVersionOperationMetadata() + { + return $this->getVersionOperationMetadata; + } /** * [Output Only] If the operation fails, this field contains the HTTP error * message that was returned, such as `NOT FOUND`. diff --git a/src/Compute/ReservationSlotsGetVersionRequest.php b/src/Compute/ReservationSlotsGetVersionRequest.php new file mode 100644 index 00000000000..c443d2b8064 --- /dev/null +++ b/src/Compute/ReservationSlotsGetVersionRequest.php @@ -0,0 +1,49 @@ +sbomSelections = $sbomSelections; + } + /** + * @return string[] + */ + public function getSbomSelections() + { + return $this->sbomSelections; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ReservationSlotsGetVersionRequest::class, 'Google_Service_Compute_ReservationSlotsGetVersionRequest'); diff --git a/src/Compute/ReservationSubBlocksGetVersionRequest.php b/src/Compute/ReservationSubBlocksGetVersionRequest.php new file mode 100644 index 00000000000..35e27c1d927 --- /dev/null +++ b/src/Compute/ReservationSubBlocksGetVersionRequest.php @@ -0,0 +1,49 @@ +sbomSelections = $sbomSelections; + } + /** + * @return string[] + */ + public function getSbomSelections() + { + return $this->sbomSelections; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ReservationSubBlocksGetVersionRequest::class, 'Google_Service_Compute_ReservationSubBlocksGetVersionRequest'); diff --git a/src/Compute/Resource/Instances.php b/src/Compute/Resource/Instances.php index c1572ec9469..45845c7e565 100644 --- a/src/Compute/Resource/Instances.php +++ b/src/Compute/Resource/Instances.php @@ -1624,6 +1624,8 @@ public function testIamPermissions($project, $zone, $resource, TestPermissionsRe * @param Instance $postBody * @param array $optParams Optional parameters. * + * @opt_param bool discardLocalSsd Whether to discard local SSDs from the + * instance during restart default value is false. * @opt_param string minimalAction Specifies the action to take when updating an * instance even if the updated properties do not require it. If not specified, * then Compute Engine acts based on the minimum action that the updated diff --git a/src/Compute/Resource/RegionCompositeHealthChecks.php b/src/Compute/Resource/RegionCompositeHealthChecks.php new file mode 100644 index 00000000000..bd95bd3dc64 --- /dev/null +++ b/src/Compute/Resource/RegionCompositeHealthChecks.php @@ -0,0 +1,356 @@ + + * $computeService = new Google\Service\Compute(...); + * $regionCompositeHealthChecks = $computeService->regionCompositeHealthChecks; + * + */ +class RegionCompositeHealthChecks extends \Google\Service\Resource +{ + /** + * Retrieves the list of all CompositeHealthCheck resources (all regional) + * available to the specified project. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` + * parameter to `true`. (regionCompositeHealthChecks.aggregatedList) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. Most Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow API + * improvement proposal AIP-160. These two types of filter expressions cannot be + * mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, + * `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are + * not scheduled for automatic restarts. You can use filtering on nested fields + * to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: ``` (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + * expression. However, you can include `AND` and `OR` expressions explicitly. + * For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not + * equal) operator against a single un-parenthesized expression with or without + * quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 + * ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 + * library syntax. The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + * @opt_param bool includeAllScopes Indicates whether every visible scope for + * each scope type (zone, region, global) should be included in the response. + * For new resource types added after this field, the flag has no effect as new + * resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is + * omitted or false, only scopes of the scope types where the resource type is + * expected to be found will be included. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to + * get the next page of results in subsequent list requests. Acceptable values + * are `0` to `500`, inclusive. (Default: `500`) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using `orderBy="creationTimestamp desc"`. This sorts results based on the + * `creationTimestamp` field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to + * the `nextPageToken` returned by a previous list request to get the next page + * of results. + * @opt_param bool returnPartialSuccess Opt-in for partial success behavior + * which provides partial results in case of failure. The default value is + * false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @opt_param string serviceProjectNumber The Shared VPC service project id or + * service project number for which aggregated list request is invoked for + * subnetworks list-usable api. + * @return CompositeHealthCheckAggregatedList + * @throws \Google\Service\Exception + */ + public function aggregatedList($project, $optParams = []) + { + $params = ['project' => $project]; + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', [$params], CompositeHealthCheckAggregatedList::class); + } + /** + * Deletes the specified CompositeHealthCheck in the given region + * (regionCompositeHealthChecks.delete) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param string $compositeHealthCheck Name of the CompositeHealthCheck resource + * to delete. + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Operation + * @throws \Google\Service\Exception + */ + public function delete($project, $region, $compositeHealthCheck, $optParams = []) + { + $params = ['project' => $project, 'region' => $region, 'compositeHealthCheck' => $compositeHealthCheck]; + $params = array_merge($params, $optParams); + return $this->call('delete', [$params], Operation::class); + } + /** + * Returns the specified CompositeHealthCheck resource in the given region. + * (regionCompositeHealthChecks.get) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param string $compositeHealthCheck Name of the CompositeHealthCheck resource + * to return. + * @param array $optParams Optional parameters. + * @return CompositeHealthCheck + * @throws \Google\Service\Exception + */ + public function get($project, $region, $compositeHealthCheck, $optParams = []) + { + $params = ['project' => $project, 'region' => $region, 'compositeHealthCheck' => $compositeHealthCheck]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], CompositeHealthCheck::class); + } + /** + * Create a CompositeHealthCheck in the specified project in the given region + * using the parameters that are included in the request. + * (regionCompositeHealthChecks.insert) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param CompositeHealthCheck $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Operation + * @throws \Google\Service\Exception + */ + public function insert($project, $region, CompositeHealthCheck $postBody, $optParams = []) + { + $params = ['project' => $project, 'region' => $region, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('insert', [$params], Operation::class); + } + /** + * Lists the CompositeHealthChecks for a project in the given region. + * (regionCompositeHealthChecks.listRegionCompositeHealthChecks) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. Most Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow API + * improvement proposal AIP-160. These two types of filter expressions cannot be + * mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, + * `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are + * not scheduled for automatic restarts. You can use filtering on nested fields + * to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: ``` (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + * expression. However, you can include `AND` and `OR` expressions explicitly. + * For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not + * equal) operator against a single un-parenthesized expression with or without + * quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 + * ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 + * library syntax. The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to + * get the next page of results in subsequent list requests. Acceptable values + * are `0` to `500`, inclusive. (Default: `500`) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using `orderBy="creationTimestamp desc"`. This sorts results based on the + * `creationTimestamp` field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to + * the `nextPageToken` returned by a previous list request to get the next page + * of results. + * @opt_param bool returnPartialSuccess Opt-in for partial success behavior + * which provides partial results in case of failure. The default value is + * false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @return CompositeHealthCheckList + * @throws \Google\Service\Exception + */ + public function listRegionCompositeHealthChecks($project, $region, $optParams = []) + { + $params = ['project' => $project, 'region' => $region]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], CompositeHealthCheckList::class); + } + /** + * Updates the specified regional CompositeHealthCheck resource with the data + * included in the request. This method supportsPATCH semantics and uses + * theJSON merge patch format and processing rules. + * (regionCompositeHealthChecks.patch) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param string $compositeHealthCheck Name of the CompositeHealthCheck to + * update. The name must be 1-63 characters long, and comply with RFC1035. + * @param CompositeHealthCheck $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Operation + * @throws \Google\Service\Exception + */ + public function patch($project, $region, $compositeHealthCheck, CompositeHealthCheck $postBody, $optParams = []) + { + $params = ['project' => $project, 'region' => $region, 'compositeHealthCheck' => $compositeHealthCheck, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('patch', [$params], Operation::class); + } + /** + * Returns permissions that a caller has on the specified resource. + * (regionCompositeHealthChecks.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $resource Name or id of the resource for this request. + * @param TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return TestPermissionsResponse + * @throws \Google\Service\Exception + */ + public function testIamPermissions($project, $region, $resource, TestPermissionsRequest $postBody, $optParams = []) + { + $params = ['project' => $project, 'region' => $region, 'resource' => $resource, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', [$params], TestPermissionsResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RegionCompositeHealthChecks::class, 'Google_Service_Compute_Resource_RegionCompositeHealthChecks'); diff --git a/src/Compute/Resource/RegionHealthCheckServices.php b/src/Compute/Resource/RegionHealthCheckServices.php index a48dd29dd5d..8f245280f35 100644 --- a/src/Compute/Resource/RegionHealthCheckServices.php +++ b/src/Compute/Resource/RegionHealthCheckServices.php @@ -18,6 +18,7 @@ namespace Google\Service\Compute\Resource; use Google\Service\Compute\HealthCheckService; +use Google\Service\Compute\HealthCheckServiceAggregatedList; use Google\Service\Compute\HealthCheckServicesList; use Google\Service\Compute\Operation; use Google\Service\Compute\TestPermissionsRequest; @@ -33,6 +34,104 @@ */ class RegionHealthCheckServices extends \Google\Service\Resource { + /** + * Retrieves the list of all HealthCheckService resources, regional and global, + * available to the specified project. + * + * To prevent failure, it is recommended that you set the `returnPartialSuccess` + * parameter to `true`. (regionHealthCheckServices.aggregatedList) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. Most Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow API + * improvement proposal AIP-160. These two types of filter expressions cannot be + * mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, + * `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are + * not scheduled for automatic restarts. You can use filtering on nested fields + * to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: ``` (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + * expression. However, you can include `AND` and `OR` expressions explicitly. + * For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not + * equal) operator against a single un-parenthesized expression with or without + * quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 + * ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 + * library syntax. The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + * @opt_param bool includeAllScopes Indicates whether every visible scope for + * each scope type (zone, region, global) should be included in the response. + * For new resource types added after this field, the flag has no effect as new + * resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is + * omitted or false, only scopes of the scope types where the resource type is + * expected to be found will be included. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to + * get the next page of results in subsequent list requests. Acceptable values + * are `0` to `500`, inclusive. (Default: `500`) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using `orderBy="creationTimestamp desc"`. This sorts results based on the + * `creationTimestamp` field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to + * the `nextPageToken` returned by a previous list request to get the next page + * of results. + * @opt_param bool returnPartialSuccess Opt-in for partial success behavior + * which provides partial results in case of failure. The default value is + * false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @opt_param string serviceProjectNumber The Shared VPC service project id or + * service project number for which aggregated list request is invoked for + * subnetworks list-usable api. + * @return HealthCheckServiceAggregatedList + * @throws \Google\Service\Exception + */ + public function aggregatedList($project, $optParams = []) + { + $params = ['project' => $project]; + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', [$params], HealthCheckServiceAggregatedList::class); + } /** * Deletes the specified regional HealthCheckService. * (regionHealthCheckServices.delete) diff --git a/src/Compute/Resource/RegionHealthSources.php b/src/Compute/Resource/RegionHealthSources.php new file mode 100644 index 00000000000..0a2b30eda3a --- /dev/null +++ b/src/Compute/Resource/RegionHealthSources.php @@ -0,0 +1,352 @@ + + * $computeService = new Google\Service\Compute(...); + * $regionHealthSources = $computeService->regionHealthSources; + * + */ +class RegionHealthSources extends \Google\Service\Resource +{ + /** + * Retrieves the list of all HealthSource resources (all regional) available to + * the specified project. + * + * To prevent failure, Google recommends that you set the `returnPartialSuccess` + * parameter to `true`. (regionHealthSources.aggregatedList) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. Most Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow API + * improvement proposal AIP-160. These two types of filter expressions cannot be + * mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, + * `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are + * not scheduled for automatic restarts. You can use filtering on nested fields + * to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: ``` (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + * expression. However, you can include `AND` and `OR` expressions explicitly. + * For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not + * equal) operator against a single un-parenthesized expression with or without + * quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 + * ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 + * library syntax. The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + * @opt_param bool includeAllScopes Indicates whether every visible scope for + * each scope type (zone, region, global) should be included in the response. + * For new resource types added after this field, the flag has no effect as new + * resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is + * omitted or false, only scopes of the scope types where the resource type is + * expected to be found will be included. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to + * get the next page of results in subsequent list requests. Acceptable values + * are `0` to `500`, inclusive. (Default: `500`) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using `orderBy="creationTimestamp desc"`. This sorts results based on the + * `creationTimestamp` field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to + * the `nextPageToken` returned by a previous list request to get the next page + * of results. + * @opt_param bool returnPartialSuccess Opt-in for partial success behavior + * which provides partial results in case of failure. The default value is + * false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @opt_param string serviceProjectNumber The Shared VPC service project id or + * service project number for which aggregated list request is invoked for + * subnetworks list-usable api. + * @return HealthSourceAggregatedList + * @throws \Google\Service\Exception + */ + public function aggregatedList($project, $optParams = []) + { + $params = ['project' => $project]; + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', [$params], HealthSourceAggregatedList::class); + } + /** + * Deletes the specified HealthSource in the given region + * (regionHealthSources.delete) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param string $healthSource Name of the HealthSource resource to delete. + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Operation + * @throws \Google\Service\Exception + */ + public function delete($project, $region, $healthSource, $optParams = []) + { + $params = ['project' => $project, 'region' => $region, 'healthSource' => $healthSource]; + $params = array_merge($params, $optParams); + return $this->call('delete', [$params], Operation::class); + } + /** + * Returns the specified HealthSource resource in the given region. + * (regionHealthSources.get) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param string $healthSource Name of the HealthSource resource to return. + * @param array $optParams Optional parameters. + * @return HealthSource + * @throws \Google\Service\Exception + */ + public function get($project, $region, $healthSource, $optParams = []) + { + $params = ['project' => $project, 'region' => $region, 'healthSource' => $healthSource]; + $params = array_merge($params, $optParams); + return $this->call('get', [$params], HealthSource::class); + } + /** + * Create a HealthSource in the specified project in the given region using the + * parameters that are included in the request. (regionHealthSources.insert) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param HealthSource $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Operation + * @throws \Google\Service\Exception + */ + public function insert($project, $region, HealthSource $postBody, $optParams = []) + { + $params = ['project' => $project, 'region' => $region, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('insert', [$params], Operation::class); + } + /** + * Lists the HealthSources for a project in the given region. + * (regionHealthSources.listRegionHealthSources) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. Most Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow API + * improvement proposal AIP-160. These two types of filter expressions cannot be + * mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, + * `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are + * not scheduled for automatic restarts. You can use filtering on nested fields + * to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: ``` (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + * expression. However, you can include `AND` and `OR` expressions explicitly. + * For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not + * equal) operator against a single un-parenthesized expression with or without + * quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 + * ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 + * library syntax. The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to + * get the next page of results in subsequent list requests. Acceptable values + * are `0` to `500`, inclusive. (Default: `500`) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using `orderBy="creationTimestamp desc"`. This sorts results based on the + * `creationTimestamp` field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to + * the `nextPageToken` returned by a previous list request to get the next page + * of results. + * @opt_param bool returnPartialSuccess Opt-in for partial success behavior + * which provides partial results in case of failure. The default value is + * false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @return HealthSourceList + * @throws \Google\Service\Exception + */ + public function listRegionHealthSources($project, $region, $optParams = []) + { + $params = ['project' => $project, 'region' => $region]; + $params = array_merge($params, $optParams); + return $this->call('list', [$params], HealthSourceList::class); + } + /** + * Updates the specified regional HealthSource resource with the data included + * in the request. This method supportsPATCH semantics and uses theJSON merge + * patch format and processing rules. (regionHealthSources.patch) + * + * @param string $project Project ID for this request. + * @param string $region Name of the region scoping this request. + * @param string $healthSource Name of the HealthSource to update. The name must + * be 1-63 characters long, and comply with RFC1035. + * @param HealthSource $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Operation + * @throws \Google\Service\Exception + */ + public function patch($project, $region, $healthSource, HealthSource $postBody, $optParams = []) + { + $params = ['project' => $project, 'region' => $region, 'healthSource' => $healthSource, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('patch', [$params], Operation::class); + } + /** + * Returns permissions that a caller has on the specified resource. + * (regionHealthSources.testIamPermissions) + * + * @param string $project Project ID for this request. + * @param string $region The name of the region for this request. + * @param string $resource Name or id of the resource for this request. + * @param TestPermissionsRequest $postBody + * @param array $optParams Optional parameters. + * @return TestPermissionsResponse + * @throws \Google\Service\Exception + */ + public function testIamPermissions($project, $region, $resource, TestPermissionsRequest $postBody, $optParams = []) + { + $params = ['project' => $project, 'region' => $region, 'resource' => $resource, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('testIamPermissions', [$params], TestPermissionsResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RegionHealthSources::class, 'Google_Service_Compute_Resource_RegionHealthSources'); diff --git a/src/Compute/Resource/RegionNotificationEndpoints.php b/src/Compute/Resource/RegionNotificationEndpoints.php index 6ca70a84d57..0250eb68ed3 100644 --- a/src/Compute/Resource/RegionNotificationEndpoints.php +++ b/src/Compute/Resource/RegionNotificationEndpoints.php @@ -18,6 +18,7 @@ namespace Google\Service\Compute\Resource; use Google\Service\Compute\NotificationEndpoint; +use Google\Service\Compute\NotificationEndpointAggregatedList; use Google\Service\Compute\NotificationEndpointList; use Google\Service\Compute\Operation; use Google\Service\Compute\TestPermissionsRequest; @@ -33,6 +34,102 @@ */ class RegionNotificationEndpoints extends \Google\Service\Resource { + /** + * Retrieves the list of all NotificationEndpoint resources, regional and + * global, available to the specified project. + * (regionNotificationEndpoints.aggregatedList) + * + * @param string $project Name of the project scoping this request. + * @param array $optParams Optional parameters. + * + * @opt_param string filter A filter expression that filters resources listed in + * the response. Most Compute resources support two types of filter expressions: + * expressions that support regular expressions and expressions that follow API + * improvement proposal AIP-160. These two types of filter expressions cannot be + * mixed in one request. + * + * If you want to use AIP-160, your expression must specify the field name, an + * operator, and the value that you want to use for filtering. The value must be + * a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, + * `<`, `<=`, `>=` or `:`. + * + * For example, if you are filtering Compute Engine instances, you can exclude + * instances named `example-instance` by specifying `name != example-instance`. + * + * The `:*` comparison can be used to test whether a key has been defined. For + * example, to find all objects with `owner` label use: ``` labels.owner:* ``` + * + * You can also filter nested fields. For example, you could specify + * `scheduling.automaticRestart = false` to include instances only if they are + * not scheduled for automatic restarts. You can use filtering on nested fields + * to filter based onresource labels. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example: ``` (scheduling.automaticRestart = true) + * (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` + * expression. However, you can include `AND` and `OR` expressions explicitly. + * For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel + * Broadwell") AND (scheduling.automaticRestart = true) ``` + * + * If you want to use a regular expression, use the `eq` (equal) or `ne` (not + * equal) operator against a single un-parenthesized expression with or without + * quotes or against multiple parenthesized expressions. Examples: + * + * `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` + * `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 + * ne "literal")` + * + * The literal value is interpreted as a regular expression using GoogleRE2 + * library syntax. The literal value must match the entire field. + * + * For example, to filter for instances that do not end with name "instance", + * you would use `name ne .*instance`. + * + * You cannot combine constraints on multiple fields using regular expressions. + * @opt_param bool includeAllScopes Indicates whether every visible scope for + * each scope type (zone, region, global) should be included in the response. + * For new resource types added after this field, the flag has no effect as new + * resource types will always include every visible scope for each scope type in + * response. For resource types which predate this field, if this flag is + * omitted or false, only scopes of the scope types where the resource type is + * expected to be found will be included. + * @opt_param string maxResults The maximum number of results per page that + * should be returned. If the number of available results is larger than + * `maxResults`, Compute Engine returns a `nextPageToken` that can be used to + * get the next page of results in subsequent list requests. Acceptable values + * are `0` to `500`, inclusive. (Default: `500`) + * @opt_param string orderBy Sorts list results by a certain order. By default, + * results are returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation timestamp + * using `orderBy="creationTimestamp desc"`. This sorts results based on the + * `creationTimestamp` field in reverse chronological order (newest result + * first). Use this to sort resources like operations so that the newest + * operation is returned first. + * + * Currently, only sorting by `name` or `creationTimestamp desc` is supported. + * @opt_param string pageToken Specifies a page token to use. Set `pageToken` to + * the `nextPageToken` returned by a previous list request to get the next page + * of results. + * @opt_param bool returnPartialSuccess Opt-in for partial success behavior + * which provides partial results in case of failure. The default value is + * false. + * + * For example, when partial success behavior is enabled, aggregatedList for a + * single zone scope either returns all resources in the zone or no resources, + * with an error code. + * @opt_param string serviceProjectNumber The Shared VPC service project id or + * service project number for which aggregated list request is invoked for + * subnetworks list-usable api. + * @return NotificationEndpointAggregatedList + * @throws \Google\Service\Exception + */ + public function aggregatedList($project, $optParams = []) + { + $params = ['project' => $project]; + $params = array_merge($params, $optParams); + return $this->call('aggregatedList', [$params], NotificationEndpointAggregatedList::class); + } /** * Deletes the specified NotificationEndpoint in the given region * (regionNotificationEndpoints.delete) diff --git a/src/Compute/Resource/ReservationSlots.php b/src/Compute/Resource/ReservationSlots.php index f644c846bb6..b91a56964d2 100644 --- a/src/Compute/Resource/ReservationSlots.php +++ b/src/Compute/Resource/ReservationSlots.php @@ -20,6 +20,7 @@ use Google\Service\Compute\Operation; use Google\Service\Compute\ReservationSlot; use Google\Service\Compute\ReservationSlotsGetResponse; +use Google\Service\Compute\ReservationSlotsGetVersionRequest; use Google\Service\Compute\ReservationSlotsListResponse; /** @@ -54,6 +55,42 @@ public function get($project, $zone, $parentName, $reservationSlot, $optParams = $params = array_merge($params, $optParams); return $this->call('get', [$params], ReservationSlotsGetResponse::class); } + /** + * Allows customers to get SBOM versions of a reservation slot. + * (reservationSlots.getVersion) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone for this request. Zone name should + * conform to RFC1035. + * @param string $parentName The name of the parent reservation and parent + * block. In the format of reservations/{reservation_name}/reservationBlocks/{re + * servation_block_name}/reservationSubBlocks/{reservation_sub_block_name} + * @param string $reservationSlot The name of the reservation slot. Name should + * conform to RFC1035 or be a resource ID. + * @param ReservationSlotsGetVersionRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Operation + * @throws \Google\Service\Exception + */ + public function getVersion($project, $zone, $parentName, $reservationSlot, ReservationSlotsGetVersionRequest $postBody, $optParams = []) + { + $params = ['project' => $project, 'zone' => $zone, 'parentName' => $parentName, 'reservationSlot' => $reservationSlot, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('getVersion', [$params], Operation::class); + } /** * Retrieves a list of reservation slots under a single reservation. * (reservationSlots.listReservationSlots) diff --git a/src/Compute/Resource/ReservationSubBlocks.php b/src/Compute/Resource/ReservationSubBlocks.php index 51bf4d7c2b5..87a6b54a846 100644 --- a/src/Compute/Resource/ReservationSubBlocks.php +++ b/src/Compute/Resource/ReservationSubBlocks.php @@ -20,6 +20,7 @@ use Google\Service\Compute\Operation; use Google\Service\Compute\Policy; use Google\Service\Compute\ReservationSubBlocksGetResponse; +use Google\Service\Compute\ReservationSubBlocksGetVersionRequest; use Google\Service\Compute\ReservationSubBlocksListResponse; use Google\Service\Compute\ReservationSubBlocksReportFaultyRequest; use Google\Service\Compute\TestPermissionsRequest; @@ -81,6 +82,42 @@ public function getIamPolicy($project, $zone, $parentResource, $resource, $optPa $params = array_merge($params, $optParams); return $this->call('getIamPolicy', [$params], Policy::class); } + /** + * Allows customers to get SBOM versions of a reservation subBlock. + * (reservationSubBlocks.getVersion) + * + * @param string $project Project ID for this request. + * @param string $zone Name of the zone for this request. Zone name should + * conform to RFC1035. + * @param string $parentName The name of the parent reservation and parent + * block. In the format of + * reservations/{reservation_name}/reservationBlocks/{reservation_block_name} + * @param string $reservationSubBlock The name of the reservation subBlock. Name + * should conform to RFC1035 or be a resource ID. + * @param ReservationSubBlocksGetVersionRequest $postBody + * @param array $optParams Optional parameters. + * + * @opt_param string requestId An optional request ID to identify requests. + * Specify a unique request ID so that if you must retry your request, the + * server will know to ignore the request if it has already been completed. + * + * For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, + * the server can check if original operation with the same request ID was + * received, and if so, will ignore the second request. This prevents clients + * from accidentally creating duplicate commitments. + * + * The request ID must be a valid UUID with the exception that zero UUID is not + * supported (00000000-0000-0000-0000-000000000000). + * @return Operation + * @throws \Google\Service\Exception + */ + public function getVersion($project, $zone, $parentName, $reservationSubBlock, ReservationSubBlocksGetVersionRequest $postBody, $optParams = []) + { + $params = ['project' => $project, 'zone' => $zone, 'parentName' => $parentName, 'reservationSubBlock' => $reservationSubBlock, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('getVersion', [$params], Operation::class); + } /** * Retrieves a list of reservation subBlocks under a single reservation. * (reservationSubBlocks.listReservationSubBlocks) diff --git a/src/Compute/ResourcePolicyWorkloadPolicy.php b/src/Compute/ResourcePolicyWorkloadPolicy.php index c7fc46a466c..450f312c232 100644 --- a/src/Compute/ResourcePolicyWorkloadPolicy.php +++ b/src/Compute/ResourcePolicyWorkloadPolicy.php @@ -19,6 +19,15 @@ class ResourcePolicyWorkloadPolicy extends \Google\Model { + /** + * The interconnected chips are pre-configured at the time of VM creation. + */ + public const ACCELERATOR_TOPOLOGY_MODE_AUTO_CONNECT = 'AUTO_CONNECT'; + /** + * The interconnected chips are connected on demand. At the time of VM + * creation, the chips are not connected. + */ + public const ACCELERATOR_TOPOLOGY_MODE_PROVISION_ONLY = 'PROVISION_ONLY'; /** * VMs must be provisioned in the same block. */ @@ -47,6 +56,13 @@ class ResourcePolicyWorkloadPolicy extends \Google\Model * @var string */ public $acceleratorTopology; + /** + * Specifies the connection mode for the accelerator topology. If not + * specified, the default is AUTO_CONNECT. + * + * @var string + */ + public $acceleratorTopologyMode; /** * Specifies the maximum distance between instances. * @@ -77,6 +93,25 @@ public function getAcceleratorTopology() { return $this->acceleratorTopology; } + /** + * Specifies the connection mode for the accelerator topology. If not + * specified, the default is AUTO_CONNECT. + * + * Accepted values: AUTO_CONNECT, PROVISION_ONLY + * + * @param self::ACCELERATOR_TOPOLOGY_MODE_* $acceleratorTopologyMode + */ + public function setAcceleratorTopologyMode($acceleratorTopologyMode) + { + $this->acceleratorTopologyMode = $acceleratorTopologyMode; + } + /** + * @return self::ACCELERATOR_TOPOLOGY_MODE_* + */ + public function getAcceleratorTopologyMode() + { + return $this->acceleratorTopologyMode; + } /** * Specifies the maximum distance between instances. * diff --git a/src/Compute/ServiceAttachmentConnectedEndpoint.php b/src/Compute/ServiceAttachmentConnectedEndpoint.php index 51db70fb418..db86a340910 100644 --- a/src/Compute/ServiceAttachmentConnectedEndpoint.php +++ b/src/Compute/ServiceAttachmentConnectedEndpoint.php @@ -54,6 +54,12 @@ class ServiceAttachmentConnectedEndpoint extends \Google\Collection * @var string */ public $endpoint; + /** + * The url of a connected endpoint with resource id. + * + * @var string + */ + public $endpointWithId; /** * NAT IPs of the connected PSC endpoint and those of other endpoints * propagated from it. @@ -113,6 +119,22 @@ public function getEndpoint() { return $this->endpoint; } + /** + * The url of a connected endpoint with resource id. + * + * @param string $endpointWithId + */ + public function setEndpointWithId($endpointWithId) + { + $this->endpointWithId = $endpointWithId; + } + /** + * @return string + */ + public function getEndpointWithId() + { + return $this->endpointWithId; + } /** * NAT IPs of the connected PSC endpoint and those of other endpoints * propagated from it. diff --git a/src/Compute/ServiceAttachmentConsumerProjectLimit.php b/src/Compute/ServiceAttachmentConsumerProjectLimit.php index 62e6e4e8739..a3092df2fa4 100644 --- a/src/Compute/ServiceAttachmentConsumerProjectLimit.php +++ b/src/Compute/ServiceAttachmentConsumerProjectLimit.php @@ -26,6 +26,12 @@ class ServiceAttachmentConsumerProjectLimit extends \Google\Model * @var string */ public $connectionLimit; + /** + * The URL for the PSC endpoint to accept + * + * @var string + */ + public $endpointUrl; /** * The network URL for the network to set the limit for. * @@ -56,6 +62,22 @@ public function getConnectionLimit() { return $this->connectionLimit; } + /** + * The URL for the PSC endpoint to accept + * + * @param string $endpointUrl + */ + public function setEndpointUrl($endpointUrl) + { + $this->endpointUrl = $endpointUrl; + } + /** + * @return string + */ + public function getEndpointUrl() + { + return $this->endpointUrl; + } /** * The network URL for the network to set the limit for. * diff --git a/src/Compute/SslPolicy.php b/src/Compute/SslPolicy.php index 200e4e71529..1283e4e30c8 100644 --- a/src/Compute/SslPolicy.php +++ b/src/Compute/SslPolicy.php @@ -138,8 +138,9 @@ class SslPolicy extends \Google\Collection /** * Profile specifies the set of SSL features that can be used by the load * balancer when negotiating SSL with clients. This can be one ofCOMPATIBLE, - * MODERN, RESTRICTED, orCUSTOM. If using CUSTOM, the set of SSL features to - * enable must be specified in the customFeatures field. + * MODERN, RESTRICTED,FIPS_202205, or CUSTOM. If usingCUSTOM, the set of SSL + * features to enable must be specified in the customFeatures field. If using + * FIPS_202205, the min_tls_version field must be set to TLS_1_2. * * @var string */ @@ -329,8 +330,9 @@ public function getName() /** * Profile specifies the set of SSL features that can be used by the load * balancer when negotiating SSL with clients. This can be one ofCOMPATIBLE, - * MODERN, RESTRICTED, orCUSTOM. If using CUSTOM, the set of SSL features to - * enable must be specified in the customFeatures field. + * MODERN, RESTRICTED,FIPS_202205, or CUSTOM. If usingCUSTOM, the set of SSL + * features to enable must be specified in the customFeatures field. If using + * FIPS_202205, the min_tls_version field must be set to TLS_1_2. * * Accepted values: COMPATIBLE, CUSTOM, FIPS_202205, MODERN, RESTRICTED *