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.



6810
6811
6812
# File 'lib/google/apis/documentai_v1/classes.rb', line 6810

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)


6787
6788
6789
# File 'lib/google/apis/documentai_v1/classes.rb', line 6787

def create_time
  @create_time
end

#display_nameString

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

Returns:

  • (String)


6792
6793
6794
# File 'lib/google/apis/documentai_v1/classes.rb', line 6792

def display_name
  @display_name
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


6797
6798
6799
# File 'lib/google/apis/documentai_v1/classes.rb', line 6797

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)


6803
6804
6805
# File 'lib/google/apis/documentai_v1/classes.rb', line 6803

def name
  @name
end

#update_timeString

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

Returns:

  • (String)


6808
6809
6810
# File 'lib/google/apis/documentai_v1/classes.rb', line 6808

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6815
6816
6817
6818
6819
6820
6821
# File 'lib/google/apis/documentai_v1/classes.rb', line 6815

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