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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/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.



4269
4270
4271
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4269

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


4241
4242
4243
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4241

def display_name
  @display_name
end

#etagString

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

Returns:

  • (String)


4246
4247
4248
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4246

def etag
  @etag
end

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

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



4251
4252
4253
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4251

def fields
  @fields
end

#kindString

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

Returns:

  • (String)


4256
4257
4258
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4256

def kind
  @kind
end

#schema_idString

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

Returns:

  • (String)


4261
4262
4263
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4261

def schema_id
  @schema_id
end

#schema_nameString

The schema's name. Each schema_name must be unique within a customer. Reusing a name results in a 409: Entity already exists error. Corresponds to the JSON property schemaName

Returns:

  • (String)


4267
4268
4269
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4267

def schema_name
  @schema_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4274
4275
4276
4277
4278
4279
4280
4281
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4274

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