google-cloud-dataform-v1beta1 1.5.0 → 1.6.0

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.
@@ -125,6 +125,11 @@ module Google
125
125
  # @!attribute [rw] ssh_authentication_config
126
126
  # @return [::Google::Cloud::Dataform::V1beta1::Repository::GitRemoteSettings::SshAuthenticationConfig]
127
127
  # Optional. Authentication fields for remote uris using SSH protocol.
128
+ # @!attribute [rw] account_connector
129
+ # @return [::String]
130
+ # Optional. Resource name for the Account Connector used for personal
131
+ # authentication. Must be in the format
132
+ # `projects/*/locations/*/accountConnectors/*`
128
133
  # @!attribute [rw] git_repository_link
129
134
  # @return [::String]
130
135
  # Optional. Resource name for the `GitRepositoryLink` used for machine
@@ -678,7 +683,7 @@ module Google
678
683
  # checkout for this workspace. If defined and greater than 0, the Git
679
684
  # repository will be created as a shallow clone with the given depth,
680
685
  # otherwise a full clone will be performed. This field is available only for
681
- # GitHub, Gitlab and 1p repositories with enabled branch management.
686
+ # GitHub, GitLab and 1p repositories with enabled branch management.
682
687
  # @!attribute [r] shallow
683
688
  # @return [::Boolean]
684
689
  # Output only. If set to true, the workspace was created as a shallow clone.
@@ -977,6 +982,44 @@ module Google
977
982
  extend ::Google::Protobuf::MessageExts::ClassMethods
978
983
  end
979
984
 
985
+ # `FetchWorkspaceHistory` request message.
986
+ # @!attribute [rw] name
987
+ # @return [::String]
988
+ # Required. The workspace's name.
989
+ # @!attribute [rw] page_size
990
+ # @return [::Integer]
991
+ # Optional. Maximum number of commits to return. The server may return fewer
992
+ # items than requested. If unspecified, the server will pick an appropriate
993
+ # default.
994
+ # @!attribute [rw] page_token
995
+ # @return [::String]
996
+ # Optional. Page token received from a previous `FetchWorkspaceHistory` call.
997
+ # Provide this to retrieve the subsequent page.
998
+ #
999
+ # When paginating, all other parameters provided to `FetchWorkspaceHistory`,
1000
+ # with the exception of `page_size`, must match the call that provided the
1001
+ # page token.
1002
+ class FetchWorkspaceHistoryRequest
1003
+ include ::Google::Protobuf::MessageExts
1004
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1005
+ end
1006
+
1007
+ # `FetchWorkspaceHistory` response message.
1008
+ # @!attribute [rw] commits
1009
+ # @return [::Array<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
1010
+ # A list of commit logs, ordered by 'git log' default order.
1011
+ # @!attribute [rw] next_page_token
1012
+ # @return [::String]
1013
+ # Optional. A token, which can be sent as `page_token` to retrieve the next
1014
+ # page. If this field is omitted, there are no subsequent pages.
1015
+ # @!attribute [rw] reaches_shallow_boundary
1016
+ # @return [::Boolean]
1017
+ # Whether this response reaches the shallow boundary of the repository.
1018
+ class FetchWorkspaceHistoryResponse
1019
+ include ::Google::Protobuf::MessageExts
1020
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1021
+ end
1022
+
980
1023
  # `CommitWorkspaceChanges` request message.
981
1024
  # @!attribute [rw] name
982
1025
  # @return [::String]
@@ -1184,7 +1227,7 @@ module Google
1184
1227
  # Client-facing representation of a file entry in search results.
1185
1228
  # @!attribute [rw] path
1186
1229
  # @return [::String]
1187
- # File system path relative to the workspace root.
1230
+ # File system path relative to the file tree root.
1188
1231
  class FileSearchResult
1189
1232
  include ::Google::Protobuf::MessageExts
1190
1233
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1902,6 +1945,46 @@ module Google
1902
1945
  extend ::Google::Protobuf::MessageExts::ClassMethods
1903
1946
  end
1904
1947
 
