Class: SDM::KubernetesServiceAccount
- Inherits:
-
Object
- Object
- SDM::KubernetesServiceAccount
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
-
#healthcheck_namespace ⇒ Object
The path used to check the health of your connection.
-
#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.
-
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#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
constructor
A new instance of KubernetesServiceAccount.
- #to_json(options = {}) ⇒ Object
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 = == nil ? SDM::() : @token = token == nil ? "" : token end |
Instance Attribute Details
#egress_filter ⇒ Object
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_namespace ⇒ Object
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 |
#healthy ⇒ Object
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 |
#hostname ⇒ Object
Returns the value of attribute hostname.
2939 2940 2941 |
# File 'lib/models/porcelain.rb', line 2939 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
2941 2942 2943 |
# File 'lib/models/porcelain.rb', line 2941 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
2943 2944 2945 |
# File 'lib/models/porcelain.rb', line 2943 def name @name end |
#port ⇒ Object
Returns the value of attribute port.
2945 2946 2947 |
# File 'lib/models/porcelain.rb', line 2945 def port @port end |
#secret_store_id ⇒ Object
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 |
#tags ⇒ Object
Tags is a map of key, value pairs.
2949 2950 2951 |
# File 'lib/models/porcelain.rb', line 2949 def @tags end |
#token ⇒ Object
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( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |