google-api-client 0.30.2 → 0.30.3

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.
Files changed (230) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +90 -0
  3. data/README.md +17 -1
  4. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  5. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +108 -0
  6. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +48 -0
  7. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +32 -6
  9. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +16 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +32 -6
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +16 -1
  13. data/generated/google/apis/analytics_v3.rb +1 -1
  14. data/generated/google/apis/analytics_v3/classes.rb +1 -1
  15. data/generated/google/apis/analytics_v3/service.rb +1 -1
  16. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  17. data/generated/google/apis/androidmanagement_v1/classes.rb +8 -64
  18. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  19. data/generated/google/apis/androidpublisher_v1_1/classes.rb +1 -0
  20. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  21. data/generated/google/apis/androidpublisher_v2/classes.rb +6 -4
  22. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v3/classes.rb +6 -4
  24. data/generated/google/apis/bigquery_v2.rb +1 -1
  25. data/generated/google/apis/bigquery_v2/classes.rb +243 -5
  26. data/generated/google/apis/bigquery_v2/representations.rb +77 -0
  27. data/generated/google/apis/bigquery_v2/service.rb +206 -0
  28. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  29. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +18 -76
  30. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +1 -0
  31. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +4 -4
  32. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  33. data/generated/google/apis/bigtableadmin_v1/classes.rb +0 -72
  34. data/generated/google/apis/bigtableadmin_v1/representations.rb +0 -32
  35. data/generated/google/apis/bigtableadmin_v1/service.rb +0 -69
  36. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  37. data/generated/google/apis/bigtableadmin_v2/classes.rb +72 -0
  38. data/generated/google/apis/bigtableadmin_v2/representations.rb +32 -0
  39. data/generated/google/apis/bigtableadmin_v2/service.rb +69 -0
  40. data/generated/google/apis/cloudasset_v1.rb +1 -1
  41. data/generated/google/apis/cloudasset_v1/classes.rb +9 -75
  42. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  43. data/generated/google/apis/cloudasset_v1beta1/classes.rb +9 -75
  44. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +8 -74
  46. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  47. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +8 -74
  48. data/generated/google/apis/cloudiot_v1.rb +1 -1
  49. data/generated/google/apis/cloudiot_v1/classes.rb +8 -74
  50. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +4 -8
  52. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  53. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +4 -5
  54. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  55. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +11 -9
  56. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  57. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +11 -9
  58. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  59. data/generated/google/apis/cloudscheduler_v1/classes.rb +20 -84
  60. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  61. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +20 -84
  62. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  63. data/generated/google/apis/cloudsearch_v1/classes.rb +8 -74
  64. data/generated/google/apis/cloudshell_v1.rb +1 -1
  65. data/generated/google/apis/cloudshell_v1/classes.rb +8 -74
  66. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  67. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -74
  68. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  69. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +8 -0
  70. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  71. data/generated/google/apis/cloudtrace_v2/classes.rb +8 -74
  72. data/generated/google/apis/commentanalyzer_v1alpha1.rb +2 -2
  73. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +1 -1
  74. data/generated/google/apis/composer_v1.rb +1 -1
  75. data/generated/google/apis/composer_v1/classes.rb +8 -74
  76. data/generated/google/apis/composer_v1beta1.rb +1 -1
  77. data/generated/google/apis/composer_v1beta1/classes.rb +8 -74
  78. data/generated/google/apis/compute_alpha.rb +1 -1
  79. data/generated/google/apis/compute_alpha/classes.rb +1991 -700
  80. data/generated/google/apis/compute_alpha/representations.rb +604 -154
  81. data/generated/google/apis/compute_alpha/service.rb +693 -89
  82. data/generated/google/apis/compute_beta.rb +1 -1
  83. data/generated/google/apis/compute_beta/classes.rb +375 -230
  84. data/generated/google/apis/compute_beta/representations.rb +2 -0
  85. data/generated/google/apis/compute_beta/service.rb +92 -6
  86. data/generated/google/apis/compute_v1.rb +1 -1
  87. data/generated/google/apis/compute_v1/classes.rb +1827 -239
  88. data/generated/google/apis/compute_v1/representations.rb +669 -2
  89. data/generated/google/apis/compute_v1/service.rb +1150 -6
  90. data/generated/google/apis/container_v1.rb +1 -1
  91. data/generated/google/apis/container_v1/classes.rb +104 -0
  92. data/generated/google/apis/container_v1/representations.rb +48 -0
  93. data/generated/google/apis/container_v1beta1.rb +1 -1
  94. data/generated/google/apis/container_v1beta1/classes.rb +67 -2
  95. data/generated/google/apis/container_v1beta1/representations.rb +31 -0
  96. data/generated/google/apis/content_v2.rb +1 -1
  97. data/generated/google/apis/content_v2/classes.rb +4 -0
  98. data/generated/google/apis/content_v2_1.rb +1 -1
  99. data/generated/google/apis/content_v2_1/classes.rb +41 -0
  100. data/generated/google/apis/content_v2_1/representations.rb +19 -0
  101. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  102. data/generated/google/apis/dataflow_v1b3/classes.rb +46 -74
  103. data/generated/google/apis/dataflow_v1b3/representations.rb +17 -0
  104. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  105. data/generated/google/apis/datafusion_v1beta1/classes.rb +8 -74
  106. data/generated/google/apis/dataproc_v1.rb +1 -1
  107. data/generated/google/apis/dataproc_v1/classes.rb +147 -64
  108. data/generated/google/apis/dataproc_v1/representations.rb +42 -0
  109. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  110. data/generated/google/apis/dataproc_v1beta2/classes.rb +8 -64
  111. data/generated/google/apis/dataproc_v1beta2/service.rb +4 -2
  112. data/generated/google/apis/dialogflow_v2.rb +2 -2
  113. data/generated/google/apis/dialogflow_v2/classes.rb +32 -32
  114. data/generated/google/apis/dialogflow_v2/representations.rb +2 -0
  115. data/generated/google/apis/dialogflow_v2/service.rb +77 -17
  116. data/generated/google/apis/dialogflow_v2beta1.rb +2 -2
  117. data/generated/google/apis/dialogflow_v2beta1/classes.rb +32 -32
  118. data/generated/google/apis/dialogflow_v2beta1/representations.rb +2 -0
  119. data/generated/google/apis/dialogflow_v2beta1/service.rb +79 -19
  120. data/generated/google/apis/dlp_v2.rb +1 -1
  121. data/generated/google/apis/dlp_v2/classes.rb +4 -3
  122. data/generated/google/apis/dns_v1beta2.rb +1 -1
  123. data/generated/google/apis/dns_v1beta2/service.rb +1 -1
  124. data/generated/google/apis/docs_v1.rb +1 -1
  125. data/generated/google/apis/docs_v1/classes.rb +0 -10
  126. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  127. data/generated/google/apis/file_v1.rb +1 -1
  128. data/generated/google/apis/file_v1/classes.rb +17 -74
  129. data/generated/google/apis/file_v1/representations.rb +1 -0
  130. data/generated/google/apis/file_v1beta1.rb +1 -1
  131. data/generated/google/apis/file_v1beta1/classes.rb +17 -74
  132. data/generated/google/apis/file_v1beta1/representations.rb +1 -0
  133. data/generated/google/apis/firebase_v1beta1.rb +44 -0
  134. data/generated/google/apis/firebase_v1beta1/classes.rb +1063 -0
  135. data/generated/google/apis/firebase_v1beta1/representations.rb +432 -0
  136. data/generated/google/apis/firebase_v1beta1/service.rb +1105 -0
  137. data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
  138. data/generated/google/apis/healthcare_v1alpha2/service.rb +43 -61
  139. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  140. data/generated/google/apis/healthcare_v1beta1/service.rb +43 -61
  141. data/generated/google/apis/iam_v1.rb +1 -1
  142. data/generated/google/apis/iam_v1/classes.rb +6 -0
  143. data/generated/google/apis/iam_v1/representations.rb +1 -0
  144. data/generated/google/apis/logging_v2.rb +1 -1
  145. data/generated/google/apis/ml_v1.rb +1 -1
  146. data/generated/google/apis/ml_v1/classes.rb +18 -0
  147. data/generated/google/apis/ml_v1/representations.rb +3 -0
  148. data/generated/google/apis/monitoring_v3.rb +1 -1
  149. data/generated/google/apis/monitoring_v3/classes.rb +1 -1
  150. data/generated/google/apis/people_v1.rb +1 -1
  151. data/generated/google/apis/people_v1/classes.rb +12 -111
  152. data/generated/google/apis/pubsub_v1.rb +1 -1
  153. data/generated/google/apis/pubsub_v1/classes.rb +43 -0
  154. data/generated/google/apis/pubsub_v1/representations.rb +16 -0
  155. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  156. data/generated/google/apis/remotebuildexecution_v1/classes.rb +89 -26
  157. data/generated/google/apis/remotebuildexecution_v1/representations.rb +3 -0
  158. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  159. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +89 -26
  160. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +3 -0
  161. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +15 -1
  162. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  163. data/generated/google/apis/remotebuildexecution_v2/classes.rb +103 -30
  164. data/generated/google/apis/remotebuildexecution_v2/representations.rb +3 -0
  165. data/generated/google/apis/remotebuildexecution_v2/service.rb +29 -2
  166. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  167. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +0 -1
  168. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  169. data/generated/google/apis/servicecontrol_v1/classes.rb +64 -148
  170. data/generated/google/apis/servicecontrol_v1/representations.rb +17 -0
  171. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  172. data/generated/google/apis/servicemanagement_v1/classes.rb +8 -74
  173. data/generated/google/apis/servicemanagement_v1/service.rb +9 -1
  174. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  175. data/generated/google/apis/servicenetworking_v1/classes.rb +0 -1
  176. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  177. data/generated/google/apis/servicenetworking_v1beta/classes.rb +0 -1
  178. data/generated/google/apis/serviceusage_v1.rb +1 -1
  179. data/generated/google/apis/serviceusage_v1/classes.rb +0 -1
  180. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  181. data/generated/google/apis/serviceusage_v1beta1/classes.rb +0 -1
  182. data/generated/google/apis/spanner_v1.rb +1 -1
  183. data/generated/google/apis/spanner_v1/classes.rb +12 -111
  184. data/generated/google/apis/speech_v1.rb +1 -1
  185. data/generated/google/apis/speech_v1/classes.rb +13 -74
  186. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  187. data/generated/google/apis/speech_v1p1beta1/classes.rb +13 -74
  188. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  189. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -3
  190. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  191. data/generated/google/apis/tagmanager_v1.rb +4 -3
  192. data/generated/google/apis/tagmanager_v1/classes.rb +237 -70
  193. data/generated/google/apis/tagmanager_v1/service.rb +223 -374
  194. data/generated/google/apis/tagmanager_v2.rb +4 -3
  195. data/generated/google/apis/tagmanager_v2/classes.rb +221 -208
  196. data/generated/google/apis/tagmanager_v2/representations.rb +1 -16
  197. data/generated/google/apis/tagmanager_v2/service.rb +608 -757
  198. data/generated/google/apis/texttospeech_v1.rb +1 -1
  199. data/generated/google/apis/texttospeech_v1/classes.rb +28 -27
  200. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  201. data/generated/google/apis/texttospeech_v1beta1/classes.rb +28 -27
  202. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  203. data/generated/google/apis/toolresults_v1beta3/classes.rb +35 -0
  204. data/generated/google/apis/toolresults_v1beta3/representations.rb +2 -0
  205. data/generated/google/apis/tpu_v1.rb +1 -1
  206. data/generated/google/apis/tpu_v1/classes.rb +17 -88
  207. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  208. data/generated/google/apis/tpu_v1alpha1/classes.rb +17 -88
  209. data/generated/google/apis/vault_v1.rb +1 -1
  210. data/generated/google/apis/vault_v1/classes.rb +49 -0
  211. data/generated/google/apis/vault_v1/representations.rb +18 -0
  212. data/generated/google/apis/videointelligence_v1.rb +1 -1
  213. data/generated/google/apis/videointelligence_v1/classes.rb +324 -332
  214. data/generated/google/apis/videointelligence_v1/representations.rb +102 -0
  215. data/generated/google/apis/videointelligence_v1/service.rb +217 -9
  216. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  217. data/generated/google/apis/videointelligence_v1beta2/classes.rb +279 -297
  218. data/generated/google/apis/videointelligence_v1beta2/representations.rb +102 -0
  219. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  220. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +324 -332
  221. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +102 -0
  222. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  223. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +324 -332
  224. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +102 -0
  225. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  226. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +324 -332
  227. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +102 -0
  228. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  229. data/lib/google/apis/version.rb +1 -1
  230. metadata +6 -2
