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



2314
2315
2316
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2314

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2292
2293
2294
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2292

def etag
  @etag
end

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

Fields of Schema Corresponds to the JSON property fields



2297
2298
2299
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2297

def fields
  @fields
end

#kindString

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

Returns:

  • (String)


2302
2303
2304
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2302

def kind
  @kind
end

#schema_idString

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

Returns:

  • (String)


2307
2308
2309
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2307

def schema_id
  @schema_id
end

#schema_nameString

Schema name Corresponds to the JSON property schemaName

Returns:

  • (String)


2312
2313
2314
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2312

def schema_name
  @schema_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2319
2320
2321
2322
2323
2324
2325
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2319

def update!(**args)
  @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