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.



1979
1980
1981
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1979

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


1957
1958
1959
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1957

def etag
  @etag
end

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

Fields of Schema Corresponds to the JSON property fields



1962
1963
1964
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1962

def fields
  @fields
end

#kindString

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

Returns:

  • (String)


1967
1968
1969
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1967

def kind
  @kind
end

#schema_idString

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

Returns:

  • (String)


1972
1973
1974
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1972

def schema_id
  @schema_id
end

#schema_nameString

Schema name Corresponds to the JSON property schemaName

Returns:

  • (String)


1977
1978
1979
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1977

def schema_name
  @schema_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1984
1985
1986
1987
1988
1989
1990
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1984

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