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(egress_filter: nil, healthcheck_namespace: nil, healthy: nil, hostname: nil, id: nil, name: nil, port: nil, secret_store_id: nil, tags: nil, token: nil) ⇒ KubernetesServiceAccount

Returns a new instance of KubernetesServiceAccount.



2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
# File 'lib/models/porcelain.rb', line 2953

def initialize(
  egress_filter: nil,
  healthcheck_namespace: nil,
  healthy: nil,
  hostname: nil,
  id: nil,
  name: nil,
  port: nil,
  secret_store_id: nil,
  tags: nil,
  token: nil
)
  @egress_filter = egress_filter == nil ? "" : egress_filter
  @healthcheck_namespace = healthcheck_namespace == nil ? "" : healthcheck_namespace
  @healthy = healthy == nil ? false : healthy
  @hostname = hostname == nil ? "" : hostname
  @id = id == nil ? "" : id
  @name = name == nil ? "" : name
  @port = port == nil ? 0 : port
  @secret_store_id = secret_store_id == nil ? "" : secret_store_id
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
  @token = token == nil ? "" : token
end

Instance Attribute Details

#egress_filterObject

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



2933
2934
2935
# File 'lib/models/porcelain.rb', line 2933

def egress_filter
  @egress_filter
end

#healthcheck_namespaceObject

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



2935
2936
2937
# File 'lib/models/porcelain.rb', line 2935

def healthcheck_namespace
  @healthcheck_namespace
end

#healthyObject

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



2937
2938
2939
# File 'lib/models/porcelain.rb', line 2937

def healthy
  @healthy
end

#hostnameObject

Returns the value of attribute hostname.



2939
2940
2941
# File 'lib/models/porcelain.rb', line 2939

def hostname
  @hostname
end

#idObject

Unique identifier of the Resource.



2941
2942
2943
# File 'lib/models/porcelain.rb', line 2941

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



2943
2944
2945
# File 'lib/models/porcelain.rb', line 2943

def name
  @name
end

#portObject

Returns the value of attribute port.



2945
2946
2947
# File 'lib/models/porcelain.rb', line 2945

def port
  @port
end

#secret_store_idObject

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



2947
2948
2949
# File 'lib/models/porcelain.rb', line 2947

def secret_store_id
  @secret_store_id
end

#tagsObject

Tags is a map of key, value pairs.



2949
2950
2951
# File 'lib/models/porcelain.rb', line 2949

def tags
  @tags
end

#tokenObject

Returns the value of attribute token.



2951
2952
2953
# File 'lib/models/porcelain.rb', line 2951

def token
  @token
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2977
2978
2979
2980
2981
2982
2983
# File 'lib/models/porcelain.rb', line 2977

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