Class: Google::Apis::ComputeAlpha::Screenshot

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

Overview

An instance's screenshot.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Screenshot

Returns a new instance of Screenshot.



42117
42118
42119
# File 'lib/google/apis/compute_alpha/classes.rb', line 42117

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

Instance Attribute Details

#contentsString

[Output Only] The Base64-encoded screenshot data. Corresponds to the JSON property contents

Returns:

  • (String)


42109
42110
42111
# File 'lib/google/apis/compute_alpha/classes.rb', line 42109

def contents
  @contents
end

#kindString

[Output Only] Type of the resource. Always compute#screenshot for the screenshots. Corresponds to the JSON property kind

Returns:

  • (String)


42115
42116
42117
# File 'lib/google/apis/compute_alpha/classes.rb', line 42115

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



42122
42123
42124
42125
# File 'lib/google/apis/compute_alpha/classes.rb', line 42122

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