Class: Google::Apis::BinaryauthorizationV1::PodResult

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PodResult

Returns a new instance of PodResult.



1214
1215
1216
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1214

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#image_resultsArray<Google::Apis::BinaryauthorizationV1::ImageResult>

Per-image details. Corresponds to the JSON property imageResults



1192
1193
1194
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1192

def image_results
  @image_results
end

#kubernetes_namespaceString

The Kubernetes namespace of the Pod. Corresponds to the JSON property kubernetesNamespace

Returns:

  • (String)


1197
1198
1199
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1197

def kubernetes_namespace
  @kubernetes_namespace
end

#kubernetes_service_accountString

The Kubernetes service account of the Pod. Corresponds to the JSON property kubernetesServiceAccount

Returns:

  • (String)


1202
1203
1204
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1202

def 
  @kubernetes_service_account
end

#pod_nameString

The name of the Pod. Corresponds to the JSON property podName

Returns:

  • (String)


1207
1208
1209
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1207

def pod_name
  @pod_name
end

#verdictString

The result of evaluating this Pod. Corresponds to the JSON property verdict

Returns:

  • (String)


1212
1213
1214
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1212

def verdict
  @verdict
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1219
1220
1221
1222
1223
1224
1225
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1219

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