@@ -857,6 +857,7 @@ module Google
857
857
  class BuildBazelRemoteExecutionV2OutputFile
858
858
  # @private
859
859
  class Representation < Google::Apis::Core::JsonRepresentation
860
+ property :contents, :base64 => true, as: 'contents'
860
861
  property :digest, as: 'digest', class: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2Digest, decorator: Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2Digest::Representation
861
862
 
862
863
  property :is_executable, as: 'isExecutable'
@@ -1087,6 +1088,7 @@ module Google
1087
1088
  class GoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest
1088
1089
  # @private
1089
1090
  class Representation < Google::Apis::Core::JsonRepresentation
1091
+ property :filter, as: 'filter'
1090
1092
  property :parent, as: 'parent'
1091
1093
  end
1092
1094
  end
@@ -1113,6 +1115,7 @@ module Google
1113
1115
  class Representation < Google::Apis::Core::JsonRepresentation
1114
1116
  property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
1115
1117
  property :disk_type, as: 'diskType'
1118
+ hash :labels, as: 'labels'
1116
1119
  property :machine_type, as: 'machineType'
1117
1120
  property :min_cpu_platform, as: 'minCpuPlatform'
1118
1121
  property :reserved, as: 'reserved'
@@ -48,6 +48,13 @@ module Google
48
48
  end
