Class: Google::Apis::DatamanagerV1::PartnerLink

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

Overview

A partner link between an owning account and a partner account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PartnerLink

Returns a new instance of PartnerLink.



1872
1873
1874
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1872

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

Instance Attribute Details

#nameString

Identifier. The name of the partner link. Format: accountTypes/account_type/ accounts/account/partnerLinks/partner_link Corresponds to the JSON property name

Returns:

  • (String)


1855
1856
1857
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1855

def name
  @name
end

#owning_accountGoogle::Apis::DatamanagerV1::ProductAccount

Represents a specific account. Corresponds to the JSON property owningAccount



1860
1861
1862
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1860

def 
  @owning_account
end

#partner_accountGoogle::Apis::DatamanagerV1::ProductAccount

Represents a specific account. Corresponds to the JSON property partnerAccount



1865
1866
1867
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1865

def 
  @partner_account
end

Output only. The partner link ID. Corresponds to the JSON property partnerLinkId

Returns:

  • (String)


1870
1871
1872
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1870

def partner_link_id
  @partner_link_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1877
1878
1879
1880
1881
1882
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1877

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @owning_account = args[:owning_account] if args.key?(:owning_account)
  @partner_account = args[:partner_account] if args.key?(:partner_account)
  @partner_link_id = args[:partner_link_id] if args.key?(:partner_link_id)
end