google-api-client 0.36.0 → 0.36.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +69 -0
  3. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  4. data/generated/google/apis/androidenterprise_v1/classes.rb +2 -1
  5. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  6. data/generated/google/apis/androidmanagement_v1/classes.rb +7 -4
  7. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  8. data/generated/google/apis/androidpublisher_v3/classes.rb +32 -32
  9. data/generated/google/apis/androidpublisher_v3/representations.rb +17 -17
  10. data/generated/google/apis/bigquery_v2.rb +1 -1
  11. data/generated/google/apis/bigquery_v2/classes.rb +2 -1
  12. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  13. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +81 -41
  14. data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +2 -0
  15. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +8 -8
  16. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  17. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +60 -30
  18. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  19. data/generated/google/apis/bigtableadmin_v2/classes.rb +75 -40
  20. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
  21. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  22. data/generated/google/apis/binaryauthorization_v1/classes.rb +75 -41
  23. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  24. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +75 -41
  25. data/generated/google/apis/chat_v1.rb +1 -1
  26. data/generated/google/apis/chat_v1/service.rb +5 -2
  27. data/generated/google/apis/cloudasset_v1.rb +1 -1
  28. data/generated/google/apis/cloudasset_v1/classes.rb +206 -0
  29. data/generated/google/apis/cloudasset_v1/representations.rb +101 -0
  30. data/generated/google/apis/cloudasset_v1/service.rb +174 -0
  31. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  32. data/generated/google/apis/cloudbilling_v1/classes.rb +59 -41
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +9 -5
  35. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  36. data/generated/google/apis/cloudfunctions_v1/classes.rb +75 -41
  37. data/generated/google/apis/cloudiot_v1.rb +1 -1
  38. data/generated/google/apis/cloudiot_v1/classes.rb +75 -41
  39. data/generated/google/apis/cloudkms_v1.rb +1 -1
  40. data/generated/google/apis/cloudkms_v1/classes.rb +104 -41
  41. data/generated/google/apis/cloudkms_v1/representations.rb +15 -0
  42. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  43. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +75 -41
  44. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  45. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +75 -41
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
  47. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  48. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +75 -41
  49. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +75 -41
  51. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  52. data/generated/google/apis/cloudsearch_v1/classes.rb +3 -2
  53. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  54. data/generated/google/apis/cloudtasks_v2/classes.rb +81 -47
  55. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  56. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +75 -41
  57. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  58. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +81 -47
  59. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v2/classes.rb +5 -3
  61. data/generated/google/apis/compute_alpha.rb +1 -1
  62. data/generated/google/apis/compute_alpha/classes.rb +68 -47
  63. data/generated/google/apis/compute_alpha/representations.rb +2 -1
  64. data/generated/google/apis/compute_alpha/service.rb +54 -0
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +597 -40
  67. data/generated/google/apis/compute_beta/representations.rb +164 -0
  68. data/generated/google/apis/compute_beta/service.rb +343 -1
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +54 -39
  71. data/generated/google/apis/compute_v1/representations.rb +1 -0
  72. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  73. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +75 -41
  74. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  75. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +77 -43
  76. data/generated/google/apis/containeranalysis_v1beta1/service.rb +26 -20
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +46 -42
  79. data/generated/google/apis/content_v2_1.rb +1 -1
  80. data/generated/google/apis/content_v2_1/classes.rb +46 -42
  81. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  82. data/generated/google/apis/datacatalog_v1beta1/classes.rb +75 -41
  83. data/generated/google/apis/datastore_v1.rb +1 -1
  84. data/generated/google/apis/datastore_v1/classes.rb +16 -22
  85. data/generated/google/apis/datastore_v1/service.rb +10 -10
  86. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  87. data/generated/google/apis/datastore_v1beta3/classes.rb +5 -4
  88. data/generated/google/apis/datastore_v1beta3/service.rb +8 -8
  89. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  90. data/generated/google/apis/dfareporting_v3_4/classes.rb +88 -88
  91. data/generated/google/apis/dfareporting_v3_4/representations.rb +39 -39
  92. data/generated/google/apis/dialogflow_v2.rb +1 -1
  93. data/generated/google/apis/dialogflow_v2/classes.rb +1 -1
  94. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  95. data/generated/google/apis/dialogflow_v2beta1/classes.rb +1 -1
  96. data/generated/google/apis/dlp_v2.rb +1 -1
  97. data/generated/google/apis/dlp_v2/classes.rb +77 -0
  98. data/generated/google/apis/dlp_v2/representations.rb +42 -0
  99. data/generated/google/apis/file_v1.rb +1 -1
  100. data/generated/google/apis/file_v1/classes.rb +59 -12
  101. data/generated/google/apis/file_v1/representations.rb +19 -2
  102. data/generated/google/apis/file_v1/service.rb +8 -4
  103. data/generated/google/apis/file_v1beta1.rb +1 -1
  104. data/generated/google/apis/file_v1beta1/classes.rb +59 -12
  105. data/generated/google/apis/file_v1beta1/representations.rb +19 -2
  106. data/generated/google/apis/file_v1beta1/service.rb +8 -4
  107. data/generated/google/apis/firebaserules_v1.rb +1 -1
  108. data/generated/google/apis/firebaserules_v1/classes.rb +75 -0
  109. data/generated/google/apis/firebaserules_v1/representations.rb +35 -0
  110. data/generated/google/apis/gmail_v1.rb +1 -1
  111. data/generated/google/apis/gmail_v1/classes.rb +6 -2
  112. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  113. data/generated/google/apis/iamcredentials_v1/classes.rb +7 -4
  114. data/generated/google/apis/iamcredentials_v1/service.rb +4 -4
  115. data/generated/google/apis/iap_v1.rb +1 -1
  116. data/generated/google/apis/iap_v1/classes.rb +225 -40
  117. data/generated/google/apis/iap_v1/representations.rb +84 -0
  118. data/generated/google/apis/iap_v1/service.rb +292 -0
  119. data/generated/google/apis/iap_v1beta1.rb +1 -1
  120. data/generated/google/apis/iap_v1beta1/classes.rb +75 -40
  121. data/generated/google/apis/logging_v2.rb +1 -1
  122. data/generated/google/apis/logging_v2/classes.rb +29 -41
  123. data/generated/google/apis/ml_v1.rb +1 -1
  124. data/generated/google/apis/ml_v1/classes.rb +14 -21
  125. data/generated/google/apis/ml_v1/service.rb +15 -18
  126. data/generated/google/apis/monitoring_v1.rb +1 -1
  127. data/generated/google/apis/monitoring_v1/classes.rb +15 -11
  128. data/generated/google/apis/monitoring_v3.rb +1 -1
  129. data/generated/google/apis/monitoring_v3/classes.rb +6 -10
  130. data/generated/google/apis/monitoring_v3/representations.rb +0 -1
  131. data/generated/google/apis/{fusiontables_v1.rb → policytroubleshooter_v1.rb} +10 -13
  132. data/generated/google/apis/policytroubleshooter_v1/classes.rb +700 -0
  133. data/generated/google/apis/policytroubleshooter_v1/representations.rb +203 -0
  134. data/generated/google/apis/policytroubleshooter_v1/service.rb +90 -0
  135. data/generated/google/apis/pubsub_v1.rb +1 -1
  136. data/generated/google/apis/pubsub_v1/classes.rb +75 -41
  137. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  138. data/generated/google/apis/pubsub_v1beta2/classes.rb +75 -41
  139. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  140. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
  141. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  142. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
  143. data/generated/google/apis/run_v1.rb +1 -1
  144. data/generated/google/apis/run_v1/classes.rb +75 -41
  145. data/generated/google/apis/run_v1alpha1.rb +1 -1
  146. data/generated/google/apis/run_v1alpha1/classes.rb +82 -41
  147. data/generated/google/apis/run_v1alpha1/representations.rb +2 -0
  148. data/generated/google/apis/{fusiontables_v2.rb → secretmanager_v1beta1.rb} +11 -14
  149. data/generated/google/apis/secretmanager_v1beta1/classes.rb +936 -0
  150. data/generated/google/apis/secretmanager_v1beta1/representations.rb +388 -0
  151. data/generated/google/apis/secretmanager_v1beta1/service.rb +674 -0
  152. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  153. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +85 -1
  154. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -0
  155. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  156. data/generated/google/apis/servicecontrol_v1/classes.rb +4 -3
  157. data/generated/google/apis/servicecontrol_v1/service.rb +2 -1
  158. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  159. data/generated/google/apis/servicenetworking_v1/classes.rb +38 -1
  160. data/generated/google/apis/servicenetworking_v1/representations.rb +14 -0
  161. data/generated/google/apis/servicenetworking_v1/service.rb +35 -0
  162. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  163. data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -1
  164. data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -0
  165. data/generated/google/apis/serviceusage_v1.rb +1 -1
  166. data/generated/google/apis/serviceusage_v1/classes.rb +16 -1
  167. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  168. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  169. data/generated/google/apis/serviceusage_v1beta1/classes.rb +16 -1
  170. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  171. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  172. data/generated/google/apis/storagetransfer_v1/service.rb +4 -2
  173. data/generated/google/apis/testing_v1.rb +1 -1
  174. data/generated/google/apis/testing_v1/classes.rb +2 -2
  175. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  176. data/generated/google/apis/toolresults_v1beta3/classes.rb +374 -2
  177. data/generated/google/apis/toolresults_v1beta3/representations.rb +109 -0
  178. data/generated/google/apis/toolresults_v1beta3/service.rb +98 -0
  179. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  180. data/lib/google/apis/version.rb +1 -1
  181. metadata +11 -11
  182. data/generated/google/apis/fusiontables_v1/classes.rb +0 -977
  183. data/generated/google/apis/fusiontables_v1/representations.rb +0 -449
  184. data/generated/google/apis/fusiontables_v1/service.rb +0 -1307
  185. data/generated/google/apis/fusiontables_v2/classes.rb +0 -1049
  186. data/generated/google/apis/fusiontables_v2/representations.rb +0 -457
  187. data/generated/google/apis/fusiontables_v2/service.rb +0 -1431
