Class: Google::Apis::AdminDirectoryV1::Schema
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdminDirectoryV1::Schema
 
- 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
- 
  
    
      #display_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Display name for the schema. 
- 
  
    
      #etag  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ETag of the resource. 
- 
  
    
      #fields  ⇒ Array<Google::Apis::AdminDirectoryV1::SchemaFieldSpec> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Fields of Schema Corresponds to the JSON property fields.
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Kind of resource this is. 
- 
  
    
      #schema_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Unique identifier of Schema (Read-only) Corresponds to the JSON property schemaId.
- 
  
    
      #schema_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Schema name Corresponds to the JSON property schemaName.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Schema 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Schema. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Schema
Returns a new instance of Schema
| 2548 2549 2550 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2548 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#display_name ⇒ String
Display name for the schema.
Corresponds to the JSON property displayName
| 2521 2522 2523 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2521 def display_name @display_name end | 
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
| 2526 2527 2528 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2526 def etag @etag end | 
#fields ⇒ Array<Google::Apis::AdminDirectoryV1::SchemaFieldSpec>
Fields of Schema
Corresponds to the JSON property fields
| 2531 2532 2533 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2531 def fields @fields end | 
#kind ⇒ String
Kind of resource this is.
Corresponds to the JSON property kind
| 2536 2537 2538 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2536 def kind @kind end | 
#schema_id ⇒ String
Unique identifier of Schema (Read-only)
Corresponds to the JSON property schemaId
| 2541 2542 2543 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2541 def schema_id @schema_id end | 
#schema_name ⇒ String
Schema name
Corresponds to the JSON property schemaName
| 2546 2547 2548 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2546 def schema_name @schema_name end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2553 2554 2555 2556 2557 2558 2559 2560 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 2553 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 |