google-cloud-dataform-v1beta1 1.1.0 → 1.3.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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +4 -4
  4. data/README.md +7 -8
  5. data/lib/google/cloud/dataform/v1beta1/bindings_override.rb +1 -1
  6. data/lib/google/cloud/dataform/v1beta1/dataform/client.rb +515 -1
  7. data/lib/google/cloud/dataform/v1beta1/dataform/credentials.rb +1 -1
  8. data/lib/google/cloud/dataform/v1beta1/dataform/paths.rb +1 -1
  9. data/lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb +480 -1
  10. data/lib/google/cloud/dataform/v1beta1/dataform/rest/service_stub.rb +309 -1
  11. data/lib/google/cloud/dataform/v1beta1/dataform/rest.rb +1 -1
  12. data/lib/google/cloud/dataform/v1beta1/dataform.rb +1 -1
  13. data/lib/google/cloud/dataform/v1beta1/dataform_pb.rb +15 -1
  14. data/lib/google/cloud/dataform/v1beta1/dataform_services_pb.rb +11 -1
  15. data/lib/google/cloud/dataform/v1beta1/rest.rb +1 -1
  16. data/lib/google/cloud/dataform/v1beta1/version.rb +1 -1
  17. data/lib/google/cloud/dataform/v1beta1.rb +1 -1
  18. data/lib/google-cloud-dataform-v1beta1.rb +1 -2
  19. data/proto_docs/README.md +1 -1
  20. data/proto_docs/google/api/client.rb +1 -1
  21. data/proto_docs/google/api/field_behavior.rb +1 -1
  22. data/proto_docs/google/api/launch_stage.rb +1 -1
  23. data/proto_docs/google/api/resource.rb +1 -1
  24. data/proto_docs/google/cloud/dataform/v1beta1/dataform.rb +232 -1
  25. data/proto_docs/google/protobuf/any.rb +1 -1
  26. data/proto_docs/google/protobuf/duration.rb +1 -1
  27. data/proto_docs/google/protobuf/empty.rb +1 -1
  28. data/proto_docs/google/protobuf/field_mask.rb +1 -1
  29. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  30. data/proto_docs/google/rpc/status.rb +1 -1
  31. data/proto_docs/google/type/expr.rb +1 -1
  32. data/proto_docs/google/type/interval.rb +1 -1
  33. metadata +5 -17
  34. data/lib/google/longrunning/bindings_override.rb +0 -71
  35. data/lib/google/longrunning/operations/client.rb +0 -954
  36. data/lib/google/longrunning/operations/credentials.rb +0 -40
  37. data/lib/google/longrunning/operations/operations.rb +0 -839
  38. data/lib/google/longrunning/operations/rest/client.rb +0 -777
  39. data/lib/google/longrunning/operations/rest/operations.rb +0 -923
  40. data/lib/google/longrunning/operations/rest/service_stub.rb +0 -322
  41. data/lib/google/longrunning/operations/rest.rb +0 -57
  42. data/lib/google/longrunning/operations.rb +0 -59
  43. data/lib/google/longrunning/rest.rb +0 -34
  44. data/lib/google/longrunning.rb +0 -41
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2023 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1433,6 +1433,206 @@ module Google
1433
1433
  end
1434
1434
  end
1435
1435
 