@@ -531,6 +531,7 @@ module Google
531
531
  class Representation < Google::Apis::Core::JsonRepresentation
532
532
  property :address, as: 'address'
533
533
  property :deadline, as: 'deadline'
534
+ property :disable_auth, as: 'disableAuth'
534
535
  property :jwt_audience, as: 'jwtAudience'
535
536
  property :min_deadline, as: 'minDeadline'
536
537
  property :operation_deadline, as: 'operationDeadline'
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-usage/
28
28
  module ServiceusageV1beta1
29
29
  VERSION = 'V1beta1'
30
- REVISION = '20191203'
30
+ REVISION = '20191206'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -350,7 +350,21 @@ module Google
350
350
  # @return [Float]
351
351
  attr_accessor :deadline
352
352
 
353
- # The JWT audience is used when generating a JWT id token for the backend.
353
+ # When disable_auth is false, a JWT ID token will be generated with the
354
+ # value from BackendRule.address as jwt_audience, overrode to the HTTP
355
+ # "Authorization" request header and sent to the backend.
356
+ # When disable_auth is true, a JWT ID token won't be generated and the
357
+ # original "Authorization" HTTP header will be preserved. If the header is
358
+ # used to carry the original token and is expected by the backend, this
359
+ # field must be set to true to preserve the header.
360
+ # Corresponds to the JSON property `disableAuth`
361
+ # @return [Boolean]
362
+ attr_accessor :disable_auth
363
+ alias_method :disable_auth?, :disable_auth
364
+
365
+ # The JWT audience is used when generating a JWT ID token for the backend.
366
+ # This ID token will be added in the HTTP "authorization" header, and sent
367
+ # to the backend.
354
368
  # Corresponds to the JSON property `jwtAudience`
