Class: SDM::SSHCustomerKey

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, hostname: nil, username: nil, port: nil, private_key: nil, port_forwarding: nil, allow_deprecated_key_exchanges: nil) ⇒ SSHCustomerKey

Returns a new instance of SSHCustomerKey.



5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
# File 'lib/models/porcelain.rb', line 5618

def initialize(
  id: nil,
  name: nil,
  healthy: nil,
  tags: nil,
  secret_store_id: nil,
  egress_filter: nil,
  hostname: nil,
  username: nil,
  port: nil,
  private_key: nil,
  port_forwarding: nil,
  allow_deprecated_key_exchanges: nil
)
  if id != nil
    @id = id
  end
  if name != nil
    @name = name
  end
  if healthy != nil
    @healthy = healthy
  end
  if tags != nil
    @tags = tags
  end
  if secret_store_id != nil
    @secret_store_id = secret_store_id
  end
  if egress_filter != nil
    @egress_filter = egress_filter
  end
  if hostname != nil
    @hostname = hostname
  end
  if username != nil
    @username = username
  end
  if port != nil
    @port = port
  end
  if private_key != nil
    @private_key = private_key
  end
  if port_forwarding != nil
    @port_forwarding = port_forwarding
  end
  if allow_deprecated_key_exchanges != nil
    @allow_deprecated_key_exchanges = allow_deprecated_key_exchanges
  end
end

Instance Attribute Details

#allow_deprecated_key_exchangesObject

Returns the value of attribute allow_deprecated_key_exchanges.



5616
5617
5618
# File 'lib/models/porcelain.rb', line 5616

def allow_deprecated_key_exchanges
  @allow_deprecated_key_exchanges
end

#egress_filterObject

A filter applied to the routing logic to pin datasource to nodes.



5604
5605
5606
# File 'lib/models/porcelain.rb', line 5604

def egress_filter
  @egress_filter
end

#healthyObject

True if the datasource is reachable and the credentials are valid.



5598
5599
5600
# File 'lib/models/porcelain.rb', line 5598

def healthy
  @healthy
end

#hostnameObject

Returns the value of attribute hostname.



5606
5607
5608
# File 'lib/models/porcelain.rb', line 5606

def hostname
  @hostname
end

#idObject

Unique identifier of the Resource.



5594
5595
5596
# File 'lib/models/porcelain.rb', line 5594

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



5596
5597
5598
# File 'lib/models/porcelain.rb', line 5596

def name
  @name
end

#portObject

Returns the value of attribute port.



5610
5611
5612
# File 'lib/models/porcelain.rb', line 5610

def port
  @port
end

#port_forwardingObject

Returns the value of attribute port_forwarding.



5614
5615
5616
# File 'lib/models/porcelain.rb', line 5614

def port_forwarding
  @port_forwarding
end

#private_keyObject

Returns the value of attribute private_key.



5612
5613
5614
# File 'lib/models/porcelain.rb', line 5612

def private_key
  @private_key
end

#secret_store_idObject

ID of the secret store containing credentials for this resource, if any.



5602
5603
5604
# File 'lib/models/porcelain.rb', line 5602

def secret_store_id
  @secret_store_id
end

#tagsObject

Tags is a map of key, value pairs.



5600
5601
5602
# File 'lib/models/porcelain.rb', line 5600

def tags
  @tags
end

#usernameObject

Returns the value of attribute username.



5608
5609
5610
# File 'lib/models/porcelain.rb', line 5608

def username
  @username
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5670
5671
5672
5673
5674
5675
5676
# File 'lib/models/porcelain.rb', line 5670

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end