Class: Google::Apis::BigtableadminV2::SchemaBundle

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

Overview

A named collection of related schemas.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SchemaBundle

Returns a new instance of SchemaBundle.



3924
3925
3926
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3924

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

Instance Attribute Details

#etagString

Optional. The etag for this schema bundle. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. The server returns an ABORTED error on a mismatched etag. Corresponds to the JSON property etag

Returns:

  • (String)


3910
3911
3912
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3910

def etag
  @etag
end

#nameString

Identifier. The unique name identifying this schema bundle. Values are of the form projects/project/instances/instance/tables/table/schemaBundles/ schema_bundle` Corresponds to the JSON propertyname`

Returns:

  • (String)


3917
3918
3919
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3917

def name
  @name
end

#proto_schemaGoogle::Apis::BigtableadminV2::ProtoSchema

Represents a protobuf schema. Corresponds to the JSON property protoSchema



3922
3923
3924
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3922

def proto_schema
  @proto_schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3929
3930
3931
3932
3933
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3929

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @name = args[:name] if args.key?(:name)
  @proto_schema = args[:proto_schema] if args.key?(:proto_schema)
end