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. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help# fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. ( See http://go/stepladder-help#fieldNumber)

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.


2695
2696
2697
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2695

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)

2668
2669
2670
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2668

def display_name
  @display_name
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)

2673
2674
2675
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2673

def etag
  @etag
end

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

Fields of Schema Corresponds to the JSON property fields


2678
2679
2680
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2678

def fields
  @fields
end

#kindString

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

Returns:

  • (String)

2683
2684
2685
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2683

def kind
  @kind
end

#schema_idString

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

Returns:

  • (String)

2688
2689
2690
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2688

def schema_id
  @schema_id
end

#schema_nameString

Schema name Corresponds to the JSON property schemaName

Returns:

  • (String)

2693
2694
2695
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2693

def schema_name
  @schema_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2700
2701
2702
2703
2704
2705
2706
2707
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2700

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