Class: Google::Apis::AndroidenterpriseV1::EnterpriseAccount

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

Overview

A service account that can be used to authenticate as the enterprise to API calls that require such authentication.

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

Returns a new instance of EnterpriseAccount.


666
667
668
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 666

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

Instance Attribute Details

#account_emailString

The email address of the service account. Corresponds to the JSON property accountEmail

Returns:

  • (String)

658
659
660
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 658

def 
  @account_email
end

#kindString

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

Returns:

  • (String)

664
665
666
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 664

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


671
672
673
674
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 671

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