Class: Inttegro::FileLink::AccessRequest
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::FileLink::AccessRequest
- 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
-
#allow_download ⇒ Boolean?
readonly
Value of the
allow_downloadfield in the Inttegro API payload. -
#allowed_ip_ranges ⇒ Array<String>?
readonly
Value of the
allowed_ip_rangesfield in the Inttegro API payload. -
#allowed_origins ⇒ Array<String>?
readonly
Value of the
allowed_originsfield in the Inttegro API payload. -
#max_accesses ⇒ Integer?
readonly
Value of the
max_accessesfield in the Inttegro API payload.
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.
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.
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.
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.
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 |