Class: Google::Apis::AdminDirectoryV1::Schema
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::Schema
- 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
-
#display_name ⇒ String
Display name for the schema.
-
#etag ⇒ String
The ETag of the resource.
-
#fields ⇒ Array<Google::Apis::AdminDirectoryV1::SchemaFieldSpec>
A list of fields in the schema.
-
#kind ⇒ String
Kind of resource this is.
-
#schema_id ⇒ String
The unique identifier of the schema (Read-only) Corresponds to the JSON property
schemaId. -
#schema_name ⇒ String
The schema's name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Schema
constructor
A new instance of Schema.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Schema
Returns a new instance of Schema.
3823 3824 3825 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3823 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Display name for the schema.
Corresponds to the JSON property displayName
3795 3796 3797 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3795 def display_name @display_name end |
#etag ⇒ String
The ETag of the resource.
Corresponds to the JSON property etag
3800 3801 3802 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3800 def etag @etag end |
#fields ⇒ Array<Google::Apis::AdminDirectoryV1::SchemaFieldSpec>
A list of fields in the schema.
Corresponds to the JSON property fields
3805 3806 3807 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3805 def fields @fields end |
#kind ⇒ String
Kind of resource this is.
Corresponds to the JSON property kind
3810 3811 3812 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3810 def kind @kind end |
#schema_id ⇒ String
The unique identifier of the schema (Read-only)
Corresponds to the JSON property schemaId
3815 3816 3817 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3815 def schema_id @schema_id end |
#schema_name ⇒ String
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
3821 3822 3823 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3821 def schema_name @schema_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3828 3829 3830 3831 3832 3833 3834 3835 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3828 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 |