Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1UploadedFileConstraints
- Inherits:
-
Object
- Object
- Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1UploadedFileConstraints
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chromepolicy_v1/classes.rb,
lib/google/apis/chromepolicy_v1/representations.rb,
lib/google/apis/chromepolicy_v1/representations.rb
Overview
Constraints on the uploaded file of a file policy.
Instance Attribute Summary collapse
-
#size_limit_bytes ⇒ Fixnum
The size limit of uploaded files for a setting, in bytes.
-
#supported_content_types ⇒ Array<String>
File types that can be uploaded for a setting.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromePolicyVersionsV1UploadedFileConstraints
constructor
A new instance of GoogleChromePolicyVersionsV1UploadedFileConstraints.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromePolicyVersionsV1UploadedFileConstraints
Returns a new instance of GoogleChromePolicyVersionsV1UploadedFileConstraints.
1413 1414 1415 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1413 def initialize(**args) update!(**args) end |
Instance Attribute Details
#size_limit_bytes ⇒ Fixnum
The size limit of uploaded files for a setting, in bytes.
Corresponds to the JSON property sizeLimitBytes
1406 1407 1408 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1406 def size_limit_bytes @size_limit_bytes end |
#supported_content_types ⇒ Array<String>
File types that can be uploaded for a setting.
Corresponds to the JSON property supportedContentTypes
1411 1412 1413 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1411 def supported_content_types @supported_content_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1418 1419 1420 1421 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1418 def update!(**args) @size_limit_bytes = args[:size_limit_bytes] if args.key?(:size_limit_bytes) @supported_content_types = args[:supported_content_types] if args.key?(:supported_content_types) end |