Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyTargetKey
- Inherits:
-
Object
- Object
- Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyTargetKey
- 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
The key used to identify the target on which the policy will be applied.
Instance Attribute Summary collapse
-
#additional_target_keys ⇒ Hash<String,String>
Map containing the additional target key name and value pairs used to further identify the target of the policy.
-
#target_resource ⇒ String
The target resource on which this policy is applied.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromePolicyVersionsV1PolicyTargetKey
constructor
A new instance of GoogleChromePolicyVersionsV1PolicyTargetKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChromePolicyVersionsV1PolicyTargetKey
Returns a new instance of GoogleChromePolicyVersionsV1PolicyTargetKey.
1075 1076 1077 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1075 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_target_keys ⇒ Hash<String,String>
Map containing the additional target key name and value pairs used to further
identify the target of the policy.
Corresponds to the JSON property additionalTargetKeys
1066 1067 1068 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1066 def additional_target_keys @additional_target_keys end |
#target_resource ⇒ String
The target resource on which this policy is applied. The following resources
are supported: * Organizational Unit ("orgunits/orgunit_id
") * Group ("
groups/group_id
")
Corresponds to the JSON property targetResource
1073 1074 1075 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1073 def target_resource @target_resource end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1080 1081 1082 1083 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1080 def update!(**args) @additional_target_keys = args[:additional_target_keys] if args.key?(:additional_target_keys) @target_resource = args[:target_resource] if args.key?(:target_resource) end |