google-cloud-dataform 0.6.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. google/cloud/dataform/__init__.py +247 -0
  2. google/cloud/dataform/gapic_version.py +16 -0
  3. google/cloud/dataform/py.typed +2 -0
  4. google/cloud/dataform_v1/__init__.py +244 -0
  5. google/cloud/dataform_v1/gapic_metadata.json +838 -0
  6. google/cloud/dataform_v1/gapic_version.py +16 -0
  7. google/cloud/dataform_v1/py.typed +2 -0
  8. google/cloud/dataform_v1/services/__init__.py +15 -0
  9. google/cloud/dataform_v1/services/dataform/__init__.py +22 -0
  10. google/cloud/dataform_v1/services/dataform/async_client.py +6371 -0
  11. google/cloud/dataform_v1/services/dataform/client.py +6895 -0
  12. google/cloud/dataform_v1/services/dataform/pagers.py +1925 -0
  13. google/cloud/dataform_v1/services/dataform/transports/__init__.py +36 -0
  14. google/cloud/dataform_v1/services/dataform/transports/base.py +1060 -0
  15. google/cloud/dataform_v1/services/dataform/transports/grpc.py +1980 -0
  16. google/cloud/dataform_v1/services/dataform/transports/grpc_asyncio.py +2337 -0
  17. google/cloud/dataform_v1/services/dataform/transports/rest.py +12350 -0
  18. google/cloud/dataform_v1/services/dataform/transports/rest_base.py +3028 -0
  19. google/cloud/dataform_v1/types/__init__.py +236 -0
  20. google/cloud/dataform_v1/types/dataform.py +4157 -0
  21. google/cloud/dataform_v1beta1/__init__.py +244 -0
  22. google/cloud/dataform_v1beta1/gapic_metadata.json +838 -0
  23. google/cloud/dataform_v1beta1/gapic_version.py +16 -0
  24. google/cloud/dataform_v1beta1/py.typed +2 -0
  25. google/cloud/dataform_v1beta1/services/__init__.py +15 -0
  26. google/cloud/dataform_v1beta1/services/dataform/__init__.py +22 -0
  27. google/cloud/dataform_v1beta1/services/dataform/async_client.py +6371 -0
  28. google/cloud/dataform_v1beta1/services/dataform/client.py +6895 -0
  29. google/cloud/dataform_v1beta1/services/dataform/pagers.py +1925 -0
  30. google/cloud/dataform_v1beta1/services/dataform/transports/__init__.py +36 -0
  31. google/cloud/dataform_v1beta1/services/dataform/transports/base.py +1060 -0
  32. google/cloud/dataform_v1beta1/services/dataform/transports/grpc.py +1980 -0
  33. google/cloud/dataform_v1beta1/services/dataform/transports/grpc_asyncio.py +2337 -0
  34. google/cloud/dataform_v1beta1/services/dataform/transports/rest.py +12350 -0
  35. google/cloud/dataform_v1beta1/services/dataform/transports/rest_base.py +3028 -0
  36. google/cloud/dataform_v1beta1/types/__init__.py +236 -0
  37. google/cloud/dataform_v1beta1/types/dataform.py +4169 -0
  38. google_cloud_dataform-0.6.1.dist-info/LICENSE +202 -0
  39. google_cloud_dataform-0.6.1.dist-info/METADATA +229 -0
  40. google_cloud_dataform-0.6.1.dist-info/RECORD +42 -0
  41. google_cloud_dataform-0.6.1.dist-info/WHEEL +5 -0
  42. google_cloud_dataform-0.6.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,4157 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2024 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from __future__ import annotations
