Class: Google::Apis::AdminDirectoryV1::Schema

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/representations.rb

Overview

The type of API resource. For Schema resources, this is always admin# directory#schema.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Schema

Returns a new instance of Schema.



2938
2939
2940
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2938

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

Instance Attribute Details

#display_nameString

Display name for the schema. Corresponds to the JSON property displayName

Returns:

  • (String)


2911
2912
2913
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2911

def display_name
  @display_name
end

#etagString

The ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2916
2917
2918
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2916

def etag
  @etag
end

#fieldsArray<Google::Apis::AdminDirectoryV1::SchemaFieldSpec>

A list of fields in the schema. Corresponds to the JSON property fields



2921
2922
2923
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2921

def fields
  @fields
end

#kindString

Kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


2926
2927
2928
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2926

def kind
  @kind
end

#schema_idString

The unique identifier of the schema (Read-only) Corresponds to the JSON property schemaId

Returns:

  • (String)


2931
2932
2933
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2931

def schema_id
  @schema_id
end

#schema_nameString

The schema's name. Corresponds to the JSON property schemaName

Returns:

  • (String)


2936
2937
2938
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2936

def schema_name
  @schema_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2943
2944
2945
2946
2947
2948
2949
2950
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2943

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @etag = args[:etag] if args.key?(:etag)
  @fields = args[:fields] if args.key?(:fields)
  @kind = args[:kind] if args.key?(:kind)
  @schema_id = args[:schema_id] if args.key?(:schema_id)
  @schema_name = args[:schema_name] if args.key?(:schema_name)
end