google-api-client 0.23.0 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +114 -0
  3. data/CODE_OF_CONDUCT.md +43 -0
  4. data/MIGRATING.md +1 -5
  5. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/service.rb +3 -3
  10. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  11. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  12. data/generated/google/apis/androidmanagement_v1/classes.rb +7 -3
  13. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  14. data/generated/google/apis/androidpublisher_v2/classes.rb +9 -0
  15. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  16. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  17. data/generated/google/apis/androidpublisher_v3/classes.rb +9 -0
  18. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  19. data/generated/google/apis/appengine_v1.rb +1 -1
  20. data/generated/google/apis/appengine_v1/classes.rb +34 -1
  21. data/generated/google/apis/appengine_v1/representations.rb +16 -0
  22. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  23. data/generated/google/apis/appengine_v1beta.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta/classes.rb +67 -3
  25. data/generated/google/apis/appengine_v1beta/representations.rb +32 -0
  26. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  27. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  28. data/generated/google/apis/appsmarket_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -4
  31. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  32. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -6
  33. data/generated/google/apis/chat_v1.rb +2 -2
  34. data/generated/google/apis/chat_v1/classes.rb +76 -0
  35. data/generated/google/apis/chat_v1/representations.rb +25 -0
  36. data/generated/google/apis/chat_v1/service.rb +1 -1
  37. data/generated/google/apis/classroom_v1.rb +1 -1
  38. data/generated/google/apis/classroom_v1/classes.rb +1 -1
  39. data/generated/google/apis/classroom_v1/service.rb +12 -12
  40. data/generated/google/apis/cloudbuild_v1.rb +2 -2
  41. data/generated/google/apis/cloudbuild_v1/classes.rb +21 -33
  42. data/generated/google/apis/cloudbuild_v1/service.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  44. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +31 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +3 -0
  47. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  48. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +31 -0
  49. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +3 -0
  50. data/generated/google/apis/cloudiot_v1.rb +1 -1
  51. data/generated/google/apis/cloudiot_v1/service.rb +0 -331
  52. data/generated/google/apis/cloudkms_v1.rb +1 -1
  53. data/generated/google/apis/cloudkms_v1/classes.rb +0 -1
  54. data/generated/google/apis/cloudkms_v1/service.rb +1 -1
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +66 -22
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +40 -0
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  61. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -3
  62. data/generated/google/apis/cloudresourcemanager_v2/service.rb +38 -6
  63. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  64. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +9 -5
  65. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +51 -19
  66. data/generated/google/apis/cloudshell_v1.rb +1 -1
  67. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  68. data/generated/google/apis/cloudtasks_v2beta2.rb +2 -3
  69. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +9 -12
  70. data/generated/google/apis/cloudtasks_v2beta2/service.rb +4 -11
  71. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  72. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  73. data/generated/google/apis/composer_v1beta1.rb +1 -1
  74. data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
  75. data/generated/google/apis/compute_alpha.rb +1 -1
  76. data/generated/google/apis/compute_alpha/classes.rb +49 -18
  77. data/generated/google/apis/compute_alpha/representations.rb +6 -1
  78. data/generated/google/apis/compute_beta.rb +1 -1
  79. data/generated/google/apis/compute_beta/classes.rb +1114 -103
  80. data/generated/google/apis/compute_beta/representations.rb +431 -0
  81. data/generated/google/apis/compute_beta/service.rb +605 -0
  82. data/generated/google/apis/compute_v1.rb +1 -1
  83. data/generated/google/apis/compute_v1/classes.rb +95 -1
  84. data/generated/google/apis/compute_v1/representations.rb +33 -0
  85. data/generated/google/apis/container_v1.rb +1 -1
  86. data/generated/google/apis/container_v1/classes.rb +1 -1
  87. data/generated/google/apis/container_v1/service.rb +1 -1
  88. data/generated/google/apis/container_v1beta1.rb +1 -1
  89. data/generated/google/apis/container_v1beta1/classes.rb +348 -2
  90. data/generated/google/apis/container_v1beta1/representations.rb +121 -0
  91. data/generated/google/apis/container_v1beta1/service.rb +114 -2
  92. data/generated/google/apis/content_v2.rb +1 -1
  93. data/generated/google/apis/content_v2/classes.rb +147 -0
  94. data/generated/google/apis/content_v2/representations.rb +65 -0
  95. data/generated/google/apis/content_v2/service.rb +81 -1
  96. data/generated/google/apis/content_v2sandbox.rb +1 -1
  97. data/generated/google/apis/content_v2sandbox/classes.rb +7 -0
  98. data/generated/google/apis/content_v2sandbox/representations.rb +1 -0
  99. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  100. data/generated/google/apis/dataflow_v1b3/classes.rb +262 -0
  101. data/generated/google/apis/dataflow_v1b3/representations.rb +130 -0
  102. data/generated/google/apis/dataproc_v1.rb +1 -1
  103. data/generated/google/apis/dataproc_v1/classes.rb +164 -1
  104. data/generated/google/apis/dataproc_v1/representations.rb +70 -0
  105. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  106. data/generated/google/apis/dataproc_v1beta2/classes.rb +28 -2
  107. data/generated/google/apis/dataproc_v1beta2/representations.rb +15 -0
  108. data/generated/google/apis/datastore_v1.rb +1 -1
  109. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  110. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  111. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  112. data/generated/google/apis/deploymentmanager_alpha/service.rb +1 -1
  113. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  114. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1 -1
  115. data/generated/google/apis/dialogflow_v2.rb +1 -1
  116. data/generated/google/apis/dialogflow_v2/classes.rb +40 -21
  117. data/generated/google/apis/dialogflow_v2/representations.rb +2 -0
  118. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  119. data/generated/google/apis/dialogflow_v2beta1/classes.rb +43 -28
  120. data/generated/google/apis/dialogflow_v2beta1/representations.rb +2 -0
  121. data/generated/google/apis/dialogflow_v2beta1/service.rb +74 -110
  122. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  123. data/generated/google/apis/dlp_v2.rb +1 -1
  124. data/generated/google/apis/dlp_v2/classes.rb +70 -26
  125. data/generated/google/apis/dlp_v2/representations.rb +3 -0
  126. data/generated/google/apis/dlp_v2/service.rb +78 -17
  127. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  128. data/generated/google/apis/firebaserules_v1.rb +1 -1
  129. data/generated/google/apis/firebaserules_v1/classes.rb +33 -0
  130. data/generated/google/apis/firebaserules_v1/representations.rb +17 -0
  131. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  132. data/generated/google/apis/firestore_v1beta1/classes.rb +137 -125
  133. data/generated/google/apis/firestore_v1beta1/representations.rb +39 -35
  134. data/generated/google/apis/firestore_v1beta1/service.rb +16 -16
  135. data/generated/google/apis/genomics_v1.rb +1 -1
  136. data/generated/google/apis/genomics_v1/classes.rb +0 -1
  137. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  138. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  139. data/generated/google/apis/genomics_v2alpha1/classes.rb +17 -3
  140. data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
  141. data/generated/google/apis/iam_v1.rb +1 -1
  142. data/generated/google/apis/{sqladmin_v1beta3.rb → iamcredentials_v1.rb} +9 -13
  143. data/generated/google/apis/iamcredentials_v1/classes.rb +272 -0
  144. data/generated/google/apis/iamcredentials_v1/representations.rb +139 -0
  145. data/generated/google/apis/iamcredentials_v1/service.rb +207 -0
  146. data/generated/google/apis/indexing_v3.rb +32 -0
  147. data/generated/google/apis/indexing_v3/classes.rb +115 -0
  148. data/generated/google/apis/indexing_v3/representations.rb +72 -0
  149. data/generated/google/apis/indexing_v3/service.rb +122 -0
  150. data/generated/google/apis/jobs_v2.rb +1 -1
  151. data/generated/google/apis/jobs_v2/classes.rb +73 -72
  152. data/generated/google/apis/jobs_v2/representations.rb +0 -1
  153. data/generated/google/apis/jobs_v2/service.rb +8 -7
  154. data/generated/google/apis/language_v1.rb +1 -1
  155. data/generated/google/apis/language_v1beta1.rb +1 -1
  156. data/generated/google/apis/language_v1beta2.rb +1 -1
  157. data/generated/google/apis/logging_v2.rb +1 -1
  158. data/generated/google/apis/logging_v2/classes.rb +42 -0
  159. data/generated/google/apis/logging_v2/representations.rb +17 -0
  160. data/generated/google/apis/logging_v2beta1.rb +1 -1
  161. data/generated/google/apis/logging_v2beta1/classes.rb +42 -0
  162. data/generated/google/apis/logging_v2beta1/representations.rb +17 -0
  163. data/generated/google/apis/manufacturers_v1.rb +1 -1
  164. data/generated/google/apis/ml_v1.rb +1 -1
  165. data/generated/google/apis/ml_v1/classes.rb +17 -0
  166. data/generated/google/apis/ml_v1/representations.rb +1 -0
  167. data/generated/google/apis/ml_v1/service.rb +4 -2
  168. data/generated/google/apis/monitoring_v3.rb +1 -1
  169. data/generated/google/apis/monitoring_v3/classes.rb +91 -7
  170. data/generated/google/apis/monitoring_v3/representations.rb +17 -0
  171. data/generated/google/apis/oslogin_v1.rb +1 -1
  172. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  173. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  174. data/generated/google/apis/pagespeedonline_v4.rb +1 -1
  175. data/generated/google/apis/partners_v2.rb +1 -1
  176. data/generated/google/apis/people_v1.rb +1 -1
  177. data/generated/google/apis/poly_v1.rb +1 -1
  178. data/generated/google/apis/poly_v1/classes.rb +12 -2
  179. data/generated/google/apis/poly_v1/representations.rb +1 -0
  180. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1.rb +1 -1
  182. data/generated/google/apis/pubsub_v1/classes.rb +57 -4
  183. data/generated/google/apis/pubsub_v1/representations.rb +19 -0
  184. data/generated/google/apis/pubsub_v1/service.rb +40 -2
  185. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  186. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  187. data/generated/google/apis/redis_v1beta1.rb +1 -1
  188. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  189. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  190. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  191. data/generated/google/apis/script_v1.rb +4 -1
  192. data/generated/google/apis/searchconsole_v1.rb +1 -1
  193. data/generated/google/apis/servicebroker_v1.rb +1 -1
  194. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  195. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  196. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -4
  197. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +42 -0
  198. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +17 -0
  199. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  200. data/generated/google/apis/servicecontrol_v1/classes.rb +284 -0
  201. data/generated/google/apis/servicecontrol_v1/representations.rb +78 -0
  202. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  203. data/generated/google/apis/servicemanagement_v1/classes.rb +42 -0
  204. data/generated/google/apis/servicemanagement_v1/representations.rb +17 -0
  205. data/generated/google/apis/{replicapool_v1beta2.rb → serviceusage_v1.rb} +13 -15
  206. data/generated/google/apis/serviceusage_v1/classes.rb +4020 -0
  207. data/generated/google/apis/serviceusage_v1/representations.rb +1239 -0
  208. data/generated/google/apis/serviceusage_v1/service.rb +423 -0
  209. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  210. data/generated/google/apis/serviceusage_v1beta1/classes.rb +102 -1
  211. data/generated/google/apis/serviceusage_v1beta1/representations.rb +55 -0
  212. data/generated/google/apis/serviceuser_v1.rb +1 -1
  213. data/generated/google/apis/serviceuser_v1/classes.rb +42 -0
  214. data/generated/google/apis/serviceuser_v1/representations.rb +17 -0
  215. data/generated/google/apis/serviceuser_v1/service.rb +2 -2
  216. data/generated/google/apis/sheets_v4.rb +1 -1
  217. data/generated/google/apis/slides_v1.rb +1 -1
  218. data/generated/google/apis/slides_v1/classes.rb +9 -3
  219. data/generated/google/apis/spanner_v1.rb +1 -1
  220. data/generated/google/apis/speech_v1.rb +2 -2
  221. data/generated/google/apis/speech_v1/service.rb +1 -1
  222. data/generated/google/apis/speech_v1beta1.rb +2 -2
  223. data/generated/google/apis/speech_v1beta1/service.rb +1 -1
  224. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  225. data/generated/google/apis/testing_v1.rb +1 -1
  226. data/generated/google/apis/testing_v1/classes.rb +1 -1
  227. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  228. data/generated/google/apis/texttospeech_v1beta1/classes.rb +8 -0
  229. data/generated/google/apis/texttospeech_v1beta1/representations.rb +1 -0
  230. data/generated/google/apis/videointelligence_v1.rb +1 -1
  231. data/generated/google/apis/videointelligence_v1/classes.rb +28 -28
  232. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  233. data/generated/google/apis/videointelligence_v1beta2/classes.rb +28 -28
  234. data/generated/google/apis/vision_v1.rb +1 -1
  235. data/generated/google/apis/vision_v1/classes.rb +4 -2
  236. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  237. data/generated/google/apis/vision_v1p1beta1/classes.rb +6 -3
  238. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  239. data/generated/google/apis/vision_v1p2beta1/classes.rb +4 -2
  240. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  241. data/generated/google/apis/youtube_analytics_v2.rb +1 -1
  242. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  243. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  244. data/lib/google/apis/version.rb +1 -1
  245. metadata +15 -10
  246. data/generated/google/apis/replicapool_v1beta2/classes.rb +0 -633
  247. data/generated/google/apis/replicapool_v1beta2/representations.rb +0 -264
  248. data/generated/google/apis/replicapool_v1beta2/service.rb +0 -583
  249. data/generated/google/apis/sqladmin_v1beta3/classes.rb +0 -1632
  250. data/generated/google/apis/sqladmin_v1beta3/representations.rb +0 -733
  251. data/generated/google/apis/sqladmin_v1beta3/service.rb +0 -995
