google-apis-remotebuildexecution_v2 0.2.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/remotebuildexecution_v2.rb +1 -1
- data/lib/google/apis/remotebuildexecution_v2/classes.rb +171 -41
- data/lib/google/apis/remotebuildexecution_v2/gem_version.rb +3 -3
- data/lib/google/apis/remotebuildexecution_v2/representations.rb +33 -6
- data/lib/google/apis/remotebuildexecution_v2/service.rb +14 -9
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23757e0e9830b06a13f3735a409d51dc5b4f430b0a21e9d8ce85f505cd6511ab
|
4
|
+
data.tar.gz: '058aba09244edefe32078f9d3b01dfb2f5082b13285d48ff264e8c0cadd35453'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 026b18c78931743f17484e35b087ca302000952b796aa0e1492a7c8e076c7af5d8a06fe5ea527db7000d7a991c7dcaf2edb5b33cad511ef1d88d1e53ac99f657
|
7
|
+
data.tar.gz: 1c22c81ecf318772c18297b614b7aadaced002ebdc8361d57afefab4a5b35431f91d825a10c14385414cdf5422a27a845118eea6caca8d2539252707afba521d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-remotebuildexecution_v2
|
2
2
|
|
3
|
+
### v0.7.0 (2021-03-25)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210322
|
6
|
+
|
7
|
+
### v0.6.0 (2021-03-18)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210316
|
10
|
+
* Regenerated using generator version 0.2.0
|
11
|
+
|
12
|
+
### v0.5.0 (2021-03-04)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210302
|
15
|
+
|
16
|
+
### v0.4.0 (2021-02-26)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210224
|
19
|
+
|
20
|
+
### v0.3.0 (2021-02-11)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210209
|
23
|
+
|
3
24
|
### v0.2.0 (2021-02-04)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210202
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V2'
|
31
31
|
|
32
|
-
#
|
32
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
end
|
35
35
|
end
|
@@ -101,15 +101,23 @@ module Google
|
|
101
101
|
# @return [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2Digest]
|
102
102
|
attr_accessor :input_root_digest
|
103
103
|
|
104
|
-
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
|
111
|
-
|
112
|
-
|
104
|
+
# A `Platform` is a set of requirements, such as hardware, operating system, or
|
105
|
+
# compiler toolchain, for an Action's execution environment. A `Platform` is
|
106
|
+
# represented as a series of key-value pairs representing the properties that
|
107
|
+
# are required of the platform.
|
108
|
+
# Corresponds to the JSON property `platform`
|
109
|
+
# @return [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2Platform]
|
110
|
+
attr_accessor :platform
|
111
|
+
|
112
|
+
# An optional additional salt value used to place this `Action` into a separate
|
113
|
+
# cache namespace from other instances having the same field contents. This salt
|
114
|
+
# typically comes from operational configuration specific to sources such as
|
115
|
+
# repo and service configuration, and allows disowning an entire set of
|
116
|
+
# ActionResults that might have been poisoned by buggy software or tool failures.
|
117
|
+
# Corresponds to the JSON property `salt`
|
118
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
119
|
+
# @return [String]
|
120
|
+
attr_accessor :salt
|
113
121
|
|
114
122
|
# A timeout after which the execution should be killed. If the timeout is absent,
|
115
123
|
# then the client is specifying that the execution should continue as long as
|
@@ -137,7 +145,8 @@ module Google
|
|
137
145
|
@command_digest = args[:command_digest] if args.key?(:command_digest)
|
138
146
|
@do_not_cache = args[:do_not_cache] if args.key?(:do_not_cache)
|
139
147
|
@input_root_digest = args[:input_root_digest] if args.key?(:input_root_digest)
|
140
|
-
@
|
148
|
+
@platform = args[:platform] if args.key?(:platform)
|
149
|
+
@salt = args[:salt] if args.key?(:salt)
|
141
150
|
@timeout = args[:timeout] if args.key?(:timeout)
|
142
151
|
end
|
143
152
|
end
|
@@ -162,7 +171,10 @@ module Google
|
|
162
171
|
end
|
163
172
|
end
|
164
173
|
|
165
|
-
# An ActionResult represents the result of an Action being run.
|
174
|
+
# An ActionResult represents the result of an Action being run. It is advised
|
175
|
+
# that at least one field (for example `ActionResult.execution_metadata.Worker`)
|
176
|
+
# have a non-default value, to ensure that the serialized value is non-empty,
|
177
|
+
# which can then be used as a basic data sanity check.
|
166
178
|
class BuildBazelRemoteExecutionV2ActionResult
|
167
179
|
include Google::Apis::Core::Hashable
|
168
180
|
|
@@ -605,8 +617,8 @@ module Google
|
|
605
617
|
# @return [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities]
|
606
618
|
attr_accessor :action_cache_update_capabilities
|
607
619
|
|
608
|
-
# Allowed values for priority in ResultsCachePolicy Used for
|
609
|
-
# and execution valid priority ranges.
|
620
|
+
# Allowed values for priority in ResultsCachePolicy and ExecutionPolicy Used for
|
621
|
+
# querying both cache and execution valid priority ranges.
|
610
622
|
# Corresponds to the JSON property `cachePriorityCapabilities`
|
611
623
|
# @return [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2PriorityCapabilities]
|
612
624
|
attr_accessor :cache_priority_capabilities
|
@@ -624,6 +636,14 @@ module Google
|
|
624
636
|
# @return [Fixnum]
|
625
637
|
attr_accessor :max_batch_total_size_bytes
|
626
638
|
|
639
|
+
# Compressors supported by the "compressed-blobs" bytestream resources. Servers
|
640
|
+
# MUST support identity/no-compression, even if it is not listed here. Note that
|
641
|
+
# this does not imply which if any compressors are supported by the server at
|
642
|
+
# the gRPC level.
|
643
|
+
# Corresponds to the JSON property `supportedCompressor`
|
644
|
+
# @return [Array<String>]
|
645
|
+
attr_accessor :supported_compressor
|
646
|
+
|
627
647
|
# Whether absolute symlink targets are supported.
|
628
648
|
# Corresponds to the JSON property `symlinkAbsolutePathStrategy`
|
629
649
|
# @return [String]
|
@@ -639,6 +659,7 @@ module Google
|
|
639
659
|
@cache_priority_capabilities = args[:cache_priority_capabilities] if args.key?(:cache_priority_capabilities)
|
640
660
|
@digest_function = args[:digest_function] if args.key?(:digest_function)
|
641
661
|
@max_batch_total_size_bytes = args[:max_batch_total_size_bytes] if args.key?(:max_batch_total_size_bytes)
|
662
|
+
@supported_compressor = args[:supported_compressor] if args.key?(:supported_compressor)
|
642
663
|
@symlink_absolute_path_strategy = args[:symlink_absolute_path_strategy] if args.key?(:symlink_absolute_path_strategy)
|
643
664
|
end
|
644
665
|
end
|
@@ -710,6 +731,18 @@ module Google
|
|
710
731
|
# @return [Array<String>]
|
711
732
|
attr_accessor :output_files
|
712
733
|
|
734
|
+
# A list of keys for node properties the client expects to retrieve for output
|
735
|
+
# files and directories. Keys are either names of string-based NodeProperty or
|
736
|
+
# names of fields in NodeProperties. In order to ensure that equivalent `Action`
|
737
|
+
# s always hash to the same value, the node properties MUST be lexicographically
|
738
|
+
# sorted by name. Sorting of strings is done by code point, equivalently, by the
|
739
|
+
# UTF-8 bytes. The interpretation of string-based properties is server-dependent.
|
740
|
+
# If a property is not recognized by the server, the server will return an `
|
741
|
+
# INVALID_ARGUMENT`.
|
742
|
+
# Corresponds to the JSON property `outputNodeProperties`
|
743
|
+
# @return [Array<String>]
|
744
|
+
attr_accessor :output_node_properties
|
745
|
+
|
713
746
|
# A list of the output paths that the client expects to retrieve from the action.
|
714
747
|
# Only the listed paths will be returned to the client as output. The type of
|
715
748
|
# the output (file or directory) is not specified, and will be determined by the
|
@@ -758,6 +791,7 @@ module Google
|
|
758
791
|
@environment_variables = args[:environment_variables] if args.key?(:environment_variables)
|
759
792
|
@output_directories = args[:output_directories] if args.key?(:output_directories)
|
760
793
|
@output_files = args[:output_files] if args.key?(:output_files)
|
794
|
+
@output_node_properties = args[:output_node_properties] if args.key?(:output_node_properties)
|
761
795
|
@output_paths = args[:output_paths] if args.key?(:output_paths)
|
762
796
|
@platform = args[:platform] if args.key?(:platform)
|
763
797
|
@working_directory = args[:working_directory] if args.key?(:working_directory)
|
@@ -878,9 +912,10 @@ module Google
|
|
878
912
|
# @return [Array<Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2FileNode>]
|
879
913
|
attr_accessor :files
|
880
914
|
|
881
|
-
#
|
915
|
+
# Node properties for FileNodes, DirectoryNodes, and SymlinkNodes. The server is
|
916
|
+
# responsible for specifying the properties that it accepts.
|
882
917
|
# Corresponds to the JSON property `nodeProperties`
|
883
|
-
# @return [
|
918
|
+
# @return [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties]
|
884
919
|
attr_accessor :node_properties
|
885
920
|
|
886
921
|
# The symlinks in the directory.
|
@@ -988,14 +1023,14 @@ module Google
|
|
988
1023
|
# @return [String]
|
989
1024
|
attr_accessor :stage
|
990
1025
|
|
991
|
-
# If set, the client can use this name with ByteStream.Read to stream
|
992
|
-
# standard error.
|
1026
|
+
# If set, the client can use this resource name with ByteStream.Read to stream
|
1027
|
+
# the standard error from the endpoint hosting streamed responses.
|
993
1028
|
# Corresponds to the JSON property `stderrStreamName`
|
994
1029
|
# @return [String]
|
995
1030
|
attr_accessor :stderr_stream_name
|
996
1031
|
|
997
|
-
# If set, the client can use this name with ByteStream.Read to stream
|
998
|
-
# standard output.
|
1032
|
+
# If set, the client can use this resource name with ByteStream.Read to stream
|
1033
|
+
# the standard output from the endpoint hosting streamed responses.
|
999
1034
|
# Corresponds to the JSON property `stdoutStreamName`
|
1000
1035
|
# @return [String]
|
1001
1036
|
attr_accessor :stdout_stream_name
|
@@ -1102,7 +1137,10 @@ module Google
|
|
1102
1137
|
# @return [String]
|
1103
1138
|
attr_accessor :message
|
1104
1139
|
|
1105
|
-
# An ActionResult represents the result of an Action being run.
|
1140
|
+
# An ActionResult represents the result of an Action being run. It is advised
|
1141
|
+
# that at least one field (for example `ActionResult.execution_metadata.Worker`)
|
1142
|
+
# have a non-default value, to ensure that the serialized value is non-empty,
|
1143
|
+
# which can then be used as a basic data sanity check.
|
1106
1144
|
# Corresponds to the JSON property `result`
|
1107
1145
|
# @return [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ActionResult]
|
1108
1146
|
attr_accessor :result
|
@@ -1145,6 +1183,12 @@ module Google
|
|
1145
1183
|
class BuildBazelRemoteExecutionV2ExecutedActionMetadata
|
1146
1184
|
include Google::Apis::Core::Hashable
|
1147
1185
|
|
1186
|
+
# Details that are specific to the kind of worker used. For example, on POSIX-
|
1187
|
+
# like systems this could contain a message with getrusage(2) statistics.
|
1188
|
+
# Corresponds to the JSON property `auxiliaryMetadata`
|
1189
|
+
# @return [Array<Hash<String,Object>>]
|
1190
|
+
attr_accessor :auxiliary_metadata
|
1191
|
+
|
1148
1192
|
# When the worker completed executing the action command.
|
1149
1193
|
# Corresponds to the JSON property `executionCompletedTimestamp`
|
1150
1194
|
# @return [String]
|
@@ -1201,6 +1245,7 @@ module Google
|
|
1201
1245
|
|
1202
1246
|
# Update properties of this object
|
1203
1247
|
def update!(**args)
|
1248
|
+
@auxiliary_metadata = args[:auxiliary_metadata] if args.key?(:auxiliary_metadata)
|
1204
1249
|
@execution_completed_timestamp = args[:execution_completed_timestamp] if args.key?(:execution_completed_timestamp)
|
1205
1250
|
@execution_start_timestamp = args[:execution_start_timestamp] if args.key?(:execution_start_timestamp)
|
1206
1251
|
@input_fetch_completed_timestamp = args[:input_fetch_completed_timestamp] if args.key?(:input_fetch_completed_timestamp)
|
@@ -1229,8 +1274,8 @@ module Google
|
|
1229
1274
|
attr_accessor :exec_enabled
|
1230
1275
|
alias_method :exec_enabled?, :exec_enabled
|
1231
1276
|
|
1232
|
-
# Allowed values for priority in ResultsCachePolicy Used for
|
1233
|
-
# and execution valid priority ranges.
|
1277
|
+
# Allowed values for priority in ResultsCachePolicy and ExecutionPolicy Used for
|
1278
|
+
# querying both cache and execution valid priority ranges.
|
1234
1279
|
# Corresponds to the JSON property `executionPriorityCapabilities`
|
1235
1280
|
# @return [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2PriorityCapabilities]
|
1236
1281
|
attr_accessor :execution_priority_capabilities
|
@@ -1322,9 +1367,10 @@ module Google
|
|
1322
1367
|
# @return [String]
|
1323
1368
|
attr_accessor :name
|
1324
1369
|
|
1325
|
-
#
|
1370
|
+
# Node properties for FileNodes, DirectoryNodes, and SymlinkNodes. The server is
|
1371
|
+
# responsible for specifying the properties that it accepts.
|
1326
1372
|
# Corresponds to the JSON property `nodeProperties`
|
1327
|
-
# @return [
|
1373
|
+
# @return [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties]
|
1328
1374
|
attr_accessor :node_properties
|
1329
1375
|
|
1330
1376
|
def initialize(**args)
|
@@ -1458,6 +1504,38 @@ module Google
|
|
1458
1504
|
end
|
1459
1505
|
end
|
1460
1506
|
|
1507
|
+
# Node properties for FileNodes, DirectoryNodes, and SymlinkNodes. The server is
|
1508
|
+
# responsible for specifying the properties that it accepts.
|
1509
|
+
class BuildBazelRemoteExecutionV2NodeProperties
|
1510
|
+
include Google::Apis::Core::Hashable
|
1511
|
+
|
1512
|
+
# The file's last modification timestamp.
|
1513
|
+
# Corresponds to the JSON property `mtime`
|
1514
|
+
# @return [String]
|
1515
|
+
attr_accessor :mtime
|
1516
|
+
|
1517
|
+
# A list of string-based NodeProperties.
|
1518
|
+
# Corresponds to the JSON property `properties`
|
1519
|
+
# @return [Array<Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperty>]
|
1520
|
+
attr_accessor :properties
|
1521
|
+
|
1522
|
+
# The UNIX file mode, e.g., 0755.
|
1523
|
+
# Corresponds to the JSON property `unixMode`
|
1524
|
+
# @return [Fixnum]
|
1525
|
+
attr_accessor :unix_mode
|
1526
|
+
|
1527
|
+
def initialize(**args)
|
1528
|
+
update!(**args)
|
1529
|
+
end
|
1530
|
+
|
1531
|
+
# Update properties of this object
|
1532
|
+
def update!(**args)
|
1533
|
+
@mtime = args[:mtime] if args.key?(:mtime)
|
1534
|
+
@properties = args[:properties] if args.key?(:properties)
|
1535
|
+
@unix_mode = args[:unix_mode] if args.key?(:unix_mode)
|
1536
|
+
end
|
1537
|
+
end
|
1538
|
+
|
1461
1539
|
# A single property for FileNodes, DirectoryNodes, and SymlinkNodes. The server
|
1462
1540
|
# is responsible for specifying the property `name`s that it accepts. If
|
1463
1541
|
# permitted by the server, the same `name` may occur multiple times.
|
@@ -1586,9 +1664,10 @@ module Google
|
|
1586
1664
|
attr_accessor :is_executable
|
1587
1665
|
alias_method :is_executable?, :is_executable
|
1588
1666
|
|
1589
|
-
#
|
1667
|
+
# Node properties for FileNodes, DirectoryNodes, and SymlinkNodes. The server is
|
1668
|
+
# responsible for specifying the properties that it accepts.
|
1590
1669
|
# Corresponds to the JSON property `nodeProperties`
|
1591
|
-
# @return [
|
1670
|
+
# @return [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties]
|
1592
1671
|
attr_accessor :node_properties
|
1593
1672
|
|
1594
1673
|
# The full path of the file relative to the working directory, including the
|
@@ -1617,9 +1696,10 @@ module Google
|
|
1617
1696
|
class BuildBazelRemoteExecutionV2OutputSymlink
|
1618
1697
|
include Google::Apis::Core::Hashable
|
1619
1698
|
|
1620
|
-
#
|
1699
|
+
# Node properties for FileNodes, DirectoryNodes, and SymlinkNodes. The server is
|
1700
|
+
# responsible for specifying the properties that it accepts.
|
1621
1701
|
# Corresponds to the JSON property `nodeProperties`
|
1622
|
-
# @return [
|
1702
|
+
# @return [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties]
|
1623
1703
|
attr_accessor :node_properties
|
1624
1704
|
|
1625
1705
|
# The full path of the symlink relative to the working directory, including the
|
@@ -1632,9 +1712,8 @@ module Google
|
|
1632
1712
|
# The target path of the symlink. The path separator is a forward slash `/`. The
|
1633
1713
|
# target path can be relative to the parent directory of the symlink or it can
|
1634
1714
|
# be an absolute path starting with `/`. Support for absolute paths can be
|
1635
|
-
# checked using the Capabilities API.
|
1636
|
-
#
|
1637
|
-
# target path.
|
1715
|
+
# checked using the Capabilities API. `..` components are allowed anywhere in
|
1716
|
+
# the target path.
|
1638
1717
|
# Corresponds to the JSON property `target`
|
1639
1718
|
# @return [String]
|
1640
1719
|
attr_accessor :target
|
@@ -1687,7 +1766,10 @@ module Google
|
|
1687
1766
|
# on which the action must be performed may require an exact match with the
|
1688
1767
|
# worker's OS. The server MAY use the `value` of one or more properties to
|
1689
1768
|
# determine how it sets up the execution environment, such as by making specific
|
1690
|
-
# system files available to the worker.
|
1769
|
+
# system files available to the worker. Both names and values are typically case-
|
1770
|
+
# sensitive. Note that the platform is implicitly part of the action digest, so
|
1771
|
+
# even tiny changes in the names or values (like changing case) may result in
|
1772
|
+
# different action cache entries.
|
1691
1773
|
class BuildBazelRemoteExecutionV2PlatformProperty
|
1692
1774
|
include Google::Apis::Core::Hashable
|
1693
1775
|
|
@@ -1712,8 +1794,8 @@ module Google
|
|
1712
1794
|
end
|
1713
1795
|
end
|
1714
1796
|
|
1715
|
-
# Allowed values for priority in ResultsCachePolicy Used for
|
1716
|
-
# and execution valid priority ranges.
|
1797
|
+
# Allowed values for priority in ResultsCachePolicy and ExecutionPolicy Used for
|
1798
|
+
# querying both cache and execution valid priority ranges.
|
1717
1799
|
class BuildBazelRemoteExecutionV2PriorityCapabilities
|
1718
1800
|
include Google::Apis::Core::Hashable
|
1719
1801
|
|
@@ -1736,12 +1818,14 @@ module Google
|
|
1736
1818
|
class BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange
|
1737
1819
|
include Google::Apis::Core::Hashable
|
1738
1820
|
|
1739
|
-
#
|
1821
|
+
# The maximum numeric value for this priority range, which represents the least
|
1822
|
+
# urgent task or shortest retained item.
|
1740
1823
|
# Corresponds to the JSON property `maxPriority`
|
1741
1824
|
# @return [Fixnum]
|
1742
1825
|
attr_accessor :max_priority
|
1743
1826
|
|
1744
|
-
#
|
1827
|
+
# The minimum numeric value for this priority range, which represents the most
|
1828
|
+
# urgent task or longest retained item.
|
1745
1829
|
# Corresponds to the JSON property `minPriority`
|
1746
1830
|
# @return [Fixnum]
|
1747
1831
|
attr_accessor :min_priority
|
@@ -1777,12 +1861,33 @@ module Google
|
|
1777
1861
|
# @return [String]
|
1778
1862
|
attr_accessor :action_id
|
1779
1863
|
|
1864
|
+
# A brief description of the kind of action, for example, CppCompile or GoLink.
|
1865
|
+
# There is no standard agreed set of values for this, and they are expected to
|
1866
|
+
# vary between different client tools.
|
1867
|
+
# Corresponds to the JSON property `actionMnemonic`
|
1868
|
+
# @return [String]
|
1869
|
+
attr_accessor :action_mnemonic
|
1870
|
+
|
1871
|
+
# An identifier for the configuration in which the target was built, e.g. for
|
1872
|
+
# differentiating building host tools or different target platforms. There is no
|
1873
|
+
# expectation that this value will have any particular structure, or equality
|
1874
|
+
# across invocations, though some client tools may offer these guarantees.
|
1875
|
+
# Corresponds to the JSON property `configurationId`
|
1876
|
+
# @return [String]
|
1877
|
+
attr_accessor :configuration_id
|
1878
|
+
|
1780
1879
|
# An identifier to tie multiple tool invocations together. For example, runs of
|
1781
1880
|
# foo_test, bar_test and baz_test on a post-submit of a given patch.
|
1782
1881
|
# Corresponds to the JSON property `correlatedInvocationsId`
|
1783
1882
|
# @return [String]
|
1784
1883
|
attr_accessor :correlated_invocations_id
|
1785
1884
|
|
1885
|
+
# An identifier for the target which produced this action. No guarantees are
|
1886
|
+
# made around how many actions may relate to a single target.
|
1887
|
+
# Corresponds to the JSON property `targetId`
|
1888
|
+
# @return [String]
|
1889
|
+
attr_accessor :target_id
|
1890
|
+
|
1786
1891
|
# Details for the tool used to call the API.
|
1787
1892
|
# Corresponds to the JSON property `toolDetails`
|
1788
1893
|
# @return [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ToolDetails]
|
@@ -1801,7 +1906,10 @@ module Google
|
|
1801
1906
|
# Update properties of this object
|
1802
1907
|
def update!(**args)
|
1803
1908
|
@action_id = args[:action_id] if args.key?(:action_id)
|
1909
|
+
@action_mnemonic = args[:action_mnemonic] if args.key?(:action_mnemonic)
|
1910
|
+
@configuration_id = args[:configuration_id] if args.key?(:configuration_id)
|
1804
1911
|
@correlated_invocations_id = args[:correlated_invocations_id] if args.key?(:correlated_invocations_id)
|
1912
|
+
@target_id = args[:target_id] if args.key?(:target_id)
|
1805
1913
|
@tool_details = args[:tool_details] if args.key?(:tool_details)
|
1806
1914
|
@tool_invocation_id = args[:tool_invocation_id] if args.key?(:tool_invocation_id)
|
1807
1915
|
end
|
@@ -1885,17 +1993,20 @@ module Google
|
|
1885
1993
|
# @return [String]
|
1886
1994
|
attr_accessor :name
|
1887
1995
|
|
1888
|
-
#
|
1996
|
+
# Node properties for FileNodes, DirectoryNodes, and SymlinkNodes. The server is
|
1997
|
+
# responsible for specifying the properties that it accepts.
|
1889
1998
|
# Corresponds to the JSON property `nodeProperties`
|
1890
|
-
# @return [
|
1999
|
+
# @return [Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties]
|
1891
2000
|
attr_accessor :node_properties
|
1892
2001
|
|
1893
2002
|
# The target path of the symlink. The path separator is a forward slash `/`. The
|
1894
2003
|
# target path can be relative to the parent directory of the symlink or it can
|
1895
2004
|
# be an absolute path starting with `/`. Support for absolute paths can be
|
1896
|
-
# checked using the Capabilities API.
|
1897
|
-
#
|
1898
|
-
#
|
2005
|
+
# checked using the Capabilities API. `..` components are allowed anywhere in
|
2006
|
+
# the target path as logical canonicalization may lead to different behavior in
|
2007
|
+
# the presence of directory symlinks (e.g. `foo/../bar` may not be the same as `
|
2008
|
+
# bar`). To reduce potential cache misses, canonicalization is still recommended
|
2009
|
+
# where this is possible without impacting correctness.
|
1899
2010
|
# Corresponds to the JSON property `target`
|
1900
2011
|
# @return [String]
|
1901
2012
|
attr_accessor :target
|
@@ -2048,6 +2159,11 @@ module Google
|
|
2048
2159
|
class GoogleDevtoolsRemotebuildbotCommandDurations
|
2049
2160
|
include Google::Apis::Core::Hashable
|
2050
2161
|
|
2162
|
+
# The time spent to release the CAS blobs used by the task.
|
2163
|
+
# Corresponds to the JSON property `casRelease`
|
2164
|
+
# @return [String]
|
2165
|
+
attr_accessor :cas_release
|
2166
|
+
|
2051
2167
|
# The time spent waiting for Container Manager to assign an asynchronous
|
2052
2168
|
# container for execution.
|
2053
2169
|
# Corresponds to the JSON property `cmWaitForAssignment`
|
@@ -2117,6 +2233,7 @@ module Google
|
|
2117
2233
|
|
2118
2234
|
# Update properties of this object
|
2119
2235
|
def update!(**args)
|
2236
|
+
@cas_release = args[:cas_release] if args.key?(:cas_release)
|
2120
2237
|
@cm_wait_for_assignment = args[:cm_wait_for_assignment] if args.key?(:cm_wait_for_assignment)
|
2121
2238
|
@docker_prep = args[:docker_prep] if args.key?(:docker_prep)
|
2122
2239
|
@docker_prep_start_time = args[:docker_prep_start_time] if args.key?(:docker_prep_start_time)
|
@@ -2137,6 +2254,11 @@ module Google
|
|
2137
2254
|
class GoogleDevtoolsRemotebuildbotCommandEvents
|
2138
2255
|
include Google::Apis::Core::Hashable
|
2139
2256
|
|
2257
|
+
# Indicates if and how Container Manager is being used for task execution.
|
2258
|
+
# Corresponds to the JSON property `cmUsage`
|
2259
|
+
# @return [String]
|
2260
|
+
attr_accessor :cm_usage
|
2261
|
+
|
2140
2262
|
# Indicates whether we are using a cached Docker image (true) or had to pull the
|
2141
2263
|
# Docker image (false) for this command.
|
2142
2264
|
# Corresponds to the JSON property `dockerCacheHit`
|
@@ -2164,6 +2286,12 @@ module Google
|
|
2164
2286
|
# @return [Fixnum]
|
2165
2287
|
attr_accessor :num_warnings
|
2166
2288
|
|
2289
|
+
# Indicates whether output files and/or output directories were found relative
|
2290
|
+
# to the execution root or to the user provided work directory or both or none.
|
2291
|
+
# Corresponds to the JSON property `outputLocation`
|
2292
|
+
# @return [String]
|
2293
|
+
attr_accessor :output_location
|
2294
|
+
|
2167
2295
|
# Indicates whether an asynchronous container was used for execution.
|
2168
2296
|
# Corresponds to the JSON property `usedAsyncContainer`
|
2169
2297
|
# @return [Boolean]
|
@@ -2176,11 +2304,13 @@ module Google
|
|
2176
2304
|
|
2177
2305
|
# Update properties of this object
|
2178
2306
|
def update!(**args)
|
2307
|
+
@cm_usage = args[:cm_usage] if args.key?(:cm_usage)
|
2179
2308
|
@docker_cache_hit = args[:docker_cache_hit] if args.key?(:docker_cache_hit)
|
2180
2309
|
@docker_image_name = args[:docker_image_name] if args.key?(:docker_image_name)
|
2181
2310
|
@input_cache_miss = args[:input_cache_miss] if args.key?(:input_cache_miss)
|
2182
2311
|
@num_errors = args[:num_errors] if args.key?(:num_errors)
|
2183
2312
|
@num_warnings = args[:num_warnings] if args.key?(:num_warnings)
|
2313
|
+
@output_location = args[:output_location] if args.key?(:output_location)
|
2184
2314
|
@used_async_container = args[:used_async_container] if args.key?(:used_async_container)
|
2185
2315
|
end
|
2186
2316
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RemotebuildexecutionV2
|
18
18
|
# Version of the google-apis-remotebuildexecution_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.7.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210322"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -184,6 +184,12 @@ module Google
|
|
184
184
|
include Google::Apis::Core::JsonObjectSupport
|
185
185
|
end
|
186
186
|
|
187
|
+
class BuildBazelRemoteExecutionV2NodeProperties
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
187
193
|
class BuildBazelRemoteExecutionV2NodeProperty
|
188
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
195
|
|
@@ -528,7 +534,9 @@ module Google
|
|
528
534
|
property :do_not_cache, as: 'doNotCache'
|
529
535
|
property :input_root_digest, as: 'inputRootDigest', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2Digest, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2Digest::Representation
|
530
536
|
|
531
|
-
|
537
|
+
property :platform, as: 'platform', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2Platform, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2Platform::Representation
|
538
|
+
|
539
|
+
property :salt, :base64 => true, as: 'salt'
|
532
540
|
property :timeout, as: 'timeout'
|
533
541
|
end
|
534
542
|
end
|
@@ -636,6 +644,7 @@ module Google
|
|
636
644
|
|
637
645
|
collection :digest_function, as: 'digestFunction'
|
638
646
|
property :max_batch_total_size_bytes, :numeric_string => true, as: 'maxBatchTotalSizeBytes'
|
647
|
+
collection :supported_compressor, as: 'supportedCompressor'
|
639
648
|
property :symlink_absolute_path_strategy, as: 'symlinkAbsolutePathStrategy'
|
640
649
|
end
|
641
650
|
end
|
@@ -648,6 +657,7 @@ module Google
|
|
648
657
|
|
649
658
|
collection :output_directories, as: 'outputDirectories'
|
650
659
|
collection :output_files, as: 'outputFiles'
|
660
|
+
collection :output_node_properties, as: 'outputNodeProperties'
|
651
661
|
collection :output_paths, as: 'outputPaths'
|
652
662
|
property :platform, as: 'platform', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2Platform, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2Platform::Representation
|
653
663
|
|
@@ -678,7 +688,7 @@ module Google
|
|
678
688
|
|
679
689
|
collection :files, as: 'files', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2FileNode, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2FileNode::Representation
|
680
690
|
|
681
|
-
|
691
|
+
property :node_properties, as: 'nodeProperties', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties::Representation
|
682
692
|
|
683
693
|
collection :symlinks, as: 'symlinks', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2SymlinkNode, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2SymlinkNode::Representation
|
684
694
|
|
@@ -735,6 +745,7 @@ module Google
|
|
735
745
|
class BuildBazelRemoteExecutionV2ExecutedActionMetadata
|
736
746
|
# @private
|
737
747
|
class Representation < Google::Apis::Core::JsonRepresentation
|
748
|
+
collection :auxiliary_metadata, as: 'auxiliaryMetadata'
|
738
749
|
property :execution_completed_timestamp, as: 'executionCompletedTimestamp'
|
739
750
|
property :execution_start_timestamp, as: 'executionStartTimestamp'
|
740
751
|
property :input_fetch_completed_timestamp, as: 'inputFetchCompletedTimestamp'
|
@@ -773,7 +784,7 @@ module Google
|
|
773
784
|
|
774
785
|
property :is_executable, as: 'isExecutable'
|
775
786
|
property :name, as: 'name'
|
776
|
-
|
787
|
+
property :node_properties, as: 'nodeProperties', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties::Representation
|
777
788
|
|
778
789
|
end
|
779
790
|
end
|
@@ -812,6 +823,16 @@ module Google
|
|
812
823
|
end
|
813
824
|
end
|
814
825
|
|
826
|
+
class BuildBazelRemoteExecutionV2NodeProperties
|
827
|
+
# @private
|
828
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
829
|
+
property :mtime, as: 'mtime'
|
830
|
+
collection :properties, as: 'properties', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperty, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperty::Representation
|
831
|
+
|
832
|
+
property :unix_mode, as: 'unixMode'
|
833
|
+
end
|
834
|
+
end
|
835
|
+
|
815
836
|
class BuildBazelRemoteExecutionV2NodeProperty
|
816
837
|
# @private
|
817
838
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -836,7 +857,7 @@ module Google
|
|
836
857
|
property :digest, as: 'digest', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2Digest, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2Digest::Representation
|
837
858
|
|
838
859
|
property :is_executable, as: 'isExecutable'
|
839
|
-
|
860
|
+
property :node_properties, as: 'nodeProperties', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties::Representation
|
840
861
|
|
841
862
|
property :path, as: 'path'
|
842
863
|
end
|
@@ -845,7 +866,7 @@ module Google
|
|
845
866
|
class BuildBazelRemoteExecutionV2OutputSymlink
|
846
867
|
# @private
|
847
868
|
class Representation < Google::Apis::Core::JsonRepresentation
|
848
|
-
|
869
|
+
property :node_properties, as: 'nodeProperties', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties::Representation
|
849
870
|
|
850
871
|
property :path, as: 'path'
|
851
872
|
property :target, as: 'target'
|
@@ -888,7 +909,10 @@ module Google
|
|
888
909
|
# @private
|
889
910
|
class Representation < Google::Apis::Core::JsonRepresentation
|
890
911
|
property :action_id, as: 'actionId'
|
912
|
+
property :action_mnemonic, as: 'actionMnemonic'
|
913
|
+
property :configuration_id, as: 'configurationId'
|
891
914
|
property :correlated_invocations_id, as: 'correlatedInvocationsId'
|
915
|
+
property :target_id, as: 'targetId'
|
892
916
|
property :tool_details, as: 'toolDetails', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ToolDetails, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ToolDetails::Representation
|
893
917
|
|
894
918
|
property :tool_invocation_id, as: 'toolInvocationId'
|
@@ -922,7 +946,7 @@ module Google
|
|
922
946
|
# @private
|
923
947
|
class Representation < Google::Apis::Core::JsonRepresentation
|
924
948
|
property :name, as: 'name'
|
925
|
-
|
949
|
+
property :node_properties, as: 'nodeProperties', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2NodeProperties::Representation
|
926
950
|
|
927
951
|
property :target, as: 'target'
|
928
952
|
end
|
@@ -965,6 +989,7 @@ module Google
|
|
965
989
|
class GoogleDevtoolsRemotebuildbotCommandDurations
|
966
990
|
# @private
|
967
991
|
class Representation < Google::Apis::Core::JsonRepresentation
|
992
|
+
property :cas_release, as: 'casRelease'
|
968
993
|
property :cm_wait_for_assignment, as: 'cmWaitForAssignment'
|
969
994
|
property :docker_prep, as: 'dockerPrep'
|
970
995
|
property :docker_prep_start_time, as: 'dockerPrepStartTime'
|
@@ -983,11 +1008,13 @@ module Google
|
|
983
1008
|
class GoogleDevtoolsRemotebuildbotCommandEvents
|
984
1009
|
# @private
|
985
1010
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1011
|
+
property :cm_usage, as: 'cmUsage'
|
986
1012
|
property :docker_cache_hit, as: 'dockerCacheHit'
|
987
1013
|
property :docker_image_name, as: 'dockerImageName'
|
988
1014
|
property :input_cache_miss, as: 'inputCacheMiss'
|
989
1015
|
property :num_errors, :numeric_string => true, as: 'numErrors'
|
990
1016
|
property :num_warnings, :numeric_string => true, as: 'numWarnings'
|
1017
|
+
property :output_location, as: 'outputLocation'
|
991
1018
|
property :used_async_container, as: 'usedAsyncContainer'
|
992
1019
|
end
|
993
1020
|
end
|
@@ -52,7 +52,7 @@ module Google
|
|
52
52
|
# Retrieve a cached execution result. Implementations SHOULD ensure that any
|
53
53
|
# blobs referenced from the ContentAddressableStorage are available at the time
|
54
54
|
# of returning the ActionResult and will be for some period of time afterwards.
|
55
|
-
# The
|
55
|
+
# The lifetimes of the referenced blobs SHOULD be increased if necessary and
|
56
56
|
# applicable. Errors: * `NOT_FOUND`: The requested `ActionResult` is not in the
|
57
57
|
# cache.
|
58
58
|
# @param [String] instance_name
|
@@ -67,7 +67,8 @@ module Google
|
|
67
67
|
# The size of the blob, in bytes.
|
68
68
|
# @param [Array<String>, String] inline_output_files
|
69
69
|
# A hint to the server to inline the contents of the listed output files. Each
|
70
|
-
# path needs to exactly match one path in `
|
70
|
+
# path needs to exactly match one file path in either `output_paths` or `
|
71
|
+
# output_files` (DEPRECATED since v2.1) in the Command message.
|
71
72
|
# @param [Boolean] inline_stderr
|
72
73
|
# A hint to the server to request inlining stderr in the ActionResult message.
|
73
74
|
# @param [Boolean] inline_stdout
|
@@ -107,11 +108,12 @@ module Google
|
|
107
108
|
# Upload a new execution result. In order to allow the server to perform access
|
108
109
|
# control based on the type of action, and to assist with client debugging, the
|
109
110
|
# client MUST first upload the Action that produced the result, along with its
|
110
|
-
# Command, into the `ContentAddressableStorage`.
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
111
|
+
# Command, into the `ContentAddressableStorage`. Server implementations MAY
|
112
|
+
# modify the `UpdateActionResultRequest.action_result` and return an equivalent
|
113
|
+
# value. Errors: * `INVALID_ARGUMENT`: One or more arguments are invalid. * `
|
114
|
+
# FAILED_PRECONDITION`: One or more errors occurred in updating the action
|
115
|
+
# result, such as a missing command or action. * `RESOURCE_EXHAUSTED`: There is
|
116
|
+
# insufficient storage space to add the entry to the cache.
|
115
117
|
# @param [String] instance_name
|
116
118
|
# The instance of the execution system to operate against. A server may support
|
117
119
|
# multiple instances of the execution system (with their own workers, storage,
|
@@ -201,7 +203,10 @@ module Google
|
|
201
203
|
# additionally send a PreconditionFailure error detail where, for each requested
|
202
204
|
# blob not present in the CAS, there is a `Violation` with a `type` of `MISSING`
|
203
205
|
# and a `subject` of `"blobs/`hash`/`size`"` indicating the digest of the
|
204
|
-
# missing blob.
|
206
|
+
# missing blob. The server does not need to guarantee that a call to this method
|
207
|
+
# leads to at most one execution of the action. The server MAY execute the
|
208
|
+
# action multiple times, potentially in parallel. These redundant executions MAY
|
209
|
+
# continue to run, even if the operation is completed.
|
205
210
|
# @param [String] instance_name
|
206
211
|
# The instance of the execution system to operate against. A server may support
|
207
212
|
# multiple instances of the execution system (with their own workers, storage,
|
@@ -329,7 +334,7 @@ module Google
|
|
329
334
|
|
330
335
|
# Determine if blobs are present in the CAS. Clients can use this API before
|
331
336
|
# uploading blobs to determine which ones are already present in the CAS and do
|
332
|
-
# not need to be uploaded again. Servers SHOULD increase the
|
337
|
+
# not need to be uploaded again. Servers SHOULD increase the lifetimes of the
|
333
338
|
# referenced blobs if necessary and applicable. There are no method-specific
|
334
339
|
# errors.
|
335
340
|
# @param [String] instance_name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-remotebuildexecution_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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: 2021-
|
11
|
+
date: 2021-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-remotebuildexecution_v2/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-remotebuildexecution_v2/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-remotebuildexecution_v2/v0.7.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-remotebuildexecution_v2
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.13
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Remote Build Execution API V2
|