Class: Google::Apis::SecuresourcemanagerV1::FetchBlobResponse

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

Overview

Response message containing the content of a blob.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FetchBlobResponse

Returns a new instance of FetchBlobResponse.



612
613
614
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 612

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

Instance Attribute Details

#contentString

The content of the blob, encoded as base64. Corresponds to the JSON property content

Returns:

  • (String)


605
606
607
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 605

def content
  @content
end

#shaString

The SHA-1 hash of the blob. Corresponds to the JSON property sha

Returns:

  • (String)


610
611
612
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 610

def sha
  @sha
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



617
618
619
620
# File 'lib/google/apis/securesourcemanager_v1/classes.rb', line 617

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