Skip to content

Commit abf27df

Browse files
1 parent 7fb5ae8 commit abf27df

10 files changed

Lines changed: 181 additions & 25 deletions

src/NetAppFiles.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
847847
'type' => 'boolean',
848848
],
849849
],
850+
],'establishPeering' => [
851+
'path' => 'v1/{+name}:establishPeering',
852+
'httpMethod' => 'POST',
853+
'parameters' => [
854+
'name' => [
855+
'location' => 'path',
856+
'type' => 'string',
857+
'required' => true,
858+
],
859+
],
850860
],'get' => [
851861
'path' => 'v1/{+name}',
852862
'httpMethod' => 'GET',

src/NetAppFiles/BackupVault.php

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ class BackupVault extends \Google\Model
9292
public $backupVaultType;
9393
/**
9494
* Output only. The crypto key version used to encrypt the backup vault.
95-
* Format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoK
96-
* eys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
95+
* Format: `projects/{project}/locations/{location}/keyRings/{key_ring}/crypto
96+
* Keys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
9797
*
9898
* @var string
9999
*/
@@ -124,8 +124,9 @@ class BackupVault extends \Google\Model
124124
*/
125125
public $encryptionState;
126126
/**
127-
* Optional. Specifies the KMS config to be used for backup encryption.
128-
* Format: projects/{project}/locations/{location}/kmsConfigs/{kms_config}
127+
* Optional. Specifies the Key Management System (KMS) configuration to be
128+
* used for backup encryption. Format:
129+
* `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
129130
*
130131
* @var string
131132
*/
@@ -182,7 +183,7 @@ public function getBackupRegion()
182183
return $this->backupRegion;
183184
}
184185
/**
185-
* Optional. Backup retention policy defining the retenton of backups.
186+
* Optional. Backup retention policy defining the retention of backups.
186187
*
187188
* @param BackupRetentionPolicy $backupRetentionPolicy
188189
*/
@@ -217,8 +218,8 @@ public function getBackupVaultType()
217218
}
218219
/**
219220
* Output only. The crypto key version used to encrypt the backup vault.
220-
* Format: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoK
221-
* eys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
221+
* Format: `projects/{project}/locations/{location}/keyRings/{key_ring}/crypto
222+
* Keys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
222223
*
223224
* @param string $backupsCryptoKeyVersion
224225
*/
@@ -303,8 +304,9 @@ public function getEncryptionState()
303304
return $this->encryptionState;
304305
}
305306
/**
306-
* Optional. Specifies the KMS config to be used for backup encryption.
307-
* Format: projects/{project}/locations/{location}/kmsConfigs/{kms_config}
307+
* Optional. Specifies the Key Management System (KMS) configuration to be
308+
* used for backup encryption. Format:
309+
* `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
308310
*
309311
* @param string $kmsConfig
310312
*/

