google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -28,16 +28,16 @@ module Google
28
28
  # @see https://cloud.google.com/trace
29
29
  module CloudtraceV1
30
30
  VERSION = 'V1'
31
- REVISION = '20170425'
31
+ REVISION = '20170516'
32
+
33
+ # Read Trace data for a project or application
34
+ AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
32
35
 
33
36
  # Write Trace data for a project or application
34
37
  AUTH_TRACE_APPEND = 'https://www.googleapis.com/auth/trace.append'
35
38
 
36
39
  # View and manage your data across Google Cloud Platform services
37
40
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
38
-
39
- # Read Trace data for a project or application
40
- AUTH_TRACE_READONLY = 'https://www.googleapis.com/auth/trace.readonly'
41
41
  end
42
42
  end
43
43
  end
@@ -22,86 +22,6 @@ module Google
22
22
  module Apis
23
23
  module CloudtraceV1
24
24
 
25
- # The response message for the `ListTraces` method.
26
- class ListTracesResponse
27
- include Google::Apis::Core::Hashable
28
-
29
- # List of trace records returned.
30
- # Corresponds to the JSON property `traces`
31
- # @return [Array<Google::Apis::CloudtraceV1::Trace>]
32
- attr_accessor :traces
33
-
34
- # If defined, indicates that there are more traces that match the request
35
- # and that this value should be passed to the next request to continue
36
- # retrieving additional traces.
37
- # Corresponds to the JSON property `nextPageToken`
38
- # @return [String]
39
- attr_accessor :next_page_token
40
-
41
- def initialize(**args)
42
- update!(**args)
43
- end
44
-
45
- # Update properties of this object
46
- def update!(**args)
47
- @traces = args[:traces] if args.key?(:traces)
48
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
49
- end
50
- end
51
-
52
- # A generic empty message that you can re-use to avoid defining duplicated
53
- # empty messages in your APIs. A typical example is to use it as the request
54
- # or the response type of an API method. For instance:
55
- # service Foo `
56
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
57
- # `
58
- # The JSON representation for `Empty` is empty JSON object ````.
59
- class Empty
60
- include Google::Apis::Core::Hashable
61
-
62
- def initialize(**args)
63
- update!(**args)
64
- end
65
-
66
- # Update properties of this object
67
- def update!(**args)
68
- end
69
- end
70
-
71
- # A trace describes how long it takes for an application to perform an
72
- # operation. It consists of a set of spans, each of which represent a single
73
- # timed event within the operation.
74
- class Trace
75
- include Google::Apis::Core::Hashable
76
-
77
- # Project ID of the Cloud project where the trace data is stored.
78
- # Corresponds to the JSON property `projectId`
79
- # @return [String]
80
- attr_accessor :project_id
81
-
82
- # Collection of spans in the trace.
83
- # Corresponds to the JSON property `spans`
84
- # @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
85
- attr_accessor :spans
86
-
87
- # Globally unique identifier for the trace. This identifier is a 128-bit
88
- # numeric value formatted as a 32-byte hex string.
89
- # Corresponds to the JSON property `traceId`
90
- # @return [String]
91
- attr_accessor :trace_id
92
-
93
- def initialize(**args)
94
- update!(**args)
95
- end
96
-
97
- # Update properties of this object
98
- def update!(**args)
99
- @project_id = args[:project_id] if args.key?(:project_id)
100
- @spans = args[:spans] if args.key?(:spans)
101
- @trace_id = args[:trace_id] if args.key?(:trace_id)
102
- end
103
- end
104
-
105
25
  # List of new or updated traces.
106
26
  class Traces
107
27
  include Google::Apis::Core::Hashable
@@ -129,39 +49,6 @@ module Google
129
49
  class TraceSpan
130
50
  include Google::Apis::Core::Hashable
131
51
 