17
+
18
+ from typing import MutableMapping, MutableSequence
19
+
20
+ from google.protobuf import field_mask_pb2 # type: ignore
21
+ from google.protobuf import timestamp_pb2 # type: ignore
22
+ from google.rpc import status_pb2 # type: ignore
23
+ from google.type import interval_pb2 # type: ignore
24
+ import proto # type: ignore
25
+
26
+ __protobuf__ = proto.module(
27
+ package="google.cloud.dataform.v1",
28
+ manifest={
29
+ "DataEncryptionState",
30
+ "Repository",
31
+ "ListRepositoriesRequest",
32
+ "ListRepositoriesResponse",
33
+ "GetRepositoryRequest",
34
+ "CreateRepositoryRequest",
35
+ "UpdateRepositoryRequest",
36
+ "DeleteRepositoryRequest",
37
+ "CommitRepositoryChangesRequest",
38
+ "CommitRepositoryChangesResponse",
39
+ "ReadRepositoryFileRequest",
40
+ "ReadRepositoryFileResponse",
41
+ "QueryRepositoryDirectoryContentsRequest",
42
+ "QueryRepositoryDirectoryContentsResponse",
43
+ "FetchRepositoryHistoryRequest",
44
+ "FetchRepositoryHistoryResponse",
45
+ "CommitLogEntry",
46
+ "CommitMetadata",
47
+ "ComputeRepositoryAccessTokenStatusRequest",
48
+ "ComputeRepositoryAccessTokenStatusResponse",
49
+ "FetchRemoteBranchesRequest",
50
+ "FetchRemoteBranchesResponse",
51
+ "Workspace",
52
+ "ListWorkspacesRequest",
53
+ "ListWorkspacesResponse",
54
+ "GetWorkspaceRequest",
55
+ "CreateWorkspaceRequest",
56
+ "DeleteWorkspaceRequest",
57
+ "CommitAuthor",
58
+ "PullGitCommitsRequest",
59
+ "PullGitCommitsResponse",
60
+ "PushGitCommitsRequest",
61
+ "PushGitCommitsResponse",
62
+ "FetchFileGitStatusesRequest",
63
+ "FetchFileGitStatusesResponse",
64
+ "FetchGitAheadBehindRequest",
65
+ "FetchGitAheadBehindResponse",
66
+ "CommitWorkspaceChangesRequest",
67
+ "CommitWorkspaceChangesResponse",
68
+ "ResetWorkspaceChangesRequest",
69
+ "ResetWorkspaceChangesResponse",
70
+ "FetchFileDiffRequest",
71
+ "FetchFileDiffResponse",
72
+ "QueryDirectoryContentsRequest",
73
+ "QueryDirectoryContentsResponse",
74
+ "DirectoryEntry",
75
+ "SearchFilesRequest",
76
+ "SearchFilesResponse",
77
+ "SearchResult",
78
+ "FileSearchResult",
79
+ "DirectorySearchResult",
80
+ "MakeDirectoryRequest",
81
+ "MakeDirectoryResponse",
82
+ "RemoveDirectoryRequest",
83
+ "RemoveDirectoryResponse",
84
+ "MoveDirectoryRequest",
85
+ "MoveDirectoryResponse",
86
+ "ReadFileRequest",
87
+ "ReadFileResponse",
88
+ "RemoveFileRequest",
89
+ "RemoveFileResponse",
90
+ "MoveFileRequest",
91
+ "MoveFileResponse",
92
+ "WriteFileRequest",
93
+ "WriteFileResponse",
94
+ "InstallNpmPackagesRequest",
95
+ "InstallNpmPackagesResponse",
96
+ "ReleaseConfig",
97
+ "ListReleaseConfigsRequest",
98
+ "ListReleaseConfigsResponse",
99
+ "GetReleaseConfigRequest",
100
+ "CreateReleaseConfigRequest",
101
+ "UpdateReleaseConfigRequest",
102
+ "DeleteReleaseConfigRequest",
103
+ "CompilationResult",
104
+ "CodeCompilationConfig",
105
+ "NotebookRuntimeOptions",
106
+ "ListCompilationResultsRequest",
107
+ "ListCompilationResultsResponse",
108
+ "GetCompilationResultRequest",
109
+ "CreateCompilationResultRequest",
110
+ "Target",
111
+ "RelationDescriptor",
112
+ "CompilationResultAction",
113
+ "QueryCompilationResultActionsRequest",
114
+ "QueryCompilationResultActionsResponse",
115
+ "WorkflowConfig",
116
+ "InvocationConfig",
117
+ "ListWorkflowConfigsRequest",
118
+ "ListWorkflowConfigsResponse",
119
+ "GetWorkflowConfigRequest",
120
+ "CreateWorkflowConfigRequest",
121
+ "UpdateWorkflowConfigRequest",
122
+ "DeleteWorkflowConfigRequest",
123
+ "WorkflowInvocation",
124
+ "ListWorkflowInvocationsRequest",
125
+ "ListWorkflowInvocationsResponse",
126
+ "GetWorkflowInvocationRequest",
127
+ "CreateWorkflowInvocationRequest",
128
+ "DeleteWorkflowInvocationRequest",
129
+ "CancelWorkflowInvocationRequest",
130
+ "CancelWorkflowInvocationResponse",
131
+ "WorkflowInvocationAction",
132
+ "QueryWorkflowInvocationActionsRequest",
133
+ "QueryWorkflowInvocationActionsResponse",
134
+ "Config",
135
+ "GetConfigRequest",
136
+ "UpdateConfigRequest",
137
+ },
138
+ )
139
+
140
+
141
+ class DataEncryptionState(proto.Message):
142
+ r"""Describes encryption state of a resource.
143
+
144
+ Attributes:
145
+ kms_key_version_name (str):
146
+ Required. The KMS key version name with which
147
+ data of a resource is encrypted.
148
+ """
149
+
150
+ kms_key_version_name: str = proto.Field(
151
+ proto.STRING,
152
+ number=1,
153
+ )
154
+
155
+
156
+ class Repository(proto.Message):
157
+ r"""Represents a Dataform Git repository.
158
+
159
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
160
+
161
+ Attributes:
162
+ name (str):
163
+ Identifier. The repository's name.
164
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
165
+ Output only. The timestamp of when the
166
+ repository was created.
167
+ display_name (str):
168
+ Optional. The repository's user-friendly
169
+ name.
170
+ git_remote_settings (google.cloud.dataform_v1.types.Repository.GitRemoteSettings):
171
+ Optional. If set, configures this repository
172
+ to be linked to a Git remote.
173
+ npmrc_environment_variables_secret_version (str):
174
+ Optional. The name of the Secret Manager secret version to
175
+ be used to interpolate variables into the .npmrc file for
176
+ package installation operations. Must be in the format
177
+ ``projects/*/secrets/*/versions/*``. The file itself must be
178
+ in a JSON format.
179
+ workspace_compilation_overrides (google.cloud.dataform_v1.types.Repository.WorkspaceCompilationOverrides):
180
+ Optional. If set, fields of
181
+ ``workspace_compilation_overrides`` override the default
182
+ compilation settings that are specified in dataform.json
183
+ when creating workspace-scoped compilation results. See
184
+ documentation for ``WorkspaceCompilationOverrides`` for more
185
+ information.
186
+ labels (MutableMapping[str, str]):
187
+ Optional. Repository user labels.
188
+ set_authenticated_user_admin (bool):
189
+ Optional. Input only. If set to true, the
190
+ authenticated user will be granted the
191
+ roles/dataform.admin role on the created
192
+ repository.
193
+ service_account (str):
194
+ Optional. The service account to run workflow
195
+ invocations under.
196
+ kms_key_name (str):
197
+ Optional. The reference to a KMS encryption key. If
198
+ provided, it will be used to encrypt user data in the
199
+ repository and all child resources. It is not possible to
200
+ add or update the encryption key after the repository is
201
+ created. Example:
202
+ ``projects/{kms_project}/locations/{location}/keyRings/{key_location}/cryptoKeys/{key}``
203
+ data_encryption_state (google.cloud.dataform_v1.types.DataEncryptionState):
204
+ Output only. A data encryption state of a Git
205
+ repository if this Repository is protected by a
206
+ KMS key.
207
+ internal_metadata (str):
208
+ Output only. All the metadata information
209
+ that is used internally to serve the resource.
210
+ For example: timestamps, flags, status fields,
211
+ etc. The format of this field is a JSON string.
212
+
213
+ This field is a member of `oneof`_ ``_internal_metadata``.
214
+ """
215
+
216
+ class GitRemoteSettings(proto.Message):
217
+ r"""Controls Git remote configuration for a repository.
218
+
219
+ Attributes:
220
+ url (str):
221
+ Required. The Git remote's URL.
222
+ default_branch (str):
223
+ Required. The Git remote's default branch
224
+ name.
225
+ authentication_token_secret_version (str):
226
+ Optional. The name of the Secret Manager secret version to
227
+ use as an authentication token for Git operations. Must be
228
+ in the format ``projects/*/secrets/*/versions/*``.
229
+ ssh_authentication_config (google.cloud.dataform_v1.types.Repository.GitRemoteSettings.SshAuthenticationConfig):
230
+ Optional. Authentication fields for remote
231
+ uris using SSH protocol.
232
+ token_status (google.cloud.dataform_v1.types.Repository.GitRemoteSettings.TokenStatus):
233
+ Output only. Deprecated: The field does not
234
+ contain any token status information.
235
+ """
236
+
237
+ class TokenStatus(proto.Enum):
238
+ r"""The status of the authentication token.
239
+
240
+ Values:
241
+ TOKEN_STATUS_UNSPECIFIED (0):
242
+ Default value. This value is unused.
243
+ NOT_FOUND (1):
244
+ The token could not be found in Secret
245
+ Manager (or the Dataform Service Account did not
246
+ have permission to access it).
247
+ INVALID (2):
248
+ The token could not be used to authenticate
249
+ against the Git remote.
250
+ VALID (3):
251
+ The token was used successfully to
252
+ authenticate against the Git remote.
253
+ """
254
+ TOKEN_STATUS_UNSPECIFIED = 0
255
+ NOT_FOUND = 1
256
+ INVALID = 2
257
+ VALID = 3
258
+
259
+ class SshAuthenticationConfig(proto.Message):
260
+ r"""Configures fields for performing SSH authentication.
261
+
262
+ Attributes:
263
+ user_private_key_secret_version (str):
264
+ Required. The name of the Secret Manager secret version to
265
+ use as a ssh private key for Git operations. Must be in the
266
+ format ``projects/*/secrets/*/versions/*``.
267
+ host_public_key (str):
268
+ Required. Content of a public SSH key to
269
+ verify an identity of a remote Git host.
270
+ """
271
+
272
+ user_private_key_secret_version: str = proto.Field(
273
+ proto.STRING,
274
+ number=1,
275
+ )
276
+ host_public_key: str = proto.Field(
277
+ proto.STRING,
278
+ number=2,
279
+ )
280
+
281
+ url: str = proto.Field(
282
+ proto.STRING,
283
+ number=1,
284
+ )
285
+ default_branch: str = proto.Field(
286
+ proto.STRING,
287
+ number=2,
288
+ )
289
+ authentication_token_secret_version: str = proto.Field(
290
+ proto.STRING,
291
+ number=3,
292
+ )
293
+ ssh_authentication_config: "Repository.GitRemoteSettings.SshAuthenticationConfig" = proto.Field(
294
+ proto.MESSAGE,
295
+ number=5,
296
+ message="Repository.GitRemoteSettings.SshAuthenticationConfig",
297
+ )
298
+ token_status: "Repository.GitRemoteSettings.TokenStatus" = proto.Field(
299
+ proto.ENUM,
300
+ number=4,
301
+ enum="Repository.GitRemoteSettings.TokenStatus",
302
+ )
303
+
304
+ class WorkspaceCompilationOverrides(proto.Message):
305
+ r"""Configures workspace compilation overrides for a repository.
306
+
307
+ Attributes:
308
+ default_database (str):
309
+ Optional. The default database (Google Cloud
310
+ project ID).
311
+ schema_suffix (str):
312
+ Optional. The suffix that should be appended
313
+ to all schema (BigQuery dataset ID) names.
314
+ table_prefix (str):
315
+ Optional. The prefix that should be prepended
316
+ to all table names.
317
+ """
318
+
319
+ default_database: str = proto.Field(
320
+ proto.STRING,
321
+ number=1,
322
+ )
323
+ schema_suffix: str = proto.Field(
324
+ proto.STRING,
325
+ number=2,
326
+ )
327
+ table_prefix: str = proto.Field(
328
+ proto.STRING,
329
+ number=3,
330
+ )
331
+
332
+ name: str = proto.Field(
333
+ proto.STRING,
334
+ number=1,
335
+ )
336
+ create_time: timestamp_pb2.Timestamp = proto.Field(
337
+ proto.MESSAGE,
338
+ number=13,
339
+ message=timestamp_pb2.Timestamp,
340
+ )
341
+ display_name: str = proto.Field(
342
+ proto.STRING,
343
+ number=8,
344
+ )
345
+ git_remote_settings: GitRemoteSettings = proto.Field(
346
+ proto.MESSAGE,
347
+ number=2,
348
+ message=GitRemoteSettings,
349
+ )
350
+ npmrc_environment_variables_secret_version: str = proto.Field(
351
+ proto.STRING,
352
+ number=3,
353
+ )
354
+ workspace_compilation_overrides: WorkspaceCompilationOverrides = proto.Field(
355
+ proto.MESSAGE,
356
+ number=4,
357
+ message=WorkspaceCompilationOverrides,
358
+ )
359
+ labels: MutableMapping[str, str] = proto.MapField(
360
+ proto.STRING,
361
+ proto.STRING,
362
+ number=5,
363
+ )
364
+ set_authenticated_user_admin: bool = proto.Field(
365
+ proto.BOOL,
366
+ number=9,
367
+ )
368
+ service_account: str = proto.Field(
369
+ proto.STRING,
370
+ number=10,
371
+ )
372
+ kms_key_name: str = proto.Field(
373
+ proto.STRING,
374
+ number=11,
375
+ )
376
+ data_encryption_state: "DataEncryptionState" = proto.Field(
377
+ proto.MESSAGE,
378
+ number=12,
379
+ message="DataEncryptionState",
380
+ )
381
+ internal_metadata: str = proto.Field(
382
+ proto.STRING,
383
+ number=15,
384
+ optional=True,
385
+ )
386
+
387
+
388
+ class ListRepositoriesRequest(proto.Message):
389
+ r"""``ListRepositories`` request message.
390
+
391
+ Attributes:
392
+ parent (str):
393
+ Required. The location in which to list repositories. Must
394
+ be in the format ``projects/*/locations/*``.
395
+ page_size (int):
396
+ Optional. Maximum number of repositories to
397
+ return. The server may return fewer items than
398
+ requested. If unspecified, the server will pick
399
+ an appropriate default.
400
+ page_token (str):
401
+ Optional. Page token received from a previous
402
+ ``ListRepositories`` call. Provide this to retrieve the
403
+ subsequent page.
404
+
405
+ When paginating, all other parameters provided to
406
+ ``ListRepositories``, with the exception of ``page_size``,
407
+ must match the call that provided the page token.
408
+ order_by (str):
409
+ Optional. This field only supports ordering by ``name``. If
410
+ unspecified, the server will choose the ordering. If
411
+ specified, the default order is ascending for the ``name``
412
+ field.
413
+ filter (str):
414
+ Optional. Filter for the returned list.
415
+ """
416
+
417
+ parent: str = proto.Field(
418
+ proto.STRING,
419
+ number=1,
420
+ )
421
+ page_size: int = proto.Field(
422
+ proto.INT32,
423
+ number=2,
424
+ )
425
+ page_token: str = proto.Field(
426
+ proto.STRING,
427
+ number=3,
428
+ )
429
+ order_by: str = proto.Field(
430
+ proto.STRING,
431
+ number=4,
432
+ )
433
+ filter: str = proto.Field(
434
+ proto.STRING,
435
+ number=5,
436
+ )
437
+
438
+
439
+ class ListRepositoriesResponse(proto.Message):
440
+ r"""``ListRepositories`` response message.
441
+
442
+ Attributes:
443
+ repositories (MutableSequence[google.cloud.dataform_v1.types.Repository]):
444
+ List of repositories.
445
+ next_page_token (str):
446
+ A token which can be sent as ``page_token`` to retrieve the
447
+ next page. If this field is omitted, there are no subsequent
448
+ pages.
449
+ unreachable (MutableSequence[str]):
450
+ Locations which could not be reached.
451
+ """
452
+
453
+ @property
454
+ def raw_page(self):
455
+ return self
456
+
457
+ repositories: MutableSequence["Repository"] = proto.RepeatedField(
458
+ proto.MESSAGE,
459
+ number=1,
460
+ message="Repository",
461
+ )
462
+ next_page_token: str = proto.Field(
463
+ proto.STRING,
464
+ number=2,
465
+ )
466
+ unreachable: MutableSequence[str] = proto.RepeatedField(
467
+ proto.STRING,
468
+ number=3,
469
+ )
470
+
471
+
472
+ class GetRepositoryRequest(proto.Message):
473
+ r"""``GetRepository`` request message.
474
+
475
+ Attributes:
476
+ name (str):
477
+ Required. The repository's name.
478
+ """
479
+
480
+ name: str = proto.Field(
481
+ proto.STRING,
482
+ number=1,
483
+ )
484
+
485
+
486
+ class CreateRepositoryRequest(proto.Message):
487
+ r"""``CreateRepository`` request message.
488
+
489
+ Attributes:
490
+ parent (str):
491
+ Required. The location in which to create the repository.
492
+ Must be in the format ``projects/*/locations/*``.
493
+ repository (google.cloud.dataform_v1.types.Repository):
494
+ Required. The repository to create.
495
+ repository_id (str):
496
+ Required. The ID to use for the repository,
497
+ which will become the final component of the
498
+ repository's resource name.
499
+ """
500
+
501
+ parent: str = proto.Field(
502
+ proto.STRING,
503
+ number=1,
504
+ )
505
+ repository: "Repository" = proto.Field(
506
+ proto.MESSAGE,
507
+ number=2,
508
+ message="Repository",
509
+ )
510
+ repository_id: str = proto.Field(
511
+ proto.STRING,
512
+ number=3,
513
+ )
514
+
515
+
516
+ class UpdateRepositoryRequest(proto.Message):
517
+ r"""``UpdateRepository`` request message.
518
+
519
+ Attributes:
520
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
521
+ Optional. Specifies the fields to be updated
522
+ in the repository. If left unset, all fields
523
+ will be updated.
524
+ repository (google.cloud.dataform_v1.types.Repository):
525
+ Required. The repository to update.
526
+ """
527
+
528
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
529
+ proto.MESSAGE,
530
+ number=1,
531
+ message=field_mask_pb2.FieldMask,
532
+ )
533
+ repository: "Repository" = proto.Field(
534
+ proto.MESSAGE,
535
+ number=2,
536
+ message="Repository",
537
+ )
538
+
539
+
540
+ class DeleteRepositoryRequest(proto.Message):
541
+ r"""``DeleteRepository`` request message.
542
+
543
+ Attributes:
544
+ name (str):
545
+ Required. The repository's name.
546
+ force (bool):
547
+ Optional. If set to true, any child resources
548
+ of this repository will also be deleted.
549
+ (Otherwise, the request will only succeed if the
550
+ repository has no child resources.)
551
+ """
552
+
553
+ name: str = proto.Field(
554
+ proto.STRING,
555
+ number=1,
556
+ )
557
+ force: bool = proto.Field(
558
+ proto.BOOL,
559
+ number=2,
560
+ )
561
+
562
+
563
+ class CommitRepositoryChangesRequest(proto.Message):
564
+ r"""``CommitRepositoryChanges`` request message.
565
+
566
+ Attributes:
567
+ name (str):
568
+ Required. The repository's name.
569
+ commit_metadata (google.cloud.dataform_v1.types.CommitMetadata):
570
+ Required. The changes to commit to the
571
+ repository.
572
+ required_head_commit_sha (str):
573
+ Optional. The commit SHA which must be the
574
+ repository's current HEAD before applying this
575
+ commit; otherwise this request will fail. If
576
+ unset, no validation on the current HEAD commit
577
+ SHA is performed.
578
+ file_operations (MutableMapping[str, google.cloud.dataform_v1.types.CommitRepositoryChangesRequest.FileOperation]):
579
+ Optional. A map to the path of the file to
580
+ the operation. The path is the full file path
581
+ including filename, from repository root.
582
+ """
583
+
584
+ class FileOperation(proto.Message):
585
+ r"""Represents a single file operation to the repository.
586
+
587
+ This message has `oneof`_ fields (mutually exclusive fields).
588
+ For each oneof, at most one member field can be set at the same time.
589
+ Setting any member of the oneof automatically clears all other
590
+ members.
591
+
592
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
593
+
594
+ Attributes:
595
+ write_file (google.cloud.dataform_v1.types.CommitRepositoryChangesRequest.FileOperation.WriteFile):
596
+ Represents the write operation.
597
+
598
+ This field is a member of `oneof`_ ``operation``.
599
+ delete_file (google.cloud.dataform_v1.types.CommitRepositoryChangesRequest.FileOperation.DeleteFile):
600
+ Represents the delete operation.
601
+
602
+ This field is a member of `oneof`_ ``operation``.
603
+ """
604
+
605
+ class WriteFile(proto.Message):
606
+ r"""Represents the write file operation (for files added or
607
+ modified).
608
+
609
+ Attributes:
610
+ contents (bytes):
611
+ The file's contents.
612
+ """
613
+
614
+ contents: bytes = proto.Field(
615
+ proto.BYTES,
616
+ number=1,
617
+ )
618
+
619
+ class DeleteFile(proto.Message):
620
+ r"""Represents the delete file operation."""
621
+
622
+ write_file: "CommitRepositoryChangesRequest.FileOperation.WriteFile" = (
623
+ proto.Field(
624
+ proto.MESSAGE,
625
+ number=1,
626
+ oneof="operation",
627
+ message="CommitRepositoryChangesRequest.FileOperation.WriteFile",
628
+ )
629
+ )
630
+ delete_file: "CommitRepositoryChangesRequest.FileOperation.DeleteFile" = (
631
+ proto.Field(
632
+ proto.MESSAGE,
633
+ number=2,
634
+ oneof="operation",
635
+ message="CommitRepositoryChangesRequest.FileOperation.DeleteFile",
636
+ )
637
+ )
638
+
639
+ name: str = proto.Field(
640
+ proto.STRING,
641
+ number=1,
642
+ )
643
+ commit_metadata: "CommitMetadata" = proto.Field(
644
+ proto.MESSAGE,
645
+ number=2,
646
+ message="CommitMetadata",
647
+ )
648
+ required_head_commit_sha: str = proto.Field(
649
+ proto.STRING,
650
+ number=4,
651
+ )
652
+ file_operations: MutableMapping[str, FileOperation] = proto.MapField(
653
+ proto.STRING,
654
+ proto.MESSAGE,
655
+ number=3,
656
+ message=FileOperation,
657
+ )
658
+
659
+
660
+ class CommitRepositoryChangesResponse(proto.Message):
661
+ r"""``CommitRepositoryChanges`` response message.
662
+
663
+ Attributes:
664
+ commit_sha (str):
665
+ The commit SHA of the current commit.
666
+ """
667
+
668
+ commit_sha: str = proto.Field(
669
+ proto.STRING,
670
+ number=1,
671
+ )
672
+
673
+
674
+ class ReadRepositoryFileRequest(proto.Message):
675
+ r"""``ReadRepositoryFile`` request message.
676
+
677
+ Attributes:
678
+ name (str):
679
+ Required. The repository's name.
680
+ commit_sha (str):
681
+ Optional. The commit SHA for the commit to
682
+ read from. If unset, the file will be read from
683
+ HEAD.
684
+ path (str):
685
+ Required. Full file path to read including
686
+ filename, from repository root.
687
+ """
688
+
689
+ name: str = proto.Field(
690
+ proto.STRING,
691
+ number=1,
692
+ )
693
+ commit_sha: str = proto.Field(
694
+ proto.STRING,
695
+ number=2,
696
+ )
697
+ path: str = proto.Field(
698
+ proto.STRING,
699
+ number=3,
700
+ )
701
+
702
+
703
+ class ReadRepositoryFileResponse(proto.Message):
704
+ r"""``ReadRepositoryFile`` response message.
705
+
706
+ Attributes:
707
+ contents (bytes):
708
+ The file's contents.
709
+ """
710
+
711
+ contents: bytes = proto.Field(
712
+ proto.BYTES,
713
+ number=1,
714
+ )
715
+
716
+
717
+ class QueryRepositoryDirectoryContentsRequest(proto.Message):
718
+ r"""``QueryRepositoryDirectoryContents`` request message.
719
+
720
+ Attributes:
721
+ name (str):
722
+ Required. The repository's name.
723
+ commit_sha (str):
724
+ Optional. The Commit SHA for the commit to
725
+ query from. If unset, the directory will be
726
+ queried from HEAD.
727
+ path (str):
728
+ Optional. The directory's full path including
729
+ directory name, relative to root. If left unset,
730
+ the root is used.
731
+ page_size (int):
732
+ Optional. Maximum number of paths to return.
733
+ The server may return fewer items than
734
+ requested. If unspecified, the server will pick
735
+ an appropriate default.
736
+ page_token (str):
737
+ Optional. Page token received from a previous
738
+ ``QueryRepositoryDirectoryContents`` call. Provide this to
739
+ retrieve the subsequent page.
740
+
741
+ When paginating, all other parameters provided to
742
+ ``QueryRepositoryDirectoryContents``, with the exception of
743
+ ``page_size``, must match the call that provided the page
744
+ token.
745
+ """
746
+
747
+ name: str = proto.Field(
748
+ proto.STRING,
749
+ number=1,
750
+ )
751
+ commit_sha: str = proto.Field(
752
+ proto.STRING,
753
+ number=2,
754
+ )
755
+ path: str = proto.Field(
756
+ proto.STRING,
757
+ number=3,
758
+ )
759
+ page_size: int = proto.Field(
760
+ proto.INT32,
761
+ number=4,
762
+ )
763
+ page_token: str = proto.Field(
764
+ proto.STRING,
765
+ number=5,
766
+ )
767
+
768
+
769
+ class QueryRepositoryDirectoryContentsResponse(proto.Message):
770
+ r"""``QueryRepositoryDirectoryContents`` response message.
771
+
772
+ Attributes:
773
+ directory_entries (MutableSequence[google.cloud.dataform_v1.types.DirectoryEntry]):
774
+ List of entries in the directory.
775
+ next_page_token (str):
776
+ A token, which can be sent as ``page_token`` to retrieve the
777
+ next page. If this field is omitted, there are no subsequent
778
+ pages.
779
+ """
780
+
781
+ @property
782
+ def raw_page(self):
783
+ return self
784
+
785
+ directory_entries: MutableSequence["DirectoryEntry"] = proto.RepeatedField(
786
+ proto.MESSAGE,
787
+ number=1,
788
+ message="DirectoryEntry",
789
+ )
790
+ next_page_token: str = proto.Field(
791
+ proto.STRING,
792
+ number=2,
793
+ )
794
+
795
+
796
+ class FetchRepositoryHistoryRequest(proto.Message):
797
+ r"""``FetchRepositoryHistory`` request message.
798
+
799
+ Attributes:
800
+ name (str):
801
+ Required. The repository's name.
802
+ page_size (int):
803
+ Optional. Maximum number of commits to
804
+ return. The server may return fewer items than
805
+ requested. If unspecified, the server will pick
806
+ an appropriate default.
807
+ page_token (str):
808
+ Optional. Page token received from a previous
809
+ ``FetchRepositoryHistory`` call. Provide this to retrieve
810
+ the subsequent page.
811
+
812
+ When paginating, all other parameters provided to
813
+ ``FetchRepositoryHistory``, with the exception of
814
+ ``page_size``, must match the call that provided the page
815
+ token.
816
+ """
817
+
818
+ name: str = proto.Field(
819
+ proto.STRING,
820
+ number=1,
821
+ )
822
+ page_size: int = proto.Field(
823
+ proto.INT32,
824
+ number=2,
825
+ )
826
+ page_token: str = proto.Field(
827
+ proto.STRING,
828
+ number=5,
829
+ )
830
+
831
+
832
+ class FetchRepositoryHistoryResponse(proto.Message):
833
+ r"""``FetchRepositoryHistory`` response message.
834
+
835
+ Attributes:
836
+ commits (MutableSequence[google.cloud.dataform_v1.types.CommitLogEntry]):
837
+ A list of commit logs, ordered by 'git log'
838
+ default order.
839
+ next_page_token (str):
840
+ A token, which can be sent as ``page_token`` to retrieve the
841
+ next page. If this field is omitted, there are no subsequent
842
+ pages.
843
+ """
844
+
845
+ @property
846
+ def raw_page(self):
847
+ return self
848
+
849
+ commits: MutableSequence["CommitLogEntry"] = proto.RepeatedField(
850
+ proto.MESSAGE,
851
+ number=1,
852
+ message="CommitLogEntry",
853
+ )
854
+ next_page_token: str = proto.Field(
855
+ proto.STRING,
856
+ number=2,
857
+ )
858
+
859
+
860
+ class CommitLogEntry(proto.Message):
861
+ r"""Represents a single commit log.
862
+
863
+ Attributes:
864
+ commit_time (google.protobuf.timestamp_pb2.Timestamp):
865
+ Commit timestamp.
866
+ commit_sha (str):
867
+ The commit SHA for this commit log entry.
868
+ author (google.cloud.dataform_v1.types.CommitAuthor):
869
+ The commit author for this commit log entry.
870
+ commit_message (str):
871
+ The commit message for this commit log entry.
872
+ """
873
+
874
+ commit_time: timestamp_pb2.Timestamp = proto.Field(
875
+ proto.MESSAGE,
876
+ number=1,
877
+ message=timestamp_pb2.Timestamp,
878
+ )
879
+ commit_sha: str = proto.Field(
880
+ proto.STRING,
881
+ number=2,
882
+ )
883
+ author: "CommitAuthor" = proto.Field(
884
+ proto.MESSAGE,
885
+ number=3,
886
+ message="CommitAuthor",
887
+ )
888
+ commit_message: str = proto.Field(
889
+ proto.STRING,
890
+ number=4,
891
+ )
892
+
893
+
894
+ class CommitMetadata(proto.Message):
895
+ r"""Represents a Dataform Git commit.
896
+
897
+ Attributes:
898
+ author (google.cloud.dataform_v1.types.CommitAuthor):
899
+ Required. The commit's author.
900
+ commit_message (str):
901
+ Optional. The commit's message.
902
+ """
903
+
904
+ author: "CommitAuthor" = proto.Field(
905
+ proto.MESSAGE,
906
+ number=1,
907
+ message="CommitAuthor",
908
+ )
909
+ commit_message: str = proto.Field(
910
+ proto.STRING,
911
+ number=2,
912
+ )
913
+
914
+
915
+ class ComputeRepositoryAccessTokenStatusRequest(proto.Message):
916
+ r"""``ComputeRepositoryAccessTokenStatus`` request message.
917
+
918
+ Attributes:
919
+ name (str):
920
+ Required. The repository's name.
921
+ """
922
+
923
+ name: str = proto.Field(
924
+ proto.STRING,
925
+ number=1,
926
+ )
927
+
928
+
929
+ class ComputeRepositoryAccessTokenStatusResponse(proto.Message):
930
+ r"""``ComputeRepositoryAccessTokenStatus`` response message.
931
+
932
+ Attributes:
933
+ token_status (google.cloud.dataform_v1.types.ComputeRepositoryAccessTokenStatusResponse.TokenStatus):
934
+ Indicates the status of the Git access token.
935
+ """
936
+
937
+ class TokenStatus(proto.Enum):
938
+ r"""Indicates the status of a Git authentication token.
939
+
940
+ Values:
941
+ TOKEN_STATUS_UNSPECIFIED (0):
942
+ Default value. This value is unused.
943
+ NOT_FOUND (1):
944
+ The token could not be found in Secret
945
+ Manager (or the Dataform Service Account did not
946
+ have permission to access it).
947
+ INVALID (2):
948
+ The token could not be used to authenticate
949
+ against the Git remote.
950
+ VALID (3):
951
+ The token was used successfully to
952
+ authenticate against the Git remote.
953
+ """
954
+ TOKEN_STATUS_UNSPECIFIED = 0
955
+ NOT_FOUND = 1
956
+ INVALID = 2
957
+ VALID = 3
958
+
959
+ token_status: TokenStatus = proto.Field(
960
+ proto.ENUM,
961
+ number=1,
962
+ enum=TokenStatus,
963
+ )
964
+
965
+
966
+ class FetchRemoteBranchesRequest(proto.Message):
967
+ r"""``FetchRemoteBranches`` request message.
968
+
969
+ Attributes:
970
+ name (str):
971
+ Required. The repository's name.
972
+ """
973
+
974
+ name: str = proto.Field(
975
+ proto.STRING,
976
+ number=1,
977
+ )
978
+
979
+
980
+ class FetchRemoteBranchesResponse(proto.Message):
981
+ r"""``FetchRemoteBranches`` response message.
982
+
983
+ Attributes:
984
+ branches (MutableSequence[str]):
985
+ The remote repository's branch names.
986
+ """
987
+
988
+ branches: MutableSequence[str] = proto.RepeatedField(
989
+ proto.STRING,
990
+ number=1,
991
+ )
992
+
993
+
994
+ class Workspace(proto.Message):
995
+ r"""Represents a Dataform Git workspace.
996
+
997
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
998
+
999
+ Attributes:
1000
+ name (str):
1001
+ Identifier. The workspace's name.
1002
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
1003
+ Output only. The timestamp of when the
1004
+ workspace was created.
1005
+ data_encryption_state (google.cloud.dataform_v1.types.DataEncryptionState):
1006
+ Output only. A data encryption state of a Git
1007
+ repository if this Workspace is protected by a
1008
+ KMS key.
1009
+ internal_metadata (str):
1010
+ Output only. All the metadata information
1011
+ that is used internally to serve the resource.
1012
+ For example: timestamps, flags, status fields,
1013
+ etc. The format of this field is a JSON string.
1014
+
1015
+ This field is a member of `oneof`_ ``_internal_metadata``.
1016
+ """
1017
+
1018
+ name: str = proto.Field(
1019
+ proto.STRING,
1020
+ number=1,
1021
+ )
1022
+ create_time: timestamp_pb2.Timestamp = proto.Field(
1023
+ proto.MESSAGE,
1024
+ number=4,
1025
+ message=timestamp_pb2.Timestamp,
1026
+ )
1027
+ data_encryption_state: "DataEncryptionState" = proto.Field(
1028
+ proto.MESSAGE,
1029
+ number=2,
1030
+ message="DataEncryptionState",
1031
+ )
1032
+ internal_metadata: str = proto.Field(
1033
+ proto.STRING,
1034
+ number=5,
1035
+ optional=True,
1036
+ )
1037
+
1038
+
1039
+ class ListWorkspacesRequest(proto.Message):
1040
+ r"""``ListWorkspaces`` request message.
1041
+
1042
+ Attributes:
1043
+ parent (str):
1044
+ Required. The repository in which to list workspaces. Must
1045
+ be in the format ``projects/*/locations/*/repositories/*``.
1046
+ page_size (int):
1047
+ Optional. Maximum number of workspaces to
1048
+ return. The server may return fewer items than
1049
+ requested. If unspecified, the server will pick
1050
+ an appropriate default.
1051
+ page_token (str):
1052
+ Optional. Page token received from a previous
1053
+ ``ListWorkspaces`` call. Provide this to retrieve the
1054
+ subsequent page.
1055
+
1056
+ When paginating, all other parameters provided to
1057
+ ``ListWorkspaces``, with the exception of ``page_size``,
1058
+ must match the call that provided the page token.
1059
+ order_by (str):
1060
+ Optional. This field only supports ordering by ``name``. If
1061
+ unspecified, the server will choose the ordering. If
1062
+ specified, the default order is ascending for the ``name``
1063
+ field.
1064
+ filter (str):
1065
+ Optional. Filter for the returned list.
1066
+ """
1067
+
1068
+ parent: str = proto.Field(
1069
+ proto.STRING,
1070
+ number=1,
1071
+ )
1072
+ page_size: int = proto.Field(
1073
+ proto.INT32,
1074
+ number=2,
1075
+ )
1076
+ page_token: str = proto.Field(
1077
+ proto.STRING,
1078
+ number=3,
1079
+ )
1080
+ order_by: str = proto.Field(
1081
+ proto.STRING,
1082
+ number=4,
1083
+ )
1084
+ filter: str = proto.Field(
1085
+ proto.STRING,
1086
+ number=5,
1087
+ )
1088
+
1089
+
1090
+ class ListWorkspacesResponse(proto.Message):
1091
+ r"""``ListWorkspaces`` response message.
1092
+
1093
+ Attributes:
1094
+ workspaces (MutableSequence[google.cloud.dataform_v1.types.Workspace]):
1095
+ List of workspaces.
1096
+ next_page_token (str):
1097
+ A token, which can be sent as ``page_token`` to retrieve the
1098
+ next page. If this field is omitted, there are no subsequent
1099
+ pages.
1100
+ unreachable (MutableSequence[str]):
1101
+ Locations which could not be reached.
1102
+ """
1103
+
1104
+ @property
1105
+ def raw_page(self):
1106
+ return self
1107
+
1108
+ workspaces: MutableSequence["Workspace"] = proto.RepeatedField(
1109
+ proto.MESSAGE,
1110
+ number=1,
1111
+ message="Workspace",
1112
+ )
1113
+ next_page_token: str = proto.Field(
1114
+ proto.STRING,
1115
+ number=2,
1116
+ )
1117
+ unreachable: MutableSequence[str] = proto.RepeatedField(
1118
+ proto.STRING,
1119
+ number=3,
1120
+ )
1121
+
1122
+
1123
+ class GetWorkspaceRequest(proto.Message):
1124
+ r"""``GetWorkspace`` request message.
1125
+
1126
+ Attributes:
1127
+ name (str):
1128
+ Required. The workspace's name.
1129
+ """
1130
+
1131
+ name: str = proto.Field(
1132
+ proto.STRING,
1133
+ number=1,
1134
+ )
1135
+
1136
+
1137
+ class CreateWorkspaceRequest(proto.Message):
1138
+ r"""``CreateWorkspace`` request message.
1139
+
1140
+ Attributes:
1141
+ parent (str):
1142
+ Required. The repository in which to create the workspace.
1143
+ Must be in the format
1144
+ ``projects/*/locations/*/repositories/*``.
1145
+ workspace (google.cloud.dataform_v1.types.Workspace):
1146
+ Required. The workspace to create.
1147
+ workspace_id (str):
1148
+ Required. The ID to use for the workspace,
1149
+ which will become the final component of the
1150
+ workspace's resource name.
1151
+ """
1152
+
1153
+ parent: str = proto.Field(
1154
+ proto.STRING,
1155
+ number=1,
1156
+ )
1157
+ workspace: "Workspace" = proto.Field(
1158
+ proto.MESSAGE,
1159
+ number=2,
1160
+ message="Workspace",
1161
+ )
1162
+ workspace_id: str = proto.Field(
1163
+ proto.STRING,
1164
+ number=3,
1165
+ )
1166
+
1167
+
1168
+ class DeleteWorkspaceRequest(proto.Message):
1169
+ r"""``DeleteWorkspace`` request message.
1170
+
1171
+ Attributes:
1172
+ name (str):
1173
+ Required. The workspace resource's name.
1174
+ """
1175
+
1176
+ name: str = proto.Field(
1177
+ proto.STRING,
1178
+ number=1,
1179
+ )
1180
+
1181
+
1182
+ class CommitAuthor(proto.Message):
1183
+ r"""Represents the author of a Git commit.
1184
+
1185
+ Attributes:
1186
+ name (str):
1187
+ Required. The commit author's name.
1188
+ email_address (str):
1189
+ Required. The commit author's email address.
1190
+ """
1191
+
1192
+ name: str = proto.Field(
1193
+ proto.STRING,
1194
+ number=1,
1195
+ )
1196
+ email_address: str = proto.Field(
1197
+ proto.STRING,
1198
+ number=2,
1199
+ )
1200
+
1201
+
1202
+ class PullGitCommitsRequest(proto.Message):
1203
+ r"""``PullGitCommits`` request message.
1204
+
1205
+ Attributes:
1206
+ name (str):
1207
+ Required. The workspace's name.
1208
+ remote_branch (str):
1209
+ Optional. The name of the branch in the Git
1210
+ remote from which to pull commits. If left
1211
+ unset, the repository's default branch name will
1212
+ be used.
1213
+ author (google.cloud.dataform_v1.types.CommitAuthor):
1214
+ Required. The author of any merge commit
1215
+ which may be created as a result of merging
1216
+ fetched Git commits into this workspace.
1217
+ """
1218
+
1219
+ name: str = proto.Field(
1220
+ proto.STRING,
1221
+ number=1,
1222
+ )
1223
+ remote_branch: str = proto.Field(
1224
+ proto.STRING,
1225
+ number=2,
1226
+ )
1227
+ author: "CommitAuthor" = proto.Field(
1228
+ proto.MESSAGE,
1229
+ number=3,
1230
+ message="CommitAuthor",
1231
+ )
1232
+
1233
+
1234
+ class PullGitCommitsResponse(proto.Message):
1235
+ r"""``PullGitCommits`` response message."""
1236
+
1237
+
1238
+ class PushGitCommitsRequest(proto.Message):
1239
+ r"""``PushGitCommits`` request message.
1240
+
1241
+ Attributes:
1242
+ name (str):
1243
+ Required. The workspace's name.
1244
+ remote_branch (str):
1245
+ Optional. The name of the branch in the Git
1246
+ remote to which commits should be pushed. If
1247
+ left unset, the repository's default branch name
1248
+ will be used.
1249
+ """
1250
+
1251
+ name: str = proto.Field(
1252
+ proto.STRING,
1253
+ number=1,
1254
+ )
1255
+ remote_branch: str = proto.Field(
1256
+ proto.STRING,
1257
+ number=2,
1258
+ )
1259
+
1260
+
1261
+ class PushGitCommitsResponse(proto.Message):
1262
+ r"""``PushGitCommits`` response message."""
1263
+
1264
+
1265
+ class FetchFileGitStatusesRequest(proto.Message):
1266
+ r"""``FetchFileGitStatuses`` request message.
1267
+
1268
+ Attributes:
1269
+ name (str):
1270
+ Required. The workspace's name.
1271
+ """
1272
+
1273
+ name: str = proto.Field(
1274
+ proto.STRING,
1275
+ number=1,
1276
+ )
1277
+
1278
+
1279
+ class FetchFileGitStatusesResponse(proto.Message):
1280
+ r"""``FetchFileGitStatuses`` response message.
1281
+
1282
+ Attributes:
1283
+ uncommitted_file_changes (MutableSequence[google.cloud.dataform_v1.types.FetchFileGitStatusesResponse.UncommittedFileChange]):
1284
+ A list of all files which have uncommitted
1285
+ Git changes. There will only be a single entry
1286
+ for any given file.
1287
+ """
1288
+
1289
+ class UncommittedFileChange(proto.Message):
1290
+ r"""Represents the Git state of a file with uncommitted changes.
1291
+
1292
+ Attributes:
1293
+ path (str):
1294
+ The file's full path including filename,
1295
+ relative to the workspace root.
1296
+ state (google.cloud.dataform_v1.types.FetchFileGitStatusesResponse.UncommittedFileChange.State):
1297
+ Output only. Indicates the status of the
1298
+ file.
1299
+ """
1300
+
1301
+ class State(proto.Enum):
1302
+ r"""Indicates the status of an uncommitted file change.
1303
+
1304
+ Values:
1305
+ STATE_UNSPECIFIED (0):
1306
+ Default value. This value is unused.
1307
+ ADDED (1):
1308
+ The file has been newly added.
1309
+ DELETED (2):
1310
+ The file has been deleted.
1311
+ MODIFIED (3):
1312
+ The file has been modified.
1313
+ HAS_CONFLICTS (4):
1314
+ The file contains merge conflicts.
1315
+ """
1316
+ STATE_UNSPECIFIED = 0
1317
+ ADDED = 1
1318
+ DELETED = 2
1319
+ MODIFIED = 3
1320
+ HAS_CONFLICTS = 4
1321
+
1322
+ path: str = proto.Field(
1323
+ proto.STRING,
1324
+ number=1,
1325
+ )
1326
+ state: "FetchFileGitStatusesResponse.UncommittedFileChange.State" = proto.Field(
1327
+ proto.ENUM,
1328
+ number=2,
1329
+ enum="FetchFileGitStatusesResponse.UncommittedFileChange.State",
1330
+ )
1331
+
1332
+ uncommitted_file_changes: MutableSequence[
1333
+ UncommittedFileChange
1334
+ ] = proto.RepeatedField(
1335
+ proto.MESSAGE,
1336
+ number=1,
1337
+ message=UncommittedFileChange,
1338
+ )
1339
+
1340
+
1341
+ class FetchGitAheadBehindRequest(proto.Message):
1342
+ r"""``FetchGitAheadBehind`` request message.
1343
+
1344
+ Attributes:
1345
+ name (str):
1346
+ Required. The workspace's name.
1347
+ remote_branch (str):
1348
+ Optional. The name of the branch in the Git
1349
+ remote against which this workspace should be
1350
+ compared. If left unset, the repository's
1351
+ default branch name will be used.
1352
+ """
1353
+
1354
+ name: str = proto.Field(
1355
+ proto.STRING,
1356
+ number=1,
1357
+ )
1358
+ remote_branch: str = proto.Field(
1359
+ proto.STRING,
1360
+ number=2,
1361
+ )
1362
+
1363
+
1364
+ class FetchGitAheadBehindResponse(proto.Message):
1365
+ r"""``FetchGitAheadBehind`` response message.
1366
+
1367
+ Attributes:
1368
+ commits_ahead (int):
1369
+ The number of commits in the remote branch
1370
+ that are not in the workspace.
1371
+ commits_behind (int):
1372
+ The number of commits in the workspace that
1373
+ are not in the remote branch.
1374
+ """
1375
+
1376
+ commits_ahead: int = proto.Field(
1377
+ proto.INT32,
1378
+ number=1,
1379
+ )
1380
+ commits_behind: int = proto.Field(
1381
+ proto.INT32,
1382
+ number=2,
1383
+ )
1384
+
1385
+
1386
+ class CommitWorkspaceChangesRequest(proto.Message):
1387
+ r"""``CommitWorkspaceChanges`` request message.
1388
+
1389
+ Attributes:
1390
+ name (str):
1391
+ Required. The workspace's name.
1392
+ author (google.cloud.dataform_v1.types.CommitAuthor):
1393
+ Required. The commit's author.
1394
+ commit_message (str):
1395
+ Optional. The commit's message.
1396
+ paths (MutableSequence[str]):
1397
+ Optional. Full file paths to commit including
1398
+ filename, rooted at workspace root. If left
1399
+ empty, all files will be committed.
1400
+ """
1401
+
1402
+ name: str = proto.Field(
1403
+ proto.STRING,
1404
+ number=1,
1405
+ )
1406
+ author: "CommitAuthor" = proto.Field(
1407
+ proto.MESSAGE,
1408
+ number=4,
1409
+ message="CommitAuthor",
1410
+ )
1411
+ commit_message: str = proto.Field(
1412
+ proto.STRING,
1413
+ number=2,
1414
+ )
1415
+ paths: MutableSequence[str] = proto.RepeatedField(
1416
+ proto.STRING,
1417
+ number=3,
1418
+ )
1419
+
1420
+
1421
+ class CommitWorkspaceChangesResponse(proto.Message):
1422
+ r"""``CommitWorkspaceChanges`` response message."""
1423
+
1424
+
1425
+ class ResetWorkspaceChangesRequest(proto.Message):
1426
+ r"""``ResetWorkspaceChanges`` request message.
1427
+
1428
+ Attributes:
1429
+ name (str):
1430
+ Required. The workspace's name.
1431
+ paths (MutableSequence[str]):
1432
+ Optional. Full file paths to reset back to
1433
+ their committed state including filename, rooted
1434
+ at workspace root. If left empty, all files will
1435
+ be reset.
1436
+ clean (bool):
1437
+ Optional. If set to true, untracked files
1438
+ will be deleted.
1439
+ """
1440
+
1441
+ name: str = proto.Field(
1442
+ proto.STRING,
1443
+ number=1,
1444
+ )
1445
+ paths: MutableSequence[str] = proto.RepeatedField(
1446
+ proto.STRING,
1447
+ number=2,
1448
+ )
1449
+ clean: bool = proto.Field(
1450
+ proto.BOOL,
1451
+ number=3,
1452
+ )
1453
+
1454
+
1455
+ class ResetWorkspaceChangesResponse(proto.Message):
1456
+ r"""``ResetWorkspaceChanges`` response message."""
1457
+
1458
+
1459
+ class FetchFileDiffRequest(proto.Message):
1460
+ r"""``FetchFileDiff`` request message.
1461
+
1462
+ Attributes:
1463
+ workspace (str):
1464
+ Required. The workspace's name.
1465
+ path (str):
1466
+ Required. The file's full path including
1467
+ filename, relative to the workspace root.
1468
+ """
1469
+
1470
+ workspace: str = proto.Field(
1471
+ proto.STRING,
1472
+ number=1,
1473
+ )
1474
+ path: str = proto.Field(
1475
+ proto.STRING,
1476
+ number=2,
1477
+ )
1478
+
1479
+
1480
+ class FetchFileDiffResponse(proto.Message):
1481
+ r"""``FetchFileDiff`` response message.
1482
+
1483
+ Attributes:
1484
+ formatted_diff (str):
1485
+ The raw formatted Git diff for the file.
1486
+ """
1487
+
1488
+ formatted_diff: str = proto.Field(
1489
+ proto.STRING,
1490
+ number=1,
1491
+ )
1492
+
1493
+
1494
+ class QueryDirectoryContentsRequest(proto.Message):
1495
+ r"""``QueryDirectoryContents`` request message.
1496
+
1497
+ Attributes:
1498
+ workspace (str):
1499
+ Required. The workspace's name.
1500
+ path (str):
1501
+ Optional. The directory's full path including
1502
+ directory name, relative to the workspace root.
1503
+ If left unset, the workspace root is used.
1504
+ page_size (int):
1505
+ Optional. Maximum number of paths to return.
1506
+ The server may return fewer items than
1507
+ requested. If unspecified, the server will pick
1508
+ an appropriate default.
1509
+ page_token (str):
1510
+ Optional. Page token received from a previous
1511
+ ``QueryDirectoryContents`` call. Provide this to retrieve
1512
+ the subsequent page.
1513
+
1514
+ When paginating, all other parameters provided to
1515
+ ``QueryDirectoryContents``, with the exception of
1516
+ ``page_size``, must match the call that provided the page
1517
+ token.
1518
+ """
1519
+
1520
+ workspace: str = proto.Field(
1521
+ proto.STRING,
1522
+ number=1,
1523
+ )
1524
+ path: str = proto.Field(
1525
+ proto.STRING,
1526
+ number=2,
1527
+ )
1528
+ page_size: int = proto.Field(
1529
+ proto.INT32,
1530
+ number=3,
1531
+ )
1532
+ page_token: str = proto.Field(
1533
+ proto.STRING,
1534
+ number=4,
1535
+ )
1536
+
1537
+
1538
+ class QueryDirectoryContentsResponse(proto.Message):
1539
+ r"""``QueryDirectoryContents`` response message.
1540
+
1541
+ Attributes:
1542
+ directory_entries (MutableSequence[google.cloud.dataform_v1.types.DirectoryEntry]):
1543
+ List of entries in the directory.
1544
+ next_page_token (str):
1545
+ A token, which can be sent as ``page_token`` to retrieve the
1546
+ next page. If this field is omitted, there are no subsequent
1547
+ pages.
1548
+ """
1549
+
1550
+ @property
1551
+ def raw_page(self):
1552
+ return self
1553
+
1554
+ directory_entries: MutableSequence["DirectoryEntry"] = proto.RepeatedField(
1555
+ proto.MESSAGE,
1556
+ number=1,
1557
+ message="DirectoryEntry",
1558
+ )
1559
+ next_page_token: str = proto.Field(
1560
+ proto.STRING,
1561
+ number=2,
1562
+ )
1563
+
1564
+
1565
+ class DirectoryEntry(proto.Message):
1566
+ r"""Represents a single entry in a directory.
1567
+
1568
+ This message has `oneof`_ fields (mutually exclusive fields).
1569
+ For each oneof, at most one member field can be set at the same time.
1570
+ Setting any member of the oneof automatically clears all other
1571
+ members.
1572
+
1573
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1574
+
1575
+ Attributes:
1576
+ file (str):
1577
+ A file in the directory.
1578
+
1579
+ This field is a member of `oneof`_ ``entry``.
1580
+ directory (str):
1581
+ A child directory in the directory.
1582
+
1583
+ This field is a member of `oneof`_ ``entry``.
1584
+ """
1585
+
1586
+ file: str = proto.Field(
1587
+ proto.STRING,
1588
+ number=1,
1589
+ oneof="entry",
1590
+ )
1591
+ directory: str = proto.Field(
1592
+ proto.STRING,
1593
+ number=2,
1594
+ oneof="entry",
1595
+ )
1596
+
1597
+
1598
+ class SearchFilesRequest(proto.Message):
1599
+ r"""Configuration containing file search request parameters.
1600
+
1601
+ Attributes:
1602
+ workspace (str):
1603
+ Required. The workspace's name.
1604
+ page_size (int):
1605
+ Optional. Maximum number of search results to
1606
+ return. The server may return fewer items than
1607
+ requested. If unspecified, the server will pick
1608
+ an appropriate default.
1609
+ page_token (str):
1610
+ Optional. Page token received from a previous
1611
+ ``SearchFilesRequest`` call. Provide this to retrieve the
1612
+ subsequent page.
1613
+
1614
+ When paginating, all other parameters provided to
1615
+ ``SearchFilesRequest``, with the exception of ``page_size``,
1616
+ must match the call that provided the page token.
1617
+ filter (str):
1618
+ Optional. Optional filter for the returned list in filtering
1619
+ format. Filtering is only currently supported on the
1620
+ ``path`` field. See https://google.aip.dev/160 for details.
1621
+ """
1622
+
1623
+ workspace: str = proto.Field(
1624
+ proto.STRING,
1625
+ number=1,
1626
+ )
1627
+ page_size: int = proto.Field(
1628
+ proto.INT32,
1629
+ number=2,
1630
+ )
1631
+ page_token: str = proto.Field(
1632
+ proto.STRING,
1633
+ number=3,
1634
+ )
1635
+ filter: str = proto.Field(
1636
+ proto.STRING,
1637
+ number=4,
1638
+ )
1639
+
1640
+
1641
+ class SearchFilesResponse(proto.Message):
1642
+ r"""Client-facing representation of a file search response.
1643
+
1644
+ Attributes:
1645
+ search_results (MutableSequence[google.cloud.dataform_v1.types.SearchResult]):
1646
+ List of matched results.
1647
+ next_page_token (str):
1648
+ Optional. A token, which can be sent as ``page_token`` to
1649
+ retrieve the next page. If this field is omitted, there are
1650
+ no subsequent pages.
1651
+ """
1652
+
1653
+ @property
1654
+ def raw_page(self):
1655
+ return self
1656
+
1657
+ search_results: MutableSequence["SearchResult"] = proto.RepeatedField(
1658
+ proto.MESSAGE,
1659
+ number=1,
1660
+ message="SearchResult",
1661
+ )
1662
+ next_page_token: str = proto.Field(
1663
+ proto.STRING,
1664
+ number=2,
1665
+ )
1666
+
1667
+
1668
+ class SearchResult(proto.Message):
1669
+ r"""Client-facing representation of a search result entry.
1670
+
1671
+ This message has `oneof`_ fields (mutually exclusive fields).
1672
+ For each oneof, at most one member field can be set at the same time.
1673
+ Setting any member of the oneof automatically clears all other
1674
+ members.
1675
+
1676
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1677
+
1678
+ Attributes:
1679
+ file (google.cloud.dataform_v1.types.FileSearchResult):
1680
+ Details when search result is a file.
1681
+
1682
+ This field is a member of `oneof`_ ``entry``.
1683
+ directory (google.cloud.dataform_v1.types.DirectorySearchResult):
1684
+ Details when search result is a directory.
1685
+
1686
+ This field is a member of `oneof`_ ``entry``.
1687
+ """
1688
+
1689
+ file: "FileSearchResult" = proto.Field(
1690
+ proto.MESSAGE,
1691
+ number=1,
1692
+ oneof="entry",
1693
+ message="FileSearchResult",
1694
+ )
1695
+ directory: "DirectorySearchResult" = proto.Field(
1696
+ proto.MESSAGE,
1697
+ number=2,
1698
+ oneof="entry",
1699
+ message="DirectorySearchResult",
1700
+ )
1701
+
1702
+
1703
+ class FileSearchResult(proto.Message):
1704
+ r"""Client-facing representation of a file entry in search
1705
+ results.
1706
+
1707
+ Attributes:
1708
+ path (str):
1709
+ File system path relative to the workspace
1710
+ root.
1711
+ """
1712
+
1713
+ path: str = proto.Field(
1714
+ proto.STRING,
1715
+ number=1,
1716
+ )
1717
+
1718
+
1719
+ class DirectorySearchResult(proto.Message):
1720
+ r"""Client-facing representation of a directory entry in search
1721
+ results.
1722
+
1723
+ Attributes:
1724
+ path (str):
1725
+ File system path relative to the workspace
1726
+ root.
1727
+ """
1728
+
1729
+ path: str = proto.Field(
1730
+ proto.STRING,
1731
+ number=1,
1732
+ )
1733
+
1734
+
1735
+ class MakeDirectoryRequest(proto.Message):
1736
+ r"""``MakeDirectory`` request message.
1737
+
1738
+ Attributes:
1739
+ workspace (str):
1740
+ Required. The workspace's name.
1741
+ path (str):
1742
+ Required. The directory's full path including
1743
+ directory name, relative to the workspace root.
1744
+ """
1745
+
1746
+ workspace: str = proto.Field(
1747
+ proto.STRING,
1748
+ number=1,
1749
+ )
1750
+ path: str = proto.Field(
1751
+ proto.STRING,
1752
+ number=2,
1753
+ )
1754
+
1755
+
1756
+ class MakeDirectoryResponse(proto.Message):
1757
+ r"""``MakeDirectory`` response message."""
1758
+
1759
+
1760
+ class RemoveDirectoryRequest(proto.Message):
1761
+ r"""``RemoveDirectory`` request message.
1762
+
1763
+ Attributes:
1764
+ workspace (str):
1765
+ Required. The workspace's name.
1766
+ path (str):
1767
+ Required. The directory's full path including
1768
+ directory name, relative to the workspace root.
1769
+ """
1770
+
1771
+ workspace: str = proto.Field(
1772
+ proto.STRING,
1773
+ number=1,
1774
+ )
1775
+ path: str = proto.Field(
1776
+ proto.STRING,
1777
+ number=2,
1778
+ )
1779
+
1780
+
1781
+ class RemoveDirectoryResponse(proto.Message):
1782
+ r"""``RemoveDirectory`` response message."""
1783
+
1784
+
1785
+ class MoveDirectoryRequest(proto.Message):
1786
+ r"""``MoveDirectory`` request message.
1787
+
1788
+ Attributes:
1789
+ workspace (str):
1790
+ Required. The workspace's name.
1791
+ path (str):
1792
+ Required. The directory's full path including
1793
+ directory name, relative to the workspace root.
1794
+ new_path (str):
1795
+ Required. The new path for the directory
1796
+ including directory name, rooted at workspace
1797
+ root.
1798
+ """
1799
+
1800
+ workspace: str = proto.Field(
1801
+ proto.STRING,
1802
+ number=1,
1803
+ )
1804
+ path: str = proto.Field(
1805
+ proto.STRING,
1806
+ number=2,
1807
+ )
1808
+ new_path: str = proto.Field(
1809
+ proto.STRING,
1810
+ number=3,
1811
+ )
1812
+
1813
+
1814
+ class MoveDirectoryResponse(proto.Message):
1815
+ r"""``MoveDirectory`` response message."""
1816
+
1817
+
1818
+ class ReadFileRequest(proto.Message):
1819
+ r"""``ReadFile`` request message.
1820
+
1821
+ Attributes:
1822
+ workspace (str):
1823
+ Required. The workspace's name.
1824
+ path (str):
1825
+ Required. The file's full path including
1826
+ filename, relative to the workspace root.
1827
+ revision (str):
1828
+ Optional. The Git revision of the file to return. If left
1829
+ empty, the current contents of ``path`` will be returned.
1830
+ """
1831
+
1832
+ workspace: str = proto.Field(
1833
+ proto.STRING,
1834
+ number=1,
1835
+ )
1836
+ path: str = proto.Field(
1837
+ proto.STRING,
1838
+ number=2,
1839
+ )
1840
+ revision: str = proto.Field(
1841
+ proto.STRING,
1842
+ number=3,
1843
+ )
1844
+
1845
+
1846
+ class ReadFileResponse(proto.Message):
1847
+ r"""``ReadFile`` response message.
1848
+
1849
+ Attributes:
1850
+ file_contents (bytes):
1851
+ The file's contents.
1852
+ """
1853
+
1854
+ file_contents: bytes = proto.Field(
1855
+ proto.BYTES,
1856
+ number=1,
1857
+ )
1858
+
1859
+
1860
+ class RemoveFileRequest(proto.Message):
1861
+ r"""``RemoveFile`` request message.
1862
+
1863
+ Attributes:
1864
+ workspace (str):
1865
+ Required. The workspace's name.
1866
+ path (str):
1867
+ Required. The file's full path including
1868
+ filename, relative to the workspace root.
1869
+ """
1870
+
1871
+ workspace: str = proto.Field(
1872
+ proto.STRING,
1873
+ number=1,
1874
+ )
1875
+ path: str = proto.Field(
1876
+ proto.STRING,
1877
+ number=2,
1878
+ )
1879
+
1880
+
1881
+ class RemoveFileResponse(proto.Message):
1882
+ r"""``RemoveFile`` response message."""
1883
+
1884
+
1885
+ class MoveFileRequest(proto.Message):
1886
+ r"""``MoveFile`` request message.
1887
+
1888
+ Attributes:
1889
+ workspace (str):
1890
+ Required. The workspace's name.
1891
+ path (str):
1892
+ Required. The file's full path including
1893
+ filename, relative to the workspace root.
1894
+ new_path (str):
1895
+ Required. The file's new path including
1896
+ filename, relative to the workspace root.
1897
+ """
1898
+
1899
+ workspace: str = proto.Field(
1900
+ proto.STRING,
1901
+ number=1,
1902
+ )
1903
+ path: str = proto.Field(
1904
+ proto.STRING,
1905
+ number=2,
1906
+ )
1907
+ new_path: str = proto.Field(
1908
+ proto.STRING,
1909
+ number=3,
1910
+ )
1911
+
1912
+
1913
+ class MoveFileResponse(proto.Message):
1914
+ r"""``MoveFile`` response message."""
1915
+
1916
+
1917
+ class WriteFileRequest(proto.Message):
1918
+ r"""``WriteFile`` request message.
1919
+
1920
+ Attributes:
1921
+ workspace (str):
1922
+ Required. The workspace's name.
1923
+ path (str):
1924
+ Required. The file.
1925
+ contents (bytes):
1926
+ Required. The file's contents.
1927
+ """
1928
+
1929
+ workspace: str = proto.Field(
1930
+ proto.STRING,
1931
+ number=1,
1932
+ )
1933
+ path: str = proto.Field(
1934
+ proto.STRING,
1935
+ number=2,
1936
+ )
1937
+ contents: bytes = proto.Field(
1938
+ proto.BYTES,
1939
+ number=3,
1940
+ )
1941
+
1942
+
1943
+ class WriteFileResponse(proto.Message):
1944
+ r"""``WriteFile`` response message."""
1945
+
1946
+
1947
+ class InstallNpmPackagesRequest(proto.Message):
1948
+ r"""``InstallNpmPackages`` request message.
1949
+
1950
+ Attributes:
1951
+ workspace (str):
1952
+ Required. The workspace's name.
1953
+ """
1954
+
1955
+ workspace: str = proto.Field(
1956
+ proto.STRING,
1957
+ number=1,
1958
+ )
1959
+
1960
+
1961
+ class InstallNpmPackagesResponse(proto.Message):
1962
+ r"""``InstallNpmPackages`` response message."""
1963
+
1964
+
1965
+ class ReleaseConfig(proto.Message):
1966
+ r"""Represents a Dataform release configuration.
1967
+
1968
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
1969
+
1970
+ Attributes:
1971
+ name (str):
1972
+ Identifier. The release config's name.
1973
+ git_commitish (str):
1974
+ Required. Git commit/tag/branch name at which the repository
1975
+ should be compiled. Must exist in the remote repository.
1976
+ Examples:
1977
+
1978
+ - a commit SHA: ``12ade345``
1979
+ - a tag: ``tag1``
1980
+ - a branch name: ``branch1``
1981
+ code_compilation_config (google.cloud.dataform_v1.types.CodeCompilationConfig):
1982
+ Optional. If set, fields of ``code_compilation_config``
1983
+ override the default compilation settings that are specified
1984
+ in dataform.json.
1985
+ cron_schedule (str):
1986
+ Optional. Optional schedule (in cron format)
1987
+ for automatic creation of compilation results.
1988
+ time_zone (str):
1989
+ Optional. Specifies the time zone to be used when
1990
+ interpreting cron_schedule. Must be a time zone name from
1991
+ the time zone database
1992
+ (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
1993
+ If left unspecified, the default is UTC.
1994
+ recent_scheduled_release_records (MutableSequence[google.cloud.dataform_v1.types.ReleaseConfig.ScheduledReleaseRecord]):
1995
+ Output only. Records of the 10 most recent scheduled release
1996
+ attempts, ordered in descending order of ``release_time``.
1997
+ Updated whenever automatic creation of a compilation result
1998
+ is triggered by cron_schedule.
1999
+ release_compilation_result (str):
2000
+ Optional. The name of the currently released compilation
2001
+ result for this release config. This value is updated when a
2002
+ compilation result is automatically created from this
2003
+ release config (using cron_schedule), or when this resource
2004
+ is updated by API call (perhaps to roll back to an earlier
2005
+ release). The compilation result must have been created
2006
+ using this release config. Must be in the format
2007
+ ``projects/*/locations/*/repositories/*/compilationResults/*``.
2008
+ disabled (bool):
2009
+ Optional. Disables automatic creation of
2010
+ compilation results.
2011
+ internal_metadata (str):
2012
+ Output only. All the metadata information
2013
+ that is used internally to serve the resource.
2014
+ For example: timestamps, flags, status fields,
2015
+ etc. The format of this field is a JSON string.
2016
+
2017
+ This field is a member of `oneof`_ ``_internal_metadata``.
2018
+ """
2019
+
2020
+ class ScheduledReleaseRecord(proto.Message):
2021
+ r"""A record of an attempt to create a compilation result for
2022
+ this release config.
2023
+
2024
+ This message has `oneof`_ fields (mutually exclusive fields).
2025
+ For each oneof, at most one member field can be set at the same time.
2026
+ Setting any member of the oneof automatically clears all other
2027
+ members.
2028
+
2029
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
2030
+
2031
+ Attributes:
2032
+ compilation_result (str):
2033
+ The name of the created compilation result, if one was
2034
+ successfully created. Must be in the format
2035
+ ``projects/*/locations/*/repositories/*/compilationResults/*``.
2036
+
2037
+ This field is a member of `oneof`_ ``result``.
2038
+ error_status (google.rpc.status_pb2.Status):
2039
+ The error status encountered upon this
2040
+ attempt to create the compilation result, if the
2041
+ attempt was unsuccessful.
2042
+
2043
+ This field is a member of `oneof`_ ``result``.
2044
+ release_time (google.protobuf.timestamp_pb2.Timestamp):
2045
+ Output only. The timestamp of this release
2046
+ attempt.
2047
+ """
2048
+
2049
+ compilation_result: str = proto.Field(
2050
+ proto.STRING,
2051
+ number=2,
2052
+ oneof="result",
2053
+ )
2054
+ error_status: status_pb2.Status = proto.Field(
2055
+ proto.MESSAGE,
2056
+ number=3,
2057
+ oneof="result",
2058
+ message=status_pb2.Status,
2059
+ )
2060
+ release_time: timestamp_pb2.Timestamp = proto.Field(
2061
+ proto.MESSAGE,
2062
+ number=1,
2063
+ message=timestamp_pb2.Timestamp,
2064
+ )
2065
+
2066
+ name: str = proto.Field(
2067
+ proto.STRING,
2068
+ number=1,
2069
+ )
2070
+ git_commitish: str = proto.Field(
2071
+ proto.STRING,
2072
+ number=2,
2073
+ )
2074
+ code_compilation_config: "CodeCompilationConfig" = proto.Field(
2075
+ proto.MESSAGE,
2076
+ number=3,
2077
+ message="CodeCompilationConfig",
2078
+ )
2079
+ cron_schedule: str = proto.Field(
2080
+ proto.STRING,
2081
+ number=4,
2082
+ )
2083
+ time_zone: str = proto.Field(
2084
+ proto.STRING,
2085
+ number=7,
2086
+ )
2087
+ recent_scheduled_release_records: MutableSequence[
2088
+ ScheduledReleaseRecord
2089
+ ] = proto.RepeatedField(
2090
+ proto.MESSAGE,
2091
+ number=5,
2092
+ message=ScheduledReleaseRecord,
2093
+ )
2094
+ release_compilation_result: str = proto.Field(
2095
+ proto.STRING,
2096
+ number=6,
2097
+ )
2098
+ disabled: bool = proto.Field(
2099
+ proto.BOOL,
2100
+ number=8,
2101
+ )
2102
+ internal_metadata: str = proto.Field(
2103
+ proto.STRING,
2104
+ number=9,
2105
+ optional=True,
2106
+ )
2107
+
2108
+
2109
+ class ListReleaseConfigsRequest(proto.Message):
2110
+ r"""``ListReleaseConfigs`` request message.
2111
+
2112
+ Attributes:
2113
+ parent (str):
2114
+ Required. The repository in which to list release configs.
2115
+ Must be in the format
2116
+ ``projects/*/locations/*/repositories/*``.
2117
+ page_size (int):
2118
+ Optional. Maximum number of release configs
2119
+ to return. The server may return fewer items
2120
+ than requested. If unspecified, the server will
2121
+ pick an appropriate default.
2122
+ page_token (str):
2123
+ Optional. Page token received from a previous
2124
+ ``ListReleaseConfigs`` call. Provide this to retrieve the
2125
+ subsequent page.
2126
+
2127
+ When paginating, all other parameters provided to
2128
+ ``ListReleaseConfigs``, with the exception of ``page_size``,
2129
+ must match the call that provided the page token.
2130
+ """
2131
+
2132
+ parent: str = proto.Field(
2133
+ proto.STRING,
2134
+ number=1,
2135
+ )
2136
+ page_size: int = proto.Field(
2137
+ proto.INT32,
2138
+ number=2,
2139
+ )
2140
+ page_token: str = proto.Field(
2141
+ proto.STRING,
2142
+ number=3,
2143
+ )
2144
+
2145
+
2146
+ class ListReleaseConfigsResponse(proto.Message):
2147
+ r"""``ListReleaseConfigs`` response message.
2148
+
2149
+ Attributes:
2150
+ release_configs (MutableSequence[google.cloud.dataform_v1.types.ReleaseConfig]):
2151
+ List of release configs.
2152
+ next_page_token (str):
2153
+ A token, which can be sent as ``page_token`` to retrieve the
2154
+ next page. If this field is omitted, there are no subsequent
2155
+ pages.
2156
+ unreachable (MutableSequence[str]):
2157
+ Locations which could not be reached.
2158
+ """
2159
+
2160
+ @property
2161
+ def raw_page(self):
2162
+ return self
2163
+
2164
+ release_configs: MutableSequence["ReleaseConfig"] = proto.RepeatedField(
2165
+ proto.MESSAGE,
2166
+ number=1,
2167
+ message="ReleaseConfig",
2168
+ )
2169
+ next_page_token: str = proto.Field(
2170
+ proto.STRING,
2171
+ number=2,
2172
+ )
2173
+ unreachable: MutableSequence[str] = proto.RepeatedField(
2174
+ proto.STRING,
2175
+ number=3,
2176
+ )
2177
+
2178
+
2179
+ class GetReleaseConfigRequest(proto.Message):
2180
+ r"""``GetReleaseConfig`` request message.
2181
+
2182
+ Attributes:
2183
+ name (str):
2184
+ Required. The release config's name.
2185
+ """
2186
+
2187
+ name: str = proto.Field(
2188
+ proto.STRING,
2189
+ number=1,
2190
+ )
2191
+
2192
+
2193
+ class CreateReleaseConfigRequest(proto.Message):
2194
+ r"""``CreateReleaseConfig`` request message.
2195
+
2196
+ Attributes:
2197
+ parent (str):
2198
+ Required. The repository in which to create the release
2199
+ config. Must be in the format
2200
+ ``projects/*/locations/*/repositories/*``.
2201
+ release_config (google.cloud.dataform_v1.types.ReleaseConfig):
2202
+ Required. The release config to create.
2203
+ release_config_id (str):
2204
+ Required. The ID to use for the release
2205
+ config, which will become the final component of
2206
+ the release config's resource name.
2207
+ """
2208
+
2209
+ parent: str = proto.Field(
2210
+ proto.STRING,
2211
+ number=1,
2212
+ )
2213
+ release_config: "ReleaseConfig" = proto.Field(
2214
+ proto.MESSAGE,
2215
+ number=2,
2216
+ message="ReleaseConfig",
2217
+ )
2218
+ release_config_id: str = proto.Field(
2219
+ proto.STRING,
2220
+ number=3,
2221
+ )
2222
+
2223
+
2224
+ class UpdateReleaseConfigRequest(proto.Message):
2225
+ r"""``UpdateReleaseConfig`` request message.
2226
+
2227
+ Attributes:
2228
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
2229
+ Optional. Specifies the fields to be updated
2230
+ in the release config. If left unset, all fields
2231
+ will be updated.
2232
+ release_config (google.cloud.dataform_v1.types.ReleaseConfig):
2233
+ Required. The release config to update.
2234
+ """
2235
+
2236
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
2237
+ proto.MESSAGE,
2238
+ number=1,
2239
+ message=field_mask_pb2.FieldMask,
2240
+ )
2241
+ release_config: "ReleaseConfig" = proto.Field(
2242
+ proto.MESSAGE,
2243
+ number=2,
2244
+ message="ReleaseConfig",
2245
+ )
2246
+
2247
+
2248
+ class DeleteReleaseConfigRequest(proto.Message):
2249
+ r"""``DeleteReleaseConfig`` request message.
2250
+
2251
+ Attributes:
2252
+ name (str):
2253
+ Required. The release config's name.
2254
+ """
2255
+
2256
+ name: str = proto.Field(
2257
+ proto.STRING,
2258
+ number=1,
2259
+ )
2260
+
2261
+
2262
+ class CompilationResult(proto.Message):
2263
+ r"""Represents the result of compiling a Dataform project.
2264
+
2265
+ This message has `oneof`_ fields (mutually exclusive fields).
2266
+ For each oneof, at most one member field can be set at the same time.
2267
+ Setting any member of the oneof automatically clears all other
2268
+ members.
2269
+
2270
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
2271
+
2272
+ Attributes:
2273
+ git_commitish (str):
2274
+ Immutable. Git commit/tag/branch name at which the
2275
+ repository should be compiled. Must exist in the remote
2276
+ repository. Examples:
2277
+
2278
+ - a commit SHA: ``12ade345``
2279
+ - a tag: ``tag1``
2280
+ - a branch name: ``branch1``
2281
+
2282
+ This field is a member of `oneof`_ ``source``.
2283
+ workspace (str):
2284
+ Immutable. The name of the workspace to compile. Must be in
2285
+ the format
2286
+ ``projects/*/locations/*/repositories/*/workspaces/*``.
2287
+
2288
+ This field is a member of `oneof`_ ``source``.
2289
+ release_config (str):
2290
+ Immutable. The name of the release config to compile. Must
2291
+ be in the format
2292
+ ``projects/*/locations/*/repositories/*/releaseConfigs/*``.
2293
+
2294
+ This field is a member of `oneof`_ ``source``.
2295
+ name (str):
2296
+ Output only. The compilation result's name.
2297
+ code_compilation_config (google.cloud.dataform_v1.types.CodeCompilationConfig):
2298
+ Immutable. If set, fields of ``code_compilation_config``
2299
+ override the default compilation settings that are specified
2300
+ in dataform.json.
2301
+ resolved_git_commit_sha (str):
2302
+ Output only. The fully resolved Git commit
2303
+ SHA of the code that was compiled. Not set for
2304
+ compilation results whose source is a workspace.
2305
+ dataform_core_version (str):
2306
+ Output only. The version of ``@dataform/core`` that was used
2307
+ for compilation.
2308
+ compilation_errors (MutableSequence[google.cloud.dataform_v1.types.CompilationResult.CompilationError]):
2309
+ Output only. Errors encountered during
2310
+ project compilation.
2311
+ data_encryption_state (google.cloud.dataform_v1.types.DataEncryptionState):
2312
+ Output only. Only set if the repository has a
2313
+ KMS Key.
2314
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
2315
+ Output only. The timestamp of when the
2316
+ compilation result was created.
2317
+ internal_metadata (str):
2318
+ Output only. All the metadata information
2319
+ that is used internally to serve the resource.
2320
+ For example: timestamps, flags, status fields,
2321
+ etc. The format of this field is a JSON string.
2322
+
2323
+ This field is a member of `oneof`_ ``_internal_metadata``.
2324
+ """
2325
+
2326
+ class CompilationError(proto.Message):
2327
+ r"""An error encountered when attempting to compile a Dataform
2328
+ project.
2329
+
2330
+ Attributes:
2331
+ message (str):
2332
+ Output only. The error's top level message.
2333
+ stack (str):
2334
+ Output only. The error's full stack trace.
2335
+ path (str):
2336
+ Output only. The path of the file where this
2337
+ error occurred, if available, relative to the
2338
+ project root.
2339
+ action_target (google.cloud.dataform_v1.types.Target):
2340
+ Output only. The identifier of the action
2341
+ where this error occurred, if available.
2342
+ """
2343
+
2344
+ message: str = proto.Field(
2345
+ proto.STRING,
2346
+ number=1,
2347
+ )
2348
+ stack: str = proto.Field(
2349
+ proto.STRING,
2350
+ number=2,
2351
+ )
2352
+ path: str = proto.Field(
2353
+ proto.STRING,
2354
+ number=3,
2355
+ )
2356
+ action_target: "Target" = proto.Field(
2357
+ proto.MESSAGE,
2358
+ number=4,
2359
+ message="Target",
2360
+ )
2361
+
2362
+ git_commitish: str = proto.Field(
2363
+ proto.STRING,
2364
+ number=2,
2365
+ oneof="source",
2366
+ )
2367
+ workspace: str = proto.Field(
2368
+ proto.STRING,
2369
+ number=3,
2370
+ oneof="source",
2371
+ )
2372
+ release_config: str = proto.Field(
2373
+ proto.STRING,
2374
+ number=7,
2375
+ oneof="source",
2376
+ )
2377
+ name: str = proto.Field(
2378
+ proto.STRING,
2379
+ number=1,
2380
+ )
2381
+ code_compilation_config: "CodeCompilationConfig" = proto.Field(
2382
+ proto.MESSAGE,
2383
+ number=4,
2384
+ message="CodeCompilationConfig",
2385
+ )
2386
+ resolved_git_commit_sha: str = proto.Field(
2387
+ proto.STRING,
2388
+ number=8,
2389
+ )
2390
+ dataform_core_version: str = proto.Field(
2391
+ proto.STRING,
2392
+ number=5,
2393
+ )
2394
+ compilation_errors: MutableSequence[CompilationError] = proto.RepeatedField(
2395
+ proto.MESSAGE,
2396
+ number=6,
2397
+ message=CompilationError,
2398
+ )
2399
+ data_encryption_state: "DataEncryptionState" = proto.Field(
2400
+ proto.MESSAGE,
2401
+ number=9,
2402
+ message="DataEncryptionState",
2403
+ )
2404
+ create_time: timestamp_pb2.Timestamp = proto.Field(
2405
+ proto.MESSAGE,
2406
+ number=10,
2407
+ message=timestamp_pb2.Timestamp,
2408
+ )
2409
+ internal_metadata: str = proto.Field(
2410
+ proto.STRING,
2411
+ number=11,
2412
+ optional=True,
2413
+ )
2414
+
2415
+
2416
+ class CodeCompilationConfig(proto.Message):
2417
+ r"""Configures various aspects of Dataform code compilation.
2418
+
2419
+ Attributes:
2420
+ default_database (str):
2421
+ Optional. The default database (Google Cloud
2422
+ project ID).
2423
+ default_schema (str):
2424
+ Optional. The default schema (BigQuery
2425
+ dataset ID).
2426
+ default_location (str):
2427
+ Optional. The default BigQuery location to
2428
+ use. Defaults to "US". See the BigQuery docs for
2429
+ a full list of locations:
2430
+
2431
+ https://cloud.google.com/bigquery/docs/locations.
2432
+ assertion_schema (str):
2433
+ Optional. The default schema (BigQuery
2434
+ dataset ID) for assertions.
2435
+ vars (MutableMapping[str, str]):
2436
+ Optional. User-defined variables that are
2437
+ made available to project code during
2438
+ compilation.
2439
+ database_suffix (str):
2440
+ Optional. The suffix that should be appended
2441
+ to all database (Google Cloud project ID) names.
2442
+ schema_suffix (str):
2443
+ Optional. The suffix that should be appended
2444
+ to all schema (BigQuery dataset ID) names.
2445
+ table_prefix (str):
2446
+ Optional. The prefix that should be prepended
2447
+ to all table names.
2448
+ default_notebook_runtime_options (google.cloud.dataform_v1.types.NotebookRuntimeOptions):
2449
+ Optional. The default notebook runtime
2450
+ options.
2451
+ """
2452
+
2453
+ default_database: str = proto.Field(
2454
+ proto.STRING,
2455
+ number=1,
2456
+ )
2457
+ default_schema: str = proto.Field(
2458
+ proto.STRING,
2459
+ number=2,
2460
+ )
2461
+ default_location: str = proto.Field(
2462
+ proto.STRING,
2463
+ number=8,
2464
+ )
2465
+ assertion_schema: str = proto.Field(
2466
+ proto.STRING,
2467
+ number=3,
2468
+ )
2469
+ vars: MutableMapping[str, str] = proto.MapField(
2470
+ proto.STRING,
2471
+ proto.STRING,
2472
+ number=4,
2473
+ )
2474
+ database_suffix: str = proto.Field(
2475
+ proto.STRING,
2476
+ number=5,
2477
+ )
2478
+ schema_suffix: str = proto.Field(
2479
+ proto.STRING,
2480
+ number=6,
2481
+ )
2482
+ table_prefix: str = proto.Field(
2483
+ proto.STRING,
2484
+ number=7,
2485
+ )
2486
+ default_notebook_runtime_options: "NotebookRuntimeOptions" = proto.Field(
2487
+ proto.MESSAGE,
2488
+ number=9,
2489
+ message="NotebookRuntimeOptions",
2490
+ )
2491
+
2492
+
2493
+ class NotebookRuntimeOptions(proto.Message):
2494
+ r"""Configures various aspects of Dataform notebook runtime.
2495
+
2496
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
2497
+
2498
+ Attributes:
2499
+ gcs_output_bucket (str):
2500
+ Optional. The Google Cloud Storage location to upload the
2501
+ result to. Format: ``gs://bucket-name``.
2502
+
2503
+ This field is a member of `oneof`_ ``execution_sink``.
2504
+ """
2505
+
2506
+ gcs_output_bucket: str = proto.Field(
2507
+ proto.STRING,
2508
+ number=1,
2509
+ oneof="execution_sink",
2510
+ )
2511
+
2512
+
2513
+ class ListCompilationResultsRequest(proto.Message):
2514
+ r"""``ListCompilationResults`` request message.
2515
+
2516
+ Attributes:
2517
+ parent (str):
2518
+ Required. The repository in which to list compilation
2519
+ results. Must be in the format
2520
+ ``projects/*/locations/*/repositories/*``.
2521
+ page_size (int):
2522
+ Optional. Maximum number of compilation
2523
+ results to return. The server may return fewer
2524
+ items than requested. If unspecified, the server
2525
+ will pick an appropriate default.
2526
+ page_token (str):
2527
+ Optional. Page token received from a previous
2528
+ ``ListCompilationResults`` call. Provide this to retrieve
2529
+ the subsequent page.
2530
+
2531
+ When paginating, all other parameters provided to
2532
+ ``ListCompilationResults``, with the exception of
2533
+ ``page_size``, must match the call that provided the page
2534
+ token.
2535
+ order_by (str):
2536
+ Optional. This field only supports ordering by ``name`` and
2537
+ ``create_time``. If unspecified, the server will choose the
2538
+ ordering. If specified, the default order is ascending for
2539
+ the ``name`` field.
2540
+ filter (str):
2541
+ Optional. Filter for the returned list.
2542
+ """
2543
+
2544
+ parent: str = proto.Field(
2545
+ proto.STRING,
2546
+ number=1,
2547
+ )
2548
+ page_size: int = proto.Field(
2549
+ proto.INT32,
2550
+ number=2,
2551
+ )
2552
+ page_token: str = proto.Field(
2553
+ proto.STRING,
2554
+ number=3,
2555
+ )
2556
+ order_by: str = proto.Field(
2557
+ proto.STRING,
2558
+ number=4,
2559
+ )
2560
+ filter: str = proto.Field(
2561
+ proto.STRING,
2562
+ number=5,
2563
+ )
2564
+
2565
+
2566
+ class ListCompilationResultsResponse(proto.Message):
2567
+ r"""``ListCompilationResults`` response message.
2568
+
2569
+ Attributes:
2570
+ compilation_results (MutableSequence[google.cloud.dataform_v1.types.CompilationResult]):
2571
+ List of compilation results.
2572
+ next_page_token (str):
2573
+ A token, which can be sent as ``page_token`` to retrieve the
2574
+ next page. If this field is omitted, there are no subsequent
2575
+ pages.
2576
+ unreachable (MutableSequence[str]):
2577
+ Locations which could not be reached.
2578
+ """
2579
+
2580
+ @property
2581
+ def raw_page(self):
2582
+ return self
2583
+
2584
+ compilation_results: MutableSequence["CompilationResult"] = proto.RepeatedField(
2585
+ proto.MESSAGE,
2586
+ number=1,
2587
+ message="CompilationResult",
2588
+ )
2589
+ next_page_token: str = proto.Field(
2590
+ proto.STRING,
2591
+ number=2,
2592
+ )
2593
+ unreachable: MutableSequence[str] = proto.RepeatedField(
2594
+ proto.STRING,
2595
+ number=3,
2596
+ )
2597
+
2598
+
2599
+ class GetCompilationResultRequest(proto.Message):
2600
+ r"""``GetCompilationResult`` request message.
2601
+
2602
+ Attributes:
2603
+ name (str):
2604
+ Required. The compilation result's name.
2605
+ """
2606
+
2607
+ name: str = proto.Field(
2608
+ proto.STRING,
2609
+ number=1,
2610
+ )
2611
+
2612
+
2613
+ class CreateCompilationResultRequest(proto.Message):
2614
+ r"""``CreateCompilationResult`` request message.
2615
+
2616
+ Attributes:
2617
+ parent (str):
2618
+ Required. The repository in which to create the compilation
2619
+ result. Must be in the format
2620
+ ``projects/*/locations/*/repositories/*``.
2621
+ compilation_result (google.cloud.dataform_v1.types.CompilationResult):
2622
+ Required. The compilation result to create.
2623
+ """
2624
+
2625
+ parent: str = proto.Field(
2626
+ proto.STRING,
2627
+ number=1,
2628
+ )
2629
+ compilation_result: "CompilationResult" = proto.Field(
2630
+ proto.MESSAGE,
2631
+ number=2,
2632
+ message="CompilationResult",
2633
+ )
2634
+
2635
+
2636
+ class Target(proto.Message):
2637
+ r"""Represents an action identifier. If the action writes output,
2638
+ the output will be written to the referenced database object.
2639
+
2640
+ Attributes:
2641
+ database (str):
2642
+ Optional. The action's database (Google Cloud
2643
+ project ID) .
2644
+ schema (str):
2645
+ Optional. The action's schema (BigQuery dataset ID), within
2646
+ ``database``.
2647
+ name (str):
2648
+ Optional. The action's name, within ``database`` and
2649
+ ``schema``.
2650
+ """
2651
+
2652
+ database: str = proto.Field(
2653
+ proto.STRING,
2654
+ number=1,
2655
+ )
2656
+ schema: str = proto.Field(
2657
+ proto.STRING,
2658
+ number=2,
2659
+ )
2660
+ name: str = proto.Field(
2661
+ proto.STRING,
2662
+ number=3,
2663
+ )
2664
+
2665
+
2666
+ class RelationDescriptor(proto.Message):
2667
+ r"""Describes a relation and its columns.
2668
+
2669
+ Attributes:
2670
+ description (str):
2671
+ A text description of the relation.
2672
+ columns (MutableSequence[google.cloud.dataform_v1.types.RelationDescriptor.ColumnDescriptor]):
2673
+ A list of descriptions of columns within the
2674
+ relation.
2675
+ bigquery_labels (MutableMapping[str, str]):
2676
+ A set of BigQuery labels that should be
2677
+ applied to the relation.
2678
+ """
2679
+
2680
+ class ColumnDescriptor(proto.Message):
2681
+ r"""Describes a column.
2682
+
2683
+ Attributes:
2684
+ path (MutableSequence[str]):
2685
+ The identifier for the column. Each entry in ``path``
2686
+ represents one level of nesting.
2687
+ description (str):
2688
+ A textual description of the column.
2689
+ bigquery_policy_tags (MutableSequence[str]):
2690
+ A list of BigQuery policy tags that will be
2691
+ applied to the column.
2692
+ """
2693
+
2694
+ path: MutableSequence[str] = proto.RepeatedField(
2695
+ proto.STRING,
2696
+ number=1,
2697
+ )
2698
+ description: str = proto.Field(
2699
+ proto.STRING,
2700
+ number=2,
2701
+ )
2702
+ bigquery_policy_tags: MutableSequence[str] = proto.RepeatedField(
2703
+ proto.STRING,
2704
+ number=3,
2705
+ )
2706
+
2707
+ description: str = proto.Field(
2708
+ proto.STRING,
2709
+ number=1,
2710
+ )
2711
+ columns: MutableSequence[ColumnDescriptor] = proto.RepeatedField(
2712
+ proto.MESSAGE,
2713
+ number=2,
2714
+ message=ColumnDescriptor,
2715
+ )
2716
+ bigquery_labels: MutableMapping[str, str] = proto.MapField(
2717
+ proto.STRING,
2718
+ proto.STRING,
2719
+ number=3,
2720
+ )
2721
+
2722
+
2723
+ class CompilationResultAction(proto.Message):
2724
+ r"""Represents a single Dataform action in a compilation result.
2725
+
2726
+ This message has `oneof`_ fields (mutually exclusive fields).
2727
+ For each oneof, at most one member field can be set at the same time.
2728
+ Setting any member of the oneof automatically clears all other
2729
+ members.
2730
+
2731
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
2732
+
2733
+ Attributes:
2734
+ relation (google.cloud.dataform_v1.types.CompilationResultAction.Relation):
2735
+ The database relation created/updated by this
2736
+ action.
2737
+
2738
+ This field is a member of `oneof`_ ``compiled_object``.
2739
+ operations (google.cloud.dataform_v1.types.CompilationResultAction.Operations):
2740
+ The database operations executed by this
2741
+ action.
2742
+
2743
+ This field is a member of `oneof`_ ``compiled_object``.
2744
+ assertion (google.cloud.dataform_v1.types.CompilationResultAction.Assertion):
2745
+ The assertion executed by this action.
2746
+
2747
+ This field is a member of `oneof`_ ``compiled_object``.
2748
+ declaration (google.cloud.dataform_v1.types.CompilationResultAction.Declaration):
2749
+ The declaration declared by this action.
2750
+
2751
+ This field is a member of `oneof`_ ``compiled_object``.
2752
+ notebook (google.cloud.dataform_v1.types.CompilationResultAction.Notebook):
2753
+ The notebook executed by this action.
2754
+
2755
+ This field is a member of `oneof`_ ``compiled_object``.
2756
+ target (google.cloud.dataform_v1.types.Target):
2757
+ This action's identifier. Unique within the
2758
+ compilation result.
2759
+ canonical_target (google.cloud.dataform_v1.types.Target):
2760
+ The action's identifier if the project had
2761
+ been compiled without any overrides configured.
2762
+ Unique within the compilation result.
2763
+ file_path (str):
2764
+ The full path including filename in which
2765
+ this action is located, relative to the
2766
+ workspace root.
2767
+ internal_metadata (str):
2768
+ Output only. All the metadata information
2769
+ that is used internally to serve the resource.
2770
+ For example: timestamps, flags, status fields,
2771
+ etc. The format of this field is a JSON string.
2772
+
2773
+ This field is a member of `oneof`_ ``_internal_metadata``.
2774
+ """
2775
+
2776
+ class Relation(proto.Message):
2777
+ r"""Represents a database relation.
2778
+
2779
+ Attributes:
2780
+ dependency_targets (MutableSequence[google.cloud.dataform_v1.types.Target]):
2781
+ A list of actions that this action depends
2782
+ on.
2783
+ disabled (bool):
2784
+ Whether this action is disabled (i.e. should
2785
+ not be run).
2786
+ tags (MutableSequence[str]):
2787
+ Arbitrary, user-defined tags on this action.
2788
+ relation_descriptor (google.cloud.dataform_v1.types.RelationDescriptor):
2789
+ Descriptor for the relation and its columns.
2790
+ relation_type (google.cloud.dataform_v1.types.CompilationResultAction.Relation.RelationType):
2791
+ The type of this relation.
2792
+ select_query (str):
2793
+ The SELECT query which returns rows which
2794
+ this relation should contain.
2795
+ pre_operations (MutableSequence[str]):
2796
+ SQL statements to be executed before creating
2797
+ the relation.
2798
+ post_operations (MutableSequence[str]):
2799
+ SQL statements to be executed after creating
2800
+ the relation.
2801
+ incremental_table_config (google.cloud.dataform_v1.types.CompilationResultAction.Relation.IncrementalTableConfig):
2802
+ Configures ``INCREMENTAL_TABLE`` settings for this relation.
2803
+ Only set if ``relation_type`` is ``INCREMENTAL_TABLE``.
2804
+ partition_expression (str):
2805
+ The SQL expression used to partition the
2806
+ relation.
2807
+ cluster_expressions (MutableSequence[str]):
2808
+ A list of columns or SQL expressions used to
2809
+ cluster the table.
2810
+ partition_expiration_days (int):
2811
+ Sets the partition expiration in days.
2812
+ require_partition_filter (bool):
2813
+ Specifies whether queries on this table must
2814
+ include a predicate filter that filters on the
2815
+ partitioning column.
2816
+ additional_options (MutableMapping[str, str]):
2817
+ Additional options that will be provided as
2818
+ key/value pairs into the options clause of a
2819
+ create table/view statement. See
2820
+ https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language
2821
+ for more information on which options are
2822
+ supported.
2823
+ """
2824
+
2825
+ class RelationType(proto.Enum):
2826
+ r"""Indicates the type of this relation.
2827
+
2828
+ Values:
2829
+ RELATION_TYPE_UNSPECIFIED (0):
2830
+ Default value. This value is unused.
2831
+ TABLE (1):
2832
+ The relation is a table.
2833
+ VIEW (2):
2834
+ The relation is a view.
2835
+ INCREMENTAL_TABLE (3):
2836
+ The relation is an incrementalized table.
2837
+ MATERIALIZED_VIEW (4):
2838
+ The relation is a materialized view.
2839
+ """
2840
+ RELATION_TYPE_UNSPECIFIED = 0
2841
+ TABLE = 1
2842
+ VIEW = 2
2843
+ INCREMENTAL_TABLE = 3
2844
+ MATERIALIZED_VIEW = 4
2845
+
2846
+ class IncrementalTableConfig(proto.Message):
2847
+ r"""Contains settings for relations of type ``INCREMENTAL_TABLE``.
2848
+
2849
+ Attributes:
2850
+ incremental_select_query (str):
2851
+ The SELECT query which returns rows which
2852
+ should be inserted into the relation if it
2853
+ already exists and is not being refreshed.
2854
+ refresh_disabled (bool):
2855
+ Whether this table should be protected from
2856
+ being refreshed.
2857
+ unique_key_parts (MutableSequence[str]):
2858
+ A set of columns or SQL expressions used to define row
2859
+ uniqueness. If any duplicates are discovered (as defined by
2860
+ ``unique_key_parts``), only the newly selected rows (as
2861
+ defined by ``incremental_select_query``) will be included in
2862
+ the relation.
2863
+ update_partition_filter (str):
2864
+ A SQL expression conditional used to limit the set of
2865
+ existing rows considered for a merge operation (see
2866
+ ``unique_key_parts`` for more information).
2867
+ incremental_pre_operations (MutableSequence[str]):
2868
+ SQL statements to be executed before
2869
+ inserting new rows into the relation.
2870
+ incremental_post_operations (MutableSequence[str]):
2871
+ SQL statements to be executed after inserting
2872
+ new rows into the relation.
2873
+ """
2874
+
2875
+ incremental_select_query: str = proto.Field(
2876
+ proto.STRING,
2877
+ number=1,
2878
+ )
2879
+ refresh_disabled: bool = proto.Field(
2880
+ proto.BOOL,
2881
+ number=2,
2882
+ )
2883
+ unique_key_parts: MutableSequence[str] = proto.RepeatedField(
2884
+ proto.STRING,
2885
+ number=3,
2886
+ )
2887
+ update_partition_filter: str = proto.Field(
2888
+ proto.STRING,
2889
+ number=4,
2890
+ )
2891
+ incremental_pre_operations: MutableSequence[str] = proto.RepeatedField(
2892
+ proto.STRING,
2893
+ number=5,
2894
+ )
2895
+ incremental_post_operations: MutableSequence[str] = proto.RepeatedField(
2896
+ proto.STRING,
2897
+ number=6,
2898
+ )
2899
+
2900
+ dependency_targets: MutableSequence["Target"] = proto.RepeatedField(
2901
+ proto.MESSAGE,
2902
+ number=1,
2903
+ message="Target",
2904
+ )
2905
+ disabled: bool = proto.Field(
2906
+ proto.BOOL,
2907
+ number=2,
2908
+ )
2909
+ tags: MutableSequence[str] = proto.RepeatedField(
2910
+ proto.STRING,
2911
+ number=3,
2912
+ )
2913
+ relation_descriptor: "RelationDescriptor" = proto.Field(
2914
+ proto.MESSAGE,
2915
+ number=4,
2916
+ message="RelationDescriptor",
2917
+ )
2918
+ relation_type: "CompilationResultAction.Relation.RelationType" = proto.Field(
2919
+ proto.ENUM,
2920
+ number=5,
2921
+ enum="CompilationResultAction.Relation.RelationType",
2922
+ )
2923
+ select_query: str = proto.Field(
2924
+ proto.STRING,
2925
+ number=6,
2926
+ )
2927
+ pre_operations: MutableSequence[str] = proto.RepeatedField(
2928
+ proto.STRING,
2929
+ number=7,
2930
+ )
2931
+ post_operations: MutableSequence[str] = proto.RepeatedField(
2932
+ proto.STRING,
2933
+ number=8,
2934
+ )
2935
+ incremental_table_config: "CompilationResultAction.Relation.IncrementalTableConfig" = proto.Field(
2936
+ proto.MESSAGE,
2937
+ number=9,
2938
+ message="CompilationResultAction.Relation.IncrementalTableConfig",
2939
+ )
2940
+ partition_expression: str = proto.Field(
2941
+ proto.STRING,
2942
+ number=10,
2943
+ )
2944
+ cluster_expressions: MutableSequence[str] = proto.RepeatedField(
2945
+ proto.STRING,
2946
+ number=11,
2947
+ )
2948
+ partition_expiration_days: int = proto.Field(
2949
+ proto.INT32,
2950
+ number=12,
2951
+ )
2952
+ require_partition_filter: bool = proto.Field(
2953
+ proto.BOOL,
2954
+ number=13,
2955
+ )
2956
+ additional_options: MutableMapping[str, str] = proto.MapField(
2957
+ proto.STRING,
2958
+ proto.STRING,
2959
+ number=14,
2960
+ )
2961
+
2962
+ class Operations(proto.Message):
2963
+ r"""Represents a list of arbitrary database operations.
2964
+
2965
+ Attributes:
2966
+ dependency_targets (MutableSequence[google.cloud.dataform_v1.types.Target]):
2967
+ A list of actions that this action depends
2968
+ on.
2969
+ disabled (bool):
2970
+ Whether this action is disabled (i.e. should
2971
+ not be run).
2972
+ tags (MutableSequence[str]):
2973
+ Arbitrary, user-defined tags on this action.
2974
+ relation_descriptor (google.cloud.dataform_v1.types.RelationDescriptor):
2975
+ Descriptor for any output relation and its columns. Only set
2976
+ if ``has_output`` is true.
2977
+ queries (MutableSequence[str]):
2978
+ A list of arbitrary SQL statements that will
2979
+ be executed without alteration.
2980
+ has_output (bool):
2981
+ Whether these operations produce an output
2982
+ relation.
2983
+ """
2984
+
2985
+ dependency_targets: MutableSequence["Target"] = proto.RepeatedField(
2986
+ proto.MESSAGE,
2987
+ number=1,
2988
+ message="Target",
2989
+ )
2990
+ disabled: bool = proto.Field(
2991
+ proto.BOOL,
2992
+ number=2,
2993
+ )
2994
+ tags: MutableSequence[str] = proto.RepeatedField(
2995
+ proto.STRING,
2996
+ number=3,
2997
+ )
2998
+ relation_descriptor: "RelationDescriptor" = proto.Field(
2999
+ proto.MESSAGE,
3000
+ number=6,
3001
+ message="RelationDescriptor",
3002
+ )
3003
+ queries: MutableSequence[str] = proto.RepeatedField(
3004
+ proto.STRING,
3005
+ number=4,
3006
+ )
3007
+ has_output: bool = proto.Field(
3008
+ proto.BOOL,
3009
+ number=5,
3010
+ )
3011
+
3012
+ class Assertion(proto.Message):
3013
+ r"""Represents an assertion upon a SQL query which is required
3014
+ return zero rows.
3015
+
3016
+ Attributes:
3017
+ dependency_targets (MutableSequence[google.cloud.dataform_v1.types.Target]):
3018
+ A list of actions that this action depends
3019
+ on.
3020
+ parent_action (google.cloud.dataform_v1.types.Target):
3021
+ The parent action of this assertion. Only set
3022
+ if this assertion was automatically generated.
3023
+ disabled (bool):
3024
+ Whether this action is disabled (i.e. should
3025
+ not be run).
3026
+ tags (MutableSequence[str]):
3027
+ Arbitrary, user-defined tags on this action.
3028
+ select_query (str):
3029
+ The SELECT query which must return zero rows
3030
+ in order for this assertion to succeed.
3031
+ relation_descriptor (google.cloud.dataform_v1.types.RelationDescriptor):
3032
+ Descriptor for the assertion's
3033
+ automatically-generated view and its columns.
3034
+ """
3035
+
3036
+ dependency_targets: MutableSequence["Target"] = proto.RepeatedField(
3037
+ proto.MESSAGE,
3038
+ number=1,
3039
+ message="Target",
3040
+ )
3041
+ parent_action: "Target" = proto.Field(
3042
+ proto.MESSAGE,
3043
+ number=5,
3044
+ message="Target",
3045
+ )
3046
+ disabled: bool = proto.Field(
3047
+ proto.BOOL,
3048
+ number=2,
3049
+ )
3050
+ tags: MutableSequence[str] = proto.RepeatedField(
3051
+ proto.STRING,
3052
+ number=3,
3053
+ )
3054
+ select_query: str = proto.Field(
3055
+ proto.STRING,
3056
+ number=4,
3057
+ )
3058
+ relation_descriptor: "RelationDescriptor" = proto.Field(
3059
+ proto.MESSAGE,
3060
+ number=6,
3061
+ message="RelationDescriptor",
3062
+ )
3063
+
3064
+ class Declaration(proto.Message):
3065
+ r"""Represents a relation which is not managed by Dataform but
3066
+ which may be referenced by Dataform actions.
3067
+
3068
+ Attributes:
3069
+ relation_descriptor (google.cloud.dataform_v1.types.RelationDescriptor):
3070
+ Descriptor for the relation and its columns.
3071
+ Used as documentation only, i.e. values here
3072
+ will result in no changes to the relation's
3073
+ metadata.
3074
+ """
3075
+
3076
+ relation_descriptor: "RelationDescriptor" = proto.Field(
3077
+ proto.MESSAGE,
3078
+ number=1,
3079
+ message="RelationDescriptor",
3080
+ )
3081
+
3082
+ class Notebook(proto.Message):
3083
+ r"""Represents a notebook.
3084
+
3085
+ Attributes:
3086
+ dependency_targets (MutableSequence[google.cloud.dataform_v1.types.Target]):
3087
+ A list of actions that this action depends
3088
+ on.
3089
+ disabled (bool):
3090
+ Whether this action is disabled (i.e. should
3091
+ not be run).
3092
+ contents (str):
3093
+ The contents of the notebook.
3094
+ tags (MutableSequence[str]):
3095
+ Arbitrary, user-defined tags on this action.
3096
+ """
3097
+
3098
+ dependency_targets: MutableSequence["Target"] = proto.RepeatedField(
3099
+ proto.MESSAGE,
3100
+ number=1,
3101
+ message="Target",
3102
+ )
3103
+ disabled: bool = proto.Field(
3104
+ proto.BOOL,
3105
+ number=2,
3106
+ )
3107
+ contents: str = proto.Field(
3108
+ proto.STRING,
3109
+ number=3,
3110
+ )
3111
+ tags: MutableSequence[str] = proto.RepeatedField(
3112
+ proto.STRING,
3113
+ number=4,
3114
+ )
3115
+
3116
+ relation: Relation = proto.Field(
3117
+ proto.MESSAGE,
3118
+ number=4,
3119
+ oneof="compiled_object",
3120
+ message=Relation,
3121
+ )
3122
+ operations: Operations = proto.Field(
3123
+ proto.MESSAGE,
3124
+ number=5,
3125
+ oneof="compiled_object",
3126
+ message=Operations,
3127
+ )
3128
+ assertion: Assertion = proto.Field(
3129
+ proto.MESSAGE,
3130
+ number=6,
3131
+ oneof="compiled_object",
3132
+ message=Assertion,
3133
+ )
3134
+ declaration: Declaration = proto.Field(
3135
+ proto.MESSAGE,
3136
+ number=7,
3137
+ oneof="compiled_object",
3138
+ message=Declaration,
3139
+ )
3140
+ notebook: Notebook = proto.Field(
3141
+ proto.MESSAGE,
3142
+ number=8,
3143
+ oneof="compiled_object",
3144
+ message=Notebook,
3145
+ )
3146
+ target: "Target" = proto.Field(
3147
+ proto.MESSAGE,
3148
+ number=1,
3149
+ message="Target",
3150
+ )
3151
+ canonical_target: "Target" = proto.Field(
3152
+ proto.MESSAGE,
3153
+ number=2,
3154
+ message="Target",
3155
+ )
3156
+ file_path: str = proto.Field(
3157
+ proto.STRING,
3158
+ number=3,
3159
+ )
3160
+ internal_metadata: str = proto.Field(
3161
+ proto.STRING,
3162
+ number=10,
3163
+ optional=True,
3164
+ )
3165
+
3166
+
3167
+ class QueryCompilationResultActionsRequest(proto.Message):
3168
+ r"""``QueryCompilationResultActions`` request message.
3169
+
3170
+ Attributes:
3171
+ name (str):
3172
+ Required. The compilation result's name.
3173
+ page_size (int):
3174
+ Optional. Maximum number of compilation
3175
+ results to return. The server may return fewer
3176
+ items than requested. If unspecified, the server
3177
+ will pick an appropriate default.
3178
+ page_token (str):
3179
+ Optional. Page token received from a previous
3180
+ ``QueryCompilationResultActions`` call. Provide this to
3181
+ retrieve the subsequent page.
3182
+
3183
+ When paginating, all other parameters provided to
3184
+ ``QueryCompilationResultActions``, with the exception of
3185
+ ``page_size``, must match the call that provided the page
3186
+ token.
3187
+ filter (str):
3188
+ Optional. Optional filter for the returned list. Filtering
3189
+ is only currently supported on the ``file_path`` field.
3190
+ """
3191
+
3192
+ name: str = proto.Field(
3193
+ proto.STRING,
3194
+ number=1,
3195
+ )
3196
+ page_size: int = proto.Field(
3197
+ proto.INT32,
3198
+ number=2,
3199
+ )
3200
+ page_token: str = proto.Field(
3201
+ proto.STRING,
3202
+ number=3,
3203
+ )
3204
+ filter: str = proto.Field(
3205
+ proto.STRING,
3206
+ number=4,
3207
+ )
3208
+
3209
+
3210
+ class QueryCompilationResultActionsResponse(proto.Message):
3211
+ r"""``QueryCompilationResultActions`` response message.
3212
+
3213
+ Attributes:
3214
+ compilation_result_actions (MutableSequence[google.cloud.dataform_v1.types.CompilationResultAction]):
3215
+ List of compilation result actions.
3216
+ next_page_token (str):
3217
+ A token, which can be sent as ``page_token`` to retrieve the
3218
+ next page. If this field is omitted, there are no subsequent
3219
+ pages.
3220
+ """
3221
+
3222
+ @property
3223
+ def raw_page(self):
3224
+ return self
3225
+
3226
+ compilation_result_actions: MutableSequence[
3227
+ "CompilationResultAction"
3228
+ ] = proto.RepeatedField(
3229
+ proto.MESSAGE,
3230
+ number=1,
3231
+ message="CompilationResultAction",
3232
+ )
3233
+ next_page_token: str = proto.Field(
3234
+ proto.STRING,
3235
+ number=2,
3236
+ )
3237
+
3238
+
3239
+ class WorkflowConfig(proto.Message):
3240
+ r"""Represents a Dataform workflow configuration.
3241
+
3242
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
3243
+
3244
+ Attributes:
3245
+ name (str):
3246
+ Identifier. The workflow config's name.
3247
+ release_config (str):
3248
+ Required. The name of the release config whose
3249
+ release_compilation_result should be executed. Must be in
3250
+ the format
3251
+ ``projects/*/locations/*/repositories/*/releaseConfigs/*``.
3252
+ invocation_config (google.cloud.dataform_v1.types.InvocationConfig):
3253
+ Optional. If left unset, a default
3254
+ InvocationConfig will be used.
3255
+ cron_schedule (str):
3256
+ Optional. Optional schedule (in cron format)
3257
+ for automatic execution of this workflow config.
3258
+ time_zone (str):
3259
+ Optional. Specifies the time zone to be used when
3260
+ interpreting cron_schedule. Must be a time zone name from
3261
+ the time zone database
3262
+ (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
3263
+ If left unspecified, the default is UTC.
3264
+ recent_scheduled_execution_records (MutableSequence[google.cloud.dataform_v1.types.WorkflowConfig.ScheduledExecutionRecord]):
3265
+ Output only. Records of the 10 most recent scheduled
3266
+ execution attempts, ordered in descending order of
3267
+ ``execution_time``. Updated whenever automatic creation of a
3268
+ workflow invocation is triggered by cron_schedule.
3269
+ create_time (google.protobuf.timestamp_pb2.Timestamp):
3270
+ Output only. The timestamp of when the
3271
+ WorkflowConfig was created.
3272
+ update_time (google.protobuf.timestamp_pb2.Timestamp):
3273
+ Output only. The timestamp of when the
3274
+ WorkflowConfig was last updated.
3275
+ internal_metadata (str):
3276
+ Output only. All the metadata information
3277
+ that is used internally to serve the resource.
3278
+ For example: timestamps, flags, status fields,
3279
+ etc. The format of this field is a JSON string.
3280
+
3281
+ This field is a member of `oneof`_ ``_internal_metadata``.
3282
+ """
3283
+
3284
+ class ScheduledExecutionRecord(proto.Message):
3285
+ r"""A record of an attempt to create a workflow invocation for
3286
+ this workflow config.
3287
+
3288
+ This message has `oneof`_ fields (mutually exclusive fields).
3289
+ For each oneof, at most one member field can be set at the same time.
3290
+ Setting any member of the oneof automatically clears all other
3291
+ members.
3292
+
3293
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
3294
+
3295
+ Attributes:
3296
+ workflow_invocation (str):
3297
+ The name of the created workflow invocation, if one was
3298
+ successfully created. Must be in the format
3299
+ ``projects/*/locations/*/repositories/*/workflowInvocations/*``.
3300
+
3301
+ This field is a member of `oneof`_ ``result``.
3302
+ error_status (google.rpc.status_pb2.Status):
3303
+ The error status encountered upon this
3304
+ attempt to create the workflow invocation, if
3305
+ the attempt was unsuccessful.
3306
+
3307
+ This field is a member of `oneof`_ ``result``.
3308
+ execution_time (google.protobuf.timestamp_pb2.Timestamp):
3309
+ Output only. The timestamp of this execution
3310
+ attempt.
3311
+ """
3312
+
3313
+ workflow_invocation: str = proto.Field(
3314
+ proto.STRING,
3315
+ number=2,
3316
+ oneof="result",
3317
+ )
3318
+ error_status: status_pb2.Status = proto.Field(
3319
+ proto.MESSAGE,
3320
+ number=3,
3321
+ oneof="result",
3322
+ message=status_pb2.Status,
3323
+ )
3324
+ execution_time: timestamp_pb2.Timestamp = proto.Field(
3325
+ proto.MESSAGE,
3326
+ number=1,
3327
+ message=timestamp_pb2.Timestamp,
3328
+ )
3329
+
3330
+ name: str = proto.Field(
3331
+ proto.STRING,
3332
+ number=1,
3333
+ )
3334
+ release_config: str = proto.Field(
3335
+ proto.STRING,
3336
+ number=2,
3337
+ )
3338
+ invocation_config: "InvocationConfig" = proto.Field(
3339
+ proto.MESSAGE,
3340
+ number=3,
3341
+ message="InvocationConfig",
3342
+ )
3343
+ cron_schedule: str = proto.Field(
3344
+ proto.STRING,
3345
+ number=4,
3346
+ )
3347
+ time_zone: str = proto.Field(
3348
+ proto.STRING,
3349
+ number=7,
3350
+ )
3351
+ recent_scheduled_execution_records: MutableSequence[
3352
+ ScheduledExecutionRecord
3353
+ ] = proto.RepeatedField(
3354
+ proto.MESSAGE,
3355
+ number=5,
3356
+ message=ScheduledExecutionRecord,
3357
+ )
3358
+ create_time: timestamp_pb2.Timestamp = proto.Field(
3359
+ proto.MESSAGE,
3360
+ number=9,
3361
+ message=timestamp_pb2.Timestamp,
3362
+ )
3363
+ update_time: timestamp_pb2.Timestamp = proto.Field(
3364
+ proto.MESSAGE,
3365
+ number=10,
3366
+ message=timestamp_pb2.Timestamp,
3367
+ )
3368
+ internal_metadata: str = proto.Field(
3369
+ proto.STRING,
3370
+ number=11,
3371
+ optional=True,
3372
+ )
3373
+
3374
+
3375
+ class InvocationConfig(proto.Message):
3376
+ r"""Includes various configuration options for a workflow invocation. If
3377
+ both ``included_targets`` and ``included_tags`` are unset, all
3378
+ actions will be included.
3379
+
3380
+ Attributes:
3381
+ included_targets (MutableSequence[google.cloud.dataform_v1.types.Target]):
3382
+ Optional. The set of action identifiers to
3383
+ include.
3384
+ included_tags (MutableSequence[str]):
3385
+ Optional. The set of tags to include.
3386
+ transitive_dependencies_included (bool):
3387
+ Optional. When set to true, transitive
3388
+ dependencies of included actions will be
3389
+ executed.
3390
+ transitive_dependents_included (bool):
3391
+ Optional. When set to true, transitive
3392
+ dependents of included actions will be executed.
3393
+ fully_refresh_incremental_tables_enabled (bool):
3394
+ Optional. When set to true, any incremental
3395
+ tables will be fully refreshed.
3396
+ service_account (str):
3397
+ Optional. The service account to run workflow
3398
+ invocations under.
3399
+ """
3400
+
3401
+ included_targets: MutableSequence["Target"] = proto.RepeatedField(
3402
+ proto.MESSAGE,
3403
+ number=1,
3404
+ message="Target",
3405
+ )
3406
+ included_tags: MutableSequence[str] = proto.RepeatedField(
3407
+ proto.STRING,
3408
+ number=2,
3409
+ )
3410
+ transitive_dependencies_included: bool = proto.Field(
3411
+ proto.BOOL,
3412
+ number=3,
3413
+ )
3414
+ transitive_dependents_included: bool = proto.Field(
3415
+ proto.BOOL,
3416
+ number=4,
3417
+ )
3418
+ fully_refresh_incremental_tables_enabled: bool = proto.Field(
3419
+ proto.BOOL,
3420
+ number=5,
3421
+ )
3422
+ service_account: str = proto.Field(
3423
+ proto.STRING,
3424
+ number=6,
3425
+ )
3426
+
3427
+
3428
+ class ListWorkflowConfigsRequest(proto.Message):
3429
+ r"""``ListWorkflowConfigs`` request message.
3430
+
3431
+ Attributes:
3432
+ parent (str):
3433
+ Required. The repository in which to list workflow configs.
3434
+ Must be in the format
3435
+ ``projects/*/locations/*/repositories/*``.
3436
+ page_size (int):
3437
+ Optional. Maximum number of workflow configs
3438
+ to return. The server may return fewer items
3439
+ than requested. If unspecified, the server will
3440
+ pick an appropriate default.
3441
+ page_token (str):
3442
+ Optional. Page token received from a previous
3443
+ ``ListWorkflowConfigs`` call. Provide this to retrieve the
3444
+ subsequent page.
3445
+
3446
+ When paginating, all other parameters provided to
3447
+ ``ListWorkflowConfigs``, with the exception of
3448
+ ``page_size``, must match the call that provided the page
3449
+ token.
3450
+ """
3451
+
3452
+ parent: str = proto.Field(
3453
+ proto.STRING,
3454
+ number=1,
3455
+ )
3456
+ page_size: int = proto.Field(
3457
+ proto.INT32,
3458
+ number=2,
3459
+ )
3460
+ page_token: str = proto.Field(
3461
+ proto.STRING,
3462
+ number=3,
3463
+ )
3464
+
3465
+
3466
+ class ListWorkflowConfigsResponse(proto.Message):
3467
+ r"""``ListWorkflowConfigs`` response message.
3468
+
3469
+ Attributes:
3470
+ workflow_configs (MutableSequence[google.cloud.dataform_v1.types.WorkflowConfig]):
3471
+ List of workflow configs.
3472
+ next_page_token (str):
3473
+ A token, which can be sent as ``page_token`` to retrieve the
3474
+ next page. If this field is omitted, there are no subsequent
3475
+ pages.
3476
+ unreachable (MutableSequence[str]):
3477
+ Locations which could not be reached.
3478
+ """
3479
+
3480
+ @property
3481
+ def raw_page(self):
3482
+ return self
3483
+
3484
+ workflow_configs: MutableSequence["WorkflowConfig"] = proto.RepeatedField(
3485
+ proto.MESSAGE,
3486
+ number=1,
3487
+ message="WorkflowConfig",
3488
+ )
3489
+ next_page_token: str = proto.Field(
3490
+ proto.STRING,
3491
+ number=2,
3492
+ )
3493
+ unreachable: MutableSequence[str] = proto.RepeatedField(
3494
+ proto.STRING,
3495
+ number=3,
3496
+ )
3497
+
3498
+
3499
+ class GetWorkflowConfigRequest(proto.Message):
3500
+ r"""``GetWorkflowConfig`` request message.
3501
+
3502
+ Attributes:
3503
+ name (str):
3504
+ Required. The workflow config's name.
3505
+ """
3506
+
3507
+ name: str = proto.Field(
3508
+ proto.STRING,
3509
+ number=1,
3510
+ )
3511
+
3512
+
3513
+ class CreateWorkflowConfigRequest(proto.Message):
3514
+ r"""``CreateWorkflowConfig`` request message.
3515
+
3516
+ Attributes:
3517
+ parent (str):
3518
+ Required. The repository in which to create the workflow
3519
+ config. Must be in the format
3520
+ ``projects/*/locations/*/repositories/*``.
3521
+ workflow_config (google.cloud.dataform_v1.types.WorkflowConfig):
3522
+ Required. The workflow config to create.
3523
+ workflow_config_id (str):
3524
+ Required. The ID to use for the workflow
3525
+ config, which will become the final component of
3526
+ the workflow config's resource name.
3527
+ """
3528
+
3529
+ parent: str = proto.Field(
3530
+ proto.STRING,
3531
+ number=1,
3532
+ )
3533
+ workflow_config: "WorkflowConfig" = proto.Field(
3534
+ proto.MESSAGE,
3535
+ number=2,
3536
+ message="WorkflowConfig",
3537
+ )
3538
+ workflow_config_id: str = proto.Field(
3539
+ proto.STRING,
3540
+ number=3,
3541
+ )
3542
+
3543
+
3544
+ class UpdateWorkflowConfigRequest(proto.Message):
3545
+ r"""``UpdateWorkflowConfig`` request message.
3546
+
3547
+ Attributes:
3548
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
3549
+ Optional. Specifies the fields to be updated
3550
+ in the workflow config. If left unset, all
3551
+ fields will be updated.
3552
+ workflow_config (google.cloud.dataform_v1.types.WorkflowConfig):
3553
+ Required. The workflow config to update.
3554
+ """
3555
+
3556
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
3557
+ proto.MESSAGE,
3558
+ number=1,
3559
+ message=field_mask_pb2.FieldMask,
3560
+ )
3561
+ workflow_config: "WorkflowConfig" = proto.Field(
3562
+ proto.MESSAGE,
3563
+ number=2,
3564
+ message="WorkflowConfig",
3565
+ )
3566
+
3567
+
3568
+ class DeleteWorkflowConfigRequest(proto.Message):
3569
+ r"""``DeleteWorkflowConfig`` request message.
3570
+
3571
+ Attributes:
3572
+ name (str):
3573
+ Required. The workflow config's name.
3574
+ """
3575
+
3576
+ name: str = proto.Field(
3577
+ proto.STRING,
3578
+ number=1,
3579
+ )
3580
+
3581
+
3582
+ class WorkflowInvocation(proto.Message):
3583
+ r"""Represents a single invocation of a compilation result.
3584
+
3585
+ This message has `oneof`_ fields (mutually exclusive fields).
3586
+ For each oneof, at most one member field can be set at the same time.
3587
+ Setting any member of the oneof automatically clears all other
3588
+ members.
3589
+
3590
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
3591
+
3592
+ Attributes:
3593
+ compilation_result (str):
3594
+ Immutable. The name of the compilation result to use for
3595
+ this invocation. Must be in the format
3596
+ ``projects/*/locations/*/repositories/*/compilationResults/*``.
3597
+
3598
+ This field is a member of `oneof`_ ``compilation_source``.
3599
+ workflow_config (str):
3600
+ Immutable. The name of the workflow config to invoke. Must
3601
+ be in the format
3602
+ ``projects/*/locations/*/repositories/*/workflowConfigs/*``.
3603
+
3604
+ This field is a member of `oneof`_ ``compilation_source``.
3605
+ name (str):
3606
+ Output only. The workflow invocation's name.
3607
+ invocation_config (google.cloud.dataform_v1.types.InvocationConfig):
3608
+ Immutable. If left unset, a default
3609
+ InvocationConfig will be used.
3610
+ state (google.cloud.dataform_v1.types.WorkflowInvocation.State):
3611
+ Output only. This workflow invocation's
3612
+ current state.
3613
+ invocation_timing (google.type.interval_pb2.Interval):
3614
+ Output only. This workflow invocation's
3615
+ timing details.
3616
+ resolved_compilation_result (str):
3617
+ Output only. The resolved compilation result that was used
3618
+ to create this invocation. Will be in the format
3619
+ ``projects/*/locations/*/repositories/*/compilationResults/*``.
3620
+ data_encryption_state (google.cloud.dataform_v1.types.DataEncryptionState):
3621
+ Output only. Only set if the repository has a
3622
+ KMS Key.
3623
+ internal_metadata (str):
3624
+ Output only. All the metadata information
3625
+ that is used internally to serve the resource.
3626
+ For example: timestamps, flags, status fields,
3627
+ etc. The format of this field is a JSON string.
3628
+
3629
+ This field is a member of `oneof`_ ``_internal_metadata``.
3630
+ """
3631
+
3632
+ class State(proto.Enum):
3633
+ r"""Represents the current state of a workflow invocation.
3634
+
3635
+ Values:
3636
+ STATE_UNSPECIFIED (0):
3637
+ Default value. This value is unused.
3638
+ RUNNING (1):
3639
+ The workflow invocation is currently running.
3640
+ SUCCEEDED (2):
3641
+ The workflow invocation succeeded. A terminal
3642
+ state.
3643
+ CANCELLED (3):
3644
+ The workflow invocation was cancelled. A
3645
+ terminal state.
3646
+ FAILED (4):
3647
+ The workflow invocation failed. A terminal
3648
+ state.
3649
+ CANCELING (5):
3650
+ The workflow invocation is being cancelled,
3651
+ but some actions are still running.
3652
+ """
3653
+ STATE_UNSPECIFIED = 0
3654
+ RUNNING = 1
3655
+ SUCCEEDED = 2
3656
+ CANCELLED = 3
3657
+ FAILED = 4
3658
+ CANCELING = 5
3659
+
3660
+ compilation_result: str = proto.Field(
3661
+ proto.STRING,
3662
+ number=2,
3663
+ oneof="compilation_source",
3664
+ )
3665
+ workflow_config: str = proto.Field(
3666
+ proto.STRING,
3667
+ number=6,
3668
+ oneof="compilation_source",
3669
+ )
3670
+ name: str = proto.Field(
3671
+ proto.STRING,
3672
+ number=1,
3673
+ )
3674
+ invocation_config: "InvocationConfig" = proto.Field(
3675
+ proto.MESSAGE,
3676
+ number=3,
3677
+ message="InvocationConfig",
3678
+ )
3679
+ state: State = proto.Field(
3680
+ proto.ENUM,
3681
+ number=4,
3682
+ enum=State,
3683
+ )
3684
+ invocation_timing: interval_pb2.Interval = proto.Field(
3685
+ proto.MESSAGE,
3686
+ number=5,
3687
+ message=interval_pb2.Interval,
3688
+ )
3689
+ resolved_compilation_result: str = proto.Field(
3690
+ proto.STRING,
3691
+ number=7,
3692
+ )
3693
+ data_encryption_state: "DataEncryptionState" = proto.Field(
3694
+ proto.MESSAGE,
3695
+ number=8,
3696
+ message="DataEncryptionState",
3697
+ )
3698
+ internal_metadata: str = proto.Field(
3699
+ proto.STRING,
3700
+ number=9,
3701
+ optional=True,
3702
+ )
3703
+
3704
+
3705
+ class ListWorkflowInvocationsRequest(proto.Message):
3706
+ r"""``ListWorkflowInvocations`` request message.
3707
+
3708
+ Attributes:
3709
+ parent (str):
3710
+ Required. The parent resource of the WorkflowInvocation
3711
+ type. Must be in the format
3712
+ ``projects/*/locations/*/repositories/*``.
3713
+ page_size (int):
3714
+ Optional. Maximum number of workflow
3715
+ invocations to return. The server may return
3716
+ fewer items than requested. If unspecified, the
3717
+ server will pick an appropriate default.
3718
+ page_token (str):
3719
+ Optional. Page token received from a previous
3720
+ ``ListWorkflowInvocations`` call. Provide this to retrieve
3721
+ the subsequent page.
3722
+
3723
+ When paginating, all other parameters provided to
3724
+ ``ListWorkflowInvocations``, with the exception of
3725
+ ``page_size``, must match the call that provided the page
3726
+ token.
3727
+ order_by (str):
3728
+ Optional. This field only supports ordering by ``name``. If
3729
+ unspecified, the server will choose the ordering. If
3730
+ specified, the default order is ascending for the ``name``
3731
+ field.
3732
+ filter (str):
3733
+ Optional. Filter for the returned list.
3734
+ """
3735
+
3736
+ parent: str = proto.Field(
3737
+ proto.STRING,
3738
+ number=1,
3739
+ )
3740
+ page_size: int = proto.Field(
3741
+ proto.INT32,
3742
+ number=2,
3743
+ )
3744
+ page_token: str = proto.Field(
3745
+ proto.STRING,
3746
+ number=3,
3747
+ )
3748
+ order_by: str = proto.Field(
3749
+ proto.STRING,
3750
+ number=4,
3751
+ )
3752
+ filter: str = proto.Field(
3753
+ proto.STRING,
3754
+ number=5,
3755
+ )
3756
+
3757
+
3758
+ class ListWorkflowInvocationsResponse(proto.Message):
3759
+ r"""``ListWorkflowInvocations`` response message.
3760
+
3761
+ Attributes:
3762
+ workflow_invocations (MutableSequence[google.cloud.dataform_v1.types.WorkflowInvocation]):
3763
+ List of workflow invocations.
3764
+ next_page_token (str):
3765
+ A token, which can be sent as ``page_token`` to retrieve the
3766
+ next page. If this field is omitted, there are no subsequent
3767
+ pages.
3768
+ unreachable (MutableSequence[str]):
3769
+ Locations which could not be reached.
3770
+ """
3771
+
3772
+ @property
3773
+ def raw_page(self):
3774
+ return self
3775
+
3776
+ workflow_invocations: MutableSequence["WorkflowInvocation"] = proto.RepeatedField(
3777
+ proto.MESSAGE,
3778
+ number=1,
3779
+ message="WorkflowInvocation",
3780
+ )
3781
+ next_page_token: str = proto.Field(
3782
+ proto.STRING,
3783
+ number=2,
3784
+ )
3785
+ unreachable: MutableSequence[str] = proto.RepeatedField(
3786
+ proto.STRING,
3787
+ number=3,
3788
+ )
3789
+
3790
+
3791
+ class GetWorkflowInvocationRequest(proto.Message):
3792
+ r"""``GetWorkflowInvocation`` request message.
3793
+
3794
+ Attributes:
3795
+ name (str):
3796
+ Required. The workflow invocation resource's
3797
+ name.
3798
+ """
3799
+
3800
+ name: str = proto.Field(
3801
+ proto.STRING,
3802
+ number=1,
3803
+ )
3804
+
3805
+
3806
+ class CreateWorkflowInvocationRequest(proto.Message):
3807
+ r"""``CreateWorkflowInvocation`` request message.
3808
+
3809
+ Attributes:
3810
+ parent (str):
3811
+ Required. The repository in which to create the workflow
3812
+ invocation. Must be in the format
3813
+ ``projects/*/locations/*/repositories/*``.
3814
+ workflow_invocation (google.cloud.dataform_v1.types.WorkflowInvocation):
3815
+ Required. The workflow invocation resource to
3816
+ create.
3817
+ """
3818
+
3819
+ parent: str = proto.Field(
3820
+ proto.STRING,
3821
+ number=1,
3822
+ )
3823
+ workflow_invocation: "WorkflowInvocation" = proto.Field(
3824
+ proto.MESSAGE,
3825
+ number=2,
3826
+ message="WorkflowInvocation",
3827
+ )
3828
+
3829
+
3830
+ class DeleteWorkflowInvocationRequest(proto.Message):
3831
+ r"""``DeleteWorkflowInvocation`` request message.
3832
+
3833
+ Attributes:
3834
+ name (str):
3835
+ Required. The workflow invocation resource's
3836
+ name.
3837
+ """
3838
+
3839
+ name: str = proto.Field(
3840
+ proto.STRING,
3841
+ number=1,
3842
+ )
3843
+
3844
+
3845
+ class CancelWorkflowInvocationRequest(proto.Message):
3846
+ r"""``CancelWorkflowInvocation`` request message.
3847
+
3848
+ Attributes:
3849
+ name (str):
3850
+ Required. The workflow invocation resource's
3851
+ name.
3852
+ """
3853
+
3854
+ name: str = proto.Field(
3855
+ proto.STRING,
3856
+ number=1,
3857
+ )
3858
+
3859
+
3860
+ class CancelWorkflowInvocationResponse(proto.Message):
3861
+ r"""``CancelWorkflowInvocation`` response message."""
3862
+
3863
+
3864
+ class WorkflowInvocationAction(proto.Message):
3865
+ r"""Represents a single action in a workflow invocation.
3866
+
3867
+ This message has `oneof`_ fields (mutually exclusive fields).
3868
+ For each oneof, at most one member field can be set at the same time.
3869
+ Setting any member of the oneof automatically clears all other
3870
+ members.
3871
+
3872
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
3873
+
3874
+ Attributes:
3875
+ bigquery_action (google.cloud.dataform_v1.types.WorkflowInvocationAction.BigQueryAction):
3876
+ Output only. The workflow action's bigquery
3877
+ action details.
3878
+
3879
+ This field is a member of `oneof`_ ``action``.
3880
+ notebook_action (google.cloud.dataform_v1.types.WorkflowInvocationAction.NotebookAction):
3881
+ Output only. The workflow action's notebook
3882
+ action details.
3883
+
3884
+ This field is a member of `oneof`_ ``action``.
3885
+ target (google.cloud.dataform_v1.types.Target):
3886
+ Output only. This action's identifier. Unique
3887
+ within the workflow invocation.
3888
+ canonical_target (google.cloud.dataform_v1.types.Target):
3889
+ Output only. The action's identifier if the
3890
+ project had been compiled without any overrides
3891
+ configured. Unique within the compilation
3892
+ result.
3893
+ state (google.cloud.dataform_v1.types.WorkflowInvocationAction.State):
3894
+ Output only. This action's current state.
3895
+ failure_reason (str):
3896
+ Output only. If and only if action's state is
3897
+ FAILED a failure reason is set.
3898
+ invocation_timing (google.type.interval_pb2.Interval):
3899
+ Output only. This action's timing details. ``start_time``
3900
+ will be set if the action is in [RUNNING, SUCCEEDED,
3901
+ CANCELLED, FAILED] state. ``end_time`` will be set if the
3902
+ action is in [SUCCEEDED, CANCELLED, FAILED] state.
3903
+ internal_metadata (str):
3904
+ Output only. All the metadata information
3905
+ that is used internally to serve the resource.
3906
+ For example: timestamps, flags, status fields,
3907
+ etc. The format of this field is a JSON string.
3908
+
3909
+ This field is a member of `oneof`_ ``_internal_metadata``.
3910
+ """
3911
+
3912
+ class State(proto.Enum):
3913
+ r"""Represents the current state of a workflow invocation action.
3914
+
3915
+ Values:
3916
+ PENDING (0):
3917
+ The action has not yet been considered for
3918
+ invocation.
3919
+ RUNNING (1):
3920
+ The action is currently running.
3921
+ SKIPPED (2):
3922
+ Execution of the action was skipped because
3923
+ upstream dependencies did not all complete
3924
+ successfully. A terminal state.
3925
+ DISABLED (3):
3926
+ Execution of the action was disabled as per
3927
+ the configuration of the corresponding
3928
+ compilation result action. A terminal state.
3929
+ SUCCEEDED (4):
3930
+ The action succeeded. A terminal state.
3931
+ CANCELLED (5):
3932
+ The action was cancelled. A terminal state.
3933
+ FAILED (6):
3934
+ The action failed. A terminal state.
3935
+ """
3936
+ PENDING = 0
3937
+ RUNNING = 1
3938
+ SKIPPED = 2
3939
+ DISABLED = 3
3940
+ SUCCEEDED = 4
3941
+ CANCELLED = 5
3942
+ FAILED = 6
3943
+
3944
+ class BigQueryAction(proto.Message):
3945
+ r"""Represents a workflow action that will run against BigQuery.
3946
+
3947
+ Attributes:
3948
+ sql_script (str):
3949
+ Output only. The generated BigQuery SQL
3950
+ script that will be executed.
3951
+ job_id (str):
3952
+ Output only. The ID of the BigQuery job that executed the
3953
+ SQL in sql_script. Only set once the job has started to run.
3954
+ """
3955
+
3956
+ sql_script: str = proto.Field(
3957
+ proto.STRING,
3958
+ number=1,
3959
+ )
3960
+ job_id: str = proto.Field(
3961
+ proto.STRING,
3962
+ number=2,
3963
+ )
3964
+
3965
+ class NotebookAction(proto.Message):
3966
+ r"""Represents a workflow action that will run against a Notebook
3967
+ runtime.
3968
+
3969
+ Attributes:
3970
+ contents (str):
3971
+ Output only. The code contents of a Notebook
3972
+ to be run.
3973
+ job_id (str):
3974
+ Output only. The ID of the Vertex job that
3975
+ executed the notebook in contents and also the
3976
+ ID used for the outputs created in Google Cloud
3977
+ Storage buckets. Only set once the job has
3978
+ started to run.
3979
+ """
3980
+
3981
+ contents: str = proto.Field(
3982
+ proto.STRING,
3983
+ number=1,
3984
+ )
3985
+ job_id: str = proto.Field(
3986
+ proto.STRING,
3987
+ number=2,
3988
+ )
3989
+
3990
+ bigquery_action: BigQueryAction = proto.Field(
3991
+ proto.MESSAGE,
3992
+ number=6,
3993
+ oneof="action",
3994
+ message=BigQueryAction,
3995
+ )
3996
+ notebook_action: NotebookAction = proto.Field(
3997
+ proto.MESSAGE,
3998
+ number=8,
3999
+ oneof="action",
4000
+ message=NotebookAction,
4001
+ )
4002
+ target: "Target" = proto.Field(
4003
+ proto.MESSAGE,
4004
+ number=1,
4005
+ message="Target",
4006
+ )
4007
+ canonical_target: "Target" = proto.Field(
4008
+ proto.MESSAGE,
4009
+ number=2,
4010
+ message="Target",
4011
+ )
4012
+ state: State = proto.Field(
4013
+ proto.ENUM,
4014
+ number=4,
4015
+ enum=State,
4016
+ )
4017
+ failure_reason: str = proto.Field(
4018
+ proto.STRING,
4019
+ number=7,
4020
+ )
4021
+ invocation_timing: interval_pb2.Interval = proto.Field(
4022
+ proto.MESSAGE,
4023
+ number=5,
4024
+ message=interval_pb2.Interval,
4025
+ )
4026
+ internal_metadata: str = proto.Field(
4027
+ proto.STRING,
4028
+ number=10,
4029
+ optional=True,
4030
+ )
4031
+
4032
+
4033
+ class QueryWorkflowInvocationActionsRequest(proto.Message):
4034
+ r"""``QueryWorkflowInvocationActions`` request message.
4035
+
4036
+ Attributes:
4037
+ name (str):
4038
+ Required. The workflow invocation's name.
4039
+ page_size (int):
4040
+ Optional. Maximum number of workflow
4041
+ invocations to return. The server may return
4042
+ fewer items than requested. If unspecified, the
4043
+ server will pick an appropriate default.
4044
+ page_token (str):
4045
+ Optional. Page token received from a previous
4046
+ ``QueryWorkflowInvocationActions`` call. Provide this to
4047
+ retrieve the subsequent page.
4048
+
4049
+ When paginating, all other parameters provided to
4050
+ ``QueryWorkflowInvocationActions``, with the exception of
4051
+ ``page_size``, must match the call that provided the page
4052
+ token.
4053
+ """
4054
+
4055
+ name: str = proto.Field(
4056
+ proto.STRING,
4057
+ number=1,
4058
+ )
4059
+ page_size: int = proto.Field(
4060
+ proto.INT32,
4061
+ number=2,
4062
+ )
4063
+ page_token: str = proto.Field(
4064
+ proto.STRING,
4065
+ number=3,
4066
+ )
4067
+
4068
+
4069
+ class QueryWorkflowInvocationActionsResponse(proto.Message):
4070
+ r"""``QueryWorkflowInvocationActions`` response message.
4071
+
4072
+ Attributes:
4073
+ workflow_invocation_actions (MutableSequence[google.cloud.dataform_v1.types.WorkflowInvocationAction]):
4074
+ List of workflow invocation actions.
4075
+ next_page_token (str):
4076
+ A token, which can be sent as ``page_token`` to retrieve the
4077
+ next page. If this field is omitted, there are no subsequent
4078
+ pages.
4079
+ """
4080
+
4081
+ @property
4082
+ def raw_page(self):
4083
+ return self
4084
+
4085
+ workflow_invocation_actions: MutableSequence[
4086
+ "WorkflowInvocationAction"
4087
+ ] = proto.RepeatedField(
4088
+ proto.MESSAGE,
4089
+ number=1,
4090
+ message="WorkflowInvocationAction",
4091
+ )
4092
+ next_page_token: str = proto.Field(
4093
+ proto.STRING,
4094
+ number=2,
4095
+ )
4096
+
4097
+
4098
+ class Config(proto.Message):
4099
+ r"""Config for all repositories in a given project and location.
4100
+
4101
+ Attributes:
4102
+ name (str):
4103
+ Identifier. The config name.
4104
+ default_kms_key_name (str):
4105
+ Optional. The default KMS key that is used if
4106
+ no encryption key is provided when a repository
4107
+ is created.
4108
+ """
4109
+
4110
+ name: str = proto.Field(
4111
+ proto.STRING,
4112
+ number=1,
4113
+ )
4114
+ default_kms_key_name: str = proto.Field(
4115
+ proto.STRING,
4116
+ number=2,
4117
+ )
4118
+
4119
+
4120
+ class GetConfigRequest(proto.Message):
4121
+ r"""``GetConfig`` request message.
4122
+
4123
+ Attributes:
4124
+ name (str):
4125
+ Required. The config name.
4126
+ """
4127
+
4128
+ name: str = proto.Field(
4129
+ proto.STRING,
4130
+ number=1,
4131
+ )
4132
+
4133
+
4134
+ class UpdateConfigRequest(proto.Message):
4135
+ r"""``UpdateConfig`` request message.
4136
+
4137
+ Attributes:
4138
+ config (google.cloud.dataform_v1.types.Config):
4139
+ Required. The config to update.
4140
+ update_mask (google.protobuf.field_mask_pb2.FieldMask):
4141
+ Optional. Specifies the fields to be updated
4142
+ in the config.
4143
+ """
4144
+
4145
+ config: "Config" = proto.Field(
4146
+ proto.MESSAGE,
4147
+ number=1,
4148
+ message="Config",
4149
+ )
4150
+ update_mask: field_mask_pb2.FieldMask = proto.Field(
4151
+ proto.MESSAGE,
4152
+ number=2,
4153
+ message=field_mask_pb2.FieldMask,
4154
+ )
4155
+
4156
+
4157
+ __all__ = tuple(sorted(__protobuf__.manifest))