Class: Google::Apis::BinaryauthorizationV1::PodResult
- Inherits:
-
Object
- Object
- Google::Apis::BinaryauthorizationV1::PodResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/binaryauthorization_v1/classes.rb,
lib/google/apis/binaryauthorization_v1/representations.rb,
lib/google/apis/binaryauthorization_v1/representations.rb
Overview
Result of evaluating the whole GKE policy for one Pod.
Instance Attribute Summary collapse
-
#image_results ⇒ Array<Google::Apis::BinaryauthorizationV1::ImageResult>
Per-image details.
-
#kubernetes_namespace ⇒ String
The Kubernetes namespace of the Pod.
-
#kubernetes_service_account ⇒ String
The Kubernetes service account of the Pod.
-
#pod_name ⇒ String
The name of the Pod.
-
#verdict ⇒ String
The result of evaluating this Pod.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PodResult
constructor
A new instance of PodResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PodResult
Returns a new instance of PodResult.
1221 1222 1223 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1221 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_results ⇒ Array<Google::Apis::BinaryauthorizationV1::ImageResult>
Per-image details.
Corresponds to the JSON property imageResults
1199 1200 1201 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1199 def image_results @image_results end |
#kubernetes_namespace ⇒ String
The Kubernetes namespace of the Pod.
Corresponds to the JSON property kubernetesNamespace
1204 1205 1206 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1204 def kubernetes_namespace @kubernetes_namespace end |
#kubernetes_service_account ⇒ String
The Kubernetes service account of the Pod.
Corresponds to the JSON property kubernetesServiceAccount
1209 1210 1211 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1209 def kubernetes_service_account @kubernetes_service_account end |
#pod_name ⇒ String
The name of the Pod.
Corresponds to the JSON property podName
1214 1215 1216 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1214 def pod_name @pod_name end |
#verdict ⇒ String
The result of evaluating this Pod.
Corresponds to the JSON property verdict
1219 1220 1221 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1219 def verdict @verdict end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1226 1227 1228 1229 1230 1231 1232 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1226 def update!(**args) @image_results = args[:image_results] if args.key?(:image_results) @kubernetes_namespace = args[:kubernetes_namespace] if args.key?(:kubernetes_namespace) @kubernetes_service_account = args[:kubernetes_service_account] if args.key?(:kubernetes_service_account) @pod_name = args[:pod_name] if args.key?(:pod_name) @verdict = args[:verdict] if args.key?(:verdict) end |