Debian Codegraph @

docs/dyn/netapp_v1.projects.locations.volumes.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="netapp_v1.html">NetApp API</a> . <a href="netapp_v1.projects.html">projects</a> . <a href="netapp_v1.projects.locations.html">locations</a> . <a href="netapp_v1.projects.locations.volumes.html">volumes</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="netapp_v1.projects.locations.volumes.quotaRules.html">quotaRules()</a></code>
79 </p>
80 <p class="firstline">Returns the quotaRules Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="netapp_v1.projects.locations.volumes.replications.html">replications()</a></code>
84 </p>
85 <p class="firstline">Returns the replications Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="netapp_v1.projects.locations.volumes.snapshots.html">snapshots()</a></code>
89 </p>
90 <p class="firstline">Returns the snapshots Resource.</p>
91
92 <p class="toc_element">
93 <code><a href="#close">close()</a></code></p>
94 <p class="firstline">Close httplib2 connections.</p>
95 <p class="toc_element">
96 <code><a href="#create">create(parent, body=None, volumeId=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Creates a new Volume in a given project and location.</p>
98 <p class="toc_element">
99 <code><a href="#delete">delete(name, force=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Deletes a single Volume.</p>
101 <p class="toc_element">
102 <code><a href="#establishPeering">establishPeering(name, body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Establish volume peering. This is used to establish cluster and svm peerings between the GCNV and OnPrem clusters.</p>
104 <p class="toc_element">
105 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
106 <p class="firstline">Gets details of a single Volume.</p>
107 <p class="toc_element">
108 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Lists Volumes in a given project.</p>
110 <p class="toc_element">
111 <code><a href="#list_next">list_next()</a></code></p>
112 <p class="firstline">Retrieves the next page of results.</p>
113 <p class="toc_element">
114 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
115 <p class="firstline">Updates the parameters of a single Volume.</p>
116 <p class="toc_element">
117 <code><a href="#restore">restore(name, body=None, x__xgafv=None)</a></code></p>
118 <p class="firstline">Restore files from a backup to a volume.</p>
119 <p class="toc_element">
120 <code><a href="#revert">revert(name, body=None, x__xgafv=None)</a></code></p>
121 <p class="firstline">Revert an existing volume to a specified snapshot. Warning! This operation will permanently revert all changes made after the snapshot was created.</p>
122 <h3>Method Details</h3>
123 <div class="method">
124 <code class="details" id="close">close()</code>
125 <pre>Close httplib2 connections.</pre>
126 </div>
127
128 <div class="method">
129 <code class="details" id="create">create(parent, body=None, volumeId=None, x__xgafv=None)</code>
130 <pre>Creates a new Volume in a given project and location.
131
132 Args:
133 parent: string, Required. Value for parent. (required)
134 body: object, The request body.
135 The object takes the form of:
136
137 { # Volume provides a filesystem that you can mount.
138 &quot;activeDirectory&quot;: &quot;A String&quot;, # Output only. Specifies the ActiveDirectory name of a SMB volume.
139 &quot;backupConfig&quot;: { # BackupConfig contains backup related config on a volume. # BackupConfig of the volume.
140 &quot;backupChainBytes&quot;: &quot;A String&quot;, # Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size).
141 &quot;backupPolicies&quot;: [ # Optional. When specified, schedule backups will be created based on the policy configuration.
142 &quot;A String&quot;,
143 ],
144 &quot;backupVault&quot;: &quot;A String&quot;, # Optional. Name of backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}
145 &quot;scheduledBackupEnabled&quot;: True or False, # Optional. When set to true, scheduled backup is enabled on the volume. This field should be nil when there&#x27;s no backup policy attached.
146 },
147 &quot;blockDevices&quot;: [ # Optional. Block devices for the volume. Currently, only one block device is permitted per Volume.
148 { # Block device represents the device(s) which are stored in the block volume.
149 &quot;hostGroups&quot;: [ # 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.
150 &quot;A String&quot;,
151 ],
152 &quot;identifier&quot;: &quot;A String&quot;, # Output only. Device identifier of the block volume. This represents `lun_serial_number` for iSCSI volumes.
153 &quot;name&quot;: &quot;A String&quot;, # 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: &quot;-&quot;, &quot;_&quot;, &quot;}&quot;, &quot;{&quot;, &quot;.&quot;. * Spaces are not allowed.
154 &quot;osType&quot;: &quot;A String&quot;, # Required. Immutable. The OS type of the volume. This field can&#x27;t be changed after the block device is created.
155 &quot;sizeGib&quot;: &quot;A String&quot;, # 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&#x27;s size is system-managed and will be set to match the parent Volume&#x27;s `capacity_gib`.
156 },
157 ],
158 &quot;cacheParameters&quot;: { # Cache Parameters for the volume. # Optional. Cache parameters for the volume.
159 &quot;cacheConfig&quot;: { # Configuration of the cache volume. # Optional. Configuration of the cache volume.
160 &quot;cachePrePopulate&quot;: { # Pre-populate cache volume with data from the origin volume. # Optional. Pre-populate cache volume with data from the origin volume.
161 &quot;excludePathList&quot;: [ # Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.
162 &quot;A String&quot;,
163 ],
164 &quot;pathList&quot;: [ # Optional. List of directory-paths to be pre-populated for the FlexCache volume.
165 &quot;A String&quot;,
166 ],
167 &quot;recursion&quot;: True or False, # Optional. Flag indicating whether the directories listed with the `path_list` need to be recursively pre-populated.
168 },
169 &quot;cachePrePopulateState&quot;: &quot;A String&quot;, # Output only. State of the prepopulation job indicating how the prepopulation is progressing.
170 &quot;cifsChangeNotifyEnabled&quot;: True or False, # Optional. Flag indicating whether a CIFS change notification is enabled for the FlexCache volume.
171 &quot;writebackEnabled&quot;: True or False, # Optional. Flag indicating whether writeback is enabled for the FlexCache volume.
172 },
173 &quot;cacheState&quot;: &quot;A String&quot;, # Output only. State of the cache volume indicating the peering status.
174 &quot;command&quot;: &quot;A String&quot;, # Output only. Copy-paste-able commands to be used on user&#x27;s ONTAP to accept peering requests.
175 &quot;enableGlobalFileLock&quot;: True or False, # Optional. Indicates whether the cache volume has global file lock enabled.
176 &quot;passphrase&quot;: &quot;A String&quot;, # Output only. Temporary passphrase generated to accept cluster peering command.
177 &quot;peerClusterName&quot;: &quot;A String&quot;, # Required. Name of the origin volume&#x27;s ONTAP cluster.
178 &quot;peerIpAddresses&quot;: [ # Required. List of IC LIF addresses of the origin volume&#x27;s ONTAP cluster.
179 &quot;A String&quot;,
180 ],
181 &quot;peerSvmName&quot;: &quot;A String&quot;, # Required. Name of the origin volume&#x27;s SVM.
182 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Required. Name of the origin volume for the cache volume.
183 &quot;peeringCommandExpiryTime&quot;: &quot;A String&quot;, # Optional. Expiration time for the peering command to be executed on user&#x27;s ONTAP.
184 &quot;stateDetails&quot;: &quot;A String&quot;, # Output only. Detailed description of the current cache state.
185 },
186 &quot;capacityGib&quot;: &quot;A String&quot;, # Required. Capacity in GIB of the volume
187 &quot;cloneDetails&quot;: { # Details about a clone volume. # Output only. If this volume is a clone, this field contains details about the clone.
188 &quot;sharedSpaceGib&quot;: &quot;A String&quot;, # Output only. Shared space in GiB. Determined at volume creation time based on size of source snapshot.
189 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # Output only. Specifies the full resource name of the source snapshot from which this volume was cloned. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
190 &quot;sourceVolume&quot;: &quot;A String&quot;, # Output only. Full name of the source volume resource. Format: projects/{project}/locations/{location}/volumes/{volume}
191 },
192 &quot;coldTierSizeGib&quot;: &quot;A String&quot;, # Output only. Size of the volume cold tier data rounded down to the nearest GiB.
193 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time of the volume
194 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the volume
195 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Specified the current volume encryption key source.
196 &quot;exportPolicy&quot;: { # Defines the export policy for the volume. # Optional. Export policy of the volume
197 &quot;rules&quot;: [ # Required. List of export policy rules
198 { # An export policy rule describing various export options.
199 &quot;accessType&quot;: &quot;A String&quot;, # Access type (ReadWrite, ReadOnly, None)
200 &quot;allowedClients&quot;: &quot;A String&quot;, # Comma separated list of allowed clients IP addresses
201 &quot;anonUid&quot;: &quot;A String&quot;, # Optional. An integer representing the anonymous user ID. Range is 0 to `4294967295`. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
202 &quot;hasRootAccess&quot;: &quot;A String&quot;, # Whether Unix root access will be granted.
203 &quot;kerberos5ReadOnly&quot;: True or False, # If enabled (true) the rule defines a read only access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;authentication&#x27; kerberos security mode.
204 &quot;kerberos5ReadWrite&quot;: True or False, # If enabled (true) the rule defines read and write access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;authentication&#x27; kerberos security mode. The &#x27;kerberos5ReadOnly&#x27; value be ignored if this is enabled.
205 &quot;kerberos5iReadOnly&quot;: True or False, # If enabled (true) the rule defines a read only access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;integrity&#x27; kerberos security mode.
206 &quot;kerberos5iReadWrite&quot;: True or False, # If enabled (true) the rule defines read and write access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;integrity&#x27; kerberos security mode. The &#x27;kerberos5iReadOnly&#x27; value be ignored if this is enabled.
207 &quot;kerberos5pReadOnly&quot;: True or False, # If enabled (true) the rule defines a read only access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;privacy&#x27; kerberos security mode.
208 &quot;kerberos5pReadWrite&quot;: True or False, # If enabled (true) the rule defines read and write access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;privacy&#x27; kerberos security mode. The &#x27;kerberos5pReadOnly&#x27; value be ignored if this is enabled.
209 &quot;nfsv3&quot;: True or False, # NFS V3 protocol.
210 &quot;nfsv4&quot;: True or False, # NFS V4 protocol.
211 &quot;squashMode&quot;: &quot;A String&quot;, # 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.
212 },
213 ],
214 },
215 &quot;hasReplication&quot;: True or False, # Output only. Indicates whether the volume is part of a replication relationship.
216 &quot;hotTierSizeUsedGib&quot;: &quot;A String&quot;, # Output only. Total hot tier data rounded down to the nearest GiB used by the Volume. This field is only used for flex Service Level
217 &quot;hybridReplicationParameters&quot;: { # The Hybrid Replication parameters for the volume. # Optional. The Hybrid Replication parameters for the volume.
218 &quot;clusterLocation&quot;: &quot;A String&quot;, # Optional. Name of source cluster location associated with the Hybrid replication. This is a free-form field for the display purpose only.
219 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the replication.
220 &quot;hybridReplicationType&quot;: &quot;A String&quot;, # Optional. Type of the hybrid replication.
221 &quot;labels&quot;: { # Optional. Labels to be added to the replication as the key value pairs.
222 &quot;a_key&quot;: &quot;A String&quot;,
223 },
224 &quot;largeVolumeConstituentCount&quot;: 42, # Optional. Constituent volume count for large volume.
225 &quot;peerClusterName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source cluster to be peered with the destination cluster.
226 &quot;peerIpAddresses&quot;: [ # Required. List of node ip addresses to be peered with.
227 &quot;A String&quot;,
228 ],
229 &quot;peerSvmName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source vserver svm to be peered with the destination vserver svm.
230 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source volume to be peered with the destination volume.
231 &quot;replication&quot;: &quot;A String&quot;, # Required. Desired name for the replication of this volume.
232 &quot;replicationSchedule&quot;: &quot;A String&quot;, # Optional. Replication Schedule for the replication created.
233 },
234 &quot;kerberosEnabled&quot;: True or False, # Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p).
235 &quot;kmsConfig&quot;: &quot;A String&quot;, # Output only. Specifies the KMS config to be used for volume encryption.
236 &quot;labels&quot;: { # Optional. Labels as key value pairs
237 &quot;a_key&quot;: &quot;A String&quot;,
238 },
239 &quot;largeCapacity&quot;: True or False, # Optional. Flag indicating if the volume will be a large capacity volume or a regular volume. This field is used for legacy FILE pools. For Unified pools, use the `large_capacity_config` field instead. This field and `large_capacity_config` are mutually exclusive.
240 &quot;largeCapacityConfig&quot;: { # Configuration for a Large Capacity Volume. A Large Capacity Volume supports sizes ranging from 4.8 TiB to 20 PiB; it is composed of multiple internal constituents, and must be created in a large capacity pool. # Optional. Large capacity config for the volume. Enables and configures large capacity for volumes in Unified pools with File protocols. Not applicable for Block protocols in Unified pools. This field and the legacy `large_capacity` boolean field are mutually exclusive.
241 &quot;constituentCount&quot;: 42, # Optional. The number of internal constituents (e.g., FlexVols) for this large volume. The minimum number of constituents is 2.
242 },
243 &quot;ldapEnabled&quot;: True or False, # Output only. Flag indicating if the volume is NFS LDAP enabled or not.
244 &quot;mountOptions&quot;: [ # Output only. Mount options of this volume
245 { # View only mount options for a volume.
246 &quot;export&quot;: &quot;A String&quot;, # Export string
247 &quot;exportFull&quot;: &quot;A String&quot;, # Full export string
248 &quot;instructions&quot;: &quot;A String&quot;, # Instructions for mounting
249 &quot;ipAddress&quot;: &quot;A String&quot;, # Output only. IP Address.
250 &quot;protocol&quot;: &quot;A String&quot;, # Protocol to mount with.
251 },
252 ],
253 &quot;multipleEndpoints&quot;: True or False, # Optional. Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints. Only the volume with large_capacity will be allowed to have multiple endpoints.
254 &quot;name&quot;: &quot;A String&quot;, # Identifier. Name of the volume
255 &quot;network&quot;: &quot;A String&quot;, # Output only. VPC Network name. Format: projects/{project}/global/networks/{network}
256 &quot;protocols&quot;: [ # Required. Protocols required for the volume
257 &quot;A String&quot;,
258 ],
259 &quot;psaRange&quot;: &quot;A String&quot;, # Output only. This field is not implemented. The values provided in this field are ignored.
260 &quot;replicaZone&quot;: &quot;A String&quot;, # Output only. Specifies the replica zone for regional volume.
261 &quot;restoreParameters&quot;: { # The RestoreParameters if volume is created from a snapshot or backup. # Optional. Specifies the source of the volume to be created from.
262 &quot;sourceBackup&quot;: &quot;A String&quot;, # Full name of the backup resource. Format for standard backup: projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}. Format for BackupDR backup: projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
263 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
264 },
265 &quot;restrictedActions&quot;: [ # Optional. List of actions that are restricted on this volume.
266 &quot;A String&quot;,
267 ],
268 &quot;securityStyle&quot;: &quot;A String&quot;, # Optional. Security Style of the Volume
269 &quot;serviceLevel&quot;: &quot;A String&quot;, # Output only. Service level of the volume
270 &quot;shareName&quot;: &quot;A String&quot;, # Required. Share name of the volume
271 &quot;smbSettings&quot;: [ # Optional. SMB share settings for the volume.
272 &quot;A String&quot;,
273 ],
274 &quot;snapReserve&quot;: 3.14, # Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent.
275 &quot;snapshotDirectory&quot;: True or False, # Optional. Snapshot_directory if enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume&#x27;s snapshots.
276 &quot;snapshotPolicy&quot;: { # Snapshot Policy for a volume. # Optional. SnapshotPolicy for a volume.
277 &quot;dailySchedule&quot;: { # Make a snapshot every day e.g. at 04:00, 05:20, 23:50 # Daily schedule policy.
278 &quot;hour&quot;: 3.14, # Set the hour to start the snapshot (0-23), defaults to midnight (0).
279 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
280 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
281 },
282 &quot;enabled&quot;: True or False, # If enabled, make snapshots automatically according to the schedules. Default is false.
283 &quot;hourlySchedule&quot;: { # Make a snapshot every hour e.g. at 04:00, 05:00, 06:00. # Hourly schedule policy.
284 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
285 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
286 },
287 &quot;monthlySchedule&quot;: { # Make a snapshot once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50 # Monthly schedule policy.
288 &quot;daysOfMonth&quot;: &quot;A String&quot;, # Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to &#x27;1&#x27;.
289 &quot;hour&quot;: 3.14, # Set the hour to start the snapshot (0-23), defaults to midnight (0).
290 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
291 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
292 },
293 &quot;weeklySchedule&quot;: { # Make a snapshot every week e.g. at Monday 04:00, Wednesday 05:20, Sunday 23:50 # Weekly schedule policy.
294 &quot;day&quot;: &quot;A String&quot;, # Set the day or days of the week to make a snapshot. Accepts a comma separated days of the week. Defaults to &#x27;Sunday&#x27;.
295 &quot;hour&quot;: 3.14, # Set the hour to start the snapshot (0-23), defaults to midnight (0).
296 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
297 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
298 },
299 },
300 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the volume
301 &quot;stateDetails&quot;: &quot;A String&quot;, # Output only. State details of the volume
302 &quot;storagePool&quot;: &quot;A String&quot;, # Required. StoragePool name of the volume
303 &quot;throughputMibps&quot;: 3.14, # Optional. Throughput of the volume (in MiB/s)
304 &quot;tieringPolicy&quot;: { # Defines tiering policy for the volume. # Tiering policy for the volume.
305 &quot;coolingThresholdDays&quot;: 42, # Optional. Time in days to mark the volume&#x27;s data block as cold and make it eligible for tiering, can be range from 2-183. Default is 31.
306 &quot;hotTierBypassModeEnabled&quot;: True or False, # Optional. Flag indicating that the hot tier bypass mode is enabled. Default is false. This is only applicable to Flex service level.
307 &quot;tierAction&quot;: &quot;A String&quot;, # Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
308 },
309 &quot;unixPermissions&quot;: &quot;A String&quot;, # Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only.
310 &quot;usedGib&quot;: &quot;A String&quot;, # Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage.
311 &quot;zone&quot;: &quot;A String&quot;, # Output only. Specifies the active zone for regional volume.
312 }
313
314 volumeId: string, 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.
315 x__xgafv: string, V1 error format.
316 Allowed values
317 1 - v1 error format
318 2 - v2 error format
319
320 Returns:
321 An object of the form:
322
323 { # This resource represents a long-running operation that is the result of a network API call.
324 &quot;done&quot;: True or False, # 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.
325 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
326 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
327 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
328 {
329 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
330 },
331 ],
332 &quot;message&quot;: &quot;A String&quot;, # 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.
333 },
334 &quot;metadata&quot;: { # 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.
335 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
336 },
337 &quot;name&quot;: &quot;A String&quot;, # 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}`.
338 &quot;response&quot;: { # 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`.
339 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
340 },
341 }</pre>
342 </div>
343
344 <div class="method">
345 <code class="details" id="delete">delete(name, force=None, x__xgafv=None)</code>
346 <pre>Deletes a single Volume.
347
348 Args:
349 name: string, Required. Name of the volume (required)
350 force: boolean, 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.)
351 x__xgafv: string, V1 error format.
352 Allowed values
353 1 - v1 error format
354 2 - v2 error format
355
356 Returns:
357 An object of the form:
358
359 { # This resource represents a long-running operation that is the result of a network API call.
360 &quot;done&quot;: True or False, # 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.
361 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
362 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
363 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
364 {
365 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
366 },
367 ],
368 &quot;message&quot;: &quot;A String&quot;, # 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.
369 },
370 &quot;metadata&quot;: { # 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.
371 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
372 },
373 &quot;name&quot;: &quot;A String&quot;, # 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}`.
374 &quot;response&quot;: { # 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`.
375 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
376 },
377 }</pre>
378 </div>
379
380 <div class="method">
381 <code class="details" id="establishPeering">establishPeering(name, body=None, x__xgafv=None)</code>
382 <pre>Establish volume peering. This is used to establish cluster and svm peerings between the GCNV and OnPrem clusters.
383
384 Args:
385 name: string, Required. The volume resource name, in the format `projects/{project_id}/locations/{location}/volumes/{volume_id}` (required)
386 body: object, The request body.
387 The object takes the form of:
388
389 { # EstablishVolumePeeringRequest establishes cluster and svm peerings between the source and destination clusters.
390 &quot;peerClusterName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source cluster to be peered with the destination cluster.
391 &quot;peerIpAddresses&quot;: [ # Optional. List of IPv4 IP addresses to be used for peering.
392 &quot;A String&quot;,
393 ],
394 &quot;peerSvmName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source vserver svm to be peered with the destination vserver svm.
395 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source volume to be peered with the destination volume.
396 }
397
398 x__xgafv: string, V1 error format.
399 Allowed values
400 1 - v1 error format
401 2 - v2 error format
402
403 Returns:
404 An object of the form:
405
406 { # This resource represents a long-running operation that is the result of a network API call.
407 &quot;done&quot;: True or False, # 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.
408 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
409 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
410 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
411 {
412 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
413 },
414 ],
415 &quot;message&quot;: &quot;A String&quot;, # 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.
416 },
417 &quot;metadata&quot;: { # 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.
418 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
419 },
420 &quot;name&quot;: &quot;A String&quot;, # 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}`.
421 &quot;response&quot;: { # 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`.
422 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
423 },
424 }</pre>
425 </div>
426
427 <div class="method">
428 <code class="details" id="get">get(name, x__xgafv=None)</code>
429 <pre>Gets details of a single Volume.
430
431 Args:
432 name: string, Required. Name of the volume (required)
433 x__xgafv: string, V1 error format.
434 Allowed values
435 1 - v1 error format
436 2 - v2 error format
437
438 Returns:
439 An object of the form:
440
441 { # Volume provides a filesystem that you can mount.
442 &quot;activeDirectory&quot;: &quot;A String&quot;, # Output only. Specifies the ActiveDirectory name of a SMB volume.
443 &quot;backupConfig&quot;: { # BackupConfig contains backup related config on a volume. # BackupConfig of the volume.
444 &quot;backupChainBytes&quot;: &quot;A String&quot;, # Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size).
445 &quot;backupPolicies&quot;: [ # Optional. When specified, schedule backups will be created based on the policy configuration.
446 &quot;A String&quot;,
447 ],
448 &quot;backupVault&quot;: &quot;A String&quot;, # Optional. Name of backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}
449 &quot;scheduledBackupEnabled&quot;: True or False, # Optional. When set to true, scheduled backup is enabled on the volume. This field should be nil when there&#x27;s no backup policy attached.
450 },
451 &quot;blockDevices&quot;: [ # Optional. Block devices for the volume. Currently, only one block device is permitted per Volume.
452 { # Block device represents the device(s) which are stored in the block volume.
453 &quot;hostGroups&quot;: [ # 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.
454 &quot;A String&quot;,
455 ],
456 &quot;identifier&quot;: &quot;A String&quot;, # Output only. Device identifier of the block volume. This represents `lun_serial_number` for iSCSI volumes.
457 &quot;name&quot;: &quot;A String&quot;, # 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: &quot;-&quot;, &quot;_&quot;, &quot;}&quot;, &quot;{&quot;, &quot;.&quot;. * Spaces are not allowed.
458 &quot;osType&quot;: &quot;A String&quot;, # Required. Immutable. The OS type of the volume. This field can&#x27;t be changed after the block device is created.
459 &quot;sizeGib&quot;: &quot;A String&quot;, # 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&#x27;s size is system-managed and will be set to match the parent Volume&#x27;s `capacity_gib`.
460 },
461 ],
462 &quot;cacheParameters&quot;: { # Cache Parameters for the volume. # Optional. Cache parameters for the volume.
463 &quot;cacheConfig&quot;: { # Configuration of the cache volume. # Optional. Configuration of the cache volume.
464 &quot;cachePrePopulate&quot;: { # Pre-populate cache volume with data from the origin volume. # Optional. Pre-populate cache volume with data from the origin volume.
465 &quot;excludePathList&quot;: [ # Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.
466 &quot;A String&quot;,
467 ],
468 &quot;pathList&quot;: [ # Optional. List of directory-paths to be pre-populated for the FlexCache volume.
469 &quot;A String&quot;,
470 ],
471 &quot;recursion&quot;: True or False, # Optional. Flag indicating whether the directories listed with the `path_list` need to be recursively pre-populated.
472 },
473 &quot;cachePrePopulateState&quot;: &quot;A String&quot;, # Output only. State of the prepopulation job indicating how the prepopulation is progressing.
474 &quot;cifsChangeNotifyEnabled&quot;: True or False, # Optional. Flag indicating whether a CIFS change notification is enabled for the FlexCache volume.
475 &quot;writebackEnabled&quot;: True or False, # Optional. Flag indicating whether writeback is enabled for the FlexCache volume.
476 },
477 &quot;cacheState&quot;: &quot;A String&quot;, # Output only. State of the cache volume indicating the peering status.
478 &quot;command&quot;: &quot;A String&quot;, # Output only. Copy-paste-able commands to be used on user&#x27;s ONTAP to accept peering requests.
479 &quot;enableGlobalFileLock&quot;: True or False, # Optional. Indicates whether the cache volume has global file lock enabled.
480 &quot;passphrase&quot;: &quot;A String&quot;, # Output only. Temporary passphrase generated to accept cluster peering command.
481 &quot;peerClusterName&quot;: &quot;A String&quot;, # Required. Name of the origin volume&#x27;s ONTAP cluster.
482 &quot;peerIpAddresses&quot;: [ # Required. List of IC LIF addresses of the origin volume&#x27;s ONTAP cluster.
483 &quot;A String&quot;,
484 ],
485 &quot;peerSvmName&quot;: &quot;A String&quot;, # Required. Name of the origin volume&#x27;s SVM.
486 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Required. Name of the origin volume for the cache volume.
487 &quot;peeringCommandExpiryTime&quot;: &quot;A String&quot;, # Optional. Expiration time for the peering command to be executed on user&#x27;s ONTAP.
488 &quot;stateDetails&quot;: &quot;A String&quot;, # Output only. Detailed description of the current cache state.
489 },
490 &quot;capacityGib&quot;: &quot;A String&quot;, # Required. Capacity in GIB of the volume
491 &quot;cloneDetails&quot;: { # Details about a clone volume. # Output only. If this volume is a clone, this field contains details about the clone.
492 &quot;sharedSpaceGib&quot;: &quot;A String&quot;, # Output only. Shared space in GiB. Determined at volume creation time based on size of source snapshot.
493 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # Output only. Specifies the full resource name of the source snapshot from which this volume was cloned. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
494 &quot;sourceVolume&quot;: &quot;A String&quot;, # Output only. Full name of the source volume resource. Format: projects/{project}/locations/{location}/volumes/{volume}
495 },
496 &quot;coldTierSizeGib&quot;: &quot;A String&quot;, # Output only. Size of the volume cold tier data rounded down to the nearest GiB.
497 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time of the volume
498 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the volume
499 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Specified the current volume encryption key source.
500 &quot;exportPolicy&quot;: { # Defines the export policy for the volume. # Optional. Export policy of the volume
501 &quot;rules&quot;: [ # Required. List of export policy rules
502 { # An export policy rule describing various export options.
503 &quot;accessType&quot;: &quot;A String&quot;, # Access type (ReadWrite, ReadOnly, None)
504 &quot;allowedClients&quot;: &quot;A String&quot;, # Comma separated list of allowed clients IP addresses
505 &quot;anonUid&quot;: &quot;A String&quot;, # Optional. An integer representing the anonymous user ID. Range is 0 to `4294967295`. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
506 &quot;hasRootAccess&quot;: &quot;A String&quot;, # Whether Unix root access will be granted.
507 &quot;kerberos5ReadOnly&quot;: True or False, # If enabled (true) the rule defines a read only access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;authentication&#x27; kerberos security mode.
508 &quot;kerberos5ReadWrite&quot;: True or False, # If enabled (true) the rule defines read and write access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;authentication&#x27; kerberos security mode. The &#x27;kerberos5ReadOnly&#x27; value be ignored if this is enabled.
509 &quot;kerberos5iReadOnly&quot;: True or False, # If enabled (true) the rule defines a read only access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;integrity&#x27; kerberos security mode.
510 &quot;kerberos5iReadWrite&quot;: True or False, # If enabled (true) the rule defines read and write access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;integrity&#x27; kerberos security mode. The &#x27;kerberos5iReadOnly&#x27; value be ignored if this is enabled.
511 &quot;kerberos5pReadOnly&quot;: True or False, # If enabled (true) the rule defines a read only access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;privacy&#x27; kerberos security mode.
512 &quot;kerberos5pReadWrite&quot;: True or False, # If enabled (true) the rule defines read and write access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;privacy&#x27; kerberos security mode. The &#x27;kerberos5pReadOnly&#x27; value be ignored if this is enabled.
513 &quot;nfsv3&quot;: True or False, # NFS V3 protocol.
514 &quot;nfsv4&quot;: True or False, # NFS V4 protocol.
515 &quot;squashMode&quot;: &quot;A String&quot;, # 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.
516 },
517 ],
518 },
519 &quot;hasReplication&quot;: True or False, # Output only. Indicates whether the volume is part of a replication relationship.
520 &quot;hotTierSizeUsedGib&quot;: &quot;A String&quot;, # Output only. Total hot tier data rounded down to the nearest GiB used by the Volume. This field is only used for flex Service Level
521 &quot;hybridReplicationParameters&quot;: { # The Hybrid Replication parameters for the volume. # Optional. The Hybrid Replication parameters for the volume.
522 &quot;clusterLocation&quot;: &quot;A String&quot;, # Optional. Name of source cluster location associated with the Hybrid replication. This is a free-form field for the display purpose only.
523 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the replication.
524 &quot;hybridReplicationType&quot;: &quot;A String&quot;, # Optional. Type of the hybrid replication.
525 &quot;labels&quot;: { # Optional. Labels to be added to the replication as the key value pairs.
526 &quot;a_key&quot;: &quot;A String&quot;,
527 },
528 &quot;largeVolumeConstituentCount&quot;: 42, # Optional. Constituent volume count for large volume.
529 &quot;peerClusterName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source cluster to be peered with the destination cluster.
530 &quot;peerIpAddresses&quot;: [ # Required. List of node ip addresses to be peered with.
531 &quot;A String&quot;,
532 ],
533 &quot;peerSvmName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source vserver svm to be peered with the destination vserver svm.
534 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source volume to be peered with the destination volume.
535 &quot;replication&quot;: &quot;A String&quot;, # Required. Desired name for the replication of this volume.
536 &quot;replicationSchedule&quot;: &quot;A String&quot;, # Optional. Replication Schedule for the replication created.
537 },
538 &quot;kerberosEnabled&quot;: True or False, # Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p).
539 &quot;kmsConfig&quot;: &quot;A String&quot;, # Output only. Specifies the KMS config to be used for volume encryption.
540 &quot;labels&quot;: { # Optional. Labels as key value pairs
541 &quot;a_key&quot;: &quot;A String&quot;,
542 },
543 &quot;largeCapacity&quot;: True or False, # Optional. Flag indicating if the volume will be a large capacity volume or a regular volume. This field is used for legacy FILE pools. For Unified pools, use the `large_capacity_config` field instead. This field and `large_capacity_config` are mutually exclusive.
544 &quot;largeCapacityConfig&quot;: { # Configuration for a Large Capacity Volume. A Large Capacity Volume supports sizes ranging from 4.8 TiB to 20 PiB; it is composed of multiple internal constituents, and must be created in a large capacity pool. # Optional. Large capacity config for the volume. Enables and configures large capacity for volumes in Unified pools with File protocols. Not applicable for Block protocols in Unified pools. This field and the legacy `large_capacity` boolean field are mutually exclusive.
545 &quot;constituentCount&quot;: 42, # Optional. The number of internal constituents (e.g., FlexVols) for this large volume. The minimum number of constituents is 2.
546 },
547 &quot;ldapEnabled&quot;: True or False, # Output only. Flag indicating if the volume is NFS LDAP enabled or not.
548 &quot;mountOptions&quot;: [ # Output only. Mount options of this volume
549 { # View only mount options for a volume.
550 &quot;export&quot;: &quot;A String&quot;, # Export string
551 &quot;exportFull&quot;: &quot;A String&quot;, # Full export string
552 &quot;instructions&quot;: &quot;A String&quot;, # Instructions for mounting
553 &quot;ipAddress&quot;: &quot;A String&quot;, # Output only. IP Address.
554 &quot;protocol&quot;: &quot;A String&quot;, # Protocol to mount with.
555 },
556 ],
557 &quot;multipleEndpoints&quot;: True or False, # Optional. Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints. Only the volume with large_capacity will be allowed to have multiple endpoints.
558 &quot;name&quot;: &quot;A String&quot;, # Identifier. Name of the volume
559 &quot;network&quot;: &quot;A String&quot;, # Output only. VPC Network name. Format: projects/{project}/global/networks/{network}
560 &quot;protocols&quot;: [ # Required. Protocols required for the volume
561 &quot;A String&quot;,
562 ],
563 &quot;psaRange&quot;: &quot;A String&quot;, # Output only. This field is not implemented. The values provided in this field are ignored.
564 &quot;replicaZone&quot;: &quot;A String&quot;, # Output only. Specifies the replica zone for regional volume.
565 &quot;restoreParameters&quot;: { # The RestoreParameters if volume is created from a snapshot or backup. # Optional. Specifies the source of the volume to be created from.
566 &quot;sourceBackup&quot;: &quot;A String&quot;, # Full name of the backup resource. Format for standard backup: projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}. Format for BackupDR backup: projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
567 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
568 },
569 &quot;restrictedActions&quot;: [ # Optional. List of actions that are restricted on this volume.
570 &quot;A String&quot;,
571 ],
572 &quot;securityStyle&quot;: &quot;A String&quot;, # Optional. Security Style of the Volume
573 &quot;serviceLevel&quot;: &quot;A String&quot;, # Output only. Service level of the volume
574 &quot;shareName&quot;: &quot;A String&quot;, # Required. Share name of the volume
575 &quot;smbSettings&quot;: [ # Optional. SMB share settings for the volume.
576 &quot;A String&quot;,
577 ],
578 &quot;snapReserve&quot;: 3.14, # Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent.
579 &quot;snapshotDirectory&quot;: True or False, # Optional. Snapshot_directory if enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume&#x27;s snapshots.
580 &quot;snapshotPolicy&quot;: { # Snapshot Policy for a volume. # Optional. SnapshotPolicy for a volume.
581 &quot;dailySchedule&quot;: { # Make a snapshot every day e.g. at 04:00, 05:20, 23:50 # Daily schedule policy.
582 &quot;hour&quot;: 3.14, # Set the hour to start the snapshot (0-23), defaults to midnight (0).
583 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
584 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
585 },
586 &quot;enabled&quot;: True or False, # If enabled, make snapshots automatically according to the schedules. Default is false.
587 &quot;hourlySchedule&quot;: { # Make a snapshot every hour e.g. at 04:00, 05:00, 06:00. # Hourly schedule policy.
588 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
589 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
590 },
591 &quot;monthlySchedule&quot;: { # Make a snapshot once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50 # Monthly schedule policy.
592 &quot;daysOfMonth&quot;: &quot;A String&quot;, # Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to &#x27;1&#x27;.
593 &quot;hour&quot;: 3.14, # Set the hour to start the snapshot (0-23), defaults to midnight (0).
594 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
595 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
596 },
597 &quot;weeklySchedule&quot;: { # Make a snapshot every week e.g. at Monday 04:00, Wednesday 05:20, Sunday 23:50 # Weekly schedule policy.
598 &quot;day&quot;: &quot;A String&quot;, # Set the day or days of the week to make a snapshot. Accepts a comma separated days of the week. Defaults to &#x27;Sunday&#x27;.
599 &quot;hour&quot;: 3.14, # Set the hour to start the snapshot (0-23), defaults to midnight (0).
600 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
601 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
602 },
603 },
604 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the volume
605 &quot;stateDetails&quot;: &quot;A String&quot;, # Output only. State details of the volume
606 &quot;storagePool&quot;: &quot;A String&quot;, # Required. StoragePool name of the volume
607 &quot;throughputMibps&quot;: 3.14, # Optional. Throughput of the volume (in MiB/s)
608 &quot;tieringPolicy&quot;: { # Defines tiering policy for the volume. # Tiering policy for the volume.
609 &quot;coolingThresholdDays&quot;: 42, # Optional. Time in days to mark the volume&#x27;s data block as cold and make it eligible for tiering, can be range from 2-183. Default is 31.
610 &quot;hotTierBypassModeEnabled&quot;: True or False, # Optional. Flag indicating that the hot tier bypass mode is enabled. Default is false. This is only applicable to Flex service level.
611 &quot;tierAction&quot;: &quot;A String&quot;, # Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
612 },
613 &quot;unixPermissions&quot;: &quot;A String&quot;, # Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only.
614 &quot;usedGib&quot;: &quot;A String&quot;, # Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage.
615 &quot;zone&quot;: &quot;A String&quot;, # Output only. Specifies the active zone for regional volume.
616 }</pre>
617 </div>
618
619 <div class="method">
620 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
621 <pre>Lists Volumes in a given project.
622
623 Args:
624 parent: string, Required. Parent value for ListVolumesRequest (required)
625 filter: string, Filtering results
626 orderBy: string, Hint for how to order the results
627 pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
628 pageToken: string, A token identifying a page of results the server should return.
629 x__xgafv: string, V1 error format.
630 Allowed values
631 1 - v1 error format
632 2 - v2 error format
633
634 Returns:
635 An object of the form:
636
637 { # Message for response to listing Volumes
638 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
639 &quot;unreachable&quot;: [ # Locations that could not be reached.
640 &quot;A String&quot;,
641 ],
642 &quot;volumes&quot;: [ # The list of Volume
643 { # Volume provides a filesystem that you can mount.
644 &quot;activeDirectory&quot;: &quot;A String&quot;, # Output only. Specifies the ActiveDirectory name of a SMB volume.
645 &quot;backupConfig&quot;: { # BackupConfig contains backup related config on a volume. # BackupConfig of the volume.
646 &quot;backupChainBytes&quot;: &quot;A String&quot;, # Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size).
647 &quot;backupPolicies&quot;: [ # Optional. When specified, schedule backups will be created based on the policy configuration.
648 &quot;A String&quot;,
649 ],
650 &quot;backupVault&quot;: &quot;A String&quot;, # Optional. Name of backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}
651 &quot;scheduledBackupEnabled&quot;: True or False, # Optional. When set to true, scheduled backup is enabled on the volume. This field should be nil when there&#x27;s no backup policy attached.
652 },
653 &quot;blockDevices&quot;: [ # Optional. Block devices for the volume. Currently, only one block device is permitted per Volume.
654 { # Block device represents the device(s) which are stored in the block volume.
655 &quot;hostGroups&quot;: [ # 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.
656 &quot;A String&quot;,
657 ],
658 &quot;identifier&quot;: &quot;A String&quot;, # Output only. Device identifier of the block volume. This represents `lun_serial_number` for iSCSI volumes.
659 &quot;name&quot;: &quot;A String&quot;, # 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: &quot;-&quot;, &quot;_&quot;, &quot;}&quot;, &quot;{&quot;, &quot;.&quot;. * Spaces are not allowed.
660 &quot;osType&quot;: &quot;A String&quot;, # Required. Immutable. The OS type of the volume. This field can&#x27;t be changed after the block device is created.
661 &quot;sizeGib&quot;: &quot;A String&quot;, # 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&#x27;s size is system-managed and will be set to match the parent Volume&#x27;s `capacity_gib`.
662 },
663 ],
664 &quot;cacheParameters&quot;: { # Cache Parameters for the volume. # Optional. Cache parameters for the volume.
665 &quot;cacheConfig&quot;: { # Configuration of the cache volume. # Optional. Configuration of the cache volume.
666 &quot;cachePrePopulate&quot;: { # Pre-populate cache volume with data from the origin volume. # Optional. Pre-populate cache volume with data from the origin volume.
667 &quot;excludePathList&quot;: [ # Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.
668 &quot;A String&quot;,
669 ],
670 &quot;pathList&quot;: [ # Optional. List of directory-paths to be pre-populated for the FlexCache volume.
671 &quot;A String&quot;,
672 ],
673 &quot;recursion&quot;: True or False, # Optional. Flag indicating whether the directories listed with the `path_list` need to be recursively pre-populated.
674 },
675 &quot;cachePrePopulateState&quot;: &quot;A String&quot;, # Output only. State of the prepopulation job indicating how the prepopulation is progressing.
676 &quot;cifsChangeNotifyEnabled&quot;: True or False, # Optional. Flag indicating whether a CIFS change notification is enabled for the FlexCache volume.
677 &quot;writebackEnabled&quot;: True or False, # Optional. Flag indicating whether writeback is enabled for the FlexCache volume.
678 },
679 &quot;cacheState&quot;: &quot;A String&quot;, # Output only. State of the cache volume indicating the peering status.
680 &quot;command&quot;: &quot;A String&quot;, # Output only. Copy-paste-able commands to be used on user&#x27;s ONTAP to accept peering requests.
681 &quot;enableGlobalFileLock&quot;: True or False, # Optional. Indicates whether the cache volume has global file lock enabled.
682 &quot;passphrase&quot;: &quot;A String&quot;, # Output only. Temporary passphrase generated to accept cluster peering command.
683 &quot;peerClusterName&quot;: &quot;A String&quot;, # Required. Name of the origin volume&#x27;s ONTAP cluster.
684 &quot;peerIpAddresses&quot;: [ # Required. List of IC LIF addresses of the origin volume&#x27;s ONTAP cluster.
685 &quot;A String&quot;,
686 ],
687 &quot;peerSvmName&quot;: &quot;A String&quot;, # Required. Name of the origin volume&#x27;s SVM.
688 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Required. Name of the origin volume for the cache volume.
689 &quot;peeringCommandExpiryTime&quot;: &quot;A String&quot;, # Optional. Expiration time for the peering command to be executed on user&#x27;s ONTAP.
690 &quot;stateDetails&quot;: &quot;A String&quot;, # Output only. Detailed description of the current cache state.
691 },
692 &quot;capacityGib&quot;: &quot;A String&quot;, # Required. Capacity in GIB of the volume
693 &quot;cloneDetails&quot;: { # Details about a clone volume. # Output only. If this volume is a clone, this field contains details about the clone.
694 &quot;sharedSpaceGib&quot;: &quot;A String&quot;, # Output only. Shared space in GiB. Determined at volume creation time based on size of source snapshot.
695 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # Output only. Specifies the full resource name of the source snapshot from which this volume was cloned. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
696 &quot;sourceVolume&quot;: &quot;A String&quot;, # Output only. Full name of the source volume resource. Format: projects/{project}/locations/{location}/volumes/{volume}
697 },
698 &quot;coldTierSizeGib&quot;: &quot;A String&quot;, # Output only. Size of the volume cold tier data rounded down to the nearest GiB.
699 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time of the volume
700 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the volume
701 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Specified the current volume encryption key source.
702 &quot;exportPolicy&quot;: { # Defines the export policy for the volume. # Optional. Export policy of the volume
703 &quot;rules&quot;: [ # Required. List of export policy rules
704 { # An export policy rule describing various export options.
705 &quot;accessType&quot;: &quot;A String&quot;, # Access type (ReadWrite, ReadOnly, None)
706 &quot;allowedClients&quot;: &quot;A String&quot;, # Comma separated list of allowed clients IP addresses
707 &quot;anonUid&quot;: &quot;A String&quot;, # Optional. An integer representing the anonymous user ID. Range is 0 to `4294967295`. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
708 &quot;hasRootAccess&quot;: &quot;A String&quot;, # Whether Unix root access will be granted.
709 &quot;kerberos5ReadOnly&quot;: True or False, # If enabled (true) the rule defines a read only access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;authentication&#x27; kerberos security mode.
710 &quot;kerberos5ReadWrite&quot;: True or False, # If enabled (true) the rule defines read and write access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;authentication&#x27; kerberos security mode. The &#x27;kerberos5ReadOnly&#x27; value be ignored if this is enabled.
711 &quot;kerberos5iReadOnly&quot;: True or False, # If enabled (true) the rule defines a read only access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;integrity&#x27; kerberos security mode.
712 &quot;kerberos5iReadWrite&quot;: True or False, # If enabled (true) the rule defines read and write access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;integrity&#x27; kerberos security mode. The &#x27;kerberos5iReadOnly&#x27; value be ignored if this is enabled.
713 &quot;kerberos5pReadOnly&quot;: True or False, # If enabled (true) the rule defines a read only access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;privacy&#x27; kerberos security mode.
714 &quot;kerberos5pReadWrite&quot;: True or False, # If enabled (true) the rule defines read and write access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;privacy&#x27; kerberos security mode. The &#x27;kerberos5pReadOnly&#x27; value be ignored if this is enabled.
715 &quot;nfsv3&quot;: True or False, # NFS V3 protocol.
716 &quot;nfsv4&quot;: True or False, # NFS V4 protocol.
717 &quot;squashMode&quot;: &quot;A String&quot;, # 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.
718 },
719 ],
720 },
721 &quot;hasReplication&quot;: True or False, # Output only. Indicates whether the volume is part of a replication relationship.
722 &quot;hotTierSizeUsedGib&quot;: &quot;A String&quot;, # Output only. Total hot tier data rounded down to the nearest GiB used by the Volume. This field is only used for flex Service Level
723 &quot;hybridReplicationParameters&quot;: { # The Hybrid Replication parameters for the volume. # Optional. The Hybrid Replication parameters for the volume.
724 &quot;clusterLocation&quot;: &quot;A String&quot;, # Optional. Name of source cluster location associated with the Hybrid replication. This is a free-form field for the display purpose only.
725 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the replication.
726 &quot;hybridReplicationType&quot;: &quot;A String&quot;, # Optional. Type of the hybrid replication.
727 &quot;labels&quot;: { # Optional. Labels to be added to the replication as the key value pairs.
728 &quot;a_key&quot;: &quot;A String&quot;,
729 },
730 &quot;largeVolumeConstituentCount&quot;: 42, # Optional. Constituent volume count for large volume.
731 &quot;peerClusterName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source cluster to be peered with the destination cluster.
732 &quot;peerIpAddresses&quot;: [ # Required. List of node ip addresses to be peered with.
733 &quot;A String&quot;,
734 ],
735 &quot;peerSvmName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source vserver svm to be peered with the destination vserver svm.
736 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source volume to be peered with the destination volume.
737 &quot;replication&quot;: &quot;A String&quot;, # Required. Desired name for the replication of this volume.
738 &quot;replicationSchedule&quot;: &quot;A String&quot;, # Optional. Replication Schedule for the replication created.
739 },
740 &quot;kerberosEnabled&quot;: True or False, # Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p).
741 &quot;kmsConfig&quot;: &quot;A String&quot;, # Output only. Specifies the KMS config to be used for volume encryption.
742 &quot;labels&quot;: { # Optional. Labels as key value pairs
743 &quot;a_key&quot;: &quot;A String&quot;,
744 },
745 &quot;largeCapacity&quot;: True or False, # Optional. Flag indicating if the volume will be a large capacity volume or a regular volume. This field is used for legacy FILE pools. For Unified pools, use the `large_capacity_config` field instead. This field and `large_capacity_config` are mutually exclusive.
746 &quot;largeCapacityConfig&quot;: { # Configuration for a Large Capacity Volume. A Large Capacity Volume supports sizes ranging from 4.8 TiB to 20 PiB; it is composed of multiple internal constituents, and must be created in a large capacity pool. # Optional. Large capacity config for the volume. Enables and configures large capacity for volumes in Unified pools with File protocols. Not applicable for Block protocols in Unified pools. This field and the legacy `large_capacity` boolean field are mutually exclusive.
747 &quot;constituentCount&quot;: 42, # Optional. The number of internal constituents (e.g., FlexVols) for this large volume. The minimum number of constituents is 2.
748 },
749 &quot;ldapEnabled&quot;: True or False, # Output only. Flag indicating if the volume is NFS LDAP enabled or not.
750 &quot;mountOptions&quot;: [ # Output only. Mount options of this volume
751 { # View only mount options for a volume.
752 &quot;export&quot;: &quot;A String&quot;, # Export string
753 &quot;exportFull&quot;: &quot;A String&quot;, # Full export string
754 &quot;instructions&quot;: &quot;A String&quot;, # Instructions for mounting
755 &quot;ipAddress&quot;: &quot;A String&quot;, # Output only. IP Address.
756 &quot;protocol&quot;: &quot;A String&quot;, # Protocol to mount with.
757 },
758 ],
759 &quot;multipleEndpoints&quot;: True or False, # Optional. Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints. Only the volume with large_capacity will be allowed to have multiple endpoints.
760 &quot;name&quot;: &quot;A String&quot;, # Identifier. Name of the volume
761 &quot;network&quot;: &quot;A String&quot;, # Output only. VPC Network name. Format: projects/{project}/global/networks/{network}
762 &quot;protocols&quot;: [ # Required. Protocols required for the volume
763 &quot;A String&quot;,
764 ],
765 &quot;psaRange&quot;: &quot;A String&quot;, # Output only. This field is not implemented. The values provided in this field are ignored.
766 &quot;replicaZone&quot;: &quot;A String&quot;, # Output only. Specifies the replica zone for regional volume.
767 &quot;restoreParameters&quot;: { # The RestoreParameters if volume is created from a snapshot or backup. # Optional. Specifies the source of the volume to be created from.
768 &quot;sourceBackup&quot;: &quot;A String&quot;, # Full name of the backup resource. Format for standard backup: projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}. Format for BackupDR backup: projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
769 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
770 },
771 &quot;restrictedActions&quot;: [ # Optional. List of actions that are restricted on this volume.
772 &quot;A String&quot;,
773 ],
774 &quot;securityStyle&quot;: &quot;A String&quot;, # Optional. Security Style of the Volume
775 &quot;serviceLevel&quot;: &quot;A String&quot;, # Output only. Service level of the volume
776 &quot;shareName&quot;: &quot;A String&quot;, # Required. Share name of the volume
777 &quot;smbSettings&quot;: [ # Optional. SMB share settings for the volume.
778 &quot;A String&quot;,
779 ],
780 &quot;snapReserve&quot;: 3.14, # Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent.
781 &quot;snapshotDirectory&quot;: True or False, # Optional. Snapshot_directory if enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume&#x27;s snapshots.
782 &quot;snapshotPolicy&quot;: { # Snapshot Policy for a volume. # Optional. SnapshotPolicy for a volume.
783 &quot;dailySchedule&quot;: { # Make a snapshot every day e.g. at 04:00, 05:20, 23:50 # Daily schedule policy.
784 &quot;hour&quot;: 3.14, # Set the hour to start the snapshot (0-23), defaults to midnight (0).
785 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
786 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
787 },
788 &quot;enabled&quot;: True or False, # If enabled, make snapshots automatically according to the schedules. Default is false.
789 &quot;hourlySchedule&quot;: { # Make a snapshot every hour e.g. at 04:00, 05:00, 06:00. # Hourly schedule policy.
790 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
791 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
792 },
793 &quot;monthlySchedule&quot;: { # Make a snapshot once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50 # Monthly schedule policy.
794 &quot;daysOfMonth&quot;: &quot;A String&quot;, # Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to &#x27;1&#x27;.
795 &quot;hour&quot;: 3.14, # Set the hour to start the snapshot (0-23), defaults to midnight (0).
796 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
797 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
798 },
799 &quot;weeklySchedule&quot;: { # Make a snapshot every week e.g. at Monday 04:00, Wednesday 05:20, Sunday 23:50 # Weekly schedule policy.
800 &quot;day&quot;: &quot;A String&quot;, # Set the day or days of the week to make a snapshot. Accepts a comma separated days of the week. Defaults to &#x27;Sunday&#x27;.
801 &quot;hour&quot;: 3.14, # Set the hour to start the snapshot (0-23), defaults to midnight (0).
802 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
803 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
804 },
805 },
806 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the volume
807 &quot;stateDetails&quot;: &quot;A String&quot;, # Output only. State details of the volume
808 &quot;storagePool&quot;: &quot;A String&quot;, # Required. StoragePool name of the volume
809 &quot;throughputMibps&quot;: 3.14, # Optional. Throughput of the volume (in MiB/s)
810 &quot;tieringPolicy&quot;: { # Defines tiering policy for the volume. # Tiering policy for the volume.
811 &quot;coolingThresholdDays&quot;: 42, # Optional. Time in days to mark the volume&#x27;s data block as cold and make it eligible for tiering, can be range from 2-183. Default is 31.
812 &quot;hotTierBypassModeEnabled&quot;: True or False, # Optional. Flag indicating that the hot tier bypass mode is enabled. Default is false. This is only applicable to Flex service level.
813 &quot;tierAction&quot;: &quot;A String&quot;, # Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
814 },
815 &quot;unixPermissions&quot;: &quot;A String&quot;, # Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only.
816 &quot;usedGib&quot;: &quot;A String&quot;, # Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage.
817 &quot;zone&quot;: &quot;A String&quot;, # Output only. Specifies the active zone for regional volume.
818 },
819 ],
820 }</pre>
821 </div>
822
823 <div class="method">
824 <code class="details" id="list_next">list_next()</code>
825 <pre>Retrieves the next page of results.
826
827 Args:
828 previous_request: The request for the previous page. (required)
829 previous_response: The response from the request for the previous page. (required)
830
831 Returns:
832 A request object that you can call &#x27;execute()&#x27; on to request the next
833 page. Returns None if there are no more items in the collection.
834 </pre>
835 </div>
836
837 <div class="method">
838 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
839 <pre>Updates the parameters of a single Volume.
840
841 Args:
842 name: string, Identifier. Name of the volume (required)
843 body: object, The request body.
844 The object takes the form of:
845
846 { # Volume provides a filesystem that you can mount.
847 &quot;activeDirectory&quot;: &quot;A String&quot;, # Output only. Specifies the ActiveDirectory name of a SMB volume.
848 &quot;backupConfig&quot;: { # BackupConfig contains backup related config on a volume. # BackupConfig of the volume.
849 &quot;backupChainBytes&quot;: &quot;A String&quot;, # Output only. Total size of all backups in a chain in bytes = baseline backup size + sum(incremental backup size).
850 &quot;backupPolicies&quot;: [ # Optional. When specified, schedule backups will be created based on the policy configuration.
851 &quot;A String&quot;,
852 ],
853 &quot;backupVault&quot;: &quot;A String&quot;, # Optional. Name of backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}
854 &quot;scheduledBackupEnabled&quot;: True or False, # Optional. When set to true, scheduled backup is enabled on the volume. This field should be nil when there&#x27;s no backup policy attached.
855 },
856 &quot;blockDevices&quot;: [ # Optional. Block devices for the volume. Currently, only one block device is permitted per Volume.
857 { # Block device represents the device(s) which are stored in the block volume.
858 &quot;hostGroups&quot;: [ # 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.
859 &quot;A String&quot;,
860 ],
861 &quot;identifier&quot;: &quot;A String&quot;, # Output only. Device identifier of the block volume. This represents `lun_serial_number` for iSCSI volumes.
862 &quot;name&quot;: &quot;A String&quot;, # 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: &quot;-&quot;, &quot;_&quot;, &quot;}&quot;, &quot;{&quot;, &quot;.&quot;. * Spaces are not allowed.
863 &quot;osType&quot;: &quot;A String&quot;, # Required. Immutable. The OS type of the volume. This field can&#x27;t be changed after the block device is created.
864 &quot;sizeGib&quot;: &quot;A String&quot;, # 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&#x27;s size is system-managed and will be set to match the parent Volume&#x27;s `capacity_gib`.
865 },
866 ],
867 &quot;cacheParameters&quot;: { # Cache Parameters for the volume. # Optional. Cache parameters for the volume.
868 &quot;cacheConfig&quot;: { # Configuration of the cache volume. # Optional. Configuration of the cache volume.
869 &quot;cachePrePopulate&quot;: { # Pre-populate cache volume with data from the origin volume. # Optional. Pre-populate cache volume with data from the origin volume.
870 &quot;excludePathList&quot;: [ # Optional. List of directory-paths to be excluded for pre-population for the FlexCache volume.
871 &quot;A String&quot;,
872 ],
873 &quot;pathList&quot;: [ # Optional. List of directory-paths to be pre-populated for the FlexCache volume.
874 &quot;A String&quot;,
875 ],
876 &quot;recursion&quot;: True or False, # Optional. Flag indicating whether the directories listed with the `path_list` need to be recursively pre-populated.
877 },
878 &quot;cachePrePopulateState&quot;: &quot;A String&quot;, # Output only. State of the prepopulation job indicating how the prepopulation is progressing.
879 &quot;cifsChangeNotifyEnabled&quot;: True or False, # Optional. Flag indicating whether a CIFS change notification is enabled for the FlexCache volume.
880 &quot;writebackEnabled&quot;: True or False, # Optional. Flag indicating whether writeback is enabled for the FlexCache volume.
881 },
882 &quot;cacheState&quot;: &quot;A String&quot;, # Output only. State of the cache volume indicating the peering status.
883 &quot;command&quot;: &quot;A String&quot;, # Output only. Copy-paste-able commands to be used on user&#x27;s ONTAP to accept peering requests.
884 &quot;enableGlobalFileLock&quot;: True or False, # Optional. Indicates whether the cache volume has global file lock enabled.
885 &quot;passphrase&quot;: &quot;A String&quot;, # Output only. Temporary passphrase generated to accept cluster peering command.
886 &quot;peerClusterName&quot;: &quot;A String&quot;, # Required. Name of the origin volume&#x27;s ONTAP cluster.
887 &quot;peerIpAddresses&quot;: [ # Required. List of IC LIF addresses of the origin volume&#x27;s ONTAP cluster.
888 &quot;A String&quot;,
889 ],
890 &quot;peerSvmName&quot;: &quot;A String&quot;, # Required. Name of the origin volume&#x27;s SVM.
891 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Required. Name of the origin volume for the cache volume.
892 &quot;peeringCommandExpiryTime&quot;: &quot;A String&quot;, # Optional. Expiration time for the peering command to be executed on user&#x27;s ONTAP.
893 &quot;stateDetails&quot;: &quot;A String&quot;, # Output only. Detailed description of the current cache state.
894 },
895 &quot;capacityGib&quot;: &quot;A String&quot;, # Required. Capacity in GIB of the volume
896 &quot;cloneDetails&quot;: { # Details about a clone volume. # Output only. If this volume is a clone, this field contains details about the clone.
897 &quot;sharedSpaceGib&quot;: &quot;A String&quot;, # Output only. Shared space in GiB. Determined at volume creation time based on size of source snapshot.
898 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # Output only. Specifies the full resource name of the source snapshot from which this volume was cloned. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
899 &quot;sourceVolume&quot;: &quot;A String&quot;, # Output only. Full name of the source volume resource. Format: projects/{project}/locations/{location}/volumes/{volume}
900 },
901 &quot;coldTierSizeGib&quot;: &quot;A String&quot;, # Output only. Size of the volume cold tier data rounded down to the nearest GiB.
902 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time of the volume
903 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the volume
904 &quot;encryptionType&quot;: &quot;A String&quot;, # Output only. Specified the current volume encryption key source.
905 &quot;exportPolicy&quot;: { # Defines the export policy for the volume. # Optional. Export policy of the volume
906 &quot;rules&quot;: [ # Required. List of export policy rules
907 { # An export policy rule describing various export options.
908 &quot;accessType&quot;: &quot;A String&quot;, # Access type (ReadWrite, ReadOnly, None)
909 &quot;allowedClients&quot;: &quot;A String&quot;, # Comma separated list of allowed clients IP addresses
910 &quot;anonUid&quot;: &quot;A String&quot;, # Optional. An integer representing the anonymous user ID. Range is 0 to `4294967295`. Required when `squash_mode` is `ROOT_SQUASH` or `ALL_SQUASH`.
911 &quot;hasRootAccess&quot;: &quot;A String&quot;, # Whether Unix root access will be granted.
912 &quot;kerberos5ReadOnly&quot;: True or False, # If enabled (true) the rule defines a read only access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;authentication&#x27; kerberos security mode.
913 &quot;kerberos5ReadWrite&quot;: True or False, # If enabled (true) the rule defines read and write access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;authentication&#x27; kerberos security mode. The &#x27;kerberos5ReadOnly&#x27; value be ignored if this is enabled.
914 &quot;kerberos5iReadOnly&quot;: True or False, # If enabled (true) the rule defines a read only access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;integrity&#x27; kerberos security mode.
915 &quot;kerberos5iReadWrite&quot;: True or False, # If enabled (true) the rule defines read and write access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;integrity&#x27; kerberos security mode. The &#x27;kerberos5iReadOnly&#x27; value be ignored if this is enabled.
916 &quot;kerberos5pReadOnly&quot;: True or False, # If enabled (true) the rule defines a read only access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;privacy&#x27; kerberos security mode.
917 &quot;kerberos5pReadWrite&quot;: True or False, # If enabled (true) the rule defines read and write access for clients matching the &#x27;allowedClients&#x27; specification. It enables nfs clients to mount using &#x27;privacy&#x27; kerberos security mode. The &#x27;kerberos5pReadOnly&#x27; value be ignored if this is enabled.
918 &quot;nfsv3&quot;: True or False, # NFS V3 protocol.
919 &quot;nfsv4&quot;: True or False, # NFS V4 protocol.
920 &quot;squashMode&quot;: &quot;A String&quot;, # 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.
921 },
922 ],
923 },
924 &quot;hasReplication&quot;: True or False, # Output only. Indicates whether the volume is part of a replication relationship.
925 &quot;hotTierSizeUsedGib&quot;: &quot;A String&quot;, # Output only. Total hot tier data rounded down to the nearest GiB used by the Volume. This field is only used for flex Service Level
926 &quot;hybridReplicationParameters&quot;: { # The Hybrid Replication parameters for the volume. # Optional. The Hybrid Replication parameters for the volume.
927 &quot;clusterLocation&quot;: &quot;A String&quot;, # Optional. Name of source cluster location associated with the Hybrid replication. This is a free-form field for the display purpose only.
928 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the replication.
929 &quot;hybridReplicationType&quot;: &quot;A String&quot;, # Optional. Type of the hybrid replication.
930 &quot;labels&quot;: { # Optional. Labels to be added to the replication as the key value pairs.
931 &quot;a_key&quot;: &quot;A String&quot;,
932 },
933 &quot;largeVolumeConstituentCount&quot;: 42, # Optional. Constituent volume count for large volume.
934 &quot;peerClusterName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source cluster to be peered with the destination cluster.
935 &quot;peerIpAddresses&quot;: [ # Required. List of node ip addresses to be peered with.
936 &quot;A String&quot;,
937 ],
938 &quot;peerSvmName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source vserver svm to be peered with the destination vserver svm.
939 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source volume to be peered with the destination volume.
940 &quot;replication&quot;: &quot;A String&quot;, # Required. Desired name for the replication of this volume.
941 &quot;replicationSchedule&quot;: &quot;A String&quot;, # Optional. Replication Schedule for the replication created.
942 },
943 &quot;kerberosEnabled&quot;: True or False, # Optional. Flag indicating if the volume is a kerberos volume or not, export policy rules control kerberos security modes (krb5, krb5i, krb5p).
944 &quot;kmsConfig&quot;: &quot;A String&quot;, # Output only. Specifies the KMS config to be used for volume encryption.
945 &quot;labels&quot;: { # Optional. Labels as key value pairs
946 &quot;a_key&quot;: &quot;A String&quot;,
947 },
948 &quot;largeCapacity&quot;: True or False, # Optional. Flag indicating if the volume will be a large capacity volume or a regular volume. This field is used for legacy FILE pools. For Unified pools, use the `large_capacity_config` field instead. This field and `large_capacity_config` are mutually exclusive.
949 &quot;largeCapacityConfig&quot;: { # Configuration for a Large Capacity Volume. A Large Capacity Volume supports sizes ranging from 4.8 TiB to 20 PiB; it is composed of multiple internal constituents, and must be created in a large capacity pool. # Optional. Large capacity config for the volume. Enables and configures large capacity for volumes in Unified pools with File protocols. Not applicable for Block protocols in Unified pools. This field and the legacy `large_capacity` boolean field are mutually exclusive.
950 &quot;constituentCount&quot;: 42, # Optional. The number of internal constituents (e.g., FlexVols) for this large volume. The minimum number of constituents is 2.
951 },
952 &quot;ldapEnabled&quot;: True or False, # Output only. Flag indicating if the volume is NFS LDAP enabled or not.
953 &quot;mountOptions&quot;: [ # Output only. Mount options of this volume
954 { # View only mount options for a volume.
955 &quot;export&quot;: &quot;A String&quot;, # Export string
956 &quot;exportFull&quot;: &quot;A String&quot;, # Full export string
957 &quot;instructions&quot;: &quot;A String&quot;, # Instructions for mounting
958 &quot;ipAddress&quot;: &quot;A String&quot;, # Output only. IP Address.
959 &quot;protocol&quot;: &quot;A String&quot;, # Protocol to mount with.
960 },
961 ],
962 &quot;multipleEndpoints&quot;: True or False, # Optional. Flag indicating if the volume will have an IP address per node for volumes supporting multiple IP endpoints. Only the volume with large_capacity will be allowed to have multiple endpoints.
963 &quot;name&quot;: &quot;A String&quot;, # Identifier. Name of the volume
964 &quot;network&quot;: &quot;A String&quot;, # Output only. VPC Network name. Format: projects/{project}/global/networks/{network}
965 &quot;protocols&quot;: [ # Required. Protocols required for the volume
966 &quot;A String&quot;,
967 ],
968 &quot;psaRange&quot;: &quot;A String&quot;, # Output only. This field is not implemented. The values provided in this field are ignored.
969 &quot;replicaZone&quot;: &quot;A String&quot;, # Output only. Specifies the replica zone for regional volume.
970 &quot;restoreParameters&quot;: { # The RestoreParameters if volume is created from a snapshot or backup. # Optional. Specifies the source of the volume to be created from.
971 &quot;sourceBackup&quot;: &quot;A String&quot;, # Full name of the backup resource. Format for standard backup: projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}. Format for BackupDR backup: projects/{project}/locations/{location}/backupVaults/{backup_vault}/dataSources/{data_source}/backups/{backup}
972 &quot;sourceSnapshot&quot;: &quot;A String&quot;, # Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
973 },
974 &quot;restrictedActions&quot;: [ # Optional. List of actions that are restricted on this volume.
975 &quot;A String&quot;,
976 ],
977 &quot;securityStyle&quot;: &quot;A String&quot;, # Optional. Security Style of the Volume
978 &quot;serviceLevel&quot;: &quot;A String&quot;, # Output only. Service level of the volume
979 &quot;shareName&quot;: &quot;A String&quot;, # Required. Share name of the volume
980 &quot;smbSettings&quot;: [ # Optional. SMB share settings for the volume.
981 &quot;A String&quot;,
982 ],
983 &quot;snapReserve&quot;: 3.14, # Optional. Snap_reserve specifies percentage of volume storage reserved for snapshot storage. Default is 0 percent.
984 &quot;snapshotDirectory&quot;: True or False, # Optional. Snapshot_directory if enabled (true) the volume will contain a read-only .snapshot directory which provides access to each of the volume&#x27;s snapshots.
985 &quot;snapshotPolicy&quot;: { # Snapshot Policy for a volume. # Optional. SnapshotPolicy for a volume.
986 &quot;dailySchedule&quot;: { # Make a snapshot every day e.g. at 04:00, 05:20, 23:50 # Daily schedule policy.
987 &quot;hour&quot;: 3.14, # Set the hour to start the snapshot (0-23), defaults to midnight (0).
988 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
989 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
990 },
991 &quot;enabled&quot;: True or False, # If enabled, make snapshots automatically according to the schedules. Default is false.
992 &quot;hourlySchedule&quot;: { # Make a snapshot every hour e.g. at 04:00, 05:00, 06:00. # Hourly schedule policy.
993 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
994 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
995 },
996 &quot;monthlySchedule&quot;: { # Make a snapshot once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50 # Monthly schedule policy.
997 &quot;daysOfMonth&quot;: &quot;A String&quot;, # Set the day or days of the month to make a snapshot (1-31). Accepts a comma separated number of days. Defaults to &#x27;1&#x27;.
998 &quot;hour&quot;: 3.14, # Set the hour to start the snapshot (0-23), defaults to midnight (0).
999 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
1000 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
1001 },
1002 &quot;weeklySchedule&quot;: { # Make a snapshot every week e.g. at Monday 04:00, Wednesday 05:20, Sunday 23:50 # Weekly schedule policy.
1003 &quot;day&quot;: &quot;A String&quot;, # Set the day or days of the week to make a snapshot. Accepts a comma separated days of the week. Defaults to &#x27;Sunday&#x27;.
1004 &quot;hour&quot;: 3.14, # Set the hour to start the snapshot (0-23), defaults to midnight (0).
1005 &quot;minute&quot;: 3.14, # Set the minute of the hour to start the snapshot (0-59), defaults to the top of the hour (0).
1006 &quot;snapshotsToKeep&quot;: 3.14, # The maximum number of Snapshots to keep for the hourly schedule
1007 },
1008 },
1009 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the volume
1010 &quot;stateDetails&quot;: &quot;A String&quot;, # Output only. State details of the volume
1011 &quot;storagePool&quot;: &quot;A String&quot;, # Required. StoragePool name of the volume
1012 &quot;throughputMibps&quot;: 3.14, # Optional. Throughput of the volume (in MiB/s)
1013 &quot;tieringPolicy&quot;: { # Defines tiering policy for the volume. # Tiering policy for the volume.
1014 &quot;coolingThresholdDays&quot;: 42, # Optional. Time in days to mark the volume&#x27;s data block as cold and make it eligible for tiering, can be range from 2-183. Default is 31.
1015 &quot;hotTierBypassModeEnabled&quot;: True or False, # Optional. Flag indicating that the hot tier bypass mode is enabled. Default is false. This is only applicable to Flex service level.
1016 &quot;tierAction&quot;: &quot;A String&quot;, # Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
1017 },
1018 &quot;unixPermissions&quot;: &quot;A String&quot;, # Optional. Default unix style permission (e.g. 777) the mount point will be created with. Applicable for NFS protocol types only.
1019 &quot;usedGib&quot;: &quot;A String&quot;, # Output only. Used capacity in GIB of the volume. This is computed periodically and it does not represent the realtime usage.
1020 &quot;zone&quot;: &quot;A String&quot;, # Output only. Specifies the active zone for regional volume.
1021 }
1022
1023 updateMask: string, 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.
1024 x__xgafv: string, V1 error format.
1025 Allowed values
1026 1 - v1 error format
1027 2 - v2 error format
1028
1029 Returns:
1030 An object of the form:
1031
1032 { # This resource represents a long-running operation that is the result of a network API call.
1033 &quot;done&quot;: True or False, # 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.
1034 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1035 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1036 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1037 {
1038 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1039 },
1040 ],
1041 &quot;message&quot;: &quot;A String&quot;, # 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.
1042 },
1043 &quot;metadata&quot;: { # 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.
1044 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1045 },
1046 &quot;name&quot;: &quot;A String&quot;, # 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}`.
1047 &quot;response&quot;: { # 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`.
1048 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1049 },
1050 }</pre>
1051 </div>
1052
1053 <div class="method">
1054 <code class="details" id="restore">restore(name, body=None, x__xgafv=None)</code>
1055 <pre>Restore files from a backup to a volume.
1056
1057 Args:
1058 name: string, Required. The volume resource name, in the format `projects/{project_id}/locations/{location}/volumes/{volume_id}` (required)
1059 body: object, The request body.
1060 The object takes the form of:
1061
1062 { # RestoreBackupFilesRequest restores files from a backup to a volume.
1063 &quot;backup&quot;: &quot;A String&quot;, # Required. The backup resource name, in the format `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`
1064 &quot;fileList&quot;: [ # Required. List of files to be restored, specified by their absolute path in the source volume.
1065 &quot;A String&quot;,
1066 ],
1067 &quot;restoreDestinationPath&quot;: &quot;A String&quot;, # Optional. Absolute directory path in the destination volume. This is required if the `file_list` is provided.
1068 }
1069
1070 x__xgafv: string, V1 error format.
1071 Allowed values
1072 1 - v1 error format
1073 2 - v2 error format
1074
1075 Returns:
1076 An object of the form:
1077
1078 { # This resource represents a long-running operation that is the result of a network API call.
1079 &quot;done&quot;: True or False, # 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.
1080 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1081 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1082 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1083 {
1084 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1085 },
1086 ],
1087 &quot;message&quot;: &quot;A String&quot;, # 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.
1088 },
1089 &quot;metadata&quot;: { # 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.
1090 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1091 },
1092 &quot;name&quot;: &quot;A String&quot;, # 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}`.
1093 &quot;response&quot;: { # 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`.
1094 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1095 },
1096 }</pre>
1097 </div>
1098
1099 <div class="method">
1100 <code class="details" id="revert">revert(name, body=None, x__xgafv=None)</code>
1101 <pre>Revert an existing volume to a specified snapshot. Warning! This operation will permanently revert all changes made after the snapshot was created.
1102
1103 Args:
1104 name: string, Required. The resource name of the volume, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}. (required)
1105 body: object, The request body.
1106 The object takes the form of:
1107
1108 { # RevertVolumeRequest reverts the given volume to the specified snapshot.
1109 &quot;snapshotId&quot;: &quot;A String&quot;, # Required. The snapshot resource ID, in the format &#x27;my-snapshot&#x27;, where the specified ID is the {snapshot_id} of the fully qualified name like projects/{project_id}/locations/{location_id}/volumes/{volume_id}/snapshots/{snapshot_id}
1110 }
1111
1112 x__xgafv: string, V1 error format.
1113 Allowed values
1114 1 - v1 error format
1115 2 - v2 error format
1116
1117 Returns:
1118 An object of the form:
1119
1120 { # This resource represents a long-running operation that is the result of a network API call.
1121 &quot;done&quot;: True or False, # 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.
1122 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1123 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1124 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1125 {
1126 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1127 },
1128 ],
1129 &quot;message&quot;: &quot;A String&quot;, # 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.
1130 },
1131 &quot;metadata&quot;: { # 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.
1132 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1133 },
1134 &quot;name&quot;: &quot;A String&quot;, # 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}`.
1135 &quot;response&quot;: { # 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`.
1136 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1137 },
1138 }</pre>
1139 </div>
1140
1141 </body></html>