Class: SDM::GoogleGKE

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(certificate_authority: nil, egress_filter: nil, endpoint: nil, healthcheck_namespace: nil, healthy: nil, id: nil, name: nil, secret_store_id: nil, service_account_key: nil, tags: nil) ⇒ GoogleGKE

Returns a new instance of GoogleGKE.



2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
# File 'lib/models/porcelain.rb', line 2471

def initialize(
  certificate_authority: nil,
  egress_filter: nil,
  endpoint: nil,
  healthcheck_namespace: nil,
  healthy: nil,
  id: nil,
  name: nil,
  secret_store_id: nil,
  service_account_key: nil,
  tags: nil
)
  @certificate_authority = certificate_authority == nil ? "" : certificate_authority
  @egress_filter = egress_filter == nil ? "" : egress_filter
  @endpoint = endpoint == nil ? "" : endpoint
  @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
  @healthy = healthy == nil ? false : healthy
  @id = id == nil ? "" : id
  @name = name == nil ? "" : name
  @secret_store_id = secret_store_id == nil ? "" : secret_store_id
  @service_account_key =  == nil ? "" : 
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
end

Instance Attribute Details

#certificate_authorityObject

Returns the value of attribute certificate_authority.



2451
2452
2453
# File 'lib/models/porcelain.rb', line 2451

def certificate_authority
  @certificate_authority
end

#egress_filterObject

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



2453
2454
2455
# File 'lib/models/porcelain.rb', line 2453

def egress_filter
  @egress_filter
end

#endpointObject

Returns the value of attribute endpoint.



2455
2456
2457
# File 'lib/models/porcelain.rb', line 2455

def endpoint
  @endpoint
end

#healthcheck_namespaceObject

The path used to check the health of your connection. Defaults to default.



2457
2458
2459
# File 'lib/models/porcelain.rb', line 2457

def healthcheck_namespace
  @healthcheck_namespace
end

#healthyObject

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



2459
2460
2461
# File 'lib/models/porcelain.rb', line 2459

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



2461
2462
2463
# File 'lib/models/porcelain.rb', line 2461

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



2463
2464
2465
# File 'lib/models/porcelain.rb', line 2463

def name
  @name
end

#secret_store_idObject

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



2465
2466
2467
# File 'lib/models/porcelain.rb', line 2465

def secret_store_id
  @secret_store_id
end

#service_account_keyObject

Returns the value of attribute service_account_key.



2467
2468
2469
# File 'lib/models/porcelain.rb', line 2467

def 
  @service_account_key
end

#tagsObject

Tags is a map of key, value pairs.



2469
2470
2471
# File 'lib/models/porcelain.rb', line 2469

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2495
2496
2497
2498
2499
2500
2501
# File 'lib/models/porcelain.rb', line 2495

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