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,564 @@
<?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\NetAppFiles;
class ActiveDirectory extends \Google\Collection
{
/**
* Unspecified Active Directory State
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Active Directory State is Creating
*/
public const STATE_CREATING = 'CREATING';
/**
* Active Directory State is Ready
*/
public const STATE_READY = 'READY';
/**
* Active Directory State is Updating
*/
public const STATE_UPDATING = 'UPDATING';
/**
* Active Directory State is In use
*/
public const STATE_IN_USE = 'IN_USE';
/**
* Active Directory State is Deleting
*/
public const STATE_DELETING = 'DELETING';
/**
* Active Directory State is Error
*/
public const STATE_ERROR = 'ERROR';
/**
* Active Directory State is Diagnosing.
*/
public const STATE_DIAGNOSING = 'DIAGNOSING';
protected $collection_key = 'securityOperators';
/**
* Optional. Users to be added to the Built-in Admininstrators group.
*
* @var string[]
*/
public $administrators;
/**
* If enabled, AES encryption will be enabled for SMB communication.
*
* @var bool
*/
public $aesEncryption;
/**
* Optional. Users to be added to the Built-in Backup Operator active
* directory group.
*
* @var string[]
*/
public $backupOperators;
/**
* Output only. Create time of the active directory.
*
* @var string
*/
public $createTime;
/**
* Description of the active directory.
*
* @var string
*/
public $description;
/**
* Required. Comma separated list of DNS server IP addresses for the Active
* Directory domain.
*
* @var string
*/
public $dns;
/**
* Required. Name of the Active Directory domain
*
* @var string
*/
public $domain;
/**
* If enabled, traffic between the SMB server to Domain Controller (DC) will
* be encrypted.
*
* @var bool
*/
public $encryptDcConnections;
/**
* Name of the active directory machine. This optional parameter is used only
* while creating kerberos volume
*
* @var string
*/
public $kdcHostname;
/**
* KDC server IP address for the active directory machine.
*
* @var string
*/
public $kdcIp;
/**
* Labels for the active directory.
*
* @var string[]
*/
public $labels;
/**
* Specifies whether or not the LDAP traffic needs to be signed.
*
* @var bool
*/
public $ldapSigning;
/**
* Identifier. The resource name of the active directory. Format: `projects/{p
* roject_number}/locations/{location_id}/activeDirectories/{active_directory_
* id}`.
*
* @var string
*/
public $name;
/**
* Required. NetBIOSPrefix is used as a prefix for SMB server name.
*
* @var string
*/
public $netBiosPrefix;
/**
* If enabled, will allow access to local users and LDAP users. If access is
* needed for only LDAP users, it has to be disabled.
*
* @var bool
*/
public $nfsUsersWithLdap;
/**
* The Organizational Unit (OU) within the Windows Active Directory the user
* belongs to.
*
* @var string
*/
public $organizationalUnit;
/**
* Required. Password of the Active Directory domain administrator.
*
* @var string
*/
public $password;
/**
* Optional. Domain users to be given the SeSecurityPrivilege.
*
* @var string[]
*/
public $securityOperators;
/**
* The Active Directory site the service will limit Domain Controller
* discovery too.
*
* @var string
*/
public $site;
/**
* Output only. The state of the AD.
*
* @var string
*/
public $state;
/**
* Output only. The state details of the Active Directory.
*
* @var string
*/
public $stateDetails;
/**
* Required. Username of the Active Directory domain administrator.
*
* @var string
*/
public $username;
/**
* Optional. Users to be added to the Built-in Admininstrators group.
*
* @param string[] $administrators
*/
public function setAdministrators($administrators)
{
$this->administrators = $administrators;
}
/**
* @return string[]
*/
public function getAdministrators()
{
return $this->administrators;
}
/**
* If enabled, AES encryption will be enabled for SMB communication.
*
* @param bool $aesEncryption
*/
public function setAesEncryption($aesEncryption)
{
$this->aesEncryption = $aesEncryption;
}
/**
* @return bool
*/
public function getAesEncryption()
{
return $this->aesEncryption;
}
/**
* Optional. Users to be added to the Built-in Backup Operator active
* directory group.
*
* @param string[] $backupOperators
*/
public function setBackupOperators($backupOperators)
{
$this->backupOperators = $backupOperators;
}
/**
* @return string[]
*/
public function getBackupOperators()
{
return $this->backupOperators;
}
/**
* Output only. Create time of the active directory.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Description of the active directory.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. Comma separated list of DNS server IP addresses for the Active
* Directory domain.
*
* @param string $dns
*/
public function setDns($dns)
{
$this->dns = $dns;
}
/**
* @return string
*/
public function getDns()
{
return $this->dns;
}
/**
* Required. Name of the Active Directory domain
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* If enabled, traffic between the SMB server to Domain Controller (DC) will
* be encrypted.
*
* @param bool $encryptDcConnections
*/
public function setEncryptDcConnections($encryptDcConnections)
{
$this->encryptDcConnections = $encryptDcConnections;
}
/**
* @return bool
*/
public function getEncryptDcConnections()
{
return $this->encryptDcConnections;
}
/**
* Name of the active directory machine. This optional parameter is used only
* while creating kerberos volume
*
* @param string $kdcHostname
*/
public function setKdcHostname($kdcHostname)
{
$this->kdcHostname = $kdcHostname;
}
/**
* @return string
*/
public function getKdcHostname()
{
return $this->kdcHostname;
}
/**
* KDC server IP address for the active directory machine.
*
* @param string $kdcIp
*/
public function setKdcIp($kdcIp)
{
$this->kdcIp = $kdcIp;
}
/**
* @return string
*/
public function getKdcIp()
{
return $this->kdcIp;
}
/**
* Labels for the active directory.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Specifies whether or not the LDAP traffic needs to be signed.
*
* @param bool $ldapSigning
*/
public function setLdapSigning($ldapSigning)
{
$this->ldapSigning = $ldapSigning;
}
/**
* @return bool
*/
public function getLdapSigning()
{
return $this->ldapSigning;
}
/**
* Identifier. The resource name of the active directory. Format: `projects/{p
* roject_number}/locations/{location_id}/activeDirectories/{active_directory_
* id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. NetBIOSPrefix is used as a prefix for SMB server name.
*
* @param string $netBiosPrefix
*/
public function setNetBiosPrefix($netBiosPrefix)
{
$this->netBiosPrefix = $netBiosPrefix;
}
/**
* @return string
*/
public function getNetBiosPrefix()
{
return $this->netBiosPrefix;
}
/**
* If enabled, will allow access to local users and LDAP users. If access is
* needed for only LDAP users, it has to be disabled.
*
* @param bool $nfsUsersWithLdap
*/
public function setNfsUsersWithLdap($nfsUsersWithLdap)
{
$this->nfsUsersWithLdap = $nfsUsersWithLdap;
}
/**
* @return bool
*/
public function getNfsUsersWithLdap()
{
return $this->nfsUsersWithLdap;
}
/**
* The Organizational Unit (OU) within the Windows Active Directory the user
* belongs to.
*
* @param string $organizationalUnit
*/
public function setOrganizationalUnit($organizationalUnit)
{
$this->organizationalUnit = $organizationalUnit;
}
/**
* @return string
*/
public function getOrganizationalUnit()
{
return $this->organizationalUnit;
}
/**
* Required. Password of the Active Directory domain administrator.
*
* @param string $password
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Optional. Domain users to be given the SeSecurityPrivilege.
*
* @param string[] $securityOperators
*/
public function setSecurityOperators($securityOperators)
{
$this->securityOperators = $securityOperators;
}
/**
* @return string[]
*/
public function getSecurityOperators()
{
return $this->securityOperators;
}
/**
* The Active Directory site the service will limit Domain Controller
* discovery too.
*
* @param string $site
*/
public function setSite($site)
{
$this->site = $site;
}
/**
* @return string
*/
public function getSite()
{
return $this->site;
}
/**
* Output only. The state of the AD.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, READY, UPDATING, IN_USE,
* DELETING, ERROR, DIAGNOSING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The state details of the Active Directory.
*
* @param string $stateDetails
*/
public function setStateDetails($stateDetails)
{
$this->stateDetails = $stateDetails;
}
/**
* @return string
*/
public function getStateDetails()
{
return $this->stateDetails;
}
/**
* Required. Username of the Active Directory domain administrator.
*
* @param string $username
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActiveDirectory::class, 'Google_Service_NetAppFiles_ActiveDirectory');
@@ -0,0 +1,109 @@
<?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\NetAppFiles;
class AssetLocation extends \Google\Collection
{
protected $collection_key = 'parentAsset';
/**
* @var string
*/
public $ccfeRmsPath;
protected $expectedType = IsolationExpectations::class;
protected $expectedDataType = '';
protected $extraParametersType = ExtraParameter::class;
protected $extraParametersDataType = 'array';
protected $locationDataType = LocationData::class;
protected $locationDataDataType = 'array';
protected $parentAssetType = CloudAsset::class;
protected $parentAssetDataType = 'array';
/**
* @param string
*/
public function setCcfeRmsPath($ccfeRmsPath)
{
$this->ccfeRmsPath = $ccfeRmsPath;
}
/**
* @return string
*/
public function getCcfeRmsPath()
{
return $this->ccfeRmsPath;
}
/**
* @param IsolationExpectations
*/
public function setExpected(IsolationExpectations $expected)
{
$this->expected = $expected;
}
/**
* @return IsolationExpectations
*/
public function getExpected()
{
return $this->expected;
}
/**
* @param ExtraParameter[]
*/
public function setExtraParameters($extraParameters)
{
$this->extraParameters = $extraParameters;
}
/**
* @return ExtraParameter[]
*/
public function getExtraParameters()
{
return $this->extraParameters;
}
/**
* @param LocationData[]
*/
public function setLocationData($locationData)
{
$this->locationData = $locationData;
}
/**
* @return LocationData[]
*/
public function getLocationData()
{
return $this->locationData;
}
/**
* @param CloudAsset[]
*/
public function setParentAsset($parentAsset)
{
$this->parentAsset = $parentAsset;
}
/**
* @return CloudAsset[]
*/
public function getParentAsset()
{
return $this->parentAsset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AssetLocation::class, 'Google_Service_NetAppFiles_AssetLocation');
@@ -0,0 +1,450 @@
<?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\NetAppFiles;
class Backup extends \Google\Model
{
/**
* Unspecified backup type.
*/
public const BACKUP_TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Manual backup type.
*/
public const BACKUP_TYPE_MANUAL = 'MANUAL';
/**
* Scheduled backup type.
*/
public const BACKUP_TYPE_SCHEDULED = 'SCHEDULED';
/**
* State not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Backup is being created. While in this state, the snapshot for the backup
* point-in-time may not have been created yet, and so the point-in-time may
* not have been fixed.
*/
public const STATE_CREATING = 'CREATING';
/**
* Backup is being uploaded. While in this state, none of the writes to the
* volume will be included in the backup.
*/
public const STATE_UPLOADING = 'UPLOADING';
/**
* Backup is available for use.
*/
public const STATE_READY = 'READY';
/**
* Backup is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* Backup is not valid and cannot be used for creating new volumes or
* restoring existing volumes.
*/
public const STATE_ERROR = 'ERROR';
/**
* Backup is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* Output only. Region in which backup is stored. Format:
* `projects/{project_id}/locations/{location}`
*
* @var string
*/
public $backupRegion;
/**
* Output only. Type of backup, manually created or created by a backup
* policy.
*
* @var string
*/
public $backupType;
/**
* Output only. Total size of all backups in a chain in bytes = baseline
* backup size + sum(incremental backup size)
*
* @var string
*/
public $chainStorageBytes;
/**
* Output only. The time when the backup was created.
*
* @var string
*/
public $createTime;
/**
* A description of the backup with 2048 characters or less. Requests with
* longer descriptions will be rejected.
*
* @var string
*/
public $description;
/**
* Output only. The time until which the backup is not deletable.
*
* @var string
*/
public $enforcedRetentionEndTime;
/**
* Resource labels to represent user provided metadata.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name of the backup. Format: `projects/{project_id}
* /locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`.
*
* @var string
*/
public $name;
protected $ontapSourceType = OntapSource::class;
protected $ontapSourceDataType = '';
/**
* Output only. Reserved for future use
*
* @var bool
*/
public $satisfiesPzi;
/**
* Output only. Reserved for future use
*
* @var bool
*/
public $satisfiesPzs;
/**
* If specified, backup will be created from the given snapshot. If not
* specified, there will be a new snapshot taken to initiate the backup
* creation. Format: `projects/{project_id}/locations/{location}/volumes/{volu
* me_id}/snapshots/{snapshot_id}`
*
* @var string
*/
public $sourceSnapshot;
/**
* The resource name of the volume that this backup belongs to. You must
* provide either `source_volume` or `ontap_source`. Format:
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`
*
* @var string
*/
public $sourceVolume;
/**
* Output only. The backup state.
*
* @var string
*/
public $state;
/**
* Output only. Region of the volume from which the backup was created.
* Format: `projects/{project_id}/locations/{location}`
*
* @var string
*/
public $volumeRegion;
/**
* Output only. Size of the file system when the backup was created. When
* creating a new volume from the backup, the volume capacity will have to be
* at least as big.
*
* @var string
*/
public $volumeUsageBytes;
/**
* Output only. Region in which backup is stored. Format:
* `projects/{project_id}/locations/{location}`
*
* @param string $backupRegion
*/
public function setBackupRegion($backupRegion)
{
$this->backupRegion = $backupRegion;
}
/**
* @return string
*/
public function getBackupRegion()
{
return $this->backupRegion;
}
/**
* Output only. Type of backup, manually created or created by a backup
* policy.
*
* Accepted values: TYPE_UNSPECIFIED, MANUAL, SCHEDULED
*
* @param self::BACKUP_TYPE_* $backupType
*/
public function setBackupType($backupType)
{
$this->backupType = $backupType;
}
/**
* @return self::BACKUP_TYPE_*
*/
public function getBackupType()
{
return $this->backupType;
}
/**
* Output only. Total size of all backups in a chain in bytes = baseline
* backup size + sum(incremental backup size)
*
* @param string $chainStorageBytes
*/
public function setChainStorageBytes($chainStorageBytes)
{
$this->chainStorageBytes = $chainStorageBytes;
}
/**
* @return string
*/
public function getChainStorageBytes()
{
return $this->chainStorageBytes;
}
/**
* Output only. The time when the backup was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* A description of the backup with 2048 characters or less. Requests with
* longer descriptions will be rejected.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. The time until which the backup is not deletable.
*
* @param string $enforcedRetentionEndTime
*/
public function setEnforcedRetentionEndTime($enforcedRetentionEndTime)
{
$this->enforcedRetentionEndTime = $enforcedRetentionEndTime;
}
/**
* @return string
*/
public function getEnforcedRetentionEndTime()
{
return $this->enforcedRetentionEndTime;
}
/**
* Resource labels to represent user provided metadata.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name of the backup. Format: `projects/{project_id}
* /locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Represents source details for ONTAP backups. Either source_volume
* or ontap_source should be provided.
*
* @param OntapSource $ontapSource
*/
public function setOntapSource(OntapSource $ontapSource)
{
$this->ontapSource = $ontapSource;
}
/**
* @return OntapSource
*/
public function getOntapSource()
{
return $this->ontapSource;
}
/**
* Output only. Reserved for future use
*
* @param bool $satisfiesPzi
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* Output only. Reserved for future use
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* If specified, backup will be created from the given snapshot. If not
* specified, there will be a new snapshot taken to initiate the backup
* creation. Format: `projects/{project_id}/locations/{location}/volumes/{volu
* me_id}/snapshots/{snapshot_id}`
*
* @param string $sourceSnapshot
*/
public function setSourceSnapshot($sourceSnapshot)
{
$this->sourceSnapshot = $sourceSnapshot;
}
/**
* @return string
*/
public function getSourceSnapshot()
{
return $this->sourceSnapshot;
}
/**
* The resource name of the volume that this backup belongs to. You must
* provide either `source_volume` or `ontap_source`. Format:
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`
*
* @param string $sourceVolume
*/
public function setSourceVolume($sourceVolume)
{
$this->sourceVolume = $sourceVolume;
}
/**
* @return string
*/
public function getSourceVolume()
{
return $this->sourceVolume;
}
/**
* Output only. The backup state.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, UPLOADING, READY, DELETING,
* ERROR, UPDATING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Region of the volume from which the backup was created.
* Format: `projects/{project_id}/locations/{location}`
*
* @param string $volumeRegion
*/
public function setVolumeRegion($volumeRegion)
{
$this->volumeRegion = $volumeRegion;
}
/**
* @return string
*/
public function getVolumeRegion()
{
return $this->volumeRegion;
}
/**
* Output only. Size of the file system when the backup was created. When
* creating a new volume from the backup, the volume capacity will have to be
* at least as big.
*
* @param string $volumeUsageBytes
*/
public function setVolumeUsageBytes($volumeUsageBytes)
{
$this->volumeUsageBytes = $volumeUsageBytes;
}
/**
* @return string
*/
public function getVolumeUsageBytes()
{
return $this->volumeUsageBytes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Backup::class, 'Google_Service_NetAppFiles_Backup');
@@ -0,0 +1,123 @@
<?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\NetAppFiles;
class BackupConfig extends \Google\Collection
{
protected $collection_key = 'backupPolicies';
/**
* Output only. Total size of all backups in a chain in bytes = baseline
* backup size + sum(incremental backup size).
*
* @var string
*/
public $backupChainBytes;
/**
* Optional. When specified, schedule backups will be created based on the
* policy configuration.
*
* @var string[]
*/
public $backupPolicies;
/**
* Optional. Name of backup vault. Format:
* projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}
*
* @var string
*/
public $backupVault;
/**
* Optional. When set to true, scheduled backup is enabled on the volume. This
* field should be nil when there's no backup policy attached.
*
* @var bool
*/
public $scheduledBackupEnabled;
/**
* Output only. Total size of all backups in a chain in bytes = baseline
* backup size + sum(incremental backup size).
*
* @param string $backupChainBytes
*/
public function setBackupChainBytes($backupChainBytes)
{
$this->backupChainBytes = $backupChainBytes;
}
/**
* @return string
*/
public function getBackupChainBytes()
{
return $this->backupChainBytes;
}
/**
* Optional. When specified, schedule backups will be created based on the
* policy configuration.
*
* @param string[] $backupPolicies
*/
public function setBackupPolicies($backupPolicies)
{
$this->backupPolicies = $backupPolicies;
}
/**
* @return string[]
*/
public function getBackupPolicies()
{
return $this->backupPolicies;
}
/**
* Optional. Name of backup vault. Format:
* projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}
*
* @param string $backupVault
*/
public function setBackupVault($backupVault)
{
$this->backupVault = $backupVault;
}
/**
* @return string
*/
public function getBackupVault()
{
return $this->backupVault;
}
/**
* Optional. When set to true, scheduled backup is enabled on the volume. This
* field should be nil when there's no backup policy attached.
*
* @param bool $scheduledBackupEnabled
*/
public function setScheduledBackupEnabled($scheduledBackupEnabled)
{
$this->scheduledBackupEnabled = $scheduledBackupEnabled;
}
/**
* @return bool
*/
public function getScheduledBackupEnabled()
{
return $this->scheduledBackupEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupConfig::class, 'Google_Service_NetAppFiles_BackupConfig');
@@ -0,0 +1,285 @@
<?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\NetAppFiles;
class BackupPolicy extends \Google\Model
{
/**
* State not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* BackupPolicy is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* BackupPolicy is available for use.
*/
public const STATE_READY = 'READY';
/**
* BackupPolicy is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* BackupPolicy is not valid and cannot be used.
*/
public const STATE_ERROR = 'ERROR';
/**
* BackupPolicy is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* Output only. The total number of volumes assigned by this backup policy.
*
* @var int
*/
public $assignedVolumeCount;
/**
* Output only. The time when the backup policy was created.
*
* @var string
*/
public $createTime;
/**
* Number of daily backups to keep. Note that the minimum daily backup limit
* is 2.
*
* @var int
*/
public $dailyBackupLimit;
/**
* Description of the backup policy.
*
* @var string
*/
public $description;
/**
* If enabled, make backups automatically according to the schedules. This
* will be applied to all volumes that have this policy attached and enforced
* on volume level. If not specified, default is true.
*
* @var bool
*/
public $enabled;
/**
* Resource labels to represent user provided metadata.
*
* @var string[]
*/
public $labels;
/**
* Number of monthly backups to keep. Note that the sum of daily, weekly and
* monthly backups should be greater than 1.
*
* @var int
*/
public $monthlyBackupLimit;
/**
* Identifier. The resource name of the backup policy. Format: `projects/{proj
* ect_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
*
* @var string
*/
public $name;
/**
* Output only. The backup policy state.
*
* @var string
*/
public $state;
/**
* Number of weekly backups to keep. Note that the sum of daily, weekly and
* monthly backups should be greater than 1.
*
* @var int
*/
public $weeklyBackupLimit;
/**
* Output only. The total number of volumes assigned by this backup policy.
*
* @param int $assignedVolumeCount
*/
public function setAssignedVolumeCount($assignedVolumeCount)
{
$this->assignedVolumeCount = $assignedVolumeCount;
}
/**
* @return int
*/
public function getAssignedVolumeCount()
{
return $this->assignedVolumeCount;
}
/**
* Output only. The time when the backup policy was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Number of daily backups to keep. Note that the minimum daily backup limit
* is 2.
*
* @param int $dailyBackupLimit
*/
public function setDailyBackupLimit($dailyBackupLimit)
{
$this->dailyBackupLimit = $dailyBackupLimit;
}
/**
* @return int
*/
public function getDailyBackupLimit()
{
return $this->dailyBackupLimit;
}
/**
* Description of the backup policy.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* If enabled, make backups automatically according to the schedules. This
* will be applied to all volumes that have this policy attached and enforced
* on volume level. If not specified, default is true.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* Resource labels to represent user provided metadata.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Number of monthly backups to keep. Note that the sum of daily, weekly and
* monthly backups should be greater than 1.
*
* @param int $monthlyBackupLimit
*/
public function setMonthlyBackupLimit($monthlyBackupLimit)
{
$this->monthlyBackupLimit = $monthlyBackupLimit;
}
/**
* @return int
*/
public function getMonthlyBackupLimit()
{
return $this->monthlyBackupLimit;
}
/**
* Identifier. The resource name of the backup policy. Format: `projects/{proj
* ect_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The backup policy state.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, READY, DELETING, ERROR,
* UPDATING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Number of weekly backups to keep. Note that the sum of daily, weekly and
* monthly backups should be greater than 1.
*
* @param int $weeklyBackupLimit
*/
public function setWeeklyBackupLimit($weeklyBackupLimit)
{
$this->weeklyBackupLimit = $weeklyBackupLimit;
}
/**
* @return int
*/
public function getWeeklyBackupLimit()
{
return $this->weeklyBackupLimit;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupPolicy::class, 'Google_Service_NetAppFiles_BackupPolicy');
@@ -0,0 +1,154 @@
<?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\NetAppFiles;
class BackupRetentionPolicy extends \Google\Model
{
/**
* Required. Minimum retention duration in days for backups in the backup
* vault.
*
* @var int
*/
public $backupMinimumEnforcedRetentionDays;
/**
* Optional. Indicates if the daily backups are immutable. At least one of
* daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable
* and manual_backup_immutable must be true.
*
* @var bool
*/
public $dailyBackupImmutable;
/**
* Optional. Indicates if the manual backups are immutable. At least one of
* daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable
* and manual_backup_immutable must be true.
*
* @var bool
*/
public $manualBackupImmutable;
/**
* Optional. Indicates if the monthly backups are immutable. At least one of
* daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable
* and manual_backup_immutable must be true.
*
* @var bool
*/
public $monthlyBackupImmutable;
/**
* Optional. Indicates if the weekly backups are immutable. At least one of
* daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable
* and manual_backup_immutable must be true.
*
* @var bool
*/
public $weeklyBackupImmutable;
/**
* Required. Minimum retention duration in days for backups in the backup
* vault.
*
* @param int $backupMinimumEnforcedRetentionDays
*/
public function setBackupMinimumEnforcedRetentionDays($backupMinimumEnforcedRetentionDays)
{
$this->backupMinimumEnforcedRetentionDays = $backupMinimumEnforcedRetentionDays;
}
/**
* @return int
*/
public function getBackupMinimumEnforcedRetentionDays()
{
return $this->backupMinimumEnforcedRetentionDays;
}
/**
* Optional. Indicates if the daily backups are immutable. At least one of
* daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable
* and manual_backup_immutable must be true.
*
* @param bool $dailyBackupImmutable
*/
public function setDailyBackupImmutable($dailyBackupImmutable)
{
$this->dailyBackupImmutable = $dailyBackupImmutable;
}
/**
* @return bool
*/
public function getDailyBackupImmutable()
{
return $this->dailyBackupImmutable;
}
/**
* Optional. Indicates if the manual backups are immutable. At least one of
* daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable
* and manual_backup_immutable must be true.
*
* @param bool $manualBackupImmutable
*/
public function setManualBackupImmutable($manualBackupImmutable)
{
$this->manualBackupImmutable = $manualBackupImmutable;
}
/**
* @return bool
*/
public function getManualBackupImmutable()
{
return $this->manualBackupImmutable;
}
/**
* Optional. Indicates if the monthly backups are immutable. At least one of
* daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable
* and manual_backup_immutable must be true.
*
* @param bool $monthlyBackupImmutable
*/
public function setMonthlyBackupImmutable($monthlyBackupImmutable)
{
$this->monthlyBackupImmutable = $monthlyBackupImmutable;
}
/**
* @return bool
*/
public function getMonthlyBackupImmutable()
{
return $this->monthlyBackupImmutable;
}
/**
* Optional. Indicates if the weekly backups are immutable. At least one of
* daily_backup_immutable, weekly_backup_immutable, monthly_backup_immutable
* and manual_backup_immutable must be true.
*
* @param bool $weeklyBackupImmutable
*/
public function setWeeklyBackupImmutable($weeklyBackupImmutable)
{
$this->weeklyBackupImmutable = $weeklyBackupImmutable;
}
/**
* @return bool
*/
public function getWeeklyBackupImmutable()
{
return $this->weeklyBackupImmutable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupRetentionPolicy::class, 'Google_Service_NetAppFiles_BackupRetentionPolicy');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetAppFiles;
class BackupSource extends \Google\Collection
{
protected $collection_key = 'fileList';
/**
* Required. The backup resource name.
*
* @var string
*/
public $backup;
/**
* Optional. List of files to be restored in the form of their absolute path
* as in source volume. If provided, only these files will be restored. If not
* provided, the entire backup will be restored (Full Backup Restore)
*
* @var string[]
*/
public $fileList;
/**
* Required. The backup resource name.
*
* @param string $backup
*/
public function setBackup($backup)
{
$this->backup = $backup;
}
/**
* @return string
*/
public function getBackup()
{
return $this->backup;
}
/**
* Optional. List of files to be restored in the form of their absolute path
* as in source volume. If provided, only these files will be restored. If not
* provided, the entire backup will be restored (Full Backup Restore)
*
* @param string[] $fileList
*/
public function setFileList($fileList)
{
$this->fileList = $fileList;
}
/**
* @return string[]
*/
public function getFileList()
{
return $this->fileList;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupSource::class, 'Google_Service_NetAppFiles_BackupSource');
@@ -0,0 +1,413 @@
<?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\NetAppFiles;
class BackupVault extends \Google\Model
{
/**
* BackupVault type not set.
*/
public const BACKUP_VAULT_TYPE_BACKUP_VAULT_TYPE_UNSPECIFIED = 'BACKUP_VAULT_TYPE_UNSPECIFIED';
/**
* BackupVault type is IN_REGION.
*/
public const BACKUP_VAULT_TYPE_IN_REGION = 'IN_REGION';
/**
* BackupVault type is CROSS_REGION.
*/
public const BACKUP_VAULT_TYPE_CROSS_REGION = 'CROSS_REGION';
/**
* Encryption state not set.
*/
public const ENCRYPTION_STATE_ENCRYPTION_STATE_UNSPECIFIED = 'ENCRYPTION_STATE_UNSPECIFIED';
/**
* Encryption state is pending.
*/
public const ENCRYPTION_STATE_ENCRYPTION_STATE_PENDING = 'ENCRYPTION_STATE_PENDING';
/**
* Encryption is complete.
*/
public const ENCRYPTION_STATE_ENCRYPTION_STATE_COMPLETED = 'ENCRYPTION_STATE_COMPLETED';
/**
* Encryption is in progress.
*/
public const ENCRYPTION_STATE_ENCRYPTION_STATE_IN_PROGRESS = 'ENCRYPTION_STATE_IN_PROGRESS';
/**
* Encryption has failed.
*/
public const ENCRYPTION_STATE_ENCRYPTION_STATE_FAILED = 'ENCRYPTION_STATE_FAILED';
/**
* State not set.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* BackupVault is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* BackupVault is available for use.
*/
public const STATE_READY = 'READY';
/**
* BackupVault is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* BackupVault is not valid and cannot be used.
*/
public const STATE_ERROR = 'ERROR';
/**
* BackupVault is being updated.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* Optional. Region where the backups are stored. Format:
* `projects/{project_id}/locations/{location}`
*
* @var string
*/
public $backupRegion;
protected $backupRetentionPolicyType = BackupRetentionPolicy::class;
protected $backupRetentionPolicyDataType = '';
/**
* Optional. Type of backup vault to be created. Default is IN_REGION.
*
* @var string
*/
public $backupVaultType;
/**
* Output only. The crypto key version used to encrypt the backup vault.
* Format: `projects/{project}/locations/{location}/keyRings/{key_ring}/crypto
* Keys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
*
* @var string
*/
public $backupsCryptoKeyVersion;
/**
* Output only. Create time of the backup vault.
*
* @var string
*/
public $createTime;
/**
* Description of the backup vault.
*
* @var string
*/
public $description;
/**
* Output only. Name of the Backup vault created in backup region. Format:
* `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
*
* @var string
*/
public $destinationBackupVault;
/**
* Output only. Field indicating encryption state of CMEK backups.
*
* @var string
*/
public $encryptionState;
/**
* Optional. Specifies the Key Management System (KMS) configuration to be
* used for backup encryption. Format:
* `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
*
* @var string
*/
public $kmsConfig;
/**
* Resource labels to represent user provided metadata.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name of the backup vault. Format: `projects/{proje
* ct_id}/locations/{location}/backupVaults/{backup_vault_id}`.
*
* @var string
*/
public $name;
/**
* Output only. Name of the Backup vault created in source region. Format:
* `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
*
* @var string
*/
public $sourceBackupVault;
/**
* Output only. Region in which the backup vault is created. Format:
* `projects/{project_id}/locations/{location}`
*
* @var string
*/
public $sourceRegion;
/**
* Output only. The backup vault state.
*
* @var string
*/
public $state;
/**
* Optional. Region where the backups are stored. Format:
* `projects/{project_id}/locations/{location}`
*
* @param string $backupRegion
*/
public function setBackupRegion($backupRegion)
{
$this->backupRegion = $backupRegion;
}
/**
* @return string
*/
public function getBackupRegion()
{
return $this->backupRegion;
}
/**
* Optional. Backup retention policy defining the retention of backups.
*
* @param BackupRetentionPolicy $backupRetentionPolicy
*/
public function setBackupRetentionPolicy(BackupRetentionPolicy $backupRetentionPolicy)
{
$this->backupRetentionPolicy = $backupRetentionPolicy;
}
/**
* @return BackupRetentionPolicy
*/
public function getBackupRetentionPolicy()
{
return $this->backupRetentionPolicy;
}
/**
* Optional. Type of backup vault to be created. Default is IN_REGION.
*
* Accepted values: BACKUP_VAULT_TYPE_UNSPECIFIED, IN_REGION, CROSS_REGION
*
* @param self::BACKUP_VAULT_TYPE_* $backupVaultType
*/
public function setBackupVaultType($backupVaultType)
{
$this->backupVaultType = $backupVaultType;
}
/**
* @return self::BACKUP_VAULT_TYPE_*
*/
public function getBackupVaultType()
{
return $this->backupVaultType;
}
/**
* Output only. The crypto key version used to encrypt the backup vault.
* Format: `projects/{project}/locations/{location}/keyRings/{key_ring}/crypto
* Keys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
*
* @param string $backupsCryptoKeyVersion
*/
public function setBackupsCryptoKeyVersion($backupsCryptoKeyVersion)
{
$this->backupsCryptoKeyVersion = $backupsCryptoKeyVersion;
}
/**
* @return string
*/
public function getBackupsCryptoKeyVersion()
{
return $this->backupsCryptoKeyVersion;
}
/**
* Output only. Create time of the backup vault.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Description of the backup vault.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. Name of the Backup vault created in backup region. Format:
* `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
*
* @param string $destinationBackupVault
*/
public function setDestinationBackupVault($destinationBackupVault)
{
$this->destinationBackupVault = $destinationBackupVault;
}
/**
* @return string
*/
public function getDestinationBackupVault()
{
return $this->destinationBackupVault;
}
/**
* Output only. Field indicating encryption state of CMEK backups.
*
* Accepted values: ENCRYPTION_STATE_UNSPECIFIED, ENCRYPTION_STATE_PENDING,
* ENCRYPTION_STATE_COMPLETED, ENCRYPTION_STATE_IN_PROGRESS,
* ENCRYPTION_STATE_FAILED
*
* @param self::ENCRYPTION_STATE_* $encryptionState
*/
public function setEncryptionState($encryptionState)
{
$this->encryptionState = $encryptionState;
}
/**
* @return self::ENCRYPTION_STATE_*
*/
public function getEncryptionState()
{
return $this->encryptionState;
}
/**
* Optional. Specifies the Key Management System (KMS) configuration to be
* used for backup encryption. Format:
* `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
*
* @param string $kmsConfig
*/
public function setKmsConfig($kmsConfig)
{
$this->kmsConfig = $kmsConfig;
}
/**
* @return string
*/
public function getKmsConfig()
{
return $this->kmsConfig;
}
/**
* Resource labels to represent user provided metadata.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name of the backup vault. Format: `projects/{proje
* ct_id}/locations/{location}/backupVaults/{backup_vault_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Name of the Backup vault created in source region. Format:
* `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
*
* @param string $sourceBackupVault
*/
public function setSourceBackupVault($sourceBackupVault)
{
$this->sourceBackupVault = $sourceBackupVault;
}
/**
* @return string
*/
public function getSourceBackupVault()
{
return $this->sourceBackupVault;
}
/**
* Output only. Region in which the backup vault is created. Format:
* `projects/{project_id}/locations/{location}`
*
* @param string $sourceRegion
*/
public function setSourceRegion($sourceRegion)
{
$this->sourceRegion = $sourceRegion;
}
/**
* @return string
*/
public function getSourceRegion()
{
return $this->sourceRegion;
}
/**
* Output only. The backup vault state.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, READY, DELETING, ERROR,
* UPDATING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BackupVault::class, 'Google_Service_NetAppFiles_BackupVault');
@@ -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\NetAppFiles;
class BlobstoreLocation extends \Google\Collection
{
protected $collection_key = 'policyId';
/**
* @var string[]
*/
public $policyId;
/**
* @param string[]
*/
public function setPolicyId($policyId)
{
$this->policyId = $policyId;
}
/**
* @return string[]
*/
public function getPolicyId()
{
return $this->policyId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BlobstoreLocation::class, 'Google_Service_NetAppFiles_BlobstoreLocation');
@@ -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\NetAppFiles;
class BlockDevice extends \Google\Collection
{
/**
* Unspecified OS Type
*/
public const OS_TYPE_OS_TYPE_UNSPECIFIED = 'OS_TYPE_UNSPECIFIED';
/**
* OS Type is Linux
*/
public const OS_TYPE_LINUX = 'LINUX';
/**
* OS Type is Windows
*/
public const OS_TYPE_WINDOWS = 'WINDOWS';
/**
* OS Type is VMware ESXi
*/
public const OS_TYPE_ESXI = 'ESXI';
protected $collection_key = 'hostGroups';
/**
* Optional. A list of host groups that identify hosts that can mount the
* block volume. Format:
* `projects/{project_id}/locations/{location}/hostGroups/{host_group_id}`
* This field can be updated after the block device is created.
*
* @var string[]
*/
public $hostGroups;
/**
* Output only. Device identifier of the block volume. This represents
* `lun_serial_number` for iSCSI volumes.
*
* @var string
*/
public $identifier;
/**
* Optional. User-defined name for the block device, unique within the volume.
* In case no user input is provided, name will be auto-generated in the
* backend. The name must meet the following requirements: * Be between 1 and
* 255 characters long. * Contain only uppercase or lowercase letters (A-Z,
* a-z), numbers (0-9), and the following special characters: "-", "_", "}",
* "{", ".". * Spaces are not allowed.
*
* @var string
*/
public $name;
/**
* Required. Immutable. The OS type of the volume. This field can't be changed
* after the block device is created.
*
* @var string
*/
public $osType;
/**
* Optional. The size of the block device in GiB. Any value provided for the
* `size_gib` field during volume creation is ignored. The block device's size
* is system-managed and will be set to match the parent Volume's
* `capacity_gib`.
*
* @var string
*/
public $sizeGib;
/**
* Optional. A list of host groups that identify hosts that can mount the
* block volume. Format:
* `projects/{project_id}/locations/{location}/hostGroups/{host_group_id}`
* This field can be updated after the block device is created.
*
* @param string[] $hostGroups
*/
public function setHostGroups($hostGroups)
{
$this->hostGroups = $hostGroups;
}
/**
* @return string[]
*/
public function getHostGroups()
{
return $this->hostGroups;
}
/**
* Output only. Device identifier of the block volume. This represents
* `lun_serial_number` for iSCSI volumes.
*
* @param string $identifier
*/
public function setIdentifier($identifier)
{
$this->identifier = $identifier;
}
/**
* @return string
*/
public function getIdentifier()
{
return $this->identifier;
}
/**
* Optional. User-defined name for the block device, unique within the volume.
* In case no user input is provided, name will be auto-generated in the
* backend. The name must meet the following requirements: * Be between 1 and
* 255 characters long. * Contain only uppercase or lowercase letters (A-Z,
* a-z), numbers (0-9), and the following special characters: "-", "_", "}",
* "{", ".". * Spaces are not allowed.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Immutable. The OS type of the volume. This field can't be changed
* after the block device is created.
*
* Accepted values: OS_TYPE_UNSPECIFIED, LINUX, WINDOWS, ESXI
*
* @param self::OS_TYPE_* $osType
*/
public function setOsType($osType)
{
$this->osType = $osType;
}
/**
* @return self::OS_TYPE_*
*/
public function getOsType()
{
return $this->osType;
}
/**
* Optional. The size of the block device in GiB. Any value provided for the
* `size_gib` field during volume creation is ignored. The block device's size
* is system-managed and will be set to match the parent Volume's
* `capacity_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(BlockDevice::class, 'Google_Service_NetAppFiles_BlockDevice');
@@ -0,0 +1,143 @@
<?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\NetAppFiles;
class CacheConfig extends \Google\Model
{
/**
* Default unspecified state.
*/
public const CACHE_PRE_POPULATE_STATE_CACHE_PRE_POPULATE_STATE_UNSPECIFIED = 'CACHE_PRE_POPULATE_STATE_UNSPECIFIED';
/**
* State representing when the most recent create or update request did not
* require a prepopulation job.
*/
public const CACHE_PRE_POPULATE_STATE_NOT_NEEDED = 'NOT_NEEDED';
/**
* State representing when the most recent update request requested a
* prepopulation job but it has not yet completed.
*/
public const CACHE_PRE_POPULATE_STATE_IN_PROGRESS = 'IN_PROGRESS';
/**
* State representing when the most recent update request requested a
* prepopulation job and it has completed successfully.
*/
public const CACHE_PRE_POPULATE_STATE_COMPLETE = 'COMPLETE';
/**
* State representing when the most recent update request requested a
* prepopulation job but the prepopulate job failed.
*/
public const CACHE_PRE_POPULATE_STATE_ERROR = 'ERROR';
protected $cachePrePopulateType = CachePrePopulate::class;
protected $cachePrePopulateDataType = '';
/**
* Output only. State of the prepopulation job indicating how the
* prepopulation is progressing.
*
* @var string
*/
public $cachePrePopulateState;
/**
* Optional. Flag indicating whether a CIFS change notification is enabled for
* the FlexCache volume.
*
* @var bool
*/
public $cifsChangeNotifyEnabled;
/**
* Optional. Flag indicating whether writeback is enabled for the FlexCache
* volume.
*
* @var bool
*/
public $writebackEnabled;
/**
* Optional. Pre-populate cache volume with data from the origin volume.
*
* @param CachePrePopulate $cachePrePopulate
*/
public function setCachePrePopulate(CachePrePopulate $cachePrePopulate)
{
$this->cachePrePopulate = $cachePrePopulate;
}
/**
* @return CachePrePopulate
*/
public function getCachePrePopulate()
{
return $this->cachePrePopulate;
}
/**
* Output only. State of the prepopulation job indicating how the
* prepopulation is progressing.
*
* Accepted values: CACHE_PRE_POPULATE_STATE_UNSPECIFIED, NOT_NEEDED,
* IN_PROGRESS, COMPLETE, ERROR
*
* @param self::CACHE_PRE_POPULATE_STATE_* $cachePrePopulateState
*/
public function setCachePrePopulateState($cachePrePopulateState)
{
$this->cachePrePopulateState = $cachePrePopulateState;
}
/**
* @return self::CACHE_PRE_POPULATE_STATE_*
*/
public function getCachePrePopulateState()
{
return $this->cachePrePopulateState;
}
/**
* Optional. Flag indicating whether a CIFS change notification is enabled for
* the FlexCache volume.
*
* @param bool $cifsChangeNotifyEnabled
*/
public function setCifsChangeNotifyEnabled($cifsChangeNotifyEnabled)
{
$this->cifsChangeNotifyEnabled = $cifsChangeNotifyEnabled;
}
/**
* @return bool
*/
public function getCifsChangeNotifyEnabled()
{
return $this->cifsChangeNotifyEnabled;
}
/**
* Optional. Flag indicating whether writeback is enabled for the FlexCache
* volume.
*
* @param bool $writebackEnabled
*/
public function setWritebackEnabled($writebackEnabled)
{
$this->writebackEnabled = $writebackEnabled;
}
/**
* @return bool
*/
public function getWritebackEnabled()
{
return $this->writebackEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CacheConfig::class, 'Google_Service_NetAppFiles_CacheConfig');
@@ -0,0 +1,296 @@
<?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\NetAppFiles;
class CacheParameters extends \Google\Collection
{
/**
* Default unspecified state.
*/
public const CACHE_STATE_CACHE_STATE_UNSPECIFIED = 'CACHE_STATE_UNSPECIFIED';
/**
* State indicating waiting for cluster peering to be established.
*/
public const CACHE_STATE_PENDING_CLUSTER_PEERING = 'PENDING_CLUSTER_PEERING';
/**
* State indicating waiting for SVM peering to be established.
*/
public const CACHE_STATE_PENDING_SVM_PEERING = 'PENDING_SVM_PEERING';
/**
* State indicating successful establishment of peering with origin volumes's
* ONTAP cluster.
*/
public const CACHE_STATE_PEERED = 'PEERED';
/**
* Terminal state wherein peering with origin volume's ONTAP cluster has
* failed.
*/
public const CACHE_STATE_ERROR = 'ERROR';
protected $collection_key = 'peerIpAddresses';
protected $cacheConfigType = CacheConfig::class;
protected $cacheConfigDataType = '';
/**
* Output only. State of the cache volume indicating the peering status.
*
* @var string
*/
public $cacheState;
/**
* Output only. Copy-paste-able commands to be used on user's ONTAP to accept
* peering requests.
*
* @var string
*/
public $command;
/**
* Optional. Indicates whether the cache volume has global file lock enabled.
*
* @var bool
*/
public $enableGlobalFileLock;
/**
* Output only. Temporary passphrase generated to accept cluster peering
* command.
*
* @var string
*/
public $passphrase;
/**
* Required. Name of the origin volume's ONTAP cluster.
*
* @var string
*/
public $peerClusterName;
/**
* Required. List of IC LIF addresses of the origin volume's ONTAP cluster.
*
* @var string[]
*/
public $peerIpAddresses;
/**
* Required. Name of the origin volume's SVM.
*
* @var string
*/
public $peerSvmName;
/**
* Required. Name of the origin volume for the cache volume.
*
* @var string
*/
public $peerVolumeName;
/**
* Optional. Expiration time for the peering command to be executed on user's
* ONTAP.
*
* @var string
*/
public $peeringCommandExpiryTime;
/**
* Output only. Detailed description of the current cache state.
*
* @var string
*/
public $stateDetails;
/**
* Optional. Configuration of the cache volume.
*
* @param CacheConfig $cacheConfig
*/
public function setCacheConfig(CacheConfig $cacheConfig)
{
$this->cacheConfig = $cacheConfig;
}
/**
* @return CacheConfig
*/
public function getCacheConfig()
{
return $this->cacheConfig;
}
/**
* Output only. State of the cache volume indicating the peering status.
*
* Accepted values: CACHE_STATE_UNSPECIFIED, PENDING_CLUSTER_PEERING,
* PENDING_SVM_PEERING, PEERED, ERROR
*
* @param self::CACHE_STATE_* $cacheState
*/
public function setCacheState($cacheState)
{
$this->cacheState = $cacheState;
}
/**
* @return self::CACHE_STATE_*
*/
public function getCacheState()
{
return $this->cacheState;
}
/**
* Output only. Copy-paste-able commands to be used on user's ONTAP to accept
* peering requests.
*
* @param string $command
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string
*/
public function getCommand()
{
return $this->command;
}
/**
* Optional. Indicates whether the cache volume has global file lock enabled.
*
* @param bool $enableGlobalFileLock
*/
public function setEnableGlobalFileLock($enableGlobalFileLock)
{
$this->enableGlobalFileLock = $enableGlobalFileLock;
}
/**
* @return bool
*/
public function getEnableGlobalFileLock()
{
return $this->enableGlobalFileLock;
}
/**
* Output only. Temporary passphrase generated to accept cluster peering
* command.
*
* @param string $passphrase
*/
public function setPassphrase($passphrase)
{
$this->passphrase = $passphrase;
}
/**
* @return string
*/
public function getPassphrase()
{
return $this->passphrase;
}
/**
* Required. Name of the origin volume's ONTAP cluster.
*
* @param string $peerClusterName
*/
public function setPeerClusterName($peerClusterName)
{
$this->peerClusterName = $peerClusterName;
}
/**
* @return string
*/
public function getPeerClusterName()
{
return $this->peerClusterName;
}
/**
* Required. List of IC LIF addresses of the origin volume's ONTAP cluster.
*
* @param string[] $peerIpAddresses
*/
public function setPeerIpAddresses($peerIpAddresses)
{
$this->peerIpAddresses = $peerIpAddresses;
}
/**
* @return string[]
*/
public function getPeerIpAddresses()
{
return $this->peerIpAddresses;
}
/**
* Required. Name of the origin volume's SVM.
*
* @param string $peerSvmName
*/
public function setPeerSvmName($peerSvmName)
{
$this->peerSvmName = $peerSvmName;
}
/**
* @return string
*/
public function getPeerSvmName()
{
return $this->peerSvmName;
}
/**
* Required. Name of the origin volume for the cache volume.
*
* @param string $peerVolumeName
*/
public function setPeerVolumeName($peerVolumeName)
{
$this->peerVolumeName = $peerVolumeName;
}
/**
* @return string
*/
public function getPeerVolumeName()
{
return $this->peerVolumeName;
}
/**
* Optional. Expiration time for the peering command to be executed on user's
* ONTAP.
*
* @param string $peeringCommandExpiryTime
*/
public function setPeeringCommandExpiryTime($peeringCommandExpiryTime)
{
$this->peeringCommandExpiryTime = $peeringCommandExpiryTime;
}
/**
* @return string
*/
public function getPeeringCommandExpiryTime()
{
return $this->peeringCommandExpiryTime;
}
/**
* Output only. Detailed description of the current cache state.
*
* @param string $stateDetails
*/
public function setStateDetails($stateDetails)
{
$this->stateDetails = $stateDetails;
}
/**
* @return string
*/
public function getStateDetails()
{
return $this->stateDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CacheParameters::class, 'Google_Service_NetAppFiles_CacheParameters');
@@ -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\NetAppFiles;
class CachePrePopulate extends \Google\Collection
{
protected $collection_key = 'pathList';
/**
* Optional. List of directory-paths to be excluded for pre-population for the
* FlexCache volume.
*
* @var string[]
*/
public $excludePathList;
/**
* Optional. List of directory-paths to be pre-populated for the FlexCache
* volume.
*
* @var string[]
*/
public $pathList;
/**
* Optional. Flag indicating whether the directories listed with the
* `path_list` need to be recursively pre-populated.
*
* @var bool
*/
public $recursion;
/**
* Optional. List of directory-paths to be excluded for pre-population for the
* FlexCache volume.
*
* @param string[] $excludePathList
*/
public function setExcludePathList($excludePathList)
{
$this->excludePathList = $excludePathList;
}
/**
* @return string[]
*/
public function getExcludePathList()
{
return $this->excludePathList;
}
/**
* Optional. List of directory-paths to be pre-populated for the FlexCache
* volume.
*
* @param string[] $pathList
*/
public function setPathList($pathList)
{
$this->pathList = $pathList;
}
/**
* @return string[]
*/
public function getPathList()
{
return $this->pathList;
}
/**
* Optional. Flag indicating whether the directories listed with the
* `path_list` need to be recursively pre-populated.
*
* @param bool $recursion
*/
public function setRecursion($recursion)
{
$this->recursion = $recursion;
}
/**
* @return bool
*/
public function getRecursion()
{
return $this->recursion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CachePrePopulate::class, 'Google_Service_NetAppFiles_CachePrePopulate');
@@ -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\NetAppFiles;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_NetAppFiles_CancelOperationRequest');
@@ -0,0 +1,100 @@
<?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\NetAppFiles;
class CloneDetails extends \Google\Model
{
/**
* Output only. Shared space in GiB. Determined at volume creation time based
* on size of source snapshot.
*
* @var string
*/
public $sharedSpaceGib;
/**
* Output only. Specifies the full resource name of the source snapshot from
* which this volume was cloned. Format: projects/{project}/locations/{locatio
* n}/volumes/{volume}/snapshots/{snapshot}
*
* @var string
*/
public $sourceSnapshot;
/**
* Output only. Full name of the source volume resource. Format:
* projects/{project}/locations/{location}/volumes/{volume}
*
* @var string
*/
public $sourceVolume;
/**
* Output only. Shared space in GiB. Determined at volume creation time based
* on size of source snapshot.
*
* @param string $sharedSpaceGib
*/
public function setSharedSpaceGib($sharedSpaceGib)
{
$this->sharedSpaceGib = $sharedSpaceGib;
}
/**
* @return string
*/
public function getSharedSpaceGib()
{
return $this->sharedSpaceGib;
}
/**
* Output only. Specifies the full resource name of the source snapshot from
* which this volume was cloned. Format: projects/{project}/locations/{locatio
* n}/volumes/{volume}/snapshots/{snapshot}
*
* @param string $sourceSnapshot
*/
public function setSourceSnapshot($sourceSnapshot)
{
$this->sourceSnapshot = $sourceSnapshot;
}
/**
* @return string
*/
public function getSourceSnapshot()
{
return $this->sourceSnapshot;
}
/**
* Output only. Full name of the source volume resource. Format:
* projects/{project}/locations/{location}/volumes/{volume}
*
* @param string $sourceVolume
*/
public function setSourceVolume($sourceVolume)
{
$this->sourceVolume = $sourceVolume;
}
/**
* @return string
*/
public function getSourceVolume()
{
return $this->sourceVolume;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloneDetails::class, 'Google_Service_NetAppFiles_CloneDetails');
@@ -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\NetAppFiles;
class CloudAsset extends \Google\Model
{
/**
* @var string
*/
public $assetName;
/**
* @var string
*/
public $assetType;
/**
* @param string
*/
public function setAssetName($assetName)
{
$this->assetName = $assetName;
}
/**
* @return string
*/
public function getAssetName()
{
return $this->assetName;
}
/**
* @param string
*/
public function setAssetType($assetType)
{
$this->assetType = $assetType;
}
/**
* @return string
*/
public function getAssetType()
{
return $this->assetType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudAsset::class, 'Google_Service_NetAppFiles_CloudAsset');
@@ -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\NetAppFiles;
class CloudAssetComposition extends \Google\Collection
{
protected $collection_key = 'childAsset';
protected $childAssetType = CloudAsset::class;
protected $childAssetDataType = 'array';
/**
* @param CloudAsset[]
*/
public function setChildAsset($childAsset)
{
$this->childAsset = $childAsset;
}
/**
* @return CloudAsset[]
*/
public function getChildAsset()
{
return $this->childAsset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudAssetComposition::class, 'Google_Service_NetAppFiles_CloudAssetComposition');
@@ -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\NetAppFiles;
class DailySchedule extends \Google\Model
{
/**
* Set the hour to start the snapshot (0-23), defaults to midnight (0).
*
* @var
*/
public $hour;
/**
* Set the minute of the hour to start the snapshot (0-59), defaults to the
* top of the hour (0).
*
* @var
*/
public $minute;
/**
* The maximum number of Snapshots to keep for the hourly schedule
*
* @var
*/
public $snapshotsToKeep;
public function setHour($hour)
{
$this->hour = $hour;
}
public function getHour()
{
return $this->hour;
}
public function setMinute($minute)
{
$this->minute = $minute;
}
public function getMinute()
{
return $this->minute;
}
public function setSnapshotsToKeep($snapshotsToKeep)
{
$this->snapshotsToKeep = $snapshotsToKeep;
}
public function getSnapshotsToKeep()
{
return $this->snapshotsToKeep;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DailySchedule::class, 'Google_Service_NetAppFiles_DailySchedule');
@@ -0,0 +1,140 @@
<?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\NetAppFiles;
class DestinationVolumeParameters extends \Google\Model
{
/**
* Description for the destination volume.
*
* @var string
*/
public $description;
/**
* Destination volume's share name. If not specified, source volume's share
* name will be used.
*
* @var string
*/
public $shareName;
/**
* Required. Existing destination StoragePool name.
*
* @var string
*/
public $storagePool;
protected $tieringPolicyType = TieringPolicy::class;
protected $tieringPolicyDataType = '';
/**
* Desired destination volume resource id. If not specified, source volume's
* resource id will be used. This value must start with a lowercase letter
* followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end
* with a hyphen.
*
* @var string
*/
public $volumeId;
/**
* Description for the destination volume.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Destination volume's share name. If not specified, source volume's share
* name will be used.
*
* @param string $shareName
*/
public function setShareName($shareName)
{
$this->shareName = $shareName;
}
/**
* @return string
*/
public function getShareName()
{
return $this->shareName;
}
/**
* Required. Existing destination StoragePool name.
*
* @param string $storagePool
*/
public function setStoragePool($storagePool)
{
$this->storagePool = $storagePool;
}
/**
* @return string
*/
public function getStoragePool()
{
return $this->storagePool;
}
/**
* Optional. Tiering policy for the volume.
*
* @param TieringPolicy $tieringPolicy
*/
public function setTieringPolicy(TieringPolicy $tieringPolicy)
{
$this->tieringPolicy = $tieringPolicy;
}
/**
* @return TieringPolicy
*/
public function getTieringPolicy()
{
return $this->tieringPolicy;
}
/**
* Desired destination volume resource id. If not specified, source volume's
* resource id will be used. This value must start with a lowercase letter
* followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end
* with a hyphen.
*
* @param string $volumeId
*/
public function setVolumeId($volumeId)
{
$this->volumeId = $volumeId;
}
/**
* @return string
*/
public function getVolumeId()
{
return $this->volumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DestinationVolumeParameters::class, 'Google_Service_NetAppFiles_DestinationVolumeParameters');
@@ -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\NetAppFiles;
class DirectLocationAssignment extends \Google\Collection
{
protected $collection_key = 'location';
protected $locationType = LocationAssignment::class;
protected $locationDataType = 'array';
/**
* @param LocationAssignment[]
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return LocationAssignment[]
*/
public function getLocation()
{
return $this->location;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DirectLocationAssignment::class, 'Google_Service_NetAppFiles_DirectLocationAssignment');
@@ -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\NetAppFiles;
class EncryptVolumesRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptVolumesRequest::class, 'Google_Service_NetAppFiles_EncryptVolumesRequest');
@@ -0,0 +1,121 @@
<?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\NetAppFiles;
class EstablishPeeringRequest extends \Google\Collection
{
protected $collection_key = 'peerIpAddresses';
/**
* Required. Name of the user's local source cluster to be peered with the
* destination cluster.
*
* @var string
*/
public $peerClusterName;
/**
* Optional. List of IPv4 ip addresses to be used for peering.
*
* @var string[]
*/
public $peerIpAddresses;
/**
* Required. Name of the user's local source vserver svm to be peered with the
* destination vserver svm.
*
* @var string
*/
public $peerSvmName;
/**
* Required. Name of the user's local source volume to be peered with the
* destination volume.
*
* @var string
*/
public $peerVolumeName;
/**
* Required. Name of the user's local source cluster to be peered with the
* destination cluster.
*
* @param string $peerClusterName
*/
public function setPeerClusterName($peerClusterName)
{
$this->peerClusterName = $peerClusterName;
}
/**
* @return string
*/
public function getPeerClusterName()
{
return $this->peerClusterName;
}
/**
* Optional. List of IPv4 ip addresses to be used for peering.
*
* @param string[] $peerIpAddresses
*/
public function setPeerIpAddresses($peerIpAddresses)
{
$this->peerIpAddresses = $peerIpAddresses;
}
/**
* @return string[]
*/
public function getPeerIpAddresses()
{
return $this->peerIpAddresses;
}
/**
* Required. Name of the user's local source vserver svm to be peered with the
* destination vserver svm.
*
* @param string $peerSvmName
*/
public function setPeerSvmName($peerSvmName)
{
$this->peerSvmName = $peerSvmName;
}
/**
* @return string
*/
public function getPeerSvmName()
{
return $this->peerSvmName;
}
/**
* Required. Name of the user's local source volume to be peered with the
* destination volume.
*
* @param string $peerVolumeName
*/
public function setPeerVolumeName($peerVolumeName)
{
$this->peerVolumeName = $peerVolumeName;
}
/**
* @return string
*/
public function getPeerVolumeName()
{
return $this->peerVolumeName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EstablishPeeringRequest::class, 'Google_Service_NetAppFiles_EstablishPeeringRequest');
@@ -0,0 +1,121 @@
<?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\NetAppFiles;
class EstablishVolumePeeringRequest extends \Google\Collection
{
protected $collection_key = 'peerIpAddresses';
/**
* Required. Name of the user's local source cluster to be peered with the
* destination cluster.
*
* @var string
*/
public $peerClusterName;
/**
* Optional. List of IPv4 IP addresses to be used for peering.
*
* @var string[]
*/
public $peerIpAddresses;
/**
* Required. Name of the user's local source vserver svm to be peered with the
* destination vserver svm.
*
* @var string
*/
public $peerSvmName;
/**
* Required. Name of the user's local source volume to be peered with the
* destination volume.
*
* @var string
*/
public $peerVolumeName;
/**
* Required. Name of the user's local source cluster to be peered with the
* destination cluster.
*
* @param string $peerClusterName
*/
public function setPeerClusterName($peerClusterName)
{
$this->peerClusterName = $peerClusterName;
}
/**
* @return string
*/
public function getPeerClusterName()
{
return $this->peerClusterName;
}
/**
* Optional. List of IPv4 IP addresses to be used for peering.
*
* @param string[] $peerIpAddresses
*/
public function setPeerIpAddresses($peerIpAddresses)
{
$this->peerIpAddresses = $peerIpAddresses;
}
/**
* @return string[]
*/
public function getPeerIpAddresses()
{
return $this->peerIpAddresses;
}
/**
* Required. Name of the user's local source vserver svm to be peered with the
* destination vserver svm.
*
* @param string $peerSvmName
*/
public function setPeerSvmName($peerSvmName)
{
$this->peerSvmName = $peerSvmName;
}
/**
* @return string
*/
public function getPeerSvmName()
{
return $this->peerSvmName;
}
/**
* Required. Name of the user's local source volume to be peered with the
* destination volume.
*
* @param string $peerVolumeName
*/
public function setPeerVolumeName($peerVolumeName)
{
$this->peerVolumeName = $peerVolumeName;
}
/**
* @return string
*/
public function getPeerVolumeName()
{
return $this->peerVolumeName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EstablishVolumePeeringRequest::class, 'Google_Service_NetAppFiles_EstablishVolumePeeringRequest');
@@ -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\NetAppFiles;
class ExecuteOntapDeleteResponse extends \Google\Model
{
/**
* The raw `JSON` body of the response.
*
* @var array[]
*/
public $body;
/**
* The raw `JSON` body of the response.
*
* @param array[] $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return array[]
*/
public function getBody()
{
return $this->body;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecuteOntapDeleteResponse::class, 'Google_Service_NetAppFiles_ExecuteOntapDeleteResponse');
@@ -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\NetAppFiles;
class ExecuteOntapGetResponse extends \Google\Model
{
/**
* The raw `JSON` body of the response.
*
* @var array[]
*/
public $body;
/**
* The raw `JSON` body of the response.
*
* @param array[] $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return array[]
*/
public function getBody()
{
return $this->body;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecuteOntapGetResponse::class, 'Google_Service_NetAppFiles_ExecuteOntapGetResponse');
@@ -0,0 +1,52 @@
<?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\NetAppFiles;
class ExecuteOntapPatchRequest extends \Google\Model
{
/**
* Required. The raw `JSON` body of the request. The body should be in the
* format of the ONTAP resource. For example: ``` { "body": { "field1":
* "value1", "field2": "value2", } } ```
*
* @var array[]
*/
public $body;
/**
* Required. The raw `JSON` body of the request. The body should be in the
* format of the ONTAP resource. For example: ``` { "body": { "field1":
* "value1", "field2": "value2", } } ```
*
* @param array[] $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return array[]
*/
public function getBody()
{
return $this->body;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecuteOntapPatchRequest::class, 'Google_Service_NetAppFiles_ExecuteOntapPatchRequest');
@@ -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\NetAppFiles;
class ExecuteOntapPatchResponse extends \Google\Model
{
/**
* The raw `JSON` body of the response.
*
* @var array[]
*/
public $body;
/**
* The raw `JSON` body of the response.
*
* @param array[] $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return array[]
*/
public function getBody()
{
return $this->body;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecuteOntapPatchResponse::class, 'Google_Service_NetAppFiles_ExecuteOntapPatchResponse');
@@ -0,0 +1,52 @@
<?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\NetAppFiles;
class ExecuteOntapPostRequest extends \Google\Model
{
/**
* Required. The raw `JSON` body of the request. The body should be in the
* format of the ONTAP resource. For example: ``` { "body": { "field1":
* "value1", "field2": "value2", } } ```
*
* @var array[]
*/
public $body;
/**
* Required. The raw `JSON` body of the request. The body should be in the
* format of the ONTAP resource. For example: ``` { "body": { "field1":
* "value1", "field2": "value2", } } ```
*
* @param array[] $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return array[]
*/
public function getBody()
{
return $this->body;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecuteOntapPostRequest::class, 'Google_Service_NetAppFiles_ExecuteOntapPostRequest');
@@ -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\NetAppFiles;
class ExecuteOntapPostResponse extends \Google\Model
{
/**
* The raw `JSON` body of the response.
*
* @var array[]
*/
public $body;
/**
* The raw `JSON` body of the response.
*
* @param array[] $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return array[]
*/
public function getBody()
{
return $this->body;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExecuteOntapPostResponse::class, 'Google_Service_NetAppFiles_ExecuteOntapPostResponse');
@@ -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\NetAppFiles;
class ExportPolicy extends \Google\Collection
{
protected $collection_key = 'rules';
protected $rulesType = SimpleExportPolicyRule::class;
protected $rulesDataType = 'array';
/**
* Required. List of export policy rules
*
* @param SimpleExportPolicyRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return SimpleExportPolicyRule[]
*/
public function getRules()
{
return $this->rules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportPolicy::class, 'Google_Service_NetAppFiles_ExportPolicy');
@@ -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\NetAppFiles;
class ExtraParameter extends \Google\Model
{
protected $regionalMigDistributionPolicyType = RegionalMigDistributionPolicy::class;
protected $regionalMigDistributionPolicyDataType = '';
/**
* @param RegionalMigDistributionPolicy
*/
public function setRegionalMigDistributionPolicy(RegionalMigDistributionPolicy $regionalMigDistributionPolicy)
{
$this->regionalMigDistributionPolicy = $regionalMigDistributionPolicy;
}
/**
* @return RegionalMigDistributionPolicy
*/
public function getRegionalMigDistributionPolicy()
{
return $this->regionalMigDistributionPolicy;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExtraParameter::class, 'Google_Service_NetAppFiles_ExtraParameter');
@@ -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\NetAppFiles;
class GoogleProtobufEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleProtobufEmpty::class, 'Google_Service_NetAppFiles_GoogleProtobufEmpty');
@@ -0,0 +1,266 @@
<?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\NetAppFiles;
class HostGroup extends \Google\Collection
{
/**
* Unspecified OS Type
*/
public const OS_TYPE_OS_TYPE_UNSPECIFIED = 'OS_TYPE_UNSPECIFIED';
/**
* OS Type is Linux
*/
public const OS_TYPE_LINUX = 'LINUX';
/**
* OS Type is Windows
*/
public const OS_TYPE_WINDOWS = 'WINDOWS';
/**
* OS Type is VMware ESXi
*/
public const OS_TYPE_ESXI = 'ESXI';
/**
* Unspecified state for host group.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Host group is creating.
*/
public const STATE_CREATING = 'CREATING';
/**
* Host group is ready.
*/
public const STATE_READY = 'READY';
/**
* Host group is updating.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* Host group is deleting.
*/
public const STATE_DELETING = 'DELETING';
/**
* Host group is disabled.
*/
public const STATE_DISABLED = 'DISABLED';
/**
* Unspecified type for host group.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* iSCSI initiator host group.
*/
public const TYPE_ISCSI_INITIATOR = 'ISCSI_INITIATOR';
protected $collection_key = 'hosts';
/**
* Output only. Create time of the host group.
*
* @var string
*/
public $createTime;
/**
* Optional. Description of the host group.
*
* @var string
*/
public $description;
/**
* Required. The list of hosts associated with the host group.
*
* @var string[]
*/
public $hosts;
/**
* Optional. Labels of the host group.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name of the host group. Format: `projects/{project
* _number}/locations/{location_id}/hostGroups/{host_group_id}`.
*
* @var string
*/
public $name;
/**
* Required. The OS type of the host group. It indicates the type of operating
* system used by all of the hosts in the HostGroup. All hosts in a HostGroup
* must be of the same OS type. This can be set only when creating a
* HostGroup.
*
* @var string
*/
public $osType;
/**
* Output only. State of the host group.
*
* @var string
*/
public $state;
/**
* Required. Type of the host group.
*
* @var string
*/
public $type;
/**
* Output only. Create time of the host group.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Description of the host group.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. The list of hosts associated with the host group.
*
* @param string[] $hosts
*/
public function setHosts($hosts)
{
$this->hosts = $hosts;
}
/**
* @return string[]
*/
public function getHosts()
{
return $this->hosts;
}
/**
* Optional. Labels of the host group.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name of the host group. Format: `projects/{project
* _number}/locations/{location_id}/hostGroups/{host_group_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. The OS type of the host group. It indicates the type of operating
* system used by all of the hosts in the HostGroup. All hosts in a HostGroup
* must be of the same OS type. This can be set only when creating a
* HostGroup.
*
* Accepted values: OS_TYPE_UNSPECIFIED, LINUX, WINDOWS, ESXI
*
* @param self::OS_TYPE_* $osType
*/
public function setOsType($osType)
{
$this->osType = $osType;
}
/**
* @return self::OS_TYPE_*
*/
public function getOsType()
{
return $this->osType;
}
/**
* Output only. State of the host group.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, READY, UPDATING, DELETING,
* DISABLED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Required. Type of the host group.
*
* Accepted values: TYPE_UNSPECIFIED, ISCSI_INITIATOR
*
* @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(HostGroup::class, 'Google_Service_NetAppFiles_HostGroup');
@@ -0,0 +1,55 @@
<?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\NetAppFiles;
class HourlySchedule extends \Google\Model
{
/**
* Set the minute of the hour to start the snapshot (0-59), defaults to the
* top of the hour (0).
*
* @var
*/
public $minute;
/**
* The maximum number of Snapshots to keep for the hourly schedule
*
* @var
*/
public $snapshotsToKeep;
public function setMinute($minute)
{
$this->minute = $minute;
}
public function getMinute()
{
return $this->minute;
}
public function setSnapshotsToKeep($snapshotsToKeep)
{
$this->snapshotsToKeep = $snapshotsToKeep;
}
public function getSnapshotsToKeep()
{
return $this->snapshotsToKeep;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HourlySchedule::class, 'Google_Service_NetAppFiles_HourlySchedule');
@@ -0,0 +1,192 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetAppFiles;
class HybridPeeringDetails extends \Google\Model
{
/**
* Output only. Copy-paste-able commands to be used on user's ONTAP to accept
* peering requests.
*
* @var string
*/
public $command;
/**
* Output only. Expiration time for the peering command to be executed on
* user's ONTAP.
*
* @var string
*/
public $commandExpiryTime;
/**
* Output only. Temporary passphrase generated to accept cluster peering
* command.
*
* @var string
*/
public $passphrase;
/**
* Output only. Name of the user's local source cluster to be peered with the
* destination cluster.
*
* @var string
*/
public $peerClusterName;
/**
* Output only. Name of the user's local source vserver svm to be peered with
* the destination vserver svm.
*
* @var string
*/
public $peerSvmName;
/**
* Output only. Name of the user's local source volume to be peered with the
* destination volume.
*
* @var string
*/
public $peerVolumeName;
/**
* Output only. IP address of the subnet.
*
* @var string
*/
public $subnetIp;
/**
* Output only. Copy-paste-able commands to be used on user's ONTAP to accept
* peering requests.
*
* @param string $command
*/
public function setCommand($command)
{
$this->command = $command;
}
/**
* @return string
*/
public function getCommand()
{
return $this->command;
}
/**
* Output only. Expiration time for the peering command to be executed on
* user's ONTAP.
*
* @param string $commandExpiryTime
*/
public function setCommandExpiryTime($commandExpiryTime)
{
$this->commandExpiryTime = $commandExpiryTime;
}
/**
* @return string
*/
public function getCommandExpiryTime()
{
return $this->commandExpiryTime;
}
/**
* Output only. Temporary passphrase generated to accept cluster peering
* command.
*
* @param string $passphrase
*/
public function setPassphrase($passphrase)
{
$this->passphrase = $passphrase;
}
/**
* @return string
*/
public function getPassphrase()
{
return $this->passphrase;
}
/**
* Output only. Name of the user's local source cluster to be peered with the
* destination cluster.
*
* @param string $peerClusterName
*/
public function setPeerClusterName($peerClusterName)
{
$this->peerClusterName = $peerClusterName;
}
/**
* @return string
*/
public function getPeerClusterName()
{
return $this->peerClusterName;
}
/**
* Output only. Name of the user's local source vserver svm to be peered with
* the destination vserver svm.
*
* @param string $peerSvmName
*/
public function setPeerSvmName($peerSvmName)
{
$this->peerSvmName = $peerSvmName;
}
/**
* @return string
*/
public function getPeerSvmName()
{
return $this->peerSvmName;
}
/**
* Output only. Name of the user's local source volume to be peered with the
* destination volume.
*
* @param string $peerVolumeName
*/
public function setPeerVolumeName($peerVolumeName)
{
$this->peerVolumeName = $peerVolumeName;
}
/**
* @return string
*/
public function getPeerVolumeName()
{
return $this->peerVolumeName;
}
/**
* Output only. IP address of the subnet.
*
* @param string $subnetIp
*/
public function setSubnetIp($subnetIp)
{
$this->subnetIp = $subnetIp;
}
/**
* @return string
*/
public function getSubnetIp()
{
return $this->subnetIp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HybridPeeringDetails::class, 'Google_Service_NetAppFiles_HybridPeeringDetails');
@@ -0,0 +1,321 @@
<?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\NetAppFiles;
class HybridReplicationParameters extends \Google\Collection
{
/**
* Unspecified hybrid replication type.
*/
public const HYBRID_REPLICATION_TYPE_VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED = 'VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED';
/**
* Hybrid replication type for migration.
*/
public const HYBRID_REPLICATION_TYPE_MIGRATION = 'MIGRATION';
/**
* Hybrid replication type for continuous replication.
*/
public const HYBRID_REPLICATION_TYPE_CONTINUOUS_REPLICATION = 'CONTINUOUS_REPLICATION';
/**
* New field for reversible OnPrem replication, to be used for data
* protection.
*/
public const HYBRID_REPLICATION_TYPE_ONPREM_REPLICATION = 'ONPREM_REPLICATION';
/**
* New field for reversible OnPrem replication, to be used for data
* protection.
*/
public const HYBRID_REPLICATION_TYPE_REVERSE_ONPREM_REPLICATION = 'REVERSE_ONPREM_REPLICATION';
/**
* Unspecified HybridReplicationSchedule
*/
public const REPLICATION_SCHEDULE_HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED = 'HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED';
/**
* Replication happens once every 10 minutes.
*/
public const REPLICATION_SCHEDULE_EVERY_10_MINUTES = 'EVERY_10_MINUTES';
/**
* Replication happens once every hour.
*/
public const REPLICATION_SCHEDULE_HOURLY = 'HOURLY';
/**
* Replication happens once every day.
*/
public const REPLICATION_SCHEDULE_DAILY = 'DAILY';
protected $collection_key = 'peerIpAddresses';
/**
* Optional. Name of source cluster location associated with the Hybrid
* replication. This is a free-form field for the display purpose only.
*
* @var string
*/
public $clusterLocation;
/**
* Optional. Description of the replication.
*
* @var string
*/
public $description;
/**
* Optional. Type of the hybrid replication.
*
* @var string
*/
public $hybridReplicationType;
/**
* Optional. Labels to be added to the replication as the key value pairs.
*
* @var string[]
*/
public $labels;
/**
* Optional. Constituent volume count for large volume.
*
* @var int
*/
public $largeVolumeConstituentCount;
/**
* Required. Name of the user's local source cluster to be peered with the
* destination cluster.
*
* @var string
*/
public $peerClusterName;
/**
* Required. List of node ip addresses to be peered with.
*
* @var string[]
*/
public $peerIpAddresses;
/**
* Required. Name of the user's local source vserver svm to be peered with the
* destination vserver svm.
*
* @var string
*/
public $peerSvmName;
/**
* Required. Name of the user's local source volume to be peered with the
* destination volume.
*
* @var string
*/
public $peerVolumeName;
/**
* Required. Desired name for the replication of this volume.
*
* @var string
*/
public $replication;
/**
* Optional. Replication Schedule for the replication created.
*
* @var string
*/
public $replicationSchedule;
/**
* Optional. Name of source cluster location associated with the Hybrid
* replication. This is a free-form field for the display purpose only.
*
* @param string $clusterLocation
*/
public function setClusterLocation($clusterLocation)
{
$this->clusterLocation = $clusterLocation;
}
/**
* @return string
*/
public function getClusterLocation()
{
return $this->clusterLocation;
}
/**
* Optional. Description of the replication.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Type of the hybrid replication.
*
* Accepted values: VOLUME_HYBRID_REPLICATION_TYPE_UNSPECIFIED, MIGRATION,
* CONTINUOUS_REPLICATION, ONPREM_REPLICATION, REVERSE_ONPREM_REPLICATION
*
* @param self::HYBRID_REPLICATION_TYPE_* $hybridReplicationType
*/
public function setHybridReplicationType($hybridReplicationType)
{
$this->hybridReplicationType = $hybridReplicationType;
}
/**
* @return self::HYBRID_REPLICATION_TYPE_*
*/
public function getHybridReplicationType()
{
return $this->hybridReplicationType;
}
/**
* Optional. Labels to be added to the replication as the key value pairs.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Constituent volume count for large volume.
*
* @param int $largeVolumeConstituentCount
*/
public function setLargeVolumeConstituentCount($largeVolumeConstituentCount)
{
$this->largeVolumeConstituentCount = $largeVolumeConstituentCount;
}
/**
* @return int
*/
public function getLargeVolumeConstituentCount()
{
return $this->largeVolumeConstituentCount;
}
/**
* Required. Name of the user's local source cluster to be peered with the
* destination cluster.
*
* @param string $peerClusterName
*/
public function setPeerClusterName($peerClusterName)
{
$this->peerClusterName = $peerClusterName;
}
/**
* @return string
*/
public function getPeerClusterName()
{
return $this->peerClusterName;
}
/**
* Required. List of node ip addresses to be peered with.
*
* @param string[] $peerIpAddresses
*/
public function setPeerIpAddresses($peerIpAddresses)
{
$this->peerIpAddresses = $peerIpAddresses;
}
/**
* @return string[]
*/
public function getPeerIpAddresses()
{
return $this->peerIpAddresses;
}
/**
* Required. Name of the user's local source vserver svm to be peered with the
* destination vserver svm.
*
* @param string $peerSvmName
*/
public function setPeerSvmName($peerSvmName)
{
$this->peerSvmName = $peerSvmName;
}
/**
* @return string
*/
public function getPeerSvmName()
{
return $this->peerSvmName;
}
/**
* Required. Name of the user's local source volume to be peered with the
* destination volume.
*
* @param string $peerVolumeName
*/
public function setPeerVolumeName($peerVolumeName)
{
$this->peerVolumeName = $peerVolumeName;
}
/**
* @return string
*/
public function getPeerVolumeName()
{
return $this->peerVolumeName;
}
/**
* Required. Desired name for the replication of this volume.
*
* @param string $replication
*/
public function setReplication($replication)
{
$this->replication = $replication;
}
/**
* @return string
*/
public function getReplication()
{
return $this->replication;
}
/**
* Optional. Replication Schedule for the replication created.
*
* Accepted values: HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED, EVERY_10_MINUTES,
* HOURLY, DAILY
*
* @param self::REPLICATION_SCHEDULE_* $replicationSchedule
*/
public function setReplicationSchedule($replicationSchedule)
{
$this->replicationSchedule = $replicationSchedule;
}
/**
* @return self::REPLICATION_SCHEDULE_*
*/
public function getReplicationSchedule()
{
return $this->replicationSchedule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HybridReplicationParameters::class, 'Google_Service_NetAppFiles_HybridReplicationParameters');
@@ -0,0 +1,168 @@
<?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\NetAppFiles;
class IsolationExpectations extends \Google\Model
{
protected $requirementOverrideType = RequirementOverride::class;
protected $requirementOverrideDataType = '';
/**
* @var string
*/
public $ziOrgPolicy;
/**
* @var string
*/
public $ziRegionPolicy;
/**
* @var string
*/
public $ziRegionState;
/**
* @var string
*/
public $zoneIsolation;
/**
* @var string
*/
public $zoneSeparation;
/**
* @var string
*/
public $zsOrgPolicy;
/**
* @var string
*/
public $zsRegionState;
/**
* @param RequirementOverride
*/
public function setRequirementOverride(RequirementOverride $requirementOverride)
{
$this->requirementOverride = $requirementOverride;
}
/**
* @return RequirementOverride
*/
public function getRequirementOverride()
{
return $this->requirementOverride;
}
/**
* @param string
*/
public function setZiOrgPolicy($ziOrgPolicy)
{
$this->ziOrgPolicy = $ziOrgPolicy;
}
/**
* @return string
*/
public function getZiOrgPolicy()
{
return $this->ziOrgPolicy;
}
/**
* @param string
*/
public function setZiRegionPolicy($ziRegionPolicy)
{
$this->ziRegionPolicy = $ziRegionPolicy;
}
/**
* @return string
*/
public function getZiRegionPolicy()
{
return $this->ziRegionPolicy;
}
/**
* @param string
*/
public function setZiRegionState($ziRegionState)
{
$this->ziRegionState = $ziRegionState;
}
/**
* @return string
*/
public function getZiRegionState()
{
return $this->ziRegionState;
}
/**
* @param string
*/
public function setZoneIsolation($zoneIsolation)
{
$this->zoneIsolation = $zoneIsolation;
}
/**
* @return string
*/
public function getZoneIsolation()
{
return $this->zoneIsolation;
}
/**
* @param string
*/
public function setZoneSeparation($zoneSeparation)
{
$this->zoneSeparation = $zoneSeparation;
}
/**
* @return string
*/
public function getZoneSeparation()
{
return $this->zoneSeparation;
}
/**
* @param string
*/
public function setZsOrgPolicy($zsOrgPolicy)
{
$this->zsOrgPolicy = $zsOrgPolicy;
}
/**
* @return string
*/
public function getZsOrgPolicy()
{
return $this->zsOrgPolicy;
}
/**
* @param string
*/
public function setZsRegionState($zsRegionState)
{
$this->zsRegionState = $zsRegionState;
}
/**
* @return string
*/
public function getZsRegionState()
{
return $this->zsRegionState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IsolationExpectations::class, 'Google_Service_NetAppFiles_IsolationExpectations');
@@ -0,0 +1,288 @@
<?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\NetAppFiles;
class KmsConfig extends \Google\Model
{
/**
* Unspecified KmsConfig State
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* KmsConfig State is Ready
*/
public const STATE_READY = 'READY';
/**
* KmsConfig State is Creating
*/
public const STATE_CREATING = 'CREATING';
/**
* KmsConfig State is Deleting
*/
public const STATE_DELETING = 'DELETING';
/**
* KmsConfig State is Updating
*/
public const STATE_UPDATING = 'UPDATING';
/**
* KmsConfig State is In Use.
*/
public const STATE_IN_USE = 'IN_USE';
/**
* KmsConfig State is Error
*/
public const STATE_ERROR = 'ERROR';
/**
* KmsConfig State is Pending to verify crypto key access.
*/
public const STATE_KEY_CHECK_PENDING = 'KEY_CHECK_PENDING';
/**
* KmsConfig State is Not accessbile by the SDE service account to the crypto
* key.
*/
public const STATE_KEY_NOT_REACHABLE = 'KEY_NOT_REACHABLE';
/**
* KmsConfig State is Disabling.
*/
public const STATE_DISABLING = 'DISABLING';
/**
* KmsConfig State is Disabled.
*/
public const STATE_DISABLED = 'DISABLED';
/**
* KmsConfig State is Migrating. The existing volumes are migrating from SMEK
* to CMEK.
*/
public const STATE_MIGRATING = 'MIGRATING';
/**
* Output only. Create time of the KmsConfig.
*
* @var string
*/
public $createTime;
/**
* Required. Customer-managed crypto key resource full name. Format: `projects
* /{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
* `
*
* @var string
*/
public $cryptoKeyName;
/**
* Description of the KmsConfig.
*
* @var string
*/
public $description;
/**
* Output only. Instructions to provide the access to the customer provided
* encryption key.
*
* @var string
*/
public $instructions;
/**
* Labels as key value pairs
*
* @var string[]
*/
public $labels;
/**
* Identifier. Name of the `KmsConfig`. Format:
* `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
*
* @var string
*/
public $name;
/**
* Output only. The Service account which will have access to the customer
* provided encryption key.
*
* @var string
*/
public $serviceAccount;
/**
* Output only. State of the KmsConfig.
*
* @var string
*/
public $state;
/**
* Output only. State details of the KmsConfig.
*
* @var string
*/
public $stateDetails;
/**
* Output only. Create time of the KmsConfig.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Required. Customer-managed crypto key resource full name. Format: `projects
* /{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
* `
*
* @param string $cryptoKeyName
*/
public function setCryptoKeyName($cryptoKeyName)
{
$this->cryptoKeyName = $cryptoKeyName;
}
/**
* @return string
*/
public function getCryptoKeyName()
{
return $this->cryptoKeyName;
}
/**
* Description of the KmsConfig.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. Instructions to provide the access to the customer provided
* encryption key.
*
* @param string $instructions
*/
public function setInstructions($instructions)
{
$this->instructions = $instructions;
}
/**
* @return string
*/
public function getInstructions()
{
return $this->instructions;
}
/**
* Labels as key value pairs
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. Name of the `KmsConfig`. Format:
* `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The Service account which will have access to the customer
* provided encryption key.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Output only. State of the KmsConfig.
*
* Accepted values: STATE_UNSPECIFIED, READY, CREATING, DELETING, UPDATING,
* IN_USE, ERROR, KEY_CHECK_PENDING, KEY_NOT_REACHABLE, DISABLING, DISABLED,
* MIGRATING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. State details of the KmsConfig.
*
* @param string $stateDetails
*/
public function setStateDetails($stateDetails)
{
$this->stateDetails = $stateDetails;
}
/**
* @return string
*/
public function getStateDetails()
{
return $this->stateDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KmsConfig::class, 'Google_Service_NetAppFiles_KmsConfig');
@@ -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\NetAppFiles;
class LargeCapacityConfig extends \Google\Model
{
/**
* Optional. The number of internal constituents (e.g., FlexVols) for this
* large volume. The minimum number of constituents is 2.
*
* @var int
*/
public $constituentCount;
/**
* Optional. The number of internal constituents (e.g., FlexVols) for this
* large volume. The minimum number of constituents is 2.
*
* @param int $constituentCount
*/
public function setConstituentCount($constituentCount)
{
$this->constituentCount = $constituentCount;
}
/**
* @return int
*/
public function getConstituentCount()
{
return $this->constituentCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LargeCapacityConfig::class, 'Google_Service_NetAppFiles_LargeCapacityConfig');
@@ -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\NetAppFiles;
class ListActiveDirectoriesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $activeDirectoriesType = ActiveDirectory::class;
protected $activeDirectoriesDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of active directories.
*
* @param ActiveDirectory[] $activeDirectories
*/
public function setActiveDirectories($activeDirectories)
{
$this->activeDirectories = $activeDirectories;
}
/**
* @return ActiveDirectory[]
*/
public function getActiveDirectories()
{
return $this->activeDirectories;
}
/**
* A token identifying a page of results the server should return.
*
* @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(ListActiveDirectoriesResponse::class, 'Google_Service_NetAppFiles_ListActiveDirectoriesResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetAppFiles;
class ListBackupConfigsResponse extends \Google\Collection
{
protected $collection_key = 'volumeBackupConfigs';
/**
* The token you can use to retrieve the next page of results. Not returned if
* there are no more results in the list.
*
* @var string
*/
public $nextPageToken;
/**
* Unordered list. Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
protected $volumeBackupConfigsType = VolumeBackupConfig::class;
protected $volumeBackupConfigsDataType = 'array';
/**
* The token you can use to retrieve the next page of results. Not returned 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;
}
/**
* Unordered list. Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
/**
* A list of backup configurations for volumes in the pool.
*
* @param VolumeBackupConfig[] $volumeBackupConfigs
*/
public function setVolumeBackupConfigs($volumeBackupConfigs)
{
$this->volumeBackupConfigs = $volumeBackupConfigs;
}
/**
* @return VolumeBackupConfig[]
*/
public function getVolumeBackupConfigs()
{
return $this->volumeBackupConfigs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBackupConfigsResponse::class, 'Google_Service_NetAppFiles_ListBackupConfigsResponse');
@@ -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\NetAppFiles;
class ListBackupPoliciesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupPoliciesType = BackupPolicy::class;
protected $backupPoliciesDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of backup policies.
*
* @param BackupPolicy[] $backupPolicies
*/
public function setBackupPolicies($backupPolicies)
{
$this->backupPolicies = $backupPolicies;
}
/**
* @return BackupPolicy[]
*/
public function getBackupPolicies()
{
return $this->backupPolicies;
}
/**
* A token identifying a page of results the server should return.
*
* @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(ListBackupPoliciesResponse::class, 'Google_Service_NetAppFiles_ListBackupPoliciesResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetAppFiles;
class ListBackupVaultsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupVaultsType = BackupVault::class;
protected $backupVaultsDataType = 'array';
/**
* The token you can use to retrieve the next page of results. Not returned if
* there are no more results in the list.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A list of backupVaults in the project for the specified location.
*
* @param BackupVault[] $backupVaults
*/
public function setBackupVaults($backupVaults)
{
$this->backupVaults = $backupVaults;
}
/**
* @return BackupVault[]
*/
public function getBackupVaults()
{
return $this->backupVaults;
}
/**
* The token you can use to retrieve the next page of results. Not returned 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;
}
/**
* 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(ListBackupVaultsResponse::class, 'Google_Service_NetAppFiles_ListBackupVaultsResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetAppFiles;
class ListBackupsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $backupsType = Backup::class;
protected $backupsDataType = 'array';
/**
* The token you can use to retrieve the next page of results. Not returned if
* there are no more results in the list.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A list of backups in the project.
*
* @param Backup[] $backups
*/
public function setBackups($backups)
{
$this->backups = $backups;
}
/**
* @return Backup[]
*/
public function getBackups()
{
return $this->backups;
}
/**
* The token you can use to retrieve the next page of results. Not returned 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;
}
/**
* 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(ListBackupsResponse::class, 'Google_Service_NetAppFiles_ListBackupsResponse');
@@ -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\NetAppFiles;
class ListHostGroupsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $hostGroupsType = HostGroup::class;
protected $hostGroupsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of host groups.
*
* @param HostGroup[] $hostGroups
*/
public function setHostGroups($hostGroups)
{
$this->hostGroups = $hostGroups;
}
/**
* @return HostGroup[]
*/
public function getHostGroups()
{
return $this->hostGroups;
}
/**
* A token identifying a page of results the server should return.
*
* @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(ListHostGroupsResponse::class, 'Google_Service_NetAppFiles_ListHostGroupsResponse');
@@ -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\NetAppFiles;
class ListKmsConfigsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $kmsConfigsType = KmsConfig::class;
protected $kmsConfigsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of KmsConfigs
*
* @param KmsConfig[] $kmsConfigs
*/
public function setKmsConfigs($kmsConfigs)
{
$this->kmsConfigs = $kmsConfigs;
}
/**
* @return KmsConfig[]
*/
public function getKmsConfigs()
{
return $this->kmsConfigs;
}
/**
* A token identifying a page of results the server should return.
*
* @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(ListKmsConfigsResponse::class, 'Google_Service_NetAppFiles_ListKmsConfigsResponse');
@@ -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\NetAppFiles;
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_NetAppFiles_ListLocationsResponse');
@@ -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\NetAppFiles;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @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(ListOperationsResponse::class, 'Google_Service_NetAppFiles_ListOperationsResponse');
@@ -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\NetAppFiles;
class ListQuotaRulesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
protected $quotaRulesType = QuotaRule::class;
protected $quotaRulesDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of quota rules
*
* @param QuotaRule[] $quotaRules
*/
public function setQuotaRules($quotaRules)
{
$this->quotaRules = $quotaRules;
}
/**
* @return QuotaRule[]
*/
public function getQuotaRules()
{
return $this->quotaRules;
}
/**
* 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(ListQuotaRulesResponse::class, 'Google_Service_NetAppFiles_ListQuotaRulesResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetAppFiles;
class ListReplicationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The token you can use to retrieve the next page of results. Not returned if
* there are no more results in the list.
*
* @var string
*/
public $nextPageToken;
protected $replicationsType = Replication::class;
protected $replicationsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The token you can use to retrieve the next page of results. Not returned 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;
}
/**
* A list of replications in the project for the specified volume.
*
* @param Replication[] $replications
*/
public function setReplications($replications)
{
$this->replications = $replications;
}
/**
* @return Replication[]
*/
public function getReplications()
{
return $this->replications;
}
/**
* 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(ListReplicationsResponse::class, 'Google_Service_NetAppFiles_ListReplicationsResponse');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetAppFiles;
class ListSnapshotsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The token you can use to retrieve the next page of results. Not returned if
* there are no more results in the list.
*
* @var string
*/
public $nextPageToken;
protected $snapshotsType = Snapshot::class;
protected $snapshotsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The token you can use to retrieve the next page of results. Not returned 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;
}
/**
* A list of snapshots in the project for the specified volume.
*
* @param Snapshot[] $snapshots
*/
public function setSnapshots($snapshots)
{
$this->snapshots = $snapshots;
}
/**
* @return Snapshot[]
*/
public function getSnapshots()
{
return $this->snapshots;
}
/**
* 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(ListSnapshotsResponse::class, 'Google_Service_NetAppFiles_ListSnapshotsResponse');
@@ -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\NetAppFiles;
class ListStoragePoolsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
protected $storagePoolsType = StoragePool::class;
protected $storagePoolsDataType = 'array';
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of StoragePools
*
* @param StoragePool[] $storagePools
*/
public function setStoragePools($storagePools)
{
$this->storagePools = $storagePools;
}
/**
* @return StoragePool[]
*/
public function getStoragePools()
{
return $this->storagePools;
}
/**
* 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(ListStoragePoolsResponse::class, 'Google_Service_NetAppFiles_ListStoragePoolsResponse');
@@ -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\NetAppFiles;
class ListVolumesResponse extends \Google\Collection
{
protected $collection_key = 'volumes';
/**
* A token identifying a page of results the server should return.
*
* @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 the server should return.
*
* @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 Volume
*
* @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_NetAppFiles_ListVolumesResponse');
@@ -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\NetAppFiles;
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_NetAppFiles_Location');
@@ -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\NetAppFiles;
class LocationAssignment extends \Google\Model
{
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $locationType;
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setLocationType($locationType)
{
$this->locationType = $locationType;
}
/**
* @return string
*/
public function getLocationType()
{
return $this->locationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationAssignment::class, 'Google_Service_NetAppFiles_LocationAssignment');
@@ -0,0 +1,122 @@
<?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\NetAppFiles;
class LocationData extends \Google\Model
{
protected $blobstoreLocationType = BlobstoreLocation::class;
protected $blobstoreLocationDataType = '';
protected $childAssetLocationType = CloudAssetComposition::class;
protected $childAssetLocationDataType = '';
protected $directLocationType = DirectLocationAssignment::class;
protected $directLocationDataType = '';
protected $gcpProjectProxyType = TenantProjectProxy::class;
protected $gcpProjectProxyDataType = '';
protected $placerLocationType = PlacerLocation::class;
protected $placerLocationDataType = '';
protected $spannerLocationType = SpannerLocation::class;
protected $spannerLocationDataType = '';
/**
* @param BlobstoreLocation
*/
public function setBlobstoreLocation(BlobstoreLocation $blobstoreLocation)
{
$this->blobstoreLocation = $blobstoreLocation;
}
/**
* @return BlobstoreLocation
*/
public function getBlobstoreLocation()
{
return $this->blobstoreLocation;
}
/**
* @param CloudAssetComposition
*/
public function setChildAssetLocation(CloudAssetComposition $childAssetLocation)
{
$this->childAssetLocation = $childAssetLocation;
}
/**
* @return CloudAssetComposition
*/
public function getChildAssetLocation()
{
return $this->childAssetLocation;
}
/**
* @param DirectLocationAssignment
*/
public function setDirectLocation(DirectLocationAssignment $directLocation)
{
$this->directLocation = $directLocation;
}
/**
* @return DirectLocationAssignment
*/
public function getDirectLocation()
{
return $this->directLocation;
}
/**
* @param TenantProjectProxy
*/
public function setGcpProjectProxy(TenantProjectProxy $gcpProjectProxy)
{
$this->gcpProjectProxy = $gcpProjectProxy;
}
/**
* @return TenantProjectProxy
*/
public function getGcpProjectProxy()
{
return $this->gcpProjectProxy;
}
/**
* @param PlacerLocation
*/
public function setPlacerLocation(PlacerLocation $placerLocation)
{
$this->placerLocation = $placerLocation;
}
/**
* @return PlacerLocation
*/
public function getPlacerLocation()
{
return $this->placerLocation;
}
/**
* @param SpannerLocation
*/
public function setSpannerLocation(SpannerLocation $spannerLocation)
{
$this->spannerLocation = $spannerLocation;
}
/**
* @return SpannerLocation
*/
public function getSpannerLocation()
{
return $this->spannerLocation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationData::class, 'Google_Service_NetAppFiles_LocationData');
@@ -0,0 +1,115 @@
<?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\NetAppFiles;
class LocationMetadata extends \Google\Collection
{
protected $collection_key = 'supportedServiceLevels';
/**
* Output only. Indicates if the location has ONTAP Proxy support.
*
* @var bool
*/
public $hasOntapProxy;
/**
* Output only. Indicates if the location has VCP support.
*
* @var bool
*/
public $hasVcp;
/**
* Output only. Supported flex performance in a location.
*
* @var string[]
*/
public $supportedFlexPerformance;
/**
* Output only. Supported service levels in a location.
*
* @var string[]
*/
public $supportedServiceLevels;
/**
* Output only. Indicates if the location has ONTAP Proxy support.
*
* @param bool $hasOntapProxy
*/
public function setHasOntapProxy($hasOntapProxy)
{
$this->hasOntapProxy = $hasOntapProxy;
}
/**
* @return bool
*/
public function getHasOntapProxy()
{
return $this->hasOntapProxy;
}
/**
* Output only. Indicates if the location has VCP support.
*
* @param bool $hasVcp
*/
public function setHasVcp($hasVcp)
{
$this->hasVcp = $hasVcp;
}
/**
* @return bool
*/
public function getHasVcp()
{
return $this->hasVcp;
}
/**
* Output only. Supported flex performance in a location.
*
* @param string[] $supportedFlexPerformance
*/
public function setSupportedFlexPerformance($supportedFlexPerformance)
{
$this->supportedFlexPerformance = $supportedFlexPerformance;
}
/**
* @return string[]
*/
public function getSupportedFlexPerformance()
{
return $this->supportedFlexPerformance;
}
/**
* Output only. Supported service levels in a location.
*
* @param string[] $supportedServiceLevels
*/
public function setSupportedServiceLevels($supportedServiceLevels)
{
$this->supportedServiceLevels = $supportedServiceLevels;
}
/**
* @return string[]
*/
public function getSupportedServiceLevels()
{
return $this->supportedServiceLevels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationMetadata::class, 'Google_Service_NetAppFiles_LocationMetadata');
@@ -0,0 +1,93 @@
<?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\NetAppFiles;
class MonthlySchedule extends \Google\Model
{
/**
* Set the day or days of the month to make a snapshot (1-31). Accepts a comma
* separated number of days. Defaults to '1'.
*
* @var string
*/
public $daysOfMonth;
/**
* Set the hour to start the snapshot (0-23), defaults to midnight (0).
*
* @var
*/
public $hour;
/**
* Set the minute of the hour to start the snapshot (0-59), defaults to the
* top of the hour (0).
*
* @var
*/
public $minute;
/**
* The maximum number of Snapshots to keep for the hourly schedule
*
* @var
*/
public $snapshotsToKeep;
/**
* Set the day or days of the month to make a snapshot (1-31). Accepts a comma
* separated number of days. Defaults to '1'.
*
* @param string $daysOfMonth
*/
public function setDaysOfMonth($daysOfMonth)
{
$this->daysOfMonth = $daysOfMonth;
}
/**
* @return string
*/
public function getDaysOfMonth()
{
return $this->daysOfMonth;
}
public function setHour($hour)
{
$this->hour = $hour;
}
public function getHour()
{
return $this->hour;
}
public function setMinute($minute)
{
$this->minute = $minute;
}
public function getMinute()
{
return $this->minute;
}
public function setSnapshotsToKeep($snapshotsToKeep)
{
$this->snapshotsToKeep = $snapshotsToKeep;
}
public function getSnapshotsToKeep()
{
return $this->snapshotsToKeep;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MonthlySchedule::class, 'Google_Service_NetAppFiles_MonthlySchedule');
@@ -0,0 +1,162 @@
<?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\NetAppFiles;
class MountOption extends \Google\Model
{
/**
* Unspecified protocol
*/
public const PROTOCOL_PROTOCOLS_UNSPECIFIED = 'PROTOCOLS_UNSPECIFIED';
/**
* NFS V3 protocol
*/
public const PROTOCOL_NFSV3 = 'NFSV3';
/**
* NFS V4 protocol
*/
public const PROTOCOL_NFSV4 = 'NFSV4';
/**
* SMB protocol
*/
public const PROTOCOL_SMB = 'SMB';
/**
* ISCSI protocol
*/
public const PROTOCOL_ISCSI = 'ISCSI';
/**
* NVMe protocol
*/
public const PROTOCOL_NVME = 'NVME';
/**
* Export string
*
* @var string
*/
public $export;
/**
* Full export string
*
* @var string
*/
public $exportFull;
/**
* Instructions for mounting
*
* @var string
*/
public $instructions;
/**
* Output only. IP Address.
*
* @var string
*/
public $ipAddress;
/**
* Protocol to mount with.
*
* @var string
*/
public $protocol;
/**
* Export string
*
* @param string $export
*/
public function setExport($export)
{
$this->export = $export;
}
/**
* @return string
*/
public function getExport()
{
return $this->export;
}
/**
* Full export string
*
* @param string $exportFull
*/
public function setExportFull($exportFull)
{
$this->exportFull = $exportFull;
}
/**
* @return string
*/
public function getExportFull()
{
return $this->exportFull;
}
/**
* Instructions for mounting
*
* @param string $instructions
*/
public function setInstructions($instructions)
{
$this->instructions = $instructions;
}
/**
* @return string
*/
public function getInstructions()
{
return $this->instructions;
}
/**
* Output only. IP Address.
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* Protocol to mount with.
*
* Accepted values: PROTOCOLS_UNSPECIFIED, NFSV3, NFSV4, SMB, ISCSI, NVME
*
* @param self::PROTOCOL_* $protocol
*/
public function setProtocol($protocol)
{
$this->protocol = $protocol;
}
/**
* @return self::PROTOCOL_*
*/
public function getProtocol()
{
return $this->protocol;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MountOption::class, 'Google_Service_NetAppFiles_MountOption');
@@ -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\NetAppFiles;
class OntapSource extends \Google\Model
{
/**
* Optional. The UUID of the ONTAP source snapshot.
*
* @var string
*/
public $snapshotUuid;
/**
* Required. Name of the storage pool. This must be specified for creating
* backups for ONTAP mode volumes. Format: `projects/{projects_id}/locations/{
* location}/storagePools/{storage_pool_id}`
*
* @var string
*/
public $storagePool;
/**
* Required. The UUID of the ONTAP source volume.
*
* @var string
*/
public $volumeUuid;
/**
* Optional. The UUID of the ONTAP source snapshot.
*
* @param string $snapshotUuid
*/
public function setSnapshotUuid($snapshotUuid)
{
$this->snapshotUuid = $snapshotUuid;
}
/**
* @return string
*/
public function getSnapshotUuid()
{
return $this->snapshotUuid;
}
/**
* Required. Name of the storage pool. This must be specified for creating
* backups for ONTAP mode volumes. Format: `projects/{projects_id}/locations/{
* location}/storagePools/{storage_pool_id}`
*
* @param string $storagePool
*/
public function setStoragePool($storagePool)
{
$this->storagePool = $storagePool;
}
/**
* @return string
*/
public function getStoragePool()
{
return $this->storagePool;
}
/**
* Required. The UUID of the ONTAP source volume.
*
* @param string $volumeUuid
*/
public function setVolumeUuid($volumeUuid)
{
$this->volumeUuid = $volumeUuid;
}
/**
* @return string
*/
public function getVolumeUuid()
{
return $this->volumeUuid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OntapSource::class, 'Google_Service_NetAppFiles_OntapSource');
@@ -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\NetAppFiles;
class OntapVolumeTarget extends \Google\Model
{
/**
* Optional. Absolute directory path in the destination volume.
*
* @var string
*/
public $restoreDestinationPath;
/**
* Required. The UUID of the ONTAP volume to restore to.
*
* @var string
*/
public $volumeUuid;
/**
* Optional. Absolute directory path in the destination volume.
*
* @param string $restoreDestinationPath
*/
public function setRestoreDestinationPath($restoreDestinationPath)
{
$this->restoreDestinationPath = $restoreDestinationPath;
}
/**
* @return string
*/
public function getRestoreDestinationPath()
{
return $this->restoreDestinationPath;
}
/**
* Required. The UUID of the ONTAP volume to restore to.
*
* @param string $volumeUuid
*/
public function setVolumeUuid($volumeUuid)
{
$this->volumeUuid = $volumeUuid;
}
/**
* @return string
*/
public function getVolumeUuid()
{
return $this->volumeUuid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OntapVolumeTarget::class, 'Google_Service_NetAppFiles_OntapVolumeTarget');
@@ -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\NetAppFiles;
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_NetAppFiles_Operation');
@@ -0,0 +1,186 @@
<?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\NetAppFiles;
class OperationMetadata extends \Google\Model
{
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been canceled successfully have
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Output only. Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* Output only. API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been canceled successfully have
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* Output only. Human-readable status of the operation, if any.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. Name of the verb executed by the operation.
*
* @param string $verb
*/
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_NetAppFiles_OperationMetadata');
@@ -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\NetAppFiles;
class PlacerLocation extends \Google\Model
{
/**
* @var string
*/
public $placerConfig;
/**
* @param string
*/
public function setPlacerConfig($placerConfig)
{
$this->placerConfig = $placerConfig;
}
/**
* @return string
*/
public function getPlacerConfig()
{
return $this->placerConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PlacerLocation::class, 'Google_Service_NetAppFiles_PlacerLocation');
@@ -0,0 +1,280 @@
<?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\NetAppFiles;
class QuotaRule extends \Google\Model
{
/**
* Unspecified state for quota rule
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Quota rule is creating
*/
public const STATE_CREATING = 'CREATING';
/**
* Quota rule is updating
*/
public const STATE_UPDATING = 'UPDATING';
/**
* Quota rule is deleting
*/
public const STATE_DELETING = 'DELETING';
/**
* Quota rule is ready
*/
public const STATE_READY = 'READY';
/**
* Quota rule is in error state.
*/
public const STATE_ERROR = 'ERROR';
/**
* Unspecified type for quota rule
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Individual user quota rule
*/
public const TYPE_INDIVIDUAL_USER_QUOTA = 'INDIVIDUAL_USER_QUOTA';
/**
* Individual group quota rule
*/
public const TYPE_INDIVIDUAL_GROUP_QUOTA = 'INDIVIDUAL_GROUP_QUOTA';
/**
* Default user quota rule
*/
public const TYPE_DEFAULT_USER_QUOTA = 'DEFAULT_USER_QUOTA';
/**
* Default group quota rule
*/
public const TYPE_DEFAULT_GROUP_QUOTA = 'DEFAULT_GROUP_QUOTA';
/**
* Output only. Create time of the quota rule
*
* @var string
*/
public $createTime;
/**
* Optional. Description of the quota rule
*
* @var string
*/
public $description;
/**
* Required. The maximum allowed disk space in MiB.
*
* @var int
*/
public $diskLimitMib;
/**
* Optional. Labels of the quota rule
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name of the quota rule. Format: `projects/{project
* _number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{qu
* ota_rule_id}`.
*
* @var string
*/
public $name;
/**
* Output only. State of the quota rule
*
* @var string
*/
public $state;
/**
* Output only. State details of the quota rule
*
* @var string
*/
public $stateDetails;
/**
* Optional. The quota rule applies to the specified user or group, identified
* by a Unix UID/GID, Windows SID, or null for default.
*
* @var string
*/
public $target;
/**
* Required. The type of quota rule.
*
* @var string
*/
public $type;
/**
* Output only. Create time of the quota rule
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Description of the quota rule
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Required. The maximum allowed disk space in MiB.
*
* @param int $diskLimitMib
*/
public function setDiskLimitMib($diskLimitMib)
{
$this->diskLimitMib = $diskLimitMib;
}
/**
* @return int
*/
public function getDiskLimitMib()
{
return $this->diskLimitMib;
}
/**
* Optional. Labels of the quota rule
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name of the quota rule. Format: `projects/{project
* _number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{qu
* ota_rule_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. State of the quota rule
*
* Accepted values: STATE_UNSPECIFIED, CREATING, UPDATING, DELETING, READY,
* ERROR
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. State details of the quota rule
*
* @param string $stateDetails
*/
public function setStateDetails($stateDetails)
{
$this->stateDetails = $stateDetails;
}
/**
* @return string
*/
public function getStateDetails()
{
return $this->stateDetails;
}
/**
* Optional. The quota rule applies to the specified user or group, identified
* by a Unix UID/GID, Windows SID, or null for default.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Required. The type of quota rule.
*
* Accepted values: TYPE_UNSPECIFIED, INDIVIDUAL_USER_QUOTA,
* INDIVIDUAL_GROUP_QUOTA, DEFAULT_USER_QUOTA, DEFAULT_GROUP_QUOTA
*
* @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(QuotaRule::class, 'Google_Service_NetAppFiles_QuotaRule');
@@ -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\NetAppFiles;
class RegionalMigDistributionPolicy extends \Google\Collection
{
protected $collection_key = 'zones';
/**
* @var int
*/
public $targetShape;
protected $zonesType = ZoneConfiguration::class;
protected $zonesDataType = 'array';
/**
* @param int
*/
public function setTargetShape($targetShape)
{
$this->targetShape = $targetShape;
}
/**
* @return int
*/
public function getTargetShape()
{
return $this->targetShape;
}
/**
* @param ZoneConfiguration[]
*/
public function setZones($zones)
{
$this->zones = $zones;
}
/**
* @return ZoneConfiguration[]
*/
public function getZones()
{
return $this->zones;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RegionalMigDistributionPolicy::class, 'Google_Service_NetAppFiles_RegionalMigDistributionPolicy');
@@ -0,0 +1,565 @@
<?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\NetAppFiles;
class Replication extends \Google\Model
{
/**
* Unspecified hybrid replication type.
*/
public const HYBRID_REPLICATION_TYPE_HYBRID_REPLICATION_TYPE_UNSPECIFIED = 'HYBRID_REPLICATION_TYPE_UNSPECIFIED';
/**
* Hybrid replication type for migration.
*/
public const HYBRID_REPLICATION_TYPE_MIGRATION = 'MIGRATION';
/**
* Hybrid replication type for continuous replication.
*/
public const HYBRID_REPLICATION_TYPE_CONTINUOUS_REPLICATION = 'CONTINUOUS_REPLICATION';
/**
* New field for reversible OnPrem replication, to be used for data
* protection.
*/
public const HYBRID_REPLICATION_TYPE_ONPREM_REPLICATION = 'ONPREM_REPLICATION';
/**
* Hybrid replication type for incremental Transfer in the reverse direction
* (GCNV is source and Onprem is destination)
*/
public const HYBRID_REPLICATION_TYPE_REVERSE_ONPREM_REPLICATION = 'REVERSE_ONPREM_REPLICATION';
/**
* Unspecified MirrorState
*/
public const MIRROR_STATE_MIRROR_STATE_UNSPECIFIED = 'MIRROR_STATE_UNSPECIFIED';
/**
* Destination volume is being prepared.
*/
public const MIRROR_STATE_PREPARING = 'PREPARING';
/**
* Destination volume has been initialized and is ready to receive replication
* transfers.
*/
public const MIRROR_STATE_MIRRORED = 'MIRRORED';
/**
* Destination volume is not receiving replication transfers.
*/
public const MIRROR_STATE_STOPPED = 'STOPPED';
/**
* Incremental replication is in progress.
*/
public const MIRROR_STATE_TRANSFERRING = 'TRANSFERRING';
/**
* Baseline replication is in progress.
*/
public const MIRROR_STATE_BASELINE_TRANSFERRING = 'BASELINE_TRANSFERRING';
/**
* Replication is aborted.
*/
public const MIRROR_STATE_ABORTED = 'ABORTED';
/**
* Replication is being managed from Onprem ONTAP.
*/
public const MIRROR_STATE_EXTERNALLY_MANAGED = 'EXTERNALLY_MANAGED';
/**
* Peering is yet to be established.
*/
public const MIRROR_STATE_PENDING_PEERING = 'PENDING_PEERING';
/**
* Unspecified ReplicationSchedule
*/
public const REPLICATION_SCHEDULE_REPLICATION_SCHEDULE_UNSPECIFIED = 'REPLICATION_SCHEDULE_UNSPECIFIED';
/**
* Replication happens once every 10 minutes.
*/
public const REPLICATION_SCHEDULE_EVERY_10_MINUTES = 'EVERY_10_MINUTES';
/**
* Replication happens once every hour.
*/
public const REPLICATION_SCHEDULE_HOURLY = 'HOURLY';
/**
* Replication happens once every day.
*/
public const REPLICATION_SCHEDULE_DAILY = 'DAILY';
/**
* Unspecified replication role
*/
public const ROLE_REPLICATION_ROLE_UNSPECIFIED = 'REPLICATION_ROLE_UNSPECIFIED';
/**
* Indicates Source volume.
*/
public const ROLE_SOURCE = 'SOURCE';
/**
* Indicates Destination volume.
*/
public const ROLE_DESTINATION = 'DESTINATION';
/**
* Unspecified replication State
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Replication is creating.
*/
public const STATE_CREATING = 'CREATING';
/**
* Replication is ready.
*/
public const STATE_READY = 'READY';
/**
* Replication is updating.
*/
public const STATE_UPDATING = 'UPDATING';
/**
* Replication is deleting.
*/
public const STATE_DELETING = 'DELETING';
/**
* Replication is in error state.
*/
public const STATE_ERROR = 'ERROR';
/**
* Replication is waiting for cluster peering to be established.
*/
public const STATE_PENDING_CLUSTER_PEERING = 'PENDING_CLUSTER_PEERING';
/**
* Replication is waiting for SVM peering to be established.
*/
public const STATE_PENDING_SVM_PEERING = 'PENDING_SVM_PEERING';
/**
* Replication is waiting for Commands to be executed on Onprem ONTAP.
*/
public const STATE_PENDING_REMOTE_RESYNC = 'PENDING_REMOTE_RESYNC';
/**
* Onprem ONTAP is destination and Replication can only be managed from
* Onprem.
*/
public const STATE_EXTERNALLY_MANAGED_REPLICATION = 'EXTERNALLY_MANAGED_REPLICATION';
/**
* Optional. Location of the user cluster.
*
* @var string
*/
public $clusterLocation;
/**
* Output only. Replication create time.
*
* @var string
*/
public $createTime;
/**
* A description about this replication relationship.
*
* @var string
*/
public $description;
/**
* Output only. Full name of destination volume resource. Example :
* "projects/{project}/locations/{location}/volumes/{volume_id}"
*
* @var string
*/
public $destinationVolume;
protected $destinationVolumeParametersType = DestinationVolumeParameters::class;
protected $destinationVolumeParametersDataType = '';
/**
* Output only. Condition of the relationship. Can be one of the following: -
* true: The replication relationship is healthy. It has not missed the most
* recent scheduled transfer. - false: The replication relationship is not
* healthy. It has missed the most recent scheduled transfer.
*
* @var bool
*/
public $healthy;
protected $hybridPeeringDetailsType = HybridPeeringDetails::class;
protected $hybridPeeringDetailsDataType = '';
/**
* Output only. Type of the hybrid replication.
*
* @var string
*/
public $hybridReplicationType;
protected $hybridReplicationUserCommandsType = UserCommands::class;
protected $hybridReplicationUserCommandsDataType = '';
/**
* Resource labels to represent user provided metadata.
*
* @var string[]
*/
public $labels;
/**
* Output only. Indicates the state of mirroring.
*
* @var string
*/
public $mirrorState;
/**
* Identifier. The resource name of the Replication. Format: `projects/{projec
* t_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id
* }`.
*
* @var string
*/
public $name;
/**
* Required. Indicates the schedule for replication.
*
* @var string
*/
public $replicationSchedule;
/**
* Output only. Indicates whether this points to source or destination.
*
* @var string
*/
public $role;
/**
* Output only. Full name of source volume resource. Example :
* "projects/{project}/locations/{location}/volumes/{volume_id}"
*
* @var string
*/
public $sourceVolume;
/**
* Output only. State of the replication.
*
* @var string
*/
public $state;
/**
* Output only. State details of the replication.
*
* @var string
*/
public $stateDetails;
protected $transferStatsType = TransferStats::class;
protected $transferStatsDataType = '';
/**
* Optional. Location of the user cluster.
*
* @param string $clusterLocation
*/
public function setClusterLocation($clusterLocation)
{
$this->clusterLocation = $clusterLocation;
}
/**
* @return string
*/
public function getClusterLocation()
{
return $this->clusterLocation;
}
/**
* Output only. Replication create time.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* A description about this replication relationship.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. Full name of destination volume resource. Example :
* "projects/{project}/locations/{location}/volumes/{volume_id}"
*
* @param string $destinationVolume
*/
public function setDestinationVolume($destinationVolume)
{
$this->destinationVolume = $destinationVolume;
}
/**
* @return string
*/
public function getDestinationVolume()
{
return $this->destinationVolume;
}
/**
* Required. Input only. Destination volume parameters
*
* @param DestinationVolumeParameters $destinationVolumeParameters
*/
public function setDestinationVolumeParameters(DestinationVolumeParameters $destinationVolumeParameters)
{
$this->destinationVolumeParameters = $destinationVolumeParameters;
}
/**
* @return DestinationVolumeParameters
*/
public function getDestinationVolumeParameters()
{
return $this->destinationVolumeParameters;
}
/**
* Output only. Condition of the relationship. Can be one of the following: -
* true: The replication relationship is healthy. It has not missed the most
* recent scheduled transfer. - false: The replication relationship is not
* healthy. It has missed the most recent scheduled transfer.
*
* @param bool $healthy
*/
public function setHealthy($healthy)
{
$this->healthy = $healthy;
}
/**
* @return bool
*/
public function getHealthy()
{
return $this->healthy;
}
/**
* Output only. Hybrid peering details.
*
* @param HybridPeeringDetails $hybridPeeringDetails
*/
public function setHybridPeeringDetails(HybridPeeringDetails $hybridPeeringDetails)
{
$this->hybridPeeringDetails = $hybridPeeringDetails;
}
/**
* @return HybridPeeringDetails
*/
public function getHybridPeeringDetails()
{
return $this->hybridPeeringDetails;
}
/**
* Output only. Type of the hybrid replication.
*
* Accepted values: HYBRID_REPLICATION_TYPE_UNSPECIFIED, MIGRATION,
* CONTINUOUS_REPLICATION, ONPREM_REPLICATION, REVERSE_ONPREM_REPLICATION
*
* @param self::HYBRID_REPLICATION_TYPE_* $hybridReplicationType
*/
public function setHybridReplicationType($hybridReplicationType)
{
$this->hybridReplicationType = $hybridReplicationType;
}
/**
* @return self::HYBRID_REPLICATION_TYPE_*
*/
public function getHybridReplicationType()
{
return $this->hybridReplicationType;
}
/**
* Output only. Copy pastable snapmirror commands to be executed on onprem
* cluster by the customer.
*
* @param UserCommands $hybridReplicationUserCommands
*/
public function setHybridReplicationUserCommands(UserCommands $hybridReplicationUserCommands)
{
$this->hybridReplicationUserCommands = $hybridReplicationUserCommands;
}
/**
* @return UserCommands
*/
public function getHybridReplicationUserCommands()
{
return $this->hybridReplicationUserCommands;
}
/**
* Resource labels to represent user provided metadata.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Indicates the state of mirroring.
*
* Accepted values: MIRROR_STATE_UNSPECIFIED, PREPARING, MIRRORED, STOPPED,
* TRANSFERRING, BASELINE_TRANSFERRING, ABORTED, EXTERNALLY_MANAGED,
* PENDING_PEERING
*
* @param self::MIRROR_STATE_* $mirrorState
*/
public function setMirrorState($mirrorState)
{
$this->mirrorState = $mirrorState;
}
/**
* @return self::MIRROR_STATE_*
*/
public function getMirrorState()
{
return $this->mirrorState;
}
/**
* Identifier. The resource name of the Replication. Format: `projects/{projec
* t_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id
* }`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Indicates the schedule for replication.
*
* Accepted values: REPLICATION_SCHEDULE_UNSPECIFIED, EVERY_10_MINUTES,
* HOURLY, DAILY
*
* @param self::REPLICATION_SCHEDULE_* $replicationSchedule
*/
public function setReplicationSchedule($replicationSchedule)
{
$this->replicationSchedule = $replicationSchedule;
}
/**
* @return self::REPLICATION_SCHEDULE_*
*/
public function getReplicationSchedule()
{
return $this->replicationSchedule;
}
/**
* Output only. Indicates whether this points to source or destination.
*
* Accepted values: REPLICATION_ROLE_UNSPECIFIED, SOURCE, DESTINATION
*
* @param self::ROLE_* $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return self::ROLE_*
*/
public function getRole()
{
return $this->role;
}
/**
* Output only. Full name of source volume resource. Example :
* "projects/{project}/locations/{location}/volumes/{volume_id}"
*
* @param string $sourceVolume
*/
public function setSourceVolume($sourceVolume)
{
$this->sourceVolume = $sourceVolume;
}
/**
* @return string
*/
public function getSourceVolume()
{
return $this->sourceVolume;
}
/**
* Output only. State of the replication.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, READY, UPDATING, DELETING,
* ERROR, PENDING_CLUSTER_PEERING, PENDING_SVM_PEERING, PENDING_REMOTE_RESYNC,
* EXTERNALLY_MANAGED_REPLICATION
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. State details of the replication.
*
* @param string $stateDetails
*/
public function setStateDetails($stateDetails)
{
$this->stateDetails = $stateDetails;
}
/**
* @return string
*/
public function getStateDetails()
{
return $this->stateDetails;
}
/**
* Output only. Replication transfer statistics.
*
* @param TransferStats $transferStats
*/
public function setTransferStats(TransferStats $transferStats)
{
$this->transferStats = $transferStats;
}
/**
* @return TransferStats
*/
public function getTransferStats()
{
return $this->transferStats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Replication::class, 'Google_Service_NetAppFiles_Replication');
@@ -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\NetAppFiles;
class RequirementOverride extends \Google\Model
{
/**
* @var string
*/
public $ziOverride;
/**
* @var string
*/
public $zsOverride;
/**
* @param string
*/
public function setZiOverride($ziOverride)
{
$this->ziOverride = $ziOverride;
}
/**
* @return string
*/
public function getZiOverride()
{
return $this->ziOverride;
}
/**
* @param string
*/
public function setZsOverride($zsOverride)
{
$this->zsOverride = $zsOverride;
}
/**
* @return string
*/
public function getZsOverride()
{
return $this->zsOverride;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RequirementOverride::class, 'Google_Service_NetAppFiles_RequirementOverride');
@@ -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\NetAppFiles\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $projects = $netappService->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_NetAppFiles_Resource_Projects');
@@ -0,0 +1,85 @@
<?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\NetAppFiles\Resource;
use Google\Service\NetAppFiles\ListLocationsResponse;
use Google\Service\NetAppFiles\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $locations = $netappService->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 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_NetAppFiles_Resource_ProjectsLocations');
@@ -0,0 +1,132 @@
<?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\NetAppFiles\Resource;
use Google\Service\NetAppFiles\ActiveDirectory;
use Google\Service\NetAppFiles\ListActiveDirectoriesResponse;
use Google\Service\NetAppFiles\Operation;
/**
* The "activeDirectories" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $activeDirectories = $netappService->projects_locations_activeDirectories;
* </code>
*/
class ProjectsLocationsActiveDirectories extends \Google\Service\Resource
{
/**
* CreateActiveDirectory Creates the active directory specified in the request.
* (activeDirectories.create)
*
* @param string $parent Required. Value for parent.
* @param ActiveDirectory $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string activeDirectoryId Required. ID of the active directory to
* create. Must be unique within the parent resource. Must contain only letters,
* numbers and hyphen, with the first character a letter , the last a letter or
* a number, and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, ActiveDirectory $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Delete the active directory specified in the request.
* (activeDirectories.delete)
*
* @param string $name Required. Name of the active directory.
* @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);
}
/**
* Describes a specified active directory. (activeDirectories.get)
*
* @param string $name Required. Name of the active directory.
* @param array $optParams Optional parameters.
* @return ActiveDirectory
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ActiveDirectory::class);
}
/**
* Lists active directories.
* (activeDirectories.listProjectsLocationsActiveDirectories)
*
* @param string $parent Required. Parent value for ListActiveDirectoriesRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering results
* @opt_param string orderBy Hint for how to order the results
* @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 the server
* should return.
* @return ListActiveDirectoriesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsActiveDirectories($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListActiveDirectoriesResponse::class);
}
/**
* Update the parameters of an active directories. (activeDirectories.patch)
*
* @param string $name Identifier. The resource name of the active directory.
* Format: `projects/{project_number}/locations/{location_id}/activeDirectories/
* {active_directory_id}`.
* @param ActiveDirectory $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Active Directory resource by the update. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it is in the mask. If the user
* does not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, ActiveDirectory $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsActiveDirectories::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsActiveDirectories');
@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetAppFiles\Resource;
use Google\Service\NetAppFiles\BackupPolicy;
use Google\Service\NetAppFiles\ListBackupPoliciesResponse;
use Google\Service\NetAppFiles\Operation;
/**
* The "backupPolicies" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $backupPolicies = $netappService->projects_locations_backupPolicies;
* </code>
*/
class ProjectsLocationsBackupPolicies extends \Google\Service\Resource
{
/**
* Creates new backup policy (backupPolicies.create)
*
* @param string $parent Required. The location to create the backup policies
* of, in the format `projects/{project_id}/locations/{location}`
* @param BackupPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string backupPolicyId Required. The ID to use for the backup
* policy. The ID must be unique within the specified location. Must contain
* only letters, numbers and hyphen, with the first character a letter, the last
* a letter or a number, and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, BackupPolicy $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Warning! This operation will permanently delete the backup policy.
* (backupPolicies.delete)
*
* @param string $name Required. The backup policy resource name, in the format
* `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}
* `
* @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);
}
/**
* Returns the description of the specified backup policy by backup_policy_id.
* (backupPolicies.get)
*
* @param string $name Required. The backupPolicy resource name, in the format `
* projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`
* @param array $optParams Optional parameters.
* @return BackupPolicy
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], BackupPolicy::class);
}
/**
* Returns list of all available backup policies.
* (backupPolicies.listProjectsLocationsBackupPolicies)
*
* @param string $parent Required. Parent value for ListBackupPoliciesRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering results
* @opt_param string orderBy Hint for how to order the results
* @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 the server
* should return.
* @return ListBackupPoliciesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackupPolicies($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupPoliciesResponse::class);
}
/**
* Updates settings of a specific backup policy. (backupPolicies.patch)
*
* @param string $name Identifier. The resource name of the backup policy.
* Format: `projects/{project_id}/locations/{location}/backupPolicies/{backup_po
* licy_id}`.
* @param BackupPolicy $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Backup Policy resource by the update. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it is in the mask. If the user
* does not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, BackupPolicy $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBackupPolicies::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsBackupPolicies');
@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetAppFiles\Resource;
use Google\Service\NetAppFiles\BackupVault;
use Google\Service\NetAppFiles\ListBackupVaultsResponse;
use Google\Service\NetAppFiles\Operation;
/**
* The "backupVaults" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $backupVaults = $netappService->projects_locations_backupVaults;
* </code>
*/
class ProjectsLocationsBackupVaults extends \Google\Service\Resource
{
/**
* Creates new backup vault (backupVaults.create)
*
* @param string $parent Required. The location to create the backup vaults, in
* the format `projects/{project_id}/locations/{location}`
* @param BackupVault $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string backupVaultId Required. The ID to use for the backupVault.
* The ID must be unique within the specified location. Must contain only
* letters, numbers and hyphen, with the first character a letter, the last a
* letter or a number, and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, BackupVault $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Warning! This operation will permanently delete the backup vault.
* (backupVaults.delete)
*
* @param string $name Required. The backupVault resource name, in the format
* `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
* @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);
}
/**
* Returns the description of the specified backup vault (backupVaults.get)
*
* @param string $name Required. The backupVault resource name, in the format
* `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
* @param array $optParams Optional parameters.
* @return BackupVault
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], BackupVault::class);
}
/**
* Returns list of all available backup vaults.
* (backupVaults.listProjectsLocationsBackupVaults)
*
* @param string $parent Required. The location for which to retrieve
* backupVault information, in the format
* `projects/{project_id}/locations/{location}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param string orderBy Sort results. Supported values are "name", "name
* desc" or "" (unsorted).
* @opt_param int pageSize The maximum number of items to return.
* @opt_param string pageToken The next_page_token value to use if there are
* additional results to retrieve for this list request.
* @return ListBackupVaultsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackupVaults($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupVaultsResponse::class);
}
/**
* Updates the settings of a specific backup vault. (backupVaults.patch)
*
* @param string $name Identifier. The resource name of the backup vault.
* Format:
* `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
* @param BackupVault $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Backup resource to be updated. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, BackupVault $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBackupVaults::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsBackupVaults');
@@ -0,0 +1,149 @@
<?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\NetAppFiles\Resource;
use Google\Service\NetAppFiles\Backup;
use Google\Service\NetAppFiles\ListBackupsResponse;
use Google\Service\NetAppFiles\Operation;
/**
* The "backups" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $backups = $netappService->projects_locations_backupVaults_backups;
* </code>
*/
class ProjectsLocationsBackupVaultsBackups extends \Google\Service\Resource
{
/**
* Creates a backup from the volume specified in the request The backup can be
* created from the given snapshot if specified in the request. If no snapshot
* specified, there'll be a new snapshot taken to initiate the backup creation.
* (backups.create)
*
* @param string $parent Required. The NetApp backupVault to create the backups
* of, in the format `projects/locations/backupVaults/{backup_vault_id}`
* @param Backup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string backupId Required. The ID to use for the backup. The ID
* must be unique within the specified backupVault. Must contain only letters,
* numbers and hyphen, with the first character a letter, the last a letter or a
* number, and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Backup $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Warning! This operation will permanently delete the backup. (backups.delete)
*
* @param string $name Required. The backup resource name, in the format `projec
* ts/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{
* backup_id}`
* @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);
}
/**
* Returns the description of the specified backup (backups.get)
*
* @param string $name Required. The backup resource name, in the format `projec
* ts/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{
* backup_id}`
* @param array $optParams Optional parameters.
* @return Backup
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Backup::class);
}
/**
* Returns descriptions of all backups for a backupVault.
* (backups.listProjectsLocationsBackupVaultsBackups)
*
* @param string $parent Required. The backupVault for which to retrieve backup
* information, in the format
* `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
* To retrieve backup information for all locations, use "-" for the
* `{location}` value. To retrieve backup information for all backupVaults, use
* "-" for the `{backup_vault_id}` value. To retrieve backup information for a
* volume, use "-" for the `{backup_vault_id}` value and specify volume full
* name with the filter.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter. If specified, backups will
* be returned based on the attribute name that matches the filter expression.
* If empty, then no backups are filtered out. See https://google.aip.dev/160
* @opt_param string orderBy Sort results. Supported values are "name", "name
* desc" or "" (unsorted).
* @opt_param int pageSize The maximum number of items to return. The service
* may return fewer than this value. The maximum value is 1000; values above
* 1000 will be coerced to 1000.
* @opt_param string pageToken The next_page_token value to use if there are
* additional results to retrieve for this list request.
* @return ListBackupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBackupVaultsBackups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupsResponse::class);
}
/**
* Update backup with full spec. (backups.patch)
*
* @param string $name Identifier. The resource name of the backup. Format: `pro
* jects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backup
* s/{backup_id}`.
* @param Backup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Backup resource to be updated. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Backup $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBackupVaultsBackups::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsBackupVaultsBackups');
@@ -0,0 +1,130 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetAppFiles\Resource;
use Google\Service\NetAppFiles\HostGroup;
use Google\Service\NetAppFiles\ListHostGroupsResponse;
use Google\Service\NetAppFiles\Operation;
/**
* The "hostGroups" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $hostGroups = $netappService->projects_locations_hostGroups;
* </code>
*/
class ProjectsLocationsHostGroups extends \Google\Service\Resource
{
/**
* Creates a new host group. (hostGroups.create)
*
* @param string $parent Required. Parent value for CreateHostGroupRequest
* @param HostGroup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string hostGroupId Required. ID of the host group to create. Must
* be unique within the parent resource. Must contain only letters, numbers, and
* hyphen, with the first character a letter or underscore, the last a letter or
* underscore or a number, and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, HostGroup $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a host group. (hostGroups.delete)
*
* @param string $name Required. The resource name of the host group. Format: `p
* rojects/{project_number}/locations/{location_id}/hostGroups/{host_group_id}`.
* @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);
}
/**
* Returns details of the specified host group. (hostGroups.get)
*
* @param string $name Required. The resource name of the host group. Format: `p
* rojects/{project_number}/locations/{location_id}/hostGroups/{host_group_id}`.
* @param array $optParams Optional parameters.
* @return HostGroup
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], HostGroup::class);
}
/**
* Returns a list of host groups in a `location`. Use `-` as location to list
* host groups across all locations.
* (hostGroups.listProjectsLocationsHostGroups)
*
* @param string $parent Required. Parent value for ListHostGroupsRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter to apply to the request.
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, the server will pick an
* appropriate default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListHostGroupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsHostGroups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListHostGroupsResponse::class);
}
/**
* Updates an existing host group. (hostGroups.patch)
*
* @param string $name Identifier. The resource name of the host group. Format:
* `projects/{project_number}/locations/{location_id}/hostGroups/{host_group_id}
* `.
* @param HostGroup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The list of fields to update.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, HostGroup $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsHostGroups::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsHostGroups');
@@ -0,0 +1,165 @@
<?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\NetAppFiles\Resource;
use Google\Service\NetAppFiles\EncryptVolumesRequest;
use Google\Service\NetAppFiles\KmsConfig;
use Google\Service\NetAppFiles\ListKmsConfigsResponse;
use Google\Service\NetAppFiles\Operation;
use Google\Service\NetAppFiles\VerifyKmsConfigRequest;
use Google\Service\NetAppFiles\VerifyKmsConfigResponse;
/**
* The "kmsConfigs" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $kmsConfigs = $netappService->projects_locations_kmsConfigs;
* </code>
*/
class ProjectsLocationsKmsConfigs extends \Google\Service\Resource
{
/**
* Creates a new KMS config. (kmsConfigs.create)
*
* @param string $parent Required. Value for parent.
* @param KmsConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string kmsConfigId Required. Id of the requesting KmsConfig. Must
* be unique within the parent resource. Must contain only letters, numbers and
* hyphen, with the first character a letter, the last a letter or a number, and
* a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, KmsConfig $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Warning! This operation will permanently delete the Kms config.
* (kmsConfigs.delete)
*
* @param string $name Required. Name of the KmsConfig.
* @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);
}
/**
* Encrypt the existing volumes without CMEK encryption with the desired the KMS
* config for the whole region. (kmsConfigs.encrypt)
*
* @param string $name Required. Name of the KmsConfig.
* @param EncryptVolumesRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function encrypt($name, EncryptVolumesRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('encrypt', [$params], Operation::class);
}
/**
* Returns the description of the specified KMS config by kms_config_id.
* (kmsConfigs.get)
*
* @param string $name Required. Name of the KmsConfig
* @param array $optParams Optional parameters.
* @return KmsConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], KmsConfig::class);
}
/**
* Returns descriptions of all KMS configs owned by the caller.
* (kmsConfigs.listProjectsLocationsKmsConfigs)
*
* @param string $parent Required. Parent value
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param string orderBy Sort results. Supported values are "name", "name
* desc" or "" (unsorted).
* @opt_param int pageSize The maximum number of items to return.
* @opt_param string pageToken The next_page_token value to use if there are
* additional results to retrieve for this list request.
* @return ListKmsConfigsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsKmsConfigs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListKmsConfigsResponse::class);
}
/**
* Updates the Kms config properties with the full spec (kmsConfigs.patch)
*
* @param string $name Identifier. Name of the `KmsConfig`. Format:
* `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
* @param KmsConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the KmsConfig resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, KmsConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Verifies KMS config reachability. (kmsConfigs.verify)
*
* @param string $name Required. Name of the KMS Config to be verified.
* @param VerifyKmsConfigRequest $postBody
* @param array $optParams Optional parameters.
* @return VerifyKmsConfigResponse
* @throws \Google\Service\Exception
*/
public function verify($name, VerifyKmsConfigRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('verify', [$params], VerifyKmsConfigResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsKmsConfigs::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsKmsConfigs');
@@ -0,0 +1,121 @@
<?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\NetAppFiles\Resource;
use Google\Service\NetAppFiles\CancelOperationRequest;
use Google\Service\NetAppFiles\GoogleProtobufEmpty;
use Google\Service\NetAppFiles\ListOperationsResponse;
use Google\Service\NetAppFiles\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $operations = $netappService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations 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 GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], GoogleProtobufEmpty::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 GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::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
* @throws \Google\Service\Exception
*/
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`.
* (operations.listProjectsLocationsOperations)
*
* @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.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($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(ProjectsLocationsOperations::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsOperations');
@@ -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\NetAppFiles\Resource;
use Google\Service\NetAppFiles\ListStoragePoolsResponse;
use Google\Service\NetAppFiles\Operation;
use Google\Service\NetAppFiles\RestoreVolumeRequest;
use Google\Service\NetAppFiles\StoragePool;
use Google\Service\NetAppFiles\SwitchActiveReplicaZoneRequest;
use Google\Service\NetAppFiles\UpdateBackupConfigRequest;
use Google\Service\NetAppFiles\ValidateDirectoryServiceRequest;
/**
* The "storagePools" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $storagePools = $netappService->projects_locations_storagePools;
* </code>
*/
class ProjectsLocationsStoragePools extends \Google\Service\Resource
{
/**
* Creates a new storage pool. (storagePools.create)
*
* @param string $parent Required. Value for parent.
* @param StoragePool $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string storagePoolId Required. Id of the requesting storage pool.
* Must be unique within the parent resource. Must contain only letters, numbers
* and hyphen, with the first character a letter, the last a letter or a number,
* and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, StoragePool $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Warning! This operation will permanently delete the storage pool.
* (storagePools.delete)
*
* @param string $name Required. Name of the storage pool
* @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);
}
/**
* Returns the description of the specified storage pool by poolId.
* (storagePools.get)
*
* @param string $name Required. Name of the storage pool
* @param array $optParams Optional parameters.
* @return StoragePool
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], StoragePool::class);
}
/**
* Returns descriptions of all storage pools owned by the caller.
* (storagePools.listProjectsLocationsStoragePools)
*
* @param string $parent Required. Parent value
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. List filter.
* @opt_param string orderBy Optional. Sort results. Supported values are
* "name", "name desc" or "" (unsorted).
* @opt_param int pageSize Optional. The maximum number of items to return.
* @opt_param string pageToken Optional. The next_page_token value to use if
* there are additional results to retrieve for this list request.
* @return ListStoragePoolsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsStoragePools($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListStoragePoolsResponse::class);
}
/**
* Updates the storage pool properties with the full spec (storagePools.patch)
*
* @param string $name Identifier. Name of the storage pool
* @param StoragePool $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the StoragePool resource by the update. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it is in the mask. If the user
* does not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, StoragePool $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Restores a backup to an ONTAP-mode volume. (storagePools.restoreVolume)
*
* @param string $name Required. The resource name of the ONTAP mode storage
* pool, in the format of
* `projects/{project}/locations/{location}/storagePools/{storage_pool}`
* @param RestoreVolumeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restoreVolume($name, RestoreVolumeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restoreVolume', [$params], Operation::class);
}
/**
* This operation will switch the active/replica zone for a regional
* storagePool. (storagePools.switchProjectsLocationsStoragePools)
*
* @param string $name Required. Name of the storage pool
* @param SwitchActiveReplicaZoneRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function switchProjectsLocationsStoragePools($name, SwitchActiveReplicaZoneRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('switch', [$params], Operation::class);
}
/**
* Updates the backup configuration for an ONTAP-mode volume.
* (storagePools.updateBackupConfig)
*
* @param string $name Required. The resource name of the StoragePool, in the
* format: projects/{projectNumber}/locations/{locationId}/storagePools/{poolId}
* @param UpdateBackupConfigRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateBackupConfig($name, UpdateBackupConfigRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateBackupConfig', [$params], Operation::class);
}
/**
* ValidateDirectoryService does a connectivity check for a directory service
* policy attached to the storage pool. (storagePools.validateDirectoryService)
*
* @param string $name Required. Name of the storage pool
* @param ValidateDirectoryServiceRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function validateDirectoryService($name, ValidateDirectoryServiceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('validateDirectoryService', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsStoragePools::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsStoragePools');
@@ -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\NetAppFiles\Resource;
use Google\Service\NetAppFiles\ListBackupConfigsResponse;
/**
* The "backupConfigs" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $backupConfigs = $netappService->projects_locations_storagePools_backupConfigs;
* </code>
*/
class ProjectsLocationsStoragePoolsBackupConfigs extends \Google\Service\Resource
{
/**
* Lists backup configurations for all volumes in an ONTAP-mode Storage Pool.
* (backupConfigs.listProjectsLocationsStoragePoolsBackupConfigs)
*
* @param string $parent Required. The ONTAP StoragePool for which to retrieve
* backup configuration information, in the format
* `projects/{project}/locations/{location}/storagePools/{storage_pool}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. The standard list filter.
* @opt_param string orderBy Optional. Sort results. Supported values are
* "volume_id" or ""
* @opt_param int pageSize Optional. The maximum number of items to return. The
* service may return fewer than this value. The maximum value is 1000; values
* above 1000 will be coerced to 1000. If unspecified or set to 0, a default of
* 50 will be used.
* @opt_param string pageToken Optional. The next_page_token value to use if
* there are additional results to retrieve for this list request.
* @return ListBackupConfigsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsStoragePoolsBackupConfigs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBackupConfigsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsStoragePoolsBackupConfigs::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsStoragePoolsBackupConfigs');
@@ -0,0 +1,118 @@
<?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\NetAppFiles\Resource;
use Google\Service\NetAppFiles\ExecuteOntapDeleteResponse;
use Google\Service\NetAppFiles\ExecuteOntapGetResponse;
use Google\Service\NetAppFiles\ExecuteOntapPatchRequest;
use Google\Service\NetAppFiles\ExecuteOntapPatchResponse;
use Google\Service\NetAppFiles\ExecuteOntapPostRequest;
use Google\Service\NetAppFiles\ExecuteOntapPostResponse;
/**
* The "ontap" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $ontap = $netappService->projects_locations_storagePools_ontap;
* </code>
*/
class ProjectsLocationsStoragePoolsOntap extends \Google\Service\Resource
{
/**
* `ExecuteOntapDelete` sends the ONTAP `DELETE` request to the `StoragePool`
* cluster. (ontap.executeOntapDelete)
*
* @param string $ontapPath Required. The resource path of the ONTAP resource.
* Format: `projects/{project_number}/locations/{location_id}/storagePools/{stor
* age_pool_id}/ontap/{ontap_resource_path}`. For example:
* `projects/123456789/locations/us-central1/storagePools/my-storage-
* pool/ontap/api/storage/volumes`.
* @param array $optParams Optional parameters.
* @return ExecuteOntapDeleteResponse
* @throws \Google\Service\Exception
*/
public function executeOntapDelete($ontapPath, $optParams = [])
{
$params = ['ontapPath' => $ontapPath];
$params = array_merge($params, $optParams);
return $this->call('executeOntapDelete', [$params], ExecuteOntapDeleteResponse::class);
}
/**
* `ExecuteOntapGet` sends the ONTAP `GET` request to the `StoragePool` cluster.
* (ontap.executeOntapGet)
*
* @param string $ontapPath Required. The resource path of the ONTAP resource.
* Format: `projects/{project_number}/locations/{location_id}/storagePools/{stor
* age_pool_id}/ontap/{ontap_resource_path}`. For example:
* `projects/123456789/locations/us-central1/storagePools/my-storage-
* pool/ontap/api/storage/volumes`.
* @param array $optParams Optional parameters.
* @return ExecuteOntapGetResponse
* @throws \Google\Service\Exception
*/
public function executeOntapGet($ontapPath, $optParams = [])
{
$params = ['ontapPath' => $ontapPath];
$params = array_merge($params, $optParams);
return $this->call('executeOntapGet', [$params], ExecuteOntapGetResponse::class);
}
/**
* `ExecuteOntapPatch` sends the ONTAP `PATCH` request to the `StoragePool`
* cluster. (ontap.executeOntapPatch)
*
* @param string $ontapPath Required. The resource path of the ONTAP resource.
* Format: `projects/{project_number}/locations/{location_id}/storagePools/{stor
* age_pool_id}/ontap/{ontap_resource_path}`. For example:
* `projects/123456789/locations/us-central1/storagePools/my-storage-
* pool/ontap/api/storage/volumes`.
* @param ExecuteOntapPatchRequest $postBody
* @param array $optParams Optional parameters.
* @return ExecuteOntapPatchResponse
* @throws \Google\Service\Exception
*/
public function executeOntapPatch($ontapPath, ExecuteOntapPatchRequest $postBody, $optParams = [])
{
$params = ['ontapPath' => $ontapPath, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('executeOntapPatch', [$params], ExecuteOntapPatchResponse::class);
}
/**
* `ExecuteOntapPost` sends the ONTAP `POST` request to the `StoragePool`
* cluster. (ontap.executeOntapPost)
*
* @param string $ontapPath Required. The path of the ONTAP resource. Format: `p
* rojects/{project_number}/locations/{location_id}/storagePools/{storage_pool_i
* d}/ontap/{ontap_resource_path}`. For example:
* `projects/123456789/locations/us-central1/storagePools/my-storage-
* pool/ontap/api/storage/volumes`.
* @param ExecuteOntapPostRequest $postBody
* @param array $optParams Optional parameters.
* @return ExecuteOntapPostResponse
* @throws \Google\Service\Exception
*/
public function executeOntapPost($ontapPath, ExecuteOntapPostRequest $postBody, $optParams = [])
{
$params = ['ontapPath' => $ontapPath, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('executeOntapPost', [$params], ExecuteOntapPostResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsStoragePoolsOntap::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsStoragePoolsOntap');
@@ -0,0 +1,185 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetAppFiles\Resource;
use Google\Service\NetAppFiles\EstablishVolumePeeringRequest;
use Google\Service\NetAppFiles\ListVolumesResponse;
use Google\Service\NetAppFiles\Operation;
use Google\Service\NetAppFiles\RestoreBackupFilesRequest;
use Google\Service\NetAppFiles\RevertVolumeRequest;
use Google\Service\NetAppFiles\Volume;
/**
* The "volumes" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $volumes = $netappService->projects_locations_volumes;
* </code>
*/
class ProjectsLocationsVolumes extends \Google\Service\Resource
{
/**
* Creates a new Volume in a given project and location. (volumes.create)
*
* @param string $parent Required. Value for parent.
* @param Volume $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string volumeId Required. Id of the requesting volume. Must be
* unique within the parent resource. Must contain only letters, numbers and
* hyphen, with the first character a letter, the last a letter or a number, and
* a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Volume $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single Volume. (volumes.delete)
*
* @param string $name Required. Name of the volume
* @param array $optParams Optional parameters.
*
* @opt_param bool force If this field is set as true, CCFE will not block the
* volume resource deletion even if it has any snapshots resource. (Otherwise,
* the request will only work if the volume has no snapshots.)
* @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);
}
/**
* Establish volume peering. This is used to establish cluster and svm peerings
* between the GCNV and OnPrem clusters. (volumes.establishPeering)
*
* @param string $name Required. The volume resource name, in the format
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`
* @param EstablishVolumePeeringRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function establishPeering($name, EstablishVolumePeeringRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('establishPeering', [$params], Operation::class);
}
/**
* Gets details of a single Volume. (volumes.get)
*
* @param string $name Required. Name of the volume
* @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);
}
/**
* Lists Volumes in a given project. (volumes.listProjectsLocationsVolumes)
*
* @param string $parent Required. Parent value for ListVolumesRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filtering results
* @opt_param string orderBy Hint for how to order the results
* @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 the server
* should return.
* @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);
}
/**
* Updates the parameters of a single Volume. (volumes.patch)
*
* @param string $name Identifier. Name of the volume
* @param Volume $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the Volume resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @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);
}
/**
* Restore files from a backup to a volume. (volumes.restore)
*
* @param string $name Required. The volume resource name, in the format
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`
* @param RestoreBackupFilesRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function restore($name, RestoreBackupFilesRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('restore', [$params], Operation::class);
}
/**
* Revert an existing volume to a specified snapshot. Warning! This operation
* will permanently revert all changes made after the snapshot was created.
* (volumes.revert)
*
* @param string $name Required. The resource name of the volume, in the format
* of projects/{project_id}/locations/{location}/volumes/{volume_id}.
* @param RevertVolumeRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function revert($name, RevertVolumeRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('revert', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsVolumes::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsVolumes');
@@ -0,0 +1,131 @@
<?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\NetAppFiles\Resource;
use Google\Service\NetAppFiles\ListQuotaRulesResponse;
use Google\Service\NetAppFiles\Operation;
use Google\Service\NetAppFiles\QuotaRule;
/**
* The "quotaRules" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $quotaRules = $netappService->projects_locations_volumes_quotaRules;
* </code>
*/
class ProjectsLocationsVolumesQuotaRules extends \Google\Service\Resource
{
/**
* Creates a new quota rule. (quotaRules.create)
*
* @param string $parent Required. Parent value for CreateQuotaRuleRequest
* @param QuotaRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string quotaRuleId Required. ID of the quota rule to create. Must
* be unique within the parent resource. Must contain only letters, numbers,
* underscore and hyphen, with the first character a letter or underscore, the
* last a letter or underscore or a number, and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, QuotaRule $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a quota rule. (quotaRules.delete)
*
* @param string $name Required. Name of the quota rule.
* @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);
}
/**
* Returns details of the specified quota rule. (quotaRules.get)
*
* @param string $name Required. Name of the quota rule
* @param array $optParams Optional parameters.
* @return QuotaRule
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], QuotaRule::class);
}
/**
* Returns list of all quota rules in a location.
* (quotaRules.listProjectsLocationsVolumesQuotaRules)
*
* @param string $parent Required. Parent value for ListQuotaRulesRequest
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filtering results
* @opt_param string orderBy Optional. Hint for how to order the results
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, the server will pick an
* appropriate default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListQuotaRulesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsVolumesQuotaRules($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListQuotaRulesResponse::class);
}
/**
* Updates a quota rule. (quotaRules.patch)
*
* @param string $name Identifier. The resource name of the quota rule. Format:
* `projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id
* }/quotaRules/{quota_rule_id}`.
* @param QuotaRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Quota Rule resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, QuotaRule $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsVolumesQuotaRules::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsVolumesQuotaRules');
@@ -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\NetAppFiles\Resource;
use Google\Service\NetAppFiles\EstablishPeeringRequest;
use Google\Service\NetAppFiles\ListReplicationsResponse;
use Google\Service\NetAppFiles\Operation;
use Google\Service\NetAppFiles\Replication;
use Google\Service\NetAppFiles\ResumeReplicationRequest;
use Google\Service\NetAppFiles\ReverseReplicationDirectionRequest;
use Google\Service\NetAppFiles\StopReplicationRequest;
use Google\Service\NetAppFiles\SyncReplicationRequest;
/**
* The "replications" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $replications = $netappService->projects_locations_volumes_replications;
* </code>
*/
class ProjectsLocationsVolumesReplications extends \Google\Service\Resource
{
/**
* Create a new replication for a volume. (replications.create)
*
* @param string $parent Required. The NetApp volume to create the replications
* of, in the format
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`
* @param Replication $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string replicationId Required. ID of the replication to create.
* Must be unique within the parent resource. Must contain only letters, numbers
* and hyphen, with the first character a letter, the last a letter or a number,
* and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Replication $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a replication. (replications.delete)
*
* @param string $name Required. The replication resource name, in the format
* `projects/locations/volumes/replications/{replication_id}`
* @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);
}
/**
* Establish replication peering. (replications.establishPeering)
*
* @param string $name Required. The resource name of the replication, in the
* format of projects/{project_id}/locations/{location}/volumes/{volume_id}/repl
* ications/{replication_id}.
* @param EstablishPeeringRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function establishPeering($name, EstablishPeeringRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('establishPeering', [$params], Operation::class);
}
/**
* Describe a replication for a volume. (replications.get)
*
* @param string $name Required. The replication resource name, in the format `p
* rojects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{r
* eplication_id}`
* @param array $optParams Optional parameters.
* @return Replication
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Replication::class);
}
/**
* Returns descriptions of all replications for a volume.
* (replications.listProjectsLocationsVolumesReplications)
*
* @param string $parent Required. The volume for which to retrieve replication
* information, in the format
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param string orderBy Sort results. Supported values are "name", "name
* desc" or "" (unsorted).
* @opt_param int pageSize The maximum number of items to return.
* @opt_param string pageToken The next_page_token value to use if there are
* additional results to retrieve for this list request.
* @return ListReplicationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsVolumesReplications($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReplicationsResponse::class);
}
/**
* Updates the settings of a specific replication. (replications.patch)
*
* @param string $name Identifier. The resource name of the Replication. Format:
* `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/
* {replication_id}`.
* @param Replication $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Mask of fields to update. At least one
* path must be supplied in this field.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Replication $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Resume Cross Region Replication. (replications.resume)
*
* @param string $name Required. The resource name of the replication, in the
* format of projects/{project_id}/locations/{location}/volumes/{volume_id}/repl
* ications/{replication_id}.
* @param ResumeReplicationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function resume($name, ResumeReplicationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resume', [$params], Operation::class);
}
/**
* Reverses direction of replication. Source becomes destination and destination
* becomes source. (replications.reverseDirection)
*
* @param string $name Required. The resource name of the replication, in the
* format of projects/{project_id}/locations/{location}/volumes/{volume_id}/repl
* ications/{replication_id}.
* @param ReverseReplicationDirectionRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function reverseDirection($name, ReverseReplicationDirectionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reverseDirection', [$params], Operation::class);
}
/**
* Stop Cross Region Replication. (replications.stop)
*
* @param string $name Required. The resource name of the replication, in the
* format of projects/{project_id}/locations/{location}/volumes/{volume_id}/repl
* ications/{replication_id}.
* @param StopReplicationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function stop($name, StopReplicationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stop', [$params], Operation::class);
}
/**
* Syncs the replication. This will invoke one time volume data transfer from
* source to destination. (replications.sync)
*
* @param string $name Required. The resource name of the replication, in the
* format of projects/{project_id}/locations/{location}/volumes/{volume_id}/repl
* ications/{replication_id}.
* @param SyncReplicationRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function sync($name, SyncReplicationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('sync', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsVolumesReplications::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsVolumesReplications');
@@ -0,0 +1,134 @@
<?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\NetAppFiles\Resource;
use Google\Service\NetAppFiles\ListSnapshotsResponse;
use Google\Service\NetAppFiles\Operation;
use Google\Service\NetAppFiles\Snapshot;
/**
* The "snapshots" collection of methods.
* Typical usage is:
* <code>
* $netappService = new Google\Service\NetAppFiles(...);
* $snapshots = $netappService->projects_locations_volumes_snapshots;
* </code>
*/
class ProjectsLocationsVolumesSnapshots extends \Google\Service\Resource
{
/**
* Create a new snapshot for a volume. (snapshots.create)
*
* @param string $parent Required. The NetApp volume to create the snapshots of,
* in the format
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`
* @param Snapshot $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string snapshotId Required. ID of the snapshot to create. Must be
* unique within the parent resource. Must contain only letters, numbers and
* hyphen, with the first character a letter, the last a letter or a number, and
* a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Snapshot $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a snapshot. (snapshots.delete)
*
* @param string $name Required. The snapshot resource name, in the format
* `projects/locations/volumes/snapshots/{snapshot_id}`
* @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);
}
/**
* Describe a snapshot for a volume. (snapshots.get)
*
* @param string $name Required. The snapshot resource name, in the format `proj
* ects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snapsho
* t_id}`
* @param array $optParams Optional parameters.
* @return Snapshot
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Snapshot::class);
}
/**
* Returns descriptions of all snapshots for a volume.
* (snapshots.listProjectsLocationsVolumesSnapshots)
*
* @param string $parent Required. The volume for which to retrieve snapshot
* information, in the format
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param string filter List filter.
* @opt_param string orderBy Sort results. Supported values are "name", "name
* desc" or "" (unsorted).
* @opt_param int pageSize The maximum number of items to return.
* @opt_param string pageToken The next_page_token value to use if there are
* additional results to retrieve for this list request.
* @return ListSnapshotsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsVolumesSnapshots($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSnapshotsResponse::class);
}
/**
* Updates the settings of a specific snapshot. (snapshots.patch)
*
* @param string $name Identifier. The resource name of the snapshot. Format: `p
* rojects/{project_id}/locations/{location}/volumes/{volume_id}/snapshots/{snap
* shot_id}`.
* @param Snapshot $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Mask of fields to update. At least one
* path must be supplied in this field.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Snapshot $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsVolumesSnapshots::class, 'Google_Service_NetAppFiles_Resource_ProjectsLocationsVolumesSnapshots');
@@ -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\NetAppFiles;
class RestoreBackupFilesRequest extends \Google\Collection
{
protected $collection_key = 'fileList';
/**
* Required. The backup resource name, in the format `projects/{project_id}/lo
* cations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`
*
* @var string
*/
public $backup;
/**
* Required. List of files to be restored, specified by their absolute path in
* the source volume.
*
* @var string[]
*/
public $fileList;
/**
* Optional. Absolute directory path in the destination volume. This is
* required if the `file_list` is provided.
*
* @var string
*/
public $restoreDestinationPath;
/**
* Required. The backup resource name, in the format `projects/{project_id}/lo
* cations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`
*
* @param string $backup
*/
public function setBackup($backup)
{
$this->backup = $backup;
}
/**
* @return string
*/
public function getBackup()
{
return $this->backup;
}
/**
* Required. List of files to be restored, specified by their absolute path in
* the source volume.
*
* @param string[] $fileList
*/
public function setFileList($fileList)
{
$this->fileList = $fileList;
}
/**
* @return string[]
*/
public function getFileList()
{
return $this->fileList;
}
/**
* Optional. Absolute directory path in the destination volume. This is
* required if the `file_list` is provided.
*
* @param string $restoreDestinationPath
*/
public function setRestoreDestinationPath($restoreDestinationPath)
{
$this->restoreDestinationPath = $restoreDestinationPath;
}
/**
* @return string
*/
public function getRestoreDestinationPath()
{
return $this->restoreDestinationPath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestoreBackupFilesRequest::class, 'Google_Service_NetAppFiles_RestoreBackupFilesRequest');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\NetAppFiles;
class RestoreParameters extends \Google\Model
{
/**
* Full name of the backup resource. Format for standard backup: projects/{pro
* ject}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_i
* d}. Format for BackupDR backup: projects/{project}/locations/{location}/bac
* kupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
*
* @var string
*/
public $sourceBackup;
/**
* Full name of the snapshot resource. Format: projects/{project}/locations/{l
* ocation}/volumes/{volume}/snapshots/{snapshot}
*
* @var string
*/
public $sourceSnapshot;
/**
* Full name of the backup resource. Format for standard backup: projects/{pro
* ject}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_i
* d}. Format for BackupDR backup: projects/{project}/locations/{location}/bac
* kupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
*
* @param string $sourceBackup
*/
public function setSourceBackup($sourceBackup)
{
$this->sourceBackup = $sourceBackup;
}
/**
* @return string
*/
public function getSourceBackup()
{
return $this->sourceBackup;
}
/**
* Full name of the snapshot resource. Format: projects/{project}/locations/{l
* ocation}/volumes/{volume}/snapshots/{snapshot}
*
* @param string $sourceSnapshot
*/
public function setSourceSnapshot($sourceSnapshot)
{
$this->sourceSnapshot = $sourceSnapshot;
}
/**
* @return string
*/
public function getSourceSnapshot()
{
return $this->sourceSnapshot;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestoreParameters::class, 'Google_Service_NetAppFiles_RestoreParameters');
@@ -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\NetAppFiles;
class RestoreVolumeRequest extends \Google\Model
{
protected $backupSourceType = BackupSource::class;
protected $backupSourceDataType = '';
protected $ontapVolumeTargetType = OntapVolumeTarget::class;
protected $ontapVolumeTargetDataType = '';
/**
* The backup source of the restore operation.
*
* @param BackupSource $backupSource
*/
public function setBackupSource(BackupSource $backupSource)
{
$this->backupSource = $backupSource;
}
/**
* @return BackupSource
*/
public function getBackupSource()
{
return $this->backupSource;
}
/**
* The ONTAP volume target of the restore operation.
*
* @param OntapVolumeTarget $ontapVolumeTarget
*/
public function setOntapVolumeTarget(OntapVolumeTarget $ontapVolumeTarget)
{
$this->ontapVolumeTarget = $ontapVolumeTarget;
}
/**
* @return OntapVolumeTarget
*/
public function getOntapVolumeTarget()
{
return $this->ontapVolumeTarget;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RestoreVolumeRequest::class, 'Google_Service_NetAppFiles_RestoreVolumeRequest');
@@ -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\NetAppFiles;
class ResumeReplicationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResumeReplicationRequest::class, 'Google_Service_NetAppFiles_ResumeReplicationRequest');
@@ -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\NetAppFiles;
class ReverseReplicationDirectionRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReverseReplicationDirectionRequest::class, 'Google_Service_NetAppFiles_ReverseReplicationDirectionRequest');
@@ -0,0 +1,54 @@
<?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\NetAppFiles;
class RevertVolumeRequest extends \Google\Model
{
/**
* Required. The snapshot resource ID, in the format 'my-snapshot', where the
* specified ID is the {snapshot_id} of the fully qualified name like projects
* /{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapsh
* ot_id}
*
* @var string
*/
public $snapshotId;
/**
* Required. The snapshot resource ID, in the format 'my-snapshot', where the
* specified ID is the {snapshot_id} of the fully qualified name like projects
* /{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapsh
* ot_id}
*
* @param string $snapshotId
*/
public function setSnapshotId($snapshotId)
{
$this->snapshotId = $snapshotId;
}
/**
* @return string
*/
public function getSnapshotId()
{
return $this->snapshotId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RevertVolumeRequest::class, 'Google_Service_NetAppFiles_RevertVolumeRequest');
@@ -0,0 +1,386 @@
<?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\NetAppFiles;
class SimpleExportPolicyRule extends \Google\Model
{
/**
* Unspecified Access Type
*/
public const ACCESS_TYPE_ACCESS_TYPE_UNSPECIFIED = 'ACCESS_TYPE_UNSPECIFIED';
/**
* Read Only
*/
public const ACCESS_TYPE_READ_ONLY = 'READ_ONLY';
/**
* Read Write
*/
public const ACCESS_TYPE_READ_WRITE = 'READ_WRITE';
/**
* None
*/
public const ACCESS_TYPE_READ_NONE = 'READ_NONE';
/**
* Defaults to `NO_ROOT_SQUASH`.
*/
public const SQUASH_MODE_SQUASH_MODE_UNSPECIFIED = 'SQUASH_MODE_UNSPECIFIED';
/**
* The root user (UID 0) retains full access. Other users are unaffected.
*/
public const SQUASH_MODE_NO_ROOT_SQUASH = 'NO_ROOT_SQUASH';
/**
* The root user (UID 0) is squashed to anonymous user ID. Other users are
* unaffected.
*/
public const SQUASH_MODE_ROOT_SQUASH = 'ROOT_SQUASH';
/**
* All users are squashed to anonymous user ID.
*/
public const SQUASH_MODE_ALL_SQUASH = 'ALL_SQUASH';
/**
* Access type (ReadWrite, ReadOnly, None)
*
* @var string
*/
public $accessType;
/**
* Comma separated list of allowed clients IP addresses
*
* @var string
*/
public $allowedClients;
/**
* Optional. An integer representing the anonymous user ID. Range is 0 to
* `4294967295`. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
*
* @var string
*/
public $anonUid;
/**
* Whether Unix root access will be granted.
*
* @var string
*/
public $hasRootAccess;
/**
* If enabled (true) the rule defines a read only access for clients matching
* the 'allowedClients' specification. It enables nfs clients to mount using
* 'authentication' kerberos security mode.
*
* @var bool
*/
public $kerberos5ReadOnly;
/**
* If enabled (true) the rule defines read and write access for clients
* matching the 'allowedClients' specification. It enables nfs clients to
* mount using 'authentication' kerberos security mode. The
* 'kerberos5ReadOnly' value be ignored if this is enabled.
*
* @var bool
*/
public $kerberos5ReadWrite;
/**
* If enabled (true) the rule defines a read only access for clients matching
* the 'allowedClients' specification. It enables nfs clients to mount using
* 'integrity' kerberos security mode.
*
* @var bool
*/
public $kerberos5iReadOnly;
/**
* If enabled (true) the rule defines read and write access for clients
* matching the 'allowedClients' specification. It enables nfs clients to
* mount using 'integrity' kerberos security mode. The 'kerberos5iReadOnly'
* value be ignored if this is enabled.
*
* @var bool
*/
public $kerberos5iReadWrite;
/**
* If enabled (true) the rule defines a read only access for clients matching
* the 'allowedClients' specification. It enables nfs clients to mount using
* 'privacy' kerberos security mode.
*
* @var bool
*/
public $kerberos5pReadOnly;
/**
* If enabled (true) the rule defines read and write access for clients
* matching the 'allowedClients' specification. It enables nfs clients to
* mount using 'privacy' kerberos security mode. The 'kerberos5pReadOnly'
* value be ignored if this is enabled.
*
* @var bool
*/
public $kerberos5pReadWrite;
/**
* NFS V3 protocol.
*
* @var bool
*/
public $nfsv3;
/**
* NFS V4 protocol.
*
* @var bool
*/
public $nfsv4;
/**
* Optional. Defines how user identity squashing is applied for this export
* rule. This field is the preferred way to configure squashing behavior and
* takes precedence over `has_root_access` if both are provided.
*
* @var string
*/
public $squashMode;
/**
* Access type (ReadWrite, ReadOnly, None)
*
* Accepted values: ACCESS_TYPE_UNSPECIFIED, READ_ONLY, READ_WRITE, READ_NONE
*
* @param self::ACCESS_TYPE_* $accessType
*/
public function setAccessType($accessType)
{
$this->accessType = $accessType;
}
/**
* @return self::ACCESS_TYPE_*
*/
public function getAccessType()
{
return $this->accessType;
}
/**
* Comma separated list of allowed clients IP addresses
*
* @param string $allowedClients
*/
public function setAllowedClients($allowedClients)
{
$this->allowedClients = $allowedClients;
}
/**
* @return string
*/
public function getAllowedClients()
{
return $this->allowedClients;
}
/**
* Optional. An integer representing the anonymous user ID. Range is 0 to
* `4294967295`. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
*
* @param string $anonUid
*/
public function setAnonUid($anonUid)
{
$this->anonUid = $anonUid;
}
/**
* @return string
*/
public function getAnonUid()
{
return $this->anonUid;
}
/**
* Whether Unix root access will be granted.
*
* @param string $hasRootAccess
*/
public function setHasRootAccess($hasRootAccess)
{
$this->hasRootAccess = $hasRootAccess;
}
/**
* @return string
*/
public function getHasRootAccess()
{
return $this->hasRootAccess;
}
/**
* If enabled (true) the rule defines a read only access for clients matching
* the 'allowedClients' specification. It enables nfs clients to mount using
* 'authentication' kerberos security mode.
*
* @param bool $kerberos5ReadOnly
*/
public function setKerberos5ReadOnly($kerberos5ReadOnly)
{
$this->kerberos5ReadOnly = $kerberos5ReadOnly;
}
/**
* @return bool
*/
public function getKerberos5ReadOnly()
{
return $this->kerberos5ReadOnly;
}
/**
* If enabled (true) the rule defines read and write access for clients
* matching the 'allowedClients' specification. It enables nfs clients to
* mount using 'authentication' kerberos security mode. The
* 'kerberos5ReadOnly' value be ignored if this is enabled.
*
* @param bool $kerberos5ReadWrite
*/
public function setKerberos5ReadWrite($kerberos5ReadWrite)
{
$this->kerberos5ReadWrite = $kerberos5ReadWrite;
}
/**
* @return bool
*/
public function getKerberos5ReadWrite()
{
return $this->kerberos5ReadWrite;
}
/**
* If enabled (true) the rule defines a read only access for clients matching
* the 'allowedClients' specification. It enables nfs clients to mount using
* 'integrity' kerberos security mode.
*
* @param bool $kerberos5iReadOnly
*/
public function setKerberos5iReadOnly($kerberos5iReadOnly)
{
$this->kerberos5iReadOnly = $kerberos5iReadOnly;
}
/**
* @return bool
*/
public function getKerberos5iReadOnly()
{
return $this->kerberos5iReadOnly;
}
/**
* If enabled (true) the rule defines read and write access for clients
* matching the 'allowedClients' specification. It enables nfs clients to
* mount using 'integrity' kerberos security mode. The 'kerberos5iReadOnly'
* value be ignored if this is enabled.
*
* @param bool $kerberos5iReadWrite
*/
public function setKerberos5iReadWrite($kerberos5iReadWrite)
{
$this->kerberos5iReadWrite = $kerberos5iReadWrite;
}
/**
* @return bool
*/
public function getKerberos5iReadWrite()
{
return $this->kerberos5iReadWrite;
}
/**
* If enabled (true) the rule defines a read only access for clients matching
* the 'allowedClients' specification. It enables nfs clients to mount using
* 'privacy' kerberos security mode.
*
* @param bool $kerberos5pReadOnly
*/
public function setKerberos5pReadOnly($kerberos5pReadOnly)
{
$this->kerberos5pReadOnly = $kerberos5pReadOnly;
}
/**
* @return bool
*/
public function getKerberos5pReadOnly()
{
return $this->kerberos5pReadOnly;
}
/**
* If enabled (true) the rule defines read and write access for clients
* matching the 'allowedClients' specification. It enables nfs clients to
* mount using 'privacy' kerberos security mode. The 'kerberos5pReadOnly'
* value be ignored if this is enabled.
*
* @param bool $kerberos5pReadWrite
*/
public function setKerberos5pReadWrite($kerberos5pReadWrite)
{
$this->kerberos5pReadWrite = $kerberos5pReadWrite;
}
/**
* @return bool
*/
public function getKerberos5pReadWrite()
{
return $this->kerberos5pReadWrite;
}
/**
* NFS V3 protocol.
*
* @param bool $nfsv3
*/
public function setNfsv3($nfsv3)
{
$this->nfsv3 = $nfsv3;
}
/**
* @return bool
*/
public function getNfsv3()
{
return $this->nfsv3;
}
/**
* NFS V4 protocol.
*
* @param bool $nfsv4
*/
public function setNfsv4($nfsv4)
{
$this->nfsv4 = $nfsv4;
}
/**
* @return bool
*/
public function getNfsv4()
{
return $this->nfsv4;
}
/**
* Optional. Defines how user identity squashing is applied for this export
* rule. This field is the preferred way to configure squashing behavior and
* takes precedence over `has_root_access` if both are provided.
*
* Accepted values: SQUASH_MODE_UNSPECIFIED, NO_ROOT_SQUASH, ROOT_SQUASH,
* ALL_SQUASH
*
* @param self::SQUASH_MODE_* $squashMode
*/
public function setSquashMode($squashMode)
{
$this->squashMode = $squashMode;
}
/**
* @return self::SQUASH_MODE_*
*/
public function getSquashMode()
{
return $this->squashMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SimpleExportPolicyRule::class, 'Google_Service_NetAppFiles_SimpleExportPolicyRule');
@@ -0,0 +1,207 @@
<?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\NetAppFiles;
class Snapshot extends \Google\Model
{
/**
* Unspecified Snapshot State
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Snapshot State is Ready
*/
public const STATE_READY = 'READY';
/**
* Snapshot State is Creating
*/
public const STATE_CREATING = 'CREATING';
/**
* Snapshot State is Deleting
*/
public const STATE_DELETING = 'DELETING';
/**
* Snapshot State is Updating
*/
public const STATE_UPDATING = 'UPDATING';
/**
* Snapshot State is Disabled
*/
public const STATE_DISABLED = 'DISABLED';
/**
* Snapshot State is Error
*/
public const STATE_ERROR = 'ERROR';
/**
* Output only. The time when the snapshot was created.
*
* @var string
*/
public $createTime;
/**
* A description of the snapshot with 2048 characters or less. Requests with
* longer descriptions will be rejected.
*
* @var string
*/
public $description;
/**
* Resource labels to represent user provided metadata.
*
* @var string[]
*/
public $labels;
/**
* Identifier. The resource name of the snapshot. Format: `projects/{project_i
* d}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`.
*
* @var string
*/
public $name;
/**
* Output only. The snapshot state.
*
* @var string
*/
public $state;
/**
* Output only. State details of the storage pool
*
* @var string
*/
public $stateDetails;
/**
* Output only. Current storage usage for the snapshot in bytes.
*
* @var
*/
public $usedBytes;
/**
* Output only. The time when the snapshot was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* A description of the snapshot with 2048 characters or less. Requests with
* longer descriptions will be rejected.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Resource labels to represent user provided metadata.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Identifier. The resource name of the snapshot. Format: `projects/{project_i
* d}/locations/{location}/volumes/{volume_id}/snapshots/{snapshot_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The snapshot state.
*
* Accepted values: STATE_UNSPECIFIED, READY, CREATING, DELETING, UPDATING,
* DISABLED, ERROR
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. State details of the storage pool
*
* @param string $stateDetails
*/
public function setStateDetails($stateDetails)
{
$this->stateDetails = $stateDetails;
}
/**
* @return string
*/
public function getStateDetails()
{
return $this->stateDetails;
}
public function setUsedBytes($usedBytes)
{
$this->usedBytes = $usedBytes;
}
public function getUsedBytes()
{
return $this->usedBytes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Snapshot::class, 'Google_Service_NetAppFiles_Snapshot');
@@ -0,0 +1,122 @@
<?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\NetAppFiles;
class SnapshotPolicy extends \Google\Model
{
protected $dailyScheduleType = DailySchedule::class;
protected $dailyScheduleDataType = '';
/**
* If enabled, make snapshots automatically according to the schedules.
* Default is false.
*
* @var bool
*/
public $enabled;
protected $hourlyScheduleType = HourlySchedule::class;
protected $hourlyScheduleDataType = '';
protected $monthlyScheduleType = MonthlySchedule::class;
protected $monthlyScheduleDataType = '';
protected $weeklyScheduleType = WeeklySchedule::class;
protected $weeklyScheduleDataType = '';
/**
* Daily schedule policy.
*
* @param DailySchedule $dailySchedule
*/
public function setDailySchedule(DailySchedule $dailySchedule)
{
$this->dailySchedule = $dailySchedule;
}
/**
* @return DailySchedule
*/
public function getDailySchedule()
{
return $this->dailySchedule;
}
/**
* If enabled, make snapshots automatically according to the schedules.
* Default is false.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
/**
* Hourly schedule policy.
*
* @param HourlySchedule $hourlySchedule
*/
public function setHourlySchedule(HourlySchedule $hourlySchedule)
{
$this->hourlySchedule = $hourlySchedule;
}
/**
* @return HourlySchedule
*/
public function getHourlySchedule()
{
return $this->hourlySchedule;
}
/**
* Monthly schedule policy.
*
* @param MonthlySchedule $monthlySchedule
*/
public function setMonthlySchedule(MonthlySchedule $monthlySchedule)
{
$this->monthlySchedule = $monthlySchedule;
}
/**
* @return MonthlySchedule
*/
public function getMonthlySchedule()
{
return $this->monthlySchedule;
}
/**
* Weekly schedule policy.
*
* @param WeeklySchedule $weeklySchedule
*/
public function setWeeklySchedule(WeeklySchedule $weeklySchedule)
{
$this->weeklySchedule = $weeklySchedule;
}
/**
* @return WeeklySchedule
*/
public function getWeeklySchedule()
{
return $this->weeklySchedule;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SnapshotPolicy::class, 'Google_Service_NetAppFiles_SnapshotPolicy');
@@ -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\NetAppFiles;
class SpannerLocation extends \Google\Collection
{
protected $collection_key = 'dbName';
/**
* @var string[]
*/
public $backupName;
/**
* @var string[]
*/
public $dbName;
/**
* @param string[]
*/
public function setBackupName($backupName)
{
$this->backupName = $backupName;
}
/**
* @return string[]
*/
public function getBackupName()
{
return $this->backupName;
}
/**
* @param string[]
*/
public function setDbName($dbName)
{
$this->dbName = $dbName;
}
/**
* @return string[]
*/
public function getDbName()
{
return $this->dbName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SpannerLocation::class, 'Google_Service_NetAppFiles_SpannerLocation');
@@ -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\NetAppFiles;
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_NetAppFiles_Status');
@@ -0,0 +1,56 @@
<?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\NetAppFiles;
class StopReplicationRequest extends \Google\Model
{
/**
* Indicates whether to stop replication forcefully while data transfer is in
* progress. Warning! if force is true, this will abort any current transfers
* and can lead to data loss due to partial transfer. If force is false, stop
* replication will fail while data transfer is in progress and you will need
* to retry later.
*
* @var bool
*/
public $force;
/**
* Indicates whether to stop replication forcefully while data transfer is in
* progress. Warning! if force is true, this will abort any current transfers
* and can lead to data loss due to partial transfer. If force is false, stop
* replication will fail while data transfer is in progress and you will need
* to retry later.
*
* @param bool $force
*/
public function setForce($force)
{
$this->force = $force;
}
/**
* @return bool
*/
public function getForce()
{
return $this->force;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StopReplicationRequest::class, 'Google_Service_NetAppFiles_StopReplicationRequest');
@@ -0,0 +1,944 @@
<?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\NetAppFiles;
class StoragePool extends \Google\Model
{
/**
* The source of the encryption key is not specified.
*/
public const ENCRYPTION_TYPE_ENCRYPTION_TYPE_UNSPECIFIED = 'ENCRYPTION_TYPE_UNSPECIFIED';
/**
* Google managed encryption key.
*/
public const ENCRYPTION_TYPE_SERVICE_MANAGED = 'SERVICE_MANAGED';
/**
* Customer managed encryption key, which is stored in KMS.
*/
public const ENCRYPTION_TYPE_CLOUD_KMS = 'CLOUD_KMS';
/**
* The `Mode` is not specified.
*/
public const MODE_MODE_UNSPECIFIED = 'MODE_UNSPECIFIED';
/**
* The resource is managed by the GCNV APIs.
*/
public const MODE_DEFAULT = 'DEFAULT';
/**
* The resource is managed by the GCNV ONTAP Mode APIs.
*/
public const MODE_ONTAP = 'ONTAP';
/**
* Unspecified QoS Type
*/
public const QOS_TYPE_QOS_TYPE_UNSPECIFIED = 'QOS_TYPE_UNSPECIFIED';
/**
* QoS Type is Auto
*/
public const QOS_TYPE_AUTO = 'AUTO';
/**
* QoS Type is Manual
*/
public const QOS_TYPE_MANUAL = 'MANUAL';
/**
* Unspecified scale type.
*/
public const SCALE_TYPE_SCALE_TYPE_UNSPECIFIED = 'SCALE_TYPE_UNSPECIFIED';
/**
* Represents standard capacity and performance scale-type. Suitable for
* general purpose workloads.
*/
public const SCALE_TYPE_SCALE_TYPE_DEFAULT = 'SCALE_TYPE_DEFAULT';
/**
* Represents higher capacity and performance scale-type. Suitable for more
* demanding workloads.
*/
public const SCALE_TYPE_SCALE_TYPE_SCALEOUT = 'SCALE_TYPE_SCALEOUT';
/**
* Unspecified service level.
*/
public const SERVICE_LEVEL_SERVICE_LEVEL_UNSPECIFIED = 'SERVICE_LEVEL_UNSPECIFIED';
/**
* Premium service level.
*/
public const SERVICE_LEVEL_PREMIUM = 'PREMIUM';
/**
* Extreme service level.
*/
public const SERVICE_LEVEL_EXTREME = 'EXTREME';
/**
* Standard service level.
*/
public const SERVICE_LEVEL_STANDARD = 'STANDARD';
/**
* Flex service level.
*/
public const SERVICE_LEVEL_FLEX = 'FLEX';
/**
* Unspecified Storage Pool State
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Storage Pool State is Ready
*/
public const STATE_READY = 'READY';
/**
* Storage Pool State is Creating
*/
public const STATE_CREATING = 'CREATING';
/**
* Storage Pool State is Deleting
*/
public const STATE_DELETING = 'DELETING';
/**
* Storage Pool State is Updating
*/
public const STATE_UPDATING = 'UPDATING';
/**
* Storage Pool State is Restoring
*/
public const STATE_RESTORING = 'RESTORING';
/**
* Storage Pool State is Disabled
*/
public const STATE_DISABLED = 'DISABLED';
/**
* Storage Pool State is Error
*/
public const STATE_ERROR = 'ERROR';
/**
* Storage pool type is not specified.
*/
public const TYPE_STORAGE_POOL_TYPE_UNSPECIFIED = 'STORAGE_POOL_TYPE_UNSPECIFIED';
/**
* Storage pool type is file.
*/
public const TYPE_FILE = 'FILE';
/**
* Storage pool type is unified.
*/
public const TYPE_UNIFIED = 'UNIFIED';
/**
* Optional. Specifies the Active Directory to be used for creating a SMB
* volume.
*
* @var string
*/
public $activeDirectory;
/**
* Optional. True if the storage pool supports Auto Tiering enabled volumes.
* Default is false. Auto-tiering can be enabled after storage pool creation
* but it can't be disabled once enabled.
*
* @var bool
*/
public $allowAutoTiering;
/**
* Output only. Available throughput of the storage pool (in MiB/s).
*
* @var
*/
public $availableThroughputMibps;
/**
* Required. Capacity in GIB of the pool
*
* @var string
*/
public $capacityGib;
/**
* Output only. Total cold tier data rounded down to the nearest GiB used by
* the storage pool.
*
* @var string
*/
public $coldTierSizeUsedGib;
/**
* Output only. Create time of the storage pool
*
* @var string
*/
public $createTime;
/**
* Optional. True if using Independent Scaling of capacity and performance
* (Hyperdisk) By default set to false
*
* @var bool
*/
public $customPerformanceEnabled;
/**
* Optional. Description of the storage pool
*
* @var string
*/
public $description;
/**
* Optional. Flag indicating that the hot-tier threshold will be auto-
* increased by 10% of the hot-tier when it hits 100%. Default is true. The
* increment will kick in only if the new size after increment is still less
* than or equal to storage pool size.
*
* @var bool
*/
public $enableHotTierAutoResize;
/**
* Output only. Specifies the current pool encryption key source.
*
* @var string
*/
public $encryptionType;
/**
* Deprecated. Used to allow SO pool to access AD or DNS server from other
* regions.
*
* @deprecated
* @var bool
*/
public $globalAccessAllowed;
/**
* Optional. Total hot tier capacity for the Storage Pool. It is applicable
* only to Flex service level. It should be less than the minimum storage pool
* size and cannot be more than the current storage pool size. It cannot be
* decreased once set.
*
* @var string
*/
public $hotTierSizeGib;
/**
* Output only. Total hot tier data rounded down to the nearest GiB used by
* the storage pool.
*
* @var string
*/
public $hotTierSizeUsedGib;
/**
* Optional. Specifies the KMS config to be used for volume encryption.
*
* @var string
*/
public $kmsConfig;
/**
* Optional. Labels as key value pairs
*
* @var string[]
*/
public $labels;
/**
* Optional. Flag indicating if the pool is NFS LDAP enabled or not.
*
* @var bool
*/
public $ldapEnabled;
/**
* Optional. Mode of the storage pool. This field is used to control whether
* the user can perform ONTAP operations on the storage pool using the GCNV
* ONTAP Mode APIs. If not specified during creation, it defaults to
* `DEFAULT`.
*
* @var string
*/
public $mode;
/**
* Identifier. Name of the storage pool
*
* @var string
*/
public $name;
/**
* Required. VPC Network name. Format:
* projects/{project}/global/networks/{network}
*
* @var string
*/
public $network;
/**
* Optional. This field is not implemented. The values provided in this field
* are ignored.
*
* @var string
*/
public $psaRange;
/**
* Optional. QoS (Quality of Service) Type of the storage pool
*
* @var string
*/
public $qosType;
/**
* Optional. Specifies the replica zone for regional storagePool.
*
* @var string
*/
public $replicaZone;
/**
* Output only. Reserved for future use
*
* @var bool
*/
public $satisfiesPzi;
/**
* Output only. Reserved for future use
*
* @var bool
*/
public $satisfiesPzs;
/**
* Optional. The scale type of the storage pool. Defaults to
* `SCALE_TYPE_DEFAULT` if not specified.
*
* @var string
*/
public $scaleType;
/**
* Required. Service level of the storage pool
*
* @var string
*/
public $serviceLevel;
/**
* Output only. State of the storage pool
*
* @var string
*/
public $state;
/**
* Output only. State details of the storage pool
*
* @var string
*/
public $stateDetails;
/**
* Optional. Custom Performance Total IOPS of the pool if not provided, it
* will be calculated based on the total_throughput_mibps
*
* @var string
*/
public $totalIops;
/**
* Optional. Custom Performance Total Throughput of the pool (in MiBps)
*
* @var string
*/
public $totalThroughputMibps;
/**
* Optional. Type of the storage pool. This field is used to control whether
* the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
* `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
*
* @var string
*/
public $type;
/**
* Output only. Allocated size of all volumes in GIB in the storage pool
*
* @var string
*/
public $volumeCapacityGib;
/**
* Output only. Volume count of the storage pool
*
* @var int
*/
public $volumeCount;
/**
* Optional. Specifies the active zone for regional storagePool.
*
* @var string
*/
public $zone;
/**
* Optional. Specifies the Active Directory to be used for creating a SMB
* volume.
*
* @param string $activeDirectory
*/
public function setActiveDirectory($activeDirectory)
{
$this->activeDirectory = $activeDirectory;
}
/**
* @return string
*/
public function getActiveDirectory()
{
return $this->activeDirectory;
}
/**
* Optional. True if the storage pool supports Auto Tiering enabled volumes.
* Default is false. Auto-tiering can be enabled after storage pool creation
* but it can't be disabled once enabled.
*
* @param bool $allowAutoTiering
*/
public function setAllowAutoTiering($allowAutoTiering)
{
$this->allowAutoTiering = $allowAutoTiering;
}
/**
* @return bool
*/
public function getAllowAutoTiering()
{
return $this->allowAutoTiering;
}
public function setAvailableThroughputMibps($availableThroughputMibps)
{
$this->availableThroughputMibps = $availableThroughputMibps;
}
public function getAvailableThroughputMibps()
{
return $this->availableThroughputMibps;
}
/**
* Required. Capacity in GIB of the pool
*
* @param string $capacityGib
*/
public function setCapacityGib($capacityGib)
{
$this->capacityGib = $capacityGib;
}
/**
* @return string
*/
public function getCapacityGib()
{
return $this->capacityGib;
}
/**
* Output only. Total cold tier data rounded down to the nearest GiB used by
* the storage pool.
*
* @param string $coldTierSizeUsedGib
*/
public function setColdTierSizeUsedGib($coldTierSizeUsedGib)
{
$this->coldTierSizeUsedGib = $coldTierSizeUsedGib;
}
/**
* @return string
*/
public function getColdTierSizeUsedGib()
{
return $this->coldTierSizeUsedGib;
}
/**
* Output only. Create time of the storage pool
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. True if using Independent Scaling of capacity and performance
* (Hyperdisk) By default set to false
*
* @param bool $customPerformanceEnabled
*/
public function setCustomPerformanceEnabled($customPerformanceEnabled)
{
$this->customPerformanceEnabled = $customPerformanceEnabled;
}
/**
* @return bool
*/
public function getCustomPerformanceEnabled()
{
return $this->customPerformanceEnabled;
}
/**
* Optional. Description of the storage pool
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. Flag indicating that the hot-tier threshold will be auto-
* increased by 10% of the hot-tier when it hits 100%. Default is true. The
* increment will kick in only if the new size after increment is still less
* than or equal to storage pool size.
*
* @param bool $enableHotTierAutoResize
*/
public function setEnableHotTierAutoResize($enableHotTierAutoResize)
{
$this->enableHotTierAutoResize = $enableHotTierAutoResize;
}
/**
* @return bool
*/
public function getEnableHotTierAutoResize()
{
return $this->enableHotTierAutoResize;
}
/**
* Output only. Specifies the current pool encryption key source.
*
* Accepted values: ENCRYPTION_TYPE_UNSPECIFIED, SERVICE_MANAGED, CLOUD_KMS
*
* @param self::ENCRYPTION_TYPE_* $encryptionType
*/
public function setEncryptionType($encryptionType)
{
$this->encryptionType = $encryptionType;
}
/**
* @return self::ENCRYPTION_TYPE_*
*/
public function getEncryptionType()
{
return $this->encryptionType;
}
/**
* Deprecated. Used to allow SO pool to access AD or DNS server from other
* regions.
*
* @deprecated
* @param bool $globalAccessAllowed
*/
public function setGlobalAccessAllowed($globalAccessAllowed)
{
$this->globalAccessAllowed = $globalAccessAllowed;
}
/**
* @deprecated
* @return bool
*/
public function getGlobalAccessAllowed()
{
return $this->globalAccessAllowed;
}
/**
* Optional. Total hot tier capacity for the Storage Pool. It is applicable
* only to Flex service level. It should be less than the minimum storage pool
* size and cannot be more than the current storage pool size. It cannot be
* decreased once set.
*
* @param string $hotTierSizeGib
*/
public function setHotTierSizeGib($hotTierSizeGib)
{
$this->hotTierSizeGib = $hotTierSizeGib;
}
/**
* @return string
*/
public function getHotTierSizeGib()
{
return $this->hotTierSizeGib;
}
/**
* Output only. Total hot tier data rounded down to the nearest GiB used by
* the storage pool.
*
* @param string $hotTierSizeUsedGib
*/
public function setHotTierSizeUsedGib($hotTierSizeUsedGib)
{
$this->hotTierSizeUsedGib = $hotTierSizeUsedGib;
}
/**
* @return string
*/
public function getHotTierSizeUsedGib()
{
return $this->hotTierSizeUsedGib;
}
/**
* Optional. Specifies the KMS config to be used for volume encryption.
*
* @param string $kmsConfig
*/
public function setKmsConfig($kmsConfig)
{
$this->kmsConfig = $kmsConfig;
}
/**
* @return string
*/
public function getKmsConfig()
{
return $this->kmsConfig;
}
/**
* Optional. Labels as key value pairs
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Flag indicating if the pool is NFS LDAP enabled or not.
*
* @param bool $ldapEnabled
*/
public function setLdapEnabled($ldapEnabled)
{
$this->ldapEnabled = $ldapEnabled;
}
/**
* @return bool
*/
public function getLdapEnabled()
{
return $this->ldapEnabled;
}
/**
* Optional. Mode of the storage pool. This field is used to control whether
* the user can perform ONTAP operations on the storage pool using the GCNV
* ONTAP Mode APIs. If not specified during creation, it defaults to
* `DEFAULT`.
*
* Accepted values: MODE_UNSPECIFIED, DEFAULT, ONTAP
*
* @param self::MODE_* $mode
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return self::MODE_*
*/
public function getMode()
{
return $this->mode;
}
/**
* Identifier. Name of the storage pool
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. VPC Network name. Format:
* projects/{project}/global/networks/{network}
*
* @param string $network
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* Optional. This field is not implemented. The values provided in this field
* are ignored.
*
* @param string $psaRange
*/
public function setPsaRange($psaRange)
{
$this->psaRange = $psaRange;
}
/**
* @return string
*/
public function getPsaRange()
{
return $this->psaRange;
}
/**
* Optional. QoS (Quality of Service) Type of the storage pool
*
* Accepted values: QOS_TYPE_UNSPECIFIED, AUTO, MANUAL
*
* @param self::QOS_TYPE_* $qosType
*/
public function setQosType($qosType)
{
$this->qosType = $qosType;
}
/**
* @return self::QOS_TYPE_*
*/
public function getQosType()
{
return $this->qosType;
}
/**
* Optional. Specifies the replica zone for regional storagePool.
*
* @param string $replicaZone
*/
public function setReplicaZone($replicaZone)
{
$this->replicaZone = $replicaZone;
}
/**
* @return string
*/
public function getReplicaZone()
{
return $this->replicaZone;
}
/**
* Output only. Reserved for future use
*
* @param bool $satisfiesPzi
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* Output only. Reserved for future use
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* Optional. The scale type of the storage pool. Defaults to
* `SCALE_TYPE_DEFAULT` if not specified.
*
* Accepted values: SCALE_TYPE_UNSPECIFIED, SCALE_TYPE_DEFAULT,
* SCALE_TYPE_SCALEOUT
*
* @param self::SCALE_TYPE_* $scaleType
*/
public function setScaleType($scaleType)
{
$this->scaleType = $scaleType;
}
/**
* @return self::SCALE_TYPE_*
*/
public function getScaleType()
{
return $this->scaleType;
}
/**
* Required. Service level of the storage pool
*
* Accepted values: SERVICE_LEVEL_UNSPECIFIED, PREMIUM, EXTREME, STANDARD,
* FLEX
*
* @param self::SERVICE_LEVEL_* $serviceLevel
*/
public function setServiceLevel($serviceLevel)
{
$this->serviceLevel = $serviceLevel;
}
/**
* @return self::SERVICE_LEVEL_*
*/
public function getServiceLevel()
{
return $this->serviceLevel;
}
/**
* Output only. State of the storage pool
*
* Accepted values: STATE_UNSPECIFIED, READY, CREATING, DELETING, UPDATING,
* RESTORING, DISABLED, ERROR
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. State details of the storage pool
*
* @param string $stateDetails
*/
public function setStateDetails($stateDetails)
{
$this->stateDetails = $stateDetails;
}
/**
* @return string
*/
public function getStateDetails()
{
return $this->stateDetails;
}
/**
* Optional. Custom Performance Total IOPS of the pool if not provided, it
* will be calculated based on the total_throughput_mibps
*
* @param string $totalIops
*/
public function setTotalIops($totalIops)
{
$this->totalIops = $totalIops;
}
/**
* @return string
*/
public function getTotalIops()
{
return $this->totalIops;
}
/**
* Optional. Custom Performance Total Throughput of the pool (in MiBps)
*
* @param string $totalThroughputMibps
*/
public function setTotalThroughputMibps($totalThroughputMibps)
{
$this->totalThroughputMibps = $totalThroughputMibps;
}
/**
* @return string
*/
public function getTotalThroughputMibps()
{
return $this->totalThroughputMibps;
}
/**
* Optional. Type of the storage pool. This field is used to control whether
* the pool supports `FILE` based volumes only or `UNIFIED` (both `FILE` and
* `BLOCK`) volumes. If not specified during creation, it defaults to `FILE`.
*
* Accepted values: STORAGE_POOL_TYPE_UNSPECIFIED, FILE, UNIFIED
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
/**
* Output only. Allocated size of all volumes in GIB in the storage pool
*
* @param string $volumeCapacityGib
*/
public function setVolumeCapacityGib($volumeCapacityGib)
{
$this->volumeCapacityGib = $volumeCapacityGib;
}
/**
* @return string
*/
public function getVolumeCapacityGib()
{
return $this->volumeCapacityGib;
}
/**
* Output only. Volume count of the storage pool
*
* @param int $volumeCount
*/
public function setVolumeCount($volumeCount)
{
$this->volumeCount = $volumeCount;
}
/**
* @return int
*/
public function getVolumeCount()
{
return $this->volumeCount;
}
/**
* Optional. Specifies the active zone for regional storagePool.
*
* @param string $zone
*/
public function setZone($zone)
{
$this->zone = $zone;
}
/**
* @return string
*/
public function getZone()
{
return $this->zone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StoragePool::class, 'Google_Service_NetAppFiles_StoragePool');
@@ -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\NetAppFiles;
class SwitchActiveReplicaZoneRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SwitchActiveReplicaZoneRequest::class, 'Google_Service_NetAppFiles_SwitchActiveReplicaZoneRequest');
@@ -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\NetAppFiles;
class SyncReplicationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SyncReplicationRequest::class, 'Google_Service_NetAppFiles_SyncReplicationRequest');
@@ -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\NetAppFiles;
class TenantProjectProxy extends \Google\Collection
{
protected $collection_key = 'projectNumbers';
/**
* @var string[]
*/
public $projectNumbers;
/**
* @param string[]
*/
public function setProjectNumbers($projectNumbers)
{
$this->projectNumbers = $projectNumbers;
}
/**
* @return string[]
*/
public function getProjectNumbers()
{
return $this->projectNumbers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TenantProjectProxy::class, 'Google_Service_NetAppFiles_TenantProjectProxy');

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