49
49
 
50
50
  # Retrieve a cached execution result.
51
+ # Implementations SHOULD ensure that any blobs referenced from the
52
+ # ContentAddressableStorage
53
+ # are available at the time of returning the
54
+ # ActionResult and will be
55
+ # for some period of time afterwards. The TTLs of the referenced blobs SHOULD be
56
+ # increased
57
+ # if necessary and applicable.
51
58
  # Errors:
52
59
  # * `NOT_FOUND`: The requested `ActionResult` is not in the cache.
53
60
  # @param [String] instance_name
@@ -61,6 +68,16 @@ module Google
61
68
  # exactly 64 characters long.
62
69
  # @param [Fixnum] size_bytes
63
70
  # The size of the blob, in bytes.
71
+ # @param [Array<String>, String] inline_output_files
72
+ # A hint to the server to inline the contents of the listed output files.
73
+ # Each path needs to exactly match one path in `output_files` in the
74
+ # Command message.
75
+ # @param [Boolean] inline_stderr
76
+ # A hint to the server to request inlining stderr in the
77
+ # ActionResult message.
78
+ # @param [Boolean] inline_stdout
79
+ # A hint to the server to request inlining stdout in the
80
+ # ActionResult message.
64
81
  # @param [String] fields
65
82
  # Selector specifying which fields to include in a partial response.
