Class: Google::Apis::MetastoreV1::AlterTablePropertiesRequest
- Inherits:
-
Object
- Object
- Google::Apis::MetastoreV1::AlterTablePropertiesRequest
- 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
-
#properties ⇒ Hash<String,String>
A map that describes the desired values to mutate.
-
#table_name ⇒ String
Required.
-
#update_mask ⇒ String
A field mask that specifies the metadata table properties that are overwritten by the update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AlterTablePropertiesRequest
constructor
A new instance of AlterTablePropertiesRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#properties ⇒ Hash<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
74 75 76 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 74 def properties @properties end |
#table_name ⇒ String
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
80 81 82 |
# File 'lib/google/apis/metastore_v1/classes.rb', line 80 def table_name @table_name end |
#update_mask ⇒ String
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
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 |