Skip to content

Commit 9b28f6d

Browse files
1 parent 4a025b9 commit 9b28f6d

7 files changed

Lines changed: 49 additions & 63 deletions

src/VMwareEngine/DatastoreMountConfig.php

Lines changed: 8 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,17 @@ class DatastoreMountConfig extends \Google\Collection
3939
* NFS 3
4040
*/
4141
public const NFS_VERSION_NFS_V3 = 'NFS_V3';
42-
/**
43-
* The default value. This value should never be used.
44-
*/
45-
public const SECURITY_TYPE_SECURITY_TYPE_UNSPECIFIED = 'SECURITY_TYPE_UNSPECIFIED';
4642
protected $collection_key = 'servers';
4743
/**
48-
* Optional. NFS is accessed by hosts in read mode Optional. Default value
49-
* used will be READ_WRITE
44+
* Optional. The access mode of the NFS volume. Optional. Default value used
45+
* will be READ_WRITE
5046
*
5147
* @var string
5248
*/
5349
public $accessMode;
5450
/**
55-
* Required. The resource name of the datastore to unmount. The datastore
56-
* requested to be mounted should be in same region/zone as the cluster.
57-
* Resource names are schemeless URIs that follow the conventions in
51+
* Required. The resource name of the datastore to mount. Resource names are
52+
* schemeless URIs that follow the conventions in
5853
* https://cloud.google.com/apis/design/resource_names. For example:
5954
* `projects/my-project/locations/us-central1/datastores/my-datastore`
6055
*
@@ -76,12 +71,6 @@ class DatastoreMountConfig extends \Google\Collection
7671
* @var string
7772
*/
7873
public $nfsVersion;
79-
/**
80-
* Optional. ONLY required when NFS 4.1 version is used
81-
*
82-
* @var string
83-
*/
84-
public $securityType;
8574
/**
8675
* Output only. Server IP addresses of the NFS volume. For NFS 3, you can only
8776
* provide a single server IP address or DNS names.
@@ -91,8 +80,8 @@ class DatastoreMountConfig extends \Google\Collection
9180
public $servers;
9281

9382
/**
94-
* Optional. NFS is accessed by hosts in read mode Optional. Default value
95-
* used will be READ_WRITE
83+
* Optional. The access mode of the NFS volume. Optional. Default value used
84+
* will be READ_WRITE
9685
*
9786
* Accepted values: ACCESS_MODE_UNSPECIFIED, READ_ONLY, READ_WRITE
9887
*
@@ -110,9 +99,8 @@ public function getAccessMode()
11099
return $this->accessMode;
111100
}
112101
/**
113-
* Required. The resource name of the datastore to unmount. The datastore
114-
* requested to be mounted should be in same region/zone as the cluster.
115-
* Resource names are schemeless URIs that follow the conventions in
102+
* Required. The resource name of the datastore to mount. Resource names are
103+
* schemeless URIs that follow the conventions in
116104
* https://cloud.google.com/apis/design/resource_names. For example:
117105
* `projects/my-project/locations/us-central1/datastores/my-datastore`
118106
*
@@ -180,24 +168,6 @@ public function getNfsVersion()
180168
{
181169
return $this->nfsVersion;
182170
}
183-
/**
184-
* Optional. ONLY required when NFS 4.1 version is used
185-
*
186-
* Accepted values: SECURITY_TYPE_UNSPECIFIED
187-
*
188-
* @param self::SECURITY_TYPE_* $securityType
189-
*/
190-
public function setSecurityType($securityType)
191-
{
192-
$this->securityType = $securityType;
193-
}
194-
/**
195-
* @return self::SECURITY_TYPE_*
196-
*/
197-
public function getSecurityType()
198-
{
199-
return $this->securityType;
200-
}
201171
/**
202172
* Output only. Server IP addresses of the NFS volume. For NFS 3, you can only
203173
* provide a single server IP address or DNS names.

src/VMwareEngine/DatastoreNetwork.php

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,23 @@
2020
class DatastoreNetwork extends \Google\Model
2121
{
2222
/**
23-
* Optional. The number of connections of the NFS volume. Spported from
24-
* vsphere 8.0u1
23+
* Optional. connection_count is used to set multiple connections from NFS
24+
* client on ESXi host to NFS server. A higher number of connections results
25+
* in better performance on datastores. In MountDatastore API by default max 4
26+
* connections are configured. User can set value of connection_count between
27+
* 1 to 4. Connection_count is supported from vsphere 8.0u1 for earlier
28+
* version 1 connection count is set on the ESXi hosts.
2529
*
2630
* @var int
2731
*/
2832
public $connectionCount;
2933
/**
30-
* Optional. The Maximal Transmission Unit (MTU) of the datastore. System sets
31-
* default MTU size. It prefers the VPC peering MTU, falling back to the VEN
32-
* MTU if no peering MTU is found. when detected, and falling back to the VEN
33-
* MTU otherwise.
34+
* Optional. MTU value is set on the VMKernel adapter for the NFS traffic. By
35+
* default standard 1500 MTU size is set in MountDatastore API which is good
36+
* for typical setups. However google VPC networks supports jumbo MTU 8896. We
37+
* recommend to tune this value based on the NFS traffic performance.
38+
* Performance can be determined using benchmarking I/O tools like fio
39+
* (Flexible I/O Tester) utility.
3440
*
3541
* @var int
3642
*/
@@ -56,8 +62,12 @@ class DatastoreNetwork extends \Google\Model
5662
public $subnet;
5763

