Class: Google::Apis::ContentV2::AccountStatus

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

Overview

The status of an account, i.e., information about its products, which is computed offline and not returned immediately at insertion time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccountStatus

Returns a new instance of AccountStatus



200
201
202
# File 'generated/google/apis/content_v2/classes.rb', line 200

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

Instance Attribute Details

#account_idString

The ID of the account for which the status is reported. Corresponds to the JSON property accountId

Returns:

  • (String)


176
177
178
# File 'generated/google/apis/content_v2/classes.rb', line 176

def 
  @account_id
end

#account_level_issuesArray<Google::Apis::ContentV2::AccountStatusAccountLevelIssue>

A list of account level issues. Corresponds to the JSON property accountLevelIssues



181
182
183
# File 'generated/google/apis/content_v2/classes.rb', line 181

def 
  @account_level_issues
end

#data_quality_issuesArray<Google::Apis::ContentV2::AccountStatusDataQualityIssue>

A list of data quality issues. Corresponds to the JSON property dataQualityIssues



186
187
188
# File 'generated/google/apis/content_v2/classes.rb', line 186

def data_quality_issues
  @data_quality_issues
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# accountStatus". Corresponds to the JSON property kind

Returns:

  • (String)


192
193
194
# File 'generated/google/apis/content_v2/classes.rb', line 192

def kind
  @kind
end

#website_claimedBoolean Also known as: website_claimed?

Whether the account's website is claimed or not. Corresponds to the JSON property websiteClaimed

Returns:

  • (Boolean)


197
198
199
# File 'generated/google/apis/content_v2/classes.rb', line 197

def website_claimed
  @website_claimed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



205
206
207
208
209
210
211
# File 'generated/google/apis/content_v2/classes.rb', line 205

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @account_level_issues = args[:account_level_issues] if args.key?(:account_level_issues)
  @data_quality_issues = args[:data_quality_issues] if args.key?(:data_quality_issues)
  @kind = args[:kind] if args.key?(:kind)
  @website_claimed = args[:website_claimed] if args.key?(:website_claimed)
end