google-cloud-dataform-v1beta1 1.1.0 → 1.2.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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dataform/v1beta1/bindings_override.rb +1 -1
  3. data/lib/google/cloud/dataform/v1beta1/dataform/client.rb +515 -1
  4. data/lib/google/cloud/dataform/v1beta1/dataform/credentials.rb +1 -1
  5. data/lib/google/cloud/dataform/v1beta1/dataform/paths.rb +1 -1
  6. data/lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb +480 -1
  7. data/lib/google/cloud/dataform/v1beta1/dataform/rest/service_stub.rb +309 -1
  8. data/lib/google/cloud/dataform/v1beta1/dataform/rest.rb +1 -1
  9. data/lib/google/cloud/dataform/v1beta1/dataform.rb +1 -1
  10. data/lib/google/cloud/dataform/v1beta1/dataform_pb.rb +12 -1
  11. data/lib/google/cloud/dataform/v1beta1/dataform_services_pb.rb +11 -1
  12. data/lib/google/cloud/dataform/v1beta1/rest.rb +1 -1
  13. data/lib/google/cloud/dataform/v1beta1/version.rb +1 -1
  14. data/lib/google/cloud/dataform/v1beta1.rb +1 -1
  15. data/lib/google-cloud-dataform-v1beta1.rb +1 -1
  16. data/proto_docs/google/api/client.rb +1 -1
  17. data/proto_docs/google/api/field_behavior.rb +1 -1
  18. data/proto_docs/google/api/launch_stage.rb +1 -1
  19. data/proto_docs/google/api/resource.rb +1 -1
  20. data/proto_docs/google/cloud/dataform/v1beta1/dataform.rb +193 -1
  21. data/proto_docs/google/protobuf/any.rb +1 -1
  22. data/proto_docs/google/protobuf/duration.rb +1 -1
  23. data/proto_docs/google/protobuf/empty.rb +1 -1
  24. data/proto_docs/google/protobuf/field_mask.rb +1 -1
  25. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  26. data/proto_docs/google/rpc/status.rb +1 -1
  27. data/proto_docs/google/type/expr.rb +1 -1
  28. data/proto_docs/google/type/interval.rb +1 -1
  29. metadata +1 -1
@@ -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.
@@ -634,10 +634,33 @@ module Google
634
634
  # @return [::Boolean]
635
635
  # Optional. If set to true, workspaces will not be moved if its linked
636
636
  # Repository is moved. Instead, it will be deleted.
637
+ # @!attribute [rw] original_branch
638
+ # @return [::String]
639
+ # Optional. Input only. Immutable. The name of the default upstream branch
640
+ # for all pull/push operations in the remote repository for this workspace.
641
+ # If empty, the HEAD branch from repository will be used.
637
642
  # @!attribute [r] private_resource_metadata
638
643
  # @return [::Google::Cloud::Dataform::V1beta1::PrivateResourceMetadata]
639
644
  # Output only. Metadata indicating whether this resource is user-scoped. For
640
645
  # `Workspace` resources, the `user_scoped` field is always `true`.
646
+ # @!attribute [rw] enable_branch_management
647
+ # @return [::Boolean]
648
+ # Immutable. Controls the enablement of branch checkout for the
649
+ # workspace.
650
+ #
651
+ # When set to True, the workspace will be allowed to checkout branches.
652
+ # @!attribute [rw] depth
653
+ # @return [::Integer]
654
+ # Optional. Input only. Immutable. The maximum depth of the Git repository to
655
+ # checkout for this workspace. If defined and greater than 0, the Git
656
+ # repository will be created as a shallow clone with the given depth,
657
+ # otherwise a full clone will be performed. This field is available only for
658
+ # GitHub, Gitlab and 1p repositories with enabled branch management.
659
+ # @!attribute [r] shallow
660
+ # @return [::Boolean]
661
+ # Output only. If set to true, the workspace was created as a shallow clone.
662
+ # Will be set to true if the depth field is set to a value greater than 0,
663
+ # otherwise it will be set to false.
641
664
  class Workspace
642
665
  include ::Google::Protobuf::MessageExts
643
666
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -760,6 +783,82 @@ module Google
760
783
  extend ::Google::Protobuf::MessageExts::ClassMethods
761
784
  end
762
785
 
786
+ # `CheckoutWorkspaceBranch` request message.
787
+ # @!attribute [rw] name
788
+ # @return [::String]
789
+ # Required. The workspace resource name.
790
+ # Format:
791
+ # projects/\\{project}/locations/\\{location}/repositories/\\{repository}/workspaces/\\{workspace}
792
+ # @!attribute [rw] branch
793
+ # @return [::String]
794
+ # Required. The name of the branch in the Git repository to which the
795
+ # workspace should be checked out.
796
+ # @!attribute [rw] create_if_not_exists
797
+ # @return [::Boolean]
798
+ # Optional. If set to true and the branch does not exist, it will be created.
799
+ # Otherwise, an error will be thrown.
800
+ # @!attribute [rw] source_branch
801
+ # @return [::String]
802
+ # Optional. The name of the branch in the Git repository from which the new
803
+ # branch should be created. If left unset, the workspace's current branch
804
+ # name will be used. Accepts only branch names from FetchWorkspaceBranches
805
+ # response, and can only be set if `create_if_not_exists` is true. Oherwise,
806
+ # an error will be thrown.
807
+ class CheckoutWorkspaceBranchRequest
808
+ include ::Google::Protobuf::MessageExts
809
+ extend ::Google::Protobuf::MessageExts::ClassMethods
810
+ end
811
+
812
+ # `SyncWorkspaceRefs` request message.
813
+ # @!attribute [rw] name
814
+ # @return [::String]
815
+ # Required. The workspace resource name.
816
+ # Format:
817
+ # projects/\\{project}/locations/\\{location}/repositories/\\{repository}/workspaces/\\{workspace}
818
+ # @!attribute [rw] remote_branch_name
819
+ # @return [::String]
820
+ # Optional. The name of the branch in the Git remote to which the refs should
821
+ # be fetched for. If left unset, all remote branches will be fetched.
822
+ # @!attribute [rw] deepen
823
+ # @return [::Integer]
824
+ # Optional. Can be used to deepen the commit history of shallow clones.
825
+ # Git documentation:
826
+ # https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---deependepth
827
+ class SyncWorkspaceRefsRequest
828
+ include ::Google::Protobuf::MessageExts
829
+ extend ::Google::Protobuf::MessageExts::ClassMethods
830
+ end
831
+
832
+ # `SyncWorkspaceRefs` response message.
833
+ class SyncWorkspaceRefsResponse
834
+ include ::Google::Protobuf::MessageExts
835
+ extend ::Google::Protobuf::MessageExts::ClassMethods
836
+ end
837
+
838
+ # `DeleteBranch` request message.
839
+ # @!attribute [rw] name
840
+ # @return [::String]
841
+ # Required. The workspace resource name.
842
+ # Format:
843
+ # projects/\\{project}/locations/\\{location}/repositories/\\{repository}/workspaces/\\{workspace}
844
+ # @!attribute [rw] branch
845
+ # @return [::String]
846
+ # Required. The name of the branch in the Git repository to delete.
847
+ # @!attribute [rw] force
848
+ # @return [::Boolean]
849
+ # Optional. If set to true, any non-pushed commits on the branch will be
850
+ # deleted. Upstream branch name will be the same as the branch to delete.
851
+ class DeleteBranchRequest
852
+ include ::Google::Protobuf::MessageExts
853
+ extend ::Google::Protobuf::MessageExts::ClassMethods
854
+ end
855
+
856
+ # `DeleteBranch` response message.
857
+ class DeleteBranchResponse
858
+ include ::Google::Protobuf::MessageExts
859
+ extend ::Google::Protobuf::MessageExts::ClassMethods
860
+ end
861
+
763
862
  # `PushGitCommits` request message.
764
863
  # @!attribute [rw] name
765
864
  # @return [::String]
@@ -1614,6 +1713,11 @@ module Google
1614
1713
  # @return [::Google::Cloud::Dataform::V1beta1::PipelineConfig]
1615
1714
  # Optional. The pipeline options which defines the pipeline type and path
1616
1715
  # within the Git repository.
1716
+ # @!attribute [r] lineage_enabled
1717
+ # @return [::Boolean]
1718
+ # Output only. Whether OpenLineage events are emitted for actions in this
1719
+ # workflow. Reflects the `lineage.enabled` setting from
1720
+ # `workflow_settings.yaml`.
1617
1721
  class CodeCompilationConfig
1618
1722
  include ::Google::Protobuf::MessageExts
1619
1723
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -3572,6 +3676,94 @@ module Google
3572
3676
  end
3573
3677
  end
3574
3678
 
