Skip to content

Commit 9ab4467

Browse files
feat: update gapic-common dependency to 1.3 and document retry jitter (#32442)
* feat: update gapic-common dependency to 1.3 and document retry jitter docs: list Ruby 3.2+ as supported versions in README fix: rename client variable in tests PiperOrigin-RevId: 930120621 Source-Link: googleapis/googleapis@f7b1717 Source-Link: googleapis/googleapis-gen@e38df62 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLXYxYmV0YTEvLk93bEJvdC55YW1sIiwiaCI6ImUzOGRmNjI4NWQ5MTk4ZmU2OTFlNmQ4YjUzZTc2ZmI1MWNkZGY1Y2MifQ== chore: Add google-cloud-common dependency to google-cloud-dataform-v1beta1 PiperOrigin-RevId: 897388845 Source-Link: googleapis/googleapis@4755f8c Source-Link: googleapis/googleapis-gen@43c2b07 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLXYxYmV0YTEvLk93bEJvdC55YW1sIiwiaCI6IjQzYzJiMDczMjlkZTRkOGQ5OGJhNWZhNWYzYTc3YjEyZTg5OTQwNmUifQ== docs: update SelectiveGapicGeneration usage doc PiperOrigin-RevId: 892649773 Source-Link: googleapis/googleapis@06a20b2 Source-Link: googleapis/googleapis-gen@d9ae664 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLXYxYmV0YTEvLk93bEJvdC55YW1sIiwiaCI6ImQ5YWU2NjQ1MWY4MWM5ZGY5OWRiZGM5YjIzYmQ3NWQwMDczODBmNGUifQ== feat: publish client batch config schema feat: publish new error reasons docs: fix documentation formatting docs: update various comments docs: update license year PiperOrigin-RevId: 889289393 Source-Link: googleapis/googleapis@94bc991 Source-Link: googleapis/googleapis-gen@db7143a Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLXYxYmV0YTEvLk93bEJvdC55YW1sIiwiaCI6ImRiNzE0M2EzMzhhN2M3NTgzOWI0Njk4Y2IzZWE2ZjEwMTNiNGMzYzcifQ== feat: Add irb as explicit dependency for Ruby 4.0 compatibility PiperOrigin-RevId: 885280435 Source-Link: googleapis/googleapis@f29d228 Source-Link: googleapis/googleapis-gen@fca7136 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLXYxYmV0YTEvLk93bEJvdC55YW1sIiwiaCI6ImZjYTcxMzZjMWMwYWE5MDBjYTRmYTBhNGJhMTRmMWFlYjI5YjBiZmQifQ== feat: Update minimum Ruby to v3.2 and required dependencies for Ruby v4.0 PiperOrigin-RevId: 883373063 Source-Link: googleapis/googleapis@e1443bf Source-Link: googleapis/googleapis-gen@8ecc70c Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLXYxYmV0YTEvLk93bEJvdC55YW1sIiwiaCI6IjhlY2M3MGMyOTIyY2ZjNDY0OWEwNDU0YmM4ZDJlMWYzYTU4YTlkNzgifQ== feat: upgrade protobuf from v25.7 to v31.0 PiperOrigin-RevId: 881595129 Source-Link: googleapis/googleapis@d90d23f Source-Link: googleapis/googleapis-gen@f1a9443 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLXYxYmV0YTEvLk93bEJvdC55YW1sIiwiaCI6ImYxYTk0NDMzNjY0Zjg2NTBhNGFjYjczZDYwOWI5NDNkMmVjYmI2ZTAifQ== feat: Update GCP Client Libraries in v1beta1 to support Folders, TeamFolders, and other relevant APIs The v1beta1 API now includes support for Folders and TeamFolders, allowing users to organize repositories and files hierarchically and manage access controls. New Features: - Added TeamFolder resource and methods: CreateTeamFolder, GetTeamFolder, UpdateTeamFolder, DeleteTeamFolder QueryTeamFolderContents to list folder contents. SearchTeamFolders to search for TeamFolders. - Added Folder resource and methods: CreateFolder, GetFolder, UpdateFolder, DeleteFolder QueryFolderContents to list folder contents. Added MoveFolder to move Folders between TeamFolders, other Folders, or the user root folder. - Added MoveRepository to move Repositories between TeamFolders, Folders, or the user root folder. - Added QueryUserRootContents to list contents of a user's root folder. Repository resource now includes containing_folder and team_folder_name fields to indicate its location within the folder hierarchy. - IAM methods (GetIamPolicy, SetIamPolicy, TestIamPermissions) now support Folder and TeamFolder resources for access control management docs: A comment for field `force` in message `.google.cloud.dataform.v1beta1.DeleteRepositoryRequest` is changed PiperOrigin-RevId: 868182714 Source-Link: googleapis/googleapis@e1c1073 Source-Link: googleapis/googleapis-gen@fcbd8c7 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRhdGFmb3JtLXYxYmV0YTEvLk93bEJvdC55YW1sIiwiaCI6ImZjYmQ4YzdlMmU4ODA2ZjM4YTQ0NDIwNWFiMGY5NDU4OGI5NDlkZjIifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 46441f9 commit 9ab4467

64 files changed

Lines changed: 18556 additions & 1379 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

google-cloud-dataform-v1beta1/.owlbot-manifest.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,34 @@
1919
"lib/google/cloud/dataform/v1beta1/dataform.rb",
2020
"lib/google/cloud/dataform/v1beta1/dataform/client.rb",
2121
"lib/google/cloud/dataform/v1beta1/dataform/credentials.rb",
22+
"lib/google/cloud/dataform/v1beta1/dataform/operations.rb",
2223
"lib/google/cloud/dataform/v1beta1/dataform/paths.rb",
2324
"lib/google/cloud/dataform/v1beta1/dataform/rest.rb",
2425
"lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb",
26+
"lib/google/cloud/dataform/v1beta1/dataform/rest/operations.rb",
2527
"lib/google/cloud/dataform/v1beta1/dataform/rest/service_stub.rb",
2628
"lib/google/cloud/dataform/v1beta1/dataform_pb.rb",
2729
"lib/google/cloud/dataform/v1beta1/dataform_services_pb.rb",
2830
"lib/google/cloud/dataform/v1beta1/rest.rb",
2931
"lib/google/cloud/dataform/v1beta1/version.rb",
32+
"lib/google/longrunning.rb",
33+
"lib/google/longrunning/bindings_override.rb",
34+
"lib/google/longrunning/operations.rb",
35+
"lib/google/longrunning/operations/client.rb",
36+
"lib/google/longrunning/operations/credentials.rb",
37+
"lib/google/longrunning/operations/operations.rb",
38+
"lib/google/longrunning/operations/rest.rb",
39+
"lib/google/longrunning/operations/rest/client.rb",
40+
"lib/google/longrunning/operations/rest/operations.rb",
41+
"lib/google/longrunning/operations/rest/service_stub.rb",
42+
"lib/google/longrunning/rest.rb",
3043
"proto_docs/README.md",
3144
"proto_docs/google/api/client.rb",
3245
"proto_docs/google/api/field_behavior.rb",
3346
"proto_docs/google/api/launch_stage.rb",
3447
"proto_docs/google/api/resource.rb",
3548
"proto_docs/google/cloud/dataform/v1beta1/dataform.rb",
49+
"proto_docs/google/longrunning/operations.rb",
3650
"proto_docs/google/protobuf/any.rb",
3751
"proto_docs/google/protobuf/duration.rb",
3852
"proto_docs/google/protobuf/empty.rb",
@@ -47,13 +61,17 @@
4761
"snippets/dataform/commit_workspace_changes.rb",
4862
"snippets/dataform/compute_repository_access_token_status.rb",
4963
"snippets/dataform/create_compilation_result.rb",
64+
"snippets/dataform/create_folder.rb",
5065
"snippets/dataform/create_release_config.rb",
5166
"snippets/dataform/create_repository.rb",
67+
"snippets/dataform/create_team_folder.rb",
5268
"snippets/dataform/create_workflow_config.rb",
5369
"snippets/dataform/create_workflow_invocation.rb",
5470
"snippets/dataform/create_workspace.rb",
71+
"snippets/dataform/delete_folder.rb",
5572
"snippets/dataform/delete_release_config.rb",
5673
"snippets/dataform/delete_repository.rb",
74+
"snippets/dataform/delete_team_folder.rb",
5775
"snippets/dataform/delete_workflow_config.rb",
5876
"snippets/dataform/delete_workflow_invocation.rb",
5977
"snippets/dataform/delete_workspace.rb",
@@ -64,8 +82,11 @@
6482
"snippets/dataform/fetch_repository_history.rb",
6583
"snippets/dataform/get_compilation_result.rb",
6684
"snippets/dataform/get_config.rb",
85+
"snippets/dataform/get_folder.rb",
86+
"snippets/dataform/get_iam_policy.rb",
6787
"snippets/dataform/get_release_config.rb",
6888
"snippets/dataform/get_repository.rb",
89+
"snippets/dataform/get_team_folder.rb",
6990
"snippets/dataform/get_workflow_config.rb",
7091
"snippets/dataform/get_workflow_invocation.rb",
7192
"snippets/dataform/get_workspace.rb",
@@ -79,27 +100,47 @@
79100
"snippets/dataform/make_directory.rb",
80101
"snippets/dataform/move_directory.rb",
81102
"snippets/dataform/move_file.rb",
103+
"snippets/dataform/move_folder.rb",
104+
"snippets/dataform/move_repository.rb",
82105
"snippets/dataform/pull_git_commits.rb",
83106
"snippets/dataform/push_git_commits.rb",
84107
"snippets/dataform/query_compilation_result_actions.rb",
85108
"snippets/dataform/query_directory_contents.rb",
109+
"snippets/dataform/query_folder_contents.rb",
86110
"snippets/dataform/query_repository_directory_contents.rb",
111+
"snippets/dataform/query_team_folder_contents.rb",
112+
"snippets/dataform/query_user_root_contents.rb",
87113
"snippets/dataform/query_workflow_invocation_actions.rb",
88114
"snippets/dataform/read_file.rb",
89115
"snippets/dataform/read_repository_file.rb",
90116
"snippets/dataform/remove_directory.rb",
91117
"snippets/dataform/remove_file.rb",
92118
"snippets/dataform/reset_workspace_changes.rb",
93119
"snippets/dataform/search_files.rb",
120+
"snippets/dataform/search_team_folders.rb",
121+
"snippets/dataform/set_iam_policy.rb",
122+
"snippets/dataform/test_iam_permissions.rb",
94123
"snippets/dataform/update_config.rb",
124+
"snippets/dataform/update_folder.rb",
95125
"snippets/dataform/update_release_config.rb",
96126
"snippets/dataform/update_repository.rb",
127+
"snippets/dataform/update_team_folder.rb",
97128
"snippets/dataform/update_workflow_config.rb",
98129
"snippets/dataform/write_file.rb",
130+
"snippets/operations/cancel_operation.rb",
131+
"snippets/operations/delete_operation.rb",
132+
"snippets/operations/get_operation.rb",
133+
"snippets/operations/list_operations.rb",
134+
"snippets/operations/wait_operation.rb",
99135
"snippets/snippet_metadata_google.cloud.dataform.v1beta1.json",
136+
"snippets/snippet_metadata_google.longrunning.json",
137+
"test/google/cloud/dataform/v1beta1/dataform_operations_test.rb",
100138
"test/google/cloud/dataform/v1beta1/dataform_paths_test.rb",
101139
"test/google/cloud/dataform/v1beta1/dataform_rest_test.rb",
102140
"test/google/cloud/dataform/v1beta1/dataform_test.rb",
141+
"test/google/longrunning/operations_operations_test.rb",
142+
"test/google/longrunning/operations_rest_test.rb",
143+
"test/google/longrunning/operations_test.rb",
103144
"test/helper.rb"
104145
],
105146
"static": [

google-cloud-dataform-v1beta1/AUTHENTICATION.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
5656
```ruby
5757
require "google/cloud/dataform/v1beta1"
5858

59-
client = ::Google::Cloud::Dataform::V1beta1::Dataform::Client.new do |config|
59+
client = ::Google::Longrunning::Operations::Client.new do |config|
6060
config.credentials = "path/to/credentialfile.json"
6161
end
6262
```
@@ -66,11 +66,11 @@ To configure a credentials file globally for all clients:
6666
```ruby
6767
require "google/cloud/dataform/v1beta1"
6868

69-
::Google::Cloud::Dataform::V1beta1::Dataform::Client.configure do |config|
69+
::Google::Longrunning::Operations::Client.configure do |config|
7070
config.credentials = "path/to/credentialfile.json"
7171
end
7272

73-
client = ::Google::Cloud::Dataform::V1beta1::Dataform::Client.new
73+
client = ::Google::Longrunning::Operations::Client.new
7474
```
7575

7676
### Environment Variables
@@ -100,7 +100,7 @@ require "google/cloud/dataform/v1beta1"
100100

101101
ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"
102102

103-
client = ::Google::Cloud::Dataform::V1beta1::Dataform::Client.new
103+
client = ::Google::Longrunning::Operations::Client.new
104104
```
105105

106106
### Local ADC file

google-cloud-dataform-v1beta1/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ In order to use this library, you first need to go through the following steps:
3232
```ruby
3333
require "google/cloud/dataform/v1beta1"
3434

35-
client = ::Google::Cloud::Dataform::V1beta1::Dataform::Client.new
36-
request = ::Google::Cloud::Dataform::V1beta1::ListRepositoriesRequest.new # (request fields as keyword arguments...)
37-
response = client.list_repositories request
35+
client = ::Google::Longrunning::Operations::Client.new
36+
request = ::Google::Longrunning::ListOperationsRequest.new # (request fields as keyword arguments...)
37+
response = client.list_operations request
3838
```
3939

4040
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dataform-v1beta1/latest)
@@ -75,7 +75,7 @@ constructing a client object. For example:
7575
require "google/cloud/dataform/v1beta1"
7676
require "logger"
7777

78-
client = ::Google::Cloud::Dataform::V1beta1::Dataform::Client.new do |config|
78+
client = ::Google::Longrunning::Operations::Client.new do |config|
7979
config.logger = Logger.new "my-app.log"
8080
end
8181
```
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
8686

8787
## Supported Ruby Versions
8888

89-
This library is supported on Ruby 3.0+.
89+
This library is supported on Ruby 3.2+.
9090

9191
Google provides official support for Ruby versions that are actively supported
9292
by Ruby Core—that is, Ruby versions that are either in normal maintenance or

google-cloud-dataform-v1beta1/Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ task :acceptance, :project, :keyfile do |t, args|
5757
if project.nil? || keyfile.nil?
5858
fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance"
5959
end
60-
require "google/cloud/dataform/v1beta1/dataform/credentials"
61-
::Google::Cloud::Dataform::V1beta1::Dataform::Credentials.env_vars.each do |path|
60+
require "google/longrunning/operations/credentials"
61+
::Google::Longrunning::Operations::Credentials.env_vars.each do |path|
6262
ENV[path] = nil
6363
end
6464
ENV["GOOGLE_CLOUD_PROJECT"] = project

google-cloud-dataform-v1beta1/gapic_metadata.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,71 @@
1010
"grpc": {
1111
"libraryClient": "::Google::Cloud::Dataform::V1beta1::Dataform::Client",
1212
"rpcs": {
13+
"GetTeamFolder": {
14+
"methods": [
15+
"get_team_folder"
16+
]
17+
},
18+
"CreateTeamFolder": {
19+
"methods": [
20+
"create_team_folder"
21+
]
22+
},
23+
"UpdateTeamFolder": {
24+
"methods": [
25+
"update_team_folder"
26+
]
27+
},
28+
"DeleteTeamFolder": {
29+
"methods": [
30+
"delete_team_folder"
31+
]
32+
},
33+
"QueryTeamFolderContents": {
34+
"methods": [
35+
"query_team_folder_contents"
36+
]
37+
},
38+
"SearchTeamFolders": {
39+
"methods": [
40+
"search_team_folders"
41+
]
42+
},
43+
"GetFolder": {
44+
"methods": [
45+
"get_folder"
46+
]
47+
},
48+
"CreateFolder": {
49+
"methods": [
50+
"create_folder"
51+
]
52+
},
53+
"UpdateFolder": {
54+
"methods": [
55+
"update_folder"
56+
]
57+
},
58+
"DeleteFolder": {
59+
"methods": [
60+
"delete_folder"
61+
]
62+
},
63+
"QueryFolderContents": {
64+
"methods": [
65+
"query_folder_contents"
66+
]
67+
},
68+
"QueryUserRootContents": {
69+
"methods": [
70+
"query_user_root_contents"
71+
]
72+
},
73+
"MoveFolder": {
74+
"methods": [
75+
"move_folder"
76+
]
77+
},
1378
"ListRepositories": {
1479
"methods": [
1580
"list_repositories"
@@ -35,6 +100,11 @@
35100
"delete_repository"
36101
]
37102
},
103+
"MoveRepository": {
104+
"methods": [
105+
"move_repository"
106+
]
107+
},
38108
"CommitRepositoryChanges": {
39109
"methods": [
40110
"commit_repository_changes"
@@ -279,6 +349,21 @@
279349
"methods": [
280350
"update_config"
281351
]
352+
},
353+
"GetIamPolicy": {
354+
"methods": [
355+
"get_iam_policy"
356+
]
357+
},
358+
"SetIamPolicy": {
359+
"methods": [
360+
"set_iam_policy"
361+
]
362+
},
363+
"TestIamPermissions": {
364+
"methods": [
365+
"test_iam_permissions"
366+
]
282367
}
283368
}
284369
}

google-cloud-dataform-v1beta1/google-cloud-dataform-v1beta1.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
2323

2424
gem.required_ruby_version = ">= 3.2"
2525

26-
gem.add_dependency "gapic-common", "~> 1.2"
26+
gem.add_dependency "gapic-common", "~> 1.3"
2727
gem.add_dependency "google-cloud-common", "~> 1.9"
2828
gem.add_dependency "google-cloud-errors", "~> 1.0"
2929
gem.add_dependency "google-cloud-location", "~> 1.0"

google-cloud-dataform-v1beta1/lib/google-cloud-dataform-v1beta1.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919
# This gem does not autoload during Bundler.require. To load this gem,
2020
# issue explicit require statements for the packages desired, e.g.:
2121
# require "google/cloud/dataform/v1beta1"
22+
# require "google/longrunning"

google-cloud-dataform-v1beta1/lib/google/cloud/dataform/v1beta1/bindings_override.rb

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -64,63 +64,6 @@ def self.configure
6464
body: nil
6565
)
6666
]
67-
default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
68-
69-
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
70-
uri_method: :get,
71-
uri_template: "/v1beta1/{resource}:getIamPolicy",
72-
matches: [
73-
["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
74-
],
75-
body: nil
76-
),
77-
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
78-
uri_method: :get,
79-
uri_template: "/v1beta1/{resource}:getIamPolicy",
80-
matches: [
81-
["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
82-
],
83-
body: nil
84-
)
85-
]
86-
default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
87-
88-
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
89-
uri_method: :post,
90-
uri_template: "/v1beta1/{resource}:setIamPolicy",
91-
matches: [
92-
["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
93-
],
94-
body: "*"
95-
),
96-
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
97-
uri_method: :post,
98-
uri_template: "/v1beta1/{resource}:setIamPolicy",
99-
matches: [
100-
["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
101-
],
102-
body: "*"
103-
)
104-
]
105-
default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
106-
107-
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
108-
uri_method: :post,
109-
uri_template: "/v1beta1/{resource}:testIamPermissions",
110-
matches: [
111-
["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
112-
],
113-
body: "*"
114-
),
115-
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
116-
uri_method: :post,
117-
uri_template: "/v1beta1/{resource}:testIamPermissions",
118-
matches: [
119-
["resource", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
120-
],
121-
body: "*"
122-
)
123-
]
12467
default_config
12568
end
12669
yield @configure if block_given?

google-cloud-dataform-v1beta1/lib/google/cloud/dataform/v1beta1/dataform.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
require "google/cloud/dataform/v1beta1/dataform/credentials"
2626
require "google/cloud/dataform/v1beta1/dataform/paths"
27+
require "google/cloud/dataform/v1beta1/dataform/operations"
2728
require "google/cloud/dataform/v1beta1/dataform/client"
2829
require "google/cloud/dataform/v1beta1/dataform/rest"
2930

0 commit comments

Comments
 (0)