Skip to content

Commit 99fa268

Browse files
Regenerate netapp client
1 parent 0fe965f commit 99fa268

File tree

2 files changed

+119
-0
lines changed

2 files changed

+119
-0
lines changed

src/NetAppFiles/CloneDetails.php

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
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 CloneDetails extends \Google\Model
21+
{
22+
/**
23+
* Output only. Shared space in GiB. Determined at volume creation time based
24+
* on size of source snapshot.
25+
*
26+
* @var string
27+
*/
28+
public $sharedSpaceGib;
29+
/**
30+
* Output only. Specifies the full resource name of the source snapshot from
31+
* which this volume was cloned. Format: projects/{project}/locations/{locatio
32+
* n}/volumes/{volume}/snapshots/{snapshot}
33+
*
34+
* @var string
35+
*/
36+
public $sourceSnapshot;
37+
/**
38+
* Output only. Full name of the source volume resource. Format:
39+
* projects/{project}/locations/{location}/volumes/{volume}
40+
*
41+
* @var string
42+
*/
43+
public $sourceVolume;
44+
45+
/**
46+
* Output only. Shared space in GiB. Determined at volume creation time based
47+
* on size of source snapshot.
48+
*
49+
* @param string $sharedSpaceGib
50+
*/
51+
public function setSharedSpaceGib($sharedSpaceGib)
52+
{
53+
$this->sharedSpaceGib = $sharedSpaceGib;
54+
}
55+
/**
56+
* @return string
57+
*/
58+
public function getSharedSpaceGib()
59+
{
60+
return $this->sharedSpaceGib;
61+
}
62+
/**
63+
* Output only. Specifies the full resource name of the source snapshot from
64+
* which this volume was cloned. Format: projects/{project}/locations/{locatio
65+
* n}/volumes/{volume}/snapshots/{snapshot}
66+
*
67+
* @param string $sourceSnapshot
68+
*/
69+
public function setSourceSnapshot($sourceSnapshot)
70+
{
71+
$this->sourceSnapshot = $sourceSnapshot;
72+
}
73+
/**
74+
* @return string
75+
*/
76+
public function getSourceSnapshot()
77+
{
78+
return $this->sourceSnapshot;
79+
}
80+
/**
81+
* Output only. Full name of the source volume resource. Format:
82+
* projects/{project}/locations/{location}/volumes/{volume}
83+
*
84+
* @param string $sourceVolume
85+
*/
86+
public function setSourceVolume($sourceVolume)
87+
{
88+
$this->sourceVolume = $sourceVolume;
89+
}
90+
/**
91+
* @return string
92+
*/
93+
public function getSourceVolume()
94+
{
95+
return $this->sourceVolume;
96+
}
97+
}
98+
99+
// Adding a class alias for backwards compatibility with the previous class name.
100+
class_alias(CloneDetails::class, 'Google_Service_NetAppFiles_CloneDetails');

src/NetAppFiles/Volume.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ class Volume extends \Google\Collection
124124
* @var string
125125
*/
126126
public $capacityGib;
127+
protected $cloneDetailsType = CloneDetails::class;
128+
protected $cloneDetailsDataType = '';
127129
/**
128130
* Output only. Size of the volume cold tier data rounded down to the nearest
129131
* GiB.
@@ -418,6 +420,23 @@ public function getCapacityGib()
418420
{
419421
return $this->capacityGib;
420422
}
423+
/**
424+
* Output only. If this volume is a clone, this field contains details about
425+
* the clone.
426+
*
427+
* @param CloneDetails $cloneDetails
428+
*/
429+
public function setCloneDetails(CloneDetails $cloneDetails)
430+
{
431+
$this->cloneDetails = $cloneDetails;
432+
}
433+
/**
434+
* @return CloneDetails
435+
*/
436+
public function getCloneDetails()
437+
{
438+
return $this->cloneDetails;
439+
}
421440
/**
422441
* Output only. Size of the volume cold tier data rounded down to the nearest
423442
* GiB.

0 commit comments

Comments
 (0)