1948
+ # Represents the metadata of the `CreateCompilationResultLongRunning`
1949
+ # operation.
1950
+ # @!attribute [r] id
1951
+ # @return [::String]
1952
+ # Output only. The ID of the LRO.
1953
+ # @!attribute [r] target
1954
+ # @return [::String]
1955
+ # Output only. Server-defined resource path for the target of the operation.
1956
+ # @!attribute [r] state
1957
+ # @return [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultMetadata::State]
1958
+ # Output only. The state of the LRO.
1959
+ # @!attribute [r] create_compilation_result_request
1960
+ # @return [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest]
1961
+ # Output only. The CreateCompilationResult requested.
1962
+ class CreateCompilationResultMetadata
1963
+ include ::Google::Protobuf::MessageExts
1964
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1965
+
1966
+ # State of the LRO.
1967
+ module State
1968
+ # The state is unspecified.
1969
+ STATE_UNSPECIFIED = 0
1970
+
1971
+ # The LRO has been created.
1972
+ CREATED = 1
1973
+
1974
+ # The LRO is in progress.
1975
+ RUNNING = 2
1976
+
1977
+ # The RPC call has finished.
1978
+ FINISHED = 3
1979
+
1980
+ # The LRO has succeeded.
1981
+ SUCCEEDED = 4
1982
+
1983
+ # The LRO has failed.
1984
+ FAILED = 5
1985
+ end
1986
+ end
1987
+
1905
1988
  # Represents an action identifier. If the action writes output, the output
1906
1989
  # will be written to the referenced database object.
1907
1990
  # @!attribute [rw] database
@@ -1963,32 +2046,37 @@ module Google
1963
2046
  # @return [::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Relation]
1964
2047
  # The database relation created/updated by this action.
1965
2048
  #
1966
- # Note: The following fields are mutually exclusive: `relation`, `operations`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2049
+ # Note: The following fields are mutually exclusive: `relation`, `operations`, `assertion`, `declaration`, `notebook`, `data_preparation`, `bigquery_unit_test`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1967
2050
  # @!attribute [rw] operations
1968
2051
  # @return [::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Operations]
1969
2052
  # The database operations executed by this action.
1970
2053
  #
1971
- # Note: The following fields are mutually exclusive: `operations`, `relation`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2054
+ # Note: The following fields are mutually exclusive: `operations`, `relation`, `assertion`, `declaration`, `notebook`, `data_preparation`, `bigquery_unit_test`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1972
2055
  # @!attribute [rw] assertion
1973
2056
  # @return [::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Assertion]
1974
2057
  # The assertion executed by this action.
1975
2058
  #
1976
- # Note: The following fields are mutually exclusive: `assertion`, `relation`, `operations`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2059
+ # Note: The following fields are mutually exclusive: `assertion`, `relation`, `operations`, `declaration`, `notebook`, `data_preparation`, `bigquery_unit_test`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1977
2060
  # @!attribute [rw] declaration
1978
2061
  # @return [::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Declaration]
1979
2062
  # The declaration declared by this action.
1980
2063
  #
1981
- # Note: The following fields are mutually exclusive: `declaration`, `relation`, `operations`, `assertion`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2064
+ # Note: The following fields are mutually exclusive: `declaration`, `relation`, `operations`, `assertion`, `notebook`, `data_preparation`, `bigquery_unit_test`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1982
2065
  # @!attribute [rw] notebook
1983
2066
  # @return [::Google::Cloud::Dataform::V1beta1::CompilationResultAction::Notebook]
1984
2067
  # The notebook executed by this action.
1985
2068
  #
1986
- # Note: The following fields are mutually exclusive: `notebook`, `relation`, `operations`, `assertion`, `declaration`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2069
+ # Note: The following fields are mutually exclusive: `notebook`, `relation`, `operations`, `assertion`, `declaration`, `data_preparation`, `bigquery_unit_test`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1987
2070
  # @!attribute [rw] data_preparation
1988
2071
  # @return [::Google::Cloud::Dataform::V1beta1::CompilationResultAction::DataPreparation]
1989
2072
  # The data preparation executed by this action.
1990
2073
  #
