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 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.
@@ -97,6 +97,9 @@ module Google
97
97
  # Output only. All the metadata information that is used internally to serve
98
98
  # the resource. For example: timestamps, flags, status fields, etc. The
99
99
  # format of this field is a JSON string.
100
+ # @!attribute [rw] end_user_auth_config
101
+ # @return [::Google::Cloud::Dataform::V1beta1::Repository::EndUserAuthConfig]
102
+ # Optional. Includes configuration options for end user authentication.
100
103
  class Repository
101
104
  include ::Google::Protobuf::MessageExts
102
105
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,6 +195,15 @@ module Google
192
195
  extend ::Google::Protobuf::MessageExts::ClassMethods
193
196
  end
194
197
 
198
+ # Includes configuration options for repository end user authentication.
199
+ # @!attribute [rw] oauth_config
200
+ # @return [::Google::Cloud::Dataform::V1beta1::OAuthConfig]
201
+ # Optional. OAuth configuration for repository end user authentication.
202
+ class EndUserAuthConfig
203
+ include ::Google::Protobuf::MessageExts
204
+ extend ::Google::Protobuf::MessageExts::ClassMethods
205
+ end
206
+
195
207
  # @!attribute [rw] key
196
208
  # @return [::String]
197
209
  # @!attribute [rw] value
@@ -202,6 +214,17 @@ module Google
202
214
  end
203
215
  end
204
216
 
217
+ # OAuth configuration for end user authentication.
218
+ # @!attribute [rw] additional_oauth_scopes
219
+ # @return [::Array<::String>]
220
+ # Optional. Additional OAuth scopes to use for BigQuery executions.
221
+ # Scopes always in use:
222
+ # `https://www.googleapis.com/auth/bigquery`
223
+ class OAuthConfig
224
+ include ::Google::Protobuf::MessageExts
225
+ extend ::Google::Protobuf::MessageExts::ClassMethods
226
+ end
227
+
205
228
  # Metadata used to identify if a resource is user scoped.
206
229
  # @!attribute [r] user_scoped
207
230
  # @return [::Boolean]
@@ -634,10 +657,33 @@ module Google
634
657
  # @return [::Boolean]
635
658
  # Optional. If set to true, workspaces will not be moved if its linked
636
659
  # Repository is moved. Instead, it will be deleted.
660
+ # @!attribute [rw] original_branch
661
+ # @return [::String]
662
+ # Optional. Input only. Immutable. The name of the default upstream branch
663
+ # for all pull/push operations in the remote repository for this workspace.
664
+ # If empty, the HEAD branch from repository will be used.
637
665
  # @!attribute [r] private_resource_metadata
638
666
  # @return [::Google::Cloud::Dataform::V1beta1::PrivateResourceMetadata]
639
667
  # Output only. Metadata indicating whether this resource is user-scoped. For
640
668
  # `Workspace` resources, the `user_scoped` field is always `true`.
669
+ # @!attribute [rw] enable_branch_management
670
+ # @return [::Boolean]
671
+ # Immutable. Controls the enablement of branch checkout for the
672
+ # workspace.
673
+ #
674
+ # When set to True, the workspace will be allowed to checkout branches.
675
+ # @!attribute [rw] depth
676
+ # @return [::Integer]
677
+ # Optional. Input only. Immutable. The maximum depth of the Git repository to
678
+ # checkout for this workspace. If defined and greater than 0, the Git
679
+ # repository will be created as a shallow clone with the given depth,
680
+ # otherwise a full clone will be performed. This field is available only for
681
+ # GitHub, Gitlab and 1p repositories with enabled branch management.
682
+ # @!attribute [r] shallow
683
+ # @return [::Boolean]
684
+ # Output only. If set to true, the workspace was created as a shallow clone.
685
+ # Will be set to true if the depth field is set to a value greater than 0,
686
+ # otherwise it will be set to false.
641
687
  class Workspace
642
688
  include ::Google::Protobuf::MessageExts
643
689
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -760,6 +806,82 @@ module Google
760
806
  extend ::Google::Protobuf::MessageExts::ClassMethods
761
807
  end
762
808
 