355
369
  # @return [String]
356
370
  attr_accessor :jwt_audience
@@ -386,6 +400,7 @@ module Google
386
400
  def update!(**args)
387
401
  @address = args[:address] if args.key?(:address)
388
402
  @deadline = args[:deadline] if args.key?(:deadline)
403
+ @disable_auth = args[:disable_auth] if args.key?(:disable_auth)
389
404
  @jwt_audience = args[:jwt_audience] if args.key?(:jwt_audience)
390
405
  @min_deadline = args[:min_deadline] if args.key?(:min_deadline)
391
406
  @operation_deadline = args[:operation_deadline] if args.key?(:operation_deadline)
@@ -537,6 +537,7 @@ module Google
537
537
  class Representation < Google::Apis::Core::JsonRepresentation
538
538
  property :address, as: 'address'
539
539
  property :deadline, as: 'deadline'
540
+ property :disable_auth, as: 'disableAuth'
540
541
  property :jwt_audience, as: 'jwtAudience'
541
542
  property :min_deadline, as: 'minDeadline'
542
543
  property :operation_deadline, as: 'operationDeadline'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/storage-transfer/docs
27
27
  module StoragetransferV1
28
28
  VERSION = 'V1'
29
- REVISION = '20191118'
29
+ REVISION = '20191206'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -194,8 +194,10 @@ module Google
194
194
  end
195
195
 
196
196
  # Updates a transfer job. Updating a job's transfer spec does not affect
