google-api-client 0.37.0 → 0.37.1

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 (133) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +76 -0
  3. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  4. data/generated/google/apis/accesscontextmanager_v1/classes.rb +236 -22
  5. data/generated/google/apis/accesscontextmanager_v1/representations.rb +104 -0
  6. data/generated/google/apis/accesscontextmanager_v1/service.rb +135 -0
  7. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  8. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +24 -22
  9. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  10. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  11. data/generated/google/apis/alertcenter_v1beta1/classes.rb +64 -0
  12. data/generated/google/apis/alertcenter_v1beta1/representations.rb +31 -0
  13. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  14. data/generated/google/apis/chat_v1.rb +1 -1
  15. data/generated/google/apis/chat_v1/classes.rb +10 -1
  16. data/generated/google/apis/chat_v1/representations.rb +1 -0
  17. data/generated/google/apis/classroom_v1.rb +1 -1
  18. data/generated/google/apis/cloudasset_v1.rb +1 -1
  19. data/generated/google/apis/cloudasset_v1/classes.rb +98 -34
  20. data/generated/google/apis/cloudasset_v1/representations.rb +19 -0
  21. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  22. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  23. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  25. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  26. data/generated/google/apis/cloudidentity_v1/classes.rb +152 -151
  27. data/generated/google/apis/cloudidentity_v1/representations.rb +72 -72
  28. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  29. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +0 -560
  30. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +0 -226
  31. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  32. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  33. data/generated/google/apis/cloudtrace_v2beta1.rb +44 -0
  34. data/generated/google/apis/cloudtrace_v2beta1/classes.rb +144 -0
  35. data/generated/google/apis/cloudtrace_v2beta1/representations.rb +82 -0
  36. data/generated/google/apis/cloudtrace_v2beta1/service.rb +258 -0
  37. data/generated/google/apis/compute_alpha.rb +1 -1
  38. data/generated/google/apis/compute_alpha/classes.rb +190 -46
  39. data/generated/google/apis/compute_alpha/representations.rb +35 -14
  40. data/generated/google/apis/compute_alpha/service.rb +40 -56
  41. data/generated/google/apis/compute_beta.rb +1 -1
  42. data/generated/google/apis/compute_beta/classes.rb +98 -24
  43. data/generated/google/apis/compute_beta/representations.rb +2 -0
  44. data/generated/google/apis/compute_beta/service.rb +1 -2
  45. data/generated/google/apis/compute_v1.rb +1 -1
  46. data/generated/google/apis/compute_v1/classes.rb +123 -19
  47. data/generated/google/apis/compute_v1/representations.rb +19 -0
  48. data/generated/google/apis/container_v1.rb +1 -1
  49. data/generated/google/apis/container_v1/classes.rb +2 -2
  50. data/generated/google/apis/container_v1beta1.rb +1 -1
  51. data/generated/google/apis/container_v1beta1/classes.rb +2 -2
  52. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  53. data/generated/google/apis/datacatalog_v1beta1/classes.rb +4 -3
  54. data/generated/google/apis/datacatalog_v1beta1/service.rb +190 -17
  55. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  56. data/generated/google/apis/dataflow_v1b3/classes.rb +40 -0
  57. data/generated/google/apis/dataflow_v1b3/representations.rb +16 -0
  58. data/generated/google/apis/dataproc_v1.rb +1 -1
  59. data/generated/google/apis/dataproc_v1/classes.rb +67 -0
  60. data/generated/google/apis/dataproc_v1/representations.rb +23 -0
  61. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  62. data/generated/google/apis/dlp_v2.rb +1 -1
  63. data/generated/google/apis/dlp_v2/classes.rb +2 -1
  64. data/generated/google/apis/docs_v1.rb +1 -1
  65. data/generated/google/apis/domainsrdap_v1.rb +1 -1
  66. data/generated/google/apis/driveactivity_v2.rb +1 -1
  67. data/generated/google/apis/file_v1.rb +1 -1
  68. data/generated/google/apis/file_v1/classes.rb +6 -19
  69. data/generated/google/apis/file_v1/service.rb +1 -1
  70. data/generated/google/apis/file_v1beta1.rb +1 -1
  71. data/generated/google/apis/file_v1beta1/classes.rb +4 -17
  72. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  73. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  74. data/generated/google/apis/fitness_v1.rb +1 -1
  75. data/generated/google/apis/fitness_v1/classes.rb +10 -5
  76. data/generated/google/apis/fitness_v1/service.rb +1 -1
  77. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  78. data/generated/google/apis/healthcare_v1beta1/classes.rb +3 -3
  79. data/generated/google/apis/homegraph_v1.rb +1 -1
  80. data/generated/google/apis/indexing_v3.rb +1 -1
  81. data/generated/google/apis/jobs_v2.rb +1 -1
  82. data/generated/google/apis/jobs_v3.rb +1 -1
  83. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  84. data/generated/google/apis/logging_v2.rb +1 -1
  85. data/generated/google/apis/logging_v2/classes.rb +84 -0
  86. data/generated/google/apis/logging_v2/representations.rb +33 -0
  87. data/generated/google/apis/logging_v2/service.rb +680 -0
  88. data/generated/google/apis/monitoring_v3.rb +1 -1
  89. data/generated/google/apis/monitoring_v3/classes.rb +21 -18
  90. data/generated/google/apis/monitoring_v3/service.rb +27 -18
  91. data/generated/google/apis/oslogin_v1.rb +1 -1
  92. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  93. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  94. data/generated/google/apis/people_v1.rb +1 -1
  95. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  96. data/generated/google/apis/pubsub_v1.rb +1 -1
  97. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  98. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  99. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  100. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  101. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  102. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  103. data/generated/google/apis/script_v1.rb +1 -1
  104. data/generated/google/apis/secretmanager_v1.rb +35 -0
  105. data/generated/google/apis/secretmanager_v1/classes.rb +970 -0
  106. data/generated/google/apis/secretmanager_v1/representations.rb +388 -0
  107. data/generated/google/apis/secretmanager_v1/service.rb +675 -0
  108. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  109. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  110. data/generated/google/apis/servicemanagement_v1/classes.rb +36 -0
  111. data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
  112. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  113. data/generated/google/apis/servicenetworking_v1/classes.rb +19 -0
  114. data/generated/google/apis/servicenetworking_v1/representations.rb +2 -0
  115. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  116. data/generated/google/apis/serviceusage_v1.rb +1 -1
  117. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  118. data/generated/google/apis/sheets_v4.rb +1 -1
  119. data/generated/google/apis/slides_v1.rb +1 -1
  120. data/generated/google/apis/spanner_v1.rb +1 -1
  121. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  122. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  123. data/generated/google/apis/storagetransfer_v1/classes.rb +94 -85
  124. data/generated/google/apis/storagetransfer_v1/service.rb +17 -11
  125. data/generated/google/apis/tagmanager_v1.rb +1 -1
  126. data/generated/google/apis/tagmanager_v2.rb +1 -1
  127. data/generated/google/apis/testing_v1.rb +1 -1
  128. data/generated/google/apis/testing_v1/classes.rb +29 -0
  129. data/generated/google/apis/testing_v1/representations.rb +15 -0
  130. data/generated/google/apis/toolresults_v1.rb +1 -1
  131. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  132. data/lib/google/apis/version.rb +1 -1
  133. metadata +11 -3
