biglake.projects.locations.catalogs.create

valid {
    input.ReqMap.parent == STRING
    input.Qs.catalogId == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.databases.create

enum_DatabaseType := [ "TYPE_UNSPECIFIED", "HIVE" ]

valid {
    input.Body.hiveOptions.locationUri == STRING
    input.Body.hiveOptions.parameters.STRING == STRING
    input.Body.type == enum_DatabaseType[_]
    input.ReqMap.parent == STRING
    input.Qs.databaseId == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.databases.delete

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.databases.get

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.databases.list

valid {
    input.ReqMap.parent == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.databases.patch

enum_DatabaseType := [ "TYPE_UNSPECIFIED", "HIVE" ]

valid {
    input.Body.hiveOptions.locationUri == STRING
    input.Body.hiveOptions.parameters.STRING == STRING
    input.Body.type == enum_DatabaseType[_]
    input.ReqMap.name == STRING
    input.Qs.updateMask == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.databases.tables.create

enum_TableType := [ "TYPE_UNSPECIFIED", "HIVE" ]

valid {
    input.Body.etag == STRING
    input.Body.hiveOptions.parameters.STRING == STRING
    input.Body.hiveOptions.storageDescriptor.inputFormat == STRING
    input.Body.hiveOptions.storageDescriptor.locationUri == STRING
    input.Body.hiveOptions.storageDescriptor.outputFormat == STRING
    input.Body.hiveOptions.storageDescriptor.serdeInfo.serializationLib == STRING
    input.Body.hiveOptions.tableType == STRING
    input.Body.type == enum_TableType[_]
    input.ReqMap.parent == STRING
    input.Qs.tableId == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.databases.tables.delete

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.databases.tables.get

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.databases.tables.list

enum_ViewParameter := [ "TABLE_VIEW_UNSPECIFIED", "BASIC", "FULL" ]

valid {
    input.ReqMap.parent == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.Qs.view == enum_ViewParameter[_]
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.databases.tables.patch

enum_TableType := [ "TYPE_UNSPECIFIED", "HIVE" ]

valid {
    input.Body.etag == STRING
    input.Body.hiveOptions.parameters.STRING == STRING
    input.Body.hiveOptions.storageDescriptor.inputFormat == STRING
    input.Body.hiveOptions.storageDescriptor.locationUri == STRING
    input.Body.hiveOptions.storageDescriptor.outputFormat == STRING
    input.Body.hiveOptions.storageDescriptor.serdeInfo.serializationLib == STRING
    input.Body.hiveOptions.tableType == STRING
    input.Body.type == enum_TableType[_]
    input.ReqMap.name == STRING
    input.Qs.updateMask == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.databases.tables.rename

valid {
    input.Body.newName == STRING
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.delete

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.get

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

biglake.projects.locations.catalogs.list

valid {
    input.ReqMap.parent == STRING
    input.Qs.pageSize == INTEGER
    input.Qs.pageToken == STRING
    input.ProviderMetadata.Region == STRING
}