src/NetAppFiles/BlockDevice.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class BlockDevice extends \Google\Collection
5454
public $identifier;
5555
/**
5656
* Optional. User-defined name for the block device, unique within the volume.
57-
* In case no user input is provided, name will be autogenerated in the
57+
* In case no user input is provided, name will be auto-generated in the
5858
* backend. The name must meet the following requirements: * Be between 1 and
5959
* 255 characters long. * Contain only uppercase or lowercase letters (A-Z,
6060
* a-z), numbers (0-9), and the following special characters: "-", "_", "}",
@@ -118,7 +118,7 @@ public function getIdentifier()
118118
}
119119
/**
120120
* Optional. User-defined name for the block device, unique within the volume.
121-
* In case no user input is provided, name will be autogenerated in the
121+
* In case no user input is provided, name will be auto-generated in the
122122
* backend. The name must meet the following requirements: * Be between 1 and
123123
* 255 characters long. * Contain only uppercase or lowercase letters (A-Z,
124124
* a-z), numbers (0-9), and the following special characters: "-", "_", "}",

src/NetAppFiles/CachePrePopulate.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class CachePrePopulate extends \Google\Collection
3535
*/
3636
public $pathList;
3737
/**
38-
* Optional. Flag indicating whether the directories listed with the pathList
39-
* need to be recursively pre-populated.
38+
* Optional. Flag indicating whether the directories listed with the
39+
* `path_list` need to be recursively pre-populated.
4040
*
4141
* @var bool
4242
*/
@@ -77,8 +77,8 @@ public function getPathList()
7777
return $this->pathList;
7878
}
7979
/**
80-
* Optional. Flag indicating whether the directories listed with the pathList
81-
* need to be recursively pre-populated.
80+
* Optional. Flag indicating whether the directories listed with the
81+
* `path_list` need to be recursively pre-populated.
8282
*
8383
* @param bool $recursion
8484
*/
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\NetAppFiles;
19+
20+
class EstablishVolumePeeringRequest extends \Google\Collection
21+
{
22+
protected $collection_key = 'peerIpAddresses';
23+
/**
24+
* Required. Name of the user's local source cluster to be peered with the
25+
* destination cluster.
26+
*
27+
* @var string
28+
*/
29+
public $peerClusterName;
30+
/**
31+
* Optional. List of IPv4 ip addresses to be used for peering.
32+
*
33+
* @var string[]
34+
*/
35+
public $peerIpAddresses;
36+
/**
37+
* Required. Name of the user's local source vserver svm to be peered with the
38+
* destination vserver svm.
39+
*
40+
* @var string
41+
*/
42+
public $peerSvmName;
43+
/**
44+
* Required. Name of the user's local source volume to be peered with the
45+
* destination volume.
46+
*
47+
* @var string
48+
*/
49+
public $peerVolumeName;
50+
51+
/**
52+
* Required. Name of the user's local source cluster to be peered with the
53+
* destination cluster.
54+
*
55+
* @param string $peerClusterName
56+
*/
57+
public function setPeerClusterName($peerClusterName)
58+
{
59+
$this->peerClusterName = $peerClusterName;
60+
}
61+
/**
62+
* @return string
63+
*/
64+
public function getPeerClusterName()
65+
{
66+
return $this->peerClusterName;
67+
}
68+
/**
69+
* Optional. List of IPv4 ip addresses to be used for peering.
70+
*
71+
* @param string[] $peerIpAddresses
72+
*/
73+
public function setPeerIpAddresses($peerIpAddresses)
74+
{
75+
$this->peerIpAddresses = $peerIpAddresses;
76+
}
77+
/**
78+
* @return string[]
79+
*/
80+
public function getPeerIpAddresses()
81+
{
82+
return $this->peerIpAddresses;
83+
}
84+
/**
85+
* Required. Name of the user's local source vserver svm to be peered with the
86+
* destination vserver svm.
87+
*
88+
* @param string $peerSvmName
89+
*/
90+
public function setPeerSvmName($peerSvmName)
91+
{
92+
$this->peerSvmName = $peerSvmName;
93+
}
94+
/**
95+
* @return string
96+
*/
97+
public function getPeerSvmName()
98+
{
99+
return $this->peerSvmName;
100+
}
101+
/**
102+
* Required. Name of the user's local source volume to be peered with the
103+
* destination volume.
104+
*
105+
* @param string $peerVolumeName
106+
*/
107+
public function setPeerVolumeName($peerVolumeName)
108+
{
109+
$this->peerVolumeName = $peerVolumeName;
110+
}
111+
/**
112+
* @return string
113+
*/
114+
public function getPeerVolumeName()
115+
{
116+
return $this->peerVolumeName;
117+
}
118+
}
119+
120+
// Adding a class alias for backwards compatibility with the previous class name.
121+
class_alias(EstablishVolumePeeringRequest::class, 'Google_Service_NetAppFiles_EstablishVolumePeeringRequest');

