123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629 |
- syntax = "proto3";
- package google.cloud.dataform.v1beta1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/field_mask.proto";
- import "google/type/interval.proto";
- option csharp_namespace = "Google.Cloud.Dataform.V1Beta1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/dataform/v1beta1;dataform";
- option java_multiple_files = true;
- option java_outer_classname = "DataformProto";
- option java_package = "com.google.cloud.dataform.v1beta1";
- option php_namespace = "Google\\Cloud\\Dataform\\V1beta1";
- option ruby_package = "Google::Cloud::Dataform::V1beta1";
- option (google.api.resource_definition) = {
- type: "secretmanager.googleapis.com/SecretVersion"
- pattern: "projects/{project}/secrets/{secret}/versions/{version}"
- };
- service Dataform {
- option (google.api.default_host) = "dataform.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc ListRepositories(ListRepositoriesRequest) returns (ListRepositoriesResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{parent=projects/*/locations/*}/repositories"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetRepository(GetRepositoryRequest) returns (Repository) {
- option (google.api.http) = {
- get: "/v1beta1/{name=projects/*/locations/*/repositories/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateRepository(CreateRepositoryRequest) returns (Repository) {
- option (google.api.http) = {
- post: "/v1beta1/{parent=projects/*/locations/*}/repositories"
- body: "repository"
- };
- option (google.api.method_signature) = "parent,repository,repository_id";
- }
-
- rpc UpdateRepository(UpdateRepositoryRequest) returns (Repository) {
- option (google.api.http) = {
- patch: "/v1beta1/{repository.name=projects/*/locations/*/repositories/*}"
- body: "repository"
- };
- option (google.api.method_signature) = "repository,update_mask";
- }
-
- rpc DeleteRepository(DeleteRepositoryRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1beta1/{name=projects/*/locations/*/repositories/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc FetchRemoteBranches(FetchRemoteBranchesRequest) returns (FetchRemoteBranchesResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches"
- };
- }
-
- rpc ListWorkspaces(ListWorkspacesRequest) returns (ListWorkspacesResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetWorkspace(GetWorkspaceRequest) returns (Workspace) {
- option (google.api.http) = {
- get: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateWorkspace(CreateWorkspaceRequest) returns (Workspace) {
- option (google.api.http) = {
- post: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces"
- body: "workspace"
- };
- option (google.api.method_signature) = "parent,workspace,workspace_id";
- }
-
- rpc DeleteWorkspace(DeleteWorkspaceRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc InstallNpmPackages(InstallNpmPackagesRequest) returns (InstallNpmPackagesResponse) {
- option (google.api.http) = {
- post: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages"
- body: "*"
- };
- }
-
- rpc PullGitCommits(PullGitCommitsRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- post: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull"
- body: "*"
- };
- }
-
- rpc PushGitCommits(PushGitCommitsRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- post: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:push"
- body: "*"
- };
- }
-
- rpc FetchFileGitStatuses(FetchFileGitStatusesRequest) returns (FetchFileGitStatusesResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileGitStatuses"
- };
- }
-
- rpc FetchGitAheadBehind(FetchGitAheadBehindRequest) returns (FetchGitAheadBehindResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:fetchGitAheadBehind"
- };
- }
-
- rpc CommitWorkspaceChanges(CommitWorkspaceChangesRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- post: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:commit"
- body: "*"
- };
- }
-
- rpc ResetWorkspaceChanges(ResetWorkspaceChangesRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- post: "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:reset"
- body: "*"
- };
- }
-
- rpc FetchFileDiff(FetchFileDiffRequest) returns (FetchFileDiffResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:fetchFileDiff"
- };
- }
-
- rpc QueryDirectoryContents(QueryDirectoryContentsRequest) returns (QueryDirectoryContentsResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:queryDirectoryContents"
- };
- }
-
- rpc MakeDirectory(MakeDirectoryRequest) returns (MakeDirectoryResponse) {
- option (google.api.http) = {
- post: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:makeDirectory"
- body: "*"
- };
- }
-
- rpc RemoveDirectory(RemoveDirectoryRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- post: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeDirectory"
- body: "*"
- };
- }
-
-
- rpc MoveDirectory(MoveDirectoryRequest) returns (MoveDirectoryResponse) {
- option (google.api.http) = {
- post: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory"
- body: "*"
- };
- }
-
- rpc ReadFile(ReadFileRequest) returns (ReadFileResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:readFile"
- };
- }
-
- rpc RemoveFile(RemoveFileRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- post: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:removeFile"
- body: "*"
- };
- }
-
- rpc MoveFile(MoveFileRequest) returns (MoveFileResponse) {
- option (google.api.http) = {
- post: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:moveFile"
- body: "*"
- };
- }
-
- rpc WriteFile(WriteFileRequest) returns (WriteFileResponse) {
- option (google.api.http) = {
- post: "/v1beta1/{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile"
- body: "*"
- };
- }
-
- rpc ListCompilationResults(ListCompilationResultsRequest) returns (ListCompilationResultsResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetCompilationResult(GetCompilationResultRequest) returns (CompilationResult) {
- option (google.api.http) = {
- get: "/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateCompilationResult(CreateCompilationResultRequest) returns (CompilationResult) {
- option (google.api.http) = {
- post: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/compilationResults"
- body: "compilation_result"
- };
- option (google.api.method_signature) = "parent,compilation_result";
- }
-
- rpc QueryCompilationResultActions(QueryCompilationResultActionsRequest) returns (QueryCompilationResultActionsResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{name=projects/*/locations/*/repositories/*/compilationResults/*}:query"
- };
- }
-
- rpc ListWorkflowInvocations(ListWorkflowInvocationsRequest) returns (ListWorkflowInvocationsResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetWorkflowInvocation(GetWorkflowInvocationRequest) returns (WorkflowInvocation) {
- option (google.api.http) = {
- get: "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreateWorkflowInvocation(CreateWorkflowInvocationRequest) returns (WorkflowInvocation) {
- option (google.api.http) = {
- post: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workflowInvocations"
- body: "workflow_invocation"
- };
- option (google.api.method_signature) = "parent,workflow_invocation";
- }
-
- rpc DeleteWorkflowInvocation(DeleteWorkflowInvocationRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CancelWorkflowInvocation(CancelWorkflowInvocationRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- post: "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:cancel"
- body: "*"
- };
- }
-
- rpc QueryWorkflowInvocationActions(QueryWorkflowInvocationActionsRequest) returns (QueryWorkflowInvocationActionsResponse) {
- option (google.api.http) = {
- get: "/v1beta1/{name=projects/*/locations/*/repositories/*/workflowInvocations/*}:query"
- };
- }
- }
- message Repository {
- option (google.api.resource) = {
- type: "dataform.googleapis.com/Repository"
- pattern: "projects/{project}/locations/{location}/repositories/{repository}"
- };
-
- message GitRemoteSettings {
-
- enum TokenStatus {
-
- TOKEN_STATUS_UNSPECIFIED = 0;
-
-
- NOT_FOUND = 1;
-
- INVALID = 2;
-
- VALID = 3;
- }
-
- string url = 1 [(google.api.field_behavior) = REQUIRED];
-
- string default_branch = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
- string authentication_token_secret_version = 3 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "secretmanager.googleapis.com/SecretVersion"
- }
- ];
-
- TokenStatus token_status = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- GitRemoteSettings git_remote_settings = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListRepositoriesRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "locations.googleapis.com/Location"
- }
- ];
-
-
-
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- string order_by = 4 [(google.api.field_behavior) = OPTIONAL];
-
- string filter = 5 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListRepositoriesResponse {
-
- repeated Repository repositories = 1;
-
-
- string next_page_token = 2;
-
- repeated string unreachable = 3;
- }
- message GetRepositoryRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Repository"
- }
- ];
- }
- message CreateRepositoryRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "locations.googleapis.com/Location"
- }
- ];
-
- Repository repository = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- string repository_id = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message UpdateRepositoryRequest {
-
-
- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL];
-
- Repository repository = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message DeleteRepositoryRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Repository"
- }
- ];
-
-
-
- bool force = 2;
- }
- message FetchRemoteBranchesRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Repository"
- }
- ];
- }
- message FetchRemoteBranchesResponse {
-
- repeated string branches = 1;
- }
- message Workspace {
- option (google.api.resource) = {
- type: "dataform.googleapis.com/Workspace"
- pattern: "projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}"
- };
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message ListWorkspacesRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Repository"
- }
- ];
-
-
-
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- string order_by = 4 [(google.api.field_behavior) = OPTIONAL];
-
- string filter = 5 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListWorkspacesResponse {
-
- repeated Workspace workspaces = 1;
-
-
- string next_page_token = 2;
-
- repeated string unreachable = 3;
- }
- message GetWorkspaceRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
- }
- message CreateWorkspaceRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Repository"
- }
- ];
-
- Workspace workspace = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- string workspace_id = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message DeleteWorkspaceRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
- }
- message CommitAuthor {
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
-
- string email_address = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message PullGitCommitsRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
-
- string remote_branch = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
- CommitAuthor author = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message PushGitCommitsRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
-
- string remote_branch = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message FetchFileGitStatusesRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
- }
- message FetchFileGitStatusesResponse {
-
- message UncommittedFileChange {
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- ADDED = 1;
-
- DELETED = 2;
-
- MODIFIED = 3;
-
- HAS_CONFLICTS = 4;
- }
-
- string path = 1;
-
- State state = 2;
- }
-
-
- repeated UncommittedFileChange uncommitted_file_changes = 1;
- }
- message FetchGitAheadBehindRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
-
-
- string remote_branch = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message FetchGitAheadBehindResponse {
-
- int32 commits_ahead = 1;
-
- int32 commits_behind = 2;
- }
- message CommitWorkspaceChangesRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
- CommitAuthor author = 4 [(google.api.field_behavior) = REQUIRED];
-
- string commit_message = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
- repeated string paths = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message ResetWorkspaceChangesRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
-
- repeated string paths = 2 [(google.api.field_behavior) = OPTIONAL];
-
- bool clean = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message FetchFileDiffRequest {
-
- string workspace = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
- string path = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message FetchFileDiffResponse {
-
- string formatted_diff = 1;
- }
- message QueryDirectoryContentsRequest {
-
- string workspace = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
-
- string path = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
- string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message QueryDirectoryContentsResponse {
-
- message DirectoryEntry {
- oneof entry {
-
- string file = 1;
-
- string directory = 2;
- }
- }
-
- repeated DirectoryEntry directory_entries = 1;
-
-
- string next_page_token = 2;
- }
- message MakeDirectoryRequest {
-
- string workspace = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
-
- string path = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message MakeDirectoryResponse {
- }
- message RemoveDirectoryRequest {
-
- string workspace = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
-
- string path = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message MoveDirectoryRequest {
-
- string workspace = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
-
- string path = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- string new_path = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message MoveDirectoryResponse {
- }
- message ReadFileRequest {
-
- string workspace = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
- string path = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message ReadFileResponse {
-
- bytes file_contents = 1;
- }
- message RemoveFileRequest {
-
- string workspace = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
- string path = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message MoveFileRequest {
-
- string workspace = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
- string path = 2 [(google.api.field_behavior) = REQUIRED];
-
- string new_path = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message MoveFileResponse {
- }
- message WriteFileRequest {
-
- string workspace = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
-
- string path = 2 [(google.api.field_behavior) = REQUIRED];
-
- bytes contents = 3 [(google.api.field_behavior) = REQUIRED];
- }
- message WriteFileResponse {
- }
- message InstallNpmPackagesRequest {
-
- string workspace = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
- }
- message InstallNpmPackagesResponse {
- }
- message CompilationResult {
- option (google.api.resource) = {
- type: "dataform.googleapis.com/CompilationResult"
- pattern: "projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}"
- };
-
- message CodeCompilationConfig {
-
- string default_database = 1 [(google.api.field_behavior) = OPTIONAL];
-
- string default_schema = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- string default_location = 8 [(google.api.field_behavior) = OPTIONAL];
-
- string assertion_schema = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
- map<string, string> vars = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
- string database_suffix = 5 [(google.api.field_behavior) = OPTIONAL];
-
-
- string schema_suffix = 6 [(google.api.field_behavior) = OPTIONAL];
-
- string table_prefix = 7 [(google.api.field_behavior) = OPTIONAL];
- }
-
- message CompilationError {
-
- string message = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Output only. The error's full stack trace.
- string stack = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Output only. The path of the file where this error occurred, if available, relative to
- // the project root.
- string path = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Output only. The identifier of the action where this error occurred, if available.
- Target action_target = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- // Output only. The compilation result's name.
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
- oneof source {
-
-
-
-
-
-
- string git_commitish = 2 [(google.api.field_behavior) = IMMUTABLE];
-
-
- string workspace = 3 [
- (google.api.field_behavior) = IMMUTABLE,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Workspace"
- }
- ];
- }
-
-
- CodeCompilationConfig code_compilation_config = 4 [(google.api.field_behavior) = IMMUTABLE];
-
- string dataform_core_version = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- repeated CompilationError compilation_errors = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message ListCompilationResultsRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Repository"
- }
- ];
-
-
-
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListCompilationResultsResponse {
-
- repeated CompilationResult compilation_results = 1;
-
-
- string next_page_token = 2;
-
- repeated string unreachable = 3;
- }
- message GetCompilationResultRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/CompilationResult"
- }
- ];
- }
- message CreateCompilationResultRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Repository"
- }
- ];
-
- CompilationResult compilation_result = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message Target {
-
- string database = 1;
-
- string schema = 2;
-
- string name = 3;
- }
- message RelationDescriptor {
-
- message ColumnDescriptor {
-
-
- repeated string path = 1;
-
- string description = 2;
-
- repeated string bigquery_policy_tags = 3;
- }
-
- string description = 1;
-
- repeated ColumnDescriptor columns = 2;
-
- map<string, string> bigquery_labels = 3;
- }
- message CompilationResultAction {
-
- message Relation {
-
- enum RelationType {
-
- RELATION_TYPE_UNSPECIFIED = 0;
-
- TABLE = 1;
-
- VIEW = 2;
-
- INCREMENTAL_TABLE = 3;
-
- MATERIALIZED_VIEW = 4;
- }
-
- message IncrementalTableConfig {
-
-
- string incremental_select_query = 1;
-
- bool refresh_disabled = 2;
-
-
-
-
- repeated string unique_key_parts = 3;
-
-
-
- string update_partition_filter = 4;
-
-
- repeated string incremental_pre_operations = 5;
-
-
- repeated string incremental_post_operations = 6;
- }
-
- repeated Target dependency_targets = 1;
-
- bool disabled = 2;
-
- repeated string tags = 3;
-
- RelationDescriptor relation_descriptor = 4;
-
- RelationType relation_type = 5;
-
- string select_query = 6;
-
- repeated string pre_operations = 7;
-
- repeated string post_operations = 8;
-
-
- IncrementalTableConfig incremental_table_config = 9;
-
- string partition_expression = 10;
-
- repeated string cluster_expressions = 11;
-
- int32 partition_expiration_days = 12;
-
-
- bool require_partition_filter = 13;
-
-
-
-
- map<string, string> additional_options = 14;
- }
-
- message Operations {
-
- repeated Target dependency_targets = 1;
-
- bool disabled = 2;
-
- repeated string tags = 3;
-
-
- RelationDescriptor relation_descriptor = 6;
-
-
- repeated string queries = 4;
-
- bool has_output = 5;
- }
-
-
- message Assertion {
-
- repeated Target dependency_targets = 1;
-
-
- Target parent_action = 5;
-
- bool disabled = 2;
-
- repeated string tags = 3;
-
-
- string select_query = 4;
-
-
- RelationDescriptor relation_descriptor = 6;
- }
-
-
- message Declaration {
-
-
- RelationDescriptor relation_descriptor = 1;
- }
-
- Target target = 1;
-
-
- Target canonical_target = 2;
-
-
- string file_path = 3;
- oneof compiled_object {
-
- Relation relation = 4;
-
- Operations operations = 5;
-
- Assertion assertion = 6;
-
- Declaration declaration = 7;
- }
- }
- message QueryCompilationResultActionsRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/CompilationResult"
- }
- ];
-
-
-
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
-
-
- string filter = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message QueryCompilationResultActionsResponse {
-
- repeated CompilationResultAction compilation_result_actions = 1;
-
-
- string next_page_token = 2;
- }
- message WorkflowInvocation {
- option (google.api.resource) = {
- type: "dataform.googleapis.com/WorkflowInvocation"
- pattern: "projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}"
- };
-
-
-
- message InvocationConfig {
-
- repeated Target included_targets = 1 [(google.api.field_behavior) = IMMUTABLE];
-
- repeated string included_tags = 2 [(google.api.field_behavior) = IMMUTABLE];
-
-
- bool transitive_dependencies_included = 3 [(google.api.field_behavior) = IMMUTABLE];
-
-
- bool transitive_dependents_included = 4 [(google.api.field_behavior) = IMMUTABLE];
-
- bool fully_refresh_incremental_tables_enabled = 5 [(google.api.field_behavior) = IMMUTABLE];
- }
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- RUNNING = 1;
-
- SUCCEEDED = 2;
-
- CANCELLED = 3;
-
- FAILED = 4;
-
-
- CANCELING = 5;
- }
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string compilation_result = 2 [
- (google.api.field_behavior) = IMMUTABLE,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/CompilationResult"
- }
- ];
-
- InvocationConfig invocation_config = 3 [(google.api.field_behavior) = IMMUTABLE];
-
- State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.type.Interval invocation_timing = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message ListWorkflowInvocationsRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Repository"
- }
- ];
-
-
-
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListWorkflowInvocationsResponse {
-
- repeated WorkflowInvocation workflow_invocations = 1;
-
-
- string next_page_token = 2;
-
- repeated string unreachable = 3;
- }
- message GetWorkflowInvocationRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/WorkflowInvocation"
- }
- ];
- }
- message CreateWorkflowInvocationRequest {
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/Repository"
- }
- ];
-
- WorkflowInvocation workflow_invocation = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message DeleteWorkflowInvocationRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/WorkflowInvocation"
- }
- ];
- }
- message CancelWorkflowInvocationRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/WorkflowInvocation"
- }
- ];
- }
- message WorkflowInvocationAction {
-
- enum State {
-
- PENDING = 0;
-
- RUNNING = 1;
-
-
- SKIPPED = 2;
-
-
- DISABLED = 3;
-
- SUCCEEDED = 4;
-
- CANCELLED = 5;
-
- FAILED = 6;
- }
-
- message BigQueryAction {
-
- string sql_script = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
-
- Target target = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- Target canonical_target = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string failure_reason = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
- google.type.Interval invocation_timing = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- BigQueryAction bigquery_action = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message QueryWorkflowInvocationActionsRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "dataform.googleapis.com/WorkflowInvocation"
- }
- ];
-
-
-
- int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
- string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message QueryWorkflowInvocationActionsResponse {
-
- repeated WorkflowInvocationAction workflow_invocation_actions = 1;
-
-
- string next_page_token = 2;
- }
|