Class: Google::Apis::CloudassetV1p1beta1::GoogleIdentityAccesscontextmanagerV1OsConstraint

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudasset_v1p1beta1/classes.rb,
lib/google/apis/cloudasset_v1p1beta1/representations.rb,
lib/google/apis/cloudasset_v1p1beta1/representations.rb

Overview

A restriction on the OS type and version of devices making requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleIdentityAccesscontextmanagerV1OsConstraint

Returns a new instance of GoogleIdentityAccesscontextmanagerV1OsConstraint.



1630
1631
1632
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1630

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

Instance Attribute Details

#minimum_versionString

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

Returns:

  • (String)


1614
1615
1616
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1614

def minimum_version
  @minimum_version
end

#os_typeString

Required. The allowed OS type. Corresponds to the JSON property osType

Returns:

  • (String)


1619
1620
1621
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1619

def os_type
  @os_type
end

#require_verified_chrome_osBoolean Also known as: require_verified_chrome_os?

Only allows requests from devices with a verified Chrome OS. Verifications includes requirements that the device is enterprise-managed, conformant to domain policies, and the caller has permission to call the API targeted by the request. Corresponds to the JSON property requireVerifiedChromeOs

Returns:

  • (Boolean)


1627
1628
1629
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1627

def require_verified_chrome_os
  @require_verified_chrome_os
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1635
1636
1637
1638
1639
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1635

def update!(**args)
  @minimum_version = args[:minimum_version] if args.key?(:minimum_version)
  @os_type = args[:os_type] if args.key?(:os_type)
  @require_verified_chrome_os = args[:require_verified_chrome_os] if args.key?(:require_verified_chrome_os)
end