809
+ # `CheckoutWorkspaceBranch` request message.
810
+ # @!attribute [rw] name
811
+ # @return [::String]
812
+ # Required. The workspace resource name.
813
+ # Format:
814
+ # projects/\\{project}/locations/\\{location}/repositories/\\{repository}/workspaces/\\{workspace}
815
+ # @!attribute [rw] branch
816
+ # @return [::String]
817
+ # Required. The name of the branch in the Git repository to which the
818
+ # workspace should be checked out.
819
+ # @!attribute [rw] create_if_not_exists
820
+ # @return [::Boolean]
821
+ # Optional. If set to true and the branch does not exist, it will be created.
822
+ # Otherwise, an error will be thrown.
823
+ # @!attribute [rw] source_branch
824
+ # @return [::String]
825
+ # Optional. The name of the branch in the Git repository from which the new
826
+ # branch should be created. If left unset, the workspace's current branch
827
+ # name will be used. Accepts only branch names from FetchWorkspaceBranches
828
+ # response, and can only be set if `create_if_not_exists` is true. Oherwise,
829
+ # an error will be thrown.
830
+ class CheckoutWorkspaceBranchRequest
831
+ include ::Google::Protobuf::MessageExts
832
+ extend ::Google::Protobuf::MessageExts::ClassMethods
833
+ end
834
+
835
+ # `SyncWorkspaceRefs` request message.
836
+ # @!attribute [rw] name
837
+ # @return [::String]
838
+ # Required. The workspace resource name.
839
+ # Format:
840
+ # projects/\\{project}/locations/\\{location}/repositories/\\{repository}/workspaces/\\{workspace}
841
+ # @!attribute [rw] remote_branch_name
842
+ # @return [::String]
843
+ # Optional. The name of the branch in the Git remote to which the refs should
844
+ # be fetched for. If left unset, all remote branches will be fetched.
845
+ # @!attribute [rw] deepen
846
+ # @return [::Integer]
847
+ # Optional. Can be used to deepen the commit history of shallow clones.
848
+ # Git documentation:
849
+ # https://git-scm.com/docs/git-fetch#Documentation/git-fetch.txt---deependepth
850
+ class SyncWorkspaceRefsRequest
851
+ include ::Google::Protobuf::MessageExts
852
+ extend ::Google::Protobuf::MessageExts::ClassMethods
853
+ end
854
+
855
+ # `SyncWorkspaceRefs` response message.
856
+ class SyncWorkspaceRefsResponse
857
+ include ::Google::Protobuf::MessageExts
858
+ extend ::Google::Protobuf::MessageExts::ClassMethods
859
+ end
860
+
861
+ # `DeleteBranch` request message.
862
+ # @!attribute [rw] name
863
+ # @return [::String]
864
+ # Required. The workspace resource name.
865
+ # Format:
866
+ # projects/\\{project}/locations/\\{location}/repositories/\\{repository}/workspaces/\\{workspace}
867
+ # @!attribute [rw] branch
868
+ # @return [::String]
869
+ # Required. The name of the branch in the Git repository to delete.
870
+ # @!attribute [rw] force
871
+ # @return [::Boolean]
872
+ # Optional. If set to true, any non-pushed commits on the branch will be
873
+ # deleted. Upstream branch name will be the same as the branch to delete.
874
+ class DeleteBranchRequest
875
+ include ::Google::Protobuf::MessageExts
876
+ extend ::Google::Protobuf::MessageExts::ClassMethods
877
+ end
878
+
879
+ # `DeleteBranch` response message.
880
+ class DeleteBranchResponse
881
+ include ::Google::Protobuf::MessageExts
882
+ extend ::Google::Protobuf::MessageExts::ClassMethods
883
+ end
884
+
763
885
  # `PushGitCommits` request message.
764
886
  # @!attribute [rw] name
765
887
  # @return [::String]
@@ -1614,6 +1736,11 @@ module Google
1614
1736
  # @return [::Google::Cloud::Dataform::V1beta1::PipelineConfig]
1615
1737
  # Optional. The pipeline options which defines the pipeline type and path
1616
1738
  # within the Git repository.
1739
+ # @!attribute [r] lineage_enabled
1740
+ # @return [::Boolean]
1741
+ # Output only. Whether OpenLineage events are emitted for actions in this
1742
+ # workflow. Reflects the `lineage.enabled` setting from
1743
+ # `workflow_settings.yaml`.
1617
1744
  class CodeCompilationConfig
1618
1745
  include ::Google::Protobuf::MessageExts
1619
1746
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2349,6 +2476,10 @@ module Google
2349
2476
  # @!attribute [rw] service_account
2350
2477
  # @return [::String]
2351
2478
  # Optional. The service account to run workflow invocations under.
