Class: Google::Apis::ComputeAlpha::InterconnectMacsecConfigPreSharedKey

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

Overview

Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) mode.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InterconnectMacsecConfigPreSharedKey

Returns a new instance of InterconnectMacsecConfigPreSharedKey.



20142
20143
20144
# File 'lib/google/apis/compute_alpha/classes.rb', line 20142

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

Instance Attribute Details

#cakString

An auto-generated Connectivity Association Key (CAK) for this key. Corresponds to the JSON property cak

Returns:

  • (String)


20125
20126
20127
# File 'lib/google/apis/compute_alpha/classes.rb', line 20125

def cak
  @cak
end

#cknString

An auto-generated Connectivity Association Key Name (CKN) for this key. Corresponds to the JSON property ckn

Returns:

  • (String)


20130
20131
20132
# File 'lib/google/apis/compute_alpha/classes.rb', line 20130

def ckn
  @ckn
end

#nameString

User provided name for this pre-shared key. Corresponds to the JSON property name

Returns:

  • (String)


20135
20136
20137
# File 'lib/google/apis/compute_alpha/classes.rb', line 20135

def name
  @name
end

#start_timeString

User provided timestamp on or after which this key is valid. Corresponds to the JSON property startTime

Returns:

  • (String)


20140
20141
20142
# File 'lib/google/apis/compute_alpha/classes.rb', line 20140

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20147
20148
20149
20150
20151
20152
# File 'lib/google/apis/compute_alpha/classes.rb', line 20147

def update!(**args)
  @cak = args[:cak] if args.key?(:cak)
  @ckn = args[:ckn] if args.key?(:ckn)
  @name = args[:name] if args.key?(:name)
  @start_time = args[:start_time] if args.key?(:start_time)
end