@@ -262,6 +262,12 @@ module Google
262
262
  include Google::Apis::Core::JsonObjectSupport
263
263
  end
264
264
 
265
+ class MetricDescriptorMetadata
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
265
271
  class MetricThreshold
266
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
273
 
@@ -803,6 +809,8 @@ module Google
803
809
  property :display_name, as: 'displayName'
804
810
  collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation
805
811
 
812
+ property :metadata, as: 'metadata', class: Google::Apis::MonitoringV3::MetricDescriptorMetadata, decorator: Google::Apis::MonitoringV3::MetricDescriptorMetadata::Representation
813
+
806
814
  property :metric_kind, as: 'metricKind'
807
815
  property :name, as: 'name'
808
816
  property :type, as: 'type'
@@ -811,6 +819,15 @@ module Google
811
819
  end
812
820
  end
813
821
 
822
+ class MetricDescriptorMetadata
823
+ # @private
824
+ class Representation < Google::Apis::Core::JsonRepresentation
825
+ property :ingest_delay, as: 'ingestDelay'
826
+ property :launch_stage, as: 'launchStage'
827
+ property :sample_period, as: 'samplePeriod'
828
+ end
829
+ end
830
+
814
831
  class MetricThreshold
815
832
  # @private
816
833
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/compute/docs/oslogin/rest/
26
26
  module OsloginV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180413'
