# Storage Insights V1 API - Class Google::Cloud::StorageInsights::V1::Identity (v1.7.0)

1.7.0 (latest) 1.6.1 1.5.0 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.7.0 0.6.0 0.5.1 0.4.2 0.3.0 0.2.2 0.1.0 Reference documentation and code samples for the Storage Insights V1 API class Google::Cloud::StorageInsights::V1::Identity.

Identity lets the user provide the type of identity to use, and outputs
the identity string that can be used for IAM policy changes.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. Name of the identity.

### #type

    def type() -> ::Google::Cloud::StorageInsights::V1::Identity::IdentityType

**Returns**

- ([::Google::Cloud::StorageInsights::V1::Identity::IdentityType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-Identity-IdentityType)) --- Type of identity to use for the datasetConfig.

### #type=

    def type=(value) -> ::Google::Cloud::StorageInsights::V1::Identity::IdentityType

**Parameter**

- **value** ([::Google::Cloud::StorageInsights::V1::Identity::IdentityType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-Identity-IdentityType)) --- Type of identity to use for the datasetConfig.
**Returns**

- ([::Google::Cloud::StorageInsights::V1::Identity::IdentityType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-storage_insights-v1/latest/Google-Cloud-StorageInsights-V1-Identity-IdentityType)) --- Type of identity to use for the datasetConfig.