ResourcePolicy class

Represents a Resource Policy resource.

You can use resource policies to schedule actions for some Compute Engine resources. For example, you can use them to schedule persistent disk snapshots.

Constructors

ResourcePolicy({String? creationTimestamp, String? description, ResourcePolicyDiskConsistencyGroupPolicy? diskConsistencyGroupPolicy, ResourcePolicyGroupPlacementPolicy? groupPlacementPolicy, String? id, ResourcePolicyInstanceSchedulePolicy? instanceSchedulePolicy, String? kind, String? name, String? region, ResourcePolicyResourceStatus? resourceStatus, String? selfLink, ResourcePolicySnapshotSchedulePolicy? snapshotSchedulePolicy, String? status})
ResourcePolicy.fromJson(Map json_)

Properties

creationTimestamp String?
Creation timestamp in RFC3339 text format.
getter/setter pair
description String?
getter/setter pair
diskConsistencyGroupPolicy ResourcePolicyDiskConsistencyGroupPolicy?
Resource policy for disk consistency groups.
getter/setter pair
groupPlacementPolicy ResourcePolicyGroupPlacementPolicy?
Resource policy for instances for placement configuration.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
The unique identifier for the resource.
getter/setter pair
instanceSchedulePolicy ResourcePolicyInstanceSchedulePolicy?
Resource policy for scheduling instance operations.
getter/setter pair
kind String?
Type of the resource.
getter/setter pair
name String?
The name of the resource, provided by the client when initially creating the resource.
getter/setter pair
region String?
getter/setter pair
resourceStatus ResourcePolicyResourceStatus?
The system status of the resource policy.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
Server-defined fully-qualified URL for this resource.
getter/setter pair
snapshotSchedulePolicy ResourcePolicySnapshotSchedulePolicy?
Resource policy for persistent disks for creating snapshots.
getter/setter pair
status String?
The status of resource policy creation.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited