REST Resource: projects.locations.previews.resourceChanges

Resource: ResourceChange

A resource change represents a change to a resource in the state file.

JSON representation
{
  "name": string,
  "terraformInfo": {
    object (ResourceChangeTerraformInfo)
  },
  "intent": enum (Intent),
  "propertyChanges": [
    {
      object (PropertyChange)
    }
  ]
}
Fields
name

string

Identifier. The name of the resource change. Format: 'projects/{projectId}/locations/{location}/previews/{preview}/resourceChanges/{resourceChange}'.

terraformInfo

object (ResourceChangeTerraformInfo)

Output only. Terraform info of the resource change.

intent

enum (Intent)

Output only. The intent of the resource change.

propertyChanges[]

object (PropertyChange)

Output only. The property changes of the resource change.

ResourceChangeTerraformInfo

Terraform info of a ResourceChange.

JSON representation
{
  "address": string,
  "type": string,
  "resourceName": string,
  "provider": string,
  "actions": [
    string
  ]
}
Fields
address

string

Output only. TF resource address that uniquely identifies the resource.

type

string

Output only. TF resource type.

resourceName

string

Output only. TF resource name.

provider

string

Output only. TF resource provider.

actions[]

string

Output only. TF resource actions.

Intent

Possible intent of the resource change.

Enums
INTENT_UNSPECIFIED The default value.
CREATE The resource will be created.
UPDATE The resource will be updated.
DELETE The resource will be deleted.
RECREATE The resource will be recreated.
UNCHANGED The resource will be untouched.

PropertyChange

A property change represents a change to a property in the state file.

JSON representation
{
  "path": string,
  "beforeSensitivePaths": [
    string
  ],
  "before": value,
  "afterSensitivePaths": [
    string
  ],
  "after": value
}
Fields
path

string

Output only. The path of the property change.

beforeSensitivePaths[]

string

Output only. The paths of sensitive fields in before. Paths are relative to path.

before

value (Value format)

Output only. Representations of the object value before the actions.

afterSensitivePaths[]

string

Output only. The paths of sensitive fields in after. Paths are relative to path.

after

value (Value format)

Output only. Representations of the object value after the actions.

Methods

get

Get a ResourceChange for a given preview.

list

Lists ResourceChanges for a given preview.