Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1ResolvedPolicy

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 resolved value of a policy for a given target.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyVersionsV1ResolvedPolicy

Returns a new instance of GoogleChromePolicyVersionsV1ResolvedPolicy.



1106
1107
1108
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1106

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

Instance Attribute Details

#added_source_keyGoogle::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyTargetKey

The key used to identify the target on which the policy will be applied. Corresponds to the JSON property addedSourceKey



1089
1090
1091
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1089

def added_source_key
  @added_source_key
end

#source_keyGoogle::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyTargetKey

The key used to identify the target on which the policy will be applied. Corresponds to the JSON property sourceKey



1094
1095
1096
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1094

def source_key
  @source_key
end

#target_keyGoogle::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyTargetKey

The key used to identify the target on which the policy will be applied. Corresponds to the JSON property targetKey



1099
1100
1101
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1099

def target_key
  @target_key
end

#valueGoogle::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyValue

A particular value for a policy managed by the service. Corresponds to the JSON property value



1104
1105
1106
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1104

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1111
1112
1113
1114
1115
1116
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1111

def update!(**args)
  @added_source_key = args[:added_source_key] if args.key?(:added_source_key)
  @source_key = args[:source_key] if args.key?(:source_key)
  @target_key = args[:target_key] if args.key?(:target_key)
  @value = args[:value] if args.key?(:value)
end