google-apis-dataform_v1beta1 0.10.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5cd064b1cef4e2dfa144f57a4aab14a54f118322255d8f43ff6518428c2ce23
4
- data.tar.gz: d76753e092526b4f056baf5f2b3fa51df57c5f8c6007fd2cbcf30ed7046ad960
3
+ metadata.gz: 9279c5ac240bf1c6bb74b75d7a75662a98b3328c5c8c3b13a5fee3c4e4f6829b
4
+ data.tar.gz: 522d544883fc56115c91cb5ad1bf1edafd0a10da9f84caf854a8469939060c97
5
5
  SHA512:
6
- metadata.gz: 21c3f0992070fa4230729a9ef6667ae1f151c0bec4cc0e357683f4b7915f7864d97c4eeb2c15af11b5a5f5edf0207c9602ec9cb4ad7476a5e215a668cc577bd7
7
- data.tar.gz: a3b9caab8ba19680b22226e943e9005b6fb4421af11d7e09de024f4c8ab787dfe8958b70011d4ea437db8ae9397216baafb730241bcba005730cce6010391692
6
+ metadata.gz: 555b966d8f2f7bf21b95ed13569ad3075e7e687529bb39674398acc5d5910a8e87e23b7e5e456cb0f1fbfc700405b22d337c8ebf55f5573783d998db6a4a14a2
7
+ data.tar.gz: ad658d32d2fc9a1c0f7c0f2485e3ed94aefaf42d5385e2e3773b23bd56a2e416b2cc50f6ab5f1a77c64055611db9a3c23ed5a6b5667a34fead989e5ca969c232
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-dataform_v1beta1
2
2
 
3
+ ### v0.12.0 (2023-08-03)
4
+
5
+ * Regenerated from discovery document revision 20230722
6
+
7
+ ### v0.11.0 (2023-07-16)
8
+
9
+ * Regenerated from discovery document revision 20230707
10
+
3
11
  ### v0.10.0 (2023-06-25)
4
12
 
5
13
  * Regenerated from discovery document revision 20230616
@@ -305,6 +305,102 @@ module Google
305
305
  end
306
306
  end
307
307
 
308
+ # Represents a single commit log.
309
+ class CommitLogEntry
310
+ include Google::Apis::Core::Hashable
311
+
312
+ # Represents the author of a Git commit.
313
+ # Corresponds to the JSON property `author`
314
+ # @return [Google::Apis::DataformV1beta1::CommitAuthor]
315
+ attr_accessor :author
316
+
317
+ # The commit message for this commit log entry.
318
+ # Corresponds to the JSON property `commitMessage`
319
+ # @return [String]
320
+ attr_accessor :commit_message
321
+
322
+ # The commit SHA for this commit log entry.
323
+ # Corresponds to the JSON property `commitSha`
324
+ # @return [String]
325
+ attr_accessor :commit_sha
326
+
327
+ # Commit timestamp.
328
+ # Corresponds to the JSON property `commitTime`
329
+ # @return [String]
330
+ attr_accessor :commit_time
331
+
332
+ def initialize(**args)
333
+ update!(**args)
334
+ end
335
+
336
+ # Update properties of this object
337
+ def update!(**args)
338
+ @author = args[:author] if args.key?(:author)
339
+ @commit_message = args[:commit_message] if args.key?(:commit_message)
340
+ @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
341
+ @commit_time = args[:commit_time] if args.key?(:commit_time)
342
+ end
343
+ end
344
+
345
+ # Represents a Dataform Git commit.
346
+ class CommitMetadata
347
+ include Google::Apis::Core::Hashable
348
+
349
+ # Represents the author of a Git commit.
350
+ # Corresponds to the JSON property `author`
351
+ # @return [Google::Apis::DataformV1beta1::CommitAuthor]
352
+ attr_accessor :author
353
+
354
+ # Optional. The commit's message.
355
+ # Corresponds to the JSON property `commitMessage`
356
+ # @return [String]
357
+ attr_accessor :commit_message
358
+
359
+ def initialize(**args)
360
+ update!(**args)
361
+ end
362
+
363
+ # Update properties of this object
364
+ def update!(**args)
365
+ @author = args[:author] if args.key?(:author)
366
+ @commit_message = args[:commit_message] if args.key?(:commit_message)
367
+ end
368
+ end
369
+
370
+ # `CommitRepositoryChanges` request message.
371
+ class CommitRepositoryChangesRequest
372
+ include Google::Apis::Core::Hashable
373
+
374
+ # Represents a Dataform Git commit.
375
+ # Corresponds to the JSON property `commitMetadata`
376
+ # @return [Google::Apis::DataformV1beta1::CommitMetadata]
377
+ attr_accessor :commit_metadata
378
+
379
+ # A map to the path of the file to the operation. The path is the ull file path
380
+ # including filename, from repository root.
381
+ # Corresponds to the JSON property `fileOperations`
382
+ # @return [Hash<String,Google::Apis::DataformV1beta1::FileOperation>]
383
+ attr_accessor :file_operations
384
+
385
+ # Optional. The commit SHA which must be the repository's current HEAD before
386
+ # applying this commit; otherwise this request will fail. If unset, no
387
+ # validation on the current HEAD commit SHA is performed.
388
+ # Corresponds to the JSON property `requiredHeadCommitSha`
389
+ # @return [String]
390
+ attr_accessor :required_head_commit_sha
391
+
392
+ def initialize(**args)
393
+ update!(**args)
394
+ end
395
+
396
+ # Update properties of this object
397
+ def update!(**args)
398
+ @commit_metadata = args[:commit_metadata] if args.key?(:commit_metadata)
399
+ @file_operations = args[:file_operations] if args.key?(:file_operations)
400
+ @required_head_commit_sha = args[:required_head_commit_sha] if args.key?(:required_head_commit_sha)
401
+ end
402
+ end
403
+
308
404
  # `CommitWorkspaceChanges` request message.
