Class: Google::Apis::ContaineranalysisV1beta1::Authority

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/containeranalysis_v1beta1/classes.rb,
generated/google/apis/containeranalysis_v1beta1/representations.rb,
generated/google/apis/containeranalysis_v1beta1/representations.rb

Overview

Note kind that represents a logical attestation "role" or "authority". For example, an organization might have one Authority for "QA" and one for "build". This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don't all live in the same project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Authority

Returns a new instance of Authority



253
254
255
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 253

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

Instance Attribute Details

#hintGoogle::Apis::ContaineranalysisV1beta1::Hint

This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from "readable" names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. Corresponds to the JSON property hint



251
252
253
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 251

def hint
  @hint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



258
259
260
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 258

def update!(**args)
  @hint = args[:hint] if args.key?(:hint)
end