Class: Aws::Continuum::Types::PatchBody

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-continuum/lib/aws-sdk-continuum/types.rb

Overview

Projected content for a PATCH artifact: the remediation patch for one repository, with the descriptors needed to verify and apply it and the state of its delivery to the customer's own bucket or repository.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#delivery ⇒ Types::PatchDelivery

Delivery of the patch to the customer's bucket or repository. Absent when the artifact has no delivery destination.



3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/types.rb', line 3308

class PatchBody < Struct.new(
  :patch,
  :format,
  :repository_name,
  :patch_sha_256,
  :size_bytes,
  :delivery)
  SENSITIVE = []
  include Aws::Structure
end

#format ⇒ String

The patch's wire format, read from the patch itself, which determines how to apply it. Absent when the patch starts with neither a git mailbox header nor a diff --git header.

Returns:

  • (String)


3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/types.rb', line 3308

class PatchBody < Struct.new(
  :patch,
  :format,
  :repository_name,
  :patch_sha_256,
  :size_bytes,
  :delivery)
  SENSITIVE = []
  include Aws::Structure
end

#patch ⇒ String

The patch exactly as stored, unmodified. Control Plane accepted it only as a text unified diff, so git apply applies it.

Returns:

  • (String)


3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/types.rb', line 3308

class PatchBody < Struct.new(
  :patch,
  :format,
  :repository_name,
  :patch_sha_256,
  :size_bytes,
  :delivery)
  SENSITIVE = []
  include Aws::Structure
end

#patch_sha_256 ⇒ String

SHA-256 of the patch's UTF-8 bytes in lowercase hex, computed by Control Plane when it stored the patch.

Lets a caller confirm the patch it applies is byte-for-byte the one that was reviewed. Computed over the patch bytes, so it is verifiable against patch without trusting this value.

Returns:

  • (String)


3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/types.rb', line 3308

class PatchBody < Struct.new(
  :patch,
  :format,
  :repository_name,
  :patch_sha_256,
  :size_bytes,
  :delivery)
  SENSITIVE = []
  include Aws::Structure
end

#repository_name ⇒ String

The repository the patch applies to, as named in the source snapshot it was generated against.

Returns:

  • (String)


3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/types.rb', line 3308

class PatchBody < Struct.new(
  :patch,
  :format,
  :repository_name,
  :patch_sha_256,
  :size_bytes,
  :delivery)
  SENSITIVE = []
  include Aws::Structure
end

#size_bytes ⇒ Integer

Size of the patch in UTF-8 bytes, the unit the digest is computed over.

Returns:

  • (Integer)


3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
# File 'gems/aws-sdk-continuum/lib/aws-sdk-continuum/types.rb', line 3308

class PatchBody < Struct.new(
  :patch,
  :format,
  :repository_name,
  :patch_sha_256,
  :size_bytes,
  :delivery)
  SENSITIVE = []
  include Aws::Structure
end