class Google::Apis::AdminDirectoryV1::SchemaFieldSpec
JSON template for FieldSpec resource for Schemas in Directory API.
Attributes
ETag of the resource. Corresponds to the JSON property `etag` @return [String]
Unique identifier of Field (Read-only) Corresponds to the JSON property `fieldId` @return [String]
Name of the field. Corresponds to the JSON property `fieldName` @return [String]
Type of the field. Corresponds to the JSON property `fieldType` @return [String]
Boolean specifying whether the field is indexed or not. Corresponds to the JSON property `indexed` @return [Boolean]
Boolean specifying whether the field is indexed or not. Corresponds to the JSON property `indexed` @return [Boolean]
Kind of resource this is. Corresponds to the JSON property `kind` @return [String]
Boolean specifying whether this is a multi-valued field or not. Corresponds to the JSON property `multiValued` @return [Boolean]
Boolean specifying whether this is a multi-valued field or not. Corresponds to the JSON property `multiValued` @return [Boolean]
Indexing spec for a numeric field. By default, only exact match queries will be supported for numeric fields. Setting the numericIndexingSpec allows range queries to be supported. Corresponds to the JSON property `numericIndexingSpec` @return [Google::Apis::AdminDirectoryV1::SchemaFieldSpec::NumericIndexingSpec]
Read ACLs on the field specifying who can view values of this field. Valid values are “ALL_DOMAIN_USERS” and “ADMINS_AND_SELF”. Corresponds to the JSON property `readAccessType` @return [String]
Public Class Methods
# File generated/google/apis/admin_directory_v1/classes.rb, line 2041 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/admin_directory_v1/classes.rb, line 2046 def update!(**args) @etag = args[:etag] if args.key?(:etag) @field_id = args[:field_id] if args.key?(:field_id) @field_name = args[:field_name] if args.key?(:field_name) @field_type = args[:field_type] if args.key?(:field_type) @indexed = args[:indexed] if args.key?(:indexed) @kind = args[:kind] if args.key?(:kind) @multi_valued = args[:multi_valued] if args.key?(:multi_valued) @numeric_indexing_spec = args[:numeric_indexing_spec] if args.key?(:numeric_indexing_spec) @read_access_type = args[:read_access_type] if args.key?(:read_access_type) end