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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ AccountStatus

Returns a new instance of AccountStatus.



366
367
368
# File 'lib/google/apis/content_v2/classes.rb', line 366

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)


336
337
338
# File 'lib/google/apis/content_v2/classes.rb', line 336

def 
  @account_id
end

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

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



341
342
343
# File 'lib/google/apis/content_v2/classes.rb', line 341

def 
  @account_level_issues
end

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

DEPRECATED - never populated. Corresponds to the JSON property dataQualityIssues



346
347
348
# File 'lib/google/apis/content_v2/classes.rb', line 346

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)


352
353
354
# File 'lib/google/apis/content_v2/classes.rb', line 352

def kind
  @kind
end

#productsArray<Google::Apis::ContentV2::AccountStatusProducts>

List of product-related data by channel, destination, and country. Data in this field may be delayed by up to 30 minutes. Corresponds to the JSON property products



358
359
360
# File 'lib/google/apis/content_v2/classes.rb', line 358

def products
  @products
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)


363
364
365
# File 'lib/google/apis/content_v2/classes.rb', line 363

def website_claimed
  @website_claimed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



371
372
373
374
375
376
377
378
# File 'lib/google/apis/content_v2/classes.rb', line 371

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)
  @products = args[:products] if args.key?(:products)
  @website_claimed = args[:website_claimed] if args.key?(:website_claimed)
end