Class: Google::Apis::BinaryauthorizationV1::PlatformPolicy

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

A Binary Authorization platform policy for deployments on various platforms.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PlatformPolicy

Returns a new instance of PlatformPolicy.



874
875
876
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 874

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

Instance Attribute Details

#descriptionString

Optional. A description comment about the policy. Corresponds to the JSON property description

Returns:

  • (String)


855
856
857
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 855

def description
  @description
end

#gke_policyGoogle::Apis::BinaryauthorizationV1::GkePolicy

A Binary Authorization policy for a GKE cluster. This is one type of policy that can occur as a PlatformPolicy. Corresponds to the JSON property gkePolicy



861
862
863
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 861

def gke_policy
  @gke_policy
end

#nameString

Output only. The relative resource name of the BinAuthz platform policy, in the form of projects/*/platforms/*/policies/*. Corresponds to the JSON property name

Returns:

  • (String)


867
868
869
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 867

def name
  @name
end

#update_timeString

Output only. Time when the policy was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


872
873
874
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 872

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



879
880
881
882
883
884
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 879

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @gke_policy = args[:gke_policy] if args.key?(:gke_policy)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
end