# Infrastructure Manager V1 API - Class Google::Cloud::ConfigService::V1::ResourceDrift (v2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.1 1.1.0 1.0.2 0.6.0 0.5.0 0.4.0 0.3.1 0.2.1 0.1.0 Reference documentation and code samples for the Infrastructure Manager V1 API class Google::Cloud::ConfigService::V1::ResourceDrift.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Identifier. The name of the resource drift. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. The name of the resource drift. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.
**Returns**

- (::String) --- Identifier. The name of the resource drift. Format: 'projects/{project_id}/locations/{location}/previews/{preview}/resourceDrifts/{resource_drift}'.

### #property_drifts

    def property_drifts() -> ::Array<::Google::Cloud::ConfigService::V1::PropertyDrift>

**Returns**

- (::Array\<[::Google::Cloud::ConfigService::V1::PropertyDrift](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-config_service-v1/latest/Google-Cloud-ConfigService-V1-PropertyDrift)\>) --- Output only. The property drifts of the resource drift.

### #terraform_info

    def terraform_info() -> ::Google::Cloud::ConfigService::V1::ResourceDriftTerraformInfo

**Returns**

- ([::Google::Cloud::ConfigService::V1::ResourceDriftTerraformInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-config_service-v1/latest/Google-Cloud-ConfigService-V1-ResourceDriftTerraformInfo)) --- Output only. Terraform info of the resource drift.