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.



628
629
630
# File 'lib/google/apis/logging_v2/classes.rb', line 628

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

Instance Attribute Details

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



610
611
612
# File 'lib/google/apis/logging_v2/classes.rb', line 610

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)


617
618
619
# File 'lib/google/apis/logging_v2/classes.rb', line 617

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)


626
627
628
# File 'lib/google/apis/logging_v2/classes.rb', line 626

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



633
634
635
636
637
# File 'lib/google/apis/logging_v2/classes.rb', line 633

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