197
- # transfer operations that are running already. Updating the scheduling
198
- # of a job is not allowed.
197
+ # transfer operations that are running already. Updating a job's schedule
198
+ # is not allowed.
199
+ # Note: The job's `status` field can be modified using this RPC (for example,
200
+ # to set a job's status to `DELETED`, `DISABLED`, or `ENABLED`).
199
201
  # @param [String] job_name
200
202
  # Required. The name of job to update.
201
203
  # @param [Google::Apis::StoragetransferV1::UpdateTransferJobRequest] update_transfer_job_request_object
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/cloud-test-lab/
27
27
  module TestingV1
28
28
  VERSION = 'V1'
29
- REVISION = '20191021'
29
+ REVISION = '20191203'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1511,7 +1511,7 @@ module Google
1511
1511
  include Google::Apis::Core::Hashable
1512
1512
 
1513
1513
  # Required. Group of packages, classes, and/or test methods to be run for
1514
- # each shard. The number of shard_test_targets must be > 1, and <= 50.
1514
+ # each shard. The number of shard_test_targets must be >= 1 and <= 50.
1515
1515
  # Corresponds to the JSON property `testTargetsForShard`
1516
1516
  # @return [Array<Google::Apis::TestingV1::TestTargetsForShard>]
1517
1517
  attr_accessor :test_targets_for_shard
@@ -2458,7 +2458,7 @@ module Google
2458
2458
  class UniformSharding
2459
2459
  include Google::Apis::Core::Hashable
2460
2460
 
2461
- # Required. Total number of shards. The number must be > 1, and <= 50.
2461
+ # Required. Total number of shards. The number must be >= 1 and <= 50.
2462
2462
  # Corresponds to the JSON property `numShards`
2463
2463
  # @return [Fixnum]
2464
2464
  attr_accessor :num_shards
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://firebase.google.com/docs/test-lab/
26
26
  module ToolresultsV1beta3
27
27
  VERSION = 'V1beta3'
28
- REVISION = '20190924'
28
+ REVISION = '20191203'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -535,6 +535,229 @@ module Google
535
535
  end
536
536
  end
537
537
 