28
+ REVISION = '20180617'
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/compute/docs/oslogin/rest/
26
26
  module OsloginV1alpha
27
27
  VERSION = 'V1alpha'
28
- REVISION = '20180430'
28
+ REVISION = '20180617'
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/compute/docs/oslogin/rest/
26
26
  module OsloginV1beta
27
27
  VERSION = 'V1beta'
28
- REVISION = '20180413'
28
+ REVISION = '20180617'
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'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/speed/docs/insights/v4/getting-started
27
27
  module PagespeedonlineV4
28
28
  VERSION = 'V4'
29
- REVISION = '20180508'
29
+ REVISION = '20180606'
30
30
  end
31
31
  end
32
32
  end
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/partners/
27
27
  module PartnersV2
28
28
  VERSION = 'V2'
29
- REVISION = '20180517'
29
+ REVISION = '20180605'
30
30
  end
31
31
  end
32
32
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/people/
26
26
  module PeopleV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180521'
28
+ REVISION = '20180601'
29
29
 
30
30
  # Manage your contacts
31
31
  AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/poly/
27
27
  module PolyV1
28
28
  VERSION = 'V1'
29
- REVISION = '20180217'
29
+ REVISION = '20180623'
30
30
  end
31
31
  end
32
32
  end
@@ -458,6 +458,15 @@ module Google
458
458
  class PresentationParams
