google-apis-dataform_v1beta1 0.5.0 → 0.7.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8f10dfe4aa7925d0c10338109d1c7a71d8a48a61dc77731259c3f828350999d
4
- data.tar.gz: 4b7825170048d51c2a15cfd8f6c15c51f315262e292db4df7a2de0c96745626e
3
+ metadata.gz: a95e137c2aba00a4cfff2a94e1f2216c5e75d8d3bfe5009b3ba3176757012417
4
+ data.tar.gz: 66d4a42ae0aa47ad0813736c3dfeb951ff85f985076fabde82e1f46e985d13c4
5
5
  SHA512:
6
- metadata.gz: 85cdee2d0be13bd902f92d0fb056817a725317ef2ea3c7a63c89f8acdffb24b15fce6132017bcd61ccc979f8ed6e9b8a2de84139560becf2ccb9097b109a0b81
7
- data.tar.gz: 61f6f1312fec032bf641333eaef2bcdd2d125704a17990c1b64c28b02519a207fd83040439e5cffb6bbf3bed1a2a9bbcdd12fde7dc0e64f258c5b796da71e5e6
6
+ metadata.gz: ea90eda4d2a3735996d4fb5d8b80645449b1c2d05bacb2d48d8e24e08cd870c3e1cf677b472a529d8e86275dc6446f37ff71a1996fb86a0f14c94dbb18bf670a
7
+ data.tar.gz: 814b64b97c90594f2ad8376704c109fca6f5da15d870027cd43f3e36e4c1d69f5c81f82c3b2d08c9f00894159e3e06d7f8c5ca2851c6d209dd129a63f8a5f581
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-dataform_v1beta1
2
2
 
3
+ ### v0.7.0 (2023-03-19)
4
+
5
+ * Regenerated from discovery document revision 20230311
6
+
7
+ ### v0.6.0 (2023-03-12)
8
+
9
+ * Regenerated from discovery document revision 20230304
10
+
3
11
  ### v0.5.0 (2023-03-05)
4
12
 
5
13
  * Regenerated from discovery document revision 20230225
@@ -305,6 +305,94 @@ 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
+ def initialize(**args)
386
+ update!(**args)
387
+ end
388
+
389
+ # Update properties of this object
390
+ def update!(**args)
391
+ @commit_metadata = args[:commit_metadata] if args.key?(:commit_metadata)
392
+ @file_operations = args[:file_operations] if args.key?(:file_operations)
393
+ end
394
+ end
395
+
308
396
  # `CommitWorkspaceChanges` request message.
309
397
  class CommitWorkspaceChangesRequest
310
398
  include Google::Apis::Core::Hashable
@@ -502,6 +590,25 @@ module Google
502
590
  end
503
591
  end
504
592
 
593
+ # `ComputeRepositoryAccessTokenStatus` response message.
594
+ class ComputeRepositoryAccessTokenStatusResponse
595
+ include Google::Apis::Core::Hashable
596
+
597
+ # Indicates the status of the Git access token.
598
+ # Corresponds to the JSON property `tokenStatus`
599
+ # @return [String]
600
+ attr_accessor :token_status
601
+
602
+ def initialize(**args)
603
+ update!(**args)
604
+ end
605
+
606
+ # Update properties of this object
607
+ def update!(**args)
608
+ @token_status = args[:token_status] if args.key?(:token_status)
609
+ end
610
+ end
611
+
505
612
  # Represents a relation which is not managed by Dataform but which may be
506
613
  # referenced by Dataform actions.
507
614
  class Declaration
@@ -522,7 +629,20 @@ module Google
522
629
  end
523
630
  end
524
631
 
525
- # Represents a single entry in a workspace directory.
632
+ # Represents the delete file operation.
633
+ class DeleteFile
634
+ include Google::Apis::Core::Hashable
635
+
636
+ def initialize(**args)
637
+ update!(**args)
638
+ end
639
+
640
+ # Update properties of this object
641
+ def update!(**args)
642
+ end
643
+ end
644
+
645
+ # Represents a single entry in a directory.
526
646
  class DirectoryEntry