309
405
  class CommitWorkspaceChangesRequest
310
406
  include Google::Apis::Core::Hashable
@@ -541,6 +637,19 @@ module Google
541
637
  end
542
638
  end
543
639
 
640
+ # Represents the delete file operation.
641
+ class DeleteFile
642
+ include Google::Apis::Core::Hashable
643
+
644
+ def initialize(**args)
645
+ update!(**args)
646
+ end
647
+
648
+ # Update properties of this object
649
+ def update!(**args)
650
+ end
651
+ end
652
+
544
653
  # Represents a single entry in a directory.
545
654
  class DirectoryEntry
546
655
  include Google::Apis::Core::Hashable
@@ -719,11 +828,62 @@ module Google
719
828
  end
720
829
  end
721
830
 
831
+ # `FetchRepositoryHistory` response message.
832
+ class FetchRepositoryHistoryResponse
833
+ include Google::Apis::Core::Hashable
834
+
835
+ # A list of commit logs, ordered by 'git log' default order.
836
+ # Corresponds to the JSON property `commits`
837
+ # @return [Array<Google::Apis::DataformV1beta1::CommitLogEntry>]
838
+ attr_accessor :commits
839
+
840
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
841
+ # field is omitted, there are no subsequent pages.
842
+ # Corresponds to the JSON property `nextPageToken`
843
+ # @return [String]
844
+ attr_accessor :next_page_token
845
+
846
+ def initialize(**args)
847
+ update!(**args)
848
+ end
849
+
850
+ # Update properties of this object
851
+ def update!(**args)
852
+ @commits = args[:commits] if args.key?(:commits)
853
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
854
+ end
855
+ end
856
+
857
+ # Represents a single file operation to the repository.
858
+ class FileOperation
859
+ include Google::Apis::Core::Hashable
860
+
861
+ # Represents the delete file operation.
862
+ # Corresponds to the JSON property `deleteFile`
863
+ # @return [Google::Apis::DataformV1beta1::DeleteFile]
864
+ attr_accessor :delete_file
865
+
866
+ # Represents the write file operation (for files added or modified).
867
+ # Corresponds to the JSON property `writeFile`
868
+ # @return [Google::Apis::DataformV1beta1::WriteFile]
869
+ attr_accessor :write_file
870
+
871
+ def initialize(**args)
872
+ update!(**args)
873
+ end
874
+
875
+ # Update properties of this object
876
+ def update!(**args)
877
+ @delete_file = args[:delete_file] if args.key?(:delete_file)
878
+ @write_file = args[:write_file] if args.key?(:write_file)
879
+ end
880
+ end
881
+
722
882
  # Controls Git remote configuration for a repository.
