Class: Google::Apis::PartnersV2::CreateLeadRequest
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PartnersV2::CreateLeadRequest
 
- 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
- 
  
    
      #lead  ⇒ Google::Apis::PartnersV2::Lead 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A lead resource that represents an advertiser contact for a Company.
- 
  
    
      #recaptcha_challenge  ⇒ Google::Apis::PartnersV2::RecaptchaChallenge 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    reCaptcha challenge info. 
- 
  
    
      #request_metadata  ⇒ Google::Apis::PartnersV2::RequestMetadata 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Common data that is in each API request. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CreateLeadRequest 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CreateLeadRequest. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreateLeadRequest
Returns a new instance of CreateLeadRequest
| 690 691 692 | # File 'generated/google/apis/partners_v2/classes.rb', line 690 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#lead ⇒ Google::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
| 678 679 680 | # File 'generated/google/apis/partners_v2/classes.rb', line 678 def lead @lead end | 
#recaptcha_challenge ⇒ Google::Apis::PartnersV2::RecaptchaChallenge
reCaptcha challenge info.
Corresponds to the JSON property recaptchaChallenge
| 683 684 685 | # File 'generated/google/apis/partners_v2/classes.rb', line 683 def recaptcha_challenge @recaptcha_challenge end | 
#request_metadata ⇒ Google::Apis::PartnersV2::RequestMetadata
Common data that is in each API request.
Corresponds to the JSON property requestMetadata
| 688 689 690 | # File 'generated/google/apis/partners_v2/classes.rb', line 688 def @request_metadata end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 695 696 697 698 699 | # File 'generated/google/apis/partners_v2/classes.rb', line 695 def update!(**args) @lead = args[:lead] if args.key?(:lead) @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge) @request_metadata = args[:request_metadata] if args.key?(:request_metadata) end |