3679
+ # Request message for `FetchWorkspaceBranches` method.
3680
+ # @!attribute [rw] name
3681
+ # @return [::String]
3682
+ # Required. The workspace resource name.
3683
+ # Format:
3684
+ # projects/\\{project}/locations/\\{location}/repositories/\\{repository}/workspaces/\\{workspace}
3685
+ # @!attribute [rw] filter
3686
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceBranchesRequest::BranchFilter]
3687
+ # Optional. Filter for the returned list.
3688
+ # @!attribute [rw] page_size
3689
+ # @return [::Integer]
3690
+ # Optional. Maximum number of branches to return. The server may return fewer
3691
+ # items than requested. If unspecified, the server will pick an appropriate
3692
+ # default. The maximum value is 1000; values above 1000 will be coerced to
3693
+ # 1000.
3694
+ # @!attribute [rw] page_token
3695
+ # @return [::String]
3696
+ # Optional. Page token received from a previous `FetchWorkspaceBranches`
3697
+ # call. Provide this to retrieve the subsequent page.
3698
+ #
3699
+ # When paginating, all other parameters provided to `FetchWorkspaceBranches`,
3700
+ # with the exception of `page_size`, must match the call that provided the
3701
+ # page token.
3702
+ class FetchWorkspaceBranchesRequest
3703
+ include ::Google::Protobuf::MessageExts
3704
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3705
+
3706
+ # Filter for the returned list.
3707
+ module BranchFilter
3708
+ # Default value. This value is unused.
3709
+ BRANCH_FILTER_UNSPECIFIED = 0
3710
+
3711
+ # Returns local branches.
3712
+ LOCAL_ONLY = 1
3713
+
3714
+ # Returns remote branches.
3715
+ REMOTE_ONLY = 2
3716
+
3717
+ # Returns all branches.
3718
+ ALL = 3
3719
+ end
3720
+ end
3721
+
3722
+ # Contains metadata about a branch.
3723
+ # @!attribute [rw] branch_name
3724
+ # @return [::String]
3725
+ # The branch name.
3726
+ # @!attribute [rw] last_commit
3727
+ # @return [::Google::Cloud::Dataform::V1beta1::CommitLogEntry]
3728
+ # The last commit on the branch.
3729
+ class BranchMetadata
3730
+ include ::Google::Protobuf::MessageExts
3731
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3732
+ end
3733
+
3734
+ # Response message for `FetchWorkspaceBranches` method.
3735
+ # @!attribute [rw] branches
3736
+ # @return [::Array<::Google::Cloud::Dataform::V1beta1::BranchMetadata>]
3737
+ # The branches in the workspace.
3738
+ # @!attribute [rw] next_page_token
3739
+ # @return [::String]
3740
+ # A token, which can be sent as `page_token` to retrieve the next page.
3741
+ # If this field is omitted, there are no subsequent pages.
3742
+ class FetchWorkspaceBranchesResponse
3743
+ include ::Google::Protobuf::MessageExts
3744
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3745
+ end
3746
+
3747
+ # Request message for `FetchCurrentWorkspaceBranch` method.
3748
+ # @!attribute [rw] name
3749
+ # @return [::String]
3750
+ # Required. The workspace resource name.
3751
+ # Format:
3752
+ # projects/\\{project}/locations/\\{location}/repositories/\\{repository}/workspaces/\\{workspace}
3753
+ class FetchCurrentWorkspaceBranchRequest
3754
+ include ::Google::Protobuf::MessageExts
3755
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3756
+ end
3757
+
3758
+ # Response message for `FetchCurrentWorkspaceBranch` method.
3759
+ # @!attribute [rw] branch_name
3760
+ # @return [::String]
3761
+ # The name of the current branch for the workspace.
3762
+ class FetchCurrentWorkspaceBranchResponse
3763
+ include ::Google::Protobuf::MessageExts
3764
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3765
+ end
3766
+
3575
3767
  # Represents the level of detail to return for directory contents.
3576
3768
  module DirectoryContentsView
3577
3769
  # The default unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -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.
@@ -110,14 +110,15 @@ module Google
110
110
  # ) to obtain a formatter capable of generating timestamps in this format.
111
111
  # @!attribute [rw] seconds
112
112
  # @return [::Integer]
113
- # Represents seconds of UTC time since Unix epoch
114
- # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
115
- # 9999-12-31T23:59:59Z inclusive.
113
+ # Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
114
+ # be between -315576000000 and 315576000000 inclusive (which corresponds to
115
+ # 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
116
116
  # @!attribute [rw] nanos
117
117
  # @return [::Integer]
118
- # Non-negative fractions of a second at nanosecond resolution. Negative
119
- # second values with fractions must still have non-negative nanos values
120
- # that count forward in time. Must be from 0 to 999,999,999
118
+ # Non-negative fractions of a second at nanosecond resolution. This field is
119
+ # the nanosecond portion of the duration, not an alternative to seconds.
120
+ # Negative second values with fractions must still have non-negative nanos
121
+ # values that count forward in time. Must be between 0 and 999,999,999
121
122
  # inclusive.
122
123
  class Timestamp
123
124
  include ::Google::Protobuf::MessageExts
@@ -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.
@@ -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.
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.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC