Class: Google::Apis::CloudbuildV1::DefaultServiceAccount
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV1::DefaultServiceAccount
- 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
-
#name ⇒ String
Identifier.
-
#service_account_email ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DefaultServiceAccount
constructor
A new instance of DefaultServiceAccount.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
Identifier. Format: projects/
project/locations/
location/
defaultServiceAccount
Corresponds to the JSON property
name`
1797 1798 1799 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1797 def name @name end |
#service_account_email ⇒ String
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_accountwhere
service_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 property
serviceAccountEmail`
1808 1809 1810 |
# File 'lib/google/apis/cloudbuild_v1/classes.rb', line 1808 def service_account_email @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 |