Class: Google::Apis::BinaryauthorizationV1::Attestor

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/binaryauthorization_v1/classes.rb,
generated/google/apis/binaryauthorization_v1/representations.rb,
generated/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Attestor

Returns a new instance of Attestor.


114
115
116
# File 'generated/google/apis/binaryauthorization_v1/classes.rb', line 114

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)

95
96
97
# File 'generated/google/apis/binaryauthorization_v1/classes.rb', line 95

def description
  @description
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)

101
102
103
# File 'generated/google/apis/binaryauthorization_v1/classes.rb', line 101

def name
  @name
end

#update_timeString

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

Returns:

  • (String)

106
107
108
# File 'generated/google/apis/binaryauthorization_v1/classes.rb', line 106

def update_time
  @update_time
end

#user_owned_grafeas_noteGoogle::Apis::BinaryauthorizationV1::UserOwnedGrafeasNote

An user owned Grafeas note references a Grafeas Attestation.Authority Note created by the user. Corresponds to the JSON property userOwnedGrafeasNote


112
113
114
# File 'generated/google/apis/binaryauthorization_v1/classes.rb', line 112

def user_owned_grafeas_note
  @user_owned_grafeas_note
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


119
120
121
122
123
124
# File 'generated/google/apis/binaryauthorization_v1/classes.rb', line 119

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @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