Class: Google::Apis::BinaryauthorizationV1::Attestor
- Inherits:
-
Object
- Object
- Google::Apis::BinaryauthorizationV1::Attestor
- 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
An attestor that attests to container image artifacts. An existing attestor cannot be modified except where indicated.
Instance Attribute Summary collapse
-
#description ⇒ String
Optional.
-
#etag ⇒ String
Optional.
-
#name ⇒ String
Required.
-
#update_time ⇒ String
Output only.
-
#user_owned_grafeas_note ⇒ Google::Apis::BinaryauthorizationV1::UserOwnedGrafeasNote
An user owned Grafeas note references a Grafeas Attestation.Authority Note created by the user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Attestor
constructor
A new instance of Attestor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Attestor
Returns a new instance of Attestor.
246 247 248 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 246 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Optional. A descriptive comment. This field may be updated. The field may be
displayed in chooser dialogs.
Corresponds to the JSON property description
220 221 222 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 220 def description @description end |
#etag ⇒ String
Optional. A checksum, returned by the server, that can be sent on update
requests to ensure the attestor has an up-to-date value before attempting to
update it. See https://google.aip.dev/154.
Corresponds to the JSON property etag
227 228 229 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 227 def etag @etag end |
#name ⇒ String
Required. The resource name, in the format: projects/*/attestors/*
. This
field may not be updated.
Corresponds to the JSON property name
233 234 235 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 233 def name @name end |
#update_time ⇒ String
Output only. Time when the attestor was last updated.
Corresponds to the JSON property updateTime
238 239 240 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 238 def update_time @update_time end |
#user_owned_grafeas_note ⇒ Google::Apis::BinaryauthorizationV1::UserOwnedGrafeasNote
An user owned Grafeas note references a Grafeas Attestation.Authority Note
created by the user.
Corresponds to the JSON property userOwnedGrafeasNote
244 245 246 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 244 def user_owned_grafeas_note @user_owned_grafeas_note end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
251 252 253 254 255 256 257 |
# File 'lib/google/apis/binaryauthorization_v1/classes.rb', line 251 def update!(**args) @description = args[:description] if args.key?(:description) @etag = args[:etag] if args.key?(:etag) @name = args[:name] if args.key?(:name) @update_time = args[:update_time] if args.key?(:update_time) @user_owned_grafeas_note = args[:user_owned_grafeas_note] if args.key?(:user_owned_grafeas_note) end |