Debian Codegraph @

docs/dyn/backupdr_v1.projects.locations.backupPlans.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="backupdr_v1.html">Backup and DR Service API</a> . <a href="backupdr_v1.projects.html">projects</a> . <a href="backupdr_v1.projects.locations.html">locations</a> . <a href="backupdr_v1.projects.locations.backupPlans.html">backupPlans</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="backupdr_v1.projects.locations.backupPlans.revisions.html">revisions()</a></code>
79 </p>
80 <p class="firstline">Returns the revisions Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, backupPlanId=None, body=None, requestId=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Create a BackupPlan</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes a single BackupPlan.</p>
91 <p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93 <p class="firstline">Gets details of a single BackupPlan.</p>
94 <p class="toc_element">
95 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Lists BackupPlans in a given project and location.</p>
97 <p class="toc_element">
98 <code><a href="#list_next">list_next()</a></code></p>
99 <p class="firstline">Retrieves the next page of results.</p>
100 <p class="toc_element">
101 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
102 <p class="firstline">Update a BackupPlan.</p>
103 <h3>Method Details</h3>
104 <div class="method">
105 <code class="details" id="close">close()</code>
106 <pre>Close httplib2 connections.</pre>
107 </div>
108
109 <div class="method">
110 <code class="details" id="create">create(parent, backupPlanId=None, body=None, requestId=None, x__xgafv=None)</code>
111 <pre>Create a BackupPlan
112
113 Args:
114 parent: string, Required. The `BackupPlan` project and location in the format `projects/{project}/locations/{location}`. In Google Cloud Backup and DR locations map to Google Cloud regions, for example **us-central1**. (required)
115 body: object, The request body.
116 The object takes the form of:
117
118 { # A `BackupPlan` specifies some common fields, such as `description` as well as one or more `BackupRule` messages. Each `BackupRule` has a retention policy and defines a schedule by which the system is to perform backup workloads.
119 &quot;backupRules&quot;: [ # Optional. The backup rules for this `BackupPlan`.
120 { # `BackupRule` binds the backup schedule to a retention policy.
121 &quot;backupRetentionDays&quot;: 42, # Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault. Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum and maximum values are workload specific for all other rules. Note: Longer retention can lead to higher storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.
122 &quot;ruleId&quot;: &quot;A String&quot;, # Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is unique per `BackupPlan`.The `rule_id` must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /a-z{,62}/.
123 &quot;standardSchedule&quot;: { # `StandardSchedule` defines a schedule that run within the confines of a defined window of days. We can define recurrence type for schedule as HOURLY, DAILY, WEEKLY, MONTHLY or YEARLY. # Optional. Defines a schedule that runs within the confines of a defined window of time.
124 &quot;backupWindow&quot;: { # `BackupWindow` defines a window of the day during which backup jobs will run. # Required. A BackupWindow defines the window of day during which backup jobs will run. Jobs are queued at the beginning of the window and will be marked as `NOT_RUN` if they do not start by the end of the window. Note: running jobs will not be cancelled at the end of the window.
125 &quot;endHourOfDay&quot;: 42, # Required. The hour of day (1-24) when the window end for example if value of end hour of day is 10 that mean backup window end time is 10:00. End hour of day should be greater than start hour of day. 0 &lt;= start_hour_of_day &lt; end_hour_of_day &lt;= 24 End hour of day is not include in backup window that mean if end_hour_of_day= 10 jobs should start before 10:00.
126 &quot;startHourOfDay&quot;: 42, # Required. The hour of day (0-23) when the window starts for example if value of start hour of day is 6 that mean backup window start at 6:00.
127 },
128 &quot;daysOfMonth&quot;: [ # Optional. Specifies days of months like 1, 5, or 14 on which jobs will run. Values for `days_of_month` are only applicable for `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if other values are supplied.
129 42,
130 ],
131 &quot;daysOfWeek&quot;: [ # Optional. Specifies days of week like, MONDAY or TUESDAY, on which jobs will run. This is required for `recurrence_type`, `WEEKLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `WEEKLY`.
132 &quot;A String&quot;,
133 ],
134 &quot;hourlyFrequency&quot;: 42, # Optional. Specifies frequency for hourly backups. A hourly frequency of 1 means jobs will run every 1 hour from start time till end time defined. This is required for `recurrence_type`, `HOURLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `HOURLY`. The supported values for each resource type are as follows: * `compute.googleapis.com/Instance`: 4-23 * `compute.googleapis.com/Disk`: 1-23 * `sqladmin.googleapis.com/Instance`: 6-23 * `alloydb.googleapis.com/Cluster`: 1-23 * `file.googleapis.com/Instance`: 1-23 Refer to link https://cloud.google.com/backup-disaster-recovery/docs/concepts/cloud_best_practices for more details.
135 &quot;months&quot;: [ # Optional. Specifies the months of year, like `FEBRUARY` and/or `MAY`, on which jobs will run. This field is only applicable when `recurrence_type` is `YEARLY`. A validation error will occur if other values are supplied.
136 &quot;A String&quot;,
137 ],
138 &quot;recurrenceType&quot;: &quot;A String&quot;, # Required. Specifies the `RecurrenceType` for the schedule.
139 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone to be used when interpreting the schedule. The value of this field must be a time zone name from the IANA tz database. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the list of valid timezone names. For example, Europe/Paris.
140 &quot;weekDayOfMonth&quot;: { # `WeekDayOfMonth` defines the week day of the month on which the backups will run. The message combines a `WeekOfMonth` and `DayOfWeek` to produce values like `FIRST`/`MONDAY` or `LAST`/`FRIDAY`. # Optional. Specifies a week day of the month like, FIRST SUNDAY or LAST MONDAY, on which jobs will run. This will be specified by two fields in `WeekDayOfMonth`, one for the day, e.g. `MONDAY`, and one for the week, e.g. `LAST`. This field is only applicable for `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if other values are supplied.
141 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Specifies the day of the week.
142 &quot;weekOfMonth&quot;: &quot;A String&quot;, # Required. Specifies the week of the month.
143 },
144 },
145 },
146 ],
147 &quot;backupVault&quot;: &quot;A String&quot;, # Required. Resource name of backup vault which will be used as storage location for backups. Format: projects/{project}/locations/{location}/backupVaults/{backupvault}
148 &quot;backupVaultServiceAccount&quot;: &quot;A String&quot;, # Output only. The Google Cloud service account to be used by the BackupVault for taking backups. Specify the email address of the Backup Vault Service Account.
149 &quot;computeInstanceBackupPlanProperties&quot;: { # Properties for a compute instance backup plan. # Optional. Defines optional properties specific to backups of compute instance-based resources, such as Compute Engine. This includes settings like whether to perform a guest flush.
150 &quot;guestFlush&quot;: True or False, # Optional. Indicates whether to perform a guest flush operation before taking a compute backup. When set to false, the system will create crash-consistent backups. Default value is false.
151 },
152 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the `BackupPlan` was created.
153 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the `BackupPlan` resource. The description allows for additional details about `BackupPlan` and its use cases to be provided. An example description is the following: &quot;This is a backup plan that performs a daily backup at 6pm and retains data for 3 months&quot;. The description must be at most 2048 characters.
154 &quot;diskBackupPlanProperties&quot;: { # Properties for a disk backup plan. # Optional. Defines optional properties specific to backups of disk-based resources, such as Compute Engine Persistent Disks. This includes settings like whether to perform a guest flush.
155 &quot;guestFlush&quot;: True or False, # Optional. Indicates whether to perform a guest flush operation before taking a disk backup. When set to false, the system will create crash-consistent backups. Default value is false.
156 },
157 &quot;etag&quot;: &quot;A String&quot;, # Optional. `etag` is returned from the service in the response. As a user of the service, you may provide an etag value in this field to prevent stale resources.
158 &quot;labels&quot;: { # Optional. This collection of key/value pairs allows for custom labels to be supplied by the user. Example, {&quot;tag&quot;: &quot;Weekly&quot;}.
159 &quot;a_key&quot;: &quot;A String&quot;,
160 },
161 &quot;logRetentionDays&quot;: &quot;A String&quot;, # Optional. Applicable only for Cloud SQL resource_type. Configures how long logs will be stored. It is defined in “days”. This value should be greater than or equal to minimum enforced log retention duration of the backup vault.
162 &quot;maxCustomOnDemandRetentionDays&quot;: 42, # Optional. Optional field to configure the maximum number of days for which a backup can be retained. This field is only applicable for on-demand backups taken with custom retention value.
163 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the `BackupPlan`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
164 &quot;resourceType&quot;: &quot;A String&quot;, # Required. The resource type to which the `BackupPlan` will be applied. Examples include, &quot;compute.googleapis.com/Instance&quot;, &quot;sqladmin.googleapis.com/Instance&quot;, &quot;alloydb.googleapis.com/Cluster&quot;, &quot;compute.googleapis.com/Disk&quot;.
165 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The user friendly revision ID of the `BackupPlanRevision`. Example: v0, v1, v2, etc.
166 &quot;revisionName&quot;: &quot;A String&quot;, # Output only. The resource id of the `BackupPlanRevision`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`
167 &quot;state&quot;: &quot;A String&quot;, # Output only. The `State` for the `BackupPlan`.
168 &quot;supportedResourceTypes&quot;: [ # Output only. All resource types to which backupPlan can be applied.
169 &quot;A String&quot;,
170 ],
171 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. When the `BackupPlan` was last updated.
172 }
173
174 backupPlanId: string, Required. The name of the `BackupPlan` to create. The name must be unique for the specified project and location.The name must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /a-z{,62}/.
175 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
176 x__xgafv: string, V1 error format.
177 Allowed values
178 1 - v1 error format
179 2 - v2 error format
180
181 Returns:
182 An object of the form:
183
184 { # This resource represents a long-running operation that is the result of a network API call.
185 &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.
186 &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.
187 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
188 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
189 {
190 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
191 },
192 ],
193 &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.
194 },
195 &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.
196 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
197 },
198 &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}`.
199 &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`.
200 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
201 },
202 }</pre>
203 </div>
204
205 <div class="method">
206 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
207 <pre>Deletes a single BackupPlan.
208
209 Args:
210 name: string, Required. The resource name of the `BackupPlan` to delete. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` (required)
211 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
212 x__xgafv: string, V1 error format.
213 Allowed values
214 1 - v1 error format
215 2 - v2 error format
216
217 Returns:
218 An object of the form:
219
220 { # This resource represents a long-running operation that is the result of a network API call.
221 &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.
222 &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.
223 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
224 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
225 {
226 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
227 },
228 ],
229 &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.
230 },
231 &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.
232 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
233 },
234 &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}`.
235 &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`.
236 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
237 },
238 }</pre>
239 </div>
240
241 <div class="method">
242 <code class="details" id="get">get(name, x__xgafv=None)</code>
243 <pre>Gets details of a single BackupPlan.
244
245 Args:
246 name: string, Required. The resource name of the `BackupPlan` to retrieve. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` (required)
247 x__xgafv: string, V1 error format.
248 Allowed values
249 1 - v1 error format
250 2 - v2 error format
251
252 Returns:
253 An object of the form:
254
255 { # A `BackupPlan` specifies some common fields, such as `description` as well as one or more `BackupRule` messages. Each `BackupRule` has a retention policy and defines a schedule by which the system is to perform backup workloads.
256 &quot;backupRules&quot;: [ # Optional. The backup rules for this `BackupPlan`.
257 { # `BackupRule` binds the backup schedule to a retention policy.
258 &quot;backupRetentionDays&quot;: 42, # Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault. Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum and maximum values are workload specific for all other rules. Note: Longer retention can lead to higher storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.
259 &quot;ruleId&quot;: &quot;A String&quot;, # Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is unique per `BackupPlan`.The `rule_id` must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /a-z{,62}/.
260 &quot;standardSchedule&quot;: { # `StandardSchedule` defines a schedule that run within the confines of a defined window of days. We can define recurrence type for schedule as HOURLY, DAILY, WEEKLY, MONTHLY or YEARLY. # Optional. Defines a schedule that runs within the confines of a defined window of time.
261 &quot;backupWindow&quot;: { # `BackupWindow` defines a window of the day during which backup jobs will run. # Required. A BackupWindow defines the window of day during which backup jobs will run. Jobs are queued at the beginning of the window and will be marked as `NOT_RUN` if they do not start by the end of the window. Note: running jobs will not be cancelled at the end of the window.
262 &quot;endHourOfDay&quot;: 42, # Required. The hour of day (1-24) when the window end for example if value of end hour of day is 10 that mean backup window end time is 10:00. End hour of day should be greater than start hour of day. 0 &lt;= start_hour_of_day &lt; end_hour_of_day &lt;= 24 End hour of day is not include in backup window that mean if end_hour_of_day= 10 jobs should start before 10:00.
263 &quot;startHourOfDay&quot;: 42, # Required. The hour of day (0-23) when the window starts for example if value of start hour of day is 6 that mean backup window start at 6:00.
264 },
265 &quot;daysOfMonth&quot;: [ # Optional. Specifies days of months like 1, 5, or 14 on which jobs will run. Values for `days_of_month` are only applicable for `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if other values are supplied.
266 42,
267 ],
268 &quot;daysOfWeek&quot;: [ # Optional. Specifies days of week like, MONDAY or TUESDAY, on which jobs will run. This is required for `recurrence_type`, `WEEKLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `WEEKLY`.
269 &quot;A String&quot;,
270 ],
271 &quot;hourlyFrequency&quot;: 42, # Optional. Specifies frequency for hourly backups. A hourly frequency of 1 means jobs will run every 1 hour from start time till end time defined. This is required for `recurrence_type`, `HOURLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `HOURLY`. The supported values for each resource type are as follows: * `compute.googleapis.com/Instance`: 4-23 * `compute.googleapis.com/Disk`: 1-23 * `sqladmin.googleapis.com/Instance`: 6-23 * `alloydb.googleapis.com/Cluster`: 1-23 * `file.googleapis.com/Instance`: 1-23 Refer to link https://cloud.google.com/backup-disaster-recovery/docs/concepts/cloud_best_practices for more details.
272 &quot;months&quot;: [ # Optional. Specifies the months of year, like `FEBRUARY` and/or `MAY`, on which jobs will run. This field is only applicable when `recurrence_type` is `YEARLY`. A validation error will occur if other values are supplied.
273 &quot;A String&quot;,
274 ],
275 &quot;recurrenceType&quot;: &quot;A String&quot;, # Required. Specifies the `RecurrenceType` for the schedule.
276 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone to be used when interpreting the schedule. The value of this field must be a time zone name from the IANA tz database. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the list of valid timezone names. For example, Europe/Paris.
277 &quot;weekDayOfMonth&quot;: { # `WeekDayOfMonth` defines the week day of the month on which the backups will run. The message combines a `WeekOfMonth` and `DayOfWeek` to produce values like `FIRST`/`MONDAY` or `LAST`/`FRIDAY`. # Optional. Specifies a week day of the month like, FIRST SUNDAY or LAST MONDAY, on which jobs will run. This will be specified by two fields in `WeekDayOfMonth`, one for the day, e.g. `MONDAY`, and one for the week, e.g. `LAST`. This field is only applicable for `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if other values are supplied.
278 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Specifies the day of the week.
279 &quot;weekOfMonth&quot;: &quot;A String&quot;, # Required. Specifies the week of the month.
280 },
281 },
282 },
283 ],
284 &quot;backupVault&quot;: &quot;A String&quot;, # Required. Resource name of backup vault which will be used as storage location for backups. Format: projects/{project}/locations/{location}/backupVaults/{backupvault}
285 &quot;backupVaultServiceAccount&quot;: &quot;A String&quot;, # Output only. The Google Cloud service account to be used by the BackupVault for taking backups. Specify the email address of the Backup Vault Service Account.
286 &quot;computeInstanceBackupPlanProperties&quot;: { # Properties for a compute instance backup plan. # Optional. Defines optional properties specific to backups of compute instance-based resources, such as Compute Engine. This includes settings like whether to perform a guest flush.
287 &quot;guestFlush&quot;: True or False, # Optional. Indicates whether to perform a guest flush operation before taking a compute backup. When set to false, the system will create crash-consistent backups. Default value is false.
288 },
289 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the `BackupPlan` was created.
290 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the `BackupPlan` resource. The description allows for additional details about `BackupPlan` and its use cases to be provided. An example description is the following: &quot;This is a backup plan that performs a daily backup at 6pm and retains data for 3 months&quot;. The description must be at most 2048 characters.
291 &quot;diskBackupPlanProperties&quot;: { # Properties for a disk backup plan. # Optional. Defines optional properties specific to backups of disk-based resources, such as Compute Engine Persistent Disks. This includes settings like whether to perform a guest flush.
292 &quot;guestFlush&quot;: True or False, # Optional. Indicates whether to perform a guest flush operation before taking a disk backup. When set to false, the system will create crash-consistent backups. Default value is false.
293 },
294 &quot;etag&quot;: &quot;A String&quot;, # Optional. `etag` is returned from the service in the response. As a user of the service, you may provide an etag value in this field to prevent stale resources.
295 &quot;labels&quot;: { # Optional. This collection of key/value pairs allows for custom labels to be supplied by the user. Example, {&quot;tag&quot;: &quot;Weekly&quot;}.
296 &quot;a_key&quot;: &quot;A String&quot;,
297 },
298 &quot;logRetentionDays&quot;: &quot;A String&quot;, # Optional. Applicable only for Cloud SQL resource_type. Configures how long logs will be stored. It is defined in “days”. This value should be greater than or equal to minimum enforced log retention duration of the backup vault.
299 &quot;maxCustomOnDemandRetentionDays&quot;: 42, # Optional. Optional field to configure the maximum number of days for which a backup can be retained. This field is only applicable for on-demand backups taken with custom retention value.
300 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the `BackupPlan`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
301 &quot;resourceType&quot;: &quot;A String&quot;, # Required. The resource type to which the `BackupPlan` will be applied. Examples include, &quot;compute.googleapis.com/Instance&quot;, &quot;sqladmin.googleapis.com/Instance&quot;, &quot;alloydb.googleapis.com/Cluster&quot;, &quot;compute.googleapis.com/Disk&quot;.
302 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The user friendly revision ID of the `BackupPlanRevision`. Example: v0, v1, v2, etc.
303 &quot;revisionName&quot;: &quot;A String&quot;, # Output only. The resource id of the `BackupPlanRevision`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`
304 &quot;state&quot;: &quot;A String&quot;, # Output only. The `State` for the `BackupPlan`.
305 &quot;supportedResourceTypes&quot;: [ # Output only. All resource types to which backupPlan can be applied.
306 &quot;A String&quot;,
307 ],
308 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. When the `BackupPlan` was last updated.
309 }</pre>
310 </div>
311
312 <div class="method">
313 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
314 <pre>Lists BackupPlans in a given project and location.
315
316 Args:
317 parent: string, Required. The project and location for which to retrieve `BackupPlans` information. Format: `projects/{project}/locations/{location}`. In Google Cloud Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve backup plans for all locations, use &quot;-&quot; for the `{location}` value. (required)
318 filter: string, Optional. Field match expression used to filter the results.
319 orderBy: string, Optional. Field by which to sort the results.
320 pageSize: integer, Optional. The maximum number of `BackupPlans` to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response&#x27;s next_page_token to determine if there are more instances left to be queried.
321 pageToken: string, Optional. The value of next_page_token received from a previous `ListBackupPlans` call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to `ListBackupPlans` must match the call that provided the page token.
322 x__xgafv: string, V1 error format.
323 Allowed values
324 1 - v1 error format
325 2 - v2 error format
326
327 Returns:
328 An object of the form:
329
330 { # The response message for getting a list of `BackupPlan`.
331 &quot;backupPlans&quot;: [ # The list of `BackupPlans` in the project for the specified location. If the `{location}` value in the request is &quot;-&quot;, the response contains a list of resources from all locations. In case any location is unreachable, the response will only return backup plans in reachable locations and the &#x27;unreachable&#x27; field will be populated with a list of unreachable locations. BackupPlan
332 { # A `BackupPlan` specifies some common fields, such as `description` as well as one or more `BackupRule` messages. Each `BackupRule` has a retention policy and defines a schedule by which the system is to perform backup workloads.
333 &quot;backupRules&quot;: [ # Optional. The backup rules for this `BackupPlan`.
334 { # `BackupRule` binds the backup schedule to a retention policy.
335 &quot;backupRetentionDays&quot;: 42, # Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault. Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum and maximum values are workload specific for all other rules. Note: Longer retention can lead to higher storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.
336 &quot;ruleId&quot;: &quot;A String&quot;, # Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is unique per `BackupPlan`.The `rule_id` must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /a-z{,62}/.
337 &quot;standardSchedule&quot;: { # `StandardSchedule` defines a schedule that run within the confines of a defined window of days. We can define recurrence type for schedule as HOURLY, DAILY, WEEKLY, MONTHLY or YEARLY. # Optional. Defines a schedule that runs within the confines of a defined window of time.
338 &quot;backupWindow&quot;: { # `BackupWindow` defines a window of the day during which backup jobs will run. # Required. A BackupWindow defines the window of day during which backup jobs will run. Jobs are queued at the beginning of the window and will be marked as `NOT_RUN` if they do not start by the end of the window. Note: running jobs will not be cancelled at the end of the window.
339 &quot;endHourOfDay&quot;: 42, # Required. The hour of day (1-24) when the window end for example if value of end hour of day is 10 that mean backup window end time is 10:00. End hour of day should be greater than start hour of day. 0 &lt;= start_hour_of_day &lt; end_hour_of_day &lt;= 24 End hour of day is not include in backup window that mean if end_hour_of_day= 10 jobs should start before 10:00.
340 &quot;startHourOfDay&quot;: 42, # Required. The hour of day (0-23) when the window starts for example if value of start hour of day is 6 that mean backup window start at 6:00.
341 },
342 &quot;daysOfMonth&quot;: [ # Optional. Specifies days of months like 1, 5, or 14 on which jobs will run. Values for `days_of_month` are only applicable for `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if other values are supplied.
343 42,
344 ],
345 &quot;daysOfWeek&quot;: [ # Optional. Specifies days of week like, MONDAY or TUESDAY, on which jobs will run. This is required for `recurrence_type`, `WEEKLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `WEEKLY`.
346 &quot;A String&quot;,
347 ],
348 &quot;hourlyFrequency&quot;: 42, # Optional. Specifies frequency for hourly backups. A hourly frequency of 1 means jobs will run every 1 hour from start time till end time defined. This is required for `recurrence_type`, `HOURLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `HOURLY`. The supported values for each resource type are as follows: * `compute.googleapis.com/Instance`: 4-23 * `compute.googleapis.com/Disk`: 1-23 * `sqladmin.googleapis.com/Instance`: 6-23 * `alloydb.googleapis.com/Cluster`: 1-23 * `file.googleapis.com/Instance`: 1-23 Refer to link https://cloud.google.com/backup-disaster-recovery/docs/concepts/cloud_best_practices for more details.
349 &quot;months&quot;: [ # Optional. Specifies the months of year, like `FEBRUARY` and/or `MAY`, on which jobs will run. This field is only applicable when `recurrence_type` is `YEARLY`. A validation error will occur if other values are supplied.
350 &quot;A String&quot;,
351 ],
352 &quot;recurrenceType&quot;: &quot;A String&quot;, # Required. Specifies the `RecurrenceType` for the schedule.
353 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone to be used when interpreting the schedule. The value of this field must be a time zone name from the IANA tz database. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the list of valid timezone names. For example, Europe/Paris.
354 &quot;weekDayOfMonth&quot;: { # `WeekDayOfMonth` defines the week day of the month on which the backups will run. The message combines a `WeekOfMonth` and `DayOfWeek` to produce values like `FIRST`/`MONDAY` or `LAST`/`FRIDAY`. # Optional. Specifies a week day of the month like, FIRST SUNDAY or LAST MONDAY, on which jobs will run. This will be specified by two fields in `WeekDayOfMonth`, one for the day, e.g. `MONDAY`, and one for the week, e.g. `LAST`. This field is only applicable for `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if other values are supplied.
355 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Specifies the day of the week.
356 &quot;weekOfMonth&quot;: &quot;A String&quot;, # Required. Specifies the week of the month.
357 },
358 },
359 },
360 ],
361 &quot;backupVault&quot;: &quot;A String&quot;, # Required. Resource name of backup vault which will be used as storage location for backups. Format: projects/{project}/locations/{location}/backupVaults/{backupvault}
362 &quot;backupVaultServiceAccount&quot;: &quot;A String&quot;, # Output only. The Google Cloud service account to be used by the BackupVault for taking backups. Specify the email address of the Backup Vault Service Account.
363 &quot;computeInstanceBackupPlanProperties&quot;: { # Properties for a compute instance backup plan. # Optional. Defines optional properties specific to backups of compute instance-based resources, such as Compute Engine. This includes settings like whether to perform a guest flush.
364 &quot;guestFlush&quot;: True or False, # Optional. Indicates whether to perform a guest flush operation before taking a compute backup. When set to false, the system will create crash-consistent backups. Default value is false.
365 },
366 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the `BackupPlan` was created.
367 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the `BackupPlan` resource. The description allows for additional details about `BackupPlan` and its use cases to be provided. An example description is the following: &quot;This is a backup plan that performs a daily backup at 6pm and retains data for 3 months&quot;. The description must be at most 2048 characters.
368 &quot;diskBackupPlanProperties&quot;: { # Properties for a disk backup plan. # Optional. Defines optional properties specific to backups of disk-based resources, such as Compute Engine Persistent Disks. This includes settings like whether to perform a guest flush.
369 &quot;guestFlush&quot;: True or False, # Optional. Indicates whether to perform a guest flush operation before taking a disk backup. When set to false, the system will create crash-consistent backups. Default value is false.
370 },
371 &quot;etag&quot;: &quot;A String&quot;, # Optional. `etag` is returned from the service in the response. As a user of the service, you may provide an etag value in this field to prevent stale resources.
372 &quot;labels&quot;: { # Optional. This collection of key/value pairs allows for custom labels to be supplied by the user. Example, {&quot;tag&quot;: &quot;Weekly&quot;}.
373 &quot;a_key&quot;: &quot;A String&quot;,
374 },
375 &quot;logRetentionDays&quot;: &quot;A String&quot;, # Optional. Applicable only for Cloud SQL resource_type. Configures how long logs will be stored. It is defined in “days”. This value should be greater than or equal to minimum enforced log retention duration of the backup vault.
376 &quot;maxCustomOnDemandRetentionDays&quot;: 42, # Optional. Optional field to configure the maximum number of days for which a backup can be retained. This field is only applicable for on-demand backups taken with custom retention value.
377 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the `BackupPlan`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
378 &quot;resourceType&quot;: &quot;A String&quot;, # Required. The resource type to which the `BackupPlan` will be applied. Examples include, &quot;compute.googleapis.com/Instance&quot;, &quot;sqladmin.googleapis.com/Instance&quot;, &quot;alloydb.googleapis.com/Cluster&quot;, &quot;compute.googleapis.com/Disk&quot;.
379 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The user friendly revision ID of the `BackupPlanRevision`. Example: v0, v1, v2, etc.
380 &quot;revisionName&quot;: &quot;A String&quot;, # Output only. The resource id of the `BackupPlanRevision`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`
381 &quot;state&quot;: &quot;A String&quot;, # Output only. The `State` for the `BackupPlan`.
382 &quot;supportedResourceTypes&quot;: [ # Output only. All resource types to which backupPlan can be applied.
383 &quot;A String&quot;,
384 ],
385 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. When the `BackupPlan` was last updated.
386 },
387 ],
388 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token which may be sent as page_token in a subsequent `ListBackupPlans` call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.
389 &quot;unreachable&quot;: [ # Locations that could not be reached.
390 &quot;A String&quot;,
391 ],
392 }</pre>
393 </div>
394
395 <div class="method">
396 <code class="details" id="list_next">list_next()</code>
397 <pre>Retrieves the next page of results.
398
399 Args:
400 previous_request: The request for the previous page. (required)
401 previous_response: The response from the request for the previous page. (required)
402
403 Returns:
404 A request object that you can call &#x27;execute()&#x27; on to request the next
405 page. Returns None if there are no more items in the collection.
406 </pre>
407 </div>
408
409 <div class="method">
410 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
411 <pre>Update a BackupPlan.
412
413 Args:
414 name: string, Output only. Identifier. The resource name of the `BackupPlan`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}` (required)
415 body: object, The request body.
416 The object takes the form of:
417
418 { # A `BackupPlan` specifies some common fields, such as `description` as well as one or more `BackupRule` messages. Each `BackupRule` has a retention policy and defines a schedule by which the system is to perform backup workloads.
419 &quot;backupRules&quot;: [ # Optional. The backup rules for this `BackupPlan`.
420 { # `BackupRule` binds the backup schedule to a retention policy.
421 &quot;backupRetentionDays&quot;: 42, # Required. Configures the duration for which backup data will be kept. It is defined in “days”. The value should be greater than or equal to minimum enforced retention of the backup vault. Minimum value is 1 and maximum value is 36159 for custom retention on-demand backup. Minimum and maximum values are workload specific for all other rules. Note: Longer retention can lead to higher storage costs post introductory trial. We recommend starting with a short duration of 3 days or less.
422 &quot;ruleId&quot;: &quot;A String&quot;, # Required. Immutable. The unique id of this `BackupRule`. The `rule_id` is unique per `BackupPlan`.The `rule_id` must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens. Pattern, /a-z{,62}/.
423 &quot;standardSchedule&quot;: { # `StandardSchedule` defines a schedule that run within the confines of a defined window of days. We can define recurrence type for schedule as HOURLY, DAILY, WEEKLY, MONTHLY or YEARLY. # Optional. Defines a schedule that runs within the confines of a defined window of time.
424 &quot;backupWindow&quot;: { # `BackupWindow` defines a window of the day during which backup jobs will run. # Required. A BackupWindow defines the window of day during which backup jobs will run. Jobs are queued at the beginning of the window and will be marked as `NOT_RUN` if they do not start by the end of the window. Note: running jobs will not be cancelled at the end of the window.
425 &quot;endHourOfDay&quot;: 42, # Required. The hour of day (1-24) when the window end for example if value of end hour of day is 10 that mean backup window end time is 10:00. End hour of day should be greater than start hour of day. 0 &lt;= start_hour_of_day &lt; end_hour_of_day &lt;= 24 End hour of day is not include in backup window that mean if end_hour_of_day= 10 jobs should start before 10:00.
426 &quot;startHourOfDay&quot;: 42, # Required. The hour of day (0-23) when the window starts for example if value of start hour of day is 6 that mean backup window start at 6:00.
427 },
428 &quot;daysOfMonth&quot;: [ # Optional. Specifies days of months like 1, 5, or 14 on which jobs will run. Values for `days_of_month` are only applicable for `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if other values are supplied.
429 42,
430 ],
431 &quot;daysOfWeek&quot;: [ # Optional. Specifies days of week like, MONDAY or TUESDAY, on which jobs will run. This is required for `recurrence_type`, `WEEKLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `WEEKLY`.
432 &quot;A String&quot;,
433 ],
434 &quot;hourlyFrequency&quot;: 42, # Optional. Specifies frequency for hourly backups. A hourly frequency of 1 means jobs will run every 1 hour from start time till end time defined. This is required for `recurrence_type`, `HOURLY` and is not applicable otherwise. A validation error will occur if a value is supplied and `recurrence_type` is not `HOURLY`. The supported values for each resource type are as follows: * `compute.googleapis.com/Instance`: 4-23 * `compute.googleapis.com/Disk`: 1-23 * `sqladmin.googleapis.com/Instance`: 6-23 * `alloydb.googleapis.com/Cluster`: 1-23 * `file.googleapis.com/Instance`: 1-23 Refer to link https://cloud.google.com/backup-disaster-recovery/docs/concepts/cloud_best_practices for more details.
435 &quot;months&quot;: [ # Optional. Specifies the months of year, like `FEBRUARY` and/or `MAY`, on which jobs will run. This field is only applicable when `recurrence_type` is `YEARLY`. A validation error will occur if other values are supplied.
436 &quot;A String&quot;,
437 ],
438 &quot;recurrenceType&quot;: &quot;A String&quot;, # Required. Specifies the `RecurrenceType` for the schedule.
439 &quot;timeZone&quot;: &quot;A String&quot;, # Required. The time zone to be used when interpreting the schedule. The value of this field must be a time zone name from the IANA tz database. See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the list of valid timezone names. For example, Europe/Paris.
440 &quot;weekDayOfMonth&quot;: { # `WeekDayOfMonth` defines the week day of the month on which the backups will run. The message combines a `WeekOfMonth` and `DayOfWeek` to produce values like `FIRST`/`MONDAY` or `LAST`/`FRIDAY`. # Optional. Specifies a week day of the month like, FIRST SUNDAY or LAST MONDAY, on which jobs will run. This will be specified by two fields in `WeekDayOfMonth`, one for the day, e.g. `MONDAY`, and one for the week, e.g. `LAST`. This field is only applicable for `recurrence_type`, `MONTHLY` and `YEARLY`. A validation error will occur if other values are supplied.
441 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. Specifies the day of the week.
442 &quot;weekOfMonth&quot;: &quot;A String&quot;, # Required. Specifies the week of the month.
443 },
444 },
445 },
446 ],
447 &quot;backupVault&quot;: &quot;A String&quot;, # Required. Resource name of backup vault which will be used as storage location for backups. Format: projects/{project}/locations/{location}/backupVaults/{backupvault}
448 &quot;backupVaultServiceAccount&quot;: &quot;A String&quot;, # Output only. The Google Cloud service account to be used by the BackupVault for taking backups. Specify the email address of the Backup Vault Service Account.
449 &quot;computeInstanceBackupPlanProperties&quot;: { # Properties for a compute instance backup plan. # Optional. Defines optional properties specific to backups of compute instance-based resources, such as Compute Engine. This includes settings like whether to perform a guest flush.
450 &quot;guestFlush&quot;: True or False, # Optional. Indicates whether to perform a guest flush operation before taking a compute backup. When set to false, the system will create crash-consistent backups. Default value is false.
451 },
452 &quot;createTime&quot;: &quot;A String&quot;, # Output only. When the `BackupPlan` was created.
453 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the `BackupPlan` resource. The description allows for additional details about `BackupPlan` and its use cases to be provided. An example description is the following: &quot;This is a backup plan that performs a daily backup at 6pm and retains data for 3 months&quot;. The description must be at most 2048 characters.
454 &quot;diskBackupPlanProperties&quot;: { # Properties for a disk backup plan. # Optional. Defines optional properties specific to backups of disk-based resources, such as Compute Engine Persistent Disks. This includes settings like whether to perform a guest flush.
455 &quot;guestFlush&quot;: True or False, # Optional. Indicates whether to perform a guest flush operation before taking a disk backup. When set to false, the system will create crash-consistent backups. Default value is false.
456 },
457 &quot;etag&quot;: &quot;A String&quot;, # Optional. `etag` is returned from the service in the response. As a user of the service, you may provide an etag value in this field to prevent stale resources.
458 &quot;labels&quot;: { # Optional. This collection of key/value pairs allows for custom labels to be supplied by the user. Example, {&quot;tag&quot;: &quot;Weekly&quot;}.
459 &quot;a_key&quot;: &quot;A String&quot;,
460 },
461 &quot;logRetentionDays&quot;: &quot;A String&quot;, # Optional. Applicable only for Cloud SQL resource_type. Configures how long logs will be stored. It is defined in “days”. This value should be greater than or equal to minimum enforced log retention duration of the backup vault.
462 &quot;maxCustomOnDemandRetentionDays&quot;: 42, # Optional. Optional field to configure the maximum number of days for which a backup can be retained. This field is only applicable for on-demand backups taken with custom retention value.
463 &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. The resource name of the `BackupPlan`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}`
464 &quot;resourceType&quot;: &quot;A String&quot;, # Required. The resource type to which the `BackupPlan` will be applied. Examples include, &quot;compute.googleapis.com/Instance&quot;, &quot;sqladmin.googleapis.com/Instance&quot;, &quot;alloydb.googleapis.com/Cluster&quot;, &quot;compute.googleapis.com/Disk&quot;.
465 &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The user friendly revision ID of the `BackupPlanRevision`. Example: v0, v1, v2, etc.
466 &quot;revisionName&quot;: &quot;A String&quot;, # Output only. The resource id of the `BackupPlanRevision`. Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`
467 &quot;state&quot;: &quot;A String&quot;, # Output only. The `State` for the `BackupPlan`.
468 &quot;supportedResourceTypes&quot;: [ # Output only. All resource types to which backupPlan can be applied.
469 &quot;A String&quot;,
470 ],
471 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. When the `BackupPlan` was last updated.
472 }
473
474 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
475 updateMask: string, Required. The list of fields to update. Field mask is used to specify the fields to be overwritten in the BackupPlan 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 the request will fail. Currently, these fields are supported in update: description, schedules, retention period, adding and removing Backup Rules.
476 x__xgafv: string, V1 error format.
477 Allowed values
478 1 - v1 error format
479 2 - v2 error format
480
481 Returns:
482 An object of the form:
483
484 { # This resource represents a long-running operation that is the result of a network API call.
485 &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.
486 &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.
487 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
488 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
489 {
490 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
491 },
492 ],
493 &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.
494 },
495 &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.
496 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
497 },
498 &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}`.
499 &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`.
500 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
501 },
502 }</pre>
503 </div>
504
505 </body></html>