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