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.



4149
4150
4151
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 4149

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)


4135
4136
4137
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 4135

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)


4142
4143
4144
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 4142

def name
  @name
end

#proto_schemaGoogle::Apis::BigtableadminV2::ProtoSchema

Represents a protobuf schema. Corresponds to the JSON property protoSchema



4147
4148
4149
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 4147

def proto_schema
  @proto_schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4154
4155
4156
4157
4158
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 4154

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