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

JSON template for Schema resource in Directory API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Schema

Returns a new instance of Schema.



2812
2813
2814
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2812

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


2785
2786
2787
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2785

def display_name
  @display_name
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2790
2791
2792
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2790

def etag
  @etag
end

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

Fields of Schema Corresponds to the JSON property fields



2795
2796
2797
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2795

def fields
  @fields
end

#kindString

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

Returns:

  • (String)


2800
2801
2802
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2800

def kind
  @kind
end

#schema_idString

Unique identifier of Schema (Read-only) Corresponds to the JSON property schemaId

Returns:

  • (String)


2805
2806
2807
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2805

def schema_id
  @schema_id
end

#schema_nameString

Schema name Corresponds to the JSON property schemaName

Returns:

  • (String)


2810
2811
2812
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2810

def schema_name
  @schema_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2817
2818
2819
2820
2821
2822
2823
2824
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2817

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