5864
/**
59-
* Optional. The number of connections of the NFS volume. Spported from
60-
* vsphere 8.0u1
65+
* Optional. connection_count is used to set multiple connections from NFS
66+
* client on ESXi host to NFS server. A higher number of connections results
67+
* in better performance on datastores. In MountDatastore API by default max 4
68+
* connections are configured. User can set value of connection_count between
69+
* 1 to 4. Connection_count is supported from vsphere 8.0u1 for earlier
70+
* version 1 connection count is set on the ESXi hosts.
6171
*
6272
* @param int $connectionCount
6373
*/
@@ -73,10 +83,12 @@ public function getConnectionCount()
7383
return $this->connectionCount;
7484
}
7585
/**
76-
* Optional. The Maximal Transmission Unit (MTU) of the datastore. System sets
77-
* default MTU size. It prefers the VPC peering MTU, falling back to the VEN
78-
* MTU if no peering MTU is found. when detected, and falling back to the VEN
79-
* MTU otherwise.
86+
* Optional. MTU value is set on the VMKernel adapter for the NFS traffic. By
87+
* default standard 1500 MTU size is set in MountDatastore API which is good
88+
* for typical setups. However google VPC networks supports jumbo MTU 8896. We
89+
* recommend to tune this value based on the NFS traffic performance.
90+
* Performance can be determined using benchmarking I/O tools like fio
91+
* (Flexible I/O Tester) utility.
8092
*
8193
* @param int $mtu
8294
*/

src/VMwareEngine/NfsDatastore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class NfsDatastore extends \Google\Model
2727
protected $thirdPartyFileServiceDataType = '';
2828

2929
/**
30-
* Google service file service configuration
30+
* Google file service configuration
3131
*
3232
* @param GoogleFileService $googleFileService
3333
*/