459
459
  include Google::Apis::Core::Hashable
460
460
 
461
+ # A background color which could be used for displaying the 3D asset in a
462
+ # 'thumbnail' or 'palette' style view. Authors have the option to set this
463
+ # background color when publishing or editing their asset.
464
+ # This is represented as a six-digit hexademical triplet specifying the
465
+ # RGB components of the background color, e.g. #FF0000 for Red.
466
+ # Corresponds to the JSON property `backgroundColor`
467
+ # @return [String]
468
+ attr_accessor :background_color
469
+
461
470
  # The materials' diffuse/albedo color. This does not apply to vertex colors
462
471
  # or texture maps.
463
472
  # Corresponds to the JSON property `colorSpace`
@@ -477,6 +486,7 @@ module Google
477
486
 
478
487
  # Update properties of this object
479
488
  def update!(**args)
489
+ @background_color = args[:background_color] if args.key?(:background_color)
480
490
  @color_space = args[:color_space] if args.key?(:color_space)
481
491
  @orienting_rotation = args[:orienting_rotation] if args.key?(:orienting_rotation)
482
492
  end
@@ -521,14 +531,14 @@ module Google
521
531
  end
522
532
  end
523
533
 
524
- # A response message from a request to list.
534
+ # A response message from a request to startImport.
525
535
  # This is returned in the response field of the Operation.
