class Google::Apis::AdminDirectoryV1::SchemaFieldSpec

JSON template for FieldSpec resource for Schemas in Directory API.

Attributes

etag[RW]

ETag of the resource. Corresponds to the JSON property `etag` @return [String]

field_id[RW]

Unique identifier of Field (Read-only) Corresponds to the JSON property `fieldId` @return [String]

field_name[RW]

Name of the field. Corresponds to the JSON property `fieldName` @return [String]

field_type[RW]

Type of the field. Corresponds to the JSON property `fieldType` @return [String]

indexed[RW]

Boolean specifying whether the field is indexed or not. Corresponds to the JSON property `indexed` @return [Boolean]

indexed?[RW]

Boolean specifying whether the field is indexed or not. Corresponds to the JSON property `indexed` @return [Boolean]

kind[RW]

Kind of resource this is. Corresponds to the JSON property `kind` @return [String]

multi_valued[RW]

Boolean specifying whether this is a multi-valued field or not. Corresponds to the JSON property `multiValued` @return [Boolean]

multi_valued?[RW]

Boolean specifying whether this is a multi-valued field or not. Corresponds to the JSON property `multiValued` @return [Boolean]

numeric_indexing_spec[RW]

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_access_type[RW]

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

new(**args) click to toggle source
# File generated/google/apis/admin_directory_v1/classes.rb, line 2041
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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