Class: Google::Apis::PartnersV2::CreateLeadRequest

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

Overview

Request message for CreateLead.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CreateLeadRequest

Returns a new instance of CreateLeadRequest.


872
873
874
# File 'generated/google/apis/partners_v2/classes.rb', line 872

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

Instance Attribute Details

#leadGoogle::Apis::PartnersV2::Lead

A lead resource that represents an advertiser contact for a Company. These are usually generated via Google Partner Search (the advertiser portal). Corresponds to the JSON property lead


865
866
867
# File 'generated/google/apis/partners_v2/classes.rb', line 865

def lead
  @lead
end

#recaptcha_challengeGoogle::Apis::PartnersV2::RecaptchaChallenge

reCaptcha challenge info. Corresponds to the JSON property recaptchaChallenge


870
871
872
# File 'generated/google/apis/partners_v2/classes.rb', line 870

def recaptcha_challenge
  @recaptcha_challenge
end

#request_metadataGoogle::Apis::PartnersV2::RequestMetadata

Common data that is in each API request. Corresponds to the JSON property requestMetadata


859
860
861
# File 'generated/google/apis/partners_v2/classes.rb', line 859

def 
  @request_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


877
878
879
880
881
# File 'generated/google/apis/partners_v2/classes.rb', line 877

def update!(**args)
  @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
  @lead = args[:lead] if args.key?(:lead)
  @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge)
end