526
536
  class StartAssetImportResponse
527
537
  include Google::Apis::Core::Hashable
528
538
 
529
539
  # The id of newly created asset. If this is empty when the operation is
530
540
  # complete it means the import failed. Please refer to the
531
- # asset_import_message field to understand what went wrong.
541
+ # assetImportMessages field to understand what went wrong.
532
542
  # Corresponds to the JSON property `assetId`
533
543
  # @return [String]
534
544
  attr_accessor :asset_id
@@ -223,6 +223,7 @@ module Google
223
223
  class PresentationParams
224
224
  # @private
225
225
  class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :background_color, as: 'backgroundColor'
226
227
  property :color_space, as: 'colorSpace'
227
228
  property :orienting_rotation, as: 'orientingRotation', class: Google::Apis::PolyV1::Quaternion, decorator: Google::Apis::PolyV1::Quaternion::Representation
228
229
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/beacons/proximity/
26
26
  module ProximitybeaconV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20180521'
28
+ REVISION = '20180610'
29
29
 
30
30
  # View and modify your beacons
31
31
  AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/pubsub/docs
26
26
  module PubsubV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180522'
28
+ REVISION = '20180626'
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'
@@ -90,6 +90,11 @@ module Google
90
90
  class CreateSnapshotRequest
91
91
  include Google::Apis::Core::Hashable
92
92
 
93
+ # User labels.
94
+ # Corresponds to the JSON property `labels`
95
+ # @return [Hash<String,String>]
96
+ attr_accessor :labels
97
+
93
98
  # The subscription whose backlog the snapshot retains.
94
99
  # Specifically, the created snapshot is guaranteed to retain:
95
100
  # (a) The existing backlog on the subscription. More precisely, this is
@@ -109,6 +114,7 @@ module Google
109
114
 
110
115
  # Update properties of this object
111
116
  def update!(**args)
117
+ @labels = args[:labels] if args.key?(:labels)
112
118
  @subscription = args[:subscription] if args.key?(:subscription)
113
119
  end
114
120
  end
@@ -518,10 +524,10 @@ module Google
518
524
  class PullResponse
519
525
  include Google::Apis::Core::Hashable
520
526
 
521
- # Received Pub/Sub messages. The Pub/Sub system will return zero messages if
522
- # there are no more available in the backlog. The Pub/Sub system may return
523
- # fewer than the `maxMessages` requested even if there are more messages
524
- # available in the backlog.
527
+ # Received Pub/Sub messages. The list will be empty if there are no more
528
+ # messages available in the backlog. For JSON, the response can be entirely
529
+ # empty. The Pub/Sub system may return fewer than the `maxMessages` requested
530
+ # even if there are more messages available in the backlog.
525
531
  # Corresponds to the JSON property `receivedMessages`
526
532
  # @return [Array<Google::Apis::PubsubV1::ReceivedMessage>]
527
533
  attr_accessor :received_messages
@@ -732,6 +738,11 @@ module Google
732
738
  # @return [String]
733
739
  attr_accessor :expire_time
734
740
 
741
+ # User labels.
742
+ # Corresponds to the JSON property `labels`
743
+ # @return [Hash<String,String>]
744
+ attr_accessor :labels
745
+
735
746
  # The name of the snapshot.
736
747
  # Corresponds to the JSON property `name`
737
748
  # @return [String]
@@ -749,6 +760,7 @@ module Google
749
760
  # Update properties of this object
750
761
  def update!(**args)