66
83
  # @param [String] quota_user
@@ -78,13 +95,16 @@ module Google
78
95
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
96
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
97
  # @raise [Google::Apis::AuthorizationError] Authorization is required
81
- def get_action_result(instance_name, hash_, size_bytes, fields: nil, quota_user: nil, options: nil, &block)
98
+ def get_action_result(instance_name, hash_, size_bytes, inline_output_files: nil, inline_stderr: nil, inline_stdout: nil, fields: nil, quota_user: nil, options: nil, &block)
82
99
  command = make_simple_command(:get, 'v2/{+instanceName}/actionResults/{hash}/{sizeBytes}', options)
83
100
  command.response_representation = Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ActionResult::Representation
84
101
  command.response_class = Google::Apis::RemotebuildexecutionV2::BuildBazelRemoteExecutionV2ActionResult
85
102
  command.params['instanceName'] = instance_name unless instance_name.nil?
86
103
  command.params['hash'] = hash_ unless hash_.nil?
87
104
  command.params['sizeBytes'] = size_bytes unless size_bytes.nil?
105
+ command.query['inlineOutputFiles'] = inline_output_files unless inline_output_files.nil?
106
+ command.query['inlineStderr'] = inline_stderr unless inline_stderr.nil?
107
+ command.query['inlineStdout'] = inline_stdout unless inline_stdout.nil?
88
108
  command.query['fields'] = fields unless fields.nil?
89
109
  command.query['quotaUser'] = quota_user unless quota_user.nil?
90
110
  execute_or_queue_command(command, &block)
@@ -497,7 +517,14 @@ module Google
497
517
  execute_or_queue_command(command, &block)
498
518
  end
499
519
 
500
- # GetCapabilities returns the server capabilities configuration.
520
+ # GetCapabilities returns the server capabilities configuration of the
521
+ # remote endpoint.
522
+ # Only the capabilities of the services supported by the endpoint will
523
+ # be returned:
524
+ # * Execution + CAS + Action Cache endpoints should return both
525
+ # CacheCapabilities and ExecutionCapabilities.
526
+ # * Execution only endpoints should return ExecutionCapabilities.
527
+ # * CAS + Action Cache only endpoints should return CacheCapabilities.
501
528
  # @param [String] instance_name
502
529
  # The instance of the execution system to operate against. A server may
503
530
  # support multiple instances of the execution system (with their own workers,
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/service-consumer-management/docs/overview
26
26
  module ServiceconsumermanagementV1
27
27
  VERSION = 'V1'
28
- REVISION = '20190604'
28
+ REVISION = '20190607'
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'
@@ -2138,7 +2138,6 @@ module Google
2138
2138
  # Different APIs can support different monitored resource types. APIs generally
2139
2139
  # provide a `list` method that returns the monitored resource descriptors used
2140
2140
  # by the API.
2141
- # Next ID: 10
2142
2141
  class MonitoredResourceDescriptor
2143
2142
  include Google::Apis::Core::Hashable
2144
2143
 
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/service-control/
27
27
  module ServicecontrolV1
28
28
  VERSION = 'V1'
29
- REVISION = '20190509'
29
+ REVISION = '20190618'
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'
@@ -224,43 +224,10 @@ module Google
224
224
 
225
225
  # The `Status` type defines a logical error model that is suitable for
226
226
  # different programming environments, including REST APIs and RPC APIs. It is
