Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3NextSchema

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/documentai_v1beta3/classes.rb,
lib/google/apis/documentai_v1beta3/representations.rb,
lib/google/apis/documentai_v1beta3/representations.rb

Overview

NextSchema is a collection of SchemaVersions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3NextSchema

Returns a new instance of GoogleCloudDocumentaiV1beta3NextSchema.



8531
8532
8533
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8531

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

Instance Attribute Details

#create_timeString

Output only. The time when the Schema was created. Corresponds to the JSON property createTime

Returns:

  • (String)


8508
8509
8510
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8508

def create_time
  @create_time
end

#display_nameString

Required. The user-defined name of the Schema. Corresponds to the JSON property displayName

Returns:

  • (String)


8513
8514
8515
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8513

def display_name
  @display_name
end

#labelsHash<String,String>

Optional. The GCP labels for the Schema. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


8518
8519
8520
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8518

def labels
  @labels
end

#nameString

Identifier. The resource name of the Schema. Format: projects/project/ locations/location/schemas/schema` Corresponds to the JSON propertyname`

Returns:

  • (String)


8524
8525
8526
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8524

def name
  @name
end

#update_timeString

Output only. The time when the Schema was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


8529
8530
8531
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8529

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8536
8537
8538
8539
8540
8541
8542
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 8536

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
end