538
+ # An Environment represents the set of test runs (Steps) from the parent
539
+ # Execution that are configured with the same set of dimensions (Model, Version,
540
+ # Locale, and Orientation). Multiple such runs occur particularly because of
541
+ # features like sharding (splitting up a test suite to run in parallel across
542
+ # devices) and reruns (running a test multiple times to check for different
543
+ # outcomes).
544
+ class Environment
545
+ include Google::Apis::Core::Hashable
546
+
547
+ # A Timestamp represents a point in time independent of any time zone or local
548
+ # calendar, encoded as a count of seconds and fractions of seconds at nanosecond
549
+ # resolution. The count is relative to an epoch at UTC midnight on January 1,
550
+ # 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar
551
+ # backwards to year one.
552
+ # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
553
+ # second table is needed for interpretation, using a [24-hour linear smear](
554
+ # https://developers.google.com/time/smear).
555
+ # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
556
+ # restricting to that range, we ensure that we can convert to and from [RFC 3339]
557
+ # (https://www.ietf.org/rfc/rfc3339.txt) date strings.
558
+ # # Examples
559
+ # Example 1: Compute Timestamp from POSIX `time()`.
560
+ # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
561
+ # Example 2: Compute Timestamp from POSIX `gettimeofday()`.
562
+ # struct timeval tv; gettimeofday(&tv, NULL);
563
+ # Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.
564
+ # tv_usec * 1000);
565
+ # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
566
+ # FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = (((UINT64)ft.
567
+ # dwHighDateTime) << 32) | ft.dwLowDateTime;
568
+ # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z // is
569
+ # 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp
570
+ # timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
571
+ # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
572
+ # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
573
+ # long millis = System.currentTimeMillis();
574
+ # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .
575
+ # setNanos((int) ((millis % 1000) * 1000000)).build();
576
+ # Example 5: Compute Timestamp from current time in Python.
577
+ # timestamp = Timestamp() timestamp.GetCurrentTime()
578
+ # # JSON Mapping
579
+ # In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](
580
+ # https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is "`year`-`
581
+ # month`-`day`T`hour`:`min`:`sec`[.`frac_sec`]Z" where `year` is always
582
+ # expressed using four digits while `month`, `day`, `hour`, `min`, and `sec` are
583
+ # zero-padded to two digits each. The fractional seconds, which can go up to 9
584
+ # digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix
585
+ # indicates the timezone ("UTC"); the timezone is required. A proto3 JSON
586
+ # serializer should always use UTC (as indicated by "Z") when printing the
587
+ # Timestamp type and a proto3 JSON parser should be able to accept both UTC and
588
+ # other timezones (as indicated by an offset).
589
+ # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on
590
+ # January 15, 2017.
591
+ # In JavaScript, one can convert a Date object to this format using the standard
592
+ # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/
593
+ # Reference/Global_Objects/Date/toISOString) method. In Python, a standard `
594
+ # datetime.datetime` object can be converted to this format using [`strftime`](
595
+ # https://docs.python.org/2/library/time.html#time.strftime) with the time
596
+ # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda
597
+ # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
598
+ # org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a
599
+ # formatter capable of generating timestamps in this format.
600
+ # Corresponds to the JSON property `completionTime`
601
+ # @return [Google::Apis::ToolresultsV1beta3::Timestamp]
602
+ attr_accessor :completion_time
603
+
604
+ # A Timestamp represents a point in time independent of any time zone or local
605
+ # calendar, encoded as a count of seconds and fractions of seconds at nanosecond
606
+ # resolution. The count is relative to an epoch at UTC midnight on January 1,
607
+ # 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar
608
+ # backwards to year one.
609
+ # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
610
+ # second table is needed for interpretation, using a [24-hour linear smear](
611
+ # https://developers.google.com/time/smear).
612
+ # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
613
+ # restricting to that range, we ensure that we can convert to and from [RFC 3339]
614
+ # (https://www.ietf.org/rfc/rfc3339.txt) date strings.
615
+ # # Examples
616
+ # Example 1: Compute Timestamp from POSIX `time()`.
617
+ # Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0);
618
+ # Example 2: Compute Timestamp from POSIX `gettimeofday()`.
619
+ # struct timeval tv; gettimeofday(&tv, NULL);
620
+ # Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.
621
+ # tv_usec * 1000);
622
+ # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
623
+ # FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = (((UINT64)ft.
624
+ # dwHighDateTime) << 32) | ft.dwLowDateTime;
625
+ # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z // is
626
+ # 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp
627
+ # timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
628
+ # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
629
+ # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
630
+ # long millis = System.currentTimeMillis();
631
+ # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .
632
+ # setNanos((int) ((millis % 1000) * 1000000)).build();
633
+ # Example 5: Compute Timestamp from current time in Python.
634
+ # timestamp = Timestamp() timestamp.GetCurrentTime()
635
+ # # JSON Mapping
636
+ # In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](
637
+ # https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is "`year`-`
638
+ # month`-`day`T`hour`:`min`:`sec`[.`frac_sec`]Z" where `year` is always
639
+ # expressed using four digits while `month`, `day`, `hour`, `min`, and `sec` are
640
+ # zero-padded to two digits each. The fractional seconds, which can go up to 9
641
+ # digits (i.e. up to 1 nanosecond resolution), are optional. The "Z" suffix
642
+ # indicates the timezone ("UTC"); the timezone is required. A proto3 JSON
643
+ # serializer should always use UTC (as indicated by "Z") when printing the
644
+ # Timestamp type and a proto3 JSON parser should be able to accept both UTC and
645
+ # other timezones (as indicated by an offset).
646
+ # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past 01:30 UTC on
647
+ # January 15, 2017.
648
+ # In JavaScript, one can convert a Date object to this format using the standard
649
+ # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/
650
+ # Reference/Global_Objects/Date/toISOString) method. In Python, a standard `
651
+ # datetime.datetime` object can be converted to this format using [`strftime`](
652
+ # https://docs.python.org/2/library/time.html#time.strftime) with the time
653
+ # format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda
654
+ # Time's [`ISODateTimeFormat.dateTime()`]( http://www.joda.org/joda-time/apidocs/
655
+ # org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D ) to obtain a
656
+ # formatter capable of generating timestamps in this format.
657
+ # Corresponds to the JSON property `creationTime`
658
+ # @return [Google::Apis::ToolresultsV1beta3::Timestamp]
659
+ attr_accessor :creation_time
660
+
661
+ # Dimension values describing the environment. Dimension values always consist
662
+ # of "Model", "Version", "Locale", and "Orientation".
663
+ # - In response: always set - In create request: always set - In update request:
664
+ # never set
665
+ # Corresponds to the JSON property `dimensionValue`
666
+ # @return [Array<Google::Apis::ToolresultsV1beta3::EnvironmentDimensionValueEntry>]
667
+ attr_accessor :dimension_value
668
+
669
+ # A short human-readable name to display in the UI. Maximum of 100 characters.
670
+ # For example: Nexus 5, API 27.
671
+ # Corresponds to the JSON property `displayName`
672
+ # @return [String]
673
+ attr_accessor :display_name
674
+
675
+ # Output only. An Environment id.
676
+ # Corresponds to the JSON property `environmentId`
677
+ # @return [String]
678
+ attr_accessor :environment_id
679
+
680
+ # Merged test result for environment.
681
+ # If the environment has only one step (no reruns or shards), then the merged
682
+ # result is the same as the step result. If the environment has multiple shards
683
+ # and/or reruns, then the results of shards and reruns that belong to the same
684
+ # environment are merged into one environment result.
685
+ # Corresponds to the JSON property `environmentResult`
686
+ # @return [Google::Apis::ToolresultsV1beta3::MergedResult]
687
+ attr_accessor :environment_result
688
+
689
+ # Output only. An Execution id.
690
+ # Corresponds to the JSON property `executionId`
691
+ # @return [String]
692
+ attr_accessor :execution_id
693
+
694
+ # Output only. A History id.
695
+ # Corresponds to the JSON property `historyId`
696
+ # @return [String]
697
+ attr_accessor :history_id
698
+
699
+ # Output only. A Project id.
700
+ # Corresponds to the JSON property `projectId`
701
+ # @return [String]
702
+ attr_accessor :project_id
703
+
704
+ # The storage for test results.
705
+ # Corresponds to the JSON property `resultsStorage`
706
+ # @return [Google::Apis::ToolresultsV1beta3::ResultsStorage]
707
+ attr_accessor :results_storage
708
+
709
+ # Output only. Summaries of shards.
710
+ # Only one shard will present unless sharding feature is enabled in
711
+ # TestExecutionService.
712
+ # Corresponds to the JSON property `shardSummaries`
713
+ # @return [Array<Google::Apis::ToolresultsV1beta3::ShardSummary>]
714
+ attr_accessor :shard_summaries
715
+
716
+ def initialize(**args)
717
+ update!(**args)
718
+ end
719
+
720
+ # Update properties of this object
721
+ def update!(**args)
722
+ @completion_time = args[:completion_time] if args.key?(:completion_time)
723
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
724
+ @dimension_value = args[:dimension_value] if args.key?(:dimension_value)
725
+ @display_name = args[:display_name] if args.key?(:display_name)
726
+ @environment_id = args[:environment_id] if args.key?(:environment_id)
727
+ @environment_result = args[:environment_result] if args.key?(:environment_result)
728
+ @execution_id = args[:execution_id] if args.key?(:execution_id)
729
+ @history_id = args[:history_id] if args.key?(:history_id)
730
+ @project_id = args[:project_id] if args.key?(:project_id)
731
+ @results_storage = args[:results_storage] if args.key?(:results_storage)
732
+ @shard_summaries = args[:shard_summaries] if args.key?(:shard_summaries)
733
+ end
734
+ end
735
+
736
+ #
737
+ class EnvironmentDimensionValueEntry
738
+ include Google::Apis::Core::Hashable
739
+
740
+ #
741
+ # Corresponds to the JSON property `key`
742
+ # @return [String]
743
+ attr_accessor :key
744
+
745
+ #
746
+ # Corresponds to the JSON property `value`
747
+ # @return [String]
748
+ attr_accessor :value
749
+
750
+ def initialize(**args)
751
+ update!(**args)
752
+ end
753
+
754
+ # Update properties of this object
755
+ def update!(**args)
756
+ @key = args[:key] if args.key?(:key)
757
+ @value = args[:value] if args.key?(:value)
758
+ end
759
+ end
760
+
538
761
  # An Execution represents a collection of Steps. For instance, it could
