| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569 |
- <?php
- /*
- * Copyright 2014 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- namespace Google\Service\Compute;
- class InstantSnapshot extends \Google\Model
- {
- /**
- * Default value indicating Architecture is not set.
- */
- public const ARCHITECTURE_ARCHITECTURE_UNSPECIFIED = 'ARCHITECTURE_UNSPECIFIED';
- /**
- * Machines with architecture ARM64
- */
- public const ARCHITECTURE_ARM64 = 'ARM64';
- /**
- * Machines with architecture X86_64
- */
- public const ARCHITECTURE_X86_64 = 'X86_64';
- /**
- * InstantSnapshot creation is in progress.
- */
- public const STATUS_CREATING = 'CREATING';
- /**
- * InstantSnapshot is currently being deleted.
- */
- public const STATUS_DELETING = 'DELETING';
- /**
- * InstantSnapshot creation failed.
- */
- public const STATUS_FAILED = 'FAILED';
- /**
- * InstantSnapshot has been created successfully.
- */
- public const STATUS_READY = 'READY';
- /**
- * InstantSnapshot is currently unavailable and cannot be used for Disk
- * restoration
- */
- public const STATUS_UNAVAILABLE = 'UNAVAILABLE';
- /**
- * Output only. [Output Only] The architecture of the instant snapshot. Valid
- * values are ARM64 or X86_64.
- *
- * @var string
- */
- public $architecture;
- /**
- * Output only. [Output Only] Creation timestamp inRFC3339 text format.
- *
- * @var string
- */
- public $creationTimestamp;
- /**
- * An optional description of this resource. Provide this property when you
- * create the resource.
- *
- * @var string
- */
- public $description;
- /**
- * Output only. [Output Only] Size of the source disk, specified in GB.
- *
- * @var string
- */
- public $diskSizeGb;
- /**
- * Output only. [Output Only] The unique identifier for the resource. This
- * identifier is defined by the server.
- *
- * @var string
- */
- public $id;
- /**
- * Output only. [Output Only] Type of the resource.
- * Alwayscompute#instantSnapshot for InstantSnapshot resources.
- *
- * @var string
- */
- public $kind;
- /**
- * A fingerprint for the labels being applied to this InstantSnapshot, which
- * is essentially a hash of the labels set used for optimistic locking. The
- * fingerprint is initially generated by Compute Engine and changes after
- * every request to modify or update labels. You must always provide an up-to-
- * date fingerprint hash in order to update or change labels, otherwise the
- * request will fail with error412 conditionNotMet.
- *
- * To see the latest fingerprint, make a get() request to retrieve a
- * InstantSnapshot.
- *
- * @var string
- */
- public $labelFingerprint;
- /**
- * Labels to apply to this InstantSnapshot. These can be later modified by the
- * setLabels method. Label values may be empty.
- *
- * @var string[]
- */
- public $labels;
- /**
- * Name of the resource; provided by the client when the resource is created.
- * The name must be 1-63 characters long, and comply withRFC1035.
- * Specifically, the name must be 1-63 characters long and match the regular
- * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
- * must be a lowercase letter, and all following characters must be a dash,
- * lowercase letter, or digit, except the last character, which cannot be a
- * dash.
- *
- * @var string
- */
- public $name;
- protected $paramsType = InstantSnapshotParams::class;
- protected $paramsDataType = '';
- /**
- * Output only. [Output Only] URL of the region where the instant snapshot
- * resides. You must specify this field as part of the HTTP request URL. It is
- * not settable as a field in the request body.
- *
- * @var string
- */
- public $region;
- protected $resourceStatusType = InstantSnapshotResourceStatus::class;
- protected $resourceStatusDataType = '';
- /**
- * Output only. Reserved for future use.
- *
- * @var bool
- */
- public $satisfiesPzi;
- /**
- * Output only. [Output Only] Reserved for future use.
- *
- * @var bool
- */
- public $satisfiesPzs;
- /**
- * Output only. [Output Only] Server-defined URL for the resource.
- *
- * @var string
- */
- public $selfLink;
- /**
- * Output only. [Output Only] Server-defined URL for this resource's resource
- * id.
- *
- * @var string
- */
- public $selfLinkWithId;
- /**
- * URL of the source disk used to create this instant snapshot. Note that the
- * source disk must be in the same zone/region as the instant snapshot to be
- * created. This can be a full or valid partial URL. For example, the
- * following are valid values: - https://www.googleapis.c
- * om/compute/v1/projects/project/zones/zone/disks/disk - h
- * ttps://www.googleapis.com/compute/v1/projects/project/regions/region/disks/
- * disk - projects/project/zones/zone/disks/disk
- * - projects/project/regions/region/disks/disk -
- * zones/zone/disks/disk - regions/region/disks/disk
- *
- * @var string
- */
- public $sourceDisk;
- /**
- * Output only. [Output Only] The ID value of the disk used to create this
- * InstantSnapshot. This value may be used to determine whether the
- * InstantSnapshot was taken from the current or a previous instance of a
- * given disk name.
- *
- * @var string
- */
- public $sourceDiskId;
- /**
- * Output only. [Output Only] The status of the instantSnapshot. This can
- * beCREATING, DELETING, FAILED, orREADY.
- *
- * @var string
- */
- public $status;
- /**
- * Output only. [Output Only] URL of the zone where the instant snapshot
- * resides. You must specify this field as part of the HTTP request URL. It is
- * not settable as a field in the request body.
- *
- * @var string
- */
- public $zone;
- /**
- * Output only. [Output Only] The architecture of the instant snapshot. Valid
- * values are ARM64 or X86_64.
- *
- * Accepted values: ARCHITECTURE_UNSPECIFIED, ARM64, X86_64
- *
- * @param self::ARCHITECTURE_* $architecture
- */
- public function setArchitecture($architecture)
- {
- $this->architecture = $architecture;
- }
- /**
- * @return self::ARCHITECTURE_*
- */
- public function getArchitecture()
- {
- return $this->architecture;
- }
- /**
- * Output only. [Output Only] Creation timestamp inRFC3339 text format.
- *
- * @param string $creationTimestamp
- */
- public function setCreationTimestamp($creationTimestamp)
- {
- $this->creationTimestamp = $creationTimestamp;
- }
- /**
- * @return string
- */
- public function getCreationTimestamp()
- {
- return $this->creationTimestamp;
- }
- /**
- * An optional description of this resource. Provide this property when you
- * create the resource.
- *
- * @param string $description
- */
- public function setDescription($description)
- {
- $this->description = $description;
- }
- /**
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * Output only. [Output Only] Size of the source disk, specified in GB.
- *
- * @param string $diskSizeGb
- */
- public function setDiskSizeGb($diskSizeGb)
- {
- $this->diskSizeGb = $diskSizeGb;
- }
- /**
- * @return string
- */
- public function getDiskSizeGb()
- {
- return $this->diskSizeGb;
- }
- /**
- * Output only. [Output Only] The unique identifier for the resource. This
- * identifier is defined by the server.
- *
- * @param string $id
- */
- public function setId($id)
- {
- $this->id = $id;
- }
- /**
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Output only. [Output Only] Type of the resource.
- * Alwayscompute#instantSnapshot for InstantSnapshot resources.
- *
- * @param string $kind
- */
- public function setKind($kind)
- {
- $this->kind = $kind;
- }
- /**
- * @return string
- */
- public function getKind()
- {
- return $this->kind;
- }
- /**
- * A fingerprint for the labels being applied to this InstantSnapshot, which
- * is essentially a hash of the labels set used for optimistic locking. The
- * fingerprint is initially generated by Compute Engine and changes after
- * every request to modify or update labels. You must always provide an up-to-
- * date fingerprint hash in order to update or change labels, otherwise the
- * request will fail with error412 conditionNotMet.
- *
- * To see the latest fingerprint, make a get() request to retrieve a
- * InstantSnapshot.
- *
- * @param string $labelFingerprint
- */
- public function setLabelFingerprint($labelFingerprint)
- {
- $this->labelFingerprint = $labelFingerprint;
- }
- /**
- * @return string
- */
- public function getLabelFingerprint()
- {
- return $this->labelFingerprint;
- }
- /**
- * Labels to apply to this InstantSnapshot. These can be later modified by the
- * setLabels method. Label values may be empty.
- *
- * @param string[] $labels
- */
- public function setLabels($labels)
- {
- $this->labels = $labels;
- }
- /**
- * @return string[]
- */
- public function getLabels()
- {
- return $this->labels;
- }
- /**
- * Name of the resource; provided by the client when the resource is created.
- * The name must be 1-63 characters long, and comply withRFC1035.
- * Specifically, the name must be 1-63 characters long and match the regular
- * expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character
- * must be a lowercase letter, and all following characters must be a dash,
- * lowercase letter, or digit, except the last character, which cannot be a
- * dash.
- *
- * @param string $name
- */
- public function setName($name)
- {
- $this->name = $name;
- }
- /**
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Input only. Additional params passed with the request, but not persisted as
- * part of resource payload.
- *
- * @param InstantSnapshotParams $params
- */
- public function setParams(InstantSnapshotParams $params)
- {
- $this->params = $params;
- }
- /**
- * @return InstantSnapshotParams
- */
- public function getParams()
- {
- return $this->params;
- }
- /**
- * Output only. [Output Only] URL of the region where the instant snapshot
- * resides. 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] Status information for the instant snapshot
- * resource.
- *
- * @param InstantSnapshotResourceStatus $resourceStatus
- */
- public function setResourceStatus(InstantSnapshotResourceStatus $resourceStatus)
- {
- $this->resourceStatus = $resourceStatus;
- }
- /**
- * @return InstantSnapshotResourceStatus
- */
- public function getResourceStatus()
- {
- return $this->resourceStatus;
- }
- /**
- * Output only. Reserved for future use.
- *
- * @param bool $satisfiesPzi
- */
- public function setSatisfiesPzi($satisfiesPzi)
- {
- $this->satisfiesPzi = $satisfiesPzi;
- }
- /**
- * @return bool
- */
- public function getSatisfiesPzi()
- {
- return $this->satisfiesPzi;
- }
- /**
- * Output only. [Output Only] Reserved for future use.
- *
- * @param bool $satisfiesPzs
- */
- public function setSatisfiesPzs($satisfiesPzs)
- {
- $this->satisfiesPzs = $satisfiesPzs;
- }
- /**
- * @return bool
- */
- public function getSatisfiesPzs()
- {
- return $this->satisfiesPzs;
- }
- /**
- * 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 for this resource's resource
- * id.
- *
- * @param string $selfLinkWithId
- */
- public function setSelfLinkWithId($selfLinkWithId)
- {
- $this->selfLinkWithId = $selfLinkWithId;
- }
- /**
- * @return string
- */
- public function getSelfLinkWithId()
- {
- return $this->selfLinkWithId;
- }
- /**
- * URL of the source disk used to create this instant snapshot. Note that the
- * source disk must be in the same zone/region as the instant snapshot to be
- * created. This can be a full or valid partial URL. For example, the
- * following are valid values: - https://www.googleapis.c
- * om/compute/v1/projects/project/zones/zone/disks/disk - h
- * ttps://www.googleapis.com/compute/v1/projects/project/regions/region/disks/
- * disk - projects/project/zones/zone/disks/disk
- * - projects/project/regions/region/disks/disk -
- * zones/zone/disks/disk - regions/region/disks/disk
- *
- * @param string $sourceDisk
- */
- public function setSourceDisk($sourceDisk)
- {
- $this->sourceDisk = $sourceDisk;
- }
- /**
- * @return string
- */
- public function getSourceDisk()
- {
- return $this->sourceDisk;
- }
- /**
- * Output only. [Output Only] The ID value of the disk used to create this
- * InstantSnapshot. This value may be used to determine whether the
- * InstantSnapshot was taken from the current or a previous instance of a
- * given disk name.
- *
- * @param string $sourceDiskId
- */
- public function setSourceDiskId($sourceDiskId)
- {
- $this->sourceDiskId = $sourceDiskId;
- }
- /**
- * @return string
- */
- public function getSourceDiskId()
- {
- return $this->sourceDiskId;
- }
- /**
- * Output only. [Output Only] The status of the instantSnapshot. This can
- * beCREATING, DELETING, FAILED, orREADY.
- *
- * Accepted values: CREATING, DELETING, FAILED, READY, UNAVAILABLE
- *
- * @param self::STATUS_* $status
- */
- public function setStatus($status)
- {
- $this->status = $status;
- }
- /**
- * @return self::STATUS_*
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * Output only. [Output Only] URL of the zone where the instant snapshot
- * resides. You must specify this field as part of the HTTP request URL. It is
- * not settable as a field in the request body.
- *
- * @param string $zone
- */
- public function setZone($zone)
- {
- $this->zone = $zone;
- }
- /**
- * @return string
- */
- public function getZone()
- {
- return $this->zone;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(InstantSnapshot::class, 'Google_Service_Compute_InstantSnapshot');
|