723
883
  class GitRemoteSettings
724
884
  include Google::Apis::Core::Hashable
725
885
 
726
- # Required. The name of the Secret Manager secret version to use as an
886
+ # Optional. The name of the Secret Manager secret version to use as an
727
887
  # authentication token for Git operations. Must be in the format `projects/*/
728
888
  # secrets/*/versions/*`.
729
889
  # Corresponds to the JSON property `authenticationTokenSecretVersion`
@@ -892,6 +1052,11 @@ module Google
892
1052
  # @return [Array<Google::Apis::DataformV1beta1::Target>]
893
1053
  attr_accessor :included_targets
894
1054
 
1055
+ # Optional. The service account to run workflow invocations under.
1056
+ # Corresponds to the JSON property `serviceAccount`
1057
+ # @return [String]
1058
+ attr_accessor :service_account
1059
+
895
1060
  # Optional. When set to true, transitive dependencies of included actions will
896
1061
  # be executed.
897
1062
  # Corresponds to the JSON property `transitiveDependenciesIncluded`
@@ -915,6 +1080,7 @@ module Google
915
1080
  @fully_refresh_incremental_tables_enabled = args[:fully_refresh_incremental_tables_enabled] if args.key?(:fully_refresh_incremental_tables_enabled)
916
1081
  @included_tags = args[:included_tags] if args.key?(:included_tags)
917
1082
  @included_targets = args[:included_targets] if args.key?(:included_targets)
1083
+ @service_account = args[:service_account] if args.key?(:service_account)
918
1084
  @transitive_dependencies_included = args[:transitive_dependencies_included] if args.key?(:transitive_dependencies_included)
919
1085
  @transitive_dependents_included = args[:transitive_dependents_included] if args.key?(:transitive_dependents_included)
920
1086
  end
@@ -1594,6 +1760,32 @@ module Google
1594
1760
  end
1595
1761
  end
1596
1762
 
1763
+ # `QueryRepositoryDirectoryContents` response message.
1764
+ class QueryRepositoryDirectoryContentsResponse
1765
+ include Google::Apis::Core::Hashable
1766
+
1767
+ # List of entries in the directory.
1768
+ # Corresponds to the JSON property `directoryEntries`
1769
+ # @return [Array<Google::Apis::DataformV1beta1::DirectoryEntry>]
1770
+ attr_accessor :directory_entries
1771
+
1772
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
1773
+ # field is omitted, there are no subsequent pages.
1774
+ # Corresponds to the JSON property `nextPageToken`
1775
+ # @return [String]
1776
+ attr_accessor :next_page_token
1777
+
1778
+ def initialize(**args)
1779
+ update!(**args)
1780
+ end
1781
+
1782
+ # Update properties of this object
1783
+ def update!(**args)
1784
+ @directory_entries = args[:directory_entries] if args.key?(:directory_entries)
1785
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1786
+ end
1787
+ end
1788
+
1597
1789
  # `QueryWorkflowInvocationActions` response message.
1598
1790
  class QueryWorkflowInvocationActionsResponse
1599
1791
  include Google::Apis::Core::Hashable
@@ -1640,6 +1832,26 @@ module Google
1640
1832
  end
1641
1833
  end
1642
1834
 
1835
+ # `ReadRepositoryFile` response message.
1836
+ class ReadRepositoryFileResponse
1837
+ include Google::Apis::Core::Hashable
1838
+
1839
+ # The file's contents.
1840
+ # Corresponds to the JSON property `contents`
1841
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1842
+ # @return [String]
1843
+ attr_accessor :contents
1844
+
1845
+ def initialize(**args)
1846
+ update!(**args)
1847
+ end
1848
+
1849
+ # Update properties of this object
1850
+ def update!(**args)
1851
+ @contents = args[:contents] if args.key?(:contents)
1852
+ end
1853
+ end
1854
+
1643
1855
  # Represents a database relation.
1644
1856
  class Relation
1645
1857
  include Google::Apis::Core::Hashable
@@ -1885,11 +2097,21 @@ module Google
1885
2097
  class Repository
1886
2098
  include Google::Apis::Core::Hashable
1887
2099
 
2100
+ # Optional. The repository's user-friendly name.
2101
+ # Corresponds to the JSON property `displayName`
2102
+ # @return [String]
2103
+ attr_accessor :display_name
2104
+
1888
2105
  # Controls Git remote configuration for a repository.
1889
2106
  # Corresponds to the JSON property `gitRemoteSettings`
1890
2107
  # @return [Google::Apis::DataformV1beta1::GitRemoteSettings]
1891
2108
  attr_accessor :git_remote_settings
1892
2109
 
2110
+ # Optional. Repository user labels.
2111
+ # Corresponds to the JSON property `labels`
2112
+ # @return [Hash<String,String>]
2113
+ attr_accessor :labels
2114
+
1893
2115
  # Output only. The repository's name.
1894
2116
  # Corresponds to the JSON property `name`
1895
2117
  # @return [String]
@@ -1903,6 +2125,20 @@ module Google
1903
2125
  # @return [String]
1904
2126
  attr_accessor :npmrc_environment_variables_secret_version
1905
2127
 
2128
+ # Optional. The service account to run workflow invocations under.
2129
+ # Corresponds to the JSON property `serviceAccount`
2130
+ # @return [String]
2131
+ attr_accessor :service_account
2132
+
2133
+ # Optional. Input only. If set to true, the authenticated user will be granted
2134
+ # the roles/dataform.admin role on the created repository. To modify access to
2135
+ # the created repository later apply setIamPolicy from https://cloud.google.com/
2136
+ # dataform/reference/rest#rest-resource:-v1beta1.projects.locations.repositories
2137
+ # Corresponds to the JSON property `setAuthenticatedUserAdmin`
2138
+ # @return [Boolean]
2139
+ attr_accessor :set_authenticated_user_admin
2140
+ alias_method :set_authenticated_user_admin?, :set_authenticated_user_admin
2141
+
1906
2142
  # Configures workspace compilation overrides for a repository. Primarily used by
1907
2143
  # the UI (`console.cloud.google.com`). `schema_suffix` and `table_prefix` can
1908
2144
  # have a special expression - `$`workspaceName``, which refers to the workspace
@@ -1921,9 +2157,13 @@ module Google
1921
2157
 
1922
2158
  # Update properties of this object
1923
2159
  def update!(**args)
2160
+ @display_name = args[:display_name] if args.key?(:display_name)
1924
2161
  @git_remote_settings = args[:git_remote_settings] if args.key?(:git_remote_settings)
2162
+ @labels = args[:labels] if args.key?(:labels)
1925
2163
  @name = args[:name] if args.key?(:name)
1926
2164
  @npmrc_environment_variables_secret_version = args[:npmrc_environment_variables_secret_version] if args.key?(:npmrc_environment_variables_secret_version)
2165
+ @service_account = args[:service_account] if args.key?(:service_account)
2166
+ @set_authenticated_user_admin = args[:set_authenticated_user_admin] if args.key?(:set_authenticated_user_admin)
1927
2167
  @workspace_compilation_overrides = args[:workspace_compilation_overrides] if args.key?(:workspace_compilation_overrides)
1928
2168
  end
1929
2169
  end
@@ -2437,6 +2677,26 @@ module Google
2437
2677
  end
2438
2678
  end
2439
2679
 
2680
+ # Represents the write file operation (for files added or modified).
2681
+ class WriteFile
2682
+ include Google::Apis::Core::Hashable
2683
+
2684
+ # The file's contents.
2685
+ # Corresponds to the JSON property `contents`
2686
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2687
+ # @return [String]
2688
+ attr_accessor :contents
2689
+
2690
+ def initialize(**args)
2691
+ update!(**args)
2692
+ end
2693
+
2694
+ # Update properties of this object
2695
+ def update!(**args)
2696
+ @contents = args[:contents] if args.key?(:contents)
2697
+ end
2698
+ end
2699
+
2440
2700
  # `WriteFile` request message.
2441
2701
  class WriteFileRequest
2442
2702
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DataformV1beta1
18
18
  # Version of the google-apis-dataform_v1beta1 gem
19
- GEM_VERSION = "0.10.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230616"
25
+ REVISION = "20230722"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,24 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class CommitLogEntry
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class CommitMetadata
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class CommitRepositoryChangesRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
67
85
  class CommitWorkspaceChangesRequest
68
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
87
 
