Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1NextSchema

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

Overview

NextSchema is a collection of SchemaVersions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1NextSchema

Returns a new instance of GoogleCloudDocumentaiV1NextSchema.



6751
6752
6753
# File 'lib/google/apis/documentai_v1/classes.rb', line 6751

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)


6728
6729
6730
# File 'lib/google/apis/documentai_v1/classes.rb', line 6728

def create_time
  @create_time
end

#display_nameString

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

Returns:

  • (String)


6733
6734
6735
# File 'lib/google/apis/documentai_v1/classes.rb', line 6733

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>)


6738
6739
6740
# File 'lib/google/apis/documentai_v1/classes.rb', line 6738

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)


6744
6745
6746
# File 'lib/google/apis/documentai_v1/classes.rb', line 6744

def name
  @name
end

#update_timeString

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

Returns:

  • (String)


6749
6750
6751
# File 'lib/google/apis/documentai_v1/classes.rb', line 6749

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6756
6757
6758
6759
6760
6761
6762
# File 'lib/google/apis/documentai_v1/classes.rb', line 6756

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