gcp_compute_resource_policy

ancestors

Type: UNORDERED_LIST_STRING

creation_timestamp

Type: TIMESTAMP
Provider name: creationTimestamp
Description: [Output Only] Creation timestamp in RFC3339 text format.

description

Type: STRING
Provider name: description

disk_consistency_group_policy

Type: STRUCT
Provider name: diskConsistencyGroupPolicy
Description: Resource policy for disk consistency groups.

gcp_status

Type: STRING
Provider name: status
Description: [Output Only] The status of resource policy creation.
Possible values:

  • CREATING - Resource policy is being created.
  • DELETING - Resource policy is being deleted.
  • EXPIRED - Resource policy is expired and will not run again.
  • INVALID
  • READY - Resource policy is ready to be used.

group_placement_policy

Type: STRUCT
Provider name: groupPlacementPolicy
Description: Resource policy for instances for placement configuration.

  • availability_domain_count
    Type: INT32
    Provider name: availabilityDomainCount
    Description: The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network.
  • collocation
    Type: STRING
    Provider name: collocation
    Description: Specifies network collocation
    Possible values:
    • COLLOCATED
    • UNSPECIFIED_COLLOCATION
  • vm_count
    Type: INT32
    Provider name: vmCount
    Description: Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.

id

Type: STRING
Provider name: id
Description: [Output Only] The unique identifier for the resource. This identifier is defined by the server.

instance_schedule_policy

Type: STRUCT
Provider name: instanceSchedulePolicy
Description: Resource policy for scheduling instance operations.

  • expiration_time
    Type: STRING
    Provider name: expirationTime
    Description: The expiration time of the schedule. The timestamp is an RFC3339 string.
  • start_time
    Type: STRING
    Provider name: startTime
    Description: The start time of the schedule. The timestamp is an RFC3339 string.
  • time_zone
    Type: STRING
    Provider name: timeZone
    Description: Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database.
  • vm_start_schedule
    Type: STRUCT
    Provider name: vmStartSchedule
    Description: Specifies the schedule for starting instances.
    • schedule
      Type: STRING
      Provider name: schedule
      Description: Specifies the frequency for the operation, using the unix-cron format.
  • vm_stop_schedule
    Type: STRUCT
    Provider name: vmStopSchedule
    Description: Specifies the schedule for stopping instances.
    • schedule
      Type: STRING
      Provider name: schedule
      Description: Specifies the frequency for the operation, using the unix-cron format.

kind

Type: STRING
Provider name: kind
Description: [Output Only] Type of the resource. Always compute#resource_policies for resource policies.

labels

Type: UNORDERED_LIST_STRING

name

Type: STRING
Provider name: name
Description: The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

organization_id

Type: STRING

parent

Type: STRING

project_id

Type: STRING

project_number

Type: STRING

region

Type: STRING
Provider name: region

resource_name

Type: STRING

resource_status

Type: STRUCT
Provider name: resourceStatus
Description: [Output Only] The system status of the resource policy.

  • instance_schedule_policy
    Type: STRUCT
    Provider name: instanceSchedulePolicy
    Description: [Output Only] Specifies a set of output values reffering to the instance_schedule_policy system status. This field should have the same name as corresponding policy field.
    • last_run_start_time
      Type: STRING
      Provider name: lastRunStartTime
      Description: [Output Only] The last time the schedule successfully ran. The timestamp is an RFC3339 string.
    • next_run_start_time
      Type: STRING
      Provider name: nextRunStartTime
      Description: [Output Only] The next time the schedule is planned to run. The actual time might be slightly different. The timestamp is an RFC3339 string.

Type: STRING
Provider name: selfLink
Description: [Output Only] Server-defined fully-qualified URL for this resource.

snapshot_schedule_policy

Type: STRUCT
Provider name: snapshotSchedulePolicy
Description: Resource policy for persistent disks for creating snapshots.

  • retention_policy
    Type: STRUCT
    Provider name: retentionPolicy
    Description: Retention policy applied to snapshots created by this resource policy.
    • max_retention_days
      Type: INT32
      Provider name: maxRetentionDays
      Description: Maximum age of the snapshot that is allowed to be kept.
    • on_source_disk_delete
      Type: STRING
      Provider name: onSourceDiskDelete
      Description: Specifies the behavior to apply to scheduled snapshots when the source disk is deleted.
      Possible values:
      • APPLY_RETENTION_POLICY
      • KEEP_AUTO_SNAPSHOTS
      • UNSPECIFIED_ON_SOURCE_DISK_DELETE
  • schedule
    Type: STRUCT
    Provider name: schedule
    Description: A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to perform on this VM and when. Schedule that is applied to disks covered by this policy.
    • daily_schedule
      Type: STRUCT
      Provider name: dailySchedule
      • days_in_cycle
        Type: INT32
        Provider name: daysInCycle
        Description: Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle.
      • duration
        Type: STRING
        Provider name: duration
        Description: [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario.
      • start_time
        Type: STRING
        Provider name: startTime
        Description: Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
    • hourly_schedule
      Type: STRUCT
      Provider name: hourlySchedule
      • duration
        Type: STRING
        Provider name: duration
        Description: [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
      • hours_in_cycle
        Type: INT32
        Provider name: hoursInCycle
        Description: Defines a schedule with units measured in hours. The value determines how many hours pass between the start of each cycle.
      • start_time
        Type: STRING
        Provider name: startTime
        Description: Time within the window to start the operations. It must be in format “HH:MM”, where HH : [00-23] and MM : [00-00] GMT.
    • weekly_schedule
      Type: STRUCT
      Provider name: weeklySchedule
      • day_of_weeks
        Type: UNORDERED_LIST_STRUCT
        Provider name: dayOfWeeks
        Description: Up to 7 intervals/windows, one for each day of the week.
        • day
          Type: STRING
          Provider name: day
          Description: Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.
          Possible values:
          • FRIDAY
          • INVALID
          • MONDAY
          • SATURDAY
          • SUNDAY
          • THURSDAY
          • TUESDAY
          • WEDNESDAY
        • duration
          Type: STRING
          Provider name: duration
          Description: [Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario.
        • start_time
          Type: STRING
          Provider name: startTime
          Description: Time within the window to start the operations. It must be in format “HH:MM”, where HH : [00-23] and MM : [00-00] GMT.
  • snapshot_properties
    Type: STRUCT
    Provider name: snapshotProperties
    Description: Properties with which snapshots are created such as labels, encryption keys.
    • chain_name
      Type: STRING
      Provider name: chainName
      Description: Chain name that the snapshot is created in.
    • guest_flush
      Type: BOOLEAN
      Provider name: guestFlush
      Description: Indication to perform a ‘guest aware’ snapshot.
    • storage_locations
      Type: UNORDERED_LIST_STRING
      Provider name: storageLocations
      Description: Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional).

tags

Type: UNORDERED_LIST_STRING

PREVIEWING: guacbot/translation-pipeline