227
- # used by [gRPC](https://github.com/grpc). The error model is designed to be:
228
- # - Simple to use and understand for most users
229
- # - Flexible enough to meet unexpected needs
230
- # # Overview
231
- # The `Status` message contains three pieces of data: error code, error
232
- # message, and error details. The error code should be an enum value of
233
- # google.rpc.Code, but it may accept additional error codes if needed. The
234
- # error message should be a developer-facing English message that helps
235
- # developers *understand* and *resolve* the error. If a localized user-facing
236
- # error message is needed, put the localized message in the error details or
237
- # localize it in the client. The optional error details may contain arbitrary
238
- # information about the error. There is a predefined set of error detail types
239
- # in the package `google.rpc` that can be used for common error conditions.
240
- # # Language mapping
241
- # The `Status` message is the logical representation of the error model, but it
242
- # is not necessarily the actual wire format. When the `Status` message is
243
- # exposed in different client libraries and different wire protocols, it can be
244
- # mapped differently. For example, it will likely be mapped to some exceptions
245
- # in Java, but more likely mapped to some error codes in C.
246
- # # Other uses
247
- # The error model and the `Status` message can be used in a variety of
248
- # environments, either with or without APIs, to provide a
249
- # consistent developer experience across different environments.
250
- # Example uses of this error model include:
251
- # - Partial errors. If a service needs to return partial errors to the client,
252
- # it may embed the `Status` in the normal response to indicate the partial
253
- # errors.
254
- # - Workflow errors. A typical workflow has multiple steps. Each step may
255
- # have a `Status` message for error reporting.
256
- # - Batch operations. If a client uses batch request and batch response, the
257
- # `Status` message should be used directly inside batch response, one for
258
- # each error sub-response.
259
- # - Asynchronous operations. If an API call embeds asynchronous operation
260
- # results in its response, the status of those operations should be
261
- # represented directly using the `Status` message.
262
- # - Logging. If some API errors are stored in logs, the message `Status` could
263
- # be used directly after any stripping needed for security/privacy reasons.
227
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
228
+ # three pieces of data: error code, error message, and error details.
229
+ # You can find out more about this error model and how to work with it in the
230
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
264
231
  # Corresponds to the JSON property `status`
265
232
  # @return [Google::Apis::ServicecontrolV1::Status]
266
233
  attr_accessor :status
@@ -486,43 +453,10 @@ module Google
486
453
 
487
454
  # The `Status` type defines a logical error model that is suitable for
488
455
  # different programming environments, including REST APIs and RPC APIs. It is
489
- # used by [gRPC](https://github.com/grpc). The error model is designed to be:
490
- # - Simple to use and understand for most users
491
- # - Flexible enough to meet unexpected needs
492
- # # Overview
493
- # The `Status` message contains three pieces of data: error code, error
494
- # message, and error details. The error code should be an enum value of
495
- # google.rpc.Code, but it may accept additional error codes if needed. The
496
- # error message should be a developer-facing English message that helps
497
- # developers *understand* and *resolve* the error. If a localized user-facing
498
- # error message is needed, put the localized message in the error details or
499
- # localize it in the client. The optional error details may contain arbitrary
500
- # information about the error. There is a predefined set of error detail types
501
- # in the package `google.rpc` that can be used for common error conditions.
502
- # # Language mapping
503
- # The `Status` message is the logical representation of the error model, but it
504
- # is not necessarily the actual wire format. When the `Status` message is
505
- # exposed in different client libraries and different wire protocols, it can be
506
- # mapped differently. For example, it will likely be mapped to some exceptions
507
- # in Java, but more likely mapped to some error codes in C.
508
- # # Other uses
509
- # The error model and the `Status` message can be used in a variety of
510
- # environments, either with or without APIs, to provide a
511
- # consistent developer experience across different environments.
512
- # Example uses of this error model include:
513
- # - Partial errors. If a service needs to return partial errors to the client,
514
- # it may embed the `Status` in the normal response to indicate the partial
515
- # errors.
516
- # - Workflow errors. A typical workflow has multiple steps. Each step may
517
- # have a `Status` message for error reporting.
518
- # - Batch operations. If a client uses batch request and batch response, the
519
- # `Status` message should be used directly inside batch response, one for
520
- # each error sub-response.
521
- # - Asynchronous operations. If an API call embeds asynchronous operation
522
- # results in its response, the status of those operations should be
523
- # represented directly using the `Status` message.
524
- # - Logging. If some API errors are stored in logs, the message `Status` could
525
- # be used directly after any stripping needed for security/privacy reasons.
456
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
457
+ # three pieces of data: error code, error message, and error details.
458
+ # You can find out more about this error model and how to work with it in the
459
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
526
460
  # Corresponds to the JSON property `status`
527
461
  # @return [Google::Apis::ServicecontrolV1::Status]
528
462
  attr_accessor :status
@@ -738,6 +672,11 @@ module Google
738
672
  # @return [Fixnum]
739
673
  attr_accessor :count
740
674
 
675
+ # Example points. Must be in increasing order of `value` field.
676
+ # Corresponds to the JSON property `exemplars`
677
+ # @return [Array<Google::Apis::ServicecontrolV1::Exemplar>]
678
+ attr_accessor :exemplars
679
+
741
680
  # Describing buckets with arbitrary user-provided width.
