@@ -1191,6 +1191,134 @@ def update!(**args)
11911191 end
11921192 end
11931193
1194+ # The metadata for the Operation returned by CreateLogicalView.
1195+ class CreateLogicalViewMetadata
1196+ include Google ::Apis ::Core ::Hashable
1197+
1198+ # If set, the time at which this operation finished or was canceled.
1199+ # Corresponds to the JSON property `endTime`
1200+ # @return [String]
1201+ attr_accessor :end_time
1202+
1203+ # Request message for BigtableInstanceAdmin.CreateLogicalView.
1204+ # Corresponds to the JSON property `originalRequest`
1205+ # @return [Google::Apis::BigtableadminV2::CreateLogicalViewRequest]
1206+ attr_accessor :original_request
1207+
1208+ # The time at which this operation started.
1209+ # Corresponds to the JSON property `startTime`
1210+ # @return [String]
1211+ attr_accessor :start_time
1212+
1213+ def initialize ( **args )
1214+ update! ( **args )
1215+ end
1216+
1217+ # Update properties of this object
1218+ def update! ( **args )
1219+ @end_time = args [ :end_time ] if args . key? ( :end_time )
1220+ @original_request = args [ :original_request ] if args . key? ( :original_request )
1221+ @start_time = args [ :start_time ] if args . key? ( :start_time )
1222+ end
1223+ end
1224+
1225+ # Request message for BigtableInstanceAdmin.CreateLogicalView.
1226+ class CreateLogicalViewRequest
1227+ include Google ::Apis ::Core ::Hashable
1228+
1229+ # A SQL logical view object that can be referenced in SQL queries.
1230+ # Corresponds to the JSON property `logicalView`
1231+ # @return [Google::Apis::BigtableadminV2::LogicalView]
1232+ attr_accessor :logical_view
1233+
1234+ # Required. The ID to use for the logical view, which will become the final
1235+ # component of the logical view's resource name.
1236+ # Corresponds to the JSON property `logicalViewId`
1237+ # @return [String]
1238+ attr_accessor :logical_view_id
1239+
1240+ # Required. The parent instance where this logical view will be created. Format:
1241+ # `projects/`project`/instances/`instance``.
1242+ # Corresponds to the JSON property `parent`
1243+ # @return [String]
1244+ attr_accessor :parent
1245+
1246+ def initialize ( **args )
1247+ update! ( **args )
1248+ end
1249+
1250+ # Update properties of this object
1251+ def update! ( **args )
1252+ @logical_view = args [ :logical_view ] if args . key? ( :logical_view )
1253+ @logical_view_id = args [ :logical_view_id ] if args . key? ( :logical_view_id )
1254+ @parent = args [ :parent ] if args . key? ( :parent )
1255+ end
1256+ end
1257+
1258+ # The metadata for the Operation returned by CreateMaterializedView.
1259+ class CreateMaterializedViewMetadata
1260+ include Google ::Apis ::Core ::Hashable
1261+
1262+ # If set, the time at which this operation finished or was canceled.
1263+ # Corresponds to the JSON property `endTime`
1264+ # @return [String]
1265+ attr_accessor :end_time
1266+
1267+ # Request message for BigtableInstanceAdmin.CreateMaterializedView.
1268+ # Corresponds to the JSON property `originalRequest`
1269+ # @return [Google::Apis::BigtableadminV2::CreateMaterializedViewRequest]
1270+ attr_accessor :original_request
1271+
1272+ # The time at which this operation started.
1273+ # Corresponds to the JSON property `startTime`
1274+ # @return [String]
1275+ attr_accessor :start_time
1276+
1277+ def initialize ( **args )
1278+ update! ( **args )
1279+ end
1280+
1281+ # Update properties of this object
1282+ def update! ( **args )
1283+ @end_time = args [ :end_time ] if args . key? ( :end_time )
1284+ @original_request = args [ :original_request ] if args . key? ( :original_request )
1285+ @start_time = args [ :start_time ] if args . key? ( :start_time )
1286+ end
1287+ end
1288+
1289+ # Request message for BigtableInstanceAdmin.CreateMaterializedView.
1290+ class CreateMaterializedViewRequest
1291+ include Google ::Apis ::Core ::Hashable
1292+
1293+ # A materialized view object that can be referenced in SQL queries.
1294+ # Corresponds to the JSON property `materializedView`
1295+ # @return [Google::Apis::BigtableadminV2::MaterializedView]
1296+ attr_accessor :materialized_view
1297+
1298+ # Required. The ID to use for the materialized view, which will become the final
1299+ # component of the materialized view's resource name.
1300+ # Corresponds to the JSON property `materializedViewId`
1301+ # @return [String]
1302+ attr_accessor :materialized_view_id
1303+
1304+ # Required. The parent instance where this materialized view will be created.
1305+ # Format: `projects/`project`/instances/`instance``.
1306+ # Corresponds to the JSON property `parent`
1307+ # @return [String]
1308+ attr_accessor :parent
1309+
1310+ def initialize ( **args )
1311+ update! ( **args )
1312+ end
1313+
1314+ # Update properties of this object
1315+ def update! ( **args )
1316+ @materialized_view = args [ :materialized_view ] if args . key? ( :materialized_view )
1317+ @materialized_view_id = args [ :materialized_view_id ] if args . key? ( :materialized_view_id )
1318+ @parent = args [ :parent ] if args . key? ( :parent )
1319+ end
1320+ end
1321+
11941322 # Request message for google.bigtable.admin.v2.BigtableTableAdmin.CreateTable
11951323 class CreateTableRequest
11961324 include Google ::Apis ::Core ::Hashable
@@ -2829,6 +2957,81 @@ def update!(**args)
28292957 end
28302958 end
28312959
2960+ # A SQL logical view object that can be referenced in SQL queries.
2961+ class LogicalView
2962+ include Google ::Apis ::Core ::Hashable
2963+
2964+ # Optional. The etag for this logical view. This may be sent on update requests
2965+ # to ensure that the client has an up-to-date value before proceeding. The
2966+ # server returns an ABORTED error on a mismatched etag.
2967+ # Corresponds to the JSON property `etag`
2968+ # @return [String]
2969+ attr_accessor :etag
2970+
2971+ # Identifier. The unique name of the logical view. Format: `projects/`project`/
2972+ # instances/`instance`/logicalViews/`logical_view``
2973+ # Corresponds to the JSON property `name`
2974+ # @return [String]
2975+ attr_accessor :name
2976+
2977+ # Required. The logical view's select query.
2978+ # Corresponds to the JSON property `query`
2979+ # @return [String]
2980+ attr_accessor :query
2981+
2982+ def initialize ( **args )
2983+ update! ( **args )
2984+ end
2985+
2986+ # Update properties of this object
2987+ def update! ( **args )
2988+ @etag = args [ :etag ] if args . key? ( :etag )
2989+ @name = args [ :name ] if args . key? ( :name )
2990+ @query = args [ :query ] if args . key? ( :query )
2991+ end
2992+ end
2993+
2994+ # A materialized view object that can be referenced in SQL queries.
2995+ class MaterializedView
2996+ include Google ::Apis ::Core ::Hashable
2997+
2998+ # Set to true to make the MaterializedView protected against deletion.
2999+ # Corresponds to the JSON property `deletionProtection`
3000+ # @return [Boolean]
3001+ attr_accessor :deletion_protection
3002+ alias_method :deletion_protection? , :deletion_protection
3003+
3004+ # Optional. The etag for this materialized view. This may be sent on update
3005+ # requests to ensure that the client has an up-to-date value before proceeding.
3006+ # The server returns an ABORTED error on a mismatched etag.
3007+ # Corresponds to the JSON property `etag`
3008+ # @return [String]
3009+ attr_accessor :etag
3010+
3011+ # Identifier. The unique name of the materialized view. Format: `projects/`
3012+ # project`/instances/`instance`/materializedViews/`materialized_view``
3013+ # Corresponds to the JSON property `name`
3014+ # @return [String]
3015+ attr_accessor :name
3016+
3017+ # Required. Immutable. The materialized view's select query.
3018+ # Corresponds to the JSON property `query`
3019+ # @return [String]
3020+ attr_accessor :query
3021+
3022+ def initialize ( **args )
3023+ update! ( **args )
3024+ end
3025+
3026+ # Update properties of this object
3027+ def update! ( **args )
3028+ @deletion_protection = args [ :deletion_protection ] if args . key? ( :deletion_protection )
3029+ @etag = args [ :etag ] if args . key? ( :etag )
3030+ @name = args [ :name ] if args . key? ( :name )
3031+ @query = args [ :query ] if args . key? ( :query )
3032+ end
3033+ end
3034+
28323035 # A create, update, or delete of a particular column family.
28333036 class Modification
28343037 include Google ::Apis ::Core ::Hashable
@@ -4075,6 +4278,62 @@ def update!(**args)
40754278 end
40764279 end
40774280
4281+ # The metadata for the Operation returned by UpdateLogicalView.
4282+ class UpdateLogicalViewMetadata
4283+ include Google ::Apis ::Core ::Hashable
4284+
4285+ # If set, the time at which this operation finished or was canceled.
4286+ # Corresponds to the JSON property `endTime`
4287+ # @return [String]
4288+ attr_accessor :end_time
4289+
4290+ # Request message for BigtableInstanceAdmin.UpdateLogicalView.
4291+ # Corresponds to the JSON property `originalRequest`
4292+ # @return [Google::Apis::BigtableadminV2::UpdateLogicalViewRequest]
4293+ attr_accessor :original_request
4294+
4295+ # The time at which this operation was started.
4296+ # Corresponds to the JSON property `startTime`
4297+ # @return [String]
4298+ attr_accessor :start_time
4299+
4300+ def initialize ( **args )
4301+ update! ( **args )
4302+ end
4303+
4304+ # Update properties of this object
4305+ def update! ( **args )
4306+ @end_time = args [ :end_time ] if args . key? ( :end_time )
4307+ @original_request = args [ :original_request ] if args . key? ( :original_request )
4308+ @start_time = args [ :start_time ] if args . key? ( :start_time )
4309+ end
4310+ end
4311+
4312+ # Request message for BigtableInstanceAdmin.UpdateLogicalView.
4313+ class UpdateLogicalViewRequest
4314+ include Google ::Apis ::Core ::Hashable
4315+
4316+ # A SQL logical view object that can be referenced in SQL queries.
4317+ # Corresponds to the JSON property `logicalView`
4318+ # @return [Google::Apis::BigtableadminV2::LogicalView]
4319+ attr_accessor :logical_view
4320+
4321+ # Optional. The list of fields to update.
4322+ # Corresponds to the JSON property `updateMask`
4323+ # @return [String]
4324+ attr_accessor :update_mask
4325+
4326+ def initialize ( **args )
4327+ update! ( **args )
4328+ end
4329+
4330+ # Update properties of this object
4331+ def update! ( **args )
4332+ @logical_view = args [ :logical_view ] if args . key? ( :logical_view )
4333+ @update_mask = args [ :update_mask ] if args . key? ( :update_mask )
4334+ end
4335+ end
4336+
40784337 # Metadata type for the operation returned by UpdateTable.
40794338 class UpdateTableMetadata
40804339 include Google ::Apis ::Core ::Hashable
0 commit comments