Class: SDM::Kubernetes
- Inherits:
-
Object
- Object
- SDM::Kubernetes
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
-
#certificate_authority_filename ⇒ Object
Returns the value of attribute certificate_authority_filename.
-
#client_certificate ⇒ Object
Returns the value of attribute client_certificate.
-
#client_certificate_filename ⇒ Object
Returns the value of attribute client_certificate_filename.
-
#client_key ⇒ Object
Returns the value of attribute client_key.
-
#client_key_filename ⇒ Object
Returns the value of attribute client_key_filename.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, port: nil, certificate_authority: nil, certificate_authority_filename: nil, client_certificate: nil, client_certificate_filename: nil, client_key: nil, client_key_filename: nil) ⇒ Kubernetes
constructor
A new instance of Kubernetes.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, hostname: nil, port: nil, certificate_authority: nil, certificate_authority_filename: nil, client_certificate: nil, client_certificate_filename: nil, client_key: nil, client_key_filename: nil) ⇒ Kubernetes
Returns a new instance of Kubernetes.
1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 |
# File 'lib/models/porcelain.rb', line 1319 def initialize( id: nil, name: nil, healthy: nil, hostname: nil, port: nil, certificate_authority: nil, certificate_authority_filename: nil, client_certificate: nil, client_certificate_filename: nil, client_key: nil, client_key_filename: nil ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if hostname != nil @hostname = hostname end if port != nil @port = port end if != nil @certificate_authority = end if != nil @certificate_authority_filename = end if client_certificate != nil @client_certificate = client_certificate end if client_certificate_filename != nil @client_certificate_filename = client_certificate_filename end if client_key != nil @client_key = client_key end if client_key_filename != nil @client_key_filename = client_key_filename end end |
Instance Attribute Details
#certificate_authority ⇒ Object
Returns the value of attribute certificate_authority.
1307 1308 1309 |
# File 'lib/models/porcelain.rb', line 1307 def @certificate_authority end |
#certificate_authority_filename ⇒ Object
Returns the value of attribute certificate_authority_filename.
1309 1310 1311 |
# File 'lib/models/porcelain.rb', line 1309 def @certificate_authority_filename end |
#client_certificate ⇒ Object
Returns the value of attribute client_certificate.
1311 1312 1313 |
# File 'lib/models/porcelain.rb', line 1311 def client_certificate @client_certificate end |
#client_certificate_filename ⇒ Object
Returns the value of attribute client_certificate_filename.
1313 1314 1315 |
# File 'lib/models/porcelain.rb', line 1313 def client_certificate_filename @client_certificate_filename end |
#client_key ⇒ Object
Returns the value of attribute client_key.
1315 1316 1317 |
# File 'lib/models/porcelain.rb', line 1315 def client_key @client_key end |
#client_key_filename ⇒ Object
Returns the value of attribute client_key_filename.
1317 1318 1319 |
# File 'lib/models/porcelain.rb', line 1317 def client_key_filename @client_key_filename end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1301 1302 1303 |
# File 'lib/models/porcelain.rb', line 1301 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
1303 1304 1305 |
# File 'lib/models/porcelain.rb', line 1303 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
1297 1298 1299 |
# File 'lib/models/porcelain.rb', line 1297 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1299 1300 1301 |
# File 'lib/models/porcelain.rb', line 1299 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
1305 1306 1307 |
# File 'lib/models/porcelain.rb', line 1305 def port @port end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1367 1368 1369 1370 1371 1372 1373 |
# File 'lib/models/porcelain.rb', line 1367 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |