Add support for Instance schedules to Google compute resource policy (#4779) (#418)

* Add instance_schedule_policy to google_compute_resource_policy

* Add description to google_compute_resource_policy

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2021-05-18 11:23:27 -07:00 committed by GitHub
commit 1b378d203f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 227 additions and 1 deletions

View file

@ -129,6 +129,12 @@ resources:
letter, or digit, except the last character, which cannot be a dash.
returned: success
type: str
description:
description:
- An optional description of this resource. Provide this property when you create
the resource.
returned: success
type: str
snapshotSchedulePolicy:
description:
- Policy for creating snapshots of persistent disks.
@ -270,6 +276,50 @@ resources:
the resource policy attached.
returned: success
type: str
instanceSchedulePolicy:
description:
- Resource policy for scheduling instance operations.
returned: success
type: complex
contains:
vmStartSchedule:
description:
- Specifies the schedule for starting instances.
returned: success
type: complex
contains:
schedule:
description:
- Specifies the frequency for the operation, using the unix-cron format.
returned: success
type: str
vmStopSchedule:
description:
- Specifies the schedule for stopping instances.
returned: success
type: complex
contains:
schedule:
description:
- Specifies the frequency for the operation, using the unix-cron format.
returned: success
type: str
timeZone:
description:
- 'Specifies the time zone to be used in interpreting the schedule. The
value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database.'
returned: success
type: str
startTime:
description:
- The start time of the schedule. The timestamp is an RFC3339 string.
returned: success
type: str
expirationTime:
description:
- The expiration time of the schedule. The timestamp is an RFC3339 string.
returned: success
type: str
region:
description:
- Region where resource policy resides.