Class: Google::Apis::AccessapprovalV1::AccessApprovalServiceAccount

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

Overview

Access Approval service account related to a project/folder/organization.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessApprovalServiceAccount

Returns a new instance of AccessApprovalServiceAccount.



41
42
43
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 41

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

Instance Attribute Details

#account_emailString

Email address of the service account. Corresponds to the JSON property accountEmail

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 32

def 
  @account_email
end

#nameString

The resource name of the Access Approval service account. Format is one of: * " projects/project/serviceAccount" * "folders/folder/serviceAccount" * " organizations/organization/serviceAccount" Corresponds to the JSON property name

Returns:

  • (String)


39
40
41
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 39

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46
47
48
49
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 46

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