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.



4176
4177
4178
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 4176

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)


4162
4163
4164
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 4162

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)


4169
4170
4171
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 4169

def name
  @name
end

#proto_schemaGoogle::Apis::BigtableadminV2::ProtoSchema

Represents a collection of protobuf schemas. Corresponds to the JSON property protoSchema



4174
4175
4176
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 4174

def proto_schema
  @proto_schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4181
4182
4183
4184
4185
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 4181

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