539
762
  # represent: - a mobile test executed across a range of device configurations -
540
763
  # a jenkins job with a build step followed by a test step
@@ -1090,6 +1313,54 @@ module Google
1090
1313
  end
1091
1314
  end
1092
1315
 
1316
+ # Response message for EnvironmentService.ListEnvironments.
1317
+ class ListEnvironmentsResponse
1318
+ include Google::Apis::Core::Hashable
1319
+
1320
+ # Environments.
1321
+ # Always set.
1322
+ # Corresponds to the JSON property `environments`
1323
+ # @return [Array<Google::Apis::ToolresultsV1beta3::Environment>]
1324
+ attr_accessor :environments
1325
+
1326
+ # A Execution id
1327
+ # Always set.
1328
+ # Corresponds to the JSON property `executionId`
1329
+ # @return [String]
1330
+ attr_accessor :execution_id
1331
+
1332
+ # A History id.
1333
+ # Always set.
1334
+ # Corresponds to the JSON property `historyId`
1335
+ # @return [String]
1336
+ attr_accessor :history_id
1337
+
1338
+ # A continuation token to resume the query at the next item.
1339
+ # Will only be set if there are more Environments to fetch.
1340
+ # Corresponds to the JSON property `nextPageToken`
1341
+ # @return [String]
1342
+ attr_accessor :next_page_token
1343
+
1344
+ # A Project id.
1345
+ # Always set.
1346
+ # Corresponds to the JSON property `projectId`
1347
+ # @return [String]
1348
+ attr_accessor :project_id
1349
+
1350
+ def initialize(**args)
1351
+ update!(**args)
1352
+ end
1353
+
1354
+ # Update properties of this object
1355
+ def update!(**args)
1356
+ @environments = args[:environments] if args.key?(:environments)
1357
+ @execution_id = args[:execution_id] if args.key?(:execution_id)
1358
+ @history_id = args[:history_id] if args.key?(:history_id)
1359
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1360
+ @project_id = args[:project_id] if args.key?(:project_id)
1361
+ end
1362
+ end
1363
+
1093
1364
  #
