Class: Google::Apis::CloudassetV1p1beta1::GoogleIdentityAccesscontextmanagerV1Condition
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1p1beta1::GoogleIdentityAccesscontextmanagerV1Condition
- 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 condition necessary for an AccessLevel
to be granted. The Condition is an
AND over its fields. So a Condition is true if: 1) the request IP is from one
of the listed subnetworks AND 2) the originating device complies with the
listed device policy AND 3) all listed access levels are granted AND 4) the
request was sent at a time allowed by the DateTimeRestriction.
Instance Attribute Summary collapse
-
#device_policy ⇒ Google::Apis::CloudassetV1p1beta1::GoogleIdentityAccesscontextmanagerV1DevicePolicy
DevicePolicy
specifies device specific restrictions necessary to acquire a given access level. -
#ip_subnetworks ⇒ Array<String>
CIDR block IP subnetwork specification.
-
#members ⇒ Array<String>
The request must be made by one of the provided user or service accounts.
-
#negate ⇒ Boolean
(also: #negate?)
Whether to negate the Condition.
-
#regions ⇒ Array<String>
The request must originate from one of the provided countries/regions.
-
#required_access_levels ⇒ Array<String>
A list of other access levels defined in the same
Policy
, referenced by resource name. -
#vpc_network_sources ⇒ Array<Google::Apis::CloudassetV1p1beta1::GoogleIdentityAccesscontextmanagerV1VpcNetworkSource>
The request must originate from one of the provided VPC networks in Google Cloud.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleIdentityAccesscontextmanagerV1Condition
constructor
A new instance of GoogleIdentityAccesscontextmanagerV1Condition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleIdentityAccesscontextmanagerV1Condition
Returns a new instance of GoogleIdentityAccesscontextmanagerV1Condition.
1143 1144 1145 |
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1143 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_policy ⇒ Google::Apis::CloudassetV1p1beta1::GoogleIdentityAccesscontextmanagerV1DevicePolicy
DevicePolicy
specifies device specific restrictions necessary to acquire a
given access level. A DevicePolicy
specifies requirements for requests from
devices to be granted access levels, it does not do any enforcement on the
device. DevicePolicy
acts as an AND over all specified fields, and each
repeated field is an OR over its elements. Any unset fields are ignored. For
example, if the proto is os_type : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX,
encryption_status: ENCRYPTED
, then the DevicePolicy will be true for requests
originating from encrypted Linux desktops and encrypted Windows desktops.
Corresponds to the JSON property devicePolicy
1095 1096 1097 |
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1095 def device_policy @device_policy end |
#ip_subnetworks ⇒ Array<String>
CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for a
CIDR IP address block, the specified IP address portion must be properly
truncated (i.e. all the host bits must be zero) or the input is considered
malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is not.
Similarly, for IPv6, "2001:db8::/32" is accepted whereas "2001:db8::1/32" is
not. The originating IP of a request must be in one of the listed subnets in
order for this Condition to be true. If empty, all IP addresses are allowed.
Corresponds to the JSON property ipSubnetworks
1106 1107 1108 |
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1106 def ip_subnetworks @ip_subnetworks end |
#members ⇒ Array<String>
The request must be made by one of the provided user or service accounts.
Groups are not supported. Syntax: user:
emailid`serviceAccount:`emailid
If not specified, a request may come from any user.
Corresponds to the JSON property members
1113 1114 1115 |
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1113 def members @members end |
#negate ⇒ Boolean Also known as: negate?
Whether to negate the Condition. If true, the Condition becomes a NAND over
its non-empty fields. Any non-empty field criteria evaluating to false will
result in the Condition to be satisfied. Defaults to false.
Corresponds to the JSON property negate
1120 1121 1122 |
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1120 def negate @negate end |
#regions ⇒ Array<String>
The request must originate from one of the provided countries/regions. Must be
valid ISO 3166-1 alpha-2 codes.
Corresponds to the JSON property regions
1127 1128 1129 |
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1127 def regions @regions end |
#required_access_levels ⇒ Array<String>
A list of other access levels defined in the same Policy
, referenced by
resource name. Referencing an AccessLevel
which does not exist is an error.
All access levels listed must be granted for the Condition to be true. Example:
"accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"
Corresponds to the JSON property requiredAccessLevels
1135 1136 1137 |
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1135 def required_access_levels @required_access_levels end |
#vpc_network_sources ⇒ Array<Google::Apis::CloudassetV1p1beta1::GoogleIdentityAccesscontextmanagerV1VpcNetworkSource>
The request must originate from one of the provided VPC networks in Google
Cloud. Cannot specify this field together with ip_subnetworks
.
Corresponds to the JSON property vpcNetworkSources
1141 1142 1143 |
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1141 def vpc_network_sources @vpc_network_sources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1148 1149 1150 1151 1152 1153 1154 1155 1156 |
# File 'lib/google/apis/cloudasset_v1p1beta1/classes.rb', line 1148 def update!(**args) @device_policy = args[:device_policy] if args.key?(:device_policy) @ip_subnetworks = args[:ip_subnetworks] if args.key?(:ip_subnetworks) @members = args[:members] if args.key?(:members) @negate = args[:negate] if args.key?(:negate) @regions = args[:regions] if args.key?(:regions) @required_access_levels = args[:required_access_levels] if args.key?(:required_access_levels) @vpc_network_sources = args[:vpc_network_sources] if args.key?(:vpc_network_sources) end |