Class: Google::Apis::ComputeAlpha::RouterMd5AuthenticationKey

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RouterMd5AuthenticationKey

Returns a new instance of RouterMd5AuthenticationKey.



37270
37271
37272
# File 'lib/google/apis/compute_alpha/classes.rb', line 37270

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

Instance Attribute Details

#keyString

[Input only] Value of the key. For patch and update calls, it can be skipped to copy the value from the previous configuration. This is allowed if the key with the same name existed before the operation. Maximum length is 80 characters. Can only contain printable ASCII characters. Corresponds to the JSON property key

Returns:

  • (String)


37262
37263
37264
# File 'lib/google/apis/compute_alpha/classes.rb', line 37262

def key
  @key
end

#nameString

Name used to identify the key. Must be unique within a router. Must be referenced by at least one bgpPeer. Must comply with RFC1035. Corresponds to the JSON property name

Returns:

  • (String)


37268
37269
37270
# File 'lib/google/apis/compute_alpha/classes.rb', line 37268

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37275
37276
37277
37278
# File 'lib/google/apis/compute_alpha/classes.rb', line 37275

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