527
647
  include Google::Apis::Core::Hashable
528
648
 
@@ -700,6 +820,57 @@ module Google
700
820
  end
701
821
  end
702
822
 
823
+ # `FetchRepositoryHistory` response message.
824
+ class FetchRepositoryHistoryResponse
825
+ include Google::Apis::Core::Hashable
826
+
827
+ # A list of commit logs, ordered by 'git log' default order.
828
+ # Corresponds to the JSON property `commits`
829
+ # @return [Array<Google::Apis::DataformV1beta1::CommitLogEntry>]
830
+ attr_accessor :commits
831
+
832
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
833
+ # field is omitted, there are no subsequent pages.
834
+ # Corresponds to the JSON property `nextPageToken`
835
+ # @return [String]
836
+ attr_accessor :next_page_token
837
+
838
+ def initialize(**args)
839
+ update!(**args)
840
+ end
841
+
842
+ # Update properties of this object
843
+ def update!(**args)
844
+ @commits = args[:commits] if args.key?(:commits)
845
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
846
+ end
847
+ end
848
+
849
+ # Represents a single file operation to the repository.
850
+ class FileOperation
851
+ include Google::Apis::Core::Hashable
852
+
853
+ # Represents the delete file operation.
854
+ # Corresponds to the JSON property `deleteFile`
855
+ # @return [Google::Apis::DataformV1beta1::DeleteFile]
856
+ attr_accessor :delete_file
857
+
858
+ # Represents the write file operation (for files added or modified).
859
+ # Corresponds to the JSON property `writeFile`
860
+ # @return [Google::Apis::DataformV1beta1::WriteFile]
861
+ attr_accessor :write_file
862
+
863
+ def initialize(**args)
864
+ update!(**args)
865
+ end
866
+
867
+ # Update properties of this object
868
+ def update!(**args)
869
+ @delete_file = args[:delete_file] if args.key?(:delete_file)
870
+ @write_file = args[:write_file] if args.key?(:write_file)
871
+ end
872
+ end
873
+
703
874
  # Controls Git remote configuration for a repository.
704
875
  class GitRemoteSettings
705
876
  include Google::Apis::Core::Hashable
@@ -1573,6 +1744,32 @@ module Google
1573
1744
  end
1574
1745
  end
1575
1746
 
1747
+ # `QueryRepositoryDirectoryContents` response message.
1748
+ class QueryRepositoryDirectoryContentsResponse
1749
+ include Google::Apis::Core::Hashable
1750
+
1751
+ # List of entries in the directory.
1752
+ # Corresponds to the JSON property `directoryEntries`
1753
+ # @return [Array<Google::Apis::DataformV1beta1::DirectoryEntry>]
1754
+ attr_accessor :directory_entries
1755
+
1756
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
1757
+ # field is omitted, there are no subsequent pages.
1758
+ # Corresponds to the JSON property `nextPageToken`
1759
+ # @return [String]
1760
+ attr_accessor :next_page_token
1761
+
1762
+ def initialize(**args)
1763
+ update!(**args)
1764
+ end
1765
+
1766
+ # Update properties of this object
1767
+ def update!(**args)
1768
+ @directory_entries = args[:directory_entries] if args.key?(:directory_entries)
1769
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1770
+ end
1771
+ end
1772
+
1576
1773
  # `QueryWorkflowInvocationActions` response message.
1577
1774
  class QueryWorkflowInvocationActionsResponse
1578
1775
  include Google::Apis::Core::Hashable
@@ -1619,6 +1816,26 @@ module Google
1619
1816
  end
1620
1817
  end
1621
1818
 
1819
+ # `ReadRepositoryFile` response message.
1820
+ class ReadRepositoryFileResponse
1821
+ include Google::Apis::Core::Hashable
1822
+
1823
+ # The file's contents.
1824
+ # Corresponds to the JSON property `contents`
1825
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1826
+ # @return [String]
1827
+ attr_accessor :contents
1828
+
1829
+ def initialize(**args)
1830
+ update!(**args)
1831
+ end
1832
+
1833
+ # Update properties of this object
1834
+ def update!(**args)
1835
+ @contents = args[:contents] if args.key?(:contents)
1836
+ end
1837
+ end
1838
+
1622
1839
  # Represents a database relation.