@@ -100,6 +118,12 @@ module Google
100
118
  include Google::Apis::Core::JsonObjectSupport
101
119
  end
102
120
 
121
+ class DeleteFile
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
103
127
  class DirectoryEntry
104
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
129
 
@@ -142,6 +166,18 @@ module Google
142
166
  include Google::Apis::Core::JsonObjectSupport
143
167
  end
144
168
 
169
+ class FetchRepositoryHistoryResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class FileOperation
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
145
181
  class GitRemoteSettings
146
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
183
 
@@ -304,6 +340,12 @@ module Google
304
340
  include Google::Apis::Core::JsonObjectSupport
305
341
  end
306
342
 
343
+ class QueryRepositoryDirectoryContentsResponse
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
307
349
  class QueryWorkflowInvocationActionsResponse
308
350
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
351
 
@@ -316,6 +358,12 @@ module Google
316
358
  include Google::Apis::Core::JsonObjectSupport
317
359
  end
318
360
 
361
+ class ReadRepositoryFileResponse
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
319
367
  class Relation
320
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
321
369
 
@@ -436,6 +484,12 @@ module Google
436
484
  include Google::Apis::Core::JsonObjectSupport
437
485
  end
438
486
 
487
+ class WriteFile
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
439
493
  class WriteFileRequest
440
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
441
495
 
@@ -517,6 +571,37 @@ module Google
517
571
  end
518
572
  end
519
573
 
574
+ class CommitLogEntry
575
+ # @private
576
+ class Representation < Google::Apis::Core::JsonRepresentation
577
+ property :author, as: 'author', class: Google::Apis::DataformV1beta1::CommitAuthor, decorator: Google::Apis::DataformV1beta1::CommitAuthor::Representation
578
+
579
+ property :commit_message, as: 'commitMessage'
580
+ property :commit_sha, as: 'commitSha'
581
+ property :commit_time, as: 'commitTime'
582
+ end
583
+ end
584
+
585
+ class CommitMetadata
586
+ # @private
587
+ class Representation < Google::Apis::Core::JsonRepresentation
588
+ property :author, as: 'author', class: Google::Apis::DataformV1beta1::CommitAuthor, decorator: Google::Apis::DataformV1beta1::CommitAuthor::Representation
589
+
590
+ property :commit_message, as: 'commitMessage'
591
+ end
592
+ end
593
+
594
+ class CommitRepositoryChangesRequest
595
+ # @private
596
+ class Representation < Google::Apis::Core::JsonRepresentation
597
+ property :commit_metadata, as: 'commitMetadata', class: Google::Apis::DataformV1beta1::CommitMetadata, decorator: Google::Apis::DataformV1beta1::CommitMetadata::Representation
598
+
599
+ hash :file_operations, as: 'fileOperations', class: Google::Apis::DataformV1beta1::FileOperation, decorator: Google::Apis::DataformV1beta1::FileOperation::Representation
600
+
601
+ property :required_head_commit_sha, as: 'requiredHeadCommitSha'
602
+ end
603
+ end
604
+
520
605
  class CommitWorkspaceChangesRequest
521
606
  # @private
522
607
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -588,6 +673,12 @@ module Google
588
673
  end
589
674
  end
590
675
 
676
+ class DeleteFile
677
+ # @private
678
+ class Representation < Google::Apis::Core::JsonRepresentation
679
+ end
680
+ end
681
+
591
682
  class DirectoryEntry
592
683
  # @private
593
684
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -642,6 +733,25 @@ module Google
642
733
  end
643
734
  end
644
735
 
736
+ class FetchRepositoryHistoryResponse
737
+ # @private
738
+ class Representation < Google::Apis::Core::JsonRepresentation
739
+ collection :commits, as: 'commits', class: Google::Apis::DataformV1beta1::CommitLogEntry, decorator: Google::Apis::DataformV1beta1::CommitLogEntry::Representation
740
+
741
+ property :next_page_token, as: 'nextPageToken'
742
+ end
743
+ end
744
+
745
+ class FileOperation
746
+ # @private
747
+ class Representation < Google::Apis::Core::JsonRepresentation
748
+ property :delete_file, as: 'deleteFile', class: Google::Apis::DataformV1beta1::DeleteFile, decorator: Google::Apis::DataformV1beta1::DeleteFile::Representation
749
+
750
+ property :write_file, as: 'writeFile', class: Google::Apis::DataformV1beta1::WriteFile, decorator: Google::Apis::DataformV1beta1::WriteFile::Representation
751
+
752
+ end
753
+ end
754
+
645
755
  class GitRemoteSettings
