Class: Google::Apis::CloudbuildV1::DefaultServiceAccount

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

Overview

The default service account used for Builds.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DefaultServiceAccount

Returns a new instance of DefaultServiceAccount.



1810
1811
1812
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1810

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

Instance Attribute Details

#nameString

Identifier. Format: projects/project/locations/location/ defaultServiceAccount Corresponds to the JSON propertyname`

Returns:

  • (String)


1797
1798
1799
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1797

def name
  @name
end

#service_account_emailString

Output only. The email address of the service account identity that will be used for a build by default. This is returned in the format projects/project /serviceAccounts/service_accountwhereservice_account`could be the legacy Cloud Build SA, in the format [PROJECT_NUMBER]@cloudbuild. gserviceaccount.com or the Compute SA, in the format [PROJECT_NUMBER]-compute@ developer.gserviceaccount.com. If no service account will be used by default, this will be empty. Corresponds to the JSON propertyserviceAccountEmail`

Returns:

  • (String)


1808
1809
1810
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1808

def 
  @service_account_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1815
1816
1817
1818
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1815

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