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.



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

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)


3896
3897
3898
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3896

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)


3903
3904
3905
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3903

def name
  @name
end

#proto_schemaGoogle::Apis::BigtableadminV2::ProtoSchema

Represents a protobuf schema. Corresponds to the JSON property protoSchema



3908
3909
3910
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 3908

def proto_schema
  @proto_schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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