@@ -28,84 +28,6 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class GoogleAppsCloudidentityDevicesV1alpha1ApproveDeviceUserResponse
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class GoogleAppsCloudidentityDevicesV1alpha1BlockDeviceUserResponse
44
- class Representation < Google::Apis::Core::JsonRepresentation; end
45
-
46
- include Google::Apis::Core::JsonObjectSupport
47
- end
48
-
49
- class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceResponse
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
-
52
- include Google::Apis::Core::JsonObjectSupport
53
- end
54
-
55
- class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceUserResponse
56
- class Representation < Google::Apis::Core::JsonRepresentation; end
57
-
58
- include Google::Apis::Core::JsonObjectSupport
59
- end
60
-
61
- class GoogleAppsCloudidentityDevicesV1alpha1Device
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
65
- end
66
-
67
- class GoogleAppsCloudidentityDevicesV1alpha1DeviceUser
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
69
-
70
- include Google::Apis::Core::JsonObjectSupport
71
- end
72
-
73
- class GoogleAppsCloudidentityDevicesV1alpha1EndpointApp
74
- class Representation < Google::Apis::Core::JsonRepresentation; end
75
-
76
- include Google::Apis::Core::JsonObjectSupport
77
- end
78
-
79
- class GoogleAppsCloudidentityDevicesV1alpha1ListDeviceUsersResponse
80
- class Representation < Google::Apis::Core::JsonRepresentation; end
81
-
82
- include Google::Apis::Core::JsonObjectSupport
83
- end
84
-
85
- class GoogleAppsCloudidentityDevicesV1alpha1ListDevicesResponse
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- include Google::Apis::Core::JsonObjectSupport
89
- end
90
-
91
- class GoogleAppsCloudidentityDevicesV1alpha1ListEndpointAppsResponse
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
- class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceResponse
98
- class Representation < Google::Apis::Core::JsonRepresentation; end
99
-
100
- include Google::Apis::Core::JsonObjectSupport
101
- end
102
-
103
- class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceUserResponse
104
- class Representation < Google::Apis::Core::JsonRepresentation; end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
31
  class Group
