Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchema

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

Resource representing a policy schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyVersionsV1PolicySchema

Returns a new instance of GoogleChromePolicyVersionsV1PolicySchema.



680
681
682
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 680

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

Instance Attribute Details

#access_restrictionsArray<String>

Output only. Specific access restrictions related to this policy. Corresponds to the JSON property accessRestrictions

Returns:

  • (Array<String>)


612
613
614
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 612

def access_restrictions
  @access_restrictions
end

#additional_target_key_namesArray<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1AdditionalTargetKeyName>

Output only. Additional key names that will be used to identify the target of the policy value. When specifying a policyTargetKey, each of the additional keys specified here will have to be included in the additionalTargetKeys map. Corresponds to the JSON property additionalTargetKeyNames



619
620
621
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 619

def additional_target_key_names
  @additional_target_key_names
end

#category_titleString

Title of the category in which a setting belongs. Corresponds to the JSON property categoryTitle

Returns:

  • (String)


624
625
626
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 624

def category_title
  @category_title
end

#definitionGoogle::Apis::ChromepolicyV1::Proto2FileDescriptorProto

Describes a complete .proto file. Corresponds to the JSON property definition



629
630
631
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 629

def definition
  @definition
end

#field_descriptionsArray<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldDescription>

Output only. Detailed description of each field that is part of the schema. Corresponds to the JSON property fieldDescriptions



634
635
636
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 634

def field_descriptions
  @field_descriptions
end

#nameString

Format: name=customers/customer/policySchemas/schema_namespace Corresponds to the JSON property name

Returns:

  • (String)


639
640
641
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 639

def name
  @name
end

#noticesArray<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription>

Output only. Special notice messages related to setting certain values in certain fields in the schema. Corresponds to the JSON property notices



645
646
647
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 645

def notices
  @notices
end

#policy_api_lifecycleGoogle::Apis::ChromepolicyV1::ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle

Output only. Current lifecycle information. Corresponds to the JSON property policyApiLifecycle



650
651
652
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 650

def policy_api_lifecycle
  @policy_api_lifecycle
end

#policy_api_lifeycleGoogle::Apis::ChromepolicyV1::ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle

Deprecated field because of typo. Corresponds to the JSON property policyApiLifeycle



655
656
657
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 655

def policy_api_lifeycle
  @policy_api_lifeycle
end

#policy_descriptionString

Output only. Description about the policy schema for user consumption. Corresponds to the JSON property policyDescription

Returns:

  • (String)


660
661
662
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 660

def policy_description
  @policy_description
end

#schema_nameString

Output only. The fully qualified name of the policy schema. This value is used to fill the field policy_schema in PolicyValue when calling BatchInheritOrgUnitPolicies BatchModifyOrgUnitPolicies BatchModifyGroupPolicies or BatchDeleteGroupPolicies. Corresponds to the JSON property schemaName

Returns:

  • (String)


668
669
670
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 668

def schema_name
  @schema_name
end

#support_uriString

Output only. URI to related support article for this schema. Corresponds to the JSON property supportUri

Returns:

  • (String)


673
674
675
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 673

def support_uri
  @support_uri
end

#valid_target_resourcesArray<String>

Output only. Information about applicable target resources for the policy. Corresponds to the JSON property validTargetResources

Returns:

  • (Array<String>)


678
679
680
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 678

def valid_target_resources
  @valid_target_resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 685

def update!(**args)
  @access_restrictions = args[:access_restrictions] if args.key?(:access_restrictions)
  @additional_target_key_names = args[:additional_target_key_names] if args.key?(:additional_target_key_names)
  @category_title = args[:category_title] if args.key?(:category_title)
  @definition = args[:definition] if args.key?(:definition)
  @field_descriptions = args[:field_descriptions] if args.key?(:field_descriptions)
  @name = args[:name] if args.key?(:name)
  @notices = args[:notices] if args.key?(:notices)
  @policy_api_lifecycle = args[:policy_api_lifecycle] if args.key?(:policy_api_lifecycle)
  @policy_api_lifeycle = args[:policy_api_lifeycle] if args.key?(:policy_api_lifeycle)
  @policy_description = args[:policy_description] if args.key?(:policy_description)
  @schema_name = args[:schema_name] if args.key?(:schema_name)
  @support_uri = args[:support_uri] if args.key?(:support_uri)
  @valid_target_resources = args[:valid_target_resources] if args.key?(:valid_target_resources)
end