Class: Google::Apis::LoggingV2::CreateLinkRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/logging_v2/classes.rb,
lib/google/apis/logging_v2/representations.rb,
lib/google/apis/logging_v2/representations.rb

Overview

The parameters to CreateLink.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateLinkRequest

Returns a new instance of CreateLinkRequest.



436
437
438
# File 'lib/google/apis/logging_v2/classes.rb', line 436

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

Describes a link connected to an analytics enabled bucket. Corresponds to the JSON property link



418
419
420
# File 'lib/google/apis/logging_v2/classes.rb', line 418

def link
  @link
end

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. Corresponds to the JSON property linkId

Returns:

  • (String)


425
426
427
# File 'lib/google/apis/logging_v2/classes.rb', line 425

def link_id
  @link_id
end

#parentString

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]" Corresponds to the JSON property parent

Returns:

  • (String)


434
435
436
# File 'lib/google/apis/logging_v2/classes.rb', line 434

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



441
442
443
444
445
# File 'lib/google/apis/logging_v2/classes.rb', line 441

def update!(**args)
  @link = args[:link] if args.key?(:link)
  @link_id = args[:link_id] if args.key?(:link_id)
  @parent = args[:parent] if args.key?(:parent)
end