Class: Google::Apis::AndroidmanagementV1::ExternalData

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

Overview

Data hosted at an external location. The data is to be downloaded by Android Device Policy and verified against the hash.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ExternalData

Returns a new instance of ExternalData



729
730
731
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 729

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

Instance Attribute Details

#sha256_hashString

The base-64 encoded SHA-256 hash of the content hosted at url. If the content does not match this hash, Android Device Policy will not use the data. Corresponds to the JSON property sha256Hash

Returns:

  • (String)


719
720
721
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 719

def sha256_hash
  @sha256_hash
end

#urlString

The absolute URL to the data, which must use either the http or https scheme. Android Device Policy does not provide any credentials in the GET request, so the URL must be publicly accessible. Including a long, random component in the URL may be used to prevent attackers from discovering the URL. Corresponds to the JSON property url

Returns:

  • (String)


727
728
729
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 727

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



734
735
736
737
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 734

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