Class: Google::Apis::BinaryauthorizationV1beta1::Attestor

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/binaryauthorization_v1beta1/classes.rb,
lib/google/apis/binaryauthorization_v1beta1/representations.rb,
lib/google/apis/binaryauthorization_v1beta1/representations.rb

Overview

An attestor that attests to container image artifacts. An existing attestor cannot be modified except where indicated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Attestor

Returns a new instance of Attestor.



171
172
173
# File 'lib/google/apis/binaryauthorization_v1beta1/classes.rb', line 171

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

Instance Attribute Details

#descriptionString

Optional. A descriptive comment. This field may be updated. The field may be displayed in chooser dialogs. Corresponds to the JSON property description

Returns:

  • (String)


145
146
147
# File 'lib/google/apis/binaryauthorization_v1beta1/classes.rb', line 145

def description
  @description
end

#etagString

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

Returns:

  • (String)


152
153
154
# File 'lib/google/apis/binaryauthorization_v1beta1/classes.rb', line 152

def etag
  @etag
end

#nameString

Required. The resource name, in the format: projects/*/attestors/*. This field may not be updated. Corresponds to the JSON property name

Returns:

  • (String)


158
159
160
# File 'lib/google/apis/binaryauthorization_v1beta1/classes.rb', line 158

def name
  @name
end

#update_timeString

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

Returns:

  • (String)


163
164
165
# File 'lib/google/apis/binaryauthorization_v1beta1/classes.rb', line 163

def update_time
  @update_time
end

#user_owned_drydock_noteGoogle::Apis::BinaryauthorizationV1beta1::UserOwnedDrydockNote

An user owned drydock note references a Drydock ATTESTATION_AUTHORITY Note created by the user. Corresponds to the JSON property userOwnedDrydockNote



169
170
171
# File 'lib/google/apis/binaryauthorization_v1beta1/classes.rb', line 169

def user_owned_drydock_note
  @user_owned_drydock_note
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



176
177
178
179
180
181
182
# File 'lib/google/apis/binaryauthorization_v1beta1/classes.rb', line 176

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_drydock_note = args[:user_owned_drydock_note] if args.key?(:user_owned_drydock_note)
end