gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,226 @@
<?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\Baremetalsolution;
class AllowedClient extends \Google\Model
{
/**
* Permissions were not specified.
*/
public const MOUNT_PERMISSIONS_MOUNT_PERMISSIONS_UNSPECIFIED = 'MOUNT_PERMISSIONS_UNSPECIFIED';
/**
* NFS share can be mount with read-only permissions.
*/
public const MOUNT_PERMISSIONS_READ = 'READ';
/**
* NFS share can be mount with read-write permissions.
*/
public const MOUNT_PERMISSIONS_READ_WRITE = 'READ_WRITE';
/**
* Allow dev flag. Which controls whether to allow creation of devices.
*
* @var bool
*/
public $allowDev;
/**
* Allow the setuid flag.
*
* @var bool
*/
public $allowSuid;
/**
* The subnet of IP addresses permitted to access the share.
*
* @var string
*/
public $allowedClientsCidr;
/**
* Mount permissions.
*
* @var string
*/
public $mountPermissions;
/**
* The network the access point sits on.
*
* @var string
*/
public $network;
/**
* Output only. The path to access NFS, in format shareIP:/InstanceID
* InstanceID is the generated ID instead of customer provided name. example
* like "10.0.0.0:/g123456789-nfs001"
*
* @var string
*/
public $nfsPath;
/**
* Disable root squashing, which is a feature of NFS. Root squash is a special
* mapping of the remote superuser (root) identity when using identity
* authentication.
*
* @var bool
*/
public $noRootSquash;
/**
* Output only. The IP address of the share on this network. Assigned
* automatically during provisioning based on the network's services_cidr.
*
* @var string
*/
public $shareIp;
/**
* Allow dev flag. Which controls whether to allow creation of devices.
*
* @param bool $allowDev
*/
public function setAllowDev($allowDev)
{
$this->allowDev = $allowDev;
}
/**
* @return bool
*/
public function getAllowDev()
{
return $this->allowDev;
}
/**
* Allow the setuid flag.
*
* @param bool $allowSuid
*/
public function setAllowSuid($allowSuid)
{
$this->allowSuid = $allowSuid;
}
/**
* @return bool
*/
public function getAllowSuid()
{
return $this->allowSuid;
}
/**
* The subnet of IP addresses permitted to access the share.
*
* @param string $allowedClientsCidr
*/
public function setAllowedClientsCidr($allowedClientsCidr)
{
$this->allowedClientsCidr = $allowedClientsCidr;
}
/**
* @return string
*/
public function getAllowedClientsCidr()
{
return $this->allowedClientsCidr;
}
/**
* Mount permissions.
*
* Accepted values: MOUNT_PERMISSIONS_UNSPECIFIED, READ, READ_WRITE
*
* @param self::MOUNT_PERMISSIONS_* $mountPermissions
*/
public function setMountPermissions($mountPermissions)
{
$this->mountPermissions = $mountPermissions;
}
/**
* @return self::MOUNT_PERMISSIONS_*
*/
public function getMountPermissions()
{
return $this->mountPermissions;
}
/**
* The network the access point sits on.
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Output only. The path to access NFS, in format shareIP:/InstanceID
* InstanceID is the generated ID instead of customer provided name. example
* like "10.0.0.0:/g123456789-nfs001"
*
* @param string $nfsPath
*/
public function setNfsPath($nfsPath)
{
$this->nfsPath = $nfsPath;
}
/**
* @return string
*/
public function getNfsPath()
{
return $this->nfsPath;
}
/**
* Disable root squashing, which is a feature of NFS. Root squash is a special
* mapping of the remote superuser (root) identity when using identity
* authentication.
*
* @param bool $noRootSquash
*/
public function setNoRootSquash($noRootSquash)
{
$this->noRootSquash = $noRootSquash;
}
/**
* @return bool
*/
public function getNoRootSquash()
{
return $this->noRootSquash;
}
/**
* Output only. The IP address of the share on this network. Assigned
* automatically during provisioning based on the network's services_cidr.
*
* @param string $shareIp
*/
public function setShareIp($shareIp)
{
$this->shareIp = $shareIp;
}
/**
* @return string
*/
public function getShareIp()
{
return $this->shareIp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AllowedClient::class, 'Google_Service_Baremetalsolution_AllowedClient');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class BaremetalsolutionEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BaremetalsolutionEmpty::class, 'Google_Service_Baremetalsolution_BaremetalsolutionEmpty');
@@ -0,0 +1,61 @@
<?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\Baremetalsolution;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
public $members;
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
public function setMembers($members)
{
$this->members = $members;
}
public function getMembers()
{
return $this->members;
}
public function setRole($role)
{
$this->role = $role;
}
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_Baremetalsolution_Binding');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_Baremetalsolution_CancelOperationRequest');
@@ -0,0 +1,70 @@
<?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\Baremetalsolution;
class DetachLunRequest extends \Google\Model
{
/**
* Required. Name of the Lun to detach.
*
* @var string
*/
public $lun;
/**
* If true, performs lun unmapping without instance reboot.
*
* @var bool
*/
public $skipReboot;
/**
* Required. Name of the Lun to detach.
*
* @param string $lun
*/
public function setLun($lun)
{
$this->lun = $lun;
}
/**
* @return string
*/
public function getLun()
{
return $this->lun;
}
/**
* If true, performs lun unmapping without instance reboot.
*
* @param bool $skipReboot
*/
public function setSkipReboot($skipReboot)
{
$this->skipReboot = $skipReboot;
}
/**
* @return bool
*/
public function getSkipReboot()
{
return $this->skipReboot;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DetachLunRequest::class, 'Google_Service_Baremetalsolution_DetachLunRequest');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class DisableHyperthreadingRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DisableHyperthreadingRequest::class, 'Google_Service_Baremetalsolution_DisableHyperthreadingRequest');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class DisableInteractiveSerialConsoleRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DisableInteractiveSerialConsoleRequest::class, 'Google_Service_Baremetalsolution_DisableInteractiveSerialConsoleRequest');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class DisableInteractiveSerialConsoleResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DisableInteractiveSerialConsoleResponse::class, 'Google_Service_Baremetalsolution_DisableInteractiveSerialConsoleResponse');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class EnableHyperthreadingRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnableHyperthreadingRequest::class, 'Google_Service_Baremetalsolution_EnableHyperthreadingRequest');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class EnableInteractiveSerialConsoleRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnableInteractiveSerialConsoleRequest::class, 'Google_Service_Baremetalsolution_EnableInteractiveSerialConsoleRequest');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class EnableInteractiveSerialConsoleResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EnableInteractiveSerialConsoleResponse::class, 'Google_Service_Baremetalsolution_EnableInteractiveSerialConsoleResponse');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class EvictLunRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EvictLunRequest::class, 'Google_Service_Baremetalsolution_EvictLunRequest');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class EvictVolumeRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EvictVolumeRequest::class, 'Google_Service_Baremetalsolution_EvictVolumeRequest');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class Expr extends \Google\Model
{
public $description;
public $expression;
public $location;
public $title;
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setExpression($expression)
{
$this->expression = $expression;
}
public function getExpression()
{
return $this->expression;
}
public function setLocation($location)
{
$this->location = $location;
}
public function getLocation()
{
return $this->location;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_Baremetalsolution_Expr');
@@ -0,0 +1,43 @@
<?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\Baremetalsolution;
class FetchInstanceProvisioningSettingsResponse extends \Google\Collection
{
protected $collection_key = 'images';
protected $imagesType = OSImage::class;
protected $imagesDataType = 'array';
/**
* @param OSImage[]
*/
public function setImages($images)
{
$this->images = $images;
}
/**
* @return OSImage[]
*/
public function getImages()
{
return $this->images;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchInstanceProvisioningSettingsResponse::class, 'Google_Service_Baremetalsolution_FetchInstanceProvisioningSettingsResponse');
@@ -0,0 +1,96 @@
<?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\Baremetalsolution;
class GoogleCloudBaremetalsolutionV2LogicalInterface extends \Google\Collection
{
protected $collection_key = 'logicalNetworkInterfaces';
/**
* The index of the logical interface mapping to the index of the hardware
* bond or nic on the chosen network template. This field is deprecated.
*
* @deprecated
* @var int
*/
public $interfaceIndex;
protected $logicalNetworkInterfacesType = LogicalNetworkInterface::class;
protected $logicalNetworkInterfacesDataType = 'array';
/**
* Interface name. This is of syntax or and forms part of the network template
* name.
*
* @var string
*/
public $name;
/**
* The index of the logical interface mapping to the index of the hardware
* bond or nic on the chosen network template. This field is deprecated.
*
* @deprecated
* @param int $interfaceIndex
*/
public function setInterfaceIndex($interfaceIndex)
{
$this->interfaceIndex = $interfaceIndex;
}
/**
* @deprecated
* @return int
*/
public function getInterfaceIndex()
{
return $this->interfaceIndex;
}
/**
* List of logical network interfaces within a logical interface.
*
* @param LogicalNetworkInterface[] $logicalNetworkInterfaces
*/
public function setLogicalNetworkInterfaces($logicalNetworkInterfaces)
{
$this->logicalNetworkInterfaces = $logicalNetworkInterfaces;
}
/**
* @return LogicalNetworkInterface[]
*/
public function getLogicalNetworkInterfaces()
{
return $this->logicalNetworkInterfaces;
}
/**
* Interface name. This is of syntax or and forms part of the network template
* name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudBaremetalsolutionV2LogicalInterface::class, 'Google_Service_Baremetalsolution_GoogleCloudBaremetalsolutionV2LogicalInterface');
@@ -0,0 +1,110 @@
<?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\Baremetalsolution;
class GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface extends \Google\Model
{
/**
* Unspecified value.
*/
public const TYPE_INTERFACE_TYPE_UNSPECIFIED = 'INTERFACE_TYPE_UNSPECIFIED';
/**
* Bond interface type.
*/
public const TYPE_BOND = 'BOND';
/**
* NIC interface type.
*/
public const TYPE_NIC = 'NIC';
/**
* Interface name. This is not a globally unique identifier. Name is unique
* only inside the ServerNetworkTemplate. This is of syntax or and forms part
* of the network template name.
*
* @var string
*/
public $name;
/**
* If true, interface must have network connected.
*
* @var bool
*/
public $required;
/**
* Interface type.
*
* @var string
*/
public $type;
/**
* Interface name. This is not a globally unique identifier. Name is unique
* only inside the ServerNetworkTemplate. This is of syntax or and forms part
* of the network template name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* If true, interface must have network connected.
*
* @param bool $required
*/
public function setRequired($required)
{
$this->required = $required;
}
/**
* @return bool
*/
public function getRequired()
{
return $this->required;
}
/**
* Interface type.
*
* Accepted values: INTERFACE_TYPE_UNSPECIFIED, BOND, NIC
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface::class, 'Google_Service_Baremetalsolution_GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface');
@@ -0,0 +1,556 @@
<?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\Baremetalsolution;
class Instance extends \Google\Collection
{
/**
* The server is in an unknown state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The server is being provisioned.
*/
public const STATE_PROVISIONING = 'PROVISIONING';
/**
* The server is running.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The server has been deleted.
*/
public const STATE_DELETED = 'DELETED';
/**
* The server is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The server is starting.
*/
public const STATE_STARTING = 'STARTING';
/**
* The server is stopping.
*/
public const STATE_STOPPING = 'STOPPING';
/**
* The server is shutdown.
*/
public const STATE_SHUTDOWN = 'SHUTDOWN';
/**
* The workload profile is in an unknown state.
*/
public const WORKLOAD_PROFILE_WORKLOAD_PROFILE_UNSPECIFIED = 'WORKLOAD_PROFILE_UNSPECIFIED';
/**
* The workload profile is generic.
*/
public const WORKLOAD_PROFILE_WORKLOAD_PROFILE_GENERIC = 'WORKLOAD_PROFILE_GENERIC';
/**
* The workload profile is hana.
*/
public const WORKLOAD_PROFILE_WORKLOAD_PROFILE_HANA = 'WORKLOAD_PROFILE_HANA';
protected $collection_key = 'volumes';
/**
* Output only. Create a time stamp.
*
* @var string
*/
public $createTime;
/**
* Output only. The firmware version for the instance.
*
* @var string
*/
public $firmwareVersion;
/**
* True if you enable hyperthreading for the server, otherwise false. The
* default value is false.
*
* @var bool
*/
public $hyperthreadingEnabled;
/**
* Output only. An identifier for the `Instance`, generated by the backend.
*
* @var string
*/
public $id;
/**
* Output only. True if the interactive serial console feature is enabled for
* the instance, false otherwise. The default value is false.
*
* @var bool
*/
public $interactiveSerialConsoleEnabled;
/**
* Optional. Name of the KMS crypto key version used to encrypt the initial
* passwords. The key has to have ASYMMETRIC_DECRYPT purpose. Format is `proje
* cts/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryp
* toKeyVersions/{version}`.
*
* @var string
*/
public $kmsKeyVersion;
/**
* Labels as key value pairs.
*
* @var string[]
*/
public $labels;
protected $logicalInterfacesType = GoogleCloudBaremetalsolutionV2LogicalInterface::class;
protected $logicalInterfacesDataType = 'array';
/**
* Output only. Text field about info for logging in.
*
* @var string
*/
public $loginInfo;
protected $lunsType = Lun::class;
protected $lunsDataType = 'array';
/**
* Immutable. The server type. [Available server
* types](https://cloud.google.com/bare-metal/docs/bms-
* planning#server_configurations)
*
* @var string
*/
public $machineType;
/**
* Immutable. The resource name of this `Instance`. Resource names are
* schemeless URIs that follow the conventions in
* https://cloud.google.com/apis/design/resource_names. Format:
* `projects/{project}/locations/{location}/instances/{instance}`
*
* @var string
*/
public $name;
/**
* Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
* Generally, the template name follows the syntax of "bond" or "nic".
*
* @var string
*/
public $networkTemplate;
protected $networksType = Network::class;
protected $networksDataType = 'array';
/**
* The OS image currently installed on the server.
*
* @var string
*/
public $osImage;
/**
* Immutable. Pod name. Pod is an independent part of infrastructure. Instance
* can only be connected to the assets (networks, volumes) allocated in the
* same pod.
*
* @var string
*/
public $pod;
/**
* Optional. List of SSH Keys used during instance provisioning.
*
* @var string[]
*/
public $sshKeys;
/**
* Output only. The state of the server.
*
* @var string
*/
public $state;
/**
* Output only. Update a time stamp.
*
* @var string
*/
public $updateTime;
protected $volumesType = Volume::class;
protected $volumesDataType = 'array';
/**
* The workload profile for the instance.
*
* @var string
*/
public $workloadProfile;
/**
* Output only. Create a time stamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The firmware version for the instance.
*
* @param string $firmwareVersion
*/
public function setFirmwareVersion($firmwareVersion)
{
$this->firmwareVersion = $firmwareVersion;
}
/**
* @return string
*/
public function getFirmwareVersion()
{
return $this->firmwareVersion;
}
/**
* True if you enable hyperthreading for the server, otherwise false. The
* default value is false.
*
* @param bool $hyperthreadingEnabled
*/
public function setHyperthreadingEnabled($hyperthreadingEnabled)
{
$this->hyperthreadingEnabled = $hyperthreadingEnabled;
}
/**
* @return bool
*/
public function getHyperthreadingEnabled()
{
return $this->hyperthreadingEnabled;
}
/**
* Output only. An identifier for the `Instance`, generated by the backend.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. True if the interactive serial console feature is enabled for
* the instance, false otherwise. The default value is false.
*
* @param bool $interactiveSerialConsoleEnabled
*/
public function setInteractiveSerialConsoleEnabled($interactiveSerialConsoleEnabled)
{
$this->interactiveSerialConsoleEnabled = $interactiveSerialConsoleEnabled;
}
/**
* @return bool
*/
public function getInteractiveSerialConsoleEnabled()
{
return $this->interactiveSerialConsoleEnabled;
}
/**
* Optional. Name of the KMS crypto key version used to encrypt the initial
* passwords. The key has to have ASYMMETRIC_DECRYPT purpose. Format is `proje
* cts/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryp
* toKeyVersions/{version}`.
*
* @param string $kmsKeyVersion
*/
public function setKmsKeyVersion($kmsKeyVersion)
{
$this->kmsKeyVersion = $kmsKeyVersion;
}
/**
* @return string
*/
public function getKmsKeyVersion()
{
return $this->kmsKeyVersion;
}
/**
* Labels as key value pairs.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. For the non-multivlan configurations (for eg, existing
* servers) that use existing default network template (bondaa-bondaa), both
* the Instance.networks field and the Instance.logical_interfaces fields will
* be filled to ensure backward compatibility. For the others, only
* Instance.logical_interfaces will be filled.
*
* @param GoogleCloudBaremetalsolutionV2LogicalInterface[] $logicalInterfaces
*/
public function setLogicalInterfaces($logicalInterfaces)
{
$this->logicalInterfaces = $logicalInterfaces;
}
/**
* @return GoogleCloudBaremetalsolutionV2LogicalInterface[]
*/
public function getLogicalInterfaces()
{
return $this->logicalInterfaces;
}
/**
* Output only. Text field about info for logging in.
*
* @param string $loginInfo
*/
public function setLoginInfo($loginInfo)
{
$this->loginInfo = $loginInfo;
}
/**
* @return string
*/
public function getLoginInfo()
{
return $this->loginInfo;
}
/**
* Immutable. List of LUNs associated with this server.
*
* @param Lun[] $luns
*/
public function setLuns($luns)
{
$this->luns = $luns;
}
/**
* @return Lun[]
*/
public function getLuns()
{
return $this->luns;
}
/**
* Immutable. The server type. [Available server
* types](https://cloud.google.com/bare-metal/docs/bms-
* planning#server_configurations)
*
* @param string $machineType
*/
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
/**
* @return string
*/
public function getMachineType()
{
return $this->machineType;
}
/**
* Immutable. The resource name of this `Instance`. Resource names are
* schemeless URIs that follow the conventions in
* https://cloud.google.com/apis/design/resource_names. Format:
* `projects/{project}/locations/{location}/instances/{instance}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc.
* Generally, the template name follows the syntax of "bond" or "nic".
*
* @param string $networkTemplate
*/
public function setNetworkTemplate($networkTemplate)
{
$this->networkTemplate = $networkTemplate;
}
/**
* @return string
*/
public function getNetworkTemplate()
{
return $this->networkTemplate;
}
/**
* Output only. List of networks associated with this server.
*
* @param Network[] $networks
*/
public function setNetworks($networks)
{
$this->networks = $networks;
}
/**
* @return Network[]
*/
public function getNetworks()
{
return $this->networks;
}
/**
* The OS image currently installed on the server.
*
* @param string $osImage
*/
public function setOsImage($osImage)
{
$this->osImage = $osImage;
}
/**
* @return string
*/
public function getOsImage()
{
return $this->osImage;
}
/**
* Immutable. Pod name. Pod is an independent part of infrastructure. Instance
* can only be connected to the assets (networks, volumes) allocated in the
* same pod.
*
* @param string $pod
*/
public function setPod($pod)
{
$this->pod = $pod;
}
/**
* @return string
*/
public function getPod()
{
return $this->pod;
}
/**
* Optional. List of SSH Keys used during instance provisioning.
*
* @param string[] $sshKeys
*/
public function setSshKeys($sshKeys)
{
$this->sshKeys = $sshKeys;
}
/**
* @return string[]
*/
public function getSshKeys()
{
return $this->sshKeys;
}
/**
* Output only. The state of the server.
*
* Accepted values: STATE_UNSPECIFIED, PROVISIONING, RUNNING, DELETED,
* UPDATING, STARTING, STOPPING, SHUTDOWN
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Update a time stamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Input only. List of Volumes to attach to this Instance on creation. This
* field won't be populated in Get/List responses.
*
* @param Volume[] $volumes
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return Volume[]
*/
public function getVolumes()
{
return $this->volumes;
}
/**
* The workload profile for the instance.
*
* Accepted values: WORKLOAD_PROFILE_UNSPECIFIED, WORKLOAD_PROFILE_GENERIC,
* WORKLOAD_PROFILE_HANA
*
* @param self::WORKLOAD_PROFILE_* $workloadProfile
*/
public function setWorkloadProfile($workloadProfile)
{
$this->workloadProfile = $workloadProfile;
}
/**
* @return self::WORKLOAD_PROFILE_*
*/
public function getWorkloadProfile()
{
return $this->workloadProfile;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Instance::class, 'Google_Service_Baremetalsolution_Instance');
@@ -0,0 +1,361 @@
<?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\Baremetalsolution;
class InstanceConfig extends \Google\Collection
{
/**
* The unspecified network configuration.
*/
public const NETWORK_CONFIG_NETWORKCONFIG_UNSPECIFIED = 'NETWORKCONFIG_UNSPECIFIED';
/**
* Instance part of single client network and single private network.
*/
public const NETWORK_CONFIG_SINGLE_VLAN = 'SINGLE_VLAN';
/**
* Instance part of multiple (or single) client networks and private networks.
*/
public const NETWORK_CONFIG_MULTI_VLAN = 'MULTI_VLAN';
protected $collection_key = 'sshKeyNames';
/**
* If true networks can be from different projects of the same vendor account.
*
* @var bool
*/
public $accountNetworksEnabled;
protected $clientNetworkType = NetworkAddress::class;
protected $clientNetworkDataType = '';
/**
* Whether the instance should be provisioned with Hyperthreading enabled.
*
* @var bool
*/
public $hyperthreading;
/**
* A transient unique identifier to identify an instance within an
* ProvisioningConfig request.
*
* @deprecated
* @var string
*/
public $id;
/**
* Instance type. [Available types](https://cloud.google.com/bare-
* metal/docs/bms-planning#server_configurations)
*
* @var string
*/
public $instanceType;
/**
* Name of the KMS crypto key version used to encrypt the initial passwords.
* The key has to have ASYMMETRIC_DECRYPT purpose.
*
* @var string
*/
public $kmsKeyVersion;
protected $logicalInterfacesType = GoogleCloudBaremetalsolutionV2LogicalInterface::class;
protected $logicalInterfacesDataType = 'array';
/**
* The name of the instance config.
*
* @var string
*/
public $name;
/**
* The type of network configuration on the instance.
*
* @var string
*/
public $networkConfig;
/**
* Server network template name. Filled if InstanceConfig.multivlan_config is
* true.
*
* @var string
*/
public $networkTemplate;
/**
* OS image to initialize the instance. [Available
* images](https://cloud.google.com/bare-metal/docs/bms-
* planning#server_configurations)
*
* @var string
*/
public $osImage;
protected $privateNetworkType = NetworkAddress::class;
protected $privateNetworkDataType = '';
/**
* Optional. List of names of ssh keys used to provision the instance.
*
* @var string[]
*/
public $sshKeyNames;
/**
* User note field, it can be used by customers to add additional information
* for the BMS Ops team .
*
* @var string
*/
public $userNote;
/**
* If true networks can be from different projects of the same vendor account.
*
* @param bool $accountNetworksEnabled
*/
public function setAccountNetworksEnabled($accountNetworksEnabled)
{
$this->accountNetworksEnabled = $accountNetworksEnabled;
}
/**
* @return bool
*/
public function getAccountNetworksEnabled()
{
return $this->accountNetworksEnabled;
}
/**
* Client network address. Filled if InstanceConfig.multivlan_config is false.
*
* @deprecated
* @param NetworkAddress $clientNetwork
*/
public function setClientNetwork(NetworkAddress $clientNetwork)
{
$this->clientNetwork = $clientNetwork;
}
/**
* @deprecated
* @return NetworkAddress
*/
public function getClientNetwork()
{
return $this->clientNetwork;
}
/**
* Whether the instance should be provisioned with Hyperthreading enabled.
*
* @param bool $hyperthreading
*/
public function setHyperthreading($hyperthreading)
{
$this->hyperthreading = $hyperthreading;
}
/**
* @return bool
*/
public function getHyperthreading()
{
return $this->hyperthreading;
}
/**
* A transient unique identifier to identify an instance within an
* ProvisioningConfig request.
*
* @deprecated
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @deprecated
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Instance type. [Available types](https://cloud.google.com/bare-
* metal/docs/bms-planning#server_configurations)
*
* @param string $instanceType
*/
public function setInstanceType($instanceType)
{
$this->instanceType = $instanceType;
}
/**
* @return string
*/
public function getInstanceType()
{
return $this->instanceType;
}
/**
* Name of the KMS crypto key version used to encrypt the initial passwords.
* The key has to have ASYMMETRIC_DECRYPT purpose.
*
* @param string $kmsKeyVersion
*/
public function setKmsKeyVersion($kmsKeyVersion)
{
$this->kmsKeyVersion = $kmsKeyVersion;
}
/**
* @return string
*/
public function getKmsKeyVersion()
{
return $this->kmsKeyVersion;
}
/**
* List of logical interfaces for the instance. The number of logical
* interfaces will be the same as number of hardware bond/nic on the chosen
* network template. Filled if InstanceConfig.multivlan_config is true.
*
* @param GoogleCloudBaremetalsolutionV2LogicalInterface[] $logicalInterfaces
*/
public function setLogicalInterfaces($logicalInterfaces)
{
$this->logicalInterfaces = $logicalInterfaces;
}
/**
* @return GoogleCloudBaremetalsolutionV2LogicalInterface[]
*/
public function getLogicalInterfaces()
{
return $this->logicalInterfaces;
}
/**
* The name of the instance config.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The type of network configuration on the instance.
*
* Accepted values: NETWORKCONFIG_UNSPECIFIED, SINGLE_VLAN, MULTI_VLAN
*
* @param self::NETWORK_CONFIG_* $networkConfig
*/
public function setNetworkConfig($networkConfig)
{
$this->networkConfig = $networkConfig;
}
/**
* @return self::NETWORK_CONFIG_*
*/
public function getNetworkConfig()
{
return $this->networkConfig;
}
/**
* Server network template name. Filled if InstanceConfig.multivlan_config is
* true.
*
* @param string $networkTemplate
*/
public function setNetworkTemplate($networkTemplate)
{
$this->networkTemplate = $networkTemplate;
}
/**
* @return string
*/
public function getNetworkTemplate()
{
return $this->networkTemplate;
}
/**
* OS image to initialize the instance. [Available
* images](https://cloud.google.com/bare-metal/docs/bms-
* planning#server_configurations)
*
* @param string $osImage
*/
public function setOsImage($osImage)
{
$this->osImage = $osImage;
}
/**
* @return string
*/
public function getOsImage()
{
return $this->osImage;
}
/**
* Private network address, if any. Filled if InstanceConfig.multivlan_config
* is false.
*
* @deprecated
* @param NetworkAddress $privateNetwork
*/
public function setPrivateNetwork(NetworkAddress $privateNetwork)
{
$this->privateNetwork = $privateNetwork;
}
/**
* @deprecated
* @return NetworkAddress
*/
public function getPrivateNetwork()
{
return $this->privateNetwork;
}
/**
* Optional. List of names of ssh keys used to provision the instance.
*
* @param string[] $sshKeyNames
*/
public function setSshKeyNames($sshKeyNames)
{
$this->sshKeyNames = $sshKeyNames;
}
/**
* @return string[]
*/
public function getSshKeyNames()
{
return $this->sshKeyNames;
}
/**
* User note field, it can be used by customers to add additional information
* for the BMS Ops team .
*
* @param string $userNote
*/
public function setUserNote($userNote)
{
$this->userNote = $userNote;
}
/**
* @return string
*/
public function getUserNote()
{
return $this->userNote;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceConfig::class, 'Google_Service_Baremetalsolution_InstanceConfig');
@@ -0,0 +1,141 @@
<?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\Baremetalsolution;
class InstanceQuota extends \Google\Model
{
/**
* Number of machines than can be created for the given location and
* instance_type.
*
* @var int
*/
public $availableMachineCount;
/**
* The gcp service of the provisioning quota.
*
* @var string
*/
public $gcpService;
/**
* Instance type. Deprecated: use gcp_service.
*
* @deprecated
* @var string
*/
public $instanceType;
/**
* Location where the quota applies.
*
* @var string
*/
public $location;
/**
* Output only. The name of the instance quota.
*
* @var string
*/
public $name;
/**
* Number of machines than can be created for the given location and
* instance_type.
*
* @param int $availableMachineCount
*/
public function setAvailableMachineCount($availableMachineCount)
{
$this->availableMachineCount = $availableMachineCount;
}
/**
* @return int
*/
public function getAvailableMachineCount()
{
return $this->availableMachineCount;
}
/**
* The gcp service of the provisioning quota.
*
* @param string $gcpService
*/
public function setGcpService($gcpService)
{
$this->gcpService = $gcpService;
}
/**
* @return string
*/
public function getGcpService()
{
return $this->gcpService;
}
/**
* Instance type. Deprecated: use gcp_service.
*
* @deprecated
* @param string $instanceType
*/
public function setInstanceType($instanceType)
{
$this->instanceType = $instanceType;
}
/**
* @deprecated
* @return string
*/
public function getInstanceType()
{
return $this->instanceType;
}
/**
* Location where the quota applies.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Output only. The name of the instance quota.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InstanceQuota::class, 'Google_Service_Baremetalsolution_InstanceQuota');
@@ -0,0 +1,70 @@
<?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\Baremetalsolution;
class IntakeVlanAttachment extends \Google\Model
{
/**
* Identifier of the VLAN attachment.
*
* @var string
*/
public $id;
/**
* Attachment pairing key.
*
* @var string
*/
public $pairingKey;
/**
* Identifier of the VLAN attachment.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Attachment pairing key.
*
* @param string $pairingKey
*/
public function setPairingKey($pairingKey)
{
$this->pairingKey = $pairingKey;
}
/**
* @return string
*/
public function getPairingKey()
{
return $this->pairingKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IntakeVlanAttachment::class, 'Google_Service_Baremetalsolution_IntakeVlanAttachment');
@@ -0,0 +1,89 @@
<?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\Baremetalsolution;
class ListInstancesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $instancesType = Instance::class;
protected $instancesDataType = 'array';
/**
* A token identifying a page of results from the server.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of servers.
*
* @param Instance[] $instances
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return Instance[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* A token identifying a page of results from the server.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListInstancesResponse::class, 'Google_Service_Baremetalsolution_ListInstancesResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_Baremetalsolution_ListLocationsResponse');
@@ -0,0 +1,89 @@
<?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\Baremetalsolution;
class ListLunsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $lunsType = Lun::class;
protected $lunsDataType = 'array';
/**
* A token identifying a page of results from the server.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of luns.
*
* @param Lun[] $luns
*/
public function setLuns($luns)
{
$this->luns = $luns;
}
/**
* @return Lun[]
*/
public function getLuns()
{
return $this->luns;
}
/**
* A token identifying a page of results from the server.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLunsResponse::class, 'Google_Service_Baremetalsolution_ListLunsResponse');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class ListNetworkUsageResponse extends \Google\Collection
{
protected $collection_key = 'networks';
protected $networksType = NetworkUsage::class;
protected $networksDataType = 'array';
/**
* Networks with IPs.
*
* @param NetworkUsage[] $networks
*/
public function setNetworks($networks)
{
$this->networks = $networks;
}
/**
* @return NetworkUsage[]
*/
public function getNetworks()
{
return $this->networks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListNetworkUsageResponse::class, 'Google_Service_Baremetalsolution_ListNetworkUsageResponse');
@@ -0,0 +1,89 @@
<?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\Baremetalsolution;
class ListNetworksResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $networksType = Network::class;
protected $networksDataType = 'array';
/**
* A token identifying a page of results from the server.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of networks.
*
* @param Network[] $networks
*/
public function setNetworks($networks)
{
$this->networks = $networks;
}
/**
* @return Network[]
*/
public function getNetworks()
{
return $this->networks;
}
/**
* A token identifying a page of results from the server.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListNetworksResponse::class, 'Google_Service_Baremetalsolution_ListNetworksResponse');
@@ -0,0 +1,89 @@
<?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\Baremetalsolution;
class ListNfsSharesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token identifying a page of results from the server.
*
* @var string
*/
public $nextPageToken;
protected $nfsSharesType = NfsShare::class;
protected $nfsSharesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token identifying a page of results from the server.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of NFS shares.
*
* @param NfsShare[] $nfsShares
*/
public function setNfsShares($nfsShares)
{
$this->nfsShares = $nfsShares;
}
/**
* @return NfsShare[]
*/
public function getNfsShares()
{
return $this->nfsShares;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListNfsSharesResponse::class, 'Google_Service_Baremetalsolution_ListNfsSharesResponse');
@@ -0,0 +1,69 @@
<?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\Baremetalsolution;
class ListOSImagesResponse extends \Google\Collection
{
protected $collection_key = 'osImages';
/**
* Token to retrieve the next page of results, or empty if there are no more
* results in the list.
*
* @var string
*/
public $nextPageToken;
protected $osImagesType = OSImage::class;
protected $osImagesDataType = 'array';
/**
* Token to retrieve the next page of results, or empty if there are no more
* results in the list.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The OS images available.
*
* @param OSImage[] $osImages
*/
public function setOsImages($osImages)
{
$this->osImages = $osImages;
}
/**
* @return OSImage[]
*/
public function getOsImages()
{
return $this->osImages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOSImagesResponse::class, 'Google_Service_Baremetalsolution_ListOSImagesResponse');
@@ -0,0 +1,61 @@
<?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\Baremetalsolution;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_Baremetalsolution_ListOperationsResponse');
@@ -0,0 +1,69 @@
<?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\Baremetalsolution;
class ListProvisioningQuotasResponse extends \Google\Collection
{
protected $collection_key = 'provisioningQuotas';
/**
* Token to retrieve the next page of results, or empty if there are no more
* results in the list.
*
* @var string
*/
public $nextPageToken;
protected $provisioningQuotasType = ProvisioningQuota::class;
protected $provisioningQuotasDataType = 'array';
/**
* Token to retrieve the next page of results, or empty if there are no more
* results in the list.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The provisioning quotas registered in this project.
*
* @param ProvisioningQuota[] $provisioningQuotas
*/
public function setProvisioningQuotas($provisioningQuotas)
{
$this->provisioningQuotas = $provisioningQuotas;
}
/**
* @return ProvisioningQuota[]
*/
public function getProvisioningQuotas()
{
return $this->provisioningQuotas;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListProvisioningQuotasResponse::class, 'Google_Service_Baremetalsolution_ListProvisioningQuotasResponse');
@@ -0,0 +1,69 @@
<?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\Baremetalsolution;
class ListSSHKeysResponse extends \Google\Collection
{
protected $collection_key = 'sshKeys';
/**
* Token to retrieve the next page of results, or empty if there are no more
* results in the list.
*
* @var string
*/
public $nextPageToken;
protected $sshKeysType = SSHKey::class;
protected $sshKeysDataType = 'array';
/**
* Token to retrieve the next page of results, or empty if there are no more
* results in the list.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The SSH keys registered in the project.
*
* @param SSHKey[] $sshKeys
*/
public function setSshKeys($sshKeys)
{
$this->sshKeys = $sshKeys;
}
/**
* @return SSHKey[]
*/
public function getSshKeys()
{
return $this->sshKeys;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSSHKeysResponse::class, 'Google_Service_Baremetalsolution_ListSSHKeysResponse');
@@ -0,0 +1,61 @@
<?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\Baremetalsolution;
class ListSnapshotSchedulePoliciesResponse extends \Google\Collection
{
protected $collection_key = 'snapshotSchedulePolicies';
/**
* @var string
*/
public $nextPageToken;
protected $snapshotSchedulePoliciesType = SnapshotSchedulePolicy::class;
protected $snapshotSchedulePoliciesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param SnapshotSchedulePolicy[]
*/
public function setSnapshotSchedulePolicies($snapshotSchedulePolicies)
{
$this->snapshotSchedulePolicies = $snapshotSchedulePolicies;
}
/**
* @return SnapshotSchedulePolicy[]
*/
public function getSnapshotSchedulePolicies()
{
return $this->snapshotSchedulePolicies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSnapshotSchedulePoliciesResponse::class, 'Google_Service_Baremetalsolution_ListSnapshotSchedulePoliciesResponse');
@@ -0,0 +1,89 @@
<?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\Baremetalsolution;
class ListVolumeSnapshotsResponse extends \Google\Collection
{
protected $collection_key = 'volumeSnapshots';
/**
* A token identifying a page of results from the server.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
protected $volumeSnapshotsType = VolumeSnapshot::class;
protected $volumeSnapshotsDataType = 'array';
/**
* A token identifying a page of results from the server.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* The list of snapshots.
*
* @param VolumeSnapshot[] $volumeSnapshots
*/
public function setVolumeSnapshots($volumeSnapshots)
{
$this->volumeSnapshots = $volumeSnapshots;
}
/**
* @return VolumeSnapshot[]
*/
public function getVolumeSnapshots()
{
return $this->volumeSnapshots;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVolumeSnapshotsResponse::class, 'Google_Service_Baremetalsolution_ListVolumeSnapshotsResponse');
@@ -0,0 +1,89 @@
<?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\Baremetalsolution;
class ListVolumesResponse extends \Google\Collection
{
protected $collection_key = 'volumes';
/**
* A token identifying a page of results from the server.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
protected $volumesType = Volume::class;
protected $volumesDataType = 'array';
/**
* A token identifying a page of results from the server.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* The list of storage volumes.
*
* @param Volume[] $volumes
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return Volume[]
*/
public function getVolumes()
{
return $this->volumes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListVolumesResponse::class, 'Google_Service_Baremetalsolution_ListVolumesResponse');
@@ -0,0 +1,63 @@
<?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\Baremetalsolution;
class LoadInstanceAuthInfoResponse extends \Google\Collection
{
protected $collection_key = 'sshKeys';
protected $sshKeysType = SSHKey::class;
protected $sshKeysDataType = 'array';
protected $userAccountsType = UserAccount::class;
protected $userAccountsDataType = 'map';
/**
* List of ssh keys.
*
* @param SSHKey[] $sshKeys
*/
public function setSshKeys($sshKeys)
{
$this->sshKeys = $sshKeys;
}
/**
* @return SSHKey[]
*/
public function getSshKeys()
{
return $this->sshKeys;
}
/**
* Map of username to the user account info.
*
* @param UserAccount[] $userAccounts
*/
public function setUserAccounts($userAccounts)
{
$this->userAccounts = $userAccounts;
}
/**
* @return UserAccount[]
*/
public function getUserAccounts()
{
return $this->userAccounts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LoadInstanceAuthInfoResponse::class, 'Google_Service_Baremetalsolution_LoadInstanceAuthInfoResponse');
@@ -0,0 +1,144 @@
<?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\Baremetalsolution;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_Baremetalsolution_Location');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class LogicalInterface extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var bool
*/
public $required;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param bool
*/
public function setRequired($required)
{
$this->required = $required;
}
/**
* @return bool
*/
public function getRequired()
{
return $this->required;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogicalInterface::class, 'Google_Service_Baremetalsolution_LogicalInterface');
@@ -0,0 +1,152 @@
<?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\Baremetalsolution;
class LogicalNetworkInterface extends \Google\Model
{
/**
* Unspecified value.
*/
public const NETWORK_TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Client network, a network peered to a Google Cloud VPC.
*/
public const NETWORK_TYPE_CLIENT = 'CLIENT';
/**
* Private network, a network local to the Bare Metal Solution environment.
*/
public const NETWORK_TYPE_PRIVATE = 'PRIVATE';
/**
* Whether this interface is the default gateway for the instance. Only one
* interface can be the default gateway for the instance.
*
* @var bool
*/
public $defaultGateway;
/**
* An identifier for the `Network`, generated by the backend.
*
* @var string
*/
public $id;
/**
* IP address in the network
*
* @var string
*/
public $ipAddress;
/**
* Name of the network
*
* @var string
*/
public $network;
/**
* Type of network.
*
* @var string
*/
public $networkType;
/**
* Whether this interface is the default gateway for the instance. Only one
* interface can be the default gateway for the instance.
*
* @param bool $defaultGateway
*/
public function setDefaultGateway($defaultGateway)
{
$this->defaultGateway = $defaultGateway;
}
/**
* @return bool
*/
public function getDefaultGateway()
{
return $this->defaultGateway;
}
/**
* An identifier for the `Network`, generated by the backend.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* IP address in the network
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* Name of the network
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Type of network.
*
* Accepted values: TYPE_UNSPECIFIED, CLIENT, PRIVATE
*
* @param self::NETWORK_TYPE_* $networkType
*/
public function setNetworkType($networkType)
{
$this->networkType = $networkType;
}
/**
* @return self::NETWORK_TYPE_*
*/
public function getNetworkType()
{
return $this->networkType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogicalNetworkInterface::class, 'Google_Service_Baremetalsolution_LogicalNetworkInterface');
@@ -0,0 +1,346 @@
<?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\Baremetalsolution;
class Lun extends \Google\Collection
{
/**
* Server has no OS specified.
*/
public const MULTIPROTOCOL_TYPE_MULTIPROTOCOL_TYPE_UNSPECIFIED = 'MULTIPROTOCOL_TYPE_UNSPECIFIED';
/**
* Server with Linux OS.
*/
public const MULTIPROTOCOL_TYPE_LINUX = 'LINUX';
/**
* The LUN is in an unknown state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The LUN is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The LUN is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The LUN is ready for use.
*/
public const STATE_READY = 'READY';
/**
* The LUN has been requested to be deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The LUN is in cool off state. It will be deleted after `expire_time`.
*/
public const STATE_COOL_OFF = 'COOL_OFF';
/**
* The storage type for this LUN is unknown.
*/
public const STORAGE_TYPE_STORAGE_TYPE_UNSPECIFIED = 'STORAGE_TYPE_UNSPECIFIED';
/**
* This storage type for this LUN is SSD.
*/
public const STORAGE_TYPE_SSD = 'SSD';
/**
* This storage type for this LUN is HDD.
*/
public const STORAGE_TYPE_HDD = 'HDD';
protected $collection_key = 'instances';
/**
* Display if this LUN is a boot LUN.
*
* @var bool
*/
public $bootLun;
/**
* Output only. Time after which LUN will be fully deleted. It is filled only
* for LUNs in COOL_OFF state.
*
* @var string
*/
public $expireTime;
/**
* An identifier for the LUN, generated by the backend.
*
* @var string
*/
public $id;
/**
* Output only. Instances this Lun is attached to.
*
* @var string[]
*/
public $instances;
/**
* The LUN multiprotocol type ensures the characteristics of the LUN are
* optimized for each operating system.
*
* @var string
*/
public $multiprotocolType;
/**
* Output only. The name of the LUN.
*
* @var string
*/
public $name;
/**
* Display if this LUN can be shared between multiple physical servers.
*
* @var bool
*/
public $shareable;
/**
* The size of this LUN, in GiB.
*
* @var string
*/
public $sizeGb;
/**
* The state of this storage volume.
*
* @var string
*/
public $state;
/**
* The storage type for this LUN.
*
* @var string
*/
public $storageType;
/**
* Display the storage volume for this LUN.
*
* @var string
*/
public $storageVolume;
/**
* The WWID for this LUN.
*
* @var string
*/
public $wwid;
/**
* Display if this LUN is a boot LUN.
*
* @param bool $bootLun
*/
public function setBootLun($bootLun)
{
$this->bootLun = $bootLun;
}
/**
* @return bool
*/
public function getBootLun()
{
return $this->bootLun;
}
/**
* Output only. Time after which LUN will be fully deleted. It is filled only
* for LUNs in COOL_OFF state.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* An identifier for the LUN, generated by the backend.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. Instances this Lun is attached to.
*
* @param string[] $instances
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return string[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* The LUN multiprotocol type ensures the characteristics of the LUN are
* optimized for each operating system.
*
* Accepted values: MULTIPROTOCOL_TYPE_UNSPECIFIED, LINUX
*
* @param self::MULTIPROTOCOL_TYPE_* $multiprotocolType
*/
public function setMultiprotocolType($multiprotocolType)
{
$this->multiprotocolType = $multiprotocolType;
}
/**
* @return self::MULTIPROTOCOL_TYPE_*
*/
public function getMultiprotocolType()
{
return $this->multiprotocolType;
}
/**
* Output only. The name of the LUN.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Display if this LUN can be shared between multiple physical servers.
*
* @param bool $shareable
*/
public function setShareable($shareable)
{
$this->shareable = $shareable;
}
/**
* @return bool
*/
public function getShareable()
{
return $this->shareable;
}
/**
* The size of this LUN, in GiB.
*
* @param string $sizeGb
*/
public function setSizeGb($sizeGb)
{
$this->sizeGb = $sizeGb;
}
/**
* @return string
*/
public function getSizeGb()
{
return $this->sizeGb;
}
/**
* The state of this storage volume.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, UPDATING, READY, DELETING,
* COOL_OFF
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* The storage type for this LUN.
*
* Accepted values: STORAGE_TYPE_UNSPECIFIED, SSD, HDD
*
* @param self::STORAGE_TYPE_* $storageType
*/
public function setStorageType($storageType)
{
$this->storageType = $storageType;
}
/**
* @return self::STORAGE_TYPE_*
*/
public function getStorageType()
{
return $this->storageType;
}
/**
* Display the storage volume for this LUN.
*
* @param string $storageVolume
*/
public function setStorageVolume($storageVolume)
{
$this->storageVolume = $storageVolume;
}
/**
* @return string
*/
public function getStorageVolume()
{
return $this->storageVolume;
}
/**
* The WWID for this LUN.
*
* @param string $wwid
*/
public function setWwid($wwid)
{
$this->wwid = $wwid;
}
/**
* @return string
*/
public function getWwid()
{
return $this->wwid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Lun::class, 'Google_Service_Baremetalsolution_Lun');
@@ -0,0 +1,70 @@
<?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\Baremetalsolution;
class LunRange extends \Google\Model
{
/**
* Number of LUNs to create.
*
* @var int
*/
public $quantity;
/**
* The requested size of each LUN, in GB.
*
* @var int
*/
public $sizeGb;
/**
* Number of LUNs to create.
*
* @param int $quantity
*/
public function setQuantity($quantity)
{
$this->quantity = $quantity;
}
/**
* @return int
*/
public function getQuantity()
{
return $this->quantity;
}
/**
* The requested size of each LUN, in GB.
*
* @param int $sizeGb
*/
public function setSizeGb($sizeGb)
{
$this->sizeGb = $sizeGb;
}
/**
* @return int
*/
public function getSizeGb()
{
return $this->sizeGb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LunRange::class, 'Google_Service_Baremetalsolution_LunRange');
@@ -0,0 +1,440 @@
<?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\Baremetalsolution;
class Network extends \Google\Collection
{
/**
* The Network is in an unknown state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The Network is provisioning.
*/
public const STATE_PROVISIONING = 'PROVISIONING';
/**
* The Network has been provisioned.
*/
public const STATE_PROVISIONED = 'PROVISIONED';
/**
* The Network is being deprovisioned.
*/
public const STATE_DEPROVISIONING = 'DEPROVISIONING';
/**
* The Network is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* Unspecified value.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Client network, a network peered to a Google Cloud VPC.
*/
public const TYPE_CLIENT = 'CLIENT';
/**
* Private network, a network local to the Bare Metal Solution environment.
*/
public const TYPE_PRIVATE = 'PRIVATE';
protected $collection_key = 'reservations';
/**
* The cidr of the Network.
*
* @var string
*/
public $cidr;
/**
* Output only. Gateway ip address.
*
* @var string
*/
public $gatewayIp;
/**
* An identifier for the `Network`, generated by the backend.
*
* @var string
*/
public $id;
/**
* IP address configured.
*
* @var string
*/
public $ipAddress;
/**
* Whether network uses standard frames or jumbo ones.
*
* @var bool
*/
public $jumboFramesEnabled;
/**
* Labels as key value pairs.
*
* @var string[]
*/
public $labels;
/**
* List of physical interfaces.
*
* @var string[]
*/
public $macAddress;
protected $mountPointsType = NetworkMountPoint::class;
protected $mountPointsDataType = 'array';
/**
* Output only. The resource name of this `Network`. Resource names are
* schemeless URIs that follow the conventions in
* https://cloud.google.com/apis/design/resource_names. Format:
* `projects/{project}/locations/{location}/networks/{network}`
*
* @var string
*/
public $name;
/**
* Immutable. Pod name. Pod is an independent part of infrastructure. Network
* can only be connected to the assets (instances, nfsshares) allocated in the
* same pod.
*
* @var string
*/
public $pod;
protected $reservationsType = NetworkAddressReservation::class;
protected $reservationsDataType = 'array';
/**
* IP range for reserved for services (e.g. NFS).
*
* @var string
*/
public $servicesCidr;
/**
* The Network state.
*
* @var string
*/
public $state;
/**
* The type of this network.
*
* @var string
*/
public $type;
/**
* The vlan id of the Network.
*
* @var string
*/
public $vlanId;
protected $vrfType = VRF::class;
protected $vrfDataType = '';
/**
* Optional. The name of a pre-existing Vrf that the network should be
* attached to. Format is `vrfs/{vrf}`.
*
* @var string
*/
public $vrfAttachment;
/**
* The cidr of the Network.
*
* @param string $cidr
*/
public function setCidr($cidr)
{
$this->cidr = $cidr;
}
/**
* @return string
*/
public function getCidr()
{
return $this->cidr;
}
/**
* Output only. Gateway ip address.
*
* @param string $gatewayIp
*/
public function setGatewayIp($gatewayIp)
{
$this->gatewayIp = $gatewayIp;
}
/**
* @return string
*/
public function getGatewayIp()
{
return $this->gatewayIp;
}
/**
* An identifier for the `Network`, generated by the backend.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* IP address configured.
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* Whether network uses standard frames or jumbo ones.
*
* @param bool $jumboFramesEnabled
*/
public function setJumboFramesEnabled($jumboFramesEnabled)
{
$this->jumboFramesEnabled = $jumboFramesEnabled;
}
/**
* @return bool
*/
public function getJumboFramesEnabled()
{
return $this->jumboFramesEnabled;
}
/**
* Labels as key value pairs.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* List of physical interfaces.
*
* @param string[] $macAddress
*/
public function setMacAddress($macAddress)
{
$this->macAddress = $macAddress;
}
/**
* @return string[]
*/
public function getMacAddress()
{
return $this->macAddress;
}
/**
* Input only. List of mount points to attach the network to.
*
* @param NetworkMountPoint[] $mountPoints
*/
public function setMountPoints($mountPoints)
{
$this->mountPoints = $mountPoints;
}
/**
* @return NetworkMountPoint[]
*/
public function getMountPoints()
{
return $this->mountPoints;
}
/**
* Output only. The resource name of this `Network`. Resource names are
* schemeless URIs that follow the conventions in
* https://cloud.google.com/apis/design/resource_names. Format:
* `projects/{project}/locations/{location}/networks/{network}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Immutable. Pod name. Pod is an independent part of infrastructure. Network
* can only be connected to the assets (instances, nfsshares) allocated in the
* same pod.
*
* @param string $pod
*/
public function setPod($pod)
{
$this->pod = $pod;
}
/**
* @return string
*/
public function getPod()
{
return $this->pod;
}
/**
* List of IP address reservations in this network. When updating this field,
* an error will be generated if a reservation conflicts with an IP address
* already allocated to a physical server.
*
* @param NetworkAddressReservation[] $reservations
*/
public function setReservations($reservations)
{
$this->reservations = $reservations;
}
/**
* @return NetworkAddressReservation[]
*/
public function getReservations()
{
return $this->reservations;
}
/**
* IP range for reserved for services (e.g. NFS).
*
* @param string $servicesCidr
*/
public function setServicesCidr($servicesCidr)
{
$this->servicesCidr = $servicesCidr;
}
/**
* @return string
*/
public function getServicesCidr()
{
return $this->servicesCidr;
}
/**
* The Network state.
*
* Accepted values: STATE_UNSPECIFIED, PROVISIONING, PROVISIONED,
* DEPROVISIONING, UPDATING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* The type of this network.
*
* Accepted values: TYPE_UNSPECIFIED, CLIENT, PRIVATE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* The vlan id of the Network.
*
* @param string $vlanId
*/
public function setVlanId($vlanId)
{
$this->vlanId = $vlanId;
}
/**
* @return string
*/
public function getVlanId()
{
return $this->vlanId;
}
/**
* The Vrf for the Network. Use this only if a new Vrf needs to be created.
*
* @param VRF $vrf
*/
public function setVrf(VRF $vrf)
{
$this->vrf = $vrf;
}
/**
* @return VRF
*/
public function getVrf()
{
return $this->vrf;
}
/**
* Optional. The name of a pre-existing Vrf that the network should be
* attached to. Format is `vrfs/{vrf}`.
*
* @param string $vrfAttachment
*/
public function setVrfAttachment($vrfAttachment)
{
$this->vrfAttachment = $vrfAttachment;
}
/**
* @return string
*/
public function getVrfAttachment()
{
return $this->vrfAttachment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Network::class, 'Google_Service_Baremetalsolution_Network');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class NetworkAddress extends \Google\Model
{
/**
* IPv4 address to be assigned to the server.
*
* @var string
*/
public $address;
/**
* Name of the existing network to use.
*
* @var string
*/
public $existingNetworkId;
/**
* Id of the network to use, within the same ProvisioningConfig request.
*
* @var string
*/
public $networkId;
/**
* IPv4 address to be assigned to the server.
*
* @param string $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* Name of the existing network to use.
*
* @param string $existingNetworkId
*/
public function setExistingNetworkId($existingNetworkId)
{
$this->existingNetworkId = $existingNetworkId;
}
/**
* @return string
*/
public function getExistingNetworkId()
{
return $this->existingNetworkId;
}
/**
* Id of the network to use, within the same ProvisioningConfig request.
*
* @param string $networkId
*/
public function setNetworkId($networkId)
{
$this->networkId = $networkId;
}
/**
* @return string
*/
public function getNetworkId()
{
return $this->networkId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkAddress::class, 'Google_Service_Baremetalsolution_NetworkAddress');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class NetworkAddressReservation extends \Google\Model
{
/**
* The last address of this reservation block, inclusive. I.e., for cases when
* reservations are only single addresses, end_address and start_address will
* be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
*
* @var string
*/
public $endAddress;
/**
* A note about this reservation, intended for human consumption.
*
* @var string
*/
public $note;
/**
* The first address of this reservation block. Must be specified as a single
* IPv4 address, e.g. 10.1.2.2.
*
* @var string
*/
public $startAddress;
/**
* The last address of this reservation block, inclusive. I.e., for cases when
* reservations are only single addresses, end_address and start_address will
* be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
*
* @param string $endAddress
*/
public function setEndAddress($endAddress)
{
$this->endAddress = $endAddress;
}
/**
* @return string
*/
public function getEndAddress()
{
return $this->endAddress;
}
/**
* A note about this reservation, intended for human consumption.
*
* @param string $note
*/
public function setNote($note)
{
$this->note = $note;
}
/**
* @return string
*/
public function getNote()
{
return $this->note;
}
/**
* The first address of this reservation block. Must be specified as a single
* IPv4 address, e.g. 10.1.2.2.
*
* @param string $startAddress
*/
public function setStartAddress($startAddress)
{
$this->startAddress = $startAddress;
}
/**
* @return string
*/
public function getStartAddress()
{
return $this->startAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkAddressReservation::class, 'Google_Service_Baremetalsolution_NetworkAddressReservation');
@@ -0,0 +1,359 @@
<?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\Baremetalsolution;
class NetworkConfig extends \Google\Collection
{
/**
* Unspecified value.
*/
public const BANDWIDTH_BANDWIDTH_UNSPECIFIED = 'BANDWIDTH_UNSPECIFIED';
/**
* 1 Gbps.
*/
public const BANDWIDTH_BW_1_GBPS = 'BW_1_GBPS';
/**
* 2 Gbps.
*/
public const BANDWIDTH_BW_2_GBPS = 'BW_2_GBPS';
/**
* 5 Gbps.
*/
public const BANDWIDTH_BW_5_GBPS = 'BW_5_GBPS';
/**
* 10 Gbps.
*/
public const BANDWIDTH_BW_10_GBPS = 'BW_10_GBPS';
/**
* Unspecified value.
*/
public const SERVICE_CIDR_SERVICE_CIDR_UNSPECIFIED = 'SERVICE_CIDR_UNSPECIFIED';
/**
* Services are disabled for the given network.
*/
public const SERVICE_CIDR_DISABLED = 'DISABLED';
/**
* Use the highest /26 block of the network to host services.
*/
public const SERVICE_CIDR_HIGH_26 = 'HIGH_26';
/**
* Use the highest /27 block of the network to host services.
*/
public const SERVICE_CIDR_HIGH_27 = 'HIGH_27';
/**
* Use the highest /28 block of the network to host services.
*/
public const SERVICE_CIDR_HIGH_28 = 'HIGH_28';
/**
* Unspecified value.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Client network, that is a network peered to a GCP VPC.
*/
public const TYPE_CLIENT = 'CLIENT';
/**
* Private network, that is a network local to the BMS POD.
*/
public const TYPE_PRIVATE = 'PRIVATE';
protected $collection_key = 'vlanAttachments';
/**
* Interconnect bandwidth. Set only when type is CLIENT.
*
* @var string
*/
public $bandwidth;
/**
* CIDR range of the network.
*
* @var string
*/
public $cidr;
/**
* The GCP service of the network. Available gcp_service are in
* https://cloud.google.com/bare-metal/docs/bms-planning.
*
* @var string
*/
public $gcpService;
/**
* A transient unique identifier to identify a volume within an
* ProvisioningConfig request.
*
* @var string
*/
public $id;
/**
* The JumboFramesEnabled option for customer to set.
*
* @var bool
*/
public $jumboFramesEnabled;
/**
* Output only. The name of the network config.
*
* @var string
*/
public $name;
/**
* Service CIDR, if any.
*
* @var string
*/
public $serviceCidr;
/**
* The type of this network, either Client or Private.
*
* @var string
*/
public $type;
/**
* User note field, it can be used by customers to add additional information
* for the BMS Ops team .
*
* @var string
*/
public $userNote;
protected $vlanAttachmentsType = IntakeVlanAttachment::class;
protected $vlanAttachmentsDataType = 'array';
/**
* Whether the VLAN attachment pair is located in the same project.
*
* @var bool
*/
public $vlanSameProject;
/**
* Optional. The name of a pre-existing Vrf that the network should be
* attached to. Format is `vrfs/{vrf}`. If vrf is specified, vlan_attachments
* must be empty.
*
* @var string
*/
public $vrf;
/**
* Interconnect bandwidth. Set only when type is CLIENT.
*
* Accepted values: BANDWIDTH_UNSPECIFIED, BW_1_GBPS, BW_2_GBPS, BW_5_GBPS,
* BW_10_GBPS
*
* @param self::BANDWIDTH_* $bandwidth
*/
public function setBandwidth($bandwidth)
{
$this->bandwidth = $bandwidth;
}
/**
* @return self::BANDWIDTH_*
*/
public function getBandwidth()
{
return $this->bandwidth;
}
/**
* CIDR range of the network.
*
* @param string $cidr
*/
public function setCidr($cidr)
{
$this->cidr = $cidr;
}
/**
* @return string
*/
public function getCidr()
{
return $this->cidr;
}
/**
* The GCP service of the network. Available gcp_service are in
* https://cloud.google.com/bare-metal/docs/bms-planning.
*
* @param string $gcpService
*/
public function setGcpService($gcpService)
{
$this->gcpService = $gcpService;
}
/**
* @return string
*/
public function getGcpService()
{
return $this->gcpService;
}
/**
* A transient unique identifier to identify a volume within an
* ProvisioningConfig request.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The JumboFramesEnabled option for customer to set.
*
* @param bool $jumboFramesEnabled
*/
public function setJumboFramesEnabled($jumboFramesEnabled)
{
$this->jumboFramesEnabled = $jumboFramesEnabled;
}
/**
* @return bool
*/
public function getJumboFramesEnabled()
{
return $this->jumboFramesEnabled;
}
/**
* Output only. The name of the network config.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Service CIDR, if any.
*
* Accepted values: SERVICE_CIDR_UNSPECIFIED, DISABLED, HIGH_26, HIGH_27,
* HIGH_28
*
* @param self::SERVICE_CIDR_* $serviceCidr
*/
public function setServiceCidr($serviceCidr)
{
$this->serviceCidr = $serviceCidr;
}
/**
* @return self::SERVICE_CIDR_*
*/
public function getServiceCidr()
{
return $this->serviceCidr;
}
/**
* The type of this network, either Client or Private.
*
* Accepted values: TYPE_UNSPECIFIED, CLIENT, PRIVATE
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* User note field, it can be used by customers to add additional information
* for the BMS Ops team .
*
* @param string $userNote
*/
public function setUserNote($userNote)
{
$this->userNote = $userNote;
}
/**
* @return string
*/
public function getUserNote()
{
return $this->userNote;
}
/**
* List of VLAN attachments. As of now there are always 2 attachments, but it
* is going to change in the future (multi vlan). Use only one of
* vlan_attachments or vrf
*
* @param IntakeVlanAttachment[] $vlanAttachments
*/
public function setVlanAttachments($vlanAttachments)
{
$this->vlanAttachments = $vlanAttachments;
}
/**
* @return IntakeVlanAttachment[]
*/
public function getVlanAttachments()
{
return $this->vlanAttachments;
}
/**
* Whether the VLAN attachment pair is located in the same project.
*
* @param bool $vlanSameProject
*/
public function setVlanSameProject($vlanSameProject)
{
$this->vlanSameProject = $vlanSameProject;
}
/**
* @return bool
*/
public function getVlanSameProject()
{
return $this->vlanSameProject;
}
/**
* Optional. The name of a pre-existing Vrf that the network should be
* attached to. Format is `vrfs/{vrf}`. If vrf is specified, vlan_attachments
* must be empty.
*
* @param string $vrf
*/
public function setVrf($vrf)
{
$this->vrf = $vrf;
}
/**
* @return string
*/
public function getVrf()
{
return $this->vrf;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkConfig::class, 'Google_Service_Baremetalsolution_NetworkConfig');
@@ -0,0 +1,114 @@
<?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\Baremetalsolution;
class NetworkMountPoint extends \Google\Model
{
/**
* Network should be a default gateway.
*
* @var bool
*/
public $defaultGateway;
/**
* Instance to attach network to.
*
* @var string
*/
public $instance;
/**
* Ip address of the server.
*
* @var string
*/
public $ipAddress;
/**
* Logical interface to detach from.
*
* @var string
*/
public $logicalInterface;
/**
* Network should be a default gateway.
*
* @param bool $defaultGateway
*/
public function setDefaultGateway($defaultGateway)
{
$this->defaultGateway = $defaultGateway;
}
/**
* @return bool
*/
public function getDefaultGateway()
{
return $this->defaultGateway;
}
/**
* Instance to attach network to.
*
* @param string $instance
*/
public function setInstance($instance)
{
$this->instance = $instance;
}
/**
* @return string
*/
public function getInstance()
{
return $this->instance;
}
/**
* Ip address of the server.
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* Logical interface to detach from.
*
* @param string $logicalInterface
*/
public function setLogicalInterface($logicalInterface)
{
$this->logicalInterface = $logicalInterface;
}
/**
* @return string
*/
public function getLogicalInterface()
{
return $this->logicalInterface;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkMountPoint::class, 'Google_Service_Baremetalsolution_NetworkMountPoint');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class NetworkUsage extends \Google\Collection
{
protected $collection_key = 'usedIps';
protected $networkType = Network::class;
protected $networkDataType = '';
/**
* All used IP addresses in this network.
*
* @var string[]
*/
public $usedIps;
/**
* Network.
*
* @param Network $network
*/
public function setNetwork(Network $network)
{
$this->network = $network;
}
/**
* @return Network
*/
public function getNetwork()
{
return $this->network;
}
/**
* All used IP addresses in this network.
*
* @param string[] $usedIps
*/
public function setUsedIps($usedIps)
{
$this->usedIps = $usedIps;
}
/**
* @return string[]
*/
public function getUsedIps()
{
return $this->usedIps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NetworkUsage::class, 'Google_Service_Baremetalsolution_NetworkUsage');
@@ -0,0 +1,200 @@
<?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\Baremetalsolution;
class NfsExport extends \Google\Model
{
/**
* Unspecified value.
*/
public const PERMISSIONS_PERMISSIONS_UNSPECIFIED = 'PERMISSIONS_UNSPECIFIED';
/**
* Read-only permission.
*/
public const PERMISSIONS_READ_ONLY = 'READ_ONLY';
/**
* Read-write permission.
*/
public const PERMISSIONS_READ_WRITE = 'READ_WRITE';
/**
* Allow dev flag in NfsShare AllowedClientsRequest.
*
* @var bool
*/
public $allowDev;
/**
* Allow the setuid flag.
*
* @var bool
*/
public $allowSuid;
/**
* A CIDR range.
*
* @var string
*/
public $cidr;
/**
* Either a single machine, identified by an ID, or a comma-separated list of
* machine IDs.
*
* @var string
*/
public $machineId;
/**
* Network to use to publish the export.
*
* @var string
*/
public $networkId;
/**
* Disable root squashing, which is a feature of NFS. Root squash is a special
* mapping of the remote superuser (root) identity when using identity
* authentication.
*
* @var bool
*/
public $noRootSquash;
/**
* Export permissions.
*
* @var string
*/
public $permissions;
/**
* Allow dev flag in NfsShare AllowedClientsRequest.
*
* @param bool $allowDev
*/
public function setAllowDev($allowDev)
{
$this->allowDev = $allowDev;
}
/**
* @return bool
*/
public function getAllowDev()
{
return $this->allowDev;
}
/**
* Allow the setuid flag.
*
* @param bool $allowSuid
*/
public function setAllowSuid($allowSuid)
{
$this->allowSuid = $allowSuid;
}
/**
* @return bool
*/
public function getAllowSuid()
{
return $this->allowSuid;
}
/**
* A CIDR range.
*
* @param string $cidr
*/
public function setCidr($cidr)
{
$this->cidr = $cidr;
}
/**
* @return string
*/
public function getCidr()
{
return $this->cidr;
}
/**
* Either a single machine, identified by an ID, or a comma-separated list of
* machine IDs.
*
* @param string $machineId
*/
public function setMachineId($machineId)
{
$this->machineId = $machineId;
}
/**
* @return string
*/
public function getMachineId()
{
return $this->machineId;
}
/**
* Network to use to publish the export.
*
* @param string $networkId
*/
public function setNetworkId($networkId)
{
$this->networkId = $networkId;
}
/**
* @return string
*/
public function getNetworkId()
{
return $this->networkId;
}
/**
* Disable root squashing, which is a feature of NFS. Root squash is a special
* mapping of the remote superuser (root) identity when using identity
* authentication.
*
* @param bool $noRootSquash
*/
public function setNoRootSquash($noRootSquash)
{
$this->noRootSquash = $noRootSquash;
}
/**
* @return bool
*/
public function getNoRootSquash()
{
return $this->noRootSquash;
}
/**
* Export permissions.
*
* Accepted values: PERMISSIONS_UNSPECIFIED, READ_ONLY, READ_WRITE
*
* @param self::PERMISSIONS_* $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return self::PERMISSIONS_*
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NfsExport::class, 'Google_Service_Baremetalsolution_NfsExport');
@@ -0,0 +1,290 @@
<?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\Baremetalsolution;
class NfsShare extends \Google\Collection
{
/**
* The share is in an unknown state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The share has been provisioned.
*/
public const STATE_PROVISIONED = 'PROVISIONED';
/**
* The NFS Share is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The NFS Share is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The NFS Share has been requested to be deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The storage type for this volume is unknown.
*/
public const STORAGE_TYPE_STORAGE_TYPE_UNSPECIFIED = 'STORAGE_TYPE_UNSPECIFIED';
/**
* The storage type for this volume is SSD.
*/
public const STORAGE_TYPE_SSD = 'SSD';
/**
* This storage type for this volume is HDD.
*/
public const STORAGE_TYPE_HDD = 'HDD';
protected $collection_key = 'allowedClients';
protected $allowedClientsType = AllowedClient::class;
protected $allowedClientsDataType = 'array';
/**
* Output only. An identifier for the NFS share, generated by the backend.
* This is the same value as nfs_share_id and will replace it in the future.
*
* @var string
*/
public $id;
/**
* Labels as key value pairs.
*
* @var string[]
*/
public $labels;
/**
* Immutable. The name of the NFS share.
*
* @var string
*/
public $name;
/**
* Output only. An identifier for the NFS share, generated by the backend.
* This field will be deprecated in the future, use `id` instead.
*
* @var string
*/
public $nfsShareId;
/**
* Immutable. Pod name. Pod is an independent part of infrastructure. NFSShare
* can only be connected to the assets (networks, instances) allocated in the
* same pod.
*
* @var string
*/
public $pod;
/**
* The requested size, in GiB.
*
* @var string
*/
public $requestedSizeGib;
/**
* Output only. The state of the NFS share.
*
* @var string
*/
public $state;
/**
* Immutable. The storage type of the underlying volume.
*
* @var string
*/
public $storageType;
/**
* Output only. The underlying volume of the share. Created automatically
* during provisioning.
*
* @var string
*/
public $volume;
/**
* List of allowed access points.
*
* @param AllowedClient[] $allowedClients
*/
public function setAllowedClients($allowedClients)
{
$this->allowedClients = $allowedClients;
}
/**
* @return AllowedClient[]
*/
public function getAllowedClients()
{
return $this->allowedClients;
}
/**
* Output only. An identifier for the NFS share, generated by the backend.
* This is the same value as nfs_share_id and will replace it in the future.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Labels as key value pairs.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Immutable. The name of the NFS share.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. An identifier for the NFS share, generated by the backend.
* This field will be deprecated in the future, use `id` instead.
*
* @param string $nfsShareId
*/
public function setNfsShareId($nfsShareId)
{
$this->nfsShareId = $nfsShareId;
}
/**
* @return string
*/
public function getNfsShareId()
{
return $this->nfsShareId;
}
/**
* Immutable. Pod name. Pod is an independent part of infrastructure. NFSShare
* can only be connected to the assets (networks, instances) allocated in the
* same pod.
*
* @param string $pod
*/
public function setPod($pod)
{
$this->pod = $pod;
}
/**
* @return string
*/
public function getPod()
{
return $this->pod;
}
/**
* The requested size, in GiB.
*
* @param string $requestedSizeGib
*/
public function setRequestedSizeGib($requestedSizeGib)
{
$this->requestedSizeGib = $requestedSizeGib;
}
/**
* @return string
*/
public function getRequestedSizeGib()
{
return $this->requestedSizeGib;
}
/**
* Output only. The state of the NFS share.
*
* Accepted values: STATE_UNSPECIFIED, PROVISIONED, CREATING, UPDATING,
* DELETING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Immutable. The storage type of the underlying volume.
*
* Accepted values: STORAGE_TYPE_UNSPECIFIED, SSD, HDD
*
* @param self::STORAGE_TYPE_* $storageType
*/
public function setStorageType($storageType)
{
$this->storageType = $storageType;
}
/**
* @return self::STORAGE_TYPE_*
*/
public function getStorageType()
{
return $this->storageType;
}
/**
* Output only. The underlying volume of the share. Created automatically
* during provisioning.
*
* @param string $volume
*/
public function setVolume($volume)
{
$this->volume = $volume;
}
/**
* @return string
*/
public function getVolume()
{
return $this->volume;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NfsShare::class, 'Google_Service_Baremetalsolution_NfsShare');
@@ -0,0 +1,141 @@
<?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\Baremetalsolution;
class OSImage extends \Google\Collection
{
protected $collection_key = 'supportedNetworkTemplates';
/**
* Instance types this image is applicable to. [Available
* types](https://cloud.google.com/bare-metal/docs/bms-
* planning#server_configurations)
*
* @var string[]
*/
public $applicableInstanceTypes;
/**
* OS Image code.
*
* @var string
*/
public $code;
/**
* OS Image description.
*
* @var string
*/
public $description;
/**
* Output only. OS Image's unique name.
*
* @var string
*/
public $name;
/**
* Network templates that can be used with this OS Image.
*
* @var string[]
*/
public $supportedNetworkTemplates;
/**
* Instance types this image is applicable to. [Available
* types](https://cloud.google.com/bare-metal/docs/bms-
* planning#server_configurations)
*
* @param string[] $applicableInstanceTypes
*/
public function setApplicableInstanceTypes($applicableInstanceTypes)
{
$this->applicableInstanceTypes = $applicableInstanceTypes;
}
/**
* @return string[]
*/
public function getApplicableInstanceTypes()
{
return $this->applicableInstanceTypes;
}
/**
* OS Image code.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* OS Image description.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. OS Image's unique name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Network templates that can be used with this OS Image.
*
* @param string[] $supportedNetworkTemplates
*/
public function setSupportedNetworkTemplates($supportedNetworkTemplates)
{
$this->supportedNetworkTemplates = $supportedNetworkTemplates;
}
/**
* @return string[]
*/
public function getSupportedNetworkTemplates()
{
return $this->supportedNetworkTemplates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OSImage::class, 'Google_Service_Baremetalsolution_OSImage');
@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_Baremetalsolution_Operation');
@@ -0,0 +1,152 @@
<?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\Baremetalsolution;
class OperationMetadata extends \Google\Model
{
/**
* @var string
*/
public $apiVersion;
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $endTime;
/**
* @var bool
*/
public $requestedCancellation;
/**
* @var string
*/
public $statusMessage;
/**
* @var string
*/
public $target;
/**
* @var string
*/
public $verb;
/**
* @param string
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param bool
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* @param string
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* @param string
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_Baremetalsolution_OperationMetadata');
@@ -0,0 +1,61 @@
<?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\Baremetalsolution;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
public $etag;
public $version;
/**
* @param Binding[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
public function setEtag($etag)
{
$this->etag = $etag;
}
public function getEtag()
{
return $this->etag;
}
public function setVersion($version)
{
$this->version = $version;
}
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_Baremetalsolution_Policy');
@@ -0,0 +1,398 @@
<?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\Baremetalsolution;
class ProvisioningConfig extends \Google\Collection
{
/**
* State wasn't specified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* ProvisioningConfig is a draft and can be freely modified.
*/
public const STATE_DRAFT = 'DRAFT';
/**
* ProvisioningConfig was already submitted and cannot be modified.
*/
public const STATE_SUBMITTED = 'SUBMITTED';
/**
* ProvisioningConfig was in the provisioning state. Initially this state
* comes from the work order table in big query when SNOW is used. Later this
* field can be set by the work order API.
*/
public const STATE_PROVISIONING = 'PROVISIONING';
/**
* ProvisioningConfig was provisioned, meaning the resources exist.
*/
public const STATE_PROVISIONED = 'PROVISIONED';
/**
* ProvisioningConfig was validated. A validation tool will be run to set this
* state.
*/
public const STATE_VALIDATED = 'VALIDATED';
/**
* ProvisioningConfig was canceled.
*/
public const STATE_CANCELLED = 'CANCELLED';
/**
* The request is submitted for provisioning, with error return.
*/
public const STATE_FAILED = 'FAILED';
protected $collection_key = 'volumes';
/**
* Output only. URI to Cloud Console UI view of this provisioning config.
*
* @var string
*/
public $cloudConsoleUri;
/**
* Optional. The user-defined identifier of the provisioning config.
*
* @var string
*/
public $customId;
/**
* Email provided to send a confirmation with provisioning config to.
* Deprecated in favour of email field in request messages.
*
* @deprecated
* @var string
*/
public $email;
/**
* A service account to enable customers to access instance credentials upon
* handover.
*
* @var string
*/
public $handoverServiceAccount;
protected $instancesType = InstanceConfig::class;
protected $instancesDataType = 'array';
/**
* Optional. Location name of this ProvisioningConfig. It is optional only for
* Intake UI transition period.
*
* @var string
*/
public $location;
/**
* Output only. The system-generated name of the provisioning config. This
* follows the UUID format.
*
* @var string
*/
public $name;
protected $networksType = NetworkConfig::class;
protected $networksDataType = 'array';
/**
* Optional. Pod name. Pod is an independent part of infrastructure. Instance
* can be connected to the assets (networks, volumes, nfsshares) allocated in
* the same pod only.
*
* @var string
*/
public $pod;
/**
* Output only. State of ProvisioningConfig.
*
* @var string
*/
public $state;
/**
* Optional status messages associated with the FAILED state.
*
* @var string
*/
public $statusMessage;
/**
* A generated ticket id to track provisioning request.
*
* @var string
*/
public $ticketId;
/**
* Output only. Last update timestamp.
*
* @var string
*/
public $updateTime;
protected $volumesType = VolumeConfig::class;
protected $volumesDataType = 'array';
/**
* If true, VPC SC is enabled for the cluster.
*
* @var bool
*/
public $vpcScEnabled;
/**
* Output only. URI to Cloud Console UI view of this provisioning config.
*
* @param string $cloudConsoleUri
*/
public function setCloudConsoleUri($cloudConsoleUri)
{
$this->cloudConsoleUri = $cloudConsoleUri;
}
/**
* @return string
*/
public function getCloudConsoleUri()
{
return $this->cloudConsoleUri;
}
/**
* Optional. The user-defined identifier of the provisioning config.
*
* @param string $customId
*/
public function setCustomId($customId)
{
$this->customId = $customId;
}
/**
* @return string
*/
public function getCustomId()
{
return $this->customId;
}
/**
* Email provided to send a confirmation with provisioning config to.
* Deprecated in favour of email field in request messages.
*
* @deprecated
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @deprecated
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* A service account to enable customers to access instance credentials upon
* handover.
*
* @param string $handoverServiceAccount
*/
public function setHandoverServiceAccount($handoverServiceAccount)
{
$this->handoverServiceAccount = $handoverServiceAccount;
}
/**
* @return string
*/
public function getHandoverServiceAccount()
{
return $this->handoverServiceAccount;
}
/**
* Instances to be created.
*
* @param InstanceConfig[] $instances
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return InstanceConfig[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* Optional. Location name of this ProvisioningConfig. It is optional only for
* Intake UI transition period.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Output only. The system-generated name of the provisioning config. This
* follows the UUID format.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Networks to be created.
*
* @param NetworkConfig[] $networks
*/
public function setNetworks($networks)
{
$this->networks = $networks;
}
/**
* @return NetworkConfig[]
*/
public function getNetworks()
{
return $this->networks;
}
/**
* Optional. Pod name. Pod is an independent part of infrastructure. Instance
* can be connected to the assets (networks, volumes, nfsshares) allocated in
* the same pod only.
*
* @param string $pod
*/
public function setPod($pod)
{
$this->pod = $pod;
}
/**
* @return string
*/
public function getPod()
{
return $this->pod;
}
/**
* Output only. State of ProvisioningConfig.
*
* Accepted values: STATE_UNSPECIFIED, DRAFT, SUBMITTED, PROVISIONING,
* PROVISIONED, VALIDATED, CANCELLED, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Optional status messages associated with the FAILED state.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* A generated ticket id to track provisioning request.
*
* @param string $ticketId
*/
public function setTicketId($ticketId)
{
$this->ticketId = $ticketId;
}
/**
* @return string
*/
public function getTicketId()
{
return $this->ticketId;
}
/**
* Output only. Last update timestamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Volumes to be created.
*
* @param VolumeConfig[] $volumes
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return VolumeConfig[]
*/
public function getVolumes()
{
return $this->volumes;
}
/**
* If true, VPC SC is enabled for the cluster.
*
* @param bool $vpcScEnabled
*/
public function setVpcScEnabled($vpcScEnabled)
{
$this->vpcScEnabled = $vpcScEnabled;
}
/**
* @return bool
*/
public function getVpcScEnabled()
{
return $this->vpcScEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProvisioningConfig::class, 'Google_Service_Baremetalsolution_ProvisioningConfig');
@@ -0,0 +1,239 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class ProvisioningQuota extends \Google\Model
{
/**
* The unspecified type.
*/
public const ASSET_TYPE_ASSET_TYPE_UNSPECIFIED = 'ASSET_TYPE_UNSPECIFIED';
/**
* The server asset type.
*/
public const ASSET_TYPE_ASSET_TYPE_SERVER = 'ASSET_TYPE_SERVER';
/**
* The storage asset type.
*/
public const ASSET_TYPE_ASSET_TYPE_STORAGE = 'ASSET_TYPE_STORAGE';
/**
* The network asset type.
*/
public const ASSET_TYPE_ASSET_TYPE_NETWORK = 'ASSET_TYPE_NETWORK';
/**
* The asset type of this provisioning quota.
*
* @var string
*/
public $assetType;
/**
* The available count of the provisioning quota.
*
* @var int
*/
public $availableCount;
/**
* The gcp service of the provisioning quota.
*
* @var string
*/
public $gcpService;
protected $instanceQuotaType = InstanceQuota::class;
protected $instanceQuotaDataType = '';
/**
* The specific location of the provisioining quota.
*
* @var string
*/
public $location;
/**
* Output only. The name of the provisioning quota.
*
* @var string
*/
public $name;
/**
* Network bandwidth, Gbps
*
* @var string
*/
public $networkBandwidth;
/**
* Server count.
*
* @var string
*/
public $serverCount;
/**
* Storage size (GB).
*
* @var string
*/
public $storageGib;
/**
* The asset type of this provisioning quota.
*
* Accepted values: ASSET_TYPE_UNSPECIFIED, ASSET_TYPE_SERVER,
* ASSET_TYPE_STORAGE, ASSET_TYPE_NETWORK
*
* @param self::ASSET_TYPE_* $assetType
*/
public function setAssetType($assetType)
{
$this->assetType = $assetType;
}
/**
* @return self::ASSET_TYPE_*
*/
public function getAssetType()
{
return $this->assetType;
}
/**
* The available count of the provisioning quota.
*
* @param int $availableCount
*/
public function setAvailableCount($availableCount)
{
$this->availableCount = $availableCount;
}
/**
* @return int
*/
public function getAvailableCount()
{
return $this->availableCount;
}
/**
* The gcp service of the provisioning quota.
*
* @param string $gcpService
*/
public function setGcpService($gcpService)
{
$this->gcpService = $gcpService;
}
/**
* @return string
*/
public function getGcpService()
{
return $this->gcpService;
}
/**
* Instance quota.
*
* @param InstanceQuota $instanceQuota
*/
public function setInstanceQuota(InstanceQuota $instanceQuota)
{
$this->instanceQuota = $instanceQuota;
}
/**
* @return InstanceQuota
*/
public function getInstanceQuota()
{
return $this->instanceQuota;
}
/**
* The specific location of the provisioining quota.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Output only. The name of the provisioning quota.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Network bandwidth, Gbps
*
* @param string $networkBandwidth
*/
public function setNetworkBandwidth($networkBandwidth)
{
$this->networkBandwidth = $networkBandwidth;
}
/**
* @return string
*/
public function getNetworkBandwidth()
{
return $this->networkBandwidth;
}
/**
* Server count.
*
* @param string $serverCount
*/
public function setServerCount($serverCount)
{
$this->serverCount = $serverCount;
}
/**
* @return string
*/
public function getServerCount()
{
return $this->serverCount;
}
/**
* Storage size (GB).
*
* @param string $storageGib
*/
public function setStorageGib($storageGib)
{
$this->storageGib = $storageGib;
}
/**
* @return string
*/
public function getStorageGib()
{
return $this->storageGib;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProvisioningQuota::class, 'Google_Service_Baremetalsolution_ProvisioningQuota');
@@ -0,0 +1,40 @@
<?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\Baremetalsolution;
class QosPolicy extends \Google\Model
{
/**
* The bandwidth permitted by the QOS policy, in gbps.
*
* @var
*/
public $bandwidthGbps;
public function setBandwidthGbps($bandwidthGbps)
{
$this->bandwidthGbps = $bandwidthGbps;
}
public function getBandwidthGbps()
{
return $this->bandwidthGbps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(QosPolicy::class, 'Google_Service_Baremetalsolution_QosPolicy');
@@ -0,0 +1,101 @@
<?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\Baremetalsolution;
class ReimageInstanceRequest extends \Google\Collection
{
protected $collection_key = 'sshKeys';
/**
* Optional. Name of the KMS crypto key version used to encrypt the initial
* passwords. The key has to have ASYMMETRIC_DECRYPT purpose. Format is `proje
* cts/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryp
* toKeyVersions/{version}`.
*
* @var string
*/
public $kmsKeyVersion;
/**
* Required. The OS image code of the image which will be used in the reimage
* operation.
*
* @var string
*/
public $osImage;
/**
* Optional. List of SSH Keys used during reimaging an instance.
*
* @var string[]
*/
public $sshKeys;
/**
* Optional. Name of the KMS crypto key version used to encrypt the initial
* passwords. The key has to have ASYMMETRIC_DECRYPT purpose. Format is `proje
* cts/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryp
* toKeyVersions/{version}`.
*
* @param string $kmsKeyVersion
*/
public function setKmsKeyVersion($kmsKeyVersion)
{
$this->kmsKeyVersion = $kmsKeyVersion;
}
/**
* @return string
*/
public function getKmsKeyVersion()
{
return $this->kmsKeyVersion;
}
/**
* Required. The OS image code of the image which will be used in the reimage
* operation.
*
* @param string $osImage
*/
public function setOsImage($osImage)
{
$this->osImage = $osImage;
}
/**
* @return string
*/
public function getOsImage()
{
return $this->osImage;
}
/**
* Optional. List of SSH Keys used during reimaging an instance.
*
* @param string[] $sshKeys
*/
public function setSshKeys($sshKeys)
{
$this->sshKeys = $sshKeys;
}
/**
* @return string[]
*/
public function getSshKeys()
{
return $this->sshKeys;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReimageInstanceRequest::class, 'Google_Service_Baremetalsolution_ReimageInstanceRequest');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class RenameInstanceRequest extends \Google\Model
{
/**
* Required. The new `id` of the instance.
*
* @var string
*/
public $newInstanceId;
/**
* Required. The new `id` of the instance.
*
* @param string $newInstanceId
*/
public function setNewInstanceId($newInstanceId)
{
$this->newInstanceId = $newInstanceId;
}
/**
* @return string
*/
public function getNewInstanceId()
{
return $this->newInstanceId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RenameInstanceRequest::class, 'Google_Service_Baremetalsolution_RenameInstanceRequest');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class RenameNetworkRequest extends \Google\Model
{
/**
* Required. The new `id` of the network.
*
* @var string
*/
public $newNetworkId;
/**
* Required. The new `id` of the network.
*
* @param string $newNetworkId
*/
public function setNewNetworkId($newNetworkId)
{
$this->newNetworkId = $newNetworkId;
}
/**
* @return string
*/
public function getNewNetworkId()
{
return $this->newNetworkId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RenameNetworkRequest::class, 'Google_Service_Baremetalsolution_RenameNetworkRequest');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class RenameNfsShareRequest extends \Google\Model
{
/**
* Required. The new `id` of the nfsshare.
*
* @var string
*/
public $newNfsshareId;
/**
* Required. The new `id` of the nfsshare.
*
* @param string $newNfsshareId
*/
public function setNewNfsshareId($newNfsshareId)
{
$this->newNfsshareId = $newNfsshareId;
}
/**
* @return string
*/
public function getNewNfsshareId()
{
return $this->newNfsshareId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RenameNfsShareRequest::class, 'Google_Service_Baremetalsolution_RenameNfsShareRequest');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class RenameVolumeRequest extends \Google\Model
{
/**
* Required. The new `id` of the volume.
*
* @var string
*/
public $newVolumeId;
/**
* Required. The new `id` of the volume.
*
* @param string $newVolumeId
*/
public function setNewVolumeId($newVolumeId)
{
$this->newVolumeId = $newVolumeId;
}
/**
* @return string
*/
public function getNewVolumeId()
{
return $this->newVolumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RenameVolumeRequest::class, 'Google_Service_Baremetalsolution_RenameVolumeRequest');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class ResetInstanceRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResetInstanceRequest::class, 'Google_Service_Baremetalsolution_ResetInstanceRequest');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class ResetInstanceResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResetInstanceResponse::class, 'Google_Service_Baremetalsolution_ResetInstanceResponse');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class ResizeVolumeRequest extends \Google\Model
{
/**
* New Volume size, in GiB.
*
* @var string
*/
public $sizeGib;
/**
* New Volume size, in GiB.
*
* @param string $sizeGib
*/
public function setSizeGib($sizeGib)
{
$this->sizeGib = $sizeGib;
}
/**
* @return string
*/
public function getSizeGib()
{
return $this->sizeGib;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResizeVolumeRequest::class, 'Google_Service_Baremetalsolution_ResizeVolumeRequest');
@@ -0,0 +1,116 @@
<?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\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\BaremetalsolutionEmpty;
use Google\Service\Baremetalsolution\CancelOperationRequest;
use Google\Service\Baremetalsolution\ListOperationsResponse;
use Google\Service\Baremetalsolution\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $operations = $baremetalsolutionService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return BaremetalsolutionEmpty
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], BaremetalsolutionEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return BaremetalsolutionEmpty
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BaremetalsolutionEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the
* `name` binding allows API services to override the binding to use different
* resource name schemes, such as `users/operations`. To override the binding,
* API services can add a binding such as `"/v1/{name=users}/operations"` to
* their service configuration. For backwards compatibility, the default name
* includes the operations collection id, however overriding users must ensure
* the name binding is the parent resource, without the operations collection
* id. (operations.listOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return ListOperationsResponse
*/
public function listOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_Baremetalsolution_Resource_Operations');
@@ -0,0 +1,33 @@
<?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\Baremetalsolution\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $projects = $baremetalsolutionService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Baremetalsolution_Resource_Projects');
@@ -0,0 +1,86 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\ListLocationsResponse;
use Google\Service\Baremetalsolution\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $locations = $baremetalsolutionService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service. This method
* lists locations based on the resource scope provided in the
* [ListLocationsRequest.name] field: * **Global locations**: If `name` is
* empty, the method lists the public locations available to all projects. *
* **Project-specific locations**: If `name` follows the format
* `projects/{project}`, the method lists locations visible to that specific
* project. This includes public, private, or other project-specific locations
* enabled for the project. For gRPC and client library implementations, the
* resource name is passed as the `name` field. For direct service calls, the
* resource name is incorporated into the request path based on the specific
* service implementation and version. (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field. It is
* unsupported and is ignored unless explicitly documented otherwise. This is
* primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocations');
@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\FetchInstanceProvisioningSettingsResponse;
/**
* The "instanceProvisioningSettings" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $instanceProvisioningSettings = $baremetalsolutionService->projects_locations_instanceProvisioningSettings;
* </code>
*/
class ProjectsLocationsInstanceProvisioningSettings extends \Google\Service\Resource
{
/**
* Get instance provisioning settings for a given project. This is hidden method
* used by UI only. (instanceProvisioningSettings.fetch)
*
* @param string $location Required. The parent project and location containing
* the ProvisioningSettings.
* @param array $optParams Optional parameters.
* @return FetchInstanceProvisioningSettingsResponse
*/
public function fetch($location, $optParams = [])
{
$params = ['location' => $location];
$params = array_merge($params, $optParams);
return $this->call('fetch', [$params], FetchInstanceProvisioningSettingsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsInstanceProvisioningSettings::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsInstanceProvisioningSettings');
@@ -0,0 +1,283 @@
<?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\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\DetachLunRequest;
use Google\Service\Baremetalsolution\DisableHyperthreadingRequest;
use Google\Service\Baremetalsolution\DisableInteractiveSerialConsoleRequest;
use Google\Service\Baremetalsolution\EnableHyperthreadingRequest;
use Google\Service\Baremetalsolution\EnableInteractiveSerialConsoleRequest;
use Google\Service\Baremetalsolution\Instance;
use Google\Service\Baremetalsolution\ListInstancesResponse;
use Google\Service\Baremetalsolution\LoadInstanceAuthInfoResponse;
use Google\Service\Baremetalsolution\Operation;
use Google\Service\Baremetalsolution\ReimageInstanceRequest;
use Google\Service\Baremetalsolution\RenameInstanceRequest;
use Google\Service\Baremetalsolution\ResetInstanceRequest;
use Google\Service\Baremetalsolution\StartInstanceRequest;
use Google\Service\Baremetalsolution\StopInstanceRequest;
/**
* The "instances" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $instances = $baremetalsolutionService->projects_locations_instances;
* </code>
*/
class ProjectsLocationsInstances extends \Google\Service\Resource
{
/**
* Detach LUN from Instance. (instances.detachLun)
*
* @param string $instance Required. Name of the instance.
* @param DetachLunRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function detachLun($instance, DetachLunRequest $postBody, $optParams = [])
{
$params = ['instance' => $instance, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('detachLun', [$params], Operation::class);
}
/**
* Perform disable hyperthreading operation on a single server.
* (instances.disableHyperthreading)
*
* @param string $name Required. The `name` field is used to identify the
* instance. Format:
* projects/{project}/locations/{location}/instances/{instance}
* @param DisableHyperthreadingRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function disableHyperthreading($name, DisableHyperthreadingRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('disableHyperthreading', [$params], Operation::class);
}
/**
* Disable the interactive serial console feature on an instance.
* (instances.disableInteractiveSerialConsole)
*
* @param string $name Required. Name of the resource.
* @param DisableInteractiveSerialConsoleRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function disableInteractiveSerialConsole($name, DisableInteractiveSerialConsoleRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('disableInteractiveSerialConsole', [$params], Operation::class);
}
/**
* Perform enable hyperthreading operation on a single server.
* (instances.enableHyperthreading)
*
* @param string $name Required. The `name` field is used to identify the
* instance. Format:
* projects/{project}/locations/{location}/instances/{instance}
* @param EnableHyperthreadingRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function enableHyperthreading($name, EnableHyperthreadingRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('enableHyperthreading', [$params], Operation::class);
}
/**
* Enable the interactive serial console feature on an instance.
* (instances.enableInteractiveSerialConsole)
*
* @param string $name Required. Name of the resource.
* @param EnableInteractiveSerialConsoleRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function enableInteractiveSerialConsole($name, EnableInteractiveSerialConsoleRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('enableInteractiveSerialConsole', [$params], Operation::class);
}
/**
* Get details about a single server. (instances.get)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
* @return Instance
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Instance::class);
}
/**
* List servers in a given project and location.
* (instances.listProjectsLocationsInstances)
*
* @param string $parent Required. Parent value for ListInstancesRequest.
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param int pageSize Requested page size. Server may return fewer items
* than requested. If unspecified, the server will pick an appropriate default.
* @opt_param string pageToken A token identifying a page of results from the
* server.
* @return ListInstancesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsInstances($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListInstancesResponse::class);
}
/**
* Load auth info for a server. (instances.loadAuthInfo)
*
* @param string $name Required. Name of the server.
* @param array $optParams Optional parameters.
* @return LoadInstanceAuthInfoResponse
* @throws \Google\Service\Exception
*/
public function loadAuthInfo($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('loadAuthInfo', [$params], LoadInstanceAuthInfoResponse::class);
}
/**
* Update details of a single server. (instances.patch)
*
* @param string $name Immutable. The resource name of this `Instance`. Resource
* names are schemeless URIs that follow the conventions in
* https://cloud.google.com/apis/design/resource_names. Format:
* `projects/{project}/locations/{location}/instances/{instance}`
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update. The currently
* supported fields are: `labels` `hyperthreading_enabled` `os_image` `ssh_keys`
* `kms_key_version`
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Instance $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Perform reimage operation on a single server. (instances.reimage)
*
* @param string $name Required. The `name` field is used to identify the
* instance. Format:
* projects/{project}/locations/{location}/instances/{instance}
* @param ReimageInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function reimage($name, ReimageInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reimage', [$params], Operation::class);
}
/**
* RenameInstance sets a new name for an instance. Use with caution, previous
* names become immediately invalidated. (instances.rename)
*
* @param string $name Required. The `name` field is used to identify the
* instance. Format:
* projects/{project}/locations/{location}/instances/{instance}
* @param RenameInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Instance
* @throws \Google\Service\Exception
*/
public function rename($name, RenameInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rename', [$params], Instance::class);
}
/**
* Perform an ungraceful, hard reset on a server. Equivalent to shutting the
* power off and then turning it back on. (instances.reset)
*
* @param string $name Required. Name of the resource.
* @param ResetInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function reset($name, ResetInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reset', [$params], Operation::class);
}
/**
* Starts a server that was shutdown. (instances.start)
*
* @param string $name Required. Name of the resource.
* @param StartInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function start($name, StartInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('start', [$params], Operation::class);
}
/**
* Stop a running server. (instances.stop)
*
* @param string $name Required. Name of the resource.
* @param StopInstanceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function stop($name, StopInstanceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stop', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsInstances::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsInstances');
@@ -0,0 +1,128 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\ListNetworkUsageResponse;
use Google\Service\Baremetalsolution\ListNetworksResponse;
use Google\Service\Baremetalsolution\Network;
use Google\Service\Baremetalsolution\Operation;
use Google\Service\Baremetalsolution\RenameNetworkRequest;
/**
* The "networks" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $networks = $baremetalsolutionService->projects_locations_networks;
* </code>
*/
class ProjectsLocationsNetworks extends \Google\Service\Resource
{
/**
* Get details of a single network. (networks.get)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
* @return Network
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Network::class);
}
/**
* List network in a given project and location.
* (networks.listProjectsLocationsNetworks)
*
* @param string $parent Required. Parent value for ListNetworksRequest.
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param int pageSize Requested page size. The server might return fewer
* items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results from the
* server.
* @return ListNetworksResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNetworks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListNetworksResponse::class);
}
/**
* List all Networks (and used IPs for each Network) in the vendor account
* associated with the specified project. (networks.listNetworkUsage)
*
* @param string $location Required. Parent value (project and location).
* @param array $optParams Optional parameters.
* @return ListNetworkUsageResponse
* @throws \Google\Service\Exception
*/
public function listNetworkUsage($location, $optParams = [])
{
$params = ['location' => $location];
$params = array_merge($params, $optParams);
return $this->call('listNetworkUsage', [$params], ListNetworkUsageResponse::class);
}
/**
* Update details of a single network. (networks.patch)
*
* @param string $name Output only. The resource name of this `Network`.
* Resource names are schemeless URIs that follow the conventions in
* https://cloud.google.com/apis/design/resource_names. Format:
* `projects/{project}/locations/{location}/networks/{network}`
* @param Network $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update. The only currently
* supported fields are: `labels`, `reservations`, `vrf.vlan_attachments`
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Network $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* RenameNetwork sets a new name for a network. Use with caution, previous names
* become immediately invalidated. (networks.rename)
*
* @param string $name Required. The `name` field is used to identify the
* network. Format: projects/{project}/locations/{location}/networks/{network}
* @param RenameNetworkRequest $postBody
* @param array $optParams Optional parameters.
* @return Network
* @throws \Google\Service\Exception
*/
public function rename($name, RenameNetworkRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rename', [$params], Network::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNetworks::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsNetworks');
@@ -0,0 +1,139 @@
<?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\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\ListNfsSharesResponse;
use Google\Service\Baremetalsolution\NfsShare;
use Google\Service\Baremetalsolution\Operation;
use Google\Service\Baremetalsolution\RenameNfsShareRequest;
/**
* The "nfsShares" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $nfsShares = $baremetalsolutionService->projects_locations_nfsShares;
* </code>
*/
class ProjectsLocationsNfsShares extends \Google\Service\Resource
{
/**
* Create an NFS share. (nfsShares.create)
*
* @param string $parent Required. The parent project and location.
* @param NfsShare $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, NfsShare $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Delete an NFS share. The underlying volume is automatically deleted.
* (nfsShares.delete)
*
* @param string $name Required. The name of the NFS share to delete.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Get details of a single NFS share. (nfsShares.get)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
* @return NfsShare
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], NfsShare::class);
}
/**
* List NFS shares. (nfsShares.listProjectsLocationsNfsShares)
*
* @param string $parent Required. Parent value for ListNfsSharesRequest.
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param int pageSize Requested page size. The server might return fewer
* items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results from the
* server.
* @return ListNfsSharesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNfsShares($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListNfsSharesResponse::class);
}
/**
* Update details of a single NFS share. (nfsShares.patch)
*
* @param string $name Immutable. The name of the NFS share.
* @param NfsShare $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update. The only currently
* supported fields are: `labels` `allowed_clients`
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, NfsShare $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* RenameNfsShare sets a new name for an nfsshare. Use with caution, previous
* names become immediately invalidated. (nfsShares.rename)
*
* @param string $name Required. The `name` field is used to identify the
* nfsshare. Format:
* projects/{project}/locations/{location}/nfsshares/{nfsshare}
* @param RenameNfsShareRequest $postBody
* @param array $optParams Optional parameters.
* @return NfsShare
* @throws \Google\Service\Exception
*/
public function rename($name, RenameNfsShareRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rename', [$params], NfsShare::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNfsShares::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsNfsShares');
@@ -0,0 +1,49 @@
<?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\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $operations = $baremetalsolutionService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Get details about an operation. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\ListOSImagesResponse;
use Google\Service\Baremetalsolution\OSImage;
/**
* The "osImages" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $osImages = $baremetalsolutionService->projects_locations_osImages;
* </code>
*/
class ProjectsLocationsOsImages extends \Google\Service\Resource
{
/**
* Get details of a single OS image. (osImages.get)
*
* @param string $name Required. Name of the OS image.
* @param array $optParams Optional parameters.
* @return OSImage
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], OSImage::class);
}
/**
* Retrieves the list of OS images which are currently approved.
* (osImages.listProjectsLocationsOsImages)
*
* @param string $parent Required. Parent value for ListOSImagesRequest.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. The server might return fewer
* items than requested. If unspecified, server will pick an appropriate
* default. Notice that page_size field is not supported and won't be respected
* in the API request for now, will be updated when pagination is supported.
* @opt_param string pageToken A token identifying a page of results from the
* server.
* @return ListOSImagesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOsImages($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOSImagesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOsImages::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsOsImages');
@@ -0,0 +1,107 @@
<?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\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\ProvisioningConfig;
use Google\Service\Baremetalsolution\SubmitProvisioningConfigRequest;
use Google\Service\Baremetalsolution\SubmitProvisioningConfigResponse;
/**
* The "provisioningConfigs" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $provisioningConfigs = $baremetalsolutionService->projects_locations_provisioningConfigs;
* </code>
*/
class ProjectsLocationsProvisioningConfigs extends \Google\Service\Resource
{
/**
* Create new ProvisioningConfig. (provisioningConfigs.create)
*
* @param string $parent Required. The parent project and location containing
* the ProvisioningConfig.
* @param ProvisioningConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string email Optional. Email provided to send a confirmation with
* provisioning config to.
* @return ProvisioningConfig
* @throws \Google\Service\Exception
*/
public function create($parent, ProvisioningConfig $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ProvisioningConfig::class);
}
/**
* Get ProvisioningConfig by name. (provisioningConfigs.get)
*
* @param string $name Required. Name of the ProvisioningConfig.
* @param array $optParams Optional parameters.
* @return ProvisioningConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ProvisioningConfig::class);
}
/**
* Update existing ProvisioningConfig. (provisioningConfigs.patch)
*
* @param string $name Output only. The system-generated name of the
* provisioning config. This follows the UUID format.
* @param ProvisioningConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string email Optional. Email provided to send a confirmation with
* provisioning config to.
* @opt_param string updateMask Required. The list of fields to update.
* @return ProvisioningConfig
* @throws \Google\Service\Exception
*/
public function patch($name, ProvisioningConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ProvisioningConfig::class);
}
/**
* Submit a provisioning configuration for a given project.
* (provisioningConfigs.submit)
*
* @param string $parent Required. The parent project and location containing
* the ProvisioningConfig.
* @param SubmitProvisioningConfigRequest $postBody
* @param array $optParams Optional parameters.
* @return SubmitProvisioningConfigResponse
* @throws \Google\Service\Exception
*/
public function submit($parent, SubmitProvisioningConfigRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('submit', [$params], SubmitProvisioningConfigResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProvisioningConfigs::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsProvisioningConfigs');
@@ -0,0 +1,58 @@
<?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\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\ListProvisioningQuotasResponse;
/**
* The "provisioningQuotas" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $provisioningQuotas = $baremetalsolutionService->projects_locations_provisioningQuotas;
* </code>
*/
class ProjectsLocationsProvisioningQuotas extends \Google\Service\Resource
{
/**
* List the budget details to provision resources on a given project.
* (provisioningQuotas.listProjectsLocationsProvisioningQuotas)
*
* @param string $parent Required. Parent value for
* ListProvisioningQuotasRequest.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. The server might return fewer
* items than requested. If unspecified, server will pick an appropriate
* default. Notice that page_size field is not supported and won't be respected
* in the API request for now, will be updated when pagination is supported.
* @opt_param string pageToken A token identifying a page of results from the
* server.
* @return ListProvisioningQuotasResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsProvisioningQuotas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListProvisioningQuotasResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsProvisioningQuotas::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsProvisioningQuotas');
@@ -0,0 +1,120 @@
<?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\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\BaremetalsolutionEmpty;
use Google\Service\Baremetalsolution\ListSnapshotSchedulePoliciesResponse;
use Google\Service\Baremetalsolution\SnapshotSchedulePolicy;
/**
* The "snapshotSchedulePolicies" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $snapshotSchedulePolicies = $baremetalsolutionService->snapshotSchedulePolicies;
* </code>
*/
class ProjectsLocationsSnapshotSchedulePolicies extends \Google\Service\Resource
{
/**
* Create a snapshot schedule policy in the specified project.
* (snapshotSchedulePolicies.create)
*
* @param string $parent Required. The parent project and location containing
* the SnapshotSchedulePolicy.
* @param SnapshotSchedulePolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string snapshotSchedulePolicyId Required. Snapshot policy ID
* @return SnapshotSchedulePolicy
*/
public function create($parent, SnapshotSchedulePolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], SnapshotSchedulePolicy::class);
}
/**
* Delete a named snapshot schedule policy. (snapshotSchedulePolicies.delete)
*
* @param string $name Required. The name of the snapshot schedule policy to
* delete.
* @param array $optParams Optional parameters.
* @return BaremetalsolutionEmpty
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BaremetalsolutionEmpty::class);
}
/**
* Get details of a single snapshot schedule policy.
* (snapshotSchedulePolicies.get)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
* @return SnapshotSchedulePolicy
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], SnapshotSchedulePolicy::class);
}
/**
* List snapshot schedule policies in a given project and location.
* (snapshotSchedulePolicies.listProjectsLocationsSnapshotSchedulePolicies)
*
* @param string $parent Required. The parent project containing the Snapshot
* Schedule Policies.
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param int pageSize The maximum number of items to return.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListSnapshotSchedulePoliciesResponse
*/
public function listProjectsLocationsSnapshotSchedulePolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSnapshotSchedulePoliciesResponse::class);
}
/**
* Update a snapshot schedule policy in the specified project.
* (snapshotSchedulePolicies.patch)
*
* @param string $name Output only. The name of the snapshot schedule policy.
* @param SnapshotSchedulePolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The list of fields to update.
* @return SnapshotSchedulePolicy
*/
public function patch($name, SnapshotSchedulePolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], SnapshotSchedulePolicy::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsSnapshotSchedulePolicies::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsSnapshotSchedulePolicies');
@@ -0,0 +1,94 @@
<?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\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\BaremetalsolutionEmpty;
use Google\Service\Baremetalsolution\ListSSHKeysResponse;
use Google\Service\Baremetalsolution\SSHKey;
/**
* The "sshKeys" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $sshKeys = $baremetalsolutionService->projects_locations_sshKeys;
* </code>
*/
class ProjectsLocationsSshKeys extends \Google\Service\Resource
{
/**
* Register a public SSH key in the specified project for use with the
* interactive serial console feature. (sshKeys.create)
*
* @param string $parent Required. The parent containing the SSH keys.
* @param SSHKey $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string sshKeyId Required. The ID to use for the key, which will
* become the final component of the key's resource name. This value must match
* the regex: [a-zA-Z0-9@.\-_]{1,64}
* @return SSHKey
* @throws \Google\Service\Exception
*/
public function create($parent, SSHKey $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], SSHKey::class);
}
/**
* Deletes a public SSH key registered in the specified project.
* (sshKeys.delete)
*
* @param string $name Required. The name of the SSH key to delete. Currently,
* the only valid value for the location is "global".
* @param array $optParams Optional parameters.
* @return BaremetalsolutionEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BaremetalsolutionEmpty::class);
}
/**
* Lists the public SSH keys registered for the specified project. These SSH
* keys are used only for the interactive serial console feature.
* (sshKeys.listProjectsLocationsSshKeys)
*
* @param string $parent Required. The parent containing the SSH keys.
* Currently, the only valid value for the location is "global".
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of items to return.
* @opt_param string pageToken The next_page_token value returned from a
* previous List request, if any.
* @return ListSSHKeysResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsSshKeys($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSSHKeysResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsSshKeys::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsSshKeys');
@@ -0,0 +1,145 @@
<?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\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\EvictVolumeRequest;
use Google\Service\Baremetalsolution\ListVolumesResponse;
use Google\Service\Baremetalsolution\Operation;
use Google\Service\Baremetalsolution\RenameVolumeRequest;
use Google\Service\Baremetalsolution\ResizeVolumeRequest;
use Google\Service\Baremetalsolution\Volume;
/**
* The "volumes" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $volumes = $baremetalsolutionService->projects_locations_volumes;
* </code>
*/
class ProjectsLocationsVolumes extends \Google\Service\Resource
{
/**
* Skips volume's cooloff and deletes it now. Volume must be in cooloff state.
* (volumes.evict)
*
* @param string $name Required. The name of the Volume.
* @param EvictVolumeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function evict($name, EvictVolumeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('evict', [$params], Operation::class);
}
/**
* Get details of a single storage volume. (volumes.get)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
* @return Volume
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Volume::class);
}
/**
* List storage volumes in a given project and location.
* (volumes.listProjectsLocationsVolumes)
*
* @param string $parent Required. Parent value for ListVolumesRequest.
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param int pageSize Requested page size. The server might return fewer
* items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results from the
* server.
* @return ListVolumesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsVolumes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVolumesResponse::class);
}
/**
* Update details of a single storage volume. (volumes.patch)
*
* @param string $name Output only. The resource name of this `Volume`. Resource
* names are schemeless URIs that follow the conventions in
* https://cloud.google.com/apis/design/resource_names. Format:
* `projects/{project}/locations/{location}/volumes/{volume}`
* @param Volume $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update. The only currently
* supported fields are: 'labels'
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Volume $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* RenameVolume sets a new name for a volume. Use with caution, previous names
* become immediately invalidated. (volumes.rename)
*
* @param string $name Required. The `name` field is used to identify the
* volume. Format: projects/{project}/locations/{location}/volumes/{volume}
* @param RenameVolumeRequest $postBody
* @param array $optParams Optional parameters.
* @return Volume
* @throws \Google\Service\Exception
*/
public function rename($name, RenameVolumeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('rename', [$params], Volume::class);
}
/**
* Emergency Volume resize. (volumes.resize)
*
* @param string $volume Required. Volume to resize.
* @param ResizeVolumeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function resize($volume, ResizeVolumeRequest $postBody, $optParams = [])
{
$params = ['volume' => $volume, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resize', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsVolumes::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsVolumes');
@@ -0,0 +1,89 @@
<?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\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\EvictLunRequest;
use Google\Service\Baremetalsolution\ListLunsResponse;
use Google\Service\Baremetalsolution\Lun;
use Google\Service\Baremetalsolution\Operation;
/**
* The "luns" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $luns = $baremetalsolutionService->projects_locations_volumes_luns;
* </code>
*/
class ProjectsLocationsVolumesLuns extends \Google\Service\Resource
{
/**
* Skips lun's cooloff and deletes it now. Lun must be in cooloff state.
* (luns.evict)
*
* @param string $name Required. The name of the lun.
* @param EvictLunRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function evict($name, EvictLunRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('evict', [$params], Operation::class);
}
/**
* Get details of a single storage logical unit number(LUN). (luns.get)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
* @return Lun
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Lun::class);
}
/**
* List storage volume luns for given storage volume.
* (luns.listProjectsLocationsVolumesLuns)
*
* @param string $parent Required. Parent value for ListLunsRequest.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. The server might return fewer
* items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results from the
* server.
* @return ListLunsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsVolumesLuns($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLunsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsVolumesLuns::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsVolumesLuns');
@@ -0,0 +1,125 @@
<?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\Baremetalsolution\Resource;
use Google\Service\Baremetalsolution\BaremetalsolutionEmpty;
use Google\Service\Baremetalsolution\ListVolumeSnapshotsResponse;
use Google\Service\Baremetalsolution\Operation;
use Google\Service\Baremetalsolution\RestoreVolumeSnapshotRequest;
use Google\Service\Baremetalsolution\VolumeSnapshot;
/**
* The "snapshots" collection of methods.
* Typical usage is:
* <code>
* $baremetalsolutionService = new Google\Service\Baremetalsolution(...);
* $snapshots = $baremetalsolutionService->projects_locations_volumes_snapshots;
* </code>
*/
class ProjectsLocationsVolumesSnapshots extends \Google\Service\Resource
{
/**
* Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a
* non-boot volume. (snapshots.create)
*
* @param string $parent Required. The volume to snapshot.
* @param VolumeSnapshot $postBody
* @param array $optParams Optional parameters.
* @return VolumeSnapshot
* @throws \Google\Service\Exception
*/
public function create($parent, VolumeSnapshot $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], VolumeSnapshot::class);
}
/**
* Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot
* volume. (snapshots.delete)
*
* @param string $name Required. The name of the snapshot to delete.
* @param array $optParams Optional parameters.
* @return BaremetalsolutionEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BaremetalsolutionEmpty::class);
}
/**
* Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called
* for a non-boot volume. (snapshots.get)
*
* @param string $name Required. The name of the snapshot.
* @param array $optParams Optional parameters.
* @return VolumeSnapshot
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], VolumeSnapshot::class);
}
/**
* Retrieves the list of snapshots for the specified volume. Returns a response
* with an empty list of snapshots if called for a non-boot volume.
* (snapshots.listProjectsLocationsVolumesSnapshots)
*
* @param string $parent Required. Parent value for ListVolumesRequest.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Requested page size. The server might return fewer
* items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results from the
* server.
* @return ListVolumeSnapshotsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsVolumesSnapshots($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListVolumeSnapshotsResponse::class);
}
/**
* Uses the specified snapshot to restore its parent volume. Returns
* INVALID_ARGUMENT if called for a non-boot volume.
* (snapshots.restoreVolumeSnapshot)
*
* @param string $volumeSnapshot Required. Name of the snapshot which will be
* used to restore its parent volume.
* @param RestoreVolumeSnapshotRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restoreVolumeSnapshot($volumeSnapshot, RestoreVolumeSnapshotRequest $postBody, $optParams = [])
{
$params = ['volumeSnapshot' => $volumeSnapshot, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restoreVolumeSnapshot', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsVolumesSnapshots::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsVolumesSnapshots');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class RestoreVolumeSnapshotRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestoreVolumeSnapshotRequest::class, 'Google_Service_Baremetalsolution_RestoreVolumeSnapshotRequest');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class SSHKey extends \Google\Model
{
/**
* Output only. The name of this SSH key. Currently, the only valid value for
* the location is "global".
*
* @var string
*/
public $name;
/**
* The public SSH key. This must be in OpenSSH .authorized_keys format.
*
* @var string
*/
public $publicKey;
/**
* Output only. The name of this SSH key. Currently, the only valid value for
* the location is "global".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The public SSH key. This must be in OpenSSH .authorized_keys format.
*
* @param string $publicKey
*/
public function setPublicKey($publicKey)
{
$this->publicKey = $publicKey;
}
/**
* @return string
*/
public function getPublicKey()
{
return $this->publicKey;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SSHKey::class, 'Google_Service_Baremetalsolution_SSHKey');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class Schedule extends \Google\Model
{
/**
* @var string
*/
public $crontabSpec;
/**
* @var string
*/
public $prefix;
/**
* @var int
*/
public $retentionCount;
/**
* @param string
*/
public function setCrontabSpec($crontabSpec)
{
$this->crontabSpec = $crontabSpec;
}
/**
* @return string
*/
public function getCrontabSpec()
{
return $this->crontabSpec;
}
/**
* @param string
*/
public function setPrefix($prefix)
{
$this->prefix = $prefix;
}
/**
* @return string
*/
public function getPrefix()
{
return $this->prefix;
}
/**
* @param int
*/
public function setRetentionCount($retentionCount)
{
$this->retentionCount = $retentionCount;
}
/**
* @return int
*/
public function getRetentionCount()
{
return $this->retentionCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Schedule::class, 'Google_Service_Baremetalsolution_Schedule');
@@ -0,0 +1,95 @@
<?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\Baremetalsolution;
class ServerNetworkTemplate extends \Google\Collection
{
protected $collection_key = 'logicalInterfaces';
/**
* Instance types this template is applicable to.
*
* @var string[]
*/
public $applicableInstanceTypes;
protected $logicalInterfacesType = GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface::class;
protected $logicalInterfacesDataType = 'array';
/**
* Output only. Template's unique name. The full resource name follows the
* pattern: `projects/{project}/locations/{location}/serverNetworkTemplate/{se
* rver_network_template}` Generally, the {server_network_template} follows
* the syntax of "bond" or "nic".
*
* @var string
*/
public $name;
/**
* Instance types this template is applicable to.
*
* @param string[] $applicableInstanceTypes
*/
public function setApplicableInstanceTypes($applicableInstanceTypes)
{
$this->applicableInstanceTypes = $applicableInstanceTypes;
}
/**
* @return string[]
*/
public function getApplicableInstanceTypes()
{
return $this->applicableInstanceTypes;
}
/**
* Logical interfaces.
*
* @param GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface[] $logicalInterfaces
*/
public function setLogicalInterfaces($logicalInterfaces)
{
$this->logicalInterfaces = $logicalInterfaces;
}
/**
* @return GoogleCloudBaremetalsolutionV2ServerNetworkTemplateLogicalInterface[]
*/
public function getLogicalInterfaces()
{
return $this->logicalInterfaces;
}
/**
* Output only. Template's unique name. The full resource name follows the
* pattern: `projects/{project}/locations/{location}/serverNetworkTemplate/{se
* rver_network_template}` Generally, the {server_network_template} follows
* the syntax of "bond" or "nic".
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServerNetworkTemplate::class, 'Google_Service_Baremetalsolution_ServerNetworkTemplate');
@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* @param Policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_Baremetalsolution_SetIamPolicyRequest');
@@ -0,0 +1,126 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class SnapshotReservationDetail extends \Google\Model
{
/**
* The space on this storage volume reserved for snapshots, shown in GiB.
*
* @var string
*/
public $reservedSpaceGib;
/**
* Percent of the total Volume size reserved for snapshot copies. Enabling
* snapshots requires reserving 20% or more of the storage volume space for
* snapshots. Maximum reserved space for snapshots is 40%. Setting this field
* will effectively set snapshot_enabled to true.
*
* @var int
*/
public $reservedSpacePercent;
/**
* The amount, in GiB, of available space in this storage volume's reserved
* snapshot space.
*
* @var string
*/
public $reservedSpaceRemainingGib;
/**
* The percent of snapshot space on this storage volume actually being used by
* the snapshot copies. This value might be higher than 100% if the snapshot
* copies have overflowed into the data portion of the storage volume.
*
* @var int
*/
public $reservedSpaceUsedPercent;
/**
* The space on this storage volume reserved for snapshots, shown in GiB.
*
* @param string $reservedSpaceGib
*/
public function setReservedSpaceGib($reservedSpaceGib)
{
$this->reservedSpaceGib = $reservedSpaceGib;
}
/**
* @return string
*/
public function getReservedSpaceGib()
{
return $this->reservedSpaceGib;
}
/**
* Percent of the total Volume size reserved for snapshot copies. Enabling
* snapshots requires reserving 20% or more of the storage volume space for
* snapshots. Maximum reserved space for snapshots is 40%. Setting this field
* will effectively set snapshot_enabled to true.
*
* @param int $reservedSpacePercent
*/
public function setReservedSpacePercent($reservedSpacePercent)
{
$this->reservedSpacePercent = $reservedSpacePercent;
}
/**
* @return int
*/
public function getReservedSpacePercent()
{
return $this->reservedSpacePercent;
}
/**
* The amount, in GiB, of available space in this storage volume's reserved
* snapshot space.
*
* @param string $reservedSpaceRemainingGib
*/
public function setReservedSpaceRemainingGib($reservedSpaceRemainingGib)
{
$this->reservedSpaceRemainingGib = $reservedSpaceRemainingGib;
}
/**
* @return string
*/
public function getReservedSpaceRemainingGib()
{
return $this->reservedSpaceRemainingGib;
}
/**
* The percent of snapshot space on this storage volume actually being used by
* the snapshot copies. This value might be higher than 100% if the snapshot
* copies have overflowed into the data portion of the storage volume.
*
* @param int $reservedSpaceUsedPercent
*/
public function setReservedSpaceUsedPercent($reservedSpaceUsedPercent)
{
$this->reservedSpaceUsedPercent = $reservedSpaceUsedPercent;
}
/**
* @return int
*/
public function getReservedSpaceUsedPercent()
{
return $this->reservedSpaceUsedPercent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SnapshotReservationDetail::class, 'Google_Service_Baremetalsolution_SnapshotReservationDetail');
@@ -0,0 +1,133 @@
<?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\Baremetalsolution;
class SnapshotSchedulePolicy extends \Google\Collection
{
protected $collection_key = 'schedules';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $id;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
protected $schedulesType = Schedule::class;
protected $schedulesDataType = 'array';
/**
* @var string
*/
public $state;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param Schedule[]
*/
public function setSchedules($schedules)
{
$this->schedules = $schedules;
}
/**
* @return Schedule[]
*/
public function getSchedules()
{
return $this->schedules;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SnapshotSchedulePolicy::class, 'Google_Service_Baremetalsolution_SnapshotSchedulePolicy');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class StartInstanceRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartInstanceRequest::class, 'Google_Service_Baremetalsolution_StartInstanceRequest');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class StartInstanceResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartInstanceResponse::class, 'Google_Service_Baremetalsolution_StartInstanceResponse');
@@ -0,0 +1,99 @@
<?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\Baremetalsolution;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @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(Status::class, 'Google_Service_Baremetalsolution_Status');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class StopInstanceRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StopInstanceRequest::class, 'Google_Service_Baremetalsolution_StopInstanceRequest');
@@ -0,0 +1,25 @@
<?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\Baremetalsolution;
class StopInstanceResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StopInstanceResponse::class, 'Google_Service_Baremetalsolution_StopInstanceResponse');
@@ -0,0 +1,68 @@
<?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\Baremetalsolution;
class SubmitProvisioningConfigRequest extends \Google\Model
{
/**
* Optional. Email provided to send a confirmation with provisioning config
* to.
*
* @var string
*/
public $email;
protected $provisioningConfigType = ProvisioningConfig::class;
protected $provisioningConfigDataType = '';
/**
* Optional. Email provided to send a confirmation with provisioning config
* to.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Required. The ProvisioningConfig to create.
*
* @param ProvisioningConfig $provisioningConfig
*/
public function setProvisioningConfig(ProvisioningConfig $provisioningConfig)
{
$this->provisioningConfig = $provisioningConfig;
}
/**
* @return ProvisioningConfig
*/
public function getProvisioningConfig()
{
return $this->provisioningConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SubmitProvisioningConfigRequest::class, 'Google_Service_Baremetalsolution_SubmitProvisioningConfigRequest');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class SubmitProvisioningConfigResponse extends \Google\Model
{
protected $provisioningConfigType = ProvisioningConfig::class;
protected $provisioningConfigDataType = '';
/**
* The submitted provisioning config.
*
* @param ProvisioningConfig $provisioningConfig
*/
public function setProvisioningConfig(ProvisioningConfig $provisioningConfig)
{
$this->provisioningConfig = $provisioningConfig;
}
/**
* @return ProvisioningConfig
*/
public function getProvisioningConfig()
{
return $this->provisioningConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SubmitProvisioningConfigResponse::class, 'Google_Service_Baremetalsolution_SubmitProvisioningConfigResponse');
@@ -0,0 +1,36 @@
<?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\Baremetalsolution;
class TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
public $permissions;
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsRequest::class, 'Google_Service_Baremetalsolution_TestIamPermissionsRequest');
@@ -0,0 +1,36 @@
<?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\Baremetalsolution;
class TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
public $permissions;
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsResponse::class, 'Google_Service_Baremetalsolution_TestIamPermissionsResponse');
@@ -0,0 +1,70 @@
<?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\Baremetalsolution;
class UserAccount extends \Google\Model
{
/**
* Encrypted initial password value.
*
* @var string
*/
public $encryptedPassword;
/**
* KMS CryptoKey Version used to encrypt the password.
*
* @var string
*/
public $kmsKeyVersion;
/**
* Encrypted initial password value.
*
* @param string $encryptedPassword
*/
public function setEncryptedPassword($encryptedPassword)
{
$this->encryptedPassword = $encryptedPassword;
}
/**
* @return string
*/
public function getEncryptedPassword()
{
return $this->encryptedPassword;
}
/**
* KMS CryptoKey Version used to encrypt the password.
*
* @param string $kmsKeyVersion
*/
public function setKmsKeyVersion($kmsKeyVersion)
{
$this->kmsKeyVersion = $kmsKeyVersion;
}
/**
* @return string
*/
public function getKmsKeyVersion()
{
return $this->kmsKeyVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserAccount::class, 'Google_Service_Baremetalsolution_UserAccount');
@@ -0,0 +1,124 @@
<?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\Baremetalsolution;
class VRF extends \Google\Collection
{
/**
* The unspecified state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The vrf is provisioning.
*/
public const STATE_PROVISIONING = 'PROVISIONING';
/**
* The vrf is provisioned.
*/
public const STATE_PROVISIONED = 'PROVISIONED';
protected $collection_key = 'vlanAttachments';
/**
* The name of the VRF.
*
* @var string
*/
public $name;
protected $qosPolicyType = QosPolicy::class;
protected $qosPolicyDataType = '';
/**
* The possible state of VRF.
*
* @var string
*/
public $state;
protected $vlanAttachmentsType = VlanAttachment::class;
protected $vlanAttachmentsDataType = 'array';
/**
* The name of the VRF.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The QOS policy applied to this VRF. The value is only meaningful when all
* the vlan attachments have the same QoS. This field should not be used for
* new integrations, use vlan attachment level qos instead. The field is left
* for backward-compatibility.
*
* @param QosPolicy $qosPolicy
*/
public function setQosPolicy(QosPolicy $qosPolicy)
{
$this->qosPolicy = $qosPolicy;
}
/**
* @return QosPolicy
*/
public function getQosPolicy()
{
return $this->qosPolicy;
}
/**
* The possible state of VRF.
*
* Accepted values: STATE_UNSPECIFIED, PROVISIONING, PROVISIONED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* The list of VLAN attachments for the VRF.
*
* @param VlanAttachment[] $vlanAttachments
*/
public function setVlanAttachments($vlanAttachments)
{
$this->vlanAttachments = $vlanAttachments;
}
/**
* @return VlanAttachment[]
*/
public function getVlanAttachments()
{
return $this->vlanAttachments;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VRF::class, 'Google_Service_Baremetalsolution_VRF');
@@ -0,0 +1,181 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Baremetalsolution;
class VlanAttachment extends \Google\Model
{
/**
* Immutable. The identifier of the attachment within vrf.
*
* @var string
*/
public $id;
/**
* Optional. The name of the vlan attachment within vrf. This is of the form p
* rojects/{project_number}/regions/{region}/interconnectAttachments/{intercon
* nect_attachment}
*
* @var string
*/
public $interconnectAttachment;
/**
* Input only. Pairing key.
*
* @var string
*/
public $pairingKey;
/**
* The peer IP of the attachment.
*
* @var string
*/
public $peerIp;
/**
* The peer vlan ID of the attachment.
*
* @var string
*/
public $peerVlanId;
protected $qosPolicyType = QosPolicy::class;
protected $qosPolicyDataType = '';
/**
* The router IP of the attachment.
*
* @var string
*/
public $routerIp;
/**
* Immutable. The identifier of the attachment within vrf.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Optional. The name of the vlan attachment within vrf. This is of the form p
* rojects/{project_number}/regions/{region}/interconnectAttachments/{intercon
* nect_attachment}
*
* @param string $interconnectAttachment
*/
public function setInterconnectAttachment($interconnectAttachment)
{
$this->interconnectAttachment = $interconnectAttachment;
}
/**
* @return string
*/
public function getInterconnectAttachment()
{
return $this->interconnectAttachment;
}
/**
* Input only. Pairing key.
*
* @param string $pairingKey
*/
public function setPairingKey($pairingKey)
{
$this->pairingKey = $pairingKey;
}
/**
* @return string
*/
public function getPairingKey()
{
return $this->pairingKey;
}
/**
* The peer IP of the attachment.
*
* @param string $peerIp
*/
public function setPeerIp($peerIp)
{
$this->peerIp = $peerIp;
}
/**
* @return string
*/
public function getPeerIp()
{
return $this->peerIp;
}
/**
* The peer vlan ID of the attachment.
*
* @param string $peerVlanId
*/
public function setPeerVlanId($peerVlanId)
{
$this->peerVlanId = $peerVlanId;
}
/**
* @return string
*/
public function getPeerVlanId()
{
return $this->peerVlanId;
}
/**
* The QOS policy applied to this VLAN attachment. This value should be
* preferred to using qos at vrf level.
*
* @param QosPolicy $qosPolicy
*/
public function setQosPolicy(QosPolicy $qosPolicy)
{
$this->qosPolicy = $qosPolicy;
}
/**
* @return QosPolicy
*/
public function getQosPolicy()
{
return $this->qosPolicy;
}
/**
* The router IP of the attachment.
*
* @param string $routerIp
*/
public function setRouterIp($routerIp)
{
$this->routerIp = $routerIp;
}
/**
* @return string
*/
public function getRouterIp()
{
return $this->routerIp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VlanAttachment::class, 'Google_Service_Baremetalsolution_VlanAttachment');
@@ -0,0 +1,696 @@
<?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\Baremetalsolution;
class Volume extends \Google\Collection
{
/**
* Value is not specified.
*/
public const PERFORMANCE_TIER_VOLUME_PERFORMANCE_TIER_UNSPECIFIED = 'VOLUME_PERFORMANCE_TIER_UNSPECIFIED';
/**
* Regular volumes, shared aggregates.
*/
public const PERFORMANCE_TIER_VOLUME_PERFORMANCE_TIER_SHARED = 'VOLUME_PERFORMANCE_TIER_SHARED';
/**
* Assigned aggregates.
*/
public const PERFORMANCE_TIER_VOLUME_PERFORMANCE_TIER_ASSIGNED = 'VOLUME_PERFORMANCE_TIER_ASSIGNED';
/**
* High throughput aggregates.
*/
public const PERFORMANCE_TIER_VOLUME_PERFORMANCE_TIER_HT = 'VOLUME_PERFORMANCE_TIER_HT';
/**
* QoS 2.0 high performance storage.
*/
public const PERFORMANCE_TIER_VOLUME_PERFORMANCE_TIER_QOS2_PERFORMANCE = 'VOLUME_PERFORMANCE_TIER_QOS2_PERFORMANCE';
/**
* Value is not specified.
*/
public const PROTOCOL_PROTOCOL_UNSPECIFIED = 'PROTOCOL_UNSPECIFIED';
/**
* Fibre Channel protocol.
*/
public const PROTOCOL_FIBRE_CHANNEL = 'FIBRE_CHANNEL';
/**
* NFS protocol means Volume is a NFS Share volume. Such volumes cannot be
* manipulated via Volumes API.
*/
public const PROTOCOL_NFS = 'NFS';
/**
* The unspecified behavior.
*/
public const SNAPSHOT_AUTO_DELETE_BEHAVIOR_SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED = 'SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED';
/**
* Don't delete any snapshots. This disables new snapshot creation, as long as
* the snapshot reserved space is full.
*/
public const SNAPSHOT_AUTO_DELETE_BEHAVIOR_DISABLED = 'DISABLED';
/**
* Delete the oldest snapshots first.
*/
public const SNAPSHOT_AUTO_DELETE_BEHAVIOR_OLDEST_FIRST = 'OLDEST_FIRST';
/**
* Delete the newest snapshots first.
*/
public const SNAPSHOT_AUTO_DELETE_BEHAVIOR_NEWEST_FIRST = 'NEWEST_FIRST';
/**
* The storage volume is in an unknown state.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The storage volume is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* The storage volume is ready for use.
*/
public const STATE_READY = 'READY';
/**
* The storage volume has been requested to be deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* The storage volume is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* The storage volume is in cool off state. It will be deleted after
* `expire_time`.
*/
public const STATE_COOL_OFF = 'COOL_OFF';
/**
* The storage type for this volume is unknown.
*/
public const STORAGE_TYPE_STORAGE_TYPE_UNSPECIFIED = 'STORAGE_TYPE_UNSPECIFIED';
/**
* The storage type for this volume is SSD.
*/
public const STORAGE_TYPE_SSD = 'SSD';
/**
* This storage type for this volume is HDD.
*/
public const STORAGE_TYPE_HDD = 'HDD';
/**
* The workload profile is in an unknown state.
*/
public const WORKLOAD_PROFILE_WORKLOAD_PROFILE_UNSPECIFIED = 'WORKLOAD_PROFILE_UNSPECIFIED';
/**
* The workload profile is generic.
*/
public const WORKLOAD_PROFILE_GENERIC = 'GENERIC';
/**
* The workload profile is hana.
*/
public const WORKLOAD_PROFILE_HANA = 'HANA';
protected $collection_key = 'instances';
/**
* Output only. Is the Volume attached at at least one instance. This field is
* a lightweight counterpart of `instances` field. It is filled in List
* responses as well.
*
* @var bool
*/
public $attached;
/**
* The size, in GiB, that this storage volume has expanded as a result of an
* auto grow policy. In the absence of auto-grow, the value is 0.
*
* @var string
*/
public $autoGrownSizeGib;
/**
* Output only. Whether this volume is a boot volume. A boot volume is one
* which contains a boot LUN.
*
* @var bool
*/
public $bootVolume;
/**
* The current size of this storage volume, in GiB, including space reserved
* for snapshots. This size might be different than the requested size if the
* storage volume has been configured with auto grow or auto shrink.
*
* @var string
*/
public $currentSizeGib;
/**
* Additional emergency size that was requested for this Volume, in GiB.
* current_size_gib includes this value.
*
* @var string
*/
public $emergencySizeGib;
/**
* Output only. Time after which volume will be fully deleted. It is filled
* only for volumes in COOLOFF state.
*
* @var string
*/
public $expireTime;
/**
* An identifier for the `Volume`, generated by the backend.
*
* @var string
*/
public $id;
/**
* Output only. Instances this Volume is attached to. This field is set only
* in Get requests.
*
* @var string[]
*/
public $instances;
/**
* Labels as key value pairs.
*
* @var string[]
*/
public $labels;
/**
* Maximum size volume can be expanded to in case of evergency, in GiB.
*
* @var string
*/
public $maxSizeGib;
/**
* Output only. The resource name of this `Volume`. Resource names are
* schemeless URIs that follow the conventions in
* https://cloud.google.com/apis/design/resource_names. Format:
* `projects/{project}/locations/{location}/volumes/{volume}`
*
* @var string
*/
public $name;
/**
* Input only. User-specified notes for new Volume. Used to provision Volumes
* that require manual intervention.
*
* @var string
*/
public $notes;
/**
* Originally requested size, in GiB.
*
* @var string
*/
public $originallyRequestedSizeGib;
/**
* Immutable. Performance tier of the Volume. Default is SHARED.
*
* @var string
*/
public $performanceTier;
/**
* Immutable. Pod name. Pod is an independent part of infrastructure. Volume
* can only be connected to the instances allocated in the same pod.
*
* @var string
*/
public $pod;
/**
* Output only. Storage protocol for the Volume.
*
* @var string
*/
public $protocol;
/**
* The space remaining in the storage volume for new LUNs, in GiB, excluding
* space reserved for snapshots.
*
* @var string
*/
public $remainingSpaceGib;
/**
* The requested size of this storage volume, in GiB.
*
* @var string
*/
public $requestedSizeGib;
/**
* The behavior to use when snapshot reserved space is full.
*
* @var string
*/
public $snapshotAutoDeleteBehavior;
/**
* Whether snapshots are enabled.
*
* @var bool
*/
public $snapshotEnabled;
protected $snapshotReservationDetailType = SnapshotReservationDetail::class;
protected $snapshotReservationDetailDataType = '';
/**
* The state of this storage volume.
*
* @var string
*/
public $state;
/**
* The storage type for this volume.
*
* @var string
*/
public $storageType;
/**
* The workload profile for the volume.
*
* @var string
*/
public $workloadProfile;
/**
* Output only. Is the Volume attached at at least one instance. This field is
* a lightweight counterpart of `instances` field. It is filled in List
* responses as well.
*
* @param bool $attached
*/
public function setAttached($attached)
{
$this->attached = $attached;
}
/**
* @return bool
*/
public function getAttached()
{
return $this->attached;
}
/**
* The size, in GiB, that this storage volume has expanded as a result of an
* auto grow policy. In the absence of auto-grow, the value is 0.
*
* @param string $autoGrownSizeGib
*/
public function setAutoGrownSizeGib($autoGrownSizeGib)
{
$this->autoGrownSizeGib = $autoGrownSizeGib;
}
/**
* @return string
*/
public function getAutoGrownSizeGib()
{
return $this->autoGrownSizeGib;
}
/**
* Output only. Whether this volume is a boot volume. A boot volume is one
* which contains a boot LUN.
*
* @param bool $bootVolume
*/
public function setBootVolume($bootVolume)
{
$this->bootVolume = $bootVolume;
}
/**
* @return bool
*/
public function getBootVolume()
{
return $this->bootVolume;
}
/**
* The current size of this storage volume, in GiB, including space reserved
* for snapshots. This size might be different than the requested size if the
* storage volume has been configured with auto grow or auto shrink.
*
* @param string $currentSizeGib
*/
public function setCurrentSizeGib($currentSizeGib)
{
$this->currentSizeGib = $currentSizeGib;
}
/**
* @return string
*/
public function getCurrentSizeGib()
{
return $this->currentSizeGib;
}
/**
* Additional emergency size that was requested for this Volume, in GiB.
* current_size_gib includes this value.
*
* @param string $emergencySizeGib
*/
public function setEmergencySizeGib($emergencySizeGib)
{
$this->emergencySizeGib = $emergencySizeGib;
}
/**
* @return string
*/
public function getEmergencySizeGib()
{
return $this->emergencySizeGib;
}
/**
* Output only. Time after which volume will be fully deleted. It is filled
* only for volumes in COOLOFF state.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* An identifier for the `Volume`, generated by the backend.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Output only. Instances this Volume is attached to. This field is set only
* in Get requests.
*
* @param string[] $instances
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return string[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* Labels as key value pairs.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Maximum size volume can be expanded to in case of evergency, in GiB.
*
* @param string $maxSizeGib
*/
public function setMaxSizeGib($maxSizeGib)
{
$this->maxSizeGib = $maxSizeGib;
}
/**
* @return string
*/
public function getMaxSizeGib()
{
return $this->maxSizeGib;
}
/**
* Output only. The resource name of this `Volume`. Resource names are
* schemeless URIs that follow the conventions in
* https://cloud.google.com/apis/design/resource_names. Format:
* `projects/{project}/locations/{location}/volumes/{volume}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Input only. User-specified notes for new Volume. Used to provision Volumes
* that require manual intervention.
*
* @param string $notes
*/
public function setNotes($notes)
{
$this->notes = $notes;
}
/**
* @return string
*/
public function getNotes()
{
return $this->notes;
}
/**
* Originally requested size, in GiB.
*
* @param string $originallyRequestedSizeGib
*/
public function setOriginallyRequestedSizeGib($originallyRequestedSizeGib)
{
$this->originallyRequestedSizeGib = $originallyRequestedSizeGib;
}
/**
* @return string
*/
public function getOriginallyRequestedSizeGib()
{
return $this->originallyRequestedSizeGib;
}
/**
* Immutable. Performance tier of the Volume. Default is SHARED.
*
* Accepted values: VOLUME_PERFORMANCE_TIER_UNSPECIFIED,
* VOLUME_PERFORMANCE_TIER_SHARED, VOLUME_PERFORMANCE_TIER_ASSIGNED,
* VOLUME_PERFORMANCE_TIER_HT, VOLUME_PERFORMANCE_TIER_QOS2_PERFORMANCE
*
* @param self::PERFORMANCE_TIER_* $performanceTier
*/
public function setPerformanceTier($performanceTier)
{
$this->performanceTier = $performanceTier;
}
/**
* @return self::PERFORMANCE_TIER_*
*/
public function getPerformanceTier()
{
return $this->performanceTier;
}
/**
* Immutable. Pod name. Pod is an independent part of infrastructure. Volume
* can only be connected to the instances allocated in the same pod.
*
* @param string $pod
*/
public function setPod($pod)
{
$this->pod = $pod;
}
/**
* @return string
*/
public function getPod()
{
return $this->pod;
}
/**
* Output only. Storage protocol for the Volume.
*
* Accepted values: PROTOCOL_UNSPECIFIED, FIBRE_CHANNEL, NFS
*
* @param self::PROTOCOL_* $protocol
*/
public function setProtocol($protocol)
{
$this->protocol = $protocol;
}
/**
* @return self::PROTOCOL_*
*/
public function getProtocol()
{
return $this->protocol;
}
/**
* The space remaining in the storage volume for new LUNs, in GiB, excluding
* space reserved for snapshots.
*
* @param string $remainingSpaceGib
*/
public function setRemainingSpaceGib($remainingSpaceGib)
{
$this->remainingSpaceGib = $remainingSpaceGib;
}
/**
* @return string
*/
public function getRemainingSpaceGib()
{
return $this->remainingSpaceGib;
}
/**
* The requested size of this storage volume, in GiB.
*
* @param string $requestedSizeGib
*/
public function setRequestedSizeGib($requestedSizeGib)
{
$this->requestedSizeGib = $requestedSizeGib;
}
/**
* @return string
*/
public function getRequestedSizeGib()
{
return $this->requestedSizeGib;
}
/**
* The behavior to use when snapshot reserved space is full.
*
* Accepted values: SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED, DISABLED,
* OLDEST_FIRST, NEWEST_FIRST
*
* @param self::SNAPSHOT_AUTO_DELETE_BEHAVIOR_* $snapshotAutoDeleteBehavior
*/
public function setSnapshotAutoDeleteBehavior($snapshotAutoDeleteBehavior)
{
$this->snapshotAutoDeleteBehavior = $snapshotAutoDeleteBehavior;
}
/**
* @return self::SNAPSHOT_AUTO_DELETE_BEHAVIOR_*
*/
public function getSnapshotAutoDeleteBehavior()
{
return $this->snapshotAutoDeleteBehavior;
}
/**
* Whether snapshots are enabled.
*
* @param bool $snapshotEnabled
*/
public function setSnapshotEnabled($snapshotEnabled)
{
$this->snapshotEnabled = $snapshotEnabled;
}
/**
* @return bool
*/
public function getSnapshotEnabled()
{
return $this->snapshotEnabled;
}
/**
* Details about snapshot space reservation and usage on the storage volume.
*
* @param SnapshotReservationDetail $snapshotReservationDetail
*/
public function setSnapshotReservationDetail(SnapshotReservationDetail $snapshotReservationDetail)
{
$this->snapshotReservationDetail = $snapshotReservationDetail;
}
/**
* @return SnapshotReservationDetail
*/
public function getSnapshotReservationDetail()
{
return $this->snapshotReservationDetail;
}
/**
* The state of this storage volume.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, READY, DELETING, UPDATING,
* COOL_OFF
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* The storage type for this volume.
*
* Accepted values: STORAGE_TYPE_UNSPECIFIED, SSD, HDD
*
* @param self::STORAGE_TYPE_* $storageType
*/
public function setStorageType($storageType)
{
$this->storageType = $storageType;
}
/**
* @return self::STORAGE_TYPE_*
*/
public function getStorageType()
{
return $this->storageType;
}
/**
* The workload profile for the volume.
*
* Accepted values: WORKLOAD_PROFILE_UNSPECIFIED, GENERIC, HANA
*
* @param self::WORKLOAD_PROFILE_* $workloadProfile
*/
public function setWorkloadProfile($workloadProfile)
{
$this->workloadProfile = $workloadProfile;
}
/**
* @return self::WORKLOAD_PROFILE_*
*/
public function getWorkloadProfile()
{
return $this->workloadProfile;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Volume::class, 'Google_Service_Baremetalsolution_Volume');
@@ -0,0 +1,343 @@
<?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\Baremetalsolution;
class VolumeConfig extends \Google\Collection
{
/**
* Value is not specified.
*/
public const PERFORMANCE_TIER_VOLUME_PERFORMANCE_TIER_UNSPECIFIED = 'VOLUME_PERFORMANCE_TIER_UNSPECIFIED';
/**
* Regular volumes, shared aggregates.
*/
public const PERFORMANCE_TIER_VOLUME_PERFORMANCE_TIER_SHARED = 'VOLUME_PERFORMANCE_TIER_SHARED';
/**
* Assigned aggregates.
*/
public const PERFORMANCE_TIER_VOLUME_PERFORMANCE_TIER_ASSIGNED = 'VOLUME_PERFORMANCE_TIER_ASSIGNED';
/**
* High throughput aggregates.
*/
public const PERFORMANCE_TIER_VOLUME_PERFORMANCE_TIER_HT = 'VOLUME_PERFORMANCE_TIER_HT';
/**
* QoS 2.0 high performance storage.
*/
public const PERFORMANCE_TIER_VOLUME_PERFORMANCE_TIER_QOS2_PERFORMANCE = 'VOLUME_PERFORMANCE_TIER_QOS2_PERFORMANCE';
/**
* Unspecified value.
*/
public const PROTOCOL_PROTOCOL_UNSPECIFIED = 'PROTOCOL_UNSPECIFIED';
/**
* Fibre channel.
*/
public const PROTOCOL_PROTOCOL_FC = 'PROTOCOL_FC';
/**
* Network file system.
*/
public const PROTOCOL_PROTOCOL_NFS = 'PROTOCOL_NFS';
/**
* The unspecified type.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* This Volume is on flash.
*/
public const TYPE_FLASH = 'FLASH';
/**
* This Volume is on disk.
*/
public const TYPE_DISK = 'DISK';
protected $collection_key = 'nfsExports';
/**
* The GCP service of the storage volume. Available gcp_service are in
* https://cloud.google.com/bare-metal/docs/bms-planning.
*
* @var string
*/
public $gcpService;
/**
* A transient unique identifier to identify a volume within an
* ProvisioningConfig request.
*
* @var string
*/
public $id;
protected $lunRangesType = LunRange::class;
protected $lunRangesDataType = 'array';
/**
* Machine ids connected to this volume. Set only when protocol is
* PROTOCOL_FC.
*
* @var string[]
*/
public $machineIds;
/**
* Output only. The name of the volume config.
*
* @var string
*/
public $name;
protected $nfsExportsType = NfsExport::class;
protected $nfsExportsDataType = 'array';
/**
* Performance tier of the Volume. Default is SHARED.
*
* @var string
*/
public $performanceTier;
/**
* Volume protocol.
*
* @var string
*/
public $protocol;
/**
* The requested size of this volume, in GB.
*
* @var int
*/
public $sizeGb;
/**
* Whether snapshots should be enabled.
*
* @var bool
*/
public $snapshotsEnabled;
/**
* The type of this Volume.
*
* @var string
*/
public $type;
/**
* User note field, it can be used by customers to add additional information
* for the BMS Ops team .
*
* @var string
*/
public $userNote;
/**
* The GCP service of the storage volume. Available gcp_service are in
* https://cloud.google.com/bare-metal/docs/bms-planning.
*
* @param string $gcpService
*/
public function setGcpService($gcpService)
{
$this->gcpService = $gcpService;
}
/**
* @return string
*/
public function getGcpService()
{
return $this->gcpService;
}
/**
* A transient unique identifier to identify a volume within an
* ProvisioningConfig request.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
*
* @param LunRange[] $lunRanges
*/
public function setLunRanges($lunRanges)
{
$this->lunRanges = $lunRanges;
}
/**
* @return LunRange[]
*/
public function getLunRanges()
{
return $this->lunRanges;
}
/**
* Machine ids connected to this volume. Set only when protocol is
* PROTOCOL_FC.
*
* @param string[] $machineIds
*/
public function setMachineIds($machineIds)
{
$this->machineIds = $machineIds;
}
/**
* @return string[]
*/
public function getMachineIds()
{
return $this->machineIds;
}
/**
* Output only. The name of the volume config.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* NFS exports. Set only when protocol is PROTOCOL_NFS.
*
* @param NfsExport[] $nfsExports
*/
public function setNfsExports($nfsExports)
{
$this->nfsExports = $nfsExports;
}
/**
* @return NfsExport[]
*/
public function getNfsExports()
{
return $this->nfsExports;
}
/**
* Performance tier of the Volume. Default is SHARED.
*
* Accepted values: VOLUME_PERFORMANCE_TIER_UNSPECIFIED,
* VOLUME_PERFORMANCE_TIER_SHARED, VOLUME_PERFORMANCE_TIER_ASSIGNED,
* VOLUME_PERFORMANCE_TIER_HT, VOLUME_PERFORMANCE_TIER_QOS2_PERFORMANCE
*
* @param self::PERFORMANCE_TIER_* $performanceTier
*/
public function setPerformanceTier($performanceTier)
{
$this->performanceTier = $performanceTier;
}
/**
* @return self::PERFORMANCE_TIER_*
*/
public function getPerformanceTier()
{
return $this->performanceTier;
}
/**
* Volume protocol.
*
* Accepted values: PROTOCOL_UNSPECIFIED, PROTOCOL_FC, PROTOCOL_NFS
*
* @param self::PROTOCOL_* $protocol
*/
public function setProtocol($protocol)
{
$this->protocol = $protocol;
}
/**
* @return self::PROTOCOL_*
*/
public function getProtocol()
{
return $this->protocol;
}
/**
* The requested size of this volume, in GB.
*
* @param int $sizeGb
*/
public function setSizeGb($sizeGb)
{
$this->sizeGb = $sizeGb;
}
/**
* @return int
*/
public function getSizeGb()
{
return $this->sizeGb;
}
/**
* Whether snapshots should be enabled.
*
* @param bool $snapshotsEnabled
*/
public function setSnapshotsEnabled($snapshotsEnabled)
{
$this->snapshotsEnabled = $snapshotsEnabled;
}
/**
* @return bool
*/
public function getSnapshotsEnabled()
{
return $this->snapshotsEnabled;
}
/**
* The type of this Volume.
*
* Accepted values: TYPE_UNSPECIFIED, FLASH, DISK
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* User note field, it can be used by customers to add additional information
* for the BMS Ops team .
*
* @param string $userNote
*/
public function setUserNote($userNote)
{
$this->userNote = $userNote;
}
/**
* @return string
*/
public function getUserNote()
{
return $this->userNote;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VolumeConfig::class, 'Google_Service_Baremetalsolution_VolumeConfig');

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