Class: Google::Apis::DeploymentmanagerAlpha::Credential
- Inherits:
-
Object
- Object
- Google::Apis::DeploymentmanagerAlpha::Credential
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/deploymentmanager_alpha/classes.rb,
lib/google/apis/deploymentmanager_alpha/representations.rb,
lib/google/apis/deploymentmanager_alpha/representations.rb
Overview
The credential used by Deployment Manager and TypeProvider. Only one of the options is permitted.
Instance Attribute Summary collapse
-
#basic_auth ⇒ Google::Apis::DeploymentmanagerAlpha::BasicAuth
Basic Auth used as a credential.
-
#service_account ⇒ Google::Apis::DeploymentmanagerAlpha::ServiceAccount
Service Account used as a credential.
-
#use_project_default ⇒ Boolean
(also: #use_project_default?)
Specify to use the project default credential, only supported by Deployment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Credential
constructor
A new instance of Credential.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Credential
Returns a new instance of Credential.
538 539 540 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 538 def initialize(**args) update!(**args) end |
Instance Attribute Details
#basic_auth ⇒ Google::Apis::DeploymentmanagerAlpha::BasicAuth
Basic Auth used as a credential.
Corresponds to the JSON property basicAuth
525 526 527 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 525 def basic_auth @basic_auth end |
#service_account ⇒ Google::Apis::DeploymentmanagerAlpha::ServiceAccount
Service Account used as a credential.
Corresponds to the JSON property serviceAccount
530 531 532 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 530 def service_account @service_account end |
#use_project_default ⇒ Boolean Also known as: use_project_default?
Specify to use the project default credential, only supported by Deployment.
Corresponds to the JSON property useProjectDefault
535 536 537 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 535 def use_project_default @use_project_default end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
543 544 545 546 547 |
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 543 def update!(**args) @basic_auth = args[:basic_auth] if args.key?(:basic_auth) @service_account = args[:service_account] if args.key?(:service_account) @use_project_default = args[:use_project_default] if args.key?(:use_project_default) end |