Skip to content

Commit 5ac6351

Browse files
Modify the doc for google_compute_resource_policy (#8339) (#15199)
Signed-off-by: Modular Magician <[email protected]>
1 parent cbc0775 commit 5ac6351

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.changelog/8339.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
docs: modify the doc for the field `daily_schedule. days_in_schedule` in the resource `google_compute_resource_policy `
3+
```

google/services/compute/resource_compute_resource_policy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ from the tz database: http://en.wikipedia.org/wiki/Tz_database.`,
222222
Type: schema.TypeInt,
223223
Required: true,
224224
ForceNew: true,
225-
Description: `The number of days between snapshots.`,
225+
Description: `Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle. Days in cycle for snapshot schedule policy must be 1.`,
226226
},
227227
"start_time": {
228228
Type: schema.TypeString,

website/docs/r/compute_resource_policy.html.markdown

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ description: |-
2222
A policy that can be attached to a resource to specify or schedule actions on that resource.
2323

2424

25+
To get more information about ResourcePolicy, see:
26+
27+
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/resourcePolicies)
2528

2629
<div class = "oics-button" style="float: right; margin: 0 0 -15px">
2730
<a href="https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgithub.jpy.wang%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_working_dir=resource_policy_basic&cloudshell_image=gcr.io%2Fgraphite-cloud-shell-images%2Fterraform%3Alatest&open_in_editor=main.tf&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md" target="_blank">
@@ -297,7 +300,7 @@ The following arguments are supported:
297300

298301
* `days_in_cycle` -
299302
(Required)
300-
The number of days between snapshots.
303+
Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle. Days in cycle for snapshot schedule policy must be 1.
301304

302305
* `start_time` -
303306
(Required)

0 commit comments

Comments
 (0)