Debian Codegraph @

docs/dyn/netapp_v1.projects.locations.volumes.replications.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> . <a href="netapp_v1.projects.locations.volumes.replications.html">replications</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, replicationId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Create a new replication for a volume.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a replication.</p>
86 <p class="toc_element">
87 <code><a href="#establishPeering">establishPeering(name, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Establish replication peering.</p>
89 <p class="toc_element">
90 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
91 <p class="firstline">Describe a replication for a volume.</p>
92 <p class="toc_element">
93 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Returns descriptions of all replications for a volume.</p>
95 <p class="toc_element">
96 <code><a href="#list_next">list_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <p class="toc_element">
99 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Updates the settings of a specific replication.</p>
101 <p class="toc_element">
102 <code><a href="#resume">resume(name, body=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Resume Cross Region Replication.</p>
104 <p class="toc_element">
105 <code><a href="#reverseDirection">reverseDirection(name, body=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Reverses direction of replication. Source becomes destination and destination becomes source.</p>
107 <p class="toc_element">
108 <code><a href="#stop">stop(name, body=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Stop Cross Region Replication.</p>
110 <p class="toc_element">
111 <code><a href="#sync">sync(name, body=None, x__xgafv=None)</a></code></p>
112 <p class="firstline">Syncs the replication. This will invoke one time volume data transfer from source to destination.</p>
113 <h3>Method Details</h3>
114 <div class="method">
115 <code class="details" id="close">close()</code>
116 <pre>Close httplib2 connections.</pre>
117 </div>
118
119 <div class="method">
120 <code class="details" id="create">create(parent, body=None, replicationId=None, x__xgafv=None)</code>
121 <pre>Create a new replication for a volume.
122
123 Args:
124 parent: string, Required. The NetApp volume to create the replications of, in the format `projects/{project_id}/locations/{location}/volumes/{volume_id}` (required)
125 body: object, The request body.
126 The object takes the form of:
127
128 { # Replication is a nested resource under Volume, that describes a cross-region replication relationship between 2 volumes in different regions.
129 &quot;clusterLocation&quot;: &quot;A String&quot;, # Optional. Location of the user cluster.
130 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Replication create time.
131 &quot;description&quot;: &quot;A String&quot;, # A description about this replication relationship.
132 &quot;destinationVolume&quot;: &quot;A String&quot;, # Output only. Full name of destination volume resource. Example : &quot;projects/{project}/locations/{location}/volumes/{volume_id}&quot;
133 &quot;destinationVolumeParameters&quot;: { # DestinationVolumeParameters specify input parameters used for creating destination volume. # Required. Input only. Destination volume parameters
134 &quot;description&quot;: &quot;A String&quot;, # Description for the destination volume.
135 &quot;shareName&quot;: &quot;A String&quot;, # Destination volume&#x27;s share name. If not specified, source volume&#x27;s share name will be used.
136 &quot;storagePool&quot;: &quot;A String&quot;, # Required. Existing destination StoragePool name.
137 &quot;tieringPolicy&quot;: { # Defines tiering policy for the volume. # Optional. Tiering policy for the volume.
138 &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.
139 &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.
140 &quot;tierAction&quot;: &quot;A String&quot;, # Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
141 },
142 &quot;volumeId&quot;: &quot;A String&quot;, # Desired destination volume resource id. If not specified, source volume&#x27;s resource id will be used. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
143 },
144 &quot;healthy&quot;: True or False, # Output only. Condition of the relationship. Can be one of the following: - true: The replication relationship is healthy. It has not missed the most recent scheduled transfer. - false: The replication relationship is not healthy. It has missed the most recent scheduled transfer.
145 &quot;hybridPeeringDetails&quot;: { # HybridPeeringDetails contains details about the hybrid peering. # Output only. Hybrid peering details.
146 &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.
147 &quot;commandExpiryTime&quot;: &quot;A String&quot;, # Output only. Expiration time for the peering command to be executed on user&#x27;s ONTAP.
148 &quot;passphrase&quot;: &quot;A String&quot;, # Output only. Temporary passphrase generated to accept cluster peering command.
149 &quot;peerClusterName&quot;: &quot;A String&quot;, # Output only. Name of the user&#x27;s local source cluster to be peered with the destination cluster.
150 &quot;peerSvmName&quot;: &quot;A String&quot;, # Output only. Name of the user&#x27;s local source vserver svm to be peered with the destination vserver svm.
151 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Output only. Name of the user&#x27;s local source volume to be peered with the destination volume.
152 &quot;subnetIp&quot;: &quot;A String&quot;, # Output only. IP address of the subnet.
153 },
154 &quot;hybridReplicationType&quot;: &quot;A String&quot;, # Output only. Type of the hybrid replication.
155 &quot;hybridReplicationUserCommands&quot;: { # UserCommands contains the commands to be executed by the customer. # Output only. Copy pastable snapmirror commands to be executed on onprem cluster by the customer.
156 &quot;commands&quot;: [ # Output only. List of commands to be executed by the customer.
157 &quot;A String&quot;,
158 ],
159 },
160 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
161 &quot;a_key&quot;: &quot;A String&quot;,
162 },
163 &quot;mirrorState&quot;: &quot;A String&quot;, # Output only. Indicates the state of mirroring.
164 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Replication. Format: `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
165 &quot;replicationSchedule&quot;: &quot;A String&quot;, # Required. Indicates the schedule for replication.
166 &quot;role&quot;: &quot;A String&quot;, # Output only. Indicates whether this points to source or destination.
167 &quot;sourceVolume&quot;: &quot;A String&quot;, # Output only. Full name of source volume resource. Example : &quot;projects/{project}/locations/{location}/volumes/{volume_id}&quot;
168 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the replication.
169 &quot;stateDetails&quot;: &quot;A String&quot;, # Output only. State details of the replication.
170 &quot;transferStats&quot;: { # TransferStats reports all statistics related to replication transfer. # Output only. Replication transfer statistics.
171 &quot;lagDuration&quot;: &quot;A String&quot;, # Lag duration indicates the duration by which Destination region volume content lags behind the primary region volume content.
172 &quot;lastTransferBytes&quot;: &quot;A String&quot;, # Last transfer size in bytes.
173 &quot;lastTransferDuration&quot;: &quot;A String&quot;, # Time taken during last transfer.
174 &quot;lastTransferEndTime&quot;: &quot;A String&quot;, # Time when last transfer completed.
175 &quot;lastTransferError&quot;: &quot;A String&quot;, # A message describing the cause of the last transfer failure.
176 &quot;totalTransferDuration&quot;: &quot;A String&quot;, # Cumulative time taken across all transfers for the replication relationship.
177 &quot;transferBytes&quot;: &quot;A String&quot;, # Cumulative bytes transferred so far for the replication relationship.
178 &quot;updateTime&quot;: &quot;A String&quot;, # Time when progress was updated last.
179 },
180 }
181
182 replicationId: string, Required. ID of the replication to create. Must be unique within the parent resource. Must contain only letters, numbers and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
183 x__xgafv: string, V1 error format.
184 Allowed values
185 1 - v1 error format
186 2 - v2 error format
187
188 Returns:
189 An object of the form:
190
191 { # This resource represents a long-running operation that is the result of a network API call.
192 &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.
193 &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.
194 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
195 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
196 {
197 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
198 },
199 ],
200 &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.
201 },
202 &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.
203 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
204 },
205 &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}`.
206 &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`.
207 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
208 },
209 }</pre>
210 </div>
211
212 <div class="method">
213 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
214 <pre>Deletes a replication.
215
216 Args:
217 name: string, Required. The replication resource name, in the format `projects/*/locations/*/volumes/*/replications/{replication_id}` (required)
218 x__xgafv: string, V1 error format.
219 Allowed values
220 1 - v1 error format
221 2 - v2 error format
222
223 Returns:
224 An object of the form:
225
226 { # This resource represents a long-running operation that is the result of a network API call.
227 &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.
228 &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.
229 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
230 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
231 {
232 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
233 },
234 ],
235 &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.
236 },
237 &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.
238 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
239 },
240 &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}`.
241 &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`.
242 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
243 },
244 }</pre>
245 </div>
246
247 <div class="method">
248 <code class="details" id="establishPeering">establishPeering(name, body=None, x__xgafv=None)</code>
249 <pre>Establish replication peering.
250
251 Args:
252 name: string, Required. The resource name of the replication, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. (required)
253 body: object, The request body.
254 The object takes the form of:
255
256 { # EstablishPeeringRequest establishes cluster and svm peerings between the source and the destination replications.
257 &quot;peerClusterName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source cluster to be peered with the destination cluster.
258 &quot;peerIpAddresses&quot;: [ # Optional. List of IPv4 ip addresses to be used for peering.
259 &quot;A String&quot;,
260 ],
261 &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.
262 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Required. Name of the user&#x27;s local source volume to be peered with the destination volume.
263 }
264
265 x__xgafv: string, V1 error format.
266 Allowed values
267 1 - v1 error format
268 2 - v2 error format
269
270 Returns:
271 An object of the form:
272
273 { # This resource represents a long-running operation that is the result of a network API call.
274 &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.
275 &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.
276 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
277 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
278 {
279 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
280 },
281 ],
282 &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.
283 },
284 &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.
285 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
286 },
287 &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}`.
288 &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`.
289 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
290 },
291 }</pre>
292 </div>
293
294 <div class="method">
295 <code class="details" id="get">get(name, x__xgafv=None)</code>
296 <pre>Describe a replication for a volume.
297
298 Args:
299 name: string, Required. The replication resource name, in the format `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}` (required)
300 x__xgafv: string, V1 error format.
301 Allowed values
302 1 - v1 error format
303 2 - v2 error format
304
305 Returns:
306 An object of the form:
307
308 { # Replication is a nested resource under Volume, that describes a cross-region replication relationship between 2 volumes in different regions.
309 &quot;clusterLocation&quot;: &quot;A String&quot;, # Optional. Location of the user cluster.
310 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Replication create time.
311 &quot;description&quot;: &quot;A String&quot;, # A description about this replication relationship.
312 &quot;destinationVolume&quot;: &quot;A String&quot;, # Output only. Full name of destination volume resource. Example : &quot;projects/{project}/locations/{location}/volumes/{volume_id}&quot;
313 &quot;destinationVolumeParameters&quot;: { # DestinationVolumeParameters specify input parameters used for creating destination volume. # Required. Input only. Destination volume parameters
314 &quot;description&quot;: &quot;A String&quot;, # Description for the destination volume.
315 &quot;shareName&quot;: &quot;A String&quot;, # Destination volume&#x27;s share name. If not specified, source volume&#x27;s share name will be used.
316 &quot;storagePool&quot;: &quot;A String&quot;, # Required. Existing destination StoragePool name.
317 &quot;tieringPolicy&quot;: { # Defines tiering policy for the volume. # Optional. Tiering policy for the volume.
318 &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.
319 &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.
320 &quot;tierAction&quot;: &quot;A String&quot;, # Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
321 },
322 &quot;volumeId&quot;: &quot;A String&quot;, # Desired destination volume resource id. If not specified, source volume&#x27;s resource id will be used. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
323 },
324 &quot;healthy&quot;: True or False, # Output only. Condition of the relationship. Can be one of the following: - true: The replication relationship is healthy. It has not missed the most recent scheduled transfer. - false: The replication relationship is not healthy. It has missed the most recent scheduled transfer.
325 &quot;hybridPeeringDetails&quot;: { # HybridPeeringDetails contains details about the hybrid peering. # Output only. Hybrid peering details.
326 &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.
327 &quot;commandExpiryTime&quot;: &quot;A String&quot;, # Output only. Expiration time for the peering command to be executed on user&#x27;s ONTAP.
328 &quot;passphrase&quot;: &quot;A String&quot;, # Output only. Temporary passphrase generated to accept cluster peering command.
329 &quot;peerClusterName&quot;: &quot;A String&quot;, # Output only. Name of the user&#x27;s local source cluster to be peered with the destination cluster.
330 &quot;peerSvmName&quot;: &quot;A String&quot;, # Output only. Name of the user&#x27;s local source vserver svm to be peered with the destination vserver svm.
331 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Output only. Name of the user&#x27;s local source volume to be peered with the destination volume.
332 &quot;subnetIp&quot;: &quot;A String&quot;, # Output only. IP address of the subnet.
333 },
334 &quot;hybridReplicationType&quot;: &quot;A String&quot;, # Output only. Type of the hybrid replication.
335 &quot;hybridReplicationUserCommands&quot;: { # UserCommands contains the commands to be executed by the customer. # Output only. Copy pastable snapmirror commands to be executed on onprem cluster by the customer.
336 &quot;commands&quot;: [ # Output only. List of commands to be executed by the customer.
337 &quot;A String&quot;,
338 ],
339 },
340 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
341 &quot;a_key&quot;: &quot;A String&quot;,
342 },
343 &quot;mirrorState&quot;: &quot;A String&quot;, # Output only. Indicates the state of mirroring.
344 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Replication. Format: `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
345 &quot;replicationSchedule&quot;: &quot;A String&quot;, # Required. Indicates the schedule for replication.
346 &quot;role&quot;: &quot;A String&quot;, # Output only. Indicates whether this points to source or destination.
347 &quot;sourceVolume&quot;: &quot;A String&quot;, # Output only. Full name of source volume resource. Example : &quot;projects/{project}/locations/{location}/volumes/{volume_id}&quot;
348 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the replication.
349 &quot;stateDetails&quot;: &quot;A String&quot;, # Output only. State details of the replication.
350 &quot;transferStats&quot;: { # TransferStats reports all statistics related to replication transfer. # Output only. Replication transfer statistics.
351 &quot;lagDuration&quot;: &quot;A String&quot;, # Lag duration indicates the duration by which Destination region volume content lags behind the primary region volume content.
352 &quot;lastTransferBytes&quot;: &quot;A String&quot;, # Last transfer size in bytes.
353 &quot;lastTransferDuration&quot;: &quot;A String&quot;, # Time taken during last transfer.
354 &quot;lastTransferEndTime&quot;: &quot;A String&quot;, # Time when last transfer completed.
355 &quot;lastTransferError&quot;: &quot;A String&quot;, # A message describing the cause of the last transfer failure.
356 &quot;totalTransferDuration&quot;: &quot;A String&quot;, # Cumulative time taken across all transfers for the replication relationship.
357 &quot;transferBytes&quot;: &quot;A String&quot;, # Cumulative bytes transferred so far for the replication relationship.
358 &quot;updateTime&quot;: &quot;A String&quot;, # Time when progress was updated last.
359 },
360 }</pre>
361 </div>
362
363 <div class="method">
364 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
365 <pre>Returns descriptions of all replications for a volume.
366
367 Args:
368 parent: string, Required. The volume for which to retrieve replication information, in the format `projects/{project_id}/locations/{location}/volumes/{volume_id}`. (required)
369 filter: string, List filter.
370 orderBy: string, Sort results. Supported values are &quot;name&quot;, &quot;name desc&quot; or &quot;&quot; (unsorted).
371 pageSize: integer, The maximum number of items to return.
372 pageToken: string, The next_page_token value to use if there are additional results to retrieve for this list request.
373 x__xgafv: string, V1 error format.
374 Allowed values
375 1 - v1 error format
376 2 - v2 error format
377
378 Returns:
379 An object of the form:
380
381 { # ListReplicationsResponse is the result of ListReplicationsRequest.
382 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token you can use to retrieve the next page of results. Not returned if there are no more results in the list.
383 &quot;replications&quot;: [ # A list of replications in the project for the specified volume.
384 { # Replication is a nested resource under Volume, that describes a cross-region replication relationship between 2 volumes in different regions.
385 &quot;clusterLocation&quot;: &quot;A String&quot;, # Optional. Location of the user cluster.
386 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Replication create time.
387 &quot;description&quot;: &quot;A String&quot;, # A description about this replication relationship.
388 &quot;destinationVolume&quot;: &quot;A String&quot;, # Output only. Full name of destination volume resource. Example : &quot;projects/{project}/locations/{location}/volumes/{volume_id}&quot;
389 &quot;destinationVolumeParameters&quot;: { # DestinationVolumeParameters specify input parameters used for creating destination volume. # Required. Input only. Destination volume parameters
390 &quot;description&quot;: &quot;A String&quot;, # Description for the destination volume.
391 &quot;shareName&quot;: &quot;A String&quot;, # Destination volume&#x27;s share name. If not specified, source volume&#x27;s share name will be used.
392 &quot;storagePool&quot;: &quot;A String&quot;, # Required. Existing destination StoragePool name.
393 &quot;tieringPolicy&quot;: { # Defines tiering policy for the volume. # Optional. Tiering policy for the volume.
394 &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.
395 &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.
396 &quot;tierAction&quot;: &quot;A String&quot;, # Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
397 },
398 &quot;volumeId&quot;: &quot;A String&quot;, # Desired destination volume resource id. If not specified, source volume&#x27;s resource id will be used. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
399 },
400 &quot;healthy&quot;: True or False, # Output only. Condition of the relationship. Can be one of the following: - true: The replication relationship is healthy. It has not missed the most recent scheduled transfer. - false: The replication relationship is not healthy. It has missed the most recent scheduled transfer.
401 &quot;hybridPeeringDetails&quot;: { # HybridPeeringDetails contains details about the hybrid peering. # Output only. Hybrid peering details.
402 &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.
403 &quot;commandExpiryTime&quot;: &quot;A String&quot;, # Output only. Expiration time for the peering command to be executed on user&#x27;s ONTAP.
404 &quot;passphrase&quot;: &quot;A String&quot;, # Output only. Temporary passphrase generated to accept cluster peering command.
405 &quot;peerClusterName&quot;: &quot;A String&quot;, # Output only. Name of the user&#x27;s local source cluster to be peered with the destination cluster.
406 &quot;peerSvmName&quot;: &quot;A String&quot;, # Output only. Name of the user&#x27;s local source vserver svm to be peered with the destination vserver svm.
407 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Output only. Name of the user&#x27;s local source volume to be peered with the destination volume.
408 &quot;subnetIp&quot;: &quot;A String&quot;, # Output only. IP address of the subnet.
409 },
410 &quot;hybridReplicationType&quot;: &quot;A String&quot;, # Output only. Type of the hybrid replication.
411 &quot;hybridReplicationUserCommands&quot;: { # UserCommands contains the commands to be executed by the customer. # Output only. Copy pastable snapmirror commands to be executed on onprem cluster by the customer.
412 &quot;commands&quot;: [ # Output only. List of commands to be executed by the customer.
413 &quot;A String&quot;,
414 ],
415 },
416 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
417 &quot;a_key&quot;: &quot;A String&quot;,
418 },
419 &quot;mirrorState&quot;: &quot;A String&quot;, # Output only. Indicates the state of mirroring.
420 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Replication. Format: `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
421 &quot;replicationSchedule&quot;: &quot;A String&quot;, # Required. Indicates the schedule for replication.
422 &quot;role&quot;: &quot;A String&quot;, # Output only. Indicates whether this points to source or destination.
423 &quot;sourceVolume&quot;: &quot;A String&quot;, # Output only. Full name of source volume resource. Example : &quot;projects/{project}/locations/{location}/volumes/{volume_id}&quot;
424 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the replication.
425 &quot;stateDetails&quot;: &quot;A String&quot;, # Output only. State details of the replication.
426 &quot;transferStats&quot;: { # TransferStats reports all statistics related to replication transfer. # Output only. Replication transfer statistics.
427 &quot;lagDuration&quot;: &quot;A String&quot;, # Lag duration indicates the duration by which Destination region volume content lags behind the primary region volume content.
428 &quot;lastTransferBytes&quot;: &quot;A String&quot;, # Last transfer size in bytes.
429 &quot;lastTransferDuration&quot;: &quot;A String&quot;, # Time taken during last transfer.
430 &quot;lastTransferEndTime&quot;: &quot;A String&quot;, # Time when last transfer completed.
431 &quot;lastTransferError&quot;: &quot;A String&quot;, # A message describing the cause of the last transfer failure.
432 &quot;totalTransferDuration&quot;: &quot;A String&quot;, # Cumulative time taken across all transfers for the replication relationship.
433 &quot;transferBytes&quot;: &quot;A String&quot;, # Cumulative bytes transferred so far for the replication relationship.
434 &quot;updateTime&quot;: &quot;A String&quot;, # Time when progress was updated last.
435 },
436 },
437 ],
438 &quot;unreachable&quot;: [ # Locations that could not be reached.
439 &quot;A String&quot;,
440 ],
441 }</pre>
442 </div>
443
444 <div class="method">
445 <code class="details" id="list_next">list_next()</code>
446 <pre>Retrieves the next page of results.
447
448 Args:
449 previous_request: The request for the previous page. (required)
450 previous_response: The response from the request for the previous page. (required)
451
452 Returns:
453 A request object that you can call &#x27;execute()&#x27; on to request the next
454 page. Returns None if there are no more items in the collection.
455 </pre>
456 </div>
457
458 <div class="method">
459 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
460 <pre>Updates the settings of a specific replication.
461
462 Args:
463 name: string, Identifier. The resource name of the Replication. Format: `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`. (required)
464 body: object, The request body.
465 The object takes the form of:
466
467 { # Replication is a nested resource under Volume, that describes a cross-region replication relationship between 2 volumes in different regions.
468 &quot;clusterLocation&quot;: &quot;A String&quot;, # Optional. Location of the user cluster.
469 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Replication create time.
470 &quot;description&quot;: &quot;A String&quot;, # A description about this replication relationship.
471 &quot;destinationVolume&quot;: &quot;A String&quot;, # Output only. Full name of destination volume resource. Example : &quot;projects/{project}/locations/{location}/volumes/{volume_id}&quot;
472 &quot;destinationVolumeParameters&quot;: { # DestinationVolumeParameters specify input parameters used for creating destination volume. # Required. Input only. Destination volume parameters
473 &quot;description&quot;: &quot;A String&quot;, # Description for the destination volume.
474 &quot;shareName&quot;: &quot;A String&quot;, # Destination volume&#x27;s share name. If not specified, source volume&#x27;s share name will be used.
475 &quot;storagePool&quot;: &quot;A String&quot;, # Required. Existing destination StoragePool name.
476 &quot;tieringPolicy&quot;: { # Defines tiering policy for the volume. # Optional. Tiering policy for the volume.
477 &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.
478 &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.
479 &quot;tierAction&quot;: &quot;A String&quot;, # Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
480 },
481 &quot;volumeId&quot;: &quot;A String&quot;, # Desired destination volume resource id. If not specified, source volume&#x27;s resource id will be used. This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
482 },
483 &quot;healthy&quot;: True or False, # Output only. Condition of the relationship. Can be one of the following: - true: The replication relationship is healthy. It has not missed the most recent scheduled transfer. - false: The replication relationship is not healthy. It has missed the most recent scheduled transfer.
484 &quot;hybridPeeringDetails&quot;: { # HybridPeeringDetails contains details about the hybrid peering. # Output only. Hybrid peering details.
485 &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.
486 &quot;commandExpiryTime&quot;: &quot;A String&quot;, # Output only. Expiration time for the peering command to be executed on user&#x27;s ONTAP.
487 &quot;passphrase&quot;: &quot;A String&quot;, # Output only. Temporary passphrase generated to accept cluster peering command.
488 &quot;peerClusterName&quot;: &quot;A String&quot;, # Output only. Name of the user&#x27;s local source cluster to be peered with the destination cluster.
489 &quot;peerSvmName&quot;: &quot;A String&quot;, # Output only. Name of the user&#x27;s local source vserver svm to be peered with the destination vserver svm.
490 &quot;peerVolumeName&quot;: &quot;A String&quot;, # Output only. Name of the user&#x27;s local source volume to be peered with the destination volume.
491 &quot;subnetIp&quot;: &quot;A String&quot;, # Output only. IP address of the subnet.
492 },
493 &quot;hybridReplicationType&quot;: &quot;A String&quot;, # Output only. Type of the hybrid replication.
494 &quot;hybridReplicationUserCommands&quot;: { # UserCommands contains the commands to be executed by the customer. # Output only. Copy pastable snapmirror commands to be executed on onprem cluster by the customer.
495 &quot;commands&quot;: [ # Output only. List of commands to be executed by the customer.
496 &quot;A String&quot;,
497 ],
498 },
499 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
500 &quot;a_key&quot;: &quot;A String&quot;,
501 },
502 &quot;mirrorState&quot;: &quot;A String&quot;, # Output only. Indicates the state of mirroring.
503 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Replication. Format: `projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}`.
504 &quot;replicationSchedule&quot;: &quot;A String&quot;, # Required. Indicates the schedule for replication.
505 &quot;role&quot;: &quot;A String&quot;, # Output only. Indicates whether this points to source or destination.
506 &quot;sourceVolume&quot;: &quot;A String&quot;, # Output only. Full name of source volume resource. Example : &quot;projects/{project}/locations/{location}/volumes/{volume_id}&quot;
507 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the replication.
508 &quot;stateDetails&quot;: &quot;A String&quot;, # Output only. State details of the replication.
509 &quot;transferStats&quot;: { # TransferStats reports all statistics related to replication transfer. # Output only. Replication transfer statistics.
510 &quot;lagDuration&quot;: &quot;A String&quot;, # Lag duration indicates the duration by which Destination region volume content lags behind the primary region volume content.
511 &quot;lastTransferBytes&quot;: &quot;A String&quot;, # Last transfer size in bytes.
512 &quot;lastTransferDuration&quot;: &quot;A String&quot;, # Time taken during last transfer.
513 &quot;lastTransferEndTime&quot;: &quot;A String&quot;, # Time when last transfer completed.
514 &quot;lastTransferError&quot;: &quot;A String&quot;, # A message describing the cause of the last transfer failure.
515 &quot;totalTransferDuration&quot;: &quot;A String&quot;, # Cumulative time taken across all transfers for the replication relationship.
516 &quot;transferBytes&quot;: &quot;A String&quot;, # Cumulative bytes transferred so far for the replication relationship.
517 &quot;updateTime&quot;: &quot;A String&quot;, # Time when progress was updated last.
518 },
519 }
520
521 updateMask: string, Required. Mask of fields to update. At least one path must be supplied in this field.
522 x__xgafv: string, V1 error format.
523 Allowed values
524 1 - v1 error format
525 2 - v2 error format
526
527 Returns:
528 An object of the form:
529
530 { # This resource represents a long-running operation that is the result of a network API call.
531 &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.
532 &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.
533 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
534 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
535 {
536 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
537 },
538 ],
539 &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.
540 },
541 &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.
542 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
543 },
544 &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}`.
545 &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`.
546 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
547 },
548 }</pre>
549 </div>
550
551 <div class="method">
552 <code class="details" id="resume">resume(name, body=None, x__xgafv=None)</code>
553 <pre>Resume Cross Region Replication.
554
555 Args:
556 name: string, Required. The resource name of the replication, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. (required)
557 body: object, The request body.
558 The object takes the form of:
559
560 { # ResumeReplicationRequest resumes a stopped replication.
561 }
562
563 x__xgafv: string, V1 error format.
564 Allowed values
565 1 - v1 error format
566 2 - v2 error format
567
568 Returns:
569 An object of the form:
570
571 { # This resource represents a long-running operation that is the result of a network API call.
572 &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.
573 &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.
574 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
575 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
576 {
577 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
578 },
579 ],
580 &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.
581 },
582 &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.
583 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
584 },
585 &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}`.
586 &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`.
587 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
588 },
589 }</pre>
590 </div>
591
592 <div class="method">
593 <code class="details" id="reverseDirection">reverseDirection(name, body=None, x__xgafv=None)</code>
594 <pre>Reverses direction of replication. Source becomes destination and destination becomes source.
595
596 Args:
597 name: string, Required. The resource name of the replication, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. (required)
598 body: object, The request body.
599 The object takes the form of:
600
601 { # ReverseReplicationDirectionRequest reverses direction of replication. Source becomes destination and destination becomes source.
602 }
603
604 x__xgafv: string, V1 error format.
605 Allowed values
606 1 - v1 error format
607 2 - v2 error format
608
609 Returns:
610 An object of the form:
611
612 { # This resource represents a long-running operation that is the result of a network API call.
613 &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.
614 &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.
615 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
616 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
617 {
618 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
619 },
620 ],
621 &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.
622 },
623 &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.
624 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
625 },
626 &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}`.
627 &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`.
628 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
629 },
630 }</pre>
631 </div>
632
633 <div class="method">
634 <code class="details" id="stop">stop(name, body=None, x__xgafv=None)</code>
635 <pre>Stop Cross Region Replication.
636
637 Args:
638 name: string, Required. The resource name of the replication, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. (required)
639 body: object, The request body.
640 The object takes the form of:
641
642 { # StopReplicationRequest stops a replication until resumed.
643 &quot;force&quot;: True or False, # Indicates whether to stop replication forcefully while data transfer is in progress. Warning! if force is true, this will abort any current transfers and can lead to data loss due to partial transfer. If force is false, stop replication will fail while data transfer is in progress and you will need to retry later.
644 }
645
646 x__xgafv: string, V1 error format.
647 Allowed values
648 1 - v1 error format
649 2 - v2 error format
650
651 Returns:
652 An object of the form:
653
654 { # This resource represents a long-running operation that is the result of a network API call.
655 &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.
656 &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.
657 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
658 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
659 {
660 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
661 },
662 ],
663 &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.
664 },
665 &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.
666 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
667 },
668 &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}`.
669 &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`.
670 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
671 },
672 }</pre>
673 </div>
674
675 <div class="method">
676 <code class="details" id="sync">sync(name, body=None, x__xgafv=None)</code>
677 <pre>Syncs the replication. This will invoke one time volume data transfer from source to destination.
678
679 Args:
680 name: string, Required. The resource name of the replication, in the format of projects/{project_id}/locations/{location}/volumes/{volume_id}/replications/{replication_id}. (required)
681 body: object, The request body.
682 The object takes the form of:
683
684 { # SyncReplicationRequest syncs the replication from source to destination.
685 }
686
687 x__xgafv: string, V1 error format.
688 Allowed values
689 1 - v1 error format
690 2 - v2 error format
691
692 Returns:
693 An object of the form:
694
695 { # This resource represents a long-running operation that is the result of a network API call.
696 &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.
697 &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.
698 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
699 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
700 {
701 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
702 },
703 ],
704 &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.
705 },
706 &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.
707 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
708 },
709 &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}`.
710 &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`.
711 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
712 },
713 }</pre>
714 </div>
715
716 </body></html>