Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyV1PolicyTargetKey

Returns a new instance of GoogleChromePolicyV1PolicyTargetKey.



475
476
477
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 475

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

Instance Attribute Details

#additional_target_keysHash<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

Returns:

  • (Hash<String,String>)


467
468
469
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 467

def additional_target_keys
  @additional_target_keys
end

#target_resourceString

The target resource on which this policy is applied. The following resources are supported: * Organizational Unit ("orgunits/orgunit_id") Corresponds to the JSON property targetResource

Returns:

  • (String)


473
474
475
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 473

def target_resource
  @target_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



480
481
482
483
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 480

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