1991
- # Note: The following fields are mutually exclusive: `data_preparation`, `relation`, `operations`, `assertion`, `declaration`, `notebook`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2074
+ # Note: The following fields are mutually exclusive: `data_preparation`, `relation`, `operations`, `assertion`, `declaration`, `notebook`, `bigquery_unit_test`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2075
+ # @!attribute [rw] bigquery_unit_test
2076
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResultAction::BigQueryUnitTest]
2077
+ # The unit test executed by this action.
2078
+ #
2079
+ # Note: The following fields are mutually exclusive: `bigquery_unit_test`, `relation`, `operations`, `assertion`, `declaration`, `notebook`, `data_preparation`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1992
2080
  # @!attribute [rw] target
1993
2081
  # @return [::Google::Cloud::Dataform::V1beta1::Target]
1994
2082
  # This action's identifier. Unique within the compilation result.
@@ -2296,6 +2384,30 @@ module Google
2296
2384
  end
2297
2385
  end
2298
2386
 
2387
+ # Represents a BigQuery unit test.
2388
+ # @!attribute [rw] dependency_targets
2389
+ # @return [::Array<::Google::Cloud::Dataform::V1beta1::Target>]
2390
+ # A list of actions that this action depends on.
2391
+ # @!attribute [rw] disabled
2392
+ # @return [::Boolean]
2393
+ # Whether this action is disabled (i.e. should not be run).
2394
+ # @!attribute [rw] tags
2395
+ # @return [::Array<::String>]
2396
+ # Arbitrary, user-defined tags on this action.
2397
+ # @!attribute [rw] display_name
2398
+ # @return [::String]
2399
+ # The name of the unit test.
2400
+ # @!attribute [rw] test_query
2401
+ # @return [::String]
2402
+ # Test query to execute.
2403
+ # @!attribute [rw] expected_output_query
2404
+ # @return [::String]
2405
+ # Expected output query to compare against the test query.
2406
+ class BigQueryUnitTest
2407
+ include ::Google::Protobuf::MessageExts
2408
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2409
+ end
2410
+
2299
2411
  # Simplified load configuration for actions
2300
2412
  # @!attribute [rw] replace
2301
2413
  # @return [::Google::Cloud::Dataform::V1beta1::CompilationResultAction::SimpleLoadMode]
@@ -2479,12 +2591,18 @@ module Google
2479
2591
  # @!attribute [rw] end_user_auth_config
2480
2592
  # @return [::Google::Cloud::Dataform::V1beta1::InvocationConfig::EndUserAuthenticationConfig]
2481
2593
  # Optional. Configuration for end user authentication.
2482
- # Note that this should not be set when `service_account` is used.
2594
+ # Do not set if `service_account` is used.
2483
2595
  # @!attribute [rw] query_priority
2484
2596
  # @return [::Google::Cloud::Dataform::V1beta1::InvocationConfig::QueryPriority]
2485
2597
  # Optional. Specifies the priority for query execution in BigQuery.
2486
2598
  # More information can be found at
2487
2599
  # https://cloud.google.com/bigquery/docs/running-queries#queries.
2600
+ # @!attribute [rw] concurrent_actions_limit
2601
+ # @return [::Integer]
2602
+ # Optional. Maximum number of actions that can be executed concurrently.
2603
+ # @!attribute [rw] execution_mode
2604
+ # @return [::Google::Cloud::Dataform::V1beta1::InvocationConfig::ExecutionMode]
2605
+ # Optional. Specifies the execution mode for the workflow invocation.
2488
2606
  class InvocationConfig
2489
2607
  include ::Google::Protobuf::MessageExts
2490
2608
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2516,6 +2634,23 @@ module Google
2516
2634
  # https://cloud.google.com/bigquery/docs/running-queries#batchqueries.
2517
2635
  BATCH = 2
2518
2636
  end
2637
+
2638
+ # Execution mode for the workflow invocation.
2639
+ # Determines whether to run actions or unit tests.
2640
+ module ExecutionMode
2641
+ # Default value.
2642
+ EXECUTION_MODE_UNSPECIFIED = 0
2643
+
2644
+ # Default execution mode, which runs all actions except unit tests.
2645
+ # Same as ALL_EXCEPT_UNIT_TESTS.
2646
+ DEFAULT = 1
2647
+
2648
+ # Run all actions except unit tests.
2649
+ ALL_EXCEPT_UNIT_TESTS = 2
2650
+
2651
+ # Run unit tests only.
2652
+ UNIT_TESTS_ONLY = 3
2653
+ end
2519
2654
  end
2520
2655
 
2521
2656
  # `ListWorkflowConfigs` request message.
@@ -2778,17 +2913,22 @@ module Google
2778
2913
  # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction::BigQueryAction]
2779
2914
  # Output only. The workflow action's bigquery action details.
2780
2915
  #
2781
- # Note: The following fields are mutually exclusive: `bigquery_action`, `notebook_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2916
+ # Note: The following fields are mutually exclusive: `bigquery_action`, `notebook_action`, `data_preparation_action`, `bigquery_unit_test_action`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2782
2917
  # @!attribute [r] notebook_action
2783
2918
  # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction::NotebookAction]
2784
2919
  # Output only. The workflow action's notebook action details.
2785
2920
  #
2786
- # Note: The following fields are mutually exclusive: `notebook_action`, `bigquery_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2921
+ # Note: The following fields are mutually exclusive: `notebook_action`, `bigquery_action`, `data_preparation_action`, `bigquery_unit_test_action`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2787
2922
  # @!attribute [r] data_preparation_action
2788
2923
  # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction::DataPreparationAction]
2789
2924
  # Output only. The workflow action's data preparation action details.
2790
2925
  #
2791
- # Note: The following fields are mutually exclusive: `data_preparation_action`, `bigquery_action`, `notebook_action`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2926
+ # Note: The following fields are mutually exclusive: `data_preparation_action`, `bigquery_action`, `notebook_action`, `bigquery_unit_test_action`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2927
+ # @!attribute [r] bigquery_unit_test_action
2928
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocationAction::BigQueryUnitTestAction]
2929
+ # Output only. The workflow action's unit test details.
2930
+ #
2931
+ # Note: The following fields are mutually exclusive: `bigquery_unit_test_action`, `bigquery_action`, `notebook_action`, `data_preparation_action`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2792
2932
  # @!attribute [r] target
2793
2933
  # @return [::Google::Cloud::Dataform::V1beta1::Target]
2794
2934
  # Output only. This action's identifier. Unique within the workflow
@@ -2950,6 +3090,32 @@ module Google
2950
3090
  end
2951
3091
  end
2952
3092
 
3093
+ # Represents a workflow action that will run a BigQuery unit test.
3094
+ # @!attribute [r] actual_results_job_id
3095
+ # @return [::String]
3096
+ # Output only. Job ID for the actual results.
3097
+ # @!attribute [r] actual_results_sql_script
3098
+ # @return [::String]
3099
+ # Output only. SQL script for the actual results.
3100
+ # @!attribute [r] expected_results_job_id
3101
+ # @return [::String]
3102
+ # Output only. Job ID for the expected results.
3103
+ # @!attribute [r] expected_results_sql_script
3104
+ # @return [::String]
3105
+ # Output only. SQL script for the expected results.
3106
+ # @!attribute [r] total_processed_bytes
3107
+ # @return [::Integer]
3108
+ # Output only. Total bytes processed for this action. Combined total for
3109
+ # actual and expected jobs.
3110
+ # @!attribute [r] total_billed_bytes
3111
+ # @return [::Integer]
3112
+ # Output only. Total bytes billed for this action. Combined total for
3113
+ # actual and expected jobs.
3114
+ class BigQueryUnitTestAction
3115
+ include ::Google::Protobuf::MessageExts
3116
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3117
+ end
3118
+
2953
3119
  # Represents the current state of a workflow invocation action.
2954
3120
  module State
2955
3121
  # The action has not yet been considered for invocation.
@@ -2974,6 +3140,10 @@ module Google
2974
3140
 
2975
3141
  # The action failed. A terminal state.
2976
3142
  FAILED = 6
3143
+
3144
+ # Execution of the action was queued waiting for an available concurrency
3145
+ # slot.
3146
+ QUEUED = 7
2977
3147
  end
2978
3148
  end
2979
3149
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dataform-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -111,6 +111,7 @@ files:
111
111
  - proto_docs/README.md
112
112
  - proto_docs/google/api/client.rb
113
113
  - proto_docs/google/api/field_behavior.rb
114
+ - proto_docs/google/api/field_info.rb
114
115
  - proto_docs/google/api/launch_stage.rb
115
116
  - proto_docs/google/api/resource.rb
116
117
  - proto_docs/google/cloud/dataform/v1beta1/dataform.rb