1623
1840
  class Relation
1624
1841
  include Google::Apis::Core::Hashable
@@ -1869,6 +2086,23 @@ module Google
1869
2086
  # @return [Google::Apis::DataformV1beta1::GitRemoteSettings]
1870
2087
  attr_accessor :git_remote_settings
1871
2088
 
2089
+ # Optional. Input only. The initial commit file contents. Represented as map
2090
+ # from file path to contents. The path is the full file path to commit including
2091
+ # filename, from repository root.
2092
+ # Corresponds to the JSON property `initialCommitFileContents`
2093
+ # @return [Hash<String,String>]
2094
+ attr_accessor :initial_commit_file_contents
2095
+
2096
+ # Represents a Dataform Git commit.
2097
+ # Corresponds to the JSON property `initialCommitMetadata`
2098
+ # @return [Google::Apis::DataformV1beta1::CommitMetadata]
2099
+ attr_accessor :initial_commit_metadata
2100
+
2101
+ # Optional. Repository user labels.
2102
+ # Corresponds to the JSON property `labels`
2103
+ # @return [Hash<String,String>]
2104
+ attr_accessor :labels
2105
+
1872
2106
  # Output only. The repository's name.
1873
2107
  # Corresponds to the JSON property `name`
1874
2108
  # @return [String]
@@ -1901,6 +2135,9 @@ module Google
1901
2135
  # Update properties of this object
1902
2136
  def update!(**args)
1903
2137
  @git_remote_settings = args[:git_remote_settings] if args.key?(:git_remote_settings)
2138
+ @initial_commit_file_contents = args[:initial_commit_file_contents] if args.key?(:initial_commit_file_contents)
2139
+ @initial_commit_metadata = args[:initial_commit_metadata] if args.key?(:initial_commit_metadata)
2140
+ @labels = args[:labels] if args.key?(:labels)
1904
2141
  @name = args[:name] if args.key?(:name)
1905
2142
  @npmrc_environment_variables_secret_version = args[:npmrc_environment_variables_secret_version] if args.key?(:npmrc_environment_variables_secret_version)
1906
2143
  @workspace_compilation_overrides = args[:workspace_compilation_overrides] if args.key?(:workspace_compilation_overrides)
@@ -2416,6 +2653,26 @@ module Google
2416
2653
  end
2417
2654
  end
2418
2655
 
2656
+ # Represents the write file operation (for files added or modified).
2657
+ class WriteFile
2658
+ include Google::Apis::Core::Hashable
2659
+
2660
+ # The file's contents.
2661
+ # Corresponds to the JSON property `contents`
2662
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2663
+ # @return [String]
2664
+ attr_accessor :contents
2665
+
2666
+ def initialize(**args)
2667
+ update!(**args)
2668
+ end
2669
+
2670
+ # Update properties of this object
2671
+ def update!(**args)
2672
+ @contents = args[:contents] if args.key?(:contents)
2673
+ end
2674
+ end
2675
+
2419
2676
  # `WriteFile` request message.
2420
2677
  class WriteFileRequest
2421
2678
  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.5.0"
19
+ GEM_VERSION = "0.7.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 = "20230225"
25
+ REVISION = "20230311"
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
 
@@ -88,12 +106,24 @@ module Google
88
106
  include Google::Apis::Core::JsonObjectSupport
89
107
  end
90
108
 
109
+ class ComputeRepositoryAccessTokenStatusResponse
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
91
115
  class Declaration
92
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
117
 
94
118
  include Google::Apis::Core::JsonObjectSupport
95
119
  end
96
120
 
121
+ class DeleteFile
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
97
127
  class DirectoryEntry
98
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
129
 
@@ -136,6 +166,18 @@ module Google
136
166
  include Google::Apis::Core::JsonObjectSupport
137
167
  end
138
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
+
139
181
  class GitRemoteSettings
140
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
183
 
@@ -298,6 +340,12 @@ module Google
298
340
  include Google::Apis::Core::JsonObjectSupport
299
341
  end
300
342
 
343
+ class QueryRepositoryDirectoryContentsResponse
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
301
349
  class QueryWorkflowInvocationActionsResponse
302
350
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
351
 
@@ -310,6 +358,12 @@ module Google
310
358
  include Google::Apis::Core::JsonObjectSupport
311
359
  end
312
360
 
361
+ class ReadRepositoryFileResponse
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
313
367
  class Relation
314
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
369
 
@@ -430,6 +484,12 @@ module Google
430
484
  include Google::Apis::Core::JsonObjectSupport
431
485
  end
432
486
 
487
+ class WriteFile
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
433
493
  class WriteFileRequest
434
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
435
495
 
@@ -511,6 +571,36 @@ module Google
511
571
  end
512
572
  end
513
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
+ end
602
+ end
603
+
514
604
  class CommitWorkspaceChangesRequest
515
605
  # @private
516
606
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -567,6 +657,13 @@ module Google
567
657
  end
568
658
  end
569
659
 
660
+ class ComputeRepositoryAccessTokenStatusResponse
661
+ # @private
662
+ class Representation < Google::Apis::Core::JsonRepresentation
663
+ property :token_status, as: 'tokenStatus'
664
+ end
665
+ end
666
+
570
667
  class Declaration
571
668
  # @private
572
669
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -575,6 +672,12 @@ module Google
575
672
  end
576
673
  end
577
674
 
675
+ class DeleteFile
676
+ # @private
677
+ class Representation < Google::Apis::Core::JsonRepresentation
678
+ end
679
+ end
680
+
578
681
  class DirectoryEntry
579
682
  # @private
580
683
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -629,6 +732,25 @@ module Google
629
732
  end
630
733
  end
631
734
 
735
+ class FetchRepositoryHistoryResponse
736
+ # @private
737
+ class Representation < Google::Apis::Core::JsonRepresentation
738
+ collection :commits, as: 'commits', class: Google::Apis::DataformV1beta1::CommitLogEntry, decorator: Google::Apis::DataformV1beta1::CommitLogEntry::Representation
739
+
740
+ property :next_page_token, as: 'nextPageToken'
741
+ end
742
+ end
743
+
744
+ class FileOperation
745
+ # @private
746
+ class Representation < Google::Apis::Core::JsonRepresentation
747
+ property :delete_file, as: 'deleteFile', class: Google::Apis::DataformV1beta1::DeleteFile, decorator: Google::Apis::DataformV1beta1::DeleteFile::Representation
748
+
749
+ property :write_file, as: 'writeFile', class: Google::Apis::DataformV1beta1::WriteFile, decorator: Google::Apis::DataformV1beta1::WriteFile::Representation
750
+
751
+ end
752
+ end
753
+
632
754
  class GitRemoteSettings
633
755
  # @private
634
756
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -875,6 +997,15 @@ module Google
875
997
  end
876
998
  end
877
999
 
1000
+ class QueryRepositoryDirectoryContentsResponse
1001
+ # @private
1002
+ class Representation < Google::Apis::Core::JsonRepresentation
1003
+ collection :directory_entries, as: 'directoryEntries', class: Google::Apis::DataformV1beta1::DirectoryEntry, decorator: Google::Apis::DataformV1beta1::DirectoryEntry::Representation
1004
+
1005
+ property :next_page_token, as: 'nextPageToken'
1006
+ end
1007
+ end
1008
+
878
1009
  class QueryWorkflowInvocationActionsResponse
879
1010
  # @private
880
1011
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -891,6 +1022,13 @@ module Google
891
1022
  end
892
1023
  end
893
1024
 
1025
+ class ReadRepositoryFileResponse
1026
+ # @private
1027
+ class Representation < Google::Apis::Core::JsonRepresentation
1028
+ property :contents, :base64 => true, as: 'contents'
1029
+ end
1030
+ end
1031
+
894
1032
  class Relation
895
1033
  # @private
896
1034
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -958,6 +1096,10 @@ module Google
958
1096
  class Representation < Google::Apis::Core::JsonRepresentation