742
681
  # Corresponds to the JSON property `explicitBuckets`
743
682
  # @return [Google::Apis::ServicecontrolV1::ExplicitBuckets]
@@ -785,6 +724,7 @@ module Google
785
724
  def update!(**args)
786
725
  @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
787
726
  @count = args[:count] if args.key?(:count)
727
+ @exemplars = args[:exemplars] if args.key?(:exemplars)
788
728
  @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
789
729
  @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
790
730
  @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
@@ -795,6 +735,48 @@ module Google
795
735
  end
796
736
  end
797
737
 
738
+ # Exemplars are example points that may be used to annotate aggregated
739
+ # distribution values. They are metadata that gives information about a
740
+ # particular value added to a Distribution bucket, such as a trace ID that
741
+ # was active when a value was added. They may contain further information,
742
+ # such as a example values and timestamps, origin, etc.
743
+ class Exemplar
744
+ include Google::Apis::Core::Hashable
745
+
746
+ # Contextual information about the example value. Examples are:
747
+ # Trace: type.googleapis.com/google.monitoring.v3.SpanContext
748
+ # Literal string: type.googleapis.com/google.protobuf.StringValue
749
+ # Labels dropped during aggregation:
750
+ # type.googleapis.com/google.monitoring.v3.DroppedLabels
751
+ # There may be only a single attachment of any given message type in a
752
+ # single exemplar, and this is enforced by the system.
753
+ # Corresponds to the JSON property `attachments`
754
+ # @return [Array<Hash<String,Object>>]
755
+ attr_accessor :attachments
756
+
757
+ # The observation (sampling) time of the above value.
758
+ # Corresponds to the JSON property `timestamp`
759
+ # @return [String]
760
+ attr_accessor :timestamp
761
+
762
+ # Value of the exemplar point. This value determines to which bucket the
763
+ # exemplar belongs.
764
+ # Corresponds to the JSON property `value`
765
+ # @return [Float]
766
+ attr_accessor :value
767
+
768
+ def initialize(**args)
769
+ update!(**args)
770
+ end
771
+
772
+ # Update properties of this object
773
+ def update!(**args)
774
+ @attachments = args[:attachments] if args.key?(:attachments)
775
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
776
+ @value = args[:value] if args.key?(:value)
777
+ end
778
+ end
779
+
798
780
  # Describing buckets with arbitrary user-provided width.
799
781
  class ExplicitBuckets
800
782
  include Google::Apis::Core::Hashable
@@ -1720,43 +1702,10 @@ module Google
1720
1702
 
1721
1703
  # The `Status` type defines a logical error model that is suitable for
1722
1704
  # different programming environments, including REST APIs and RPC APIs. It is
1723
- # used by [gRPC](https://github.com/grpc). The error model is designed to be:
1724
- # - Simple to use and understand for most users
1725
- # - Flexible enough to meet unexpected needs
1726
- # # Overview
1727
- # The `Status` message contains three pieces of data: error code, error
1728
- # message, and error details. The error code should be an enum value of
1729
- # google.rpc.Code, but it may accept additional error codes if needed. The
1730
- # error message should be a developer-facing English message that helps
1731
- # developers *understand* and *resolve* the error. If a localized user-facing
1732
- # error message is needed, put the localized message in the error details or
1733
- # localize it in the client. The optional error details may contain arbitrary
1734
- # information about the error. There is a predefined set of error detail types
1735
- # in the package `google.rpc` that can be used for common error conditions.
1736
- # # Language mapping
1737
- # The `Status` message is the logical representation of the error model, but it
1738
- # is not necessarily the actual wire format. When the `Status` message is
1739
- # exposed in different client libraries and different wire protocols, it can be
1740
- # mapped differently. For example, it will likely be mapped to some exceptions
1741
- # in Java, but more likely mapped to some error codes in C.
1742
- # # Other uses
1743
- # The error model and the `Status` message can be used in a variety of
1744
- # environments, either with or without APIs, to provide a
1745
- # consistent developer experience across different environments.
1746
- # Example uses of this error model include:
1747
- # - Partial errors. If a service needs to return partial errors to the client,
1748
- # it may embed the `Status` in the normal response to indicate the partial
1749
- # errors.
1750
- # - Workflow errors. A typical workflow has multiple steps. Each step may
1751
- # have a `Status` message for error reporting.
1752
- # - Batch operations. If a client uses batch request and batch response, the
1753
- # `Status` message should be used directly inside batch response, one for
1754
- # each error sub-response.
1755
- # - Asynchronous operations. If an API call embeds asynchronous operation
1756
- # results in its response, the status of those operations should be
1757
- # represented directly using the `Status` message.
1758
- # - Logging. If some API errors are stored in logs, the message `Status` could
1759
- # be used directly after any stripping needed for security/privacy reasons.
1705
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1706
+ # three pieces of data: error code, error message, and error details.
1707
+ # You can find out more about this error model and how to work with it in the
1708
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
1760
1709
  # Corresponds to the JSON property `status`