1436
+ ##
1437
+ # Baseline implementation for the sync_workspace_refs REST call
1438
+ #
1439
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::SyncWorkspaceRefsRequest]
1440
+ # A request object representing the call parameters. Required.
1441
+ # @param options [::Gapic::CallOptions]
1442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1443
+ #
1444
+ # @yield [result, operation] Access the result along with the TransportOperation object
1445
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::SyncWorkspaceRefsResponse]
1446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1447
+ #
1448
+ # @return [::Google::Cloud::Dataform::V1beta1::SyncWorkspaceRefsResponse]
1449
+ # A result object deserialized from the server's reply
1450
+ def sync_workspace_refs request_pb, options = nil
1451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1452
+
1453
+ verb, uri, query_string_params, body = ServiceStub.transcode_sync_workspace_refs_request request_pb
1454
+ query_string_params = if query_string_params.any?
1455
+ query_string_params.to_h { |p| p.split "=", 2 }
1456
+ else
1457
+ {}
1458
+ end
1459
+
1460
+ response = @client_stub.make_http_request(
1461
+ verb,
1462
+ uri: uri,
1463
+ body: body || "",
1464
+ params: query_string_params,
1465
+ method_name: "sync_workspace_refs",
1466
+ options: options
1467
+ )
1468
+ operation = ::Gapic::Rest::TransportOperation.new response
1469
+ result = ::Google::Cloud::Dataform::V1beta1::SyncWorkspaceRefsResponse.decode_json response.body, ignore_unknown_fields: true
1470
+ catch :response do
1471
+ yield result, operation if block_given?
1472
+ result
1473
+ end
1474
+ end
1475
+
1476
+ ##
1477
+ # Baseline implementation for the fetch_workspace_branches REST call
1478
+ #
1479
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceBranchesRequest]
1480
+ # A request object representing the call parameters. Required.
1481
+ # @param options [::Gapic::CallOptions]
1482
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1483
+ #
1484
+ # @yield [result, operation] Access the result along with the TransportOperation object
1485
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceBranchesResponse]
1486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1487
+ #
1488
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceBranchesResponse]
1489
+ # A result object deserialized from the server's reply
1490
+ def fetch_workspace_branches request_pb, options = nil
1491
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1492
+
1493
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_workspace_branches_request request_pb
1494
+ query_string_params = if query_string_params.any?
1495
+ query_string_params.to_h { |p| p.split "=", 2 }
1496
+ else
1497
+ {}
1498
+ end
1499
+
1500
+ response = @client_stub.make_http_request(
1501
+ verb,
1502
+ uri: uri,
1503
+ body: body || "",
1504
+ params: query_string_params,
1505
+ method_name: "fetch_workspace_branches",
1506
+ options: options
1507
+ )
1508
+ operation = ::Gapic::Rest::TransportOperation.new response
1509
+ result = ::Google::Cloud::Dataform::V1beta1::FetchWorkspaceBranchesResponse.decode_json response.body, ignore_unknown_fields: true
1510
+ catch :response do
1511
+ yield result, operation if block_given?
1512
+ result
1513
+ end
1514
+ end
1515
+
1516
+ ##
1517
+ # Baseline implementation for the delete_branch REST call
1518
+ #
1519
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteBranchRequest]
1520
+ # A request object representing the call parameters. Required.
1521
+ # @param options [::Gapic::CallOptions]
1522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1523
+ #
1524
+ # @yield [result, operation] Access the result along with the TransportOperation object
1525
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::DeleteBranchResponse]
1526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1527
+ #
1528
+ # @return [::Google::Cloud::Dataform::V1beta1::DeleteBranchResponse]
1529
+ # A result object deserialized from the server's reply
1530
+ def delete_branch request_pb, options = nil
1531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1532
+
1533
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_branch_request request_pb
1534
+ query_string_params = if query_string_params.any?
1535
+ query_string_params.to_h { |p| p.split "=", 2 }
1536
+ else
1537
+ {}
1538
+ end
1539
+
1540
+ response = @client_stub.make_http_request(
1541
+ verb,
1542
+ uri: uri,
1543
+ body: body || "",
1544
+ params: query_string_params,
1545
+ method_name: "delete_branch",
1546
+ options: options
1547
+ )
1548
+ operation = ::Gapic::Rest::TransportOperation.new response
1549
+ result = ::Google::Cloud::Dataform::V1beta1::DeleteBranchResponse.decode_json response.body, ignore_unknown_fields: true
1550
+ catch :response do
1551
+ yield result, operation if block_given?
1552
+ result
1553
+ end
1554
+ end
1555
+
1556
+ ##
1557
+ # Baseline implementation for the checkout_workspace_branch REST call
1558
+ #
1559
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::CheckoutWorkspaceBranchRequest]
1560
+ # A request object representing the call parameters. Required.
1561
+ # @param options [::Gapic::CallOptions]
1562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1563
+ #
1564
+ # @yield [result, operation] Access the result along with the TransportOperation object
1565
+ # @yieldparam result [::Google::Protobuf::Empty]
1566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1567
+ #
1568
+ # @return [::Google::Protobuf::Empty]
1569
+ # A result object deserialized from the server's reply
1570
+ def checkout_workspace_branch request_pb, options = nil
1571
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1572
+
1573
+ verb, uri, query_string_params, body = ServiceStub.transcode_checkout_workspace_branch_request request_pb
1574
+ query_string_params = if query_string_params.any?
1575
+ query_string_params.to_h { |p| p.split "=", 2 }
1576
+ else
1577
+ {}
1578
+ end
1579
+
1580
+ response = @client_stub.make_http_request(
1581
+ verb,
1582
+ uri: uri,
1583
+ body: body || "",
1584
+ params: query_string_params,
1585
+ method_name: "checkout_workspace_branch",
1586
+ options: options
1587
+ )
1588
+ operation = ::Gapic::Rest::TransportOperation.new response
1589
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1590
+ catch :response do
1591
+ yield result, operation if block_given?
1592
+ result
1593
+ end
1594
+ end
1595
+
1596
+ ##
1597
+ # Baseline implementation for the fetch_current_workspace_branch REST call
1598
+ #
1599
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::FetchCurrentWorkspaceBranchRequest]
1600
+ # A request object representing the call parameters. Required.
1601
+ # @param options [::Gapic::CallOptions]
1602
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1603
+ #
1604
+ # @yield [result, operation] Access the result along with the TransportOperation object
1605
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchCurrentWorkspaceBranchResponse]
1606
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1607
+ #
1608
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchCurrentWorkspaceBranchResponse]
1609
+ # A result object deserialized from the server's reply
1610
+ def fetch_current_workspace_branch request_pb, options = nil
1611
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1612
+
1613
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_current_workspace_branch_request request_pb
1614
+ query_string_params = if query_string_params.any?
1615
+ query_string_params.to_h { |p| p.split "=", 2 }
1616
+ else
1617
+ {}
1618
+ end
1619
+
1620
+ response = @client_stub.make_http_request(
1621
+ verb,
1622
+ uri: uri,
1623
+ body: body || "",
1624
+ params: query_string_params,
1625
+ method_name: "fetch_current_workspace_branch",
1626
+ options: options
1627
+ )
1628
+ operation = ::Gapic::Rest::TransportOperation.new response
1629
+ result = ::Google::Cloud::Dataform::V1beta1::FetchCurrentWorkspaceBranchResponse.decode_json response.body, ignore_unknown_fields: true
1630
+ catch :response do
1631
+ yield result, operation if block_given?
1632
+ result
1633
+ end
1634
+ end
1635
+
1436
1636
  ##
