Class: Inttegro::FileLink::AccessRequest

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/file_link/access_request.rb

Overview

Typed representation of the access request object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#allow_download ⇒ Boolean? (readonly)

Value of the allow_download field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: allow_download.

Returns:

  • (Boolean, nil)


41
42
43
44
45
46
# File 'lib/inttegro/file_link/access_request.rb', line 41

class AccessRequest < T::Struct
  const :max_accesses, T.nilable(Integer), default: nil
  const :allow_download, T.nilable(T::Boolean), default: nil
  const :allowed_origins, T.nilable(T::Array[String]), default: nil
  const :allowed_ip_ranges, T.nilable(T::Array[String]), default: nil
end

#allowed_ip_ranges ⇒ Array<String>? (readonly)

Value of the allowed_ip_ranges field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: allowed_ip_ranges.

Returns:

  • (Array<String>, nil)


41
42
43
44
45
46
# File 'lib/inttegro/file_link/access_request.rb', line 41

class AccessRequest < T::Struct
  const :max_accesses, T.nilable(Integer), default: nil
  const :allow_download, T.nilable(T::Boolean), default: nil
  const :allowed_origins, T.nilable(T::Array[String]), default: nil
  const :allowed_ip_ranges, T.nilable(T::Array[String]), default: nil
end

#allowed_origins ⇒ Array<String>? (readonly)

Value of the allowed_origins field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: allowed_origins.

Returns:

  • (Array<String>, nil)


41
42
43
44
45
46
# File 'lib/inttegro/file_link/access_request.rb', line 41

class AccessRequest < T::Struct
  const :max_accesses, T.nilable(Integer), default: nil
  const :allow_download, T.nilable(T::Boolean), default: nil
  const :allowed_origins, T.nilable(T::Array[String]), default: nil
  const :allowed_ip_ranges, T.nilable(T::Array[String]), default: nil
end

#max_accesses ⇒ Integer? (readonly)

Value of the max_accesses field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: max_accesses.

Returns:

  • (Integer, nil)


41
42
43
44
45
46
# File 'lib/inttegro/file_link/access_request.rb', line 41

class AccessRequest < T::Struct
  const :max_accesses, T.nilable(Integer), default: nil
  const :allow_download, T.nilable(T::Boolean), default: nil
  const :allowed_origins, T.nilable(T::Array[String]), default: nil
  const :allowed_ip_ranges, T.nilable(T::Array[String]), default: nil
end