646
756
  # @private
647
757
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -691,6 +801,7 @@ module Google
691
801
  collection :included_tags, as: 'includedTags'
692
802
  collection :included_targets, as: 'includedTargets', class: Google::Apis::DataformV1beta1::Target, decorator: Google::Apis::DataformV1beta1::Target::Representation
693
803
 
804
+ property :service_account, as: 'serviceAccount'
694
805
  property :transitive_dependencies_included, as: 'transitiveDependenciesIncluded'
695
806
  property :transitive_dependents_included, as: 'transitiveDependentsIncluded'
696
807
  end
@@ -888,6 +999,15 @@ module Google
888
999
  end
889
1000
  end
890
1001
 
1002
+ class QueryRepositoryDirectoryContentsResponse
1003
+ # @private
1004
+ class Representation < Google::Apis::Core::JsonRepresentation
1005
+ collection :directory_entries, as: 'directoryEntries', class: Google::Apis::DataformV1beta1::DirectoryEntry, decorator: Google::Apis::DataformV1beta1::DirectoryEntry::Representation
1006
+
1007
+ property :next_page_token, as: 'nextPageToken'
1008
+ end
1009
+ end
1010
+
891
1011
  class QueryWorkflowInvocationActionsResponse
892
1012
  # @private
893
1013
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -904,6 +1024,13 @@ module Google
904
1024
  end
905
1025
  end
906
1026
 
1027
+ class ReadRepositoryFileResponse
1028
+ # @private
1029
+ class Representation < Google::Apis::Core::JsonRepresentation
1030
+ property :contents, :base64 => true, as: 'contents'
1031
+ end
1032
+ end
1033
+
907
1034
  class Relation
908
1035
  # @private
909
1036
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -969,10 +1096,14 @@ module Google
969
1096
  class Repository
970
1097
  # @private
971
1098
  class Representation < Google::Apis::Core::JsonRepresentation
1099
+ property :display_name, as: 'displayName'
972
1100
  property :git_remote_settings, as: 'gitRemoteSettings', class: Google::Apis::DataformV1beta1::GitRemoteSettings, decorator: Google::Apis::DataformV1beta1::GitRemoteSettings::Representation
973
1101
 
1102
+ hash :labels, as: 'labels'
974
1103
  property :name, as: 'name'
975
1104
  property :npmrc_environment_variables_secret_version, as: 'npmrcEnvironmentVariablesSecretVersion'
1105
+ property :service_account, as: 'serviceAccount'
1106
+ property :set_authenticated_user_admin, as: 'setAuthenticatedUserAdmin'
976
1107
  property :workspace_compilation_overrides, as: 'workspaceCompilationOverrides', class: Google::Apis::DataformV1beta1::WorkspaceCompilationOverrides, decorator: Google::Apis::DataformV1beta1::WorkspaceCompilationOverrides::Representation
977
1108
 
978
1109
  end
@@ -1114,6 +1245,13 @@ module Google
1114
1245
  end
1115
1246
  end
1116
1247
 
1248
+ class WriteFile
1249
+ # @private
1250
+ class Representation < Google::Apis::Core::JsonRepresentation
1251
+ property :contents, :base64 => true, as: 'contents'
1252
+ end
1253
+ end
1254
+
1117
1255
  class WriteFileRequest
1118
1256
  # @private
