Skip to content

Commit bdbedae

Browse files
feat: Automated regeneration of dataform v1beta1 client (#26043)
Auto-created at 2026-03-22 10:52:06 +0000 using the toys pull request generator.
1 parent ccbce4c commit bdbedae

6 files changed

Lines changed: 66 additions & 3 deletions

File tree

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162715,6 +162715,7 @@
162715162715
"/dataform:v1beta1/DirectoryEntry": directory_entry
162716162716
"/dataform:v1beta1/DirectoryEntry/directory": directory
162717162717
"/dataform:v1beta1/DirectoryEntry/file": file
162718+
"/dataform:v1beta1/DirectoryEntry/metadata": metadata
162718162719
"/dataform:v1beta1/DirectorySearchResult": directory_search_result
162719162720
"/dataform:v1beta1/DirectorySearchResult/path": path
162720162721
"/dataform:v1beta1/Empty": empty
@@ -162746,6 +162747,9 @@
162746162747
"/dataform:v1beta1/FileOperation/writeFile": write_file
162747162748
"/dataform:v1beta1/FileSearchResult": file_search_result
162748162749
"/dataform:v1beta1/FileSearchResult/path": path
162750+
"/dataform:v1beta1/FilesystemEntryMetadata": filesystem_entry_metadata
162751+
"/dataform:v1beta1/FilesystemEntryMetadata/sizeBytes": size_bytes
162752+
"/dataform:v1beta1/FilesystemEntryMetadata/updateTime": update_time
162749162753
"/dataform:v1beta1/Folder": folder
162750162754
"/dataform:v1beta1/Folder/containingFolder": containing_folder
162751162755
"/dataform:v1beta1/Folder/createTime": create_time
@@ -163362,6 +163366,7 @@
163362163366
"/dataform:v1beta1/dataform.projects.locations.repositories.workspaces.queryDirectoryContents/pageSize": page_size
163363163367
"/dataform:v1beta1/dataform.projects.locations.repositories.workspaces.queryDirectoryContents/pageToken": page_token
163364163368
"/dataform:v1beta1/dataform.projects.locations.repositories.workspaces.queryDirectoryContents/path": path
163369+
"/dataform:v1beta1/dataform.projects.locations.repositories.workspaces.queryDirectoryContents/view": view
163365163370
"/dataform:v1beta1/dataform.projects.locations.repositories.workspaces.queryDirectoryContents/workspace": workspace
163366163371
"/dataform:v1beta1/dataform.projects.locations.repositories.workspaces.readFile": read_project_location_repository_workspace_file
163367163372
"/dataform:v1beta1/dataform.projects.locations.repositories.workspaces.readFile/path": path

generated/google-apis-dataform_v1beta1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-dataform_v1beta1
22

3+
### v0.56.0 (2026-03-22)
4+
5+
* Regenerated from discovery document revision 20260317
6+
37
### v0.55.0 (2026-02-22)
48

59
* Regenerated from discovery document revision 20260217

generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/classes.rb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,11 @@ class DirectoryEntry
10751075
# @return [String]
10761076
attr_accessor :file
10771077

1078+
# Represents metadata for a single entry in a filesystem.
1079+
# Corresponds to the JSON property `metadata`
1080+
# @return [Google::Apis::DataformV1beta1::FilesystemEntryMetadata]
1081+
attr_accessor :metadata
1082+
10781083
def initialize(**args)
10791084
update!(**args)
10801085
end
@@ -1083,6 +1088,7 @@ def initialize(**args)
10831088
def update!(**args)
10841089
@directory = args[:directory] if args.key?(:directory)
10851090
@file = args[:file] if args.key?(:file)
1091+
@metadata = args[:metadata] if args.key?(:metadata)
10861092
end
10871093
end
10881094

@@ -1354,6 +1360,32 @@ def update!(**args)
13541360
end
13551361
end
13561362

1363+
# Represents metadata for a single entry in a filesystem.
1364+
class FilesystemEntryMetadata
1365+
include Google::Apis::Core::Hashable
1366+
1367+
# Output only. Provides the size of the entry in bytes. For directories, this
1368+
# will be 0.
1369+
# Corresponds to the JSON property `sizeBytes`
1370+
# @return [Fixnum]
1371+
attr_accessor :size_bytes
1372+
1373+
# Output only. Represents the time of the last modification of the entry.
1374+
# Corresponds to the JSON property `updateTime`
1375+
# @return [String]
1376+
attr_accessor :update_time
1377+
1378+
def initialize(**args)
1379+
update!(**args)
1380+
end
1381+
1382+
# Update properties of this object
1383+
def update!(**args)
1384+
@size_bytes = args[:size_bytes] if args.key?(:size_bytes)
1385+
@update_time = args[:update_time] if args.key?(:update_time)
1386+
end
1387+
end
1388+
13571389
# Represents a Dataform Folder. This is a resource that is used to organize
13581390
# Files and other Folders and provide hierarchical access controls.
13591391
class Folder

generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DataformV1beta1
1818
# Version of the google-apis-dataform_v1beta1 gem
19-
GEM_VERSION = "0.55.0"
19+
GEM_VERSION = "0.56.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20260217"
25+
REVISION = "20260317"
2626
end
2727
end
2828
end

generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/representations.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
274274
include Google::Apis::Core::JsonObjectSupport
275275
end
276276

277+
class FilesystemEntryMetadata
278+
class Representation < Google::Apis::Core::JsonRepresentation; end
279+
280+
include Google::Apis::Core::JsonObjectSupport
281+
end
282+
277283
class Folder
278284
class Representation < Google::Apis::Core::JsonRepresentation; end
279285

@@ -1099,6 +1105,8 @@ class DirectoryEntry
10991105
class Representation < Google::Apis::Core::JsonRepresentation
11001106
property :directory, as: 'directory'
11011107
property :file, as: 'file'
1108+
property :metadata, as: 'metadata', class: Google::Apis::DataformV1beta1::FilesystemEntryMetadata, decorator: Google::Apis::DataformV1beta1::FilesystemEntryMetadata::Representation
1109+
11021110
end
11031111
end
11041112

@@ -1190,6 +1198,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
11901198
end
11911199
end
11921200

1201+
class FilesystemEntryMetadata
1202+
# @private
1203+
class Representation < Google::Apis::Core::JsonRepresentation
1204+
property :size_bytes, :numeric_string => true, as: 'sizeBytes'
1205+
property :update_time, as: 'updateTime'
1206+
end
1207+
end
1208+
11931209
class Folder
11941210
# @private
11951211
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-dataform_v1beta1/lib/google/apis/dataform_v1beta1/service.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2603,6 +2603,11 @@ def push_workspace_git_commits(name, push_git_commits_request_object = nil, fiel
26032603
# @param [String] path
26042604
# Optional. The directory's full path including directory name, relative to the
26052605
# workspace root. If left unset, the workspace root is used.
2606+
# @param [String] view
2607+
# Optional. Specifies the metadata to return for each directory entry. If
2608+
# unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. Currently the `
2609+
# DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by CMEK-protected
2610+
# workspaces.
26062611
# @param [String] fields
26072612
# Selector specifying which fields to include in a partial response.
26082613
# @param [String] quota_user
@@ -2620,14 +2625,15 @@ def push_workspace_git_commits(name, push_git_commits_request_object = nil, fiel
26202625
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26212626
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26222627
# @raise [Google::Apis::AuthorizationError] Authorization is required
2623-
def query_project_location_repository_workspace_directory_contents(workspace, page_size: nil, page_token: nil, path: nil, fields: nil, quota_user: nil, options: nil, &block)
2628+
def query_project_location_repository_workspace_directory_contents(workspace, page_size: nil, page_token: nil, path: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
26242629
command = make_simple_command(:get, 'v1beta1/{+workspace}:queryDirectoryContents', options)
26252630
command.response_representation = Google::Apis::DataformV1beta1::QueryDirectoryContentsResponse::Representation
26262631
command.response_class = Google::Apis::DataformV1beta1::QueryDirectoryContentsResponse
26272632
command.params['workspace'] = workspace unless workspace.nil?
26282633
command.query['pageSize'] = page_size unless page_size.nil?
26292634
command.query['pageToken'] = page_token unless page_token.nil?
26302635
command.query['path'] = path unless path.nil?
2636+
command.query['view'] = view unless view.nil?
26312637
command.query['fields'] = fields unless fields.nil?
26322638
command.query['quotaUser'] = quota_user unless quota_user.nil?
26332639
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)