1761
1710
  # @return [Google::Apis::ServicecontrolV1::Status]
1762
1711
  attr_accessor :status
@@ -2216,43 +2165,10 @@ module Google
2216
2165
 
2217
2166
  # The `Status` type defines a logical error model that is suitable for
2218
2167
  # different programming environments, including REST APIs and RPC APIs. It is
2219
- # used by [gRPC](https://github.com/grpc). The error model is designed to be:
2220
- # - Simple to use and understand for most users
2221
- # - Flexible enough to meet unexpected needs
2222
- # # Overview
2223
- # The `Status` message contains three pieces of data: error code, error
2224
- # message, and error details. The error code should be an enum value of
2225
- # google.rpc.Code, but it may accept additional error codes if needed. The
2226
- # error message should be a developer-facing English message that helps
2227
- # developers *understand* and *resolve* the error. If a localized user-facing
2228
- # error message is needed, put the localized message in the error details or
2229
- # localize it in the client. The optional error details may contain arbitrary
2230
- # information about the error. There is a predefined set of error detail types
2231
- # in the package `google.rpc` that can be used for common error conditions.
2232
- # # Language mapping
2233
- # The `Status` message is the logical representation of the error model, but it
2234
- # is not necessarily the actual wire format. When the `Status` message is
2235
- # exposed in different client libraries and different wire protocols, it can be
2236
- # mapped differently. For example, it will likely be mapped to some exceptions
2237
- # in Java, but more likely mapped to some error codes in C.
2238
- # # Other uses
2239
- # The error model and the `Status` message can be used in a variety of
2240
- # environments, either with or without APIs, to provide a
2241
- # consistent developer experience across different environments.
2242
- # Example uses of this error model include:
2243
- # - Partial errors. If a service needs to return partial errors to the client,
2244
- # it may embed the `Status` in the normal response to indicate the partial
2245
- # errors.
2246
- # - Workflow errors. A typical workflow has multiple steps. Each step may
2247
- # have a `Status` message for error reporting.
2248
- # - Batch operations. If a client uses batch request and batch response, the
2249
- # `Status` message should be used directly inside batch response, one for
2250
- # each error sub-response.
2251
- # - Asynchronous operations. If an API call embeds asynchronous operation
2252
- # results in its response, the status of those operations should be
2253
- # represented directly using the `Status` message.
2254
- # - Logging. If some API errors are stored in logs, the message `Status` could
2255
- # be used directly after any stripping needed for security/privacy reasons.
2168
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2169
+ # three pieces of data: error code, error message, and error details.
2170
+ # You can find out more about this error model and how to work with it in the
2171
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
2256
2172
  class Status
2257
2173
  include Google::Apis::Core::Hashable
2258
2174
 
@@ -100,6 +100,12 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class Exemplar
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
103
109
  class ExplicitBuckets
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -417,6 +423,8 @@ module Google
417
423
  class Representation < Google::Apis::Core::JsonRepresentation
418
424
  collection :bucket_counts, as: 'bucketCounts'
419
425
  property :count, :numeric_string => true, as: 'count'
426
+ collection :exemplars, as: 'exemplars', class: Google::Apis::ServicecontrolV1::Exemplar, decorator: Google::Apis::ServicecontrolV1::Exemplar::Representation
427
+
420
428
  property :explicit_buckets, as: 'explicitBuckets', class: Google::Apis::ServicecontrolV1::ExplicitBuckets, decorator: Google::Apis::ServicecontrolV1::ExplicitBuckets::Representation
421
429
 
422
430
  property :exponential_buckets, as: 'exponentialBuckets', class: Google::Apis::ServicecontrolV1::ExponentialBuckets, decorator: Google::Apis::ServicecontrolV1::ExponentialBuckets::Representation
@@ -430,6 +438,15 @@ module Google
430
438
  end
431
439
  end
432
440
 
441
+ class Exemplar
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ collection :attachments, as: 'attachments'
445
+ property :timestamp, as: 'timestamp'
446
+ property :value, as: 'value'
447
+ end
448
+ end
449
+
433
450
  class ExplicitBuckets
434
451
  # @private
435
452
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-management/
28
28
  module ServicemanagementV1
29
29
  VERSION = 'V1'
30
- REVISION = '20190510'
30
+ REVISION = '20190614'
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'
@@ -2836,43 +2836,10 @@ module Google
2836
2836
 
2837
2837
  # The `Status` type defines a logical error model that is suitable for
2838
2838
  # different programming environments, including REST APIs and RPC APIs. It is
