Class: Google::Apis::ComputeAlpha::ChannelCredentials

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 channel 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) ⇒ ChannelCredentials

Returns a new instance of ChannelCredentials.



4289
4290
4291
# File 'generated/google/apis/compute_alpha/classes.rb', line 4289

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

Instance Attribute Details

#certificatesGoogle::Apis::ComputeAlpha::TlsCertificatePaths

The paths to the mounted TLS Certificates and private key. Corresponds to the JSON property certificates



4280
4281
4282
# File 'generated/google/apis/compute_alpha/classes.rb', line 4280

def certificates
  @certificates
end

#channel_credential_typeString

The channel credentials to access the SDS server. This field can be set to one of the following: CERTIFICATES: Use TLS certificates to access the SDS server. GCE_VM: Use local GCE VM credentials to access the SDS server. Corresponds to the JSON property channelCredentialType

Returns:

  • (String)


4287
4288
4289
# File 'generated/google/apis/compute_alpha/classes.rb', line 4287

def channel_credential_type
  @channel_credential_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4294
4295
4296
4297
# File 'generated/google/apis/compute_alpha/classes.rb', line 4294

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