1119
1257
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -122,6 +122,40 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
+ # Applies a Git commit to a Repository. The Repository must not have a value for
126
+ # `git_remote_settings.url`.
127
+ # @param [String] name
128
+ # Required. The repository's name.
129
+ # @param [Google::Apis::DataformV1beta1::CommitRepositoryChangesRequest] commit_repository_changes_request_object
130
+ # @param [String] fields
131
+ # Selector specifying which fields to include in a partial response.
132
+ # @param [String] quota_user
133
+ # Available to use for quota purposes for server-side applications. Can be any
134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
135
+ # @param [Google::Apis::RequestOptions] options
136
+ # Request-specific options
137
+ #
138
+ # @yield [result, err] Result & error if block supplied
139
+ # @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
140
+ # @yieldparam err [StandardError] error object if request failed
141
+ #
142
+ # @return [Google::Apis::DataformV1beta1::Empty]
143
+ #
144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
147
+ def commit_repository_changes(name, commit_repository_changes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
148
+ command = make_simple_command(:post, 'v1beta1/{+name}:commit', options)
149
+ command.request_representation = Google::Apis::DataformV1beta1::CommitRepositoryChangesRequest::Representation
150
+ command.request_object = commit_repository_changes_request_object
151
+ command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
152
+ command.response_class = Google::Apis::DataformV1beta1::Empty
153
+ command.params['name'] = name unless name.nil?
154
+ command.query['fields'] = fields unless fields.nil?
155
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
156
+ execute_or_queue_command(command, &block)
157
+ end
158
+
125
159
  # Computes a Repository's Git access token status.
126
160
  # @param [String] name
127
161
  # Required. The repository's name.
@@ -225,6 +259,48 @@ module Google
225
259
  execute_or_queue_command(command, &block)
226
260
  end
227
261
 
262
+ # Fetches a Repository's history of commits. The Repository must not have a
263
+ # value for `git_remote_settings.url`.
264
+ # @param [String] name
265
+ # Required. The repository's name.
266
+ # @param [Fixnum] page_size
267
+ # Optional. Maximum number of commits to return. The server may return fewer
268
+ # items than requested. If unspecified, the server will pick an appropriate
269
+ # default.
270
+ # @param [String] page_token
271
+ # Optional. Page token received from a previous `FetchRepositoryHistory` call.
272
+ # Provide this to retrieve the subsequent page. When paginating, all other
273
+ # parameters provided to `FetchRepositoryHistory` must match the call that
274
+ # provided the page token.
275
+ # @param [String] fields
276
+ # Selector specifying which fields to include in a partial response.
277
+ # @param [String] quota_user
278
+ # Available to use for quota purposes for server-side applications. Can be any
279
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
280
+ # @param [Google::Apis::RequestOptions] options
281
+ # Request-specific options
282
+ #
283
+ # @yield [result, err] Result & error if block supplied
284
+ # @yieldparam result [Google::Apis::DataformV1beta1::FetchRepositoryHistoryResponse] parsed result object
285
+ # @yieldparam err [StandardError] error object if request failed
286
+ #
287
+ # @return [Google::Apis::DataformV1beta1::FetchRepositoryHistoryResponse]
288
+ #
289
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
290
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
291
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
292
+ def fetch_project_location_repository_history(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
293
+ command = make_simple_command(:get, 'v1beta1/{+name}:fetchHistory', options)
294
+ command.response_representation = Google::Apis::DataformV1beta1::FetchRepositoryHistoryResponse::Representation
295
+ command.response_class = Google::Apis::DataformV1beta1::FetchRepositoryHistoryResponse
296
+ command.params['name'] = name unless name.nil?
297
+ command.query['pageSize'] = page_size unless page_size.nil?
298
+ command.query['pageToken'] = page_token unless page_token.nil?
299
+ command.query['fields'] = fields unless fields.nil?
300
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
301
+ execute_or_queue_command(command, &block)
302
+ end
303
+
228
304
  # Fetches a Repository's remote branches.
229
305
  # @param [String] name
230
306
  # Required. The repository's name.
@@ -417,6 +493,94 @@ module Google
417
493
  execute_or_queue_command(command, &block)
418
494
  end
419
495
 
496
+ # Returns the contents of a given Repository directory. The Repository must not
497
+ # have a value for `git_remote_settings.url`.
498
+ # @param [String] name
499
+ # Required. The repository's name.
500
+ # @param [String] commit_sha
501
+ # Optional. The Commit SHA for the commit to query from. If unset, the directory
502
+ # will be queried from HEAD.
503
+ # @param [Fixnum] page_size
504
+ # Optional. Maximum number of paths to return. The server may return fewer items
505
+ # than requested. If unspecified, the server will pick an appropriate default.
506
+ # @param [String] page_token
507
+ # Optional. Page token received from a previous `
508
+ # QueryRepositoryDirectoryContents` call. Provide this to retrieve the
509
+ # subsequent page. When paginating, all other parameters provided to `
510
+ # QueryRepositoryDirectoryContents` must match the call that provided the page
511
+ # token.
512
+ # @param [String] path
513
+ # Optional. The directory's full path including directory name, relative to root.
514
+ # If left unset, the root is used.
515
+ # @param [String] fields
516
+ # Selector specifying which fields to include in a partial response.
517
+ # @param [String] quota_user
518
+ # Available to use for quota purposes for server-side applications. Can be any
519
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
520
+ # @param [Google::Apis::RequestOptions] options
521
+ # Request-specific options
522
+ #
523
+ # @yield [result, err] Result & error if block supplied
524
+ # @yieldparam result [Google::Apis::DataformV1beta1::QueryRepositoryDirectoryContentsResponse] parsed result object
525
+ # @yieldparam err [StandardError] error object if request failed
526
+ #
527
+ # @return [Google::Apis::DataformV1beta1::QueryRepositoryDirectoryContentsResponse]
528
+ #
529
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
530
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
531
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
532
+ def query_project_location_repository_directory_contents(name, commit_sha: nil, page_size: nil, page_token: nil, path: nil, fields: nil, quota_user: nil, options: nil, &block)
533
+ command = make_simple_command(:get, 'v1beta1/{+name}:queryDirectoryContents', options)
534
+ command.response_representation = Google::Apis::DataformV1beta1::QueryRepositoryDirectoryContentsResponse::Representation
535
+ command.response_class = Google::Apis::DataformV1beta1::QueryRepositoryDirectoryContentsResponse
536
+ command.params['name'] = name unless name.nil?
537
+ command.query['commitSha'] = commit_sha unless commit_sha.nil?
538
+ command.query['pageSize'] = page_size unless page_size.nil?
539
+ command.query['pageToken'] = page_token unless page_token.nil?
540
+ command.query['path'] = path unless path.nil?
541
+ command.query['fields'] = fields unless fields.nil?
542
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
543
+ execute_or_queue_command(command, &block)
544
+ end
545
+
546
+ # Returns the contents of a file (inside a Repository). The Repository must not
547
+ # have a value for `git_remote_settings.url`.
548
+ # @param [String] name
549
+ # Required. The repository's name.
550
+ # @param [String] commit_sha
551
+ # Optional. The commit SHA for the commit to read from. If unset, the file will
552
+ # be read from HEAD.
553
+ # @param [String] path
554
+ # Required. Full file path to read including filename, from repository root.
555
+ # @param [String] fields
556
+ # Selector specifying which fields to include in a partial response.
557
+ # @param [String] quota_user
558
+ # Available to use for quota purposes for server-side applications. Can be any
559
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
560
+ # @param [Google::Apis::RequestOptions] options
561
+ # Request-specific options
562
+ #
563
+ # @yield [result, err] Result & error if block supplied
564
+ # @yieldparam result [Google::Apis::DataformV1beta1::ReadRepositoryFileResponse] parsed result object
565
+ # @yieldparam err [StandardError] error object if request failed
566
+ #
567
+ # @return [Google::Apis::DataformV1beta1::ReadRepositoryFileResponse]
568
+ #
569
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
570
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
571
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
572
+ def read_project_location_repository_file(name, commit_sha: nil, path: nil, fields: nil, quota_user: nil, options: nil, &block)
573
+ command = make_simple_command(:get, 'v1beta1/{+name}:readFile', options)
574
+ command.response_representation = Google::Apis::DataformV1beta1::ReadRepositoryFileResponse::Representation
575
+ command.response_class = Google::Apis::DataformV1beta1::ReadRepositoryFileResponse
576
+ command.params['name'] = name unless name.nil?
577
+ command.query['commitSha'] = commit_sha unless commit_sha.nil?
578
+ command.query['path'] = path unless path.nil?
579
+ command.query['fields'] = fields unless fields.nil?
580
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
581
+ execute_or_queue_command(command, &block)
582
+ end
583
+
420
584
  # Sets the access control policy on the specified resource. Replaces any
421
585
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
422
586
  # PERMISSION_DENIED` errors.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dataform_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-25 00:00:00.000000000 Z
11
+ date: 2023-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataform_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dataform_v1beta1/v0.10.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dataform_v1beta1/v0.12.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataform_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []