Class: Google::Apis::OndemandscanningV1::ResourceDescriptor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceDescriptor

Returns a new instance of ResourceDescriptor.



3145
3146
3147
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3145

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

Instance Attribute Details

#annotationsHash<String,Object>

Corresponds to the JSON property annotations

Returns:

  • (Hash<String,Object>)


3112
3113
3114
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3112

def annotations
  @annotations
end

#contentString

Corresponds to the JSON property content NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


3118
3119
3120
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3118

def content
  @content
end

#digestHash<String,String>

Corresponds to the JSON property digest

Returns:

  • (Hash<String,String>)


3123
3124
3125
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3123

def digest
  @digest
end

#download_locationString

Corresponds to the JSON property downloadLocation

Returns:

  • (String)


3128
3129
3130
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3128

def download_location
  @download_location
end

#media_typeString

Corresponds to the JSON property mediaType

Returns:

  • (String)


3133
3134
3135
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3133

def media_type
  @media_type
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


3138
3139
3140
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3138

def name
  @name
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


3143
3144
3145
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3143

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3150
3151
3152
3153
3154
3155
3156
3157
3158
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3150

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @content = args[:content] if args.key?(:content)
  @digest = args[:digest] if args.key?(:digest)
  @download_location = args[:download_location] if args.key?(:download_location)
  @media_type = args[:media_type] if args.key?(:media_type)
  @name = args[:name] if args.key?(:name)
  @uri = args[:uri] if args.key?(:uri)
end