src/VMwareEngine/Resource/ProjectsLocations.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ public function getDnsBindPermission($name, $optParams = [])
6868
return $this->call('getDnsBindPermission', [$params], DnsBindPermission::class);
6969
}
7070
/**
71-
* Lists information about the supported locations for this service.
71+
* Lists information about the supported locations for this service. This method
72+
* can be called in two ways: * **List all public locations:** Use the path `GET
73+
* /v1/locations`. * **List project-visible locations:** Use the path `GET
74+
* /v1/projects/{project_id}/locations`. This may include public locations as
75+
* well as private or other locations specifically visible to the project.
7276
* (locations.listProjectsLocations)
7377
*
7478
* @param string $name The resource that owns the locations collection, if

src/VMwareEngine/Resource/ProjectsLocationsDatastores.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ProjectsLocationsDatastores extends \Google\Service\Resource
3333
{
3434
/**
3535
* Creates a new `Datastore` resource in a given project and location.
36-
* Datastores are regional resources (datastores.create)
36+
* (datastores.create)
3737
*
3838
* @param string $parent Required. The resource name of the location to create
3939
* the new datastore in. Resource names are schemeless URIs that follow the
@@ -156,9 +156,8 @@ public function listProjectsLocationsDatastores($parent, $optParams = [])
156156
return $this->call('list', [$params], ListDatastoresResponse::class);
157157
}
158158
/**
159-
* Modifies a Datastore resource. Only the following fields can be updated:
160-
* `description`. Only fields specified in `updateMask` are applied.
161-
* (datastores.patch)
159+
* Modifies a Datastore resource. Only fields specified in `updateMask` are
160+
* applied. (datastores.patch)
162161
*
163162
* @param string $name Output only. Identifier. The resource name of this
164163
* datastore. Resource names are schemeless URIs that follow the conventions in
@@ -174,8 +173,7 @@ public function listProjectsLocationsDatastores($parent, $optParams = [])
174173
* fields to be overwritten in the Datastore resource by the update. The fields
175174
* specified in the `update_mask` are relative to the resource, not the full
176175
* request. A field will be overwritten if it is in the mask. If the user does
177-
* not provide a mask then all fields will be overwritten. Only the following
178-
* fields can be updated: `description`.
176+
* not provide a mask then all fields will be overwritten.
179177
* @return Operation
180178
* @throws \Google\Service\Exception
181179
*/

src/VMwareEngine/Resource/ProjectsLocationsPrivateCloudsClusters.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ public function listProjectsLocationsPrivateCloudsClusters($parent, $optParams =
182182
return $this->call('list', [$params], ListClustersResponse::class);
183183
}
184184
/**
185-
* Mounts a `Datastore` on a cluster resource Datastores are zonal resources
186-
* (clusters.mountDatastore)
185+
* Mounts a `Datastore` on a cluster resource (clusters.mountDatastore)
187186
*
188187
* @param string $name Required. The resource name of the cluster to mount the
189188
* datastore. Resource names are schemeless URIs that follow the conventions in
@@ -278,8 +277,7 @@ public function testIamPermissions($resource, TestIamPermissionsRequest $postBod
278277
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
279278
}
280279
/**
281-
* Mounts a `Datastore` on a cluster resource Datastores are zonal resources
282-
* (clusters.unmountDatastore)
280+
* Unmounts a `Datastore` on a cluster resource (clusters.unmountDatastore)
283281
*
284282
* @param string $name Required. The resource name of the cluster to unmount the
285283
* datastore. Resource names are schemeless URIs that follow the conventions in

src/VMwareEngine/VmwareUpgradeComponent.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ class VmwareUpgradeComponent extends \Google\Model
7575
* Cluster is used in case of BM
7676
*/
7777
public const COMPONENT_TYPE_CLUSTER = 'CLUSTER';
78+
/**
79+
* VMware Tools.
80+
*/
81+
public const COMPONENT_TYPE_VM_TOOLS = 'VM_TOOLS';
7882
/**
7983
* The default value. This value should never be used.
8084
*/
@@ -123,7 +127,7 @@ class VmwareUpgradeComponent extends \Google\Model
123127
*
124128
* Accepted values: VMWARE_COMPONENT_TYPE_UNSPECIFIED, VCENTER, ESXI, NSXT_UC,
125129
* NSXT_EDGE, NSXT_MGR, HCX, VSAN, DVS, NAMESERVER_VM, KMS_VM, WITNESS_VM,
126-
* NSXT, CLUSTER
130+
* NSXT, CLUSTER, VM_TOOLS
127131
*
128132
* @param self::COMPONENT_TYPE_* $componentType
129133
*/

0 commit comments

Comments
 (0)