2479
+ # @!attribute [rw] end_user_auth_config
2480
+ # @return [::Google::Cloud::Dataform::V1beta1::InvocationConfig::EndUserAuthenticationConfig]
2481
+ # Optional. Configuration for end user authentication.
2482
+ # Note that this should not be set when `service_account` is used.
2352
2483
  # @!attribute [rw] query_priority
2353
2484
  # @return [::Google::Cloud::Dataform::V1beta1::InvocationConfig::QueryPriority]
2354
2485
  # Optional. Specifies the priority for query execution in BigQuery.
@@ -2358,6 +2489,18 @@ module Google
2358
2489
  include ::Google::Protobuf::MessageExts
2359
2490
  extend ::Google::Protobuf::MessageExts::ClassMethods
2360
2491
 
2492
+ # Includes configuration options for end user authentication.
2493
+ # @!attribute [r] user_email
2494
+ # @return [::String]
2495
+ # Output only. Email address of the user to run workflow invocations under.
2496
+ # @!attribute [rw] oauth_config
2497
+ # @return [::Google::Cloud::Dataform::V1beta1::OAuthConfig]
2498
+ # Optional. OAuth configuration for end user authentication.
2499
+ class EndUserAuthenticationConfig
2500
+ include ::Google::Protobuf::MessageExts
2501
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2502
+ end
2503
+
2361
2504
  # Types of priority for query execution in BigQuery.
2362
2505
  module QueryPriority
2363
2506
  # Default value. This value is unused.
@@ -3572,6 +3715,94 @@ module Google
3572
3715
  end
3573
3716
  end
3574
3717
 
3718
+ # Request message for `FetchWorkspaceBranches` method.
3719
+ # @!attribute [rw] name
3720
+ # @return [::String]
3721
+ # Required. The workspace resource name.
3722
+ # Format:
3723
+ # projects/\\{project}/locations/\\{location}/repositories/\\{repository}/workspaces/\\{workspace}
3724
+ # @!attribute [rw] filter
3725
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchWorkspaceBranchesRequest::BranchFilter]
3726
+ # Optional. Filter for the returned list.
3727
+ # @!attribute [rw] page_size
3728
+ # @return [::Integer]
3729
+ # Optional. Maximum number of branches to return. The server may return fewer
3730
+ # items than requested. If unspecified, the server will pick an appropriate
3731
+ # default. The maximum value is 1000; values above 1000 will be coerced to
3732
+ # 1000.
3733
+ # @!attribute [rw] page_token
3734
+ # @return [::String]
3735
+ # Optional. Page token received from a previous `FetchWorkspaceBranches`
3736
+ # call. Provide this to retrieve the subsequent page.
3737
+ #
3738
+ # When paginating, all other parameters provided to `FetchWorkspaceBranches`,
3739
+ # with the exception of `page_size`, must match the call that provided the
3740
+ # page token.
3741
+ class FetchWorkspaceBranchesRequest
3742
+ include ::Google::Protobuf::MessageExts
3743
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3744
+
3745
+ # Filter for the returned list.
3746
+ module BranchFilter
3747
+ # Default value. This value is unused.
3748
+ BRANCH_FILTER_UNSPECIFIED = 0
3749
+
3750
+ # Returns local branches.
3751
+ LOCAL_ONLY = 1
3752
+
3753
+ # Returns remote branches.
3754
+ REMOTE_ONLY = 2
3755
+
3756
+ # Returns all branches.
3757
+ ALL = 3
3758
+ end
3759
+ end
3760
+
3761
+ # Contains metadata about a branch.
3762
+ # @!attribute [rw] branch_name
3763
+ # @return [::String]
3764
+ # The branch name.
3765
+ # @!attribute [rw] last_commit
3766
+ # @return [::Google::Cloud::Dataform::V1beta1::CommitLogEntry]
3767
+ # The last commit on the branch.
3768
+ class BranchMetadata
3769
+ include ::Google::Protobuf::MessageExts
3770
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3771
+ end
3772
+
3773
+ # Response message for `FetchWorkspaceBranches` method.
3774
+ # @!attribute [rw] branches
3775
+ # @return [::Array<::Google::Cloud::Dataform::V1beta1::BranchMetadata>]
3776
+ # The branches in the workspace.
3777
+ # @!attribute [rw] next_page_token
3778
+ # @return [::String]
3779
+ # A token, which can be sent as `page_token` to retrieve the next page.
3780
+ # If this field is omitted, there are no subsequent pages.
3781
+ class FetchWorkspaceBranchesResponse
3782
+ include ::Google::Protobuf::MessageExts
3783
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3784
+ end
3785
+
3786
+ # Request message for `FetchCurrentWorkspaceBranch` method.
3787
+ # @!attribute [rw] name
3788
+ # @return [::String]
3789
+ # Required. The workspace resource name.
3790
+ # Format:
3791
+ # projects/\\{project}/locations/\\{location}/repositories/\\{repository}/workspaces/\\{workspace}
3792
+ class FetchCurrentWorkspaceBranchRequest
3793
+ include ::Google::Protobuf::MessageExts
3794
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3795
+ end
3796
+
3797
+ # Response message for `FetchCurrentWorkspaceBranch` method.
3798
+ # @!attribute [rw] branch_name
3799
+ # @return [::String]
3800
+ # The name of the current branch for the workspace.
3801
+ class FetchCurrentWorkspaceBranchResponse
3802
+ include ::Google::Protobuf::MessageExts
3803
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3804
+ end
3805
+
3575
3806
  # Represents the level of detail to return for directory contents.