959
1097
  property :git_remote_settings, as: 'gitRemoteSettings', class: Google::Apis::DataformV1beta1::GitRemoteSettings, decorator: Google::Apis::DataformV1beta1::GitRemoteSettings::Representation
960
1098
 
1099
+ hash :initial_commit_file_contents, as: 'initialCommitFileContents'
1100
+ property :initial_commit_metadata, as: 'initialCommitMetadata', class: Google::Apis::DataformV1beta1::CommitMetadata, decorator: Google::Apis::DataformV1beta1::CommitMetadata::Representation
1101
+
1102
+ hash :labels, as: 'labels'
961
1103
  property :name, as: 'name'
962
1104
  property :npmrc_environment_variables_secret_version, as: 'npmrcEnvironmentVariablesSecretVersion'
963
1105
  property :workspace_compilation_overrides, as: 'workspaceCompilationOverrides', class: Google::Apis::DataformV1beta1::WorkspaceCompilationOverrides, decorator: Google::Apis::DataformV1beta1::WorkspaceCompilationOverrides::Representation
@@ -1101,6 +1243,13 @@ module Google
1101
1243
  end
1102
1244
  end
1103
1245
 
1246
+ class WriteFile
1247
+ # @private
1248
+ class Representation < Google::Apis::Core::JsonRepresentation
1249
+ property :contents, :base64 => true, as: 'contents'
1250
+ end
1251
+ end
1252
+
1104
1253
  class WriteFileRequest
1105
1254
  # @private
1106
1255
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -125,6 +125,70 @@ module Google
125
125
  execute_or_queue_command(command, &block)
126
126
  end
127
127
 
