Debian Codegraph @

docs/dyn/netapp_v1.projects.locations.backupPolicies.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.backupPolicies.html">backupPolicies</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, backupPolicyId=None, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates new backup policy</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Warning! This operation will permanently delete the backup policy.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Returns the description of the specified backup policy by backup_policy_id.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Returns list of all available backup policies.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates settings of a specific backup policy.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, backupPolicyId=None, body=None, x__xgafv=None)</code>
106 <pre>Creates new backup policy
107
108 Args:
109 parent: string, Required. The location to create the backup policies of, in the format `projects/{project_id}/locations/{location}` (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Backup Policy.
114 &quot;assignedVolumeCount&quot;: 42, # Output only. The total number of volumes assigned by this backup policy.
115 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the backup policy was created.
116 &quot;dailyBackupLimit&quot;: 42, # Number of daily backups to keep. Note that the minimum daily backup limit is 2.
117 &quot;description&quot;: &quot;A String&quot;, # Description of the backup policy.
118 &quot;enabled&quot;: True or False, # If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level. If not specified, default is true.
119 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
120 &quot;a_key&quot;: &quot;A String&quot;,
121 },
122 &quot;monthlyBackupLimit&quot;: 42, # Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
123 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the backup policy. Format: `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
124 &quot;state&quot;: &quot;A String&quot;, # Output only. The backup policy state.
125 &quot;weeklyBackupLimit&quot;: 42, # Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
126 }
127
128 backupPolicyId: string, Required. The ID to use for the backup policy. The ID must be unique within the specified location. 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.
129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133
134 Returns:
135 An object of the form:
136
137 { # This resource represents a long-running operation that is the result of a network API call.
138 &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.
139 &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.
140 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
141 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
142 {
143 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
144 },
145 ],
146 &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.
147 },
148 &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.
149 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
150 },
151 &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}`.
152 &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`.
153 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
154 },
155 }</pre>
156 </div>
157
158 <div class="method">
159 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
160 <pre>Warning! This operation will permanently delete the backup policy.
161
162 Args:
163 name: string, Required. The backup policy resource name, in the format `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}` (required)
164 x__xgafv: string, V1 error format.
165 Allowed values
166 1 - v1 error format
167 2 - v2 error format
168
169 Returns:
170 An object of the form:
171
172 { # This resource represents a long-running operation that is the result of a network API call.
173 &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.
174 &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.
175 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
176 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
177 {
178 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
179 },
180 ],
181 &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.
182 },
183 &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.
184 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
185 },
186 &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}`.
187 &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`.
188 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
189 },
190 }</pre>
191 </div>
192
193 <div class="method">
194 <code class="details" id="get">get(name, x__xgafv=None)</code>
195 <pre>Returns the description of the specified backup policy by backup_policy_id.
196
197 Args:
198 name: string, Required. The backupPolicy resource name, in the format `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}` (required)
199 x__xgafv: string, V1 error format.
200 Allowed values
201 1 - v1 error format
202 2 - v2 error format
203
204 Returns:
205 An object of the form:
206
207 { # Backup Policy.
208 &quot;assignedVolumeCount&quot;: 42, # Output only. The total number of volumes assigned by this backup policy.
209 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the backup policy was created.
210 &quot;dailyBackupLimit&quot;: 42, # Number of daily backups to keep. Note that the minimum daily backup limit is 2.
211 &quot;description&quot;: &quot;A String&quot;, # Description of the backup policy.
212 &quot;enabled&quot;: True or False, # If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level. If not specified, default is true.
213 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
214 &quot;a_key&quot;: &quot;A String&quot;,
215 },
216 &quot;monthlyBackupLimit&quot;: 42, # Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
217 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the backup policy. Format: `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
218 &quot;state&quot;: &quot;A String&quot;, # Output only. The backup policy state.
219 &quot;weeklyBackupLimit&quot;: 42, # Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
220 }</pre>
221 </div>
222
223 <div class="method">
224 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
225 <pre>Returns list of all available backup policies.
226
227 Args:
228 parent: string, Required. Parent value for ListBackupPoliciesRequest (required)
229 filter: string, Filtering results
230 orderBy: string, Hint for how to order the results
231 pageSize: integer, Requested page size. Server may return fewer items than requested. If unspecified, the server will pick an appropriate default.
232 pageToken: string, A token identifying a page of results the server should return.
233 x__xgafv: string, V1 error format.
234 Allowed values
235 1 - v1 error format
236 2 - v2 error format
237
238 Returns:
239 An object of the form:
240
241 { # ListBackupPoliciesResponse contains all the backup policies requested.
242 &quot;backupPolicies&quot;: [ # The list of backup policies.
243 { # Backup Policy.
244 &quot;assignedVolumeCount&quot;: 42, # Output only. The total number of volumes assigned by this backup policy.
245 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the backup policy was created.
246 &quot;dailyBackupLimit&quot;: 42, # Number of daily backups to keep. Note that the minimum daily backup limit is 2.
247 &quot;description&quot;: &quot;A String&quot;, # Description of the backup policy.
248 &quot;enabled&quot;: True or False, # If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level. If not specified, default is true.
249 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
250 &quot;a_key&quot;: &quot;A String&quot;,
251 },
252 &quot;monthlyBackupLimit&quot;: 42, # Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
253 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the backup policy. Format: `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
254 &quot;state&quot;: &quot;A String&quot;, # Output only. The backup policy state.
255 &quot;weeklyBackupLimit&quot;: 42, # Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
256 },
257 ],
258 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
259 &quot;unreachable&quot;: [ # Locations that could not be reached.
260 &quot;A String&quot;,
261 ],
262 }</pre>
263 </div>
264
265 <div class="method">
266 <code class="details" id="list_next">list_next()</code>
267 <pre>Retrieves the next page of results.
268
269 Args:
270 previous_request: The request for the previous page. (required)
271 previous_response: The response from the request for the previous page. (required)
272
273 Returns:
274 A request object that you can call &#x27;execute()&#x27; on to request the next
275 page. Returns None if there are no more items in the collection.
276 </pre>
277 </div>
278
279 <div class="method">
280 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
281 <pre>Updates settings of a specific backup policy.
282
283 Args:
284 name: string, Identifier. The resource name of the backup policy. Format: `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`. (required)
285 body: object, The request body.
286 The object takes the form of:
287
288 { # Backup Policy.
289 &quot;assignedVolumeCount&quot;: 42, # Output only. The total number of volumes assigned by this backup policy.
290 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the backup policy was created.
291 &quot;dailyBackupLimit&quot;: 42, # Number of daily backups to keep. Note that the minimum daily backup limit is 2.
292 &quot;description&quot;: &quot;A String&quot;, # Description of the backup policy.
293 &quot;enabled&quot;: True or False, # If enabled, make backups automatically according to the schedules. This will be applied to all volumes that have this policy attached and enforced on volume level. If not specified, default is true.
294 &quot;labels&quot;: { # Resource labels to represent user provided metadata.
295 &quot;a_key&quot;: &quot;A String&quot;,
296 },
297 &quot;monthlyBackupLimit&quot;: 42, # Number of monthly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
298 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the backup policy. Format: `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`.
299 &quot;state&quot;: &quot;A String&quot;, # Output only. The backup policy state.
300 &quot;weeklyBackupLimit&quot;: 42, # Number of weekly backups to keep. Note that the sum of daily, weekly and monthly backups should be greater than 1.
301 }
302
303 updateMask: string, Required. Field mask is used to specify the fields to be overwritten in the Backup Policy 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.
304 x__xgafv: string, V1 error format.
305 Allowed values
306 1 - v1 error format
307 2 - v2 error format
308
309 Returns:
310 An object of the form:
311
312 { # This resource represents a long-running operation that is the result of a network API call.
313 &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.
314 &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.
315 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
316 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
317 {
318 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
319 },
320 ],
321 &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.
322 },
323 &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.
324 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
325 },
326 &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}`.
327 &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`.
328 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
329 },
330 }</pre>
331 </div>
332
333 </body></html>