1.9.0 (latest) 1.8.0 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.13.0 0.12.2 0.11.0 0.10.1 0.9.0 0.8.1 0.7.0 0.6.0 0.5.6 Reference documentation and code samples for the Cloud Logging V2 API class Google::Cloud::Logging::V2::CreateLinkRequest.

The parameters to CreateLink.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #link

    def link() -> ::Google::Cloud::Logging::V2::Link

**Returns**

- ([::Google::Cloud::Logging::V2::Link](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-Link)) --- Required. The new link.

### #link=

    def link=(value) -> ::Google::Cloud::Logging::V2::Link

**Parameter**

- **value** ([::Google::Cloud::Logging::V2::Link](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-Link)) --- Required. The new link.
**Returns**

- ([::Google::Cloud::Logging::V2::Link](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Cloud-Logging-V2-Link)) --- Required. The new link.

### #link_id

    def link_id() -> ::String

**Returns**

- (::String) --- Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

### #link_id=

    def link_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.
**Returns**

- (::String) --- Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The full resource name of the bucket to create a link for.

      "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) ---

  Required. The full resource name of the bucket to create a link for.

      "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

**Returns**

- (::String) --- Required. The full resource name of the bucket to create a link for.

      "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"