Class: Google::Apis::AccesscontextmanagerV1beta::OsConstraint
- Inherits:
-
Object
- Object
- Google::Apis::AccesscontextmanagerV1beta::OsConstraint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/accesscontextmanager_v1beta/classes.rb,
generated/google/apis/accesscontextmanager_v1beta/representations.rb,
generated/google/apis/accesscontextmanager_v1beta/representations.rb
Overview
A restriction on the OS type and version of devices making requests.
Instance Attribute Summary collapse
-
#minimum_version ⇒ String
The minimum allowed OS version.
-
#os_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OsConstraint
constructor
A new instance of OsConstraint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ OsConstraint
Returns a new instance of OsConstraint
473 474 475 |
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 473 def initialize(**args) update!(**args) end |
Instance Attribute Details
#minimum_version ⇒ String
The minimum allowed OS version. If not set, any version of this OS
satisfies the constraint. Format: "major.minor.patch"
.
Examples: "10.5.301"
, "9.2.1"
.
Corresponds to the JSON property minimumVersion
466 467 468 |
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 466 def minimum_version @minimum_version end |
#os_type ⇒ String
Required. The allowed OS type.
Corresponds to the JSON property osType
471 472 473 |
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 471 def os_type @os_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
478 479 480 481 |
# File 'generated/google/apis/accesscontextmanager_v1beta/classes.rb', line 478 def update!(**args) @minimum_version = args[:minimum_version] if args.key?(:minimum_version) @os_type = args[:os_type] if args.key?(:os_type) end |