Class: Google::Apis::MetastoreV1::AlterTablePropertiesRequest

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

Overview

Request message for DataprocMetastore.AlterTableProperties.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AlterTablePropertiesRequest

Returns a new instance of AlterTablePropertiesRequest.



93
94
95
# File 'lib/google/apis/metastore_v1/classes.rb', line 93

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

Instance Attribute Details

#propertiesHash<String,String>

A map that describes the desired values to mutate. If update_mask is empty, the properties will not update. Otherwise, the properties only alters the value whose associated paths exist in the update mask Corresponds to the JSON property properties

Returns:

  • (Hash<String,String>)


74
75
76
# File 'lib/google/apis/metastore_v1/classes.rb', line 74

def properties
  @properties
end

#table_nameString

Required. The name of the table containing the properties you're altering in the following format.databases/database_id/tables/table_id Corresponds to the JSON property tableName

Returns:

  • (String)


80
81
82
# File 'lib/google/apis/metastore_v1/classes.rb', line 80

def table_name
  @table_name
end

#update_maskString

A field mask that specifies the metadata table properties that are overwritten by the update. Fields specified in the update_mask are relative to the resource (not to the full request). A field is overwritten if it is in the mask.For example, given the target properties: properties a: 1 b: 2 And an update properties: properties a: 2 b: 3 c: 4 then if the field mask is: paths: "properties.b", "properties.c"then the result will be: properties a: 1 b: 3 c: 4 Corresponds to the JSON property updateMask

Returns:

  • (String)


91
92
93
# File 'lib/google/apis/metastore_v1/classes.rb', line 91

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



98
99
100
101
102
# File 'lib/google/apis/metastore_v1/classes.rb', line 98

def update!(**args)
  @properties = args[:properties] if args.key?(:properties)
  @table_name = args[:table_name] if args.key?(:table_name)
  @update_mask = args[:update_mask] if args.key?(:update_mask)
end