Class: SDM::KubernetesServiceAccount

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, hostname: nil, port: nil, token: nil) ⇒ KubernetesServiceAccount

Returns a new instance of KubernetesServiceAccount.



1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
# File 'lib/models/porcelain.rb', line 1271

def initialize(
	id:nil \
,
	name:nil \
,
	healthy:nil \
,
	hostname:nil \
,
	port:nil \
,
	token: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 token != nil
		@token = token
	end
end

Instance Attribute Details

#healthyObject

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



1264
1265
1266
# File 'lib/models/porcelain.rb', line 1264

def healthy
  @healthy
end

#hostnameObject

Returns the value of attribute hostname.



1266
1267
1268
# File 'lib/models/porcelain.rb', line 1266

def hostname
  @hostname
end

#idObject

Unique identifier of the Resource.



1260
1261
1262
# File 'lib/models/porcelain.rb', line 1260

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



1262
1263
1264
# File 'lib/models/porcelain.rb', line 1262

def name
  @name
end

#portObject

Returns the value of attribute port.



1268
1269
1270
# File 'lib/models/porcelain.rb', line 1268

def port
  @port
end

#tokenObject

Returns the value of attribute token.



1270
1271
1272
# File 'lib/models/porcelain.rb', line 1270

def token
  @token
end