google-api-client 0.10.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -22,6 +22,25 @@ module Google
22
22
  module Apis
23
23
  module CloudtraceV1
24
24
 
25
+ # List of new or updated traces.
26
+ class Traces
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # List of traces.
30
+ # Corresponds to the JSON property `traces`
31
+ # @return [Array<Google::Apis::CloudtraceV1::Trace>]
32
+ attr_accessor :traces
33
+
34
+ def initialize(**args)
35
+ update!(**args)
36
+ end
37
+
38
+ # Update properties of this object
39
+ def update!(**args)
40
+ @traces = args[:traces] if args.key?(:traces)
41
+ end
42
+ end
43
+
25
44
  # A span represents a single timed event within a trace. Spans can be nested
26
45
  # and form a trace tree. Often, a trace contains a root span that describes the
27
46
  # end-to-end latency of an operation and, optionally, one or more subspans for
@@ -30,22 +49,6 @@ module Google
30
49
  class TraceSpan
31
50
  include Google::Apis::Core::Hashable
32
51
 
33
- # Identifier for the span. Must be a 64-bit integer other than 0 and
34
- # unique within a trace.
35
- # Corresponds to the JSON property `spanId`
36
- # @return [String]
37
- attr_accessor :span_id
38
-
39
- # ID of the parent span, if any. Optional.
40
- # Corresponds to the JSON property `parentSpanId`
41
- # @return [String]
42
- attr_accessor :parent_span_id
43
-
44
- # End time of the span in nanoseconds from the UNIX epoch.
45
- # Corresponds to the JSON property `endTime`
46
- # @return [String]
47
- attr_accessor :end_time
48
-
49
52
  # Start time of the span in nanoseconds from the UNIX epoch.
50
53
  # Corresponds to the JSON property `startTime`
51
54
  # @return [String]
@@ -75,19 +78,35 @@ module Google
75
78
  # @return [String]
76
79
  attr_accessor :name
77
80
 
81
+ # Identifier for the span. Must be a 64-bit integer other than 0 and
82
+ # unique within a trace.
83
+ # Corresponds to the JSON property `spanId`
84
+ # @return [String]
85
+ attr_accessor :span_id
86
+
87
+ # ID of the parent span, if any. Optional.
88
+ # Corresponds to the JSON property `parentSpanId`
89
+ # @return [String]
90
+ attr_accessor :parent_span_id
91
+
92
+ # End time of the span in nanoseconds from the UNIX epoch.
93
+ # Corresponds to the JSON property `endTime`
94
+ # @return [String]
95
+ attr_accessor :end_time
96
+
78
97
  def initialize(**args)
79
98
  update!(**args)
80
99
  end
81
100
 
82
101
  # Update properties of this object
83
102
  def update!(**args)
84
- @span_id = args[:span_id] if args.key?(:span_id)
85
- @parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
86
- @end_time = args[:end_time] if args.key?(:end_time)
87
103
  @start_time = args[:start_time] if args.key?(:start_time)
88
104
  @kind = args[:kind] if args.key?(:kind)
89
105
  @labels = args[:labels] if args.key?(:labels)
90
106
  @name = args[:name] if args.key?(:name)
107
+ @span_id = args[:span_id] if args.key?(:span_id)
108
+ @parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id)
109
+ @end_time = args[:end_time] if args.key?(:end_time)
91
110
  end
92
111
  end
93
112
 
@@ -170,25 +189,6 @@ module Google
170
189
  @trace_id = args[:trace_id] if args.key?(:trace_id)
171
190
  end
172
191
  end
173
-
174
- # List of new or updated traces.
175
- class Traces
176
- include Google::Apis::Core::Hashable
177
-
178
- # List of traces.
179
- # Corresponds to the JSON property `traces`
180
- # @return [Array<Google::Apis::CloudtraceV1::Trace>]
181
- attr_accessor :traces
182
-
183
- def initialize(**args)
184
- update!(**args)
185
- end
186
-
187
- # Update properties of this object
188
- def update!(**args)
189
- @traces = args[:traces] if args.key?(:traces)
190
- end
191
- end
192
192
  end
193
193
  end
194
194
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module CloudtraceV1
24
24
 
25
+ class Traces
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class TraceSpan
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -47,21 +53,23 @@ module Google
47
53
  end
48
54
 
49
55
  class Traces
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
56
+ # @private
57
+ class Representation < Google::Apis::Core::JsonRepresentation
58
+ collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
51
59
 
52
- include Google::Apis::Core::JsonObjectSupport
60
+ end
53
61
  end
54
62
 
55
63
  class TraceSpan
56
64
  # @private
57
65
  class Representation < Google::Apis::Core::JsonRepresentation
58
- property :span_id, as: 'spanId'
59
- property :parent_span_id, as: 'parentSpanId'
60
- property :end_time, as: 'endTime'
61
66
  property :start_time, as: 'startTime'
62
67
  property :kind, as: 'kind'
63
68
  hash :labels, as: 'labels'
64
69
  property :name, as: 'name'
70
+ property :span_id, as: 'spanId'
71
+ property :parent_span_id, as: 'parentSpanId'
72
+ property :end_time, as: 'endTime'
65
73
  end
66
74
  end
67
75
 
@@ -89,14 +97,6 @@ module Google
89
97
  property :trace_id, as: 'traceId'
90
98
  end
91
99
  end
92
-
93
- class Traces
94
- # @private
95
- class Representation < Google::Apis::Core::JsonRepresentation
96
- collection :traces, as: 'traces', class: Google::Apis::CloudtraceV1::Trace, decorator: Google::Apis::CloudtraceV1::Trace::Representation
97
-
98
- end
99
- end
100
100
  end
101
101
  end
102
102
  end
@@ -57,11 +57,11 @@ module Google
57
57
  # @param [String] project_id
58
58
  # ID of the Cloud project where the trace data is stored.
59
59
  # @param [Google::Apis::CloudtraceV1::Traces] traces_object
60
- # @param [String] fields
61
- # Selector specifying which fields to include in a partial response.
62
60
  # @param [String] quota_user
63
61
  # Available to use for quota purposes for server-side applications. Can be any
64
62
  # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # @param [String] fields
64
+ # Selector specifying which fields to include in a partial response.
65
65
  # @param [Google::Apis::RequestOptions] options
66
66
  # Request-specific options
67
67
  #
@@ -74,15 +74,15 @@ module Google
74
74
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
75
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
76
  # @raise [Google::Apis::AuthorizationError] Authorization is required
77
- def patch_project_traces(project_id, traces_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77
+ def patch_project_traces(project_id, traces_object = nil, quota_user: nil, fields: nil, options: nil, &block)
78
78
  command = make_simple_command(:patch, 'v1/projects/{projectId}/traces', options)
79
79
  command.request_representation = Google::Apis::CloudtraceV1::Traces::Representation
80
80
  command.request_object = traces_object
81
81
  command.response_representation = Google::Apis::CloudtraceV1::Empty::Representation
82
82
  command.response_class = Google::Apis::CloudtraceV1::Empty
83
83
  command.params['projectId'] = project_id unless project_id.nil?
84
- command.query['fields'] = fields unless fields.nil?
85
84
  command.query['quotaUser'] = quota_user unless quota_user.nil?
85
+ command.query['fields'] = fields unless fields.nil?
86
86
  execute_or_queue_command(command, &block)
87
87
  end
88
88
 
@@ -105,12 +105,12 @@ module Google
105
105
  # @param [String] end_time
106
106
  # Start of the time interval (inclusive) during which the trace data was
107
107
  # collected from the application.
108
- # @param [String] start_time
109
- # End of the time interval (inclusive) during which the trace data was
110
- # collected from the application.
111
108
  # @param [String] page_token
112
109
  # Token identifying the page of results to return. If provided, use the
113
110
  # value of the `next_page_token` field from a previous request. Optional.
111
+ # @param [String] start_time
112
+ # End of the time interval (inclusive) during which the trace data was
113
+ # collected from the application.
114
114
  # @param [Fixnum] page_size
115
115
  # Maximum number of traces to return. If not specified or <= 0, the
116
116
  # implementation selects a reasonable value. The implementation may
@@ -118,11 +118,11 @@ module Google
118
118
  # @param [String] view
119
119
  # Type of data returned for traces in the list. Optional. Default is
120
120
  # `MINIMAL`.
121
- # @param [String] fields
122
- # Selector specifying which fields to include in a partial response.
123
121
  # @param [String] quota_user
124
122
  # Available to use for quota purposes for server-side applications. Can be any
125
123
  # arbitrary string assigned to a user, but should not exceed 40 characters.
124
+ # @param [String] fields
125
+ # Selector specifying which fields to include in a partial response.
126
126
  # @param [Google::Apis::RequestOptions] options
127
127
  # Request-specific options
128
128
  #
@@ -135,7 +135,7 @@ module Google
135
135
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
136
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
137
  # @raise [Google::Apis::AuthorizationError] Authorization is required
138
- 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, fields: nil, quota_user: nil, options: nil, &block)
138
+ def list_project_traces(project_id, order_by: nil, filter: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
139
139
  command = make_simple_command(:get, 'v1/projects/{projectId}/traces', options)
140
140
  command.response_representation = Google::Apis::CloudtraceV1::ListTracesResponse::Representation
141
141
  command.response_class = Google::Apis::CloudtraceV1::ListTracesResponse
@@ -143,12 +143,12 @@ module Google
143
143
  command.query['orderBy'] = order_by unless order_by.nil?
144
144
  command.query['filter'] = filter unless filter.nil?
145
145
  command.query['endTime'] = end_time unless end_time.nil?
146
- command.query['startTime'] = start_time unless start_time.nil?
147
146
  command.query['pageToken'] = page_token unless page_token.nil?
147
+ command.query['startTime'] = start_time unless start_time.nil?
148
148
  command.query['pageSize'] = page_size unless page_size.nil?
149
149
  command.query['view'] = view unless view.nil?
150
- command.query['fields'] = fields unless fields.nil?
151
150
  command.query['quotaUser'] = quota_user unless quota_user.nil?
151
+ command.query['fields'] = fields unless fields.nil?
152
152
  execute_or_queue_command(command, &block)
153
153
  end
154
154
 
@@ -157,11 +157,11 @@ module Google
157
157
  # ID of the Cloud project where the trace data is stored.
158
158
  # @param [String] trace_id
159
159
  # ID of the trace to return.
160
- # @param [String] fields
161
- # Selector specifying which fields to include in a partial response.
162
160
  # @param [String] quota_user
163
161
  # Available to use for quota purposes for server-side applications. Can be any
164
162
  # arbitrary string assigned to a user, but should not exceed 40 characters.
163
+ # @param [String] fields
164
+ # Selector specifying which fields to include in a partial response.
165
165
  # @param [Google::Apis::RequestOptions] options
166
166
  # Request-specific options
167
167
  #
@@ -174,14 +174,14 @@ module Google
174
174
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
175
175
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
176
176
  # @raise [Google::Apis::AuthorizationError] Authorization is required
177
- def get_project_trace(project_id, trace_id, fields: nil, quota_user: nil, options: nil, &block)
177
+ def get_project_trace(project_id, trace_id, quota_user: nil, fields: nil, options: nil, &block)
178
178
  command = make_simple_command(:get, 'v1/projects/{projectId}/traces/{traceId}', options)
179
179
  command.response_representation = Google::Apis::CloudtraceV1::Trace::Representation
180
180
  command.response_class = Google::Apis::CloudtraceV1::Trace
181
181
  command.params['projectId'] = project_id unless project_id.nil?
182
182
  command.params['traceId'] = trace_id unless trace_id.nil?
183
- command.query['fields'] = fields unless fields.nil?
184
183
  command.query['quotaUser'] = quota_user unless quota_user.nil?
184
+ command.query['fields'] = fields unless fields.nil?
185
185
  execute_or_queue_command(command, &block)
186
186
  end
187
187
 
@@ -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 = '20170302'
28
+ REVISION = '20170313'
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'
@@ -845,9 +845,9 @@ module Google
845
845
  end
846
846
  end
847
847
 
848
- # Specifies the audit configuration for a service. It consists of which
849
- # permission types are logged, and what identities, if any, are exempted from
850
- # logging. An AuditConifg must have one or more AuditLogConfigs.
848
+ # Specifies the audit configuration for a service. The configuration determines
849
+ # which permission types are logged, and what identities, if any, are exempted
850
+ # from logging. An AuditConifg must have one or more AuditLogConfigs.
851
851
  # If there are AuditConfigs for both `allServices` and a specific service, the
852
852
  # union of the two AuditConfigs is used for that service: the log_types
853
853
  # specified in each AuditConfig are enabled, and the exempted_members in each
@@ -874,8 +874,8 @@ module Google
874
874
  attr_accessor :exempted_members
875
875
 
876
876
  # Specifies a service that will be enabled for audit logging. For example, `
877
- # resourcemanager`, `storage`, `compute`. `allServices` is a special value that
878
- # covers all services.
877
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
878
+ # value that covers all services.
879
879
  # Corresponds to the JSON property `service`
880
880
  # @return [String]
881
881
  attr_accessor :service
@@ -1649,6 +1649,7 @@ module Google
1649
1649
  # inserting a BackendService. An up-to-date fingerprint must be provided in
1650
1650
  # order to update the BackendService.
1651
1651
  # Corresponds to the JSON property `fingerprint`
1652
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1652
1653
  # @return [String]
1653
1654
  attr_accessor :fingerprint
1654
1655
 
@@ -2684,6 +2685,7 @@ module Google
2684
2685
  # hash in order to update or change labels.
2685
2686
  # To see the latest fingerprint, make a get() request to retrieve a disk.
2686
2687
  # Corresponds to the JSON property `labelFingerprint`
2688
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2687
2689
  # @return [String]
2688
2690
  attr_accessor :label_fingerprint
2689
2691
 
@@ -3970,6 +3972,7 @@ module Google
3970
3972
  # provide an up-to-date fingerprint hash when updating or changing labels. Make
3971
3973
  # a get() request to the resource to get the latest fingerprint.
3972
3974
  # Corresponds to the JSON property `labelFingerprint`
3975
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
3973
3976
  # @return [String]
3974
3977
  attr_accessor :label_fingerprint
3975
3978
 
@@ -4762,6 +4765,7 @@ module Google
4762
4765
  # to update or change labels.
4763
4766
  # To see the latest fingerprint, make a get() request to retrieve an image.
4764
4767
  # Corresponds to the JSON property `labelFingerprint`
4768
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
4765
4769
  # @return [String]
4766
4770
  attr_accessor :label_fingerprint
4767
4771
 
@@ -5003,6 +5007,7 @@ module Google
5003
5007
  # order to update or change metadata.
5004
5008
  # To see the latest fingerprint, make get() request to the instance.
5005
5009
  # Corresponds to the JSON property `labelFingerprint`
5010
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5006
5011
  # @return [String]
5007
5012
  attr_accessor :label_fingerprint
5008
5013
 
@@ -5191,6 +5196,7 @@ module Google
5191
5196
  # fingerprint to detect conflicts when multiple users change the named ports
5192
5197
  # concurrently.
5193
5198
  # Corresponds to the JSON property `fingerprint`
5199
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5194
5200
  # @return [String]
5195
5201
  attr_accessor :fingerprint
5196
5202
 
@@ -5418,6 +5424,7 @@ module Google
5418
5424
  # [Output Only] The fingerprint of the resource data. You can use this optional
5419
5425
  # field for optimistic locking when you update the resource.
5420
5426
  # Corresponds to the JSON property `fingerprint`
5427
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5421
5428
  # @return [String]
5422
5429
  attr_accessor :fingerprint
5423
5430
 
@@ -5995,6 +6002,7 @@ module Google
5995
6002
  # Then, include the fingerprint in your request to ensure that you do not
5996
6003
  # overwrite changes that were applied from another concurrent request.
5997
6004
  # Corresponds to the JSON property `fingerprint`
6005
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5998
6006
  # @return [String]
5999
6007
  attr_accessor :fingerprint
6000
6008
 
@@ -6230,6 +6238,7 @@ module Google
6230
6238
  # ensure that you do not overwrite changes that were applied from another
6231
6239
  # concurrent request.
6232
6240
  # Corresponds to the JSON property `fingerprint`
6241
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
6233
6242
  # @return [String]
6234
6243
  attr_accessor :fingerprint
6235
6244
 
@@ -6678,6 +6687,7 @@ module Google
6678
6687
  # conflicts. Provide the latest fingerprint value when making a request to add
6679
6688
  # or change labels.
6680
6689
  # Corresponds to the JSON property `labelFingerprint`
6690
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
6681
6691
  # @return [String]
6682
6692
  attr_accessor :label_fingerprint
6683
6693
 
@@ -7334,6 +7344,7 @@ module Google
7334
7344
  # modify or update metadata. You must always provide an up-to-date fingerprint
7335
7345
  # hash in order to update or change metadata.
7336
7346
  # Corresponds to the JSON property `fingerprint`
7347
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
7337
7348
  # @return [String]
7338
7349
  attr_accessor :fingerprint
7339
7350
 
@@ -8346,6 +8357,7 @@ module Google
8346
8357
  # If no `etag` is provided in the call to `setIamPolicy`, then the existing
8347
8358
  # policy is overwritten blindly.
8348
8359
  # Corresponds to the JSON property `etag`
8360
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
8349
8361
  # @return [String]
8350
8362
  attr_accessor :etag
8351
8363
 
@@ -8919,6 +8931,7 @@ module Google
8919
8931
  # This field is used for optimistic locking when you update the target pool
8920
8932
  # entries. This field is optional.
8921
8933
  # Corresponds to the JSON property `fingerprint`
8934
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
8922
8935
  # @return [String]
8923
8936
  attr_accessor :fingerprint
8924
8937
 
@@ -9046,6 +9059,7 @@ module Google
9046
9059
  # ensure that you do not overwrite changes that were applied from another
9047
9060
  # concurrent request.
9048
9061
  # Corresponds to the JSON property `fingerprint`
9062
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
9049
9063
  # @return [String]
9050
9064
  attr_accessor :fingerprint
9051
9065
 
@@ -9639,8 +9653,9 @@ module Google
9639
9653
  # @return [String]
9640
9654
  attr_accessor :ip_range
9641
9655
 
9642
- # URI of linked VPN tunnel. It must be in the same region as the router. Each
9643
- # interface can have at most one linked resource.
9656
+ # URI of the linked VPN tunnel. It must be in the same region as the router.
9657
+ # Each interface can have at most one linked resource and it could either be a
9658
+ # VPN Tunnel or an interconnect attachment.
9644
9659
  # Corresponds to the JSON property `linkedVpnTunnel`
9645
9660
  # @return [String]
9646
9661
  attr_accessor :linked_vpn_tunnel
@@ -9720,6 +9735,11 @@ module Google
9720
9735
  # @return [Array<Google::Apis::ComputeBeta::Route>]
9721
9736
  attr_accessor :best_routes
9722
9737
 
9738
+ # Best routes learned by this router.
9739
+ # Corresponds to the JSON property `bestRoutesForRouter`
9740
+ # @return [Array<Google::Apis::ComputeBeta::Route>]
9741
+ attr_accessor :best_routes_for_router
9742
+
9723
9743
  #
9724
9744
  # Corresponds to the JSON property `bgpPeerStatus`
9725
9745
  # @return [Array<Google::Apis::ComputeBeta::RouterStatusBgpPeerStatus>]
@@ -9737,6 +9757,7 @@ module Google
9737
9757
  # Update properties of this object
9738
9758
  def update!(**args)
9739
9759
  @best_routes = args[:best_routes] if args.key?(:best_routes)
9760
+ @best_routes_for_router = args[:best_routes_for_router] if args.key?(:best_routes_for_router)
9740
9761
  @bgp_peer_status = args[:bgp_peer_status] if args.key?(:bgp_peer_status)
9741
9762
  @network = args[:network] if args.key?(:network)
9742
9763
  end
@@ -10213,6 +10234,7 @@ module Google
10213
10234
  # fingerprint hash in order to update or change labels.
10214
10235
  # To see the latest fingerprint, make a get() request to retrieve a snapshot.
10215
10236
  # Corresponds to the JSON property `labelFingerprint`
10237
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
10216
10238
  # @return [String]
10217
10239
  attr_accessor :label_fingerprint
10218
10240
 
@@ -10907,6 +10929,7 @@ module Google
10907
10929
  # hash in order to update or change metadata.
10908
10930
  # To see the latest fingerprint, make get() request to the instance.
10909
10931
  # Corresponds to the JSON property `fingerprint`
10932
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
10910
10933
  # @return [String]
10911
10934
  attr_accessor :fingerprint
10912
10935
 
@@ -12661,6 +12684,7 @@ module Google
12661
12684
  # inserting a UrlMap. An up-to-date fingerprint must be provided in order to
12662
12685
  # update the UrlMap.
12663
12686
  # Corresponds to the JSON property `fingerprint`
12687
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
12664
12688
  # @return [String]
12665
12689
  attr_accessor :fingerprint
12666
12690
 
@@ -13460,6 +13484,7 @@ module Google
13460
13484
  # provide an up-to-date fingerprint hash in order to update or change labels.
13461
13485
  # Make a get() request to the resource to get the latest fingerprint.
13462
13486
  # Corresponds to the JSON property `labelFingerprint`
13487
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
13463
13488
  # @return [String]
13464
13489
  attr_accessor :label_fingerprint
13465
13490