Class: Google::Apis::PartnersV2::ListUserStatesResponse

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

Response message for ListUserStates.

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) ⇒ ListUserStatesResponse

Returns a new instance of ListUserStatesResponse



1396
1397
1398
# File 'generated/google/apis/partners_v2/classes.rb', line 1396

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

Instance Attribute Details

#response_metadataGoogle::Apis::PartnersV2::ResponseMetadata

Common data that is in each API response. Corresponds to the JSON property responseMetadata



1389
1390
1391
# File 'generated/google/apis/partners_v2/classes.rb', line 1389

def 
  @response_metadata
end

#user_statesArray<String>

User's states. Corresponds to the JSON property userStates

Returns:

  • (Array<String>)


1394
1395
1396
# File 'generated/google/apis/partners_v2/classes.rb', line 1394

def user_states
  @user_states
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1401
1402
1403
1404
# File 'generated/google/apis/partners_v2/classes.rb', line 1401

def update!(**args)
  @response_metadata = args[:response_metadata] if args.key?(:response_metadata)
  @user_states = args[:user_states] if args.key?(:user_states)
end