3576
3807
  module DirectoryContentsView
3577
3808
  # 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.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -79,11 +79,10 @@ dependencies:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
81
  version: '1.3'
82
- description: Dataform is a service for data analysts to develop, test, version control,
83
- and schedule complex SQL workflows for data transformation in BigQuery. Note that
84
- google-cloud-dataform-v1beta1 is a version-specific client library. For most uses,
85
- we recommend installing the main client library google-cloud-dataform instead. See
86
- the readme for more details.
82
+ description: Service to develop, version control, and operationalize SQL pipelines
83
+ in BigQuery. Note that google-cloud-dataform-v1beta1 is a version-specific client
84
+ library. For most uses, we recommend installing the main client library google-cloud-dataform
85
+ instead. See the readme for more details.
87
86
  email: googleapis-packages@google.com
88
87
  executables: []
89
88
  extensions: []
@@ -109,17 +108,6 @@ files:
109
108
  - lib/google/cloud/dataform/v1beta1/dataform_services_pb.rb
110
109
  - lib/google/cloud/dataform/v1beta1/rest.rb
111
110
  - lib/google/cloud/dataform/v1beta1/version.rb
112
- - lib/google/longrunning.rb
113
- - lib/google/longrunning/bindings_override.rb
114
- - lib/google/longrunning/operations.rb
115
- - lib/google/longrunning/operations/client.rb
116
- - lib/google/longrunning/operations/credentials.rb
117
- - lib/google/longrunning/operations/operations.rb
118
- - lib/google/longrunning/operations/rest.rb
119
- - lib/google/longrunning/operations/rest/client.rb
120
- - lib/google/longrunning/operations/rest/operations.rb
121
- - lib/google/longrunning/operations/rest/service_stub.rb
122
- - lib/google/longrunning/rest.rb
123
111
  - proto_docs/README.md
124
112
  - proto_docs/google/api/client.rb
125
113
  - proto_docs/google/api/field_behavior.rb
@@ -1,71 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2026 Google LLC
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # https://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
-
19
- require "gapic/rest"
20
-
21
- module Google
22
- ##
23
- # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
24
- #
25
- # require "google/longrunning/rest"
26
- # client = ::Google::Longrunning::Operations::Rest::Client.new
27
- #
28
- module Longrunning
29
- ##
30
- # @private
31
- # Initialize the mixin bindings configuration
32
- #
33
- def self.configure
34
- @configure ||= begin
35
- namespace = ["Google"]
36
- parent_config = while namespace.any?
37
- parent_name = namespace.join "::"
38
- parent_const = const_get parent_name
39
- break parent_const.configure if parent_const.respond_to? :configure
40
- namespace.pop
41
- end
42
-
43
- default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config
44
- default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
45
- Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
46
- uri_method: :get,
47
- uri_template: "/v1beta1/{name}",
48
- matches: [
49
- ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
50
- ],
51
- body: nil
52
- )
53
- ]
54
- default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
55
-
56
- Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
57
- uri_method: :get,
58
- uri_template: "/v1beta1/{name}/locations",
59
- matches: [
60
- ["name", %r{^projects/[^/]+/?$}, false]
61
- ],
62
- body: nil
63
- )
64
- ]
65
- default_config
66
- end
67
- yield @configure if block_given?
68
- @configure
69
- end
70
- end
71
- end