132
- # Collection of labels associated with the span. Label keys must be less than
133
- # 128 bytes. Label values must be less than 16 kilobytes (10MB for
134
- # `/stacktrace` values).
135
- # Some predefined label keys exist, or you may create your own. When creating
136
- # your own, we recommend the following formats:
137
- # * `/category/product/key` for agents of well-known products (e.g.
138
- # `/db/mongodb/read_size`).
139
- # * `short_host/path/key` for domain-specific keys (e.g.
140
- # `foo.com/myproduct/bar`)
141
- # Predefined labels include:
142
- # * `/agent`
143
- # * `/component`
144
- # * `/error/message`
145
- # * `/error/name`
146
- # * `/http/client_city`
147
- # * `/http/client_country`
148
- # * `/http/client_protocol`
149
- # * `/http/client_region`
150
- # * `/http/host`
151
- # * `/http/method`
152
- # * `/http/redirected_url`
153
- # * `/http/request/size`
154
- # * `/http/response/size`
155
- # * `/http/status_code`
156
- # * `/http/url`
157
- # * `/http/user_agent`
158
- # * `/pid`
159
- # * `/stacktrace`
160
- # * `/tid`
161
- # Corresponds to the JSON property `labels`
162
- # @return [Hash<String,String>]
163
- attr_accessor :labels
164
-
165
52
  # Name of the span. Must be less than 128 bytes. The span name is sanitized
166
53
  # and displayed in the Stackdriver Trace tool in the
167
54
  # `% dynamic print site_values.console_name %`.
@@ -201,19 +88,132 @@ module Google
201
88
  # @return [String]
202
89
  attr_accessor :kind
203
90
 
91
+ # Collection of labels associated with the span. Label keys must be less than
92
+ # 128 bytes. Label values must be less than 16 kilobytes (10MB for
93
+ # `/stacktrace` values).
94
+ # Some predefined label keys exist, or you may create your own. When creating
95
+ # your own, we recommend the following formats:
96
+ # * `/category/product/key` for agents of well-known products (e.g.
97
+ # `/db/mongodb/read_size`).
98
+ # * `short_host/path/key` for domain-specific keys (e.g.
99
+ # `foo.com/myproduct/bar`)
100
+ # Predefined labels include:
101
+ # * `/agent`
102
+ # * `/component`
103
+ # * `/error/message`
104
+ # * `/error/name`
105
+ # * `/http/client_city`
106
+ # * `/http/client_country`
107
+ # * `/http/client_protocol`
108
+ # * `/http/client_region`
109
+ # * `/http/host`
110
+ # * `/http/method`
111
+ # * `/http/redirected_url`
112
+ # * `/http/request/size`
113
+ # * `/http/response/size`
114
+ # * `/http/status_code`
115
+ # * `/http/url`
116
+ # * `/http/user_agent`
117
+ # * `/pid`
118
+ # * `/stacktrace`
119
+ # * `/tid`
120
+ # Corresponds to the JSON property `labels`
121
+ # @return [Hash<String,String>]
122
+ attr_accessor :labels
123
+
204
124
  def initialize(**args)
205
125
  update!(**args)
206
126
  end
207
127
 
208
128
  # Update properties of this object
209
129
  def update!(**args)
210
- @labels = args[:labels] if args.key?(:labels)
211
130
  @name = args[:name] if args.key?(:name)
212
131
  @span_id = args[:span_id] if args.key?(:span_id)
213
132
  @parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
214
133
  @end_time = args[:end_time] if args.key?(:end_time)
215
134
  @start_time = args[:start_time] if args.key?(:start_time)
216
135
  @kind = args[:kind] if args.key?(:kind)
136
+ @labels = args[:labels] if args.key?(:labels)
137
+ end
138
+ end
139
+
140
+ # The response message for the `ListTraces` method.
141
+ class ListTracesResponse
142
+ include Google::Apis::Core::Hashable
143
+
144
+ # List of trace records returned.
145
+ # Corresponds to the JSON property `traces`
146
+ # @return [Array<Google::Apis::CloudtraceV1::Trace>]
147
+ attr_accessor :traces
148
+
149
+ # If defined, indicates that there are more traces that match the request
150
+ # and that this value should be passed to the next request to continue
151
+ # retrieving additional traces.
152
+ # Corresponds to the JSON property `nextPageToken`
153
+ # @return [String]
154
+ attr_accessor :next_page_token
155
+
156
+ def initialize(**args)
157
+ update!(**args)
158
+ end
159
+
160
+ # Update properties of this object
161
+ def update!(**args)
162
+ @traces = args[:traces] if args.key?(:traces)
163
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
164
+ end
165
+ end
166
+
167
+ # A generic empty message that you can re-use to avoid defining duplicated
168
+ # empty messages in your APIs. A typical example is to use it as the request
169
+ # or the response type of an API method. For instance:
170
+ # service Foo `
171
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
172
+ # `
173
+ # The JSON representation for `Empty` is empty JSON object ````.
174
+ class Empty
175
+ include Google::Apis::Core::Hashable
176
+
177
+ def initialize(**args)
178
+ update!(**args)
179
+ end
180
+
181
+ # Update properties of this object
182
+ def update!(**args)
183
+ end
184
+ end
185
+
186
+ # A trace describes how long it takes for an application to perform an
187
+ # operation. It consists of a set of spans, each of which represent a single
188
+ # timed event within the operation.
189
+ class Trace
190
+ include Google::Apis::Core::Hashable
191
+
192
+ # Project ID of the Cloud project where the trace data is stored.
193
+ # Corresponds to the JSON property `projectId`
194
+ # @return [String]
195
+ attr_accessor :project_id
196
+
197
+ # Collection of spans in the trace.
198
+ # Corresponds to the JSON property `spans`
199
+ # @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
200
+ attr_accessor :spans
201
+
202
+ # Globally unique identifier for the trace. This identifier is a 128-bit
203
+ # numeric value formatted as a 32-byte hex string.
204
+ # Corresponds to the JSON property `traceId`
205
+ # @return [String]
206
+ attr_accessor :trace_id
207
+
208
+ def initialize(**args)
209
+ update!(**args)
210
+ end
211
+
212
+ # Update properties of this object
213
+ def update!(**args)
214
+ @project_id = args[:project_id] if args.key?(:project_id)
215
+ @spans = args[:spans] if args.key?(:spans)
216
+ @trace_id = args[:trace_id] if args.key?(:trace_id)
217
217
  end
218
218
  end
219
219
  end
@@ -22,79 +22,79 @@ module Google
22
22
  module Apis
23
23
  module CloudtraceV1
24
24
 
25
- class ListTracesResponse
25
+ class Traces
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class Empty
31
+ class TraceSpan
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class Trace
37
+ class ListTracesResponse
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Traces
43
+ class Empty
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class TraceSpan
49
+ class Trace
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class ListTracesResponse
55
+ class Traces
56
56
  # @private
57
57
  class Representation < Google::Apis::Core::JsonRepresentation
58
58
  collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
59
59
 
60
- property :next_page_token, as: 'nextPageToken'
61
60
  end
62
61
  end
63
62
 
64
- class Empty
63
+ class TraceSpan
65
64
  # @private
66
65
  class Representation < Google::Apis::Core::JsonRepresentation
66
+ property :name, as: 'name'
67
+ property :span_id, :numeric_string => true, as: 'spanId'
68
+ property :parent_span_id, :numeric_string => true, as: 'parentSpanId'
69
+ property :end_time, as: 'endTime'
70
+ property :start_time, as: 'startTime'
71
+ property :kind, as: 'kind'
72
+ hash :labels, as: 'labels'
67
73
  end
68
74
  end
69
75
 
70
- class Trace
76
+ class ListTracesResponse
71
77
  # @private
72
78
  class Representation < Google::Apis::Core::JsonRepresentation
73
- property :project_id, as: 'projectId'
74
- collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation
79
+ collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
75
80
 
76
- property :trace_id, as: 'traceId'
81
+ property :next_page_token, as: 'nextPageToken'
77
82
  end
78
83
  end
79
84
 
80
- class Traces
85
+ class Empty
81
86
  # @private
82
87
  class Representation < Google::Apis::Core::JsonRepresentation
83
- collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
84
-
85
88
  end
86
89
  end
87
90
 
88
- class TraceSpan
91
+ class Trace
89
92
  # @private
90
93
  class Representation < Google::Apis::Core::JsonRepresentation
91
- hash :labels, as: 'labels'
92
- property :name, as: 'name'
93
- property :span_id, :numeric_string => true, as: 'spanId'
94
- property :parent_span_id, :numeric_string => true, as: 'parentSpanId'
95
- property :end_time, as: 'endTime'
96
- property :start_time, as: 'startTime'
97
- property :kind, as: 'kind'
94
+ property :project_id, as: 'projectId'
95
+ collection :spans, as: 'spans', class: Google::Apis::CloudtraceV1::TraceSpan, decorator: Google::Apis::CloudtraceV1::TraceSpan::Representation
96
+
97
+ property :trace_id, as: 'traceId'
98
98
  end
99
99
  end
100
100
  end
@@ -90,13 +90,6 @@ module Google
90
90
  # Returns of a list of traces that match the specified filter conditions.
91
91
  # @param [String] project_id
92
92
  # ID of the Cloud project where the trace data is stored.
93
- # @param [Fixnum] page_size
94
- # Maximum number of traces to return. If not specified or <= 0, the
95
- # implementation selects a reasonable value. The implementation may
96
- # return fewer traces than the requested page size. Optional.
97
- # @param [String] view
98
- # Type of data returned for traces in the list. Optional. Default is
99
- # `MINIMAL`.
100
93
  # @param [String] order_by
101
94
  # Field used to sort the returned traces. Optional.
102
95
  # Can be one of the following:
@@ -140,12 +133,19 @@ module Google
140
133
  # @param [String] end_time
141
134
  # End of the time interval (inclusive) during which the trace data was
142
135
  # collected from the application.
143
- # @param [String] page_token
144
- # Token identifying the page of results to return. If provided, use the
145
- # value of the `next_page_token` field from a previous request. Optional.
146
136
  # @param [String] start_time
147
137
  # Start of the time interval (inclusive) during which the trace data was
148
138
  # collected from the application.
139
+ # @param [String] page_token
140
+ # Token identifying the page of results to return. If provided, use the
141
+ # value of the `next_page_token` field from a previous request. Optional.
142
+ # @param [Fixnum] page_size
143
+ # Maximum number of traces to return. If not specified or <= 0, the
144
+ # implementation selects a reasonable value. The implementation may
145
+ # return fewer traces than the requested page size. Optional.
146
+ # @param [String] view
147
+ # Type of data returned for traces in the list. Optional. Default is
148
+ # `MINIMAL`.
149
149
  # @param [String] quota_user
150
150
  # Available to use for quota purposes for server-side applications. Can be any
151
151
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -163,18 +163,18 @@ module Google
163
163
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
164
164
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
165
165
  # @raise [Google::Apis::AuthorizationError] Authorization is required
166
- def list_project_traces(project_id, page_size: nil, view: nil, order_by: nil, filter: nil, end_time: nil, page_token: nil, start_time: nil, quota_user: nil, fields: nil, options: nil, &block)
166
+ def list_project_traces(project_id, order_by: nil, filter: nil, end_time: nil, start_time: nil, page_token: nil, page_size: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
167
167
  command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
168
168
  command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
169
169
  command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
170
170
  command.params['projectId'] = project_id unless project_id.nil?
171
- command.query['pageSize'] = page_size unless page_size.nil?
172
- command.query['view'] = view unless view.nil?
173
171
  command.query['orderBy'] = order_by unless order_by.nil?
174
172
  command.query['filter'] = filter unless filter.nil?
175
173
  command.query['endTime'] = end_time unless end_time.nil?
176
- command.query['pageToken'] = page_token unless page_token.nil?
177
174
  command.query['startTime'] = start_time unless start_time.nil?
175
+ command.query['pageToken'] = page_token unless page_token.nil?
176
+ command.query['pageSize'] = page_size unless page_size.nil?
177
+ command.query['view'] = view unless view.nil?
178
178
  command.query['quotaUser'] = quota_user unless quota_user.nil?
179
179
  command.query['fields'] = fields unless fields.nil?
180
180
  execute_or_queue_command(command, &block)
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/compute/docs/reference/latest/
26
26
  module ComputeBeta
27
27
  VERSION = 'Beta'
28
- REVISION = '20170416'
28
+ REVISION = '20170515'
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'