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.



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

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

Instance Attribute Details

#image_resultsArray<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_namespaceString

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

Returns:

  • (String)


1204
1205
1206
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1204

def kubernetes_namespace
  @kubernetes_namespace
end

#kubernetes_service_accountString

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

Returns:

  • (String)


1209
1210
1211
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 1209

def 
  @kubernetes_service_account
end

#pod_nameString

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

Returns:

  • (String)


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

def pod_name
  @pod_name
end

#verdictString

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

Returns:

  • (String)


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