1437
1637
  # Baseline implementation for the push_git_commits REST call
1438
1638
  #
@@ -3762,6 +3962,114 @@ module Google
3762
3962
  transcoder.transcode request_pb
3763
3963
  end
3764
3964
 
3965
+ ##
3966
+ # @private
3967
+ #
3968
+ # GRPC transcoding helper method for the sync_workspace_refs REST call
3969
+ #
3970
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::SyncWorkspaceRefsRequest]
3971
+ # A request object representing the call parameters. Required.
3972
+ # @return [Array(String, [String, nil], Hash{String => String})]
3973
+ # Uri, Body, Query string parameters
3974
+ def self.transcode_sync_workspace_refs_request request_pb
3975
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3976
+ .with_bindings(
3977
+ uri_method: :post,
3978
+ uri_template: "/v1beta1/{name}:syncWorkspaceRefs",
3979
+ body: "*",
3980
+ matches: [
3981
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
3982
+ ]
3983
+ )
3984
+ transcoder.transcode request_pb
3985
+ end
3986
+
3987
+ ##
3988
+ # @private
3989
+ #
3990
+ # GRPC transcoding helper method for the fetch_workspace_branches REST call
3991
+ #
3992
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceBranchesRequest]
3993
+ # A request object representing the call parameters. Required.
3994
+ # @return [Array(String, [String, nil], Hash{String => String})]
3995
+ # Uri, Body, Query string parameters
3996
+ def self.transcode_fetch_workspace_branches_request request_pb
3997
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3998
+ .with_bindings(
3999
+ uri_method: :get,
4000
+ uri_template: "/v1beta1/{name}:fetchBranches",
4001
+ matches: [
4002
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
4003
+ ]
4004
+ )
4005
+ transcoder.transcode request_pb
4006
+ end
4007
+
4008
+ ##
4009
+ # @private
4010
+ #
4011
+ # GRPC transcoding helper method for the delete_branch REST call
4012
+ #
4013
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteBranchRequest]
4014
+ # A request object representing the call parameters. Required.
4015
+ # @return [Array(String, [String, nil], Hash{String => String})]
4016
+ # Uri, Body, Query string parameters
4017
+ def self.transcode_delete_branch_request request_pb
4018
+ transcoder = Gapic::Rest::GrpcTranscoder.new
4019
+ .with_bindings(
4020
+ uri_method: :post,
4021
+ uri_template: "/v1beta1/{name}:deleteBranch",
4022
+ body: "*",
4023
+ matches: [
4024
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
4025
+ ]
4026
+ )
4027
+ transcoder.transcode request_pb
4028
+ end
4029
+
4030
+ ##
4031
+ # @private
4032
+ #
4033
+ # GRPC transcoding helper method for the checkout_workspace_branch REST call
4034
+ #
4035
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::CheckoutWorkspaceBranchRequest]
4036
+ # A request object representing the call parameters. Required.
4037
+ # @return [Array(String, [String, nil], Hash{String => String})]
4038
+ # Uri, Body, Query string parameters
4039
+ def self.transcode_checkout_workspace_branch_request request_pb
4040
+ transcoder = Gapic::Rest::GrpcTranscoder.new
4041
+ .with_bindings(
4042
+ uri_method: :post,
4043
+ uri_template: "/v1beta1/{name}:checkout",
4044
+ body: "*",
4045
+ matches: [
4046
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
4047
+ ]
4048
+ )
4049
+ transcoder.transcode request_pb
4050
+ end
4051
+
4052
+ ##
4053
+ # @private
4054
+ #
4055
+ # GRPC transcoding helper method for the fetch_current_workspace_branch REST call
4056
+ #
4057
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::FetchCurrentWorkspaceBranchRequest]
4058
+ # A request object representing the call parameters. Required.
4059
+ # @return [Array(String, [String, nil], Hash{String => String})]
4060
+ # Uri, Body, Query string parameters
4061
+ def self.transcode_fetch_current_workspace_branch_request request_pb
4062
+ transcoder = Gapic::Rest::GrpcTranscoder.new
4063
+ .with_bindings(
4064
+ uri_method: :get,
4065
+ uri_template: "/v1beta1/{name}:fetchCurrentBranch",
4066
+ matches: [
4067
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
4068
+ ]
4069
+ )
4070
+ transcoder.transcode request_pb
4071
+ end
4072
+
3765
4073
  ##
3766
4074
  # @private
3767
4075
  #
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2023 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.