110
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
33
 
@@ -192,154 +114,6 @@ module Google
192
114
  end
193
115
  end
194
116
 
195
- class GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes
196
- # @private
197
- class Representation < Google::Apis::Core::JsonRepresentation
198
- property :baseband_version, as: 'basebandVersion'
199
- property :bootloader_version, as: 'bootloaderVersion'
200
- property :build_number, as: 'buildNumber'
201
- property :enabled_developer_options, as: 'enabledDeveloperOptions'
202
- property :enabled_unknown_sources, as: 'enabledUnknownSources'
203
- property :enabled_usb_debugging, as: 'enabledUsbDebugging'
204
- property :encryption_state, as: 'encryptionState'
205
- property :hardware, as: 'hardware'
206
- property :kernel_version, as: 'kernelVersion'
207
- collection :other_accounts, as: 'otherAccounts'
208
- property :owner_profile_account, as: 'ownerProfileAccount'
209
- property :ownership_privilege, as: 'ownershipPrivilege'
210
- property :security_patch_time, as: 'securityPatchTime'
211
- property :supports_work_profile, as: 'supportsWorkProfile'
212
- end
213
- end
214
-
215
- class GoogleAppsCloudidentityDevicesV1alpha1ApproveDeviceUserResponse
216
- # @private
217
- class Representation < Google::Apis::Core::JsonRepresentation
218
- property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation
219
-
220
- end
221
- end
222
-
223
- class GoogleAppsCloudidentityDevicesV1alpha1BlockDeviceUserResponse
224
- # @private
225
- class Representation < Google::Apis::Core::JsonRepresentation
226
- property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation
227
-
228
- end
229
- end
230
-
231
- class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceResponse
232
- # @private
233
- class Representation < Google::Apis::Core::JsonRepresentation
234
- property :device, as: 'device', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device::Representation
235
-
236
- end
237
- end
238
-
239
- class GoogleAppsCloudidentityDevicesV1alpha1CancelWipeDeviceUserResponse
240
- # @private
241
- class Representation < Google::Apis::Core::JsonRepresentation
242
- property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation
243
-
244
- end
245
- end
246
-
247
- class GoogleAppsCloudidentityDevicesV1alpha1Device
248
- # @private
249
- class Representation < Google::Apis::Core::JsonRepresentation
250
- property :android_specific_attributes, as: 'androidSpecificAttributes', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1AndroidAttributes::Representation
251
-
252
- property :asset_tag, as: 'assetTag'
253
- property :brand, as: 'brand'
254
- property :compromised_state, as: 'compromisedState'
255
- property :create_time, as: 'createTime'
256
- property :device_type, as: 'deviceType'
257
- property :imei, as: 'imei'
258
- property :last_sync_time, as: 'lastSyncTime'
259
- property :management_state, as: 'managementState'
260
- property :manufacturer, as: 'manufacturer'
261
- property :meid, as: 'meid'
262
- property :model, as: 'model'
263
- property :name, as: 'name'
264
- property :network_operator, as: 'networkOperator'
265
- property :os_version, as: 'osVersion'
266
- property :owner_type, as: 'ownerType'
267
- property :release_version, as: 'releaseVersion'
268
- property :serial_number, as: 'serialNumber'
269
- collection :wifi_mac_addresses, as: 'wifiMacAddresses'
270
- end
271
- end
272
-
273
- class GoogleAppsCloudidentityDevicesV1alpha1DeviceUser
274
- # @private
275
- class Representation < Google::Apis::Core::JsonRepresentation
276
- property :compromised_state, as: 'compromisedState'
277
- property :first_sync_time, as: 'firstSyncTime'
278
- property :language_code, as: 'languageCode'
279
- property :last_sync_time, as: 'lastSyncTime'
280
- property :management_state, as: 'managementState'
281
- property :name, as: 'name'
282
- property :password_state, as: 'passwordState'
283
- property :user_agent, as: 'userAgent'
284
- property :user_email, as: 'userEmail'
285
- end
286
- end
287
-
288
- class GoogleAppsCloudidentityDevicesV1alpha1EndpointApp
289
- # @private
290
- class Representation < Google::Apis::Core::JsonRepresentation
291
- property :display_name, as: 'displayName'
292
- property :name, as: 'name'
293
- property :package_name, as: 'packageName'
294
- collection :permissions, as: 'permissions'
295
- property :version_code, as: 'versionCode'
296
- property :version_name, as: 'versionName'
297
- end
298
- end
299
-
300
- class GoogleAppsCloudidentityDevicesV1alpha1ListDeviceUsersResponse
301
- # @private
302
- class Representation < Google::Apis::Core::JsonRepresentation
303
- collection :device_users, as: 'deviceUsers', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation
304
-
305
- property :next_page_token, as: 'nextPageToken'
306
- end
307
- end
308
-
309
- class GoogleAppsCloudidentityDevicesV1alpha1ListDevicesResponse
310
- # @private
311
- class Representation < Google::Apis::Core::JsonRepresentation
312
- collection :devices, as: 'devices', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device::Representation
313
-
314
- property :next_page_token, as: 'nextPageToken'
315
- end
316
- end
317
-
318
- class GoogleAppsCloudidentityDevicesV1alpha1ListEndpointAppsResponse
319
- # @private
320
- class Representation < Google::Apis::Core::JsonRepresentation
321
- collection :endpoint_apps, as: 'endpointApps', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1EndpointApp, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1EndpointApp::Representation
322
-
323
- property :next_page_token, as: 'nextPageToken'
324
- end
325
- end
326
-
327
- class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceResponse
328
- # @private
329
- class Representation < Google::Apis::Core::JsonRepresentation
330
- property :device, as: 'device', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1Device::Representation
331
-
332
- end
333
- end
334
-
335
- class GoogleAppsCloudidentityDevicesV1alpha1WipeDeviceUserResponse
336
- # @private
337
- class Representation < Google::Apis::Core::JsonRepresentation
338
- property :device_user, as: 'deviceUser', class: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser, decorator: Google::Apis::CloudidentityV1beta1::GoogleAppsCloudidentityDevicesV1alpha1DeviceUser::Representation
339
-
340
- end
341
- end
342
-
343
117
  class Group
