# Secure Source Manager V1 API - Class Google::Cloud::SecureSourceManager::V1::FileDiff (v2.7.0)

2.7.0 (latest) 2.6.1 2.5.0 2.4.0 2.3.0 2.2.1 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.4.0 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Secure Source Manager V1 API class Google::Cloud::SecureSourceManager::V1::FileDiff.

Metadata of a FileDiff. FileDiff represents a single file diff in a pull
request.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #action

    def action() -> ::Google::Cloud::SecureSourceManager::V1::FileDiff::Action

**Returns**

- ([::Google::Cloud::SecureSourceManager::V1::FileDiff::Action](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secure_source_manager-v1/latest/Google-Cloud-SecureSourceManager-V1-FileDiff-Action)) --- Output only. The action taken on the file (eg. added, modified, deleted).

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The name of the file.

### #patch

    def patch() -> ::String

**Returns**

- (::String) --- Output only. The git patch containing the file changes.

### #sha

    def sha() -> ::String

**Returns**

- (::String) --- Output only. The commit pointing to the file changes.