751
762
  @expire_time = args[:expire_time] if args.key?(:expire_time)
763
+ @labels = args[:labels] if args.key?(:labels)
752
764
  @name = args[:name] if args.key?(:name)
753
765
  @topic = args[:topic] if args.key?(:topic)
754
766
  end
@@ -779,6 +791,11 @@ module Google
779
791
  # @return [Fixnum]
780
792
  attr_accessor :ack_deadline_seconds
781
793
 
794
+ # User labels.
795
+ # Corresponds to the JSON property `labels`
796
+ # @return [Hash<String,String>]
797
+ attr_accessor :labels
798
+
782
799
  # How long to retain unacknowledged messages in the subscription's backlog,
783
800
  # from the moment a message is published.
784
801
  # If `retain_acked_messages` is true, then this also configures the retention
@@ -834,6 +851,7 @@ module Google
834
851
  # Update properties of this object
835
852
  def update!(**args)
836
853
  @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
854
+ @labels = args[:labels] if args.key?(:labels)
837
855
  @message_retention_duration = args[:message_retention_duration] if args.key?(:message_retention_duration)
838
856
  @name = args[:name] if args.key?(:name)
839
857
  @push_config = args[:push_config] if args.key?(:push_config)
@@ -888,6 +906,11 @@ module Google
888
906
  class Topic
889
907
  include Google::Apis::Core::Hashable
890
908
 
909
+ # User labels.
910
+ # Corresponds to the JSON property `labels`
911
+ # @return [Hash<String,String>]
912
+ attr_accessor :labels
913
+
891
914
  # The name of the topic. It must have the format
892
915
  # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
893
916
  # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
@@ -904,6 +927,7 @@ module Google
904
927
 
905
928
  # Update properties of this object
906
929
  def update!(**args)
930
+ @labels = args[:labels] if args.key?(:labels)
907
931
  @name = args[:name] if args.key?(:name)
908
932
  end
909
933
  end
@@ -965,6 +989,35 @@ module Google
965
989
  @update_mask = args[:update_mask] if args.key?(:update_mask)
966
990
  end
967
991
  end
992
+
993
+ # Request for the UpdateTopic method.
994
+ class UpdateTopicRequest
995
+ include Google::Apis::Core::Hashable
996
+
997
+ # A topic resource.
998
+ # Corresponds to the JSON property `topic`
999
+ # @return [Google::Apis::PubsubV1::Topic]
1000
+ attr_accessor :topic
1001
+
1002
+ # Indicates which fields in the provided topic to update. Must be specified
1003
+ # and non-empty. Note that if `update_mask` contains
1004
+ # "message_storage_policy" then the new value will be determined based on the
1005
+ # policy configured at the project or organization level. The
1006
+ # `message_storage_policy` must not be set in the `topic` provided above.
1007
+ # Corresponds to the JSON property `updateMask`
1008
+ # @return [String]
1009
+ attr_accessor :update_mask
1010
+
1011
+ def initialize(**args)
1012
+ update!(**args)
1013
+ end
1014
+
1015
+ # Update properties of this object
1016
+ def update!(**args)
1017
+ @topic = args[:topic] if args.key?(:topic)
1018
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
1019
+ end
1020
+ end
968
1021
  end
969
1022
  end
970
1023
  end
@@ -196,6 +196,12 @@ module Google
196
196
  include Google::Apis::Core::JsonObjectSupport
197
197
  end
198
198
 
199
+ class UpdateTopicRequest
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
199
205
  class AcknowledgeRequest
200
206
  # @private
201
207
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -214,6 +220,7 @@ module Google
214
220
  class CreateSnapshotRequest
215
221
  # @private
216
222
  class Representation < Google::Apis::Core::JsonRepresentation
223
+ hash :labels, as: 'labels'
217
224
  property :subscription, as: 'subscription'
218
225
  end
219
226
  end
@@ -377,6 +384,7 @@ module Google
377
384
  # @private
378
385
  class Representation < Google::Apis::Core::JsonRepresentation
379
386
  property :expire_time, as: 'expireTime'
387
+ hash :labels, as: 'labels'
380
388
  property :name, as: 'name'
381
389
  property :topic, as: 'topic'
382
390
  end
@@ -386,6 +394,7 @@ module Google
386
394
  # @private
387
395
  class Representation < Google::Apis::Core::JsonRepresentation
