Class: Google::Apis::ComputeAlpha::CallCredentials

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

Overview

gRPC call credentials to access the SDS server.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CallCredentials

Returns a new instance of CallCredentials.



4262
4263
4264
# File 'generated/google/apis/compute_alpha/classes.rb', line 4262

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

Instance Attribute Details

#call_credential_typeString

The type of call credentials to use for GRPC requests to the SDS server. This field can be set to one of the following:

  • GCE_VM: The local GCE VM service account credentials are used to access the SDS server.
  • FROM_PLUGIN: Custom authenticator credentials are used to access the SDS server. Corresponds to the JSON property callCredentialType

Returns:

  • (String)


4255
4256
4257
# File 'generated/google/apis/compute_alpha/classes.rb', line 4255

def call_credential_type
  @call_credential_type
end

#from_pluginGoogle::Apis::ComputeAlpha::MetadataCredentialsFromPlugin

Custom authenticator credentials. Corresponds to the JSON property fromPlugin



4260
4261
4262
# File 'generated/google/apis/compute_alpha/classes.rb', line 4260

def from_plugin
  @from_plugin
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4267
4268
4269
4270
# File 'generated/google/apis/compute_alpha/classes.rb', line 4267

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