1094
1365
  class ListExecutionsResponse
1095
1366
  include Google::Apis::Core::Hashable
@@ -1322,6 +1593,50 @@ module Google
1322
1593
  end
1323
1594
  end
1324
1595
 
1596
+ # Merged test result for environment.
1597
+ # If the environment has only one step (no reruns or shards), then the merged
1598
+ # result is the same as the step result. If the environment has multiple shards
1599
+ # and/or reruns, then the results of shards and reruns that belong to the same
1600
+ # environment are merged into one environment result.
1601
+ class MergedResult
1602
+ include Google::Apis::Core::Hashable
1603
+
1604
+ # Interprets a result so that humans and machines can act on it.
1605
+ # Corresponds to the JSON property `outcome`
1606
+ # @return [Google::Apis::ToolresultsV1beta3::Outcome]
1607
+ attr_accessor :outcome
1608
+
1609
+ # State of the resource
1610
+ # Corresponds to the JSON property `state`
1611
+ # @return [String]
1612
+ attr_accessor :state
1613
+
1614
+ # The combined and rolled-up result of each test suite that was run as part of
1615
+ # this environment.
1616
+ # Combining: When the test cases from a suite are run in different steps (
1617
+ # sharding), the results are added back together in one overview. (e.g., if
1618
+ # shard1 has 2 failures and shard2 has 1 failure than the overview failure_count
1619
+ # = 3).
1620
+ # Rollup: When test cases from the same suite are run multiple times (flaky),
1621
+ # the results are combined (e.g., if testcase1.run1 fails, testcase1.run2 passes,
1622
+ # and both testcase2.run1 and testcase2.run2 fail then the overview flaky_count
1623
+ # = 1 and failure_count = 1).
1624
+ # Corresponds to the JSON property `testSuiteOverviews`
1625
+ # @return [Array<Google::Apis::ToolresultsV1beta3::TestSuiteOverview>]
1626
+ attr_accessor :test_suite_overviews
1627
+
1628
+ def initialize(**args)
1629
+ update!(**args)
1630
+ end
1631
+
1632
+ # Update properties of this object
1633
+ def update!(**args)
1634
+ @outcome = args[:outcome] if args.key?(:outcome)
1635
+ @state = args[:state] if args.key?(:state)
1636
+ @test_suite_overviews = args[:test_suite_overviews] if args.key?(:test_suite_overviews)
1637
+ end
1638
+ end
1639
+
1325
1640
  # Details when multiple steps are run with the same configuration as a group.
1326
1641
  class MultiStep
1327
1642
  include Google::Apis::Core::Hashable
@@ -1374,7 +1689,7 @@ module Google
1374
1689
  # @return [Google::Apis::ToolresultsV1beta3::SkippedDetail]
1375
1690
  attr_accessor :skipped_detail
1376
1691
 
1377
- # Details for an outcome with a SUCCESS outcome summary.
1692
+ # Details for an outcome with a SUCCESS outcome summary. LINT.IfChange
1378
1693
  # Corresponds to the JSON property `successDetail`