388
396
  property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
397
+ hash :labels, as: 'labels'
389
398
  property :message_retention_duration, as: 'messageRetentionDuration'
390
399
  property :name, as: 'name'
391
400
  property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
@@ -412,6 +421,7 @@ module Google
412
421
  class Topic
413
422
  # @private
414
423
  class Representation < Google::Apis::Core::JsonRepresentation
424
+ hash :labels, as: 'labels'
415
425
  property :name, as: 'name'
416
426
  end
417
427
  end
@@ -433,6 +443,15 @@ module Google
433
443
  property :update_mask, as: 'updateMask'
434
444
  end
435
445
  end
446
+
447
+ class UpdateTopicRequest
448
+ # @private
449
+ class Representation < Google::Apis::Core::JsonRepresentation
450
+ property :topic, as: 'topic', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
451
+
452
+ property :update_mask, as: 'updateMask'
453
+ end
454
+ end
436
455
  end
437
456
  end
438
457
  end
@@ -696,8 +696,7 @@ module Google
696
696
  execute_or_queue_command(command, &block)
697
697
  end
698
698
 
699
- # Pulls messages from the server. Returns an empty list if there are no
700
- # messages available in the backlog. The server may return `UNAVAILABLE` if
699
+ # Pulls messages from the server. The server may return `UNAVAILABLE` if
701
700
  # there are too many concurrent pull requests pending for the given
702
701
  # subscription.
703
702
  # @param [String] subscription
@@ -1021,6 +1020,45 @@ module Google
1021
1020
  execute_or_queue_command(command, &block)
1022
1021
  end
1023
1022
 
1023
+ # Updates an existing topic. Note that certain properties of a
1024
+ # topic are not modifiable.
1025
+ # @param [String] name
1026
+ # The name of the topic. It must have the format
1027
+ # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
1028
+ # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
1029
+ # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
1030
+ # signs (`%`). It must be between 3 and 255 characters in length, and it
1031
+ # must not start with `"goog"`.
1032
+ # @param [Google::Apis::PubsubV1::UpdateTopicRequest] update_topic_request_object
1033
+ # @param [String] fields
1034
+ # Selector specifying which fields to include in a partial response.
1035
+ # @param [String] quota_user
1036
+ # Available to use for quota purposes for server-side applications. Can be any
1037
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1038
+ # @param [Google::Apis::RequestOptions] options
1039
+ # Request-specific options
1040
+ #
1041
+ # @yield [result, err] Result & error if block supplied
1042
+ # @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
1043
+ # @yieldparam err [StandardError] error object if request failed
1044
+ #
1045
+ # @return [Google::Apis::PubsubV1::Topic]
1046
+ #
1047
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1048
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1049
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1050
+ def patch_project_topic(name, update_topic_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1051
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1052
+ command.request_representation = Google::Apis::PubsubV1::UpdateTopicRequest::Representation
1053
+ command.request_object = update_topic_request_object
1054
+ command.response_representation = Google::Apis::PubsubV1::Topic::Representation
1055
+ command.response_class = Google::Apis::PubsubV1::Topic
1056
+ command.params['name'] = name unless name.nil?
1057
+ command.query['fields'] = fields unless fields.nil?
1058
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1059
+ execute_or_queue_command(command, &block)
1060
+ end
1061
+
1024
1062
  # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
1025
1063
  # does not exist. The message payload must not be empty; it must contain
1026
1064
  # either a non-empty data field, or at least one attribute.
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/pubsub/docs
26
26
  module PubsubV1beta1a
27
27
  VERSION = 'V1beta1a'
28
- REVISION = '20180507'
28
+ REVISION = '20180604'
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/pubsub/docs
26
26
  module PubsubV1beta2
27
27
  VERSION = 'V1beta2'
28
- REVISION = '20180507'
28
+ REVISION = '20180604'
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'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/memorystore/docs/redis/
27
27
  module RedisV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20180518'
29
+ REVISION = '20180620'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -28,7 +28,7 @@ module Google
28
28
  # @see https://cloud.google.com/deployment-manager/runtime-configurator/
29
29
  module RuntimeconfigV1
30
30
  VERSION = 'V1'
31
- REVISION = '20180416'
31
+ REVISION = '20180604'
32
32
 
33
33
  # View and manage your data across Google Cloud Platform services
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'