Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1RegisterSubscriberRequest

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

Overview

Request Message for RegisterSubscriber.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1RegisterSubscriberRequest

Returns a new instance of GoogleCloudChannelV1RegisterSubscriberRequest.



2751
2752
2753
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2751

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

Instance Attribute Details

#accountString

Optional. Resource name of the account. Required if integrator is not provided. Otherwise, leave this field empty/unset. Corresponds to the JSON property account

Returns:

  • (String)


2737
2738
2739
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2737

def 
  @account
end

#integratorString

Optional. Resource name of the integrator. Required if account is not provided. Otherwise, leave this field empty/unset. Corresponds to the JSON property integrator

Returns:

  • (String)


2743
2744
2745
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2743

def integrator
  @integrator
end

#service_accountString

Required. Service account that provides subscriber access to the registered topic. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


2749
2750
2751
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2749

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2756
2757
2758
2759
2760
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 2756

def update!(**args)
  @account = args[:account] if args.key?(:account)
  @integrator = args[:integrator] if args.key?(:integrator)
  @service_account = args[:service_account] if args.key?(:service_account)
end