128
+ # Applies a Git commit to a Repository. The Repository must not have a value for
129
+ # `git_remote_settings.url`.
130
+ # @param [String] name
131
+ # Required. The repository's name.
132
+ # @param [Google::Apis::DataformV1beta1::CommitRepositoryChangesRequest] commit_repository_changes_request_object
133
+ # @param [String] fields
134
+ # Selector specifying which fields to include in a partial response.
135
+ # @param [String] quota_user
136
+ # Available to use for quota purposes for server-side applications. Can be any
137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
138
+ # @param [Google::Apis::RequestOptions] options
139
+ # Request-specific options
140
+ #
141
+ # @yield [result, err] Result & error if block supplied
142
+ # @yieldparam result [Google::Apis::DataformV1beta1::Empty] parsed result object
143
+ # @yieldparam err [StandardError] error object if request failed
144
+ #
145
+ # @return [Google::Apis::DataformV1beta1::Empty]
146
+ #
147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
150
+ def commit_repository_changes(name, commit_repository_changes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
151
+ command = make_simple_command(:post, 'v1beta1/{+name}:commit', options)
152
+ command.request_representation = Google::Apis::DataformV1beta1::CommitRepositoryChangesRequest::Representation
153
+ command.request_object = commit_repository_changes_request_object
154
+ command.response_representation = Google::Apis::DataformV1beta1::Empty::Representation
155
+ command.response_class = Google::Apis::DataformV1beta1::Empty
156
+ command.params['name'] = name unless name.nil?
157
+ command.query['fields'] = fields unless fields.nil?
158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
159
+ execute_or_queue_command(command, &block)
160
+ end
161
+
162
+ # Computes a Repository's Git access token status.
163
+ # @param [String] name
164
+ # Required. The repository's name.
165
+ # @param [String] fields
166
+ # Selector specifying which fields to include in a partial response.
167
+ # @param [String] quota_user
168
+ # Available to use for quota purposes for server-side applications. Can be any
169
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
170
+ # @param [Google::Apis::RequestOptions] options
171
+ # Request-specific options
172
+ #
173
+ # @yield [result, err] Result & error if block supplied
174
+ # @yieldparam result [Google::Apis::DataformV1beta1::ComputeRepositoryAccessTokenStatusResponse] parsed result object
175
+ # @yieldparam err [StandardError] error object if request failed
176
+ #
177
+ # @return [Google::Apis::DataformV1beta1::ComputeRepositoryAccessTokenStatusResponse]
178
+ #
179
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
180
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
181
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
182
+ def compute_project_location_repository_access_token_status(name, fields: nil, quota_user: nil, options: nil, &block)
183
+ command = make_simple_command(:get, 'v1beta1/{+name}:computeAccessTokenStatus', options)
184
+ command.response_representation = Google::Apis::DataformV1beta1::ComputeRepositoryAccessTokenStatusResponse::Representation
185
+ command.response_class = Google::Apis::DataformV1beta1::ComputeRepositoryAccessTokenStatusResponse
186
+ command.params['name'] = name unless name.nil?
187
+ command.query['fields'] = fields unless fields.nil?
188
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
189
+ execute_or_queue_command(command, &block)
190
+ end
191
+
128
192
  # Creates a new Repository in a given project and location.
129
193
  # @param [String] parent
130
194
  # Required. The location in which to create the repository. Must be in the
@@ -198,6 +262,48 @@ module Google
198
262
  execute_or_queue_command(command, &block)
199
263
  end
200
264
 
265
+ # Fetches a Repository's history of commits. The Repository must not have a
266
+ # value for `git_remote_settings.url`.
267
+ # @param [String] name
268
+ # Required. The repository's name.
269
+ # @param [Fixnum] page_size
270
+ # Optional. Maximum number of commits to return. The server may return fewer
271
+ # items than requested. If unspecified, the server will pick an appropriate
272
+ # default.
273
+ # @param [String] page_token
274
+ # Optional. Page token received from a previous `FetchRepositoryHistory` call.
275
+ # Provide this to retrieve the subsequent page. When paginating, all other
276
+ # parameters provided to `FetchRepositoryHistory` must match the call that
277
+ # provided the page token.
278
+ # @param [String] fields
279
+ # Selector specifying which fields to include in a partial response.
280
+ # @param [String] quota_user
281
+ # Available to use for quota purposes for server-side applications. Can be any
282
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
283
+ # @param [Google::Apis::RequestOptions] options
284
+ # Request-specific options
285
+ #
286
+ # @yield [result, err] Result & error if block supplied
287
+ # @yieldparam result [Google::Apis::DataformV1beta1::FetchRepositoryHistoryResponse] parsed result object
288
+ # @yieldparam err [StandardError] error object if request failed
289
+ #
290
+ # @return [Google::Apis::DataformV1beta1::FetchRepositoryHistoryResponse]
291
+ #
292
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
293
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
294
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
295
+ def fetch_project_location_repository_history(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
296
+ command = make_simple_command(:get, 'v1beta1/{+name}:fetchHistory', options)
297
+ command.response_representation = Google::Apis::DataformV1beta1::FetchRepositoryHistoryResponse::Representation
298
+ command.response_class = Google::Apis::DataformV1beta1::FetchRepositoryHistoryResponse
299
+ command.params['name'] = name unless name.nil?
300
+ command.query['pageSize'] = page_size unless page_size.nil?
301
+ command.query['pageToken'] = page_token unless page_token.nil?
302
+ command.query['fields'] = fields unless fields.nil?
303
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
304
+ execute_or_queue_command(command, &block)
305
+ end
306
+
201
307
  # Fetches a Repository's remote branches.
202
308
  # @param [String] name
203
309
  # Required. The repository's name.
@@ -390,6 +496,94 @@ module Google
390
496
  execute_or_queue_command(command, &block)
391
497
  end
392
498
 
499
+ # Returns the contents of a given Repository directory. The Repository must not
500
+ # have a value for `git_remote_settings.url`.
501
+ # @param [String] name
502
+ # Required. The repository's name.
503
+ # @param [String] commit_sha
504
+ # Optional. The Commit SHA for the commit to query from. If unset, the directory
505
+ # will be queried from HEAD.
506
+ # @param [Fixnum] page_size
507
+ # Optional. Maximum number of paths to return. The server may return fewer items
508
+ # than requested. If unspecified, the server will pick an appropriate default.
509
+ # @param [String] page_token
510
+ # Optional. Page token received from a previous `
511
+ # QueryRepositoryDirectoryContents` call. Provide this to retrieve the
512
+ # subsequent page. When paginating, all other parameters provided to `
513
+ # QueryRepositoryDirectoryContents` must match the call that provided the page
514
+ # token.
515
+ # @param [String] path
516
+ # Optional. The directory's full path including directory name, relative to root.
517
+ # If left unset, the root is used.
518
+ # @param [String] fields
519
+ # Selector specifying which fields to include in a partial response.
520
+ # @param [String] quota_user
521
+ # Available to use for quota purposes for server-side applications. Can be any
522
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
523
+ # @param [Google::Apis::RequestOptions] options
524
+ # Request-specific options
525
+ #
526
+ # @yield [result, err] Result & error if block supplied
527
+ # @yieldparam result [Google::Apis::DataformV1beta1::QueryRepositoryDirectoryContentsResponse] parsed result object
528
+ # @yieldparam err [StandardError] error object if request failed
529
+ #
530
+ # @return [Google::Apis::DataformV1beta1::QueryRepositoryDirectoryContentsResponse]
531
+ #
532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
535
+ 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)
536
+ command = make_simple_command(:get, 'v1beta1/{+name}:queryDirectoryContents', options)
537
+ command.response_representation = Google::Apis::DataformV1beta1::QueryRepositoryDirectoryContentsResponse::Representation
538
+ command.response_class = Google::Apis::DataformV1beta1::QueryRepositoryDirectoryContentsResponse
539
+ command.params['name'] = name unless name.nil?
540
+ command.query['commitSha'] = commit_sha unless commit_sha.nil?
541
+ command.query['pageSize'] = page_size unless page_size.nil?
542
+ command.query['pageToken'] = page_token unless page_token.nil?
543
+ command.query['path'] = path unless path.nil?
544
+ command.query['fields'] = fields unless fields.nil?
545
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
546
+ execute_or_queue_command(command, &block)
547
+ end
548
+
549
+ # Returns the contents of a file (inside a Repository). The Repository must not
550
+ # have a value for `git_remote_settings.url`.
551
+ # @param [String] name
552
+ # Required. The repository's name.
553
+ # @param [String] commit_sha
554
+ # Optional. The commit SHA for the commit to read from. If unset, the file will
555
+ # be read from HEAD.
556
+ # @param [String] path
557
+ # Required. Full file path to read including filename, from repository root.
558
+ # @param [String] fields
559
+ # Selector specifying which fields to include in a partial response.
560
+ # @param [String] quota_user
561
+ # Available to use for quota purposes for server-side applications. Can be any
562
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
563
+ # @param [Google::Apis::RequestOptions] options
564
+ # Request-specific options
565
+ #
566
+ # @yield [result, err] Result & error if block supplied
567
+ # @yieldparam result [Google::Apis::DataformV1beta1::ReadRepositoryFileResponse] parsed result object
568
+ # @yieldparam err [StandardError] error object if request failed
569
+ #
570
+ # @return [Google::Apis::DataformV1beta1::ReadRepositoryFileResponse]
571
+ #
572
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
573
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
574
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
575
+ def read_project_location_repository_file(name, commit_sha: nil, path: nil, fields: nil, quota_user: nil, options: nil, &block)
576
+ command = make_simple_command(:get, 'v1beta1/{+name}:readFile', options)
577
+ command.response_representation = Google::Apis::DataformV1beta1::ReadRepositoryFileResponse::Representation
578
+ command.response_class = Google::Apis::DataformV1beta1::ReadRepositoryFileResponse
579
+ command.params['name'] = name unless name.nil?
580
+ command.query['commitSha'] = commit_sha unless commit_sha.nil?
581
+ command.query['path'] = path unless path.nil?
582
+ command.query['fields'] = fields unless fields.nil?
583
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
584
+ execute_or_queue_command(command, &block)
585
+ end
586
+
393
587
  # Sets the access control policy on the specified resource. Replaces any
394
588
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
395
589
  # 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.5.0
4
+ version: 0.7.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-03-05 00:00:00.000000000 Z
11
+ date: 2023-03-19 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.5.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dataform_v1beta1/v0.7.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: []