google-cloud-dataform-v1beta1 1.4.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.
- checksums.yaml +4 -4
- data/README.md +4 -6
- data/lib/google/cloud/dataform/v1beta1/dataform/client.rb +214 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/paths.rb +19 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb +200 -0
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/service_stub.rb +123 -0
- data/lib/google/cloud/dataform/v1beta1/dataform_pb.rb +9 -1
- data/lib/google/cloud/dataform/v1beta1/dataform_services_pb.rb +5 -0
- data/lib/google/cloud/dataform/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/dataform/v1beta1/dataform.rb +182 -12
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a5c137f9f0a30d8ba2bcc10c69f0e9149d7f16b396755d09048ac06c2c4b03c
|
|
4
|
+
data.tar.gz: 0c96ee20bf4c88cae2ad3666a8f8fbc7d7667ed428613088f146451d04d055dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 804e54ca2d7d233f43f8ddbcab5831db30901a63c13b8128b9486d3c1b94eab9b125e16e0e0bae683193c9250c91031930fd862c113090496111955b5908e17b
|
|
7
|
+
data.tar.gz: ef9c9c2260a0347b3a54166288da7733a9b3e95accdd1f90ff911304d4125f9d1a848947b98a020f83bb77dcf525041b700af898a272cef045a231aa0f7ee57b
|
data/README.md
CHANGED
|
@@ -87,12 +87,10 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
|
87
87
|
|
|
88
88
|
This library is supported on Ruby 3.2+.
|
|
89
89
|
|
|
90
|
-
Google provides official support for Ruby versions
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
|
95
|
-
support schedule.
|
|
90
|
+
Google provides official support for Ruby versions as described in the
|
|
91
|
+
[Supported Ruby versions](https://docs.cloud.google.com/ruby/getting-started/supported-ruby-versions)
|
|
92
|
+
policy. Older versions of Ruby _may_ still work, but are unsupported and not
|
|
93
|
+
recommended.
|
|
96
94
|
|
|
97
95
|
## Which client should I use?
|
|
98
96
|
|
|
@@ -4251,6 +4251,108 @@ module Google
|
|
|
4251
4251
|
raise ::Google::Cloud::Error.from_error(e)
|
|
4252
4252
|
end
|
|
4253
4253
|
|
|
4254
|
+
##
|
|
4255
|
+
# Fetches a Workspace's history of commits.
|
|
4256
|
+
#
|
|
4257
|
+
# @overload fetch_workspace_history(request, options = nil)
|
|
4258
|
+
# Pass arguments to `fetch_workspace_history` via a request object, either of type
|
|
4259
|
+
# {::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest} or an equivalent Hash.
|
|
4260
|
+
#
|
|
4261
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest, ::Hash]
|
|
4262
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4263
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4264
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4265
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
4266
|
+
#
|
|
4267
|
+
# @overload fetch_workspace_history(name: nil, page_size: nil, page_token: nil)
|
|
4268
|
+
# Pass arguments to `fetch_workspace_history` via keyword arguments. Note that at
|
|
4269
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4270
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4271
|
+
#
|
|
4272
|
+
# @param name [::String]
|
|
4273
|
+
# Required. The workspace's name.
|
|
4274
|
+
# @param page_size [::Integer]
|
|
4275
|
+
# Optional. Maximum number of commits to return. The server may return fewer
|
|
4276
|
+
# items than requested. If unspecified, the server will pick an appropriate
|
|
4277
|
+
# default.
|
|
4278
|
+
# @param page_token [::String]
|
|
4279
|
+
# Optional. Page token received from a previous `FetchWorkspaceHistory` call.
|
|
4280
|
+
# Provide this to retrieve the subsequent page.
|
|
4281
|
+
#
|
|
4282
|
+
# When paginating, all other parameters provided to `FetchWorkspaceHistory`,
|
|
4283
|
+
# with the exception of `page_size`, must match the call that provided the
|
|
4284
|
+
# page token.
|
|
4285
|
+
#
|
|
4286
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
4287
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
|
|
4288
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
4289
|
+
#
|
|
4290
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
|
|
4291
|
+
#
|
|
4292
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
4293
|
+
#
|
|
4294
|
+
# @example Basic example
|
|
4295
|
+
# require "google/cloud/dataform/v1beta1"
|
|
4296
|
+
#
|
|
4297
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4298
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
4299
|
+
#
|
|
4300
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4301
|
+
# request = Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest.new
|
|
4302
|
+
#
|
|
4303
|
+
# # Call the fetch_workspace_history method.
|
|
4304
|
+
# result = client.fetch_workspace_history request
|
|
4305
|
+
#
|
|
4306
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
4307
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
4308
|
+
# result.each do |item|
|
|
4309
|
+
# # Each element is of type ::Google::Cloud::Dataform::V1beta1::CommitLogEntry.
|
|
4310
|
+
# p item
|
|
4311
|
+
# end
|
|
4312
|
+
#
|
|
4313
|
+
def fetch_workspace_history request, options = nil
|
|
4314
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4315
|
+
|
|
4316
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest
|
|
4317
|
+
|
|
4318
|
+
# Converts hash and nil to an options object
|
|
4319
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4320
|
+
|
|
4321
|
+
# Customize the options with defaults
|
|
4322
|
+
metadata = @config.rpcs.fetch_workspace_history.metadata.to_h
|
|
4323
|
+
|
|
4324
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4325
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4326
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4327
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
4328
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4329
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4330
|
+
|
|
4331
|
+
header_params = {}
|
|
4332
|
+
if request.name
|
|
4333
|
+
header_params["name"] = request.name
|
|
4334
|
+
end
|
|
4335
|
+
|
|
4336
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
4337
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
4338
|
+
|
|
4339
|
+
options.apply_defaults timeout: @config.rpcs.fetch_workspace_history.timeout,
|
|
4340
|
+
metadata: metadata,
|
|
4341
|
+
retry_policy: @config.rpcs.fetch_workspace_history.retry_policy
|
|
4342
|
+
|
|
4343
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4344
|
+
metadata: @config.metadata,
|
|
4345
|
+
retry_policy: @config.retry_policy
|
|
4346
|
+
|
|
4347
|
+
@dataform_stub.call_rpc :fetch_workspace_history, request, options: options do |response, operation|
|
|
4348
|
+
response = ::Gapic::PagedEnumerable.new @dataform_stub, :fetch_workspace_history, request, response, operation, options
|
|
4349
|
+
yield response, operation if block_given?
|
|
4350
|
+
throw :response, response
|
|
4351
|
+
end
|
|
4352
|
+
rescue ::GRPC::BadStatus => e
|
|
4353
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4354
|
+
end
|
|
4355
|
+
|
|
4254
4356
|
##
|
|
4255
4357
|
# Applies a Git commit for uncommitted files in a Workspace.
|
|
4256
4358
|
#
|
|
@@ -6103,6 +6205,104 @@ module Google
|
|
|
6103
6205
|
raise ::Google::Cloud::Error.from_error(e)
|
|
6104
6206
|
end
|
|
6105
6207
|
|
|
6208
|
+
##
|
|
6209
|
+
# Creates a new CompilationResult in a given project and location
|
|
6210
|
+
# asynchronously.
|
|
6211
|
+
#
|
|
6212
|
+
# @overload create_compilation_result_long_running(request, options = nil)
|
|
6213
|
+
# Pass arguments to `create_compilation_result_long_running` via a request object, either of type
|
|
6214
|
+
# {::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest} or an equivalent Hash.
|
|
6215
|
+
#
|
|
6216
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest, ::Hash]
|
|
6217
|
+
# A request object representing the call parameters. Required. To specify no
|
|
6218
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
6219
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
6220
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
6221
|
+
#
|
|
6222
|
+
# @overload create_compilation_result_long_running(parent: nil, compilation_result: nil)
|
|
6223
|
+
# Pass arguments to `create_compilation_result_long_running` via keyword arguments. Note that at
|
|
6224
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
6225
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
6226
|
+
#
|
|
6227
|
+
# @param parent [::String]
|
|
6228
|
+
# Required. The repository in which to create the compilation result. Must be
|
|
6229
|
+
# in the format `projects/*/locations/*/repositories/*`.
|
|
6230
|
+
# @param compilation_result [::Google::Cloud::Dataform::V1beta1::CompilationResult, ::Hash]
|
|
6231
|
+
# Required. The compilation result to create.
|
|
6232
|
+
#
|
|
6233
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
6234
|
+
# @yieldparam response [::Gapic::Operation]
|
|
6235
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
6236
|
+
#
|
|
6237
|
+
# @return [::Gapic::Operation]
|
|
6238
|
+
#
|
|
6239
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
6240
|
+
#
|
|
6241
|
+
# @example Basic example
|
|
6242
|
+
# require "google/cloud/dataform/v1beta1"
|
|
6243
|
+
#
|
|
6244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
6245
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Client.new
|
|
6246
|
+
#
|
|
6247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
6248
|
+
# request = Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest.new
|
|
6249
|
+
#
|
|
6250
|
+
# # Call the create_compilation_result_long_running method.
|
|
6251
|
+
# result = client.create_compilation_result_long_running request
|
|
6252
|
+
#
|
|
6253
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
6254
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
6255
|
+
# # Here is how to wait for a response.
|
|
6256
|
+
# result.wait_until_done! timeout: 60
|
|
6257
|
+
# if result.response?
|
|
6258
|
+
# p result.response
|
|
6259
|
+
# else
|
|
6260
|
+
# puts "No response received."
|
|
6261
|
+
# end
|
|
6262
|
+
#
|
|
6263
|
+
def create_compilation_result_long_running request, options = nil
|
|
6264
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
6265
|
+
|
|
6266
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest
|
|
6267
|
+
|
|
6268
|
+
# Converts hash and nil to an options object
|
|
6269
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
6270
|
+
|
|
6271
|
+
# Customize the options with defaults
|
|
6272
|
+
metadata = @config.rpcs.create_compilation_result_long_running.metadata.to_h
|
|
6273
|
+
|
|
6274
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
6275
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
6276
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
6277
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION
|
|
6278
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
6279
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
6280
|
+
|
|
6281
|
+
header_params = {}
|
|
6282
|
+
if request.parent
|
|
6283
|
+
header_params["parent"] = request.parent
|
|
6284
|
+
end
|
|
6285
|
+
|
|
6286
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
6287
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
6288
|
+
|
|
6289
|
+
options.apply_defaults timeout: @config.rpcs.create_compilation_result_long_running.timeout,
|
|
6290
|
+
metadata: metadata,
|
|
6291
|
+
retry_policy: @config.rpcs.create_compilation_result_long_running.retry_policy
|
|
6292
|
+
|
|
6293
|
+
options.apply_defaults timeout: @config.timeout,
|
|
6294
|
+
metadata: @config.metadata,
|
|
6295
|
+
retry_policy: @config.retry_policy
|
|
6296
|
+
|
|
6297
|
+
@dataform_stub.call_rpc :create_compilation_result_long_running, request, options: options do |response, operation|
|
|
6298
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
6299
|
+
yield response, operation if block_given?
|
|
6300
|
+
throw :response, response
|
|
6301
|
+
end
|
|
6302
|
+
rescue ::GRPC::BadStatus => e
|
|
6303
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
6304
|
+
end
|
|
6305
|
+
|
|
6106
6306
|
##
|
|
6107
6307
|
# Returns CompilationResultActions in a given CompilationResult.
|
|
6108
6308
|
#
|
|
@@ -8082,6 +8282,11 @@ module Google
|
|
|
8082
8282
|
#
|
|
8083
8283
|
attr_reader :fetch_git_ahead_behind
|
|
8084
8284
|
##
|
|
8285
|
+
# RPC-specific configuration for `fetch_workspace_history`
|
|
8286
|
+
# @return [::Gapic::Config::Method]
|
|
8287
|
+
#
|
|
8288
|
+
attr_reader :fetch_workspace_history
|
|
8289
|
+
##
|
|
8085
8290
|
# RPC-specific configuration for `commit_workspace_changes`
|
|
8086
8291
|
# @return [::Gapic::Config::Method]
|
|
8087
8292
|
#
|
|
@@ -8182,6 +8387,11 @@ module Google
|
|
|
8182
8387
|
#
|
|
8183
8388
|
attr_reader :create_compilation_result
|
|
8184
8389
|
##
|
|
8390
|
+
# RPC-specific configuration for `create_compilation_result_long_running`
|
|
8391
|
+
# @return [::Gapic::Config::Method]
|
|
8392
|
+
#
|
|
8393
|
+
attr_reader :create_compilation_result_long_running
|
|
8394
|
+
##
|
|
8185
8395
|
# RPC-specific configuration for `query_compilation_result_actions`
|
|
8186
8396
|
# @return [::Gapic::Config::Method]
|
|
8187
8397
|
#
|
|
@@ -8353,6 +8563,8 @@ module Google
|
|
|
8353
8563
|
@fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config
|
|
8354
8564
|
fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind
|
|
8355
8565
|
@fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config
|
|
8566
|
+
fetch_workspace_history_config = parent_rpcs.fetch_workspace_history if parent_rpcs.respond_to? :fetch_workspace_history
|
|
8567
|
+
@fetch_workspace_history = ::Gapic::Config::Method.new fetch_workspace_history_config
|
|
8356
8568
|
commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes
|
|
8357
8569
|
@commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config
|
|
8358
8570
|
reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes
|
|
@@ -8393,6 +8605,8 @@ module Google
|
|
|
8393
8605
|
@get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config
|
|
8394
8606
|
create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result
|
|
8395
8607
|
@create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config
|
|
8608
|
+
create_compilation_result_long_running_config = parent_rpcs.create_compilation_result_long_running if parent_rpcs.respond_to? :create_compilation_result_long_running
|
|
8609
|
+
@create_compilation_result_long_running = ::Gapic::Config::Method.new create_compilation_result_long_running_config
|
|
8396
8610
|
query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions
|
|
8397
8611
|
@query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config
|
|
8398
8612
|
list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs
|
|
@@ -24,6 +24,25 @@ module Google
|
|
|
24
24
|
module Dataform
|
|
25
25
|
# Path helper methods for the Dataform API.
|
|
26
26
|
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified AccountConnector resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/accountConnectors/{account_connector}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param account_connector [String]
|
|
37
|
+
#
|
|
38
|
+
# @return [::String]
|
|
39
|
+
def account_connector_path project:, location:, account_connector:
|
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
42
|
+
|
|
43
|
+
"projects/#{project}/locations/#{location}/accountConnectors/#{account_connector}"
|
|
44
|
+
end
|
|
45
|
+
|
|
27
46
|
##
|
|
28
47
|
# Create a fully-qualified CompilationResult resource string.
|
|
29
48
|
#
|
|
@@ -3951,6 +3951,101 @@ module Google
|
|
|
3951
3951
|
raise ::Google::Cloud::Error.from_error(e)
|
|
3952
3952
|
end
|
|
3953
3953
|
|
|
3954
|
+
##
|
|
3955
|
+
# Fetches a Workspace's history of commits.
|
|
3956
|
+
#
|
|
3957
|
+
# @overload fetch_workspace_history(request, options = nil)
|
|
3958
|
+
# Pass arguments to `fetch_workspace_history` via a request object, either of type
|
|
3959
|
+
# {::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest} or an equivalent Hash.
|
|
3960
|
+
#
|
|
3961
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest, ::Hash]
|
|
3962
|
+
# A request object representing the call parameters. Required. To specify no
|
|
3963
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
3964
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
3965
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
3966
|
+
#
|
|
3967
|
+
# @overload fetch_workspace_history(name: nil, page_size: nil, page_token: nil)
|
|
3968
|
+
# Pass arguments to `fetch_workspace_history` via keyword arguments. Note that at
|
|
3969
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
3970
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
3971
|
+
#
|
|
3972
|
+
# @param name [::String]
|
|
3973
|
+
# Required. The workspace's name.
|
|
3974
|
+
# @param page_size [::Integer]
|
|
3975
|
+
# Optional. Maximum number of commits to return. The server may return fewer
|
|
3976
|
+
# items than requested. If unspecified, the server will pick an appropriate
|
|
3977
|
+
# default.
|
|
3978
|
+
# @param page_token [::String]
|
|
3979
|
+
# Optional. Page token received from a previous `FetchWorkspaceHistory` call.
|
|
3980
|
+
# Provide this to retrieve the subsequent page.
|
|
3981
|
+
#
|
|
3982
|
+
# When paginating, all other parameters provided to `FetchWorkspaceHistory`,
|
|
3983
|
+
# with the exception of `page_size`, must match the call that provided the
|
|
3984
|
+
# page token.
|
|
3985
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
3986
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
|
|
3987
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
3988
|
+
#
|
|
3989
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataform::V1beta1::CommitLogEntry>]
|
|
3990
|
+
#
|
|
3991
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
3992
|
+
#
|
|
3993
|
+
# @example Basic example
|
|
3994
|
+
# require "google/cloud/dataform/v1beta1"
|
|
3995
|
+
#
|
|
3996
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
3997
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
|
|
3998
|
+
#
|
|
3999
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4000
|
+
# request = Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest.new
|
|
4001
|
+
#
|
|
4002
|
+
# # Call the fetch_workspace_history method.
|
|
4003
|
+
# result = client.fetch_workspace_history request
|
|
4004
|
+
#
|
|
4005
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
4006
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
4007
|
+
# result.each do |item|
|
|
4008
|
+
# # Each element is of type ::Google::Cloud::Dataform::V1beta1::CommitLogEntry.
|
|
4009
|
+
# p item
|
|
4010
|
+
# end
|
|
4011
|
+
#
|
|
4012
|
+
def fetch_workspace_history request, options = nil
|
|
4013
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4014
|
+
|
|
4015
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::FetchWorkspaceHistoryRequest
|
|
4016
|
+
|
|
4017
|
+
# Converts hash and nil to an options object
|
|
4018
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4019
|
+
|
|
4020
|
+
# Customize the options with defaults
|
|
4021
|
+
call_metadata = @config.rpcs.fetch_workspace_history.metadata.to_h
|
|
4022
|
+
|
|
4023
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4024
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4025
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4026
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
|
4027
|
+
transports_version_send: [:rest]
|
|
4028
|
+
|
|
4029
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4030
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4031
|
+
|
|
4032
|
+
options.apply_defaults timeout: @config.rpcs.fetch_workspace_history.timeout,
|
|
4033
|
+
metadata: call_metadata,
|
|
4034
|
+
retry_policy: @config.rpcs.fetch_workspace_history.retry_policy
|
|
4035
|
+
|
|
4036
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4037
|
+
metadata: @config.metadata,
|
|
4038
|
+
retry_policy: @config.retry_policy
|
|
4039
|
+
|
|
4040
|
+
@dataform_stub.fetch_workspace_history request, options do |result, operation|
|
|
4041
|
+
result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :fetch_workspace_history, "commits", request, result, options
|
|
4042
|
+
yield result, operation if block_given?
|
|
4043
|
+
throw :response, result
|
|
4044
|
+
end
|
|
4045
|
+
rescue ::Gapic::Rest::Error => e
|
|
4046
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4047
|
+
end
|
|
4048
|
+
|
|
3954
4049
|
##
|
|
3955
4050
|
# Applies a Git commit for uncommitted files in a Workspace.
|
|
3956
4051
|
#
|
|
@@ -5663,6 +5758,97 @@ module Google
|
|
|
5663
5758
|
raise ::Google::Cloud::Error.from_error(e)
|
|
5664
5759
|
end
|
|
5665
5760
|
|
|
5761
|
+
##
|
|
5762
|
+
# Creates a new CompilationResult in a given project and location
|
|
5763
|
+
# asynchronously.
|
|
5764
|
+
#
|
|
5765
|
+
# @overload create_compilation_result_long_running(request, options = nil)
|
|
5766
|
+
# Pass arguments to `create_compilation_result_long_running` via a request object, either of type
|
|
5767
|
+
# {::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest} or an equivalent Hash.
|
|
5768
|
+
#
|
|
5769
|
+
# @param request [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest, ::Hash]
|
|
5770
|
+
# A request object representing the call parameters. Required. To specify no
|
|
5771
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
5772
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5773
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5774
|
+
#
|
|
5775
|
+
# @overload create_compilation_result_long_running(parent: nil, compilation_result: nil)
|
|
5776
|
+
# Pass arguments to `create_compilation_result_long_running` via keyword arguments. Note that at
|
|
5777
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5778
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5779
|
+
#
|
|
5780
|
+
# @param parent [::String]
|
|
5781
|
+
# Required. The repository in which to create the compilation result. Must be
|
|
5782
|
+
# in the format `projects/*/locations/*/repositories/*`.
|
|
5783
|
+
# @param compilation_result [::Google::Cloud::Dataform::V1beta1::CompilationResult, ::Hash]
|
|
5784
|
+
# Required. The compilation result to create.
|
|
5785
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5786
|
+
# @yieldparam result [::Gapic::Operation]
|
|
5787
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
5788
|
+
#
|
|
5789
|
+
# @return [::Gapic::Operation]
|
|
5790
|
+
#
|
|
5791
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
5792
|
+
#
|
|
5793
|
+
# @example Basic example
|
|
5794
|
+
# require "google/cloud/dataform/v1beta1"
|
|
5795
|
+
#
|
|
5796
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
5797
|
+
# client = Google::Cloud::Dataform::V1beta1::Dataform::Rest::Client.new
|
|
5798
|
+
#
|
|
5799
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
5800
|
+
# request = Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest.new
|
|
5801
|
+
#
|
|
5802
|
+
# # Call the create_compilation_result_long_running method.
|
|
5803
|
+
# result = client.create_compilation_result_long_running request
|
|
5804
|
+
#
|
|
5805
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
5806
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
5807
|
+
# # Here is how to wait for a response.
|
|
5808
|
+
# result.wait_until_done! timeout: 60
|
|
5809
|
+
# if result.response?
|
|
5810
|
+
# p result.response
|
|
5811
|
+
# else
|
|
5812
|
+
# puts "No response received."
|
|
5813
|
+
# end
|
|
5814
|
+
#
|
|
5815
|
+
def create_compilation_result_long_running request, options = nil
|
|
5816
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5817
|
+
|
|
5818
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest
|
|
5819
|
+
|
|
5820
|
+
# Converts hash and nil to an options object
|
|
5821
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5822
|
+
|
|
5823
|
+
# Customize the options with defaults
|
|
5824
|
+
call_metadata = @config.rpcs.create_compilation_result_long_running.metadata.to_h
|
|
5825
|
+
|
|
5826
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5827
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5828
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5829
|
+
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
|
5830
|
+
transports_version_send: [:rest]
|
|
5831
|
+
|
|
5832
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5833
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5834
|
+
|
|
5835
|
+
options.apply_defaults timeout: @config.rpcs.create_compilation_result_long_running.timeout,
|
|
5836
|
+
metadata: call_metadata,
|
|
5837
|
+
retry_policy: @config.rpcs.create_compilation_result_long_running.retry_policy
|
|
5838
|
+
|
|
5839
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5840
|
+
metadata: @config.metadata,
|
|
5841
|
+
retry_policy: @config.retry_policy
|
|
5842
|
+
|
|
5843
|
+
@dataform_stub.create_compilation_result_long_running request, options do |result, operation|
|
|
5844
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
5845
|
+
yield result, operation if block_given?
|
|
5846
|
+
throw :response, result
|
|
5847
|
+
end
|
|
5848
|
+
rescue ::Gapic::Rest::Error => e
|
|
5849
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5850
|
+
end
|
|
5851
|
+
|
|
5666
5852
|
##
|
|
5667
5853
|
# Returns CompilationResultActions in a given CompilationResult.
|
|
5668
5854
|
#
|
|
@@ -7493,6 +7679,11 @@ module Google
|
|
|
7493
7679
|
#
|
|
7494
7680
|
attr_reader :fetch_git_ahead_behind
|
|
7495
7681
|
##
|
|
7682
|
+
# RPC-specific configuration for `fetch_workspace_history`
|
|
7683
|
+
# @return [::Gapic::Config::Method]
|
|
7684
|
+
#
|
|
7685
|
+
attr_reader :fetch_workspace_history
|
|
7686
|
+
##
|
|
7496
7687
|
# RPC-specific configuration for `commit_workspace_changes`
|
|
7497
7688
|
# @return [::Gapic::Config::Method]
|
|
7498
7689
|
#
|
|
@@ -7593,6 +7784,11 @@ module Google
|
|
|
7593
7784
|
#
|
|
7594
7785
|
attr_reader :create_compilation_result
|
|
7595
7786
|
##
|
|
7787
|
+
# RPC-specific configuration for `create_compilation_result_long_running`
|
|
7788
|
+
# @return [::Gapic::Config::Method]
|
|
7789
|
+
#
|
|
7790
|
+
attr_reader :create_compilation_result_long_running
|
|
7791
|
+
##
|
|
7596
7792
|
# RPC-specific configuration for `query_compilation_result_actions`
|
|
7597
7793
|
# @return [::Gapic::Config::Method]
|
|
7598
7794
|
#
|
|
@@ -7764,6 +7960,8 @@ module Google
|
|
|
7764
7960
|
@fetch_file_git_statuses = ::Gapic::Config::Method.new fetch_file_git_statuses_config
|
|
7765
7961
|
fetch_git_ahead_behind_config = parent_rpcs.fetch_git_ahead_behind if parent_rpcs.respond_to? :fetch_git_ahead_behind
|
|
7766
7962
|
@fetch_git_ahead_behind = ::Gapic::Config::Method.new fetch_git_ahead_behind_config
|
|
7963
|
+
fetch_workspace_history_config = parent_rpcs.fetch_workspace_history if parent_rpcs.respond_to? :fetch_workspace_history
|
|
7964
|
+
@fetch_workspace_history = ::Gapic::Config::Method.new fetch_workspace_history_config
|
|
7767
7965
|
commit_workspace_changes_config = parent_rpcs.commit_workspace_changes if parent_rpcs.respond_to? :commit_workspace_changes
|
|
7768
7966
|
@commit_workspace_changes = ::Gapic::Config::Method.new commit_workspace_changes_config
|
|
7769
7967
|
reset_workspace_changes_config = parent_rpcs.reset_workspace_changes if parent_rpcs.respond_to? :reset_workspace_changes
|
|
@@ -7804,6 +8002,8 @@ module Google
|
|
|
7804
8002
|
@get_compilation_result = ::Gapic::Config::Method.new get_compilation_result_config
|
|
7805
8003
|
create_compilation_result_config = parent_rpcs.create_compilation_result if parent_rpcs.respond_to? :create_compilation_result
|
|
7806
8004
|
@create_compilation_result = ::Gapic::Config::Method.new create_compilation_result_config
|
|
8005
|
+
create_compilation_result_long_running_config = parent_rpcs.create_compilation_result_long_running if parent_rpcs.respond_to? :create_compilation_result_long_running
|
|
8006
|
+
@create_compilation_result_long_running = ::Gapic::Config::Method.new create_compilation_result_long_running_config
|
|
7807
8007
|
query_compilation_result_actions_config = parent_rpcs.query_compilation_result_actions if parent_rpcs.respond_to? :query_compilation_result_actions
|
|
7808
8008
|
@query_compilation_result_actions = ::Gapic::Config::Method.new query_compilation_result_actions_config
|
|
7809
8009
|
list_workflow_configs_config = parent_rpcs.list_workflow_configs if parent_rpcs.respond_to? :list_workflow_configs
|