1379
1694
  # @return [Google::Apis::ToolresultsV1beta3::SuccessDetail]
1380
1695
  attr_accessor :success_detail
@@ -1690,6 +2005,31 @@ module Google
1690
2005
  end
1691
2006
  end
1692
2007
 
2008
+ # The storage for test results.
2009
+ class ResultsStorage
2010
+ include Google::Apis::Core::Hashable
2011
+
2012
+ # A reference to a file.
2013
+ # Corresponds to the JSON property `resultsStoragePath`
2014
+ # @return [Google::Apis::ToolresultsV1beta3::FileReference]
2015
+ attr_accessor :results_storage_path
2016
+
2017
+ # A reference to a file.
2018
+ # Corresponds to the JSON property `xunitXmlFile`
2019
+ # @return [Google::Apis::ToolresultsV1beta3::FileReference]
2020
+ attr_accessor :xunit_xml_file
2021
+
2022
+ def initialize(**args)
2023
+ update!(**args)
2024
+ end
2025
+
2026
+ # Update properties of this object
2027
+ def update!(**args)
2028
+ @results_storage_path = args[:results_storage_path] if args.key?(:results_storage_path)
2029
+ @xunit_xml_file = args[:xunit_xml_file] if args.key?(:xunit_xml_file)
2030
+ end
2031
+ end
2032
+
1693
2033
  #
1694
2034
  class Screen
1695
2035
  include Google::Apis::Core::Hashable
@@ -1767,6 +2107,29 @@ module Google
1767
2107
  end
1768
2108
  end
1769
2109
 
2110
+ # Result summary for a shard in an environment.
2111
+ class ShardSummary
2112
+ include Google::Apis::Core::Hashable
2113
+
2114
+ # Merged test result for environment.
2115
+ # If the environment has only one step (no reruns or shards), then the merged
2116
+ # result is the same as the step result. If the environment has multiple shards
2117
+ # and/or reruns, then the results of shards and reruns that belong to the same
2118
+ # environment are merged into one environment result.
2119
+ # Corresponds to the JSON property `shardResult`
2120
+ # @return [Google::Apis::ToolresultsV1beta3::MergedResult]
2121
+ attr_accessor :shard_result
2122
+
2123
+ def initialize(**args)
2124
+ update!(**args)
2125
+ end
2126
+
2127
+ # Update properties of this object
2128
+ def update!(**args)
2129
+ @shard_result = args[:shard_result] if args.key?(:shard_result)
2130
+ end
2131
+ end
2132
+
1770
2133
  # Details for an outcome with a SKIPPED outcome summary.
1771
2134
  class SkippedDetail
1772
2135
  include Google::Apis::Core::Hashable
@@ -2262,7 +2625,7 @@ module Google
2262
2625
  end
2263
2626
  end
2264
2627
 
2265
- # Details for an outcome with a SUCCESS outcome summary.
2628
+ # Details for an outcome with a SUCCESS outcome summary. LINT.IfChange
2266
2629
  class SuccessDetail
2267
2630
  include Google::Apis::Core::Hashable
2268
2631
 
@@ -2710,6 +3073,14 @@ module Google
2710
3073
  # @return [Fixnum]
2711
3074
  attr_accessor :failure_count
2712
3075
 
3076
+ # Number of flaky test cases, set by the service by rolling up flaky test
3077
+ # attempts.
3078
+ # Present only for rollup test suite overview at environment level. A step
3079
+ # cannot have flaky test cases.
3080
+ # Corresponds to the JSON property `flakyCount`
3081
+ # @return [Fixnum]
3082
+ attr_accessor :flaky_count
3083
+
2713
3084
  # The name of the test suite.
2714
3085
  # - In create/response: always set - In update request: never
2715
3086
  # Corresponds to the JSON property `name`
@@ -2743,6 +3114,7 @@ module Google
2743
3114
  @elapsed_time = args[:elapsed_time] if args.key?(:elapsed_time)
2744
3115
  @error_count = args[:error_count] if args.key?(:error_count)
2745
3116
  @failure_count = args[:failure_count] if args.key?(:failure_count)
3117
+ @flaky_count = args[:flaky_count] if args.key?(:flaky_count)
2746
3118
  @name = args[:name] if args.key?(:name)
2747
3119
  @skipped_count = args[:skipped_count] if args.key?(:skipped_count)
2748
3120
  @total_count = args[:total_count] if args.key?(:total_count)