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.



1653
1654
1655
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1653

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)


1636
1637
1638
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1636

def name
  @name
end

#owning_accountGoogle::Apis::DatamanagerV1::ProductAccount

Represents a specific account. Corresponds to the JSON property owningAccount



1641
1642
1643
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1641

def 
  @owning_account
end

#partner_accountGoogle::Apis::DatamanagerV1::ProductAccount

Represents a specific account. Corresponds to the JSON property partnerAccount



1646
1647
1648
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1646

def 
  @partner_account
end

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

Returns:

  • (String)


1651
1652
1653
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1651

def partner_link_id
  @partner_link_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1658
1659
1660
1661
1662
1663
# File 'lib/google/apis/datamanager_v1/classes.rb', line 1658

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