# Secure Source Manager V1 API - Class Google::Cloud::SecureSourceManager::V1::FetchTreeRequest (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::FetchTreeRequest.

Request message for fetching a tree structure from a repository.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- Optional. Requested page size. Server may return fewer items than requested. If unspecified, at most 10,000 items will be returned.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. Requested page size. Server may return fewer items than requested. If unspecified, at most 10,000 items will be returned.
**Returns**

- (::Integer) --- Optional. Requested page size. Server may return fewer items than requested. If unspecified, at most 10,000 items will be returned.

### #page_token

    def page_token() -> ::String

**Returns**

- (::String) --- Optional. A token identifying a page of results the server should return.

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A token identifying a page of results the server should return.
**Returns**

- (::String) --- Optional. A token identifying a page of results the server should return.

### #recursive

    def recursive() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. If true, include all subfolders and their files in the response. If false, only the immediate children are returned.

### #recursive=

    def recursive=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. If true, include all subfolders and their files in the response. If false, only the immediate children are returned.
**Returns**

- (::Boolean) --- Optional. If true, include all subfolders and their files in the response. If false, only the immediate children are returned.

### #ref

    def ref() -> ::String

**Returns**

- (::String) --- Optional. `ref` can be a SHA-1 hash, a branch name, or a tag. Specifies which tree to fetch. If not specified, the default branch will be used.

### #ref=

    def ref=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. `ref` can be a SHA-1 hash, a branch name, or a tag. Specifies which tree to fetch. If not specified, the default branch will be used.
**Returns**

- (::String) --- Optional. `ref` can be a SHA-1 hash, a branch name, or a tag. Specifies which tree to fetch. If not specified, the default branch will be used.

### #repository

    def repository() -> ::String

**Returns**

- (::String) --- Required. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. Specifies the repository to fetch the tree from.

### #repository=

    def repository=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. Specifies the repository to fetch the tree from.
**Returns**

- (::String) --- Required. The format is `projects/{project_number}/locations/{location_id}/repositories/{repository_id}`. Specifies the repository to fetch the tree from.