344
118
  # @private
345
119
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/tasks/
26
26
  module CloudtasksV2
27
27
  VERSION = 'V2'
28
- REVISION = '20200117'
28
+ REVISION = '20200210'
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'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/tasks/
26
26
  module CloudtasksV2beta3
27
27
  VERSION = 'V2beta3'
28
- REVISION = '20200117'
28
+ REVISION = '20200210'
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'
@@ -0,0 +1,44 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/cloudtrace_v2beta1/service.rb'
16
+ require 'google/apis/cloudtrace_v2beta1/classes.rb'
17
+ require 'google/apis/cloudtrace_v2beta1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Stackdriver Trace API
22
+ #
23
+ # Sends application trace data to Stackdriver Trace for viewing. Trace data is
24
+ # collected for all App Engine applications by default. Trace data from other
25
+ # applications can be provided using this API. This library is used to interact
26
+ # with the Trace API directly. If you are looking to instrument your application
27
+ # for Stackdriver Trace, we recommend using OpenCensus.
28
+ #
29
+ # @see https://cloud.google.com/trace
30
+ module CloudtraceV2beta1
31
+ VERSION = 'V2beta1'
32
+ REVISION = '20200212'
33
+
34
+ # View and manage your data across Google Cloud Platform services
35
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
36
+
37
+ # Write Trace data for a project or application
38
+ AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
39
+
40
+ # Read Trace data for a project or application
41
+ AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,144 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CloudtraceV2beta1
24
+
25
+ # A generic empty message that you can re-use to avoid defining duplicated
26
+ # empty messages in your APIs. A typical example is to use it as the request
27
+ # or the response type of an API method. For instance:
28
+ # service Foo `
29
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
30
+ # `
31
+ # The JSON representation for `Empty` is empty JSON object ````.
32
+ class Empty
33
+ include Google::Apis::Core::Hashable
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ end
42
+ end
43
+
44
+ # Result returned from `ListTraceSinks`.
45
+ class ListTraceSinksResponse
46
+ include Google::Apis::Core::Hashable
47
+
48
+ # If there might be more results than appear in this response, then
49
+ # `nextPageToken` is included. To get the next set of results, call the same
50
+ # method again using the value of `nextPageToken` as `pageToken`.
51
+ # Corresponds to the JSON property `nextPageToken`
52
+ # @return [String]
53
+ attr_accessor :next_page_token
54
+
55
+ # A list of sinks.
56
+ # Corresponds to the JSON property `sinks`
57
+ # @return [Array<Google::Apis::CloudtraceV2beta1::TraceSink>]
58
+ attr_accessor :sinks
59
+
60
+ def initialize(**args)
61
+ update!(**args)
62
+ end
63
+
64
+ # Update properties of this object
65
+ def update!(**args)
66
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
67
+ @sinks = args[:sinks] if args.key?(:sinks)
68
+ end
69
+ end
70
+
71
+ # OutputConfig contains a destination for writing trace data.
72
+ class OutputConfig
73
+ include Google::Apis::Core::Hashable
74
+
75
+ # The destination for writing trace data. Currently only BigQuery is
76
+ # supported. E.g.:
77
+ # "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
78
+ # Corresponds to the JSON property `destination`
79
+ # @return [String]
80
+ attr_accessor :destination
81
+
82
+ def initialize(**args)
83
+ update!(**args)
84
+ end
85
+
86
+ # Update properties of this object
87
+ def update!(**args)
88
+ @destination = args[:destination] if args.key?(:destination)
89
+ end
90
+ end
91
+
92
+ # Describes a sink used to export traces to a BigQuery dataset. The sink must
93
+ # be created within a project.
94
+ class TraceSink
95
+ include Google::Apis::Core::Hashable
96
+
97
+ # Required. The canonical sink resource name, unique within the project. Must be
98
+ # of the
99
+ # form:
100
+ # project/[PROJECT_NUMBER]/traceSinks/[SINK_ID].
101
+ # E.g.:
102
+ # `"projects/12345/traceSinks/my-project-trace-sink"`.
103
+ # Sink identifiers are limited to 256 characters and can include only the
104
+ # following characters: upper and lower-case alphanumeric characters,
105
+ # underscores, hyphens, and periods.
106
+ # Corresponds to the JSON property `name`
107
+ # @return [String]
108
+ attr_accessor :name
109
+
110
+ # OutputConfig contains a destination for writing trace data.
111
+ # Corresponds to the JSON property `outputConfig`
112
+ # @return [Google::Apis::CloudtraceV2beta1::OutputConfig]
113
+ attr_accessor :output_config
114
+
115
+ # Output only. A service account name for exporting the data. This field is
116
+ # set by sinks.create and sinks.update. The service account will need to be
117
+ # granted write access to the destination specified in the output
118
+ # configuration, see [Granting access for a
119
+ # resource](/iam/docs/granting-roles-to-service-accounts#
120
+ # granting_access_to_a_service_account_for_a_resource).
121
+ # To create tables and write data this account will need the dataEditor role.
122
+ # Read more about roles in the [BigQuery
123
+ # documentation](https://cloud.google.com/bigquery/docs/access-control#
124
+ # permissions_and_roles).
125
+ # E.g.:
126
+ # "service-00000001@00000002.iam.gserviceaccount.com"
127
+ # Corresponds to the JSON property `writerIdentity`
128
+ # @return [String]
129
+ attr_accessor :writer_identity
130
+
131
+ def initialize(**args)
132
+ update!(**args)
133
+ end
134
+
135
+ # Update properties of this object
136
+ def update!(**args)
137
+ @name = args[:name] if args.key?(:name)
138
+ @output_config = args[:output_config] if args.key?(:output_config)
139
+ @writer_identity = args[:writer_identity] if args.key?(:writer_identity)
140
+ end
141
+ end
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,82 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module CloudtraceV2beta1
24
+
25
+ class Empty
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ListTraceSinksResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class OutputConfig
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class TraceSink
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Empty
50
+ # @private
51
+ class Representation < Google::Apis::Core::JsonRepresentation
52
+ end
53
+ end
54
+
55
+ class ListTraceSinksResponse
56
+ # @private
57
+ class Representation < Google::Apis::Core::JsonRepresentation
58
+ property :next_page_token, as: 'nextPageToken'
59
+ collection :sinks, as: 'sinks', class: Google::Apis::CloudtraceV2beta1::TraceSink, decorator: Google::Apis::CloudtraceV2beta1::TraceSink::Representation
60
+
61
+ end
62
+ end
63
+
64
+ class OutputConfig
65
+ # @private
66
+ class Representation < Google::Apis::Core::JsonRepresentation
67
+ property :destination, as: 'destination'
68
+ end
69
+ end
70
+
71
+ class TraceSink
72
+ # @private
73
+ class Representation < Google::Apis::Core::JsonRepresentation
74
+ property :name, as: 'name'
75
+ property :output_config, as: 'outputConfig', class: Google::Apis::CloudtraceV2beta1::OutputConfig, decorator: Google::Apis::CloudtraceV2beta1::OutputConfig::Representation
76
+
77
+ property :writer_identity, as: 'writerIdentity'
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end