Class: Google::Apis::DeploymentmanagerV2beta::Credential

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

Overview

The credential used by Deployment Manager and TypeProvider. Only one of the options is permitted.

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

Returns a new instance of Credential



502
503
504
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 502

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

Instance Attribute Details

#basic_authGoogle::Apis::DeploymentmanagerV2beta::BasicAuth

Basic Auth used as a credential. Corresponds to the JSON property basicAuth



489
490
491
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 489

def basic_auth
  @basic_auth
end

#service_accountGoogle::Apis::DeploymentmanagerV2beta::ServiceAccount

Service Account used as a credential. Corresponds to the JSON property serviceAccount



494
495
496
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 494

def 
  @service_account
end

#use_project_defaultBoolean Also known as: use_project_default?

Specify to use the project default credential, only supported by Deployment. Corresponds to the JSON property useProjectDefault

Returns:

  • (Boolean)


499
500
501
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 499

def use_project_default
  @use_project_default
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



507
508
509
510
511
# File 'generated/google/apis/deploymentmanager_v2beta/classes.rb', line 507

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