Class: Google::Apis::BinaryauthorizationV1::PlatformPolicy
- Inherits:
-
Object
- Object
- Google::Apis::BinaryauthorizationV1::PlatformPolicy
- 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
-
#description ⇒ String
Optional.
-
#gke_policy ⇒ Google::Apis::BinaryauthorizationV1::GkePolicy
A Binary Authorization policy for a GKE cluster.
-
#name ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PlatformPolicy
constructor
A new instance of PlatformPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PlatformPolicy
Returns a new instance of PlatformPolicy.
894 895 896 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 894 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. A description comment about the policy.
Corresponds to the JSON property description
875 876 877 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 875 def description @description end |
#gke_policy ⇒ Google::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
881 882 883 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 881 def gke_policy @gke_policy end |
#name ⇒ String
Output only. The relative resource name of the Binary Authorization platform
policy, in the form of projects/*/platforms/*/policies/*.
Corresponds to the JSON property name
887 888 889 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 887 def name @name end |
#update_time ⇒ String
Output only. Time when the policy was last updated.
Corresponds to the JSON property updateTime
892 893 894 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 892 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
899 900 901 902 903 904 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 899 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 |