2839
- # used by [gRPC](https://github.com/grpc). The error model is designed to be:
2840
- # - Simple to use and understand for most users
2841
- # - Flexible enough to meet unexpected needs
2842
- # # Overview
2843
- # The `Status` message contains three pieces of data: error code, error
2844
- # message, and error details. The error code should be an enum value of
2845
- # google.rpc.Code, but it may accept additional error codes if needed. The
2846
- # error message should be a developer-facing English message that helps
2847
- # developers *understand* and *resolve* the error. If a localized user-facing
2848
- # error message is needed, put the localized message in the error details or
2849
- # localize it in the client. The optional error details may contain arbitrary
2850
- # information about the error. There is a predefined set of error detail types
2851
- # in the package `google.rpc` that can be used for common error conditions.
2852
- # # Language mapping
2853
- # The `Status` message is the logical representation of the error model, but it
2854
- # is not necessarily the actual wire format. When the `Status` message is
2855
- # exposed in different client libraries and different wire protocols, it can be
2856
- # mapped differently. For example, it will likely be mapped to some exceptions
2857
- # in Java, but more likely mapped to some error codes in C.
2858
- # # Other uses
2859
- # The error model and the `Status` message can be used in a variety of
2860
- # environments, either with or without APIs, to provide a
2861
- # consistent developer experience across different environments.
2862
- # Example uses of this error model include:
2863
- # - Partial errors. If a service needs to return partial errors to the client,
2864
- # it may embed the `Status` in the normal response to indicate the partial
2865
- # errors.
2866
- # - Workflow errors. A typical workflow has multiple steps. Each step may
2867
- # have a `Status` message for error reporting.
2868
- # - Batch operations. If a client uses batch request and batch response, the
2869
- # `Status` message should be used directly inside batch response, one for
2870
- # each error sub-response.
2871
- # - Asynchronous operations. If an API call embeds asynchronous operation
2872
- # results in its response, the status of those operations should be
2873
- # represented directly using the `Status` message.
2874
- # - Logging. If some API errors are stored in logs, the message `Status` could
2875
- # be used directly after any stripping needed for security/privacy reasons.
2839
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2840
+ # three pieces of data: error code, error message, and error details.
2841
+ # You can find out more about this error model and how to work with it in the
2842
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
2876
2843
  # Corresponds to the JSON property `error`
2877
2844
  # @return [Google::Apis::ServicemanagementV1::Status]
2878
2845
  attr_accessor :error
@@ -3941,43 +3908,10 @@ module Google
3941
3908
 
3942
3909
  # The `Status` type defines a logical error model that is suitable for
3943
3910
  # different programming environments, including REST APIs and RPC APIs. It is
3944
- # used by [gRPC](https://github.com/grpc). The error model is designed to be:
3945
- # - Simple to use and understand for most users
3946
- # - Flexible enough to meet unexpected needs
3947
- # # Overview
3948
- # The `Status` message contains three pieces of data: error code, error
3949
- # message, and error details. The error code should be an enum value of
3950
- # google.rpc.Code, but it may accept additional error codes if needed. The
3951
- # error message should be a developer-facing English message that helps
3952
- # developers *understand* and *resolve* the error. If a localized user-facing
3953
- # error message is needed, put the localized message in the error details or
3954
- # localize it in the client. The optional error details may contain arbitrary
3955
- # information about the error. There is a predefined set of error detail types
3956
- # in the package `google.rpc` that can be used for common error conditions.
3957
- # # Language mapping
3958
- # The `Status` message is the logical representation of the error model, but it
3959
- # is not necessarily the actual wire format. When the `Status` message is
3960
- # exposed in different client libraries and different wire protocols, it can be
3961
- # mapped differently. For example, it will likely be mapped to some exceptions
3962
- # in Java, but more likely mapped to some error codes in C.
3963
- # # Other uses
3964
- # The error model and the `Status` message can be used in a variety of
3965
- # environments, either with or without APIs, to provide a
3966
- # consistent developer experience across different environments.
3967
- # Example uses of this error model include:
3968
- # - Partial errors. If a service needs to return partial errors to the client,
3969
- # it may embed the `Status` in the normal response to indicate the partial
3970
- # errors.
3971
- # - Workflow errors. A typical workflow has multiple steps. Each step may
3972
- # have a `Status` message for error reporting.
3973
- # - Batch operations. If a client uses batch request and batch response, the
3974
- # `Status` message should be used directly inside batch response, one for
3975
- # each error sub-response.
3976
- # - Asynchronous operations. If an API call embeds asynchronous operation
3977
- # results in its response, the status of those operations should be
3978
- # represented directly using the `Status` message.
3979
- # - Logging. If some API errors are stored in logs, the message `Status` could
3980
- # be used directly after any stripping needed for security/privacy reasons.
3911
+ # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3912
+ # three pieces of data: error code, error message, and error details.
3913
+ # You can find out more about this error model and how to work with it in the
3914
+ # [API Design Guide](https://cloud.google.com/apis/design/errors).
3981
3915
  class Status
3982
3916
  include Google::Apis::Core::Hashable
3983
3917