Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicyValue

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

A particular value for a policy managed by the service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyVersionsV1PolicyValue

Returns a new instance of GoogleChromePolicyVersionsV1PolicyValue.



1005
1006
1007
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1005

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

Instance Attribute Details

#policy_schemaString

The fully qualified name of the policy schema associated with this policy. Corresponds to the JSON property policySchema

Returns:

  • (String)


997
998
999
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 997

def policy_schema
  @policy_schema
end

#valueHash<String,Object>

The value of the policy that is compatible with the schema that it is associated with. Corresponds to the JSON property value

Returns:

  • (Hash<String,Object>)


1003
1004
1005
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1003

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1010
1011
1012
1013
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 1010

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