src/NetAppFiles/KmsConfig.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ class KmsConfig extends \Google\Model
7676
*/
7777
public $createTime;
7878
/**
79-
* Required. Customer managed crypto key resource full name. Format: `projects
79+
* Required. Customer-managed crypto key resource full name. Format: `projects
8080
* /{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
81-
* `.
81+
* `
8282
*
8383
* @var string
8484
*/
@@ -103,7 +103,8 @@ class KmsConfig extends \Google\Model
103103
*/
104104
public $labels;
105105
/**
106-
* Identifier. Name of the KmsConfig.
106+
* Identifier. Name of the KmsConfig. Format:
107+
* `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
107108
*
108109
* @var string
109110
*/
@@ -145,9 +146,9 @@ public function getCreateTime()
145146
return $this->createTime;
146147
}
147148
/**
148-
* Required. Customer managed crypto key resource full name. Format: `projects
149+
* Required. Customer-managed crypto key resource full name. Format: `projects
149150
* /{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
150-
* `.
151+
* `
151152
*
152153
* @param string $cryptoKeyName
153154
*/
@@ -212,7 +213,8 @@ public function getLabels()
212213
return $this->labels;
213214
}
214215
/**
215-
* Identifier. Name of the KmsConfig.
216+
* Identifier. Name of the KmsConfig. Format:
217+
* `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
216218
*
217219
* @param string $name
218220
*/

src/NetAppFiles/Resource/ProjectsLocationsKmsConfigs.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ public function listProjectsLocationsKmsConfigs($parent, $optParams = [])
125125
/**
126126
* Updates the Kms config properties with the full spec (kmsConfigs.patch)
127127
*
128-
* @param string $name Identifier. Name of the KmsConfig.
128+
* @param string $name Identifier. Name of the KmsConfig. Format:
129+
* `projects/{project}/locations/{location}/kmsConfigs/{kms_config}`
129130
* @param KmsConfig $postBody
130131
* @param array $optParams Optional parameters.
131132
*

src/NetAppFiles/Resource/ProjectsLocationsVolumes.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
namespace Google\Service\NetAppFiles\Resource;
1919

20+
use Google\Service\NetAppFiles\EstablishVolumePeeringRequest;
2021
use Google\Service\NetAppFiles\ListVolumesResponse;
2122
use Google\Service\NetAppFiles\Operation;
2223
use Google\Service\NetAppFiles\RestoreBackupFilesRequest;
@@ -71,6 +72,23 @@ public function delete($name, $optParams = [])
7172
$params = array_merge($params, $optParams);
7273
return $this->call('delete', [$params], Operation::class);
7374
}
75+
/**
76+
* Establish volume peering. This is used to establish cluster and svm peerings
77+
* between the GCNV and OnPrem clusters. (volumes.establishPeering)
78+
*
79+
* @param string $name Required. The volume resource name, in the format
80+
* `projects/{project_id}/locations/{location}/volumes/{volume_id}`
81+
* @param EstablishVolumePeeringRequest $postBody
82+
* @param array $optParams Optional parameters.
83+
* @return Operation
84+
* @throws \Google\Service\Exception
85+
*/
86+
public function establishPeering($name, EstablishVolumePeeringRequest $postBody, $optParams = [])
87+
{
88+
$params = ['name' => $name, 'postBody' => $postBody];
89+
$params = array_merge($params, $optParams);
90+
return $this->call('establishPeering', [$params], Operation::class);
91+
}
7492
/**
7593
* Gets details of a single Volume. (volumes.get)
7694
*

src/NetAppFiles/SimpleExportPolicyRule.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class SimpleExportPolicyRule extends \Google\Model
6666
public $allowedClients;
6767
/**
6868
* Optional. An integer representing the anonymous user ID. Range is 0 to
69-
* 4294967295. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
69+
* `4294967295`. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
7070
*
7171
* @var string
7272
*/
@@ -185,7 +185,7 @@ public function getAllowedClients()
185185
}
186186
/**
187187
* Optional. An integer representing the anonymous user ID. Range is 0 to
188-
* 4294967295. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
188+
* `4294967295`. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
189189
*
190190
* @param string $anonUid
191191
*/

src/NetAppFiles/StoragePool.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ class StoragePool extends \Google\Model
108108
*/
109109
public const TYPE_UNIFIED = 'UNIFIED';
110110
/**
111-
* Storage pool type is unified large capacity.
111+
* Deprecated: UNIFIED_LARGE_CAPACITY was previously tag 3.
112+
*
113+
* @deprecated
112114
*/
113115
public const TYPE_UNIFIED_LARGE_CAPACITY = 'UNIFIED_LARGE_CAPACITY';
114116
/**

0 commit comments

Comments
 (0)