google-api-client 0.24.2 → 0.24.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +68 -0
  3. data/README.md +9 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +5 -4
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +90 -87
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +17 -15
  7. data/generated/google/apis/admin_directory_v1.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1/classes.rb +155 -0
  9. data/generated/google/apis/admin_directory_v1/representations.rb +82 -0
  10. data/generated/google/apis/alertcenter_v1beta1.rb +31 -0
  11. data/generated/google/apis/alertcenter_v1beta1/classes.rb +835 -0
  12. data/generated/google/apis/alertcenter_v1beta1/representations.rb +394 -0
  13. data/generated/google/apis/alertcenter_v1beta1/service.rb +302 -0
  14. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  15. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +37 -0
  16. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  17. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +8 -1
  18. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  19. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -4
  20. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  21. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  22. data/generated/google/apis/androidpublisher_v2/service.rb +5 -1
  23. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  24. data/generated/google/apis/androidpublisher_v3/service.rb +5 -1
  25. data/generated/google/apis/appengine_v1.rb +1 -1
  26. data/generated/google/apis/appengine_v1/classes.rb +8 -1
  27. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  28. data/generated/google/apis/appengine_v1beta.rb +1 -1
  29. data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
  30. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  31. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +6 -5
  32. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +12 -10
  33. data/generated/google/apis/calendar_v3.rb +1 -1
  34. data/generated/google/apis/calendar_v3/service.rb +52 -18
  35. data/generated/google/apis/cloudasset_v1beta1.rb +34 -0
  36. data/generated/google/apis/cloudasset_v1beta1/classes.rb +798 -0
  37. data/generated/google/apis/cloudasset_v1beta1/representations.rb +263 -0
  38. data/generated/google/apis/cloudasset_v1beta1/service.rb +313 -0
  39. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1/classes.rb +42 -5
  41. data/generated/google/apis/cloudbuild_v1/representations.rb +6 -0
  42. data/generated/google/apis/cloudiot_v1.rb +1 -1
  43. data/generated/google/apis/cloudiot_v1/classes.rb +59 -0
  44. data/generated/google/apis/cloudiot_v1/representations.rb +28 -0
  45. data/generated/google/apis/cloudiot_v1/service.rb +94 -0
  46. data/generated/google/apis/composer_v1.rb +1 -1
  47. data/generated/google/apis/composer_v1/classes.rb +1 -0
  48. data/generated/google/apis/composer_v1beta1.rb +1 -1
  49. data/generated/google/apis/composer_v1beta1/classes.rb +34 -5
  50. data/generated/google/apis/composer_v1beta1/representations.rb +1 -0
  51. data/generated/google/apis/compute_alpha.rb +1 -1
  52. data/generated/google/apis/compute_alpha/classes.rb +227 -48
  53. data/generated/google/apis/compute_alpha/representations.rb +84 -1
  54. data/generated/google/apis/compute_alpha/service.rb +50 -10
  55. data/generated/google/apis/compute_beta.rb +1 -1
  56. data/generated/google/apis/compute_beta/classes.rb +593 -77
  57. data/generated/google/apis/compute_beta/representations.rb +224 -18
  58. data/generated/google/apis/compute_beta/service.rb +174 -3
  59. data/generated/google/apis/compute_v1.rb +1 -1
  60. data/generated/google/apis/compute_v1/classes.rb +41 -18
  61. data/generated/google/apis/compute_v1/representations.rb +3 -0
  62. data/generated/google/apis/content_v2.rb +1 -1
  63. data/generated/google/apis/content_v2/classes.rb +372 -119
  64. data/generated/google/apis/content_v2/representations.rb +157 -39
  65. data/generated/google/apis/content_v2/service.rb +101 -11
  66. data/generated/google/apis/content_v2sandbox.rb +1 -1
  67. data/generated/google/apis/content_v2sandbox/classes.rb +372 -119
  68. data/generated/google/apis/content_v2sandbox/representations.rb +157 -39
  69. data/generated/google/apis/content_v2sandbox/service.rb +90 -0
  70. data/generated/google/apis/customsearch_v1.rb +1 -1
  71. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  72. data/generated/google/apis/dataflow_v1b3/classes.rb +7 -0
  73. data/generated/google/apis/dataflow_v1b3/representations.rb +1 -0
  74. data/generated/google/apis/dataproc_v1.rb +1 -1
  75. data/generated/google/apis/dataproc_v1/classes.rb +12 -0
  76. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  77. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  78. data/generated/google/apis/dataproc_v1beta2/classes.rb +21 -6
  79. data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
  80. data/generated/google/apis/datastore_v1.rb +1 -1
  81. data/generated/google/apis/datastore_v1/classes.rb +2 -2
  82. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  83. data/generated/google/apis/datastore_v1beta3/classes.rb +2 -2
  84. data/generated/google/apis/dlp_v2.rb +1 -1
  85. data/generated/google/apis/dlp_v2/classes.rb +110 -5
  86. data/generated/google/apis/dlp_v2/representations.rb +17 -0
  87. data/generated/google/apis/dlp_v2/service.rb +41 -3
  88. data/generated/google/apis/file_v1beta1.rb +1 -1
  89. data/generated/google/apis/file_v1beta1/classes.rb +0 -234
  90. data/generated/google/apis/file_v1beta1/representations.rb +0 -79
  91. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  92. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +19 -1
  93. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +3 -0
  94. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -1
  95. data/generated/google/apis/firebasehosting_v1beta1.rb +43 -0
  96. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +767 -0
  97. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +337 -0
  98. data/generated/google/apis/firebasehosting_v1beta1/service.rb +502 -0
  99. data/generated/google/apis/firebaserules_v1.rb +1 -1
  100. data/generated/google/apis/firebaserules_v1/classes.rb +8 -0
  101. data/generated/google/apis/firebaserules_v1/representations.rb +1 -0
  102. data/generated/google/apis/firebaserules_v1/service.rb +1 -1
  103. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  104. data/generated/google/apis/firestore_v1beta2/service.rb +80 -80
  105. data/generated/google/apis/games_v1.rb +1 -1
  106. data/generated/google/apis/games_v1/service.rb +4 -1
  107. data/generated/google/apis/iam_v1.rb +1 -1
  108. data/generated/google/apis/iam_v1/classes.rb +3 -1
  109. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  110. data/generated/google/apis/iamcredentials_v1/service.rb +0 -10
  111. data/generated/google/apis/iap_v1beta1.rb +1 -1
  112. data/generated/google/apis/iap_v1beta1/service.rb +339 -0
  113. data/generated/google/apis/jobs_v2.rb +1 -1
  114. data/generated/google/apis/jobs_v2/classes.rb +45 -37
  115. data/generated/google/apis/jobs_v3.rb +1 -1
  116. data/generated/google/apis/jobs_v3/classes.rb +21 -18
  117. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  118. data/generated/google/apis/jobs_v3p1beta1/classes.rb +45 -20
  119. data/generated/google/apis/jobs_v3p1beta1/representations.rb +2 -0
  120. data/generated/google/apis/language_v1.rb +1 -1
  121. data/generated/google/apis/language_v1beta1.rb +1 -1
  122. data/generated/google/apis/language_v1beta2.rb +1 -1
  123. data/generated/google/apis/logging_v2.rb +1 -1
  124. data/generated/google/apis/logging_v2/classes.rb +12 -0
  125. data/generated/google/apis/logging_v2/representations.rb +1 -0
  126. data/generated/google/apis/logging_v2beta1.rb +1 -1
  127. data/generated/google/apis/logging_v2beta1/classes.rb +12 -0
  128. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  129. data/generated/google/apis/ml_v1.rb +1 -1
  130. data/generated/google/apis/ml_v1/classes.rb +2 -2
  131. data/generated/google/apis/monitoring_v3.rb +1 -1
  132. data/generated/google/apis/monitoring_v3/classes.rb +19 -17
  133. data/generated/google/apis/monitoring_v3/representations.rb +1 -2
  134. data/generated/google/apis/partners_v2.rb +1 -1
  135. data/generated/google/apis/partners_v2/classes.rb +18 -15
  136. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  137. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +18 -15
  138. data/generated/google/apis/redis_v1.rb +1 -1
  139. data/generated/google/apis/redis_v1/classes.rb +1 -1
  140. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  141. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -1
  142. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  143. data/generated/google/apis/servicemanagement_v1/classes.rb +2 -150
  144. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -42
  145. data/generated/google/apis/servicenetworking_v1beta.rb +38 -0
  146. data/generated/google/apis/servicenetworking_v1beta/classes.rb +3440 -0
  147. data/generated/google/apis/servicenetworking_v1beta/representations.rb +992 -0
  148. data/generated/google/apis/servicenetworking_v1beta/service.rb +227 -0
  149. data/generated/google/apis/serviceusage_v1.rb +1 -1
  150. data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
  151. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  152. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
  153. data/generated/google/apis/serviceuser_v1.rb +1 -1
  154. data/generated/google/apis/serviceuser_v1/classes.rb +2 -150
  155. data/generated/google/apis/serviceuser_v1/representations.rb +0 -42
  156. data/generated/google/apis/spanner_v1.rb +1 -1
  157. data/generated/google/apis/spanner_v1/classes.rb +308 -30
  158. data/generated/google/apis/spanner_v1/representations.rb +17 -0
  159. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  160. data/generated/google/apis/streetviewpublish_v1/classes.rb +12 -0
  161. data/generated/google/apis/streetviewpublish_v1/representations.rb +1 -0
  162. data/generated/google/apis/testing_v1.rb +1 -1
  163. data/generated/google/apis/testing_v1/classes.rb +47 -0
  164. data/generated/google/apis/testing_v1/representations.rb +18 -0
  165. data/generated/google/apis/videointelligence_v1.rb +1 -1
  166. data/generated/google/apis/videointelligence_v1/classes.rb +676 -0
  167. data/generated/google/apis/videointelligence_v1/representations.rb +306 -0
  168. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  169. data/generated/google/apis/videointelligence_v1beta2/classes.rb +676 -0
  170. data/generated/google/apis/videointelligence_v1beta2/representations.rb +306 -0
  171. data/generated/google/apis/{videointelligence_v1beta1.rb → videointelligence_v1p1beta1.rb} +6 -6
  172. data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/classes.rb +885 -489
  173. data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/representations.rb +357 -194
  174. data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/service.rb +12 -12
  175. data/generated/google/apis/vision_v1.rb +1 -1
  176. data/generated/google/apis/vision_v1/classes.rb +1 -1
  177. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  178. data/generated/google/apis/vision_v1p1beta1/classes.rb +1 -1
  179. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  180. data/generated/google/apis/vision_v1p2beta1/classes.rb +1 -1
  181. data/generated/google/apis/youtube_partner_v1.rb +2 -2
  182. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  183. data/generated/google/apis/youtube_partner_v1/service.rb +1 -1
  184. data/lib/google/apis/version.rb +1 -1
  185. metadata +22 -6
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/cloud-build/docs/
26
26
  module CloudbuildV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180910'
28
+ REVISION = '20181008'
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'
@@ -347,6 +347,15 @@ module Google
347
347
  # @return [Fixnum]
348
348
  attr_accessor :disk_size_gb
349
349
 
350
+ # A list of global environment variable definitions that will exist for all
351
+ # build steps in this build. If a variable is defined in both globally and in
352
+ # a build step, the variable will use the build step value.
353
+ # The elements are of the form "KEY=VALUE" for the environment variable "KEY"
354
+ # being given the value "VALUE".
355
+ # Corresponds to the JSON property `env`
356
+ # @return [Array<String>]
357
+ attr_accessor :env
358
+
350
359
  # Option to define build log streaming behavior to Google Cloud
351
360
  # Storage.
352
361
  # Corresponds to the JSON property `logStreamingOption`
@@ -368,6 +377,14 @@ module Google
368
377
  # @return [String]
369
378
  attr_accessor :requested_verify_option
370
379
 
380
+ # A list of global environment variables, which are encrypted using a Cloud
381
+ # Key Management Service crypto key. These values must be specified in the
382
+ # build's `Secret`. These variables will be available to all build steps
383
+ # in this build.
384
+ # Corresponds to the JSON property `secretEnv`
385
+ # @return [Array<String>]
386
+ attr_accessor :secret_env
387
+
371
388
  # Requested hash for SourceProvenance.
372
389
  # Corresponds to the JSON property `sourceProvenanceHash`
373
390
  # @return [Array<String>]
@@ -379,6 +396,17 @@ module Google
379
396
  # @return [String]
380
397
  attr_accessor :substitution_option
381
398
 
399
+ # Global list of volumes to mount for ALL build steps
400
+ # Each volume is created as an empty volume prior to starting the build
401
+ # process. Upon completion of the build, volumes and their contents are
402
+ # discarded. Global volume names and paths cannot conflict with the volumes
403
+ # defined a build step.
404
+ # Using a global volume in a build with only one step is not valid as
405
+ # it is indicative of a build request with an incorrect configuration.
406
+ # Corresponds to the JSON property `volumes`
407
+ # @return [Array<Google::Apis::CloudbuildV1::Volume>]
408
+ attr_accessor :volumes
409
+
382
410
  def initialize(**args)
383
411
  update!(**args)
384
412
  end
@@ -386,12 +414,15 @@ module Google
386
414
  # Update properties of this object
387
415
  def update!(**args)
388
416
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
417
+ @env = args[:env] if args.key?(:env)
389
418
  @log_streaming_option = args[:log_streaming_option] if args.key?(:log_streaming_option)
390
419
  @logging = args[:logging] if args.key?(:logging)
391
420
  @machine_type = args[:machine_type] if args.key?(:machine_type)
392
421
  @requested_verify_option = args[:requested_verify_option] if args.key?(:requested_verify_option)
422
+ @secret_env = args[:secret_env] if args.key?(:secret_env)
393
423
  @source_provenance_hash = args[:source_provenance_hash] if args.key?(:source_provenance_hash)
394
424
  @substitution_option = args[:substitution_option] if args.key?(:substitution_option)
425
+ @volumes = args[:volumes] if args.key?(:volumes)
395
426
  end
396
427
  end
397
428
 
@@ -458,6 +489,11 @@ module Google
458
489
  # @return [String]
459
490
  attr_accessor :name
460
491
 
492
+ # Start and end times for a build execution phase.
493
+ # Corresponds to the JSON property `pullTiming`
494
+ # @return [Google::Apis::CloudbuildV1::TimeSpan]
495
+ attr_accessor :pull_timing
496
+
461
497
  # A list of environment variables which are encrypted using a Cloud Key
462
498
  # Management Service crypto key. These values must be specified in the
463
499
  # build's `Secret`.
@@ -485,11 +521,11 @@ module Google
485
521
  attr_accessor :timing
486
522
 
487
523
  # List of volumes to mount into the build step.
488
- # Each volume will be created as an empty volume prior to execution of the
489
- # build step. Upon completion of the build, volumes and their contents will
490
- # be discarded.
524
+ # Each volume is created as an empty volume prior to execution of the
525
+ # build step. Upon completion of the build, volumes and their contents are
526
+ # discarded.
491
527
  # Using a named volume in only one step is not valid as it is indicative
492
- # of a mis-configured build request.
528
+ # of a build request with an incorrect configuration.
493
529
  # Corresponds to the JSON property `volumes`
494
530
  # @return [Array<Google::Apis::CloudbuildV1::Volume>]
495
531
  attr_accessor :volumes
@@ -515,6 +551,7 @@ module Google
515
551
  @env = args[:env] if args.key?(:env)
516
552
  @id = args[:id] if args.key?(:id)
517
553
  @name = args[:name] if args.key?(:name)
554
+ @pull_timing = args[:pull_timing] if args.key?(:pull_timing)
518
555
  @secret_env = args[:secret_env] if args.key?(:secret_env)
519
556
  @status = args[:status] if args.key?(:status)
520
557
  @timeout = args[:timeout] if args.key?(:timeout)
@@ -1041,7 +1078,7 @@ module Google
1041
1078
  # Map of environment variable name to its encrypted value.
1042
1079
  # Secret environment variables must be unique across all of a build's
1043
1080
  # secrets, and must be used by at least one build step. Values can be at most
1044
- # 1 KB in size. There can be at most ten secret values across all of a
1081
+ # 64 KB in size. There can be at most 100 secret values across all of a
1045
1082
  # build's secrets.
1046
1083
  # Corresponds to the JSON property `secretEnv`
1047
1084
  # @return [Hash<String,String>]
@@ -266,12 +266,16 @@ module Google
266
266
  # @private
267
267
  class Representation < Google::Apis::Core::JsonRepresentation
268
268
  property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
269
+ collection :env, as: 'env'
269
270
  property :log_streaming_option, as: 'logStreamingOption'
270
271
  property :logging, as: 'logging'
271
272
  property :machine_type, as: 'machineType'
272
273
  property :requested_verify_option, as: 'requestedVerifyOption'
274
+ collection :secret_env, as: 'secretEnv'
273
275
  collection :source_provenance_hash, as: 'sourceProvenanceHash'
274
276
  property :substitution_option, as: 'substitutionOption'
277
+ collection :volumes, as: 'volumes', class: Google::Apis::CloudbuildV1::Volume, decorator: Google::Apis::CloudbuildV1::Volume::Representation
278
+
275
279
  end
276
280
  end
277
281
 
@@ -284,6 +288,8 @@ module Google
284
288
  collection :env, as: 'env'
285
289
  property :id, as: 'id'
286
290
  property :name, as: 'name'
291
+ property :pull_timing, as: 'pullTiming', class: Google::Apis::CloudbuildV1::TimeSpan, decorator: Google::Apis::CloudbuildV1::TimeSpan::Representation
292
+
287
293
  collection :secret_env, as: 'secretEnv'
288
294
  property :status, as: 'status'
289
295
  property :timeout, as: 'timeout'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/iot
27
27
  module CloudiotV1
28
28
  VERSION = 'V1'
29
- REVISION = '20180822'
29
+ REVISION = '20180926'
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'
@@ -189,6 +189,13 @@ module Google
189
189
  # @return [String]
190
190
  attr_accessor :last_state_time
191
191
 
192
+ # **Beta Feature**
193
+ # The logging verbosity for device activity. If unspecified,
194
+ # DeviceRegistry.log_level will be used.
195
+ # Corresponds to the JSON property `logLevel`
196
+ # @return [String]
197
+ attr_accessor :log_level
198
+
192
199
  # The metadata key-value pairs assigned to the device. This metadata is not
193
200
  # interpreted or indexed by Cloud IoT Core. It can be used to add contextual
194
201
  # information for the device.
@@ -239,6 +246,7 @@ module Google
239
246
  @last_event_time = args[:last_event_time] if args.key?(:last_event_time)
240
247
  @last_heartbeat_time = args[:last_heartbeat_time] if args.key?(:last_heartbeat_time)
241
248
  @last_state_time = args[:last_state_time] if args.key?(:last_state_time)
249
+ @log_level = args[:log_level] if args.key?(:log_level)
242
250
  @metadata = args[:metadata] if args.key?(:metadata)
243
251
  @name = args[:name] if args.key?(:name)
244
252
  @num_id = args[:num_id] if args.key?(:num_id)
@@ -364,6 +372,13 @@ module Google
364
372
  # @return [String]
365
373
  attr_accessor :id
366
374
 
375
+ # **Beta Feature**
376
+ # The default logging verbosity for activity from devices in this registry.
377
+ # The verbosity level can be overridden by Device.log_level.
378
+ # Corresponds to the JSON property `logLevel`
379
+ # @return [String]
380
+ attr_accessor :log_level
381
+
367
382
  # The configuration of MQTT for a device registry.
368
383
  # Corresponds to the JSON property `mqttConfig`
369
384
  # @return [Google::Apis::CloudiotV1::MqttConfig]
@@ -390,6 +405,7 @@ module Google
390
405
  @event_notification_configs = args[:event_notification_configs] if args.key?(:event_notification_configs)
391
406
  @http_config = args[:http_config] if args.key?(:http_config)
392
407
  @id = args[:id] if args.key?(:id)
408
+ @log_level = args[:log_level] if args.key?(:log_level)
393
409
  @mqtt_config = args[:mqtt_config] if args.key?(:mqtt_config)
394
410
  @name = args[:name] if args.key?(:name)
395
411
  @state_notification_config = args[:state_notification_config] if args.key?(:state_notification_config)
@@ -846,6 +862,49 @@ module Google
846
862
  end
847
863
  end
848
864
 
865
+ # Request for `SendCommandToDevice`.
866
+ class SendCommandToDeviceRequest
867
+ include Google::Apis::Core::Hashable
868
+
869
+ # The command data to send to the device.
870
+ # Corresponds to the JSON property `binaryData`
871
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
872
+ # @return [String]
873
+ attr_accessor :binary_data
874
+
875
+ # Optional subfolder for the command. If empty, the command will be delivered
876
+ # to the /devices/`device-id`/commands topic, otherwise it will be delivered
877
+ # to the /devices/`device-id`/commands/`subfolder` topic. Multi-level
878
+ # subfolders are allowed. This field must not have more than 256 characters,
879
+ # and must not contain any MQTT wildcards ("+" or "#") or null characters.
880
+ # Corresponds to the JSON property `subfolder`
881
+ # @return [String]
882
+ attr_accessor :subfolder
883
+
884
+ def initialize(**args)
885
+ update!(**args)
886
+ end
887
+
888
+ # Update properties of this object
889
+ def update!(**args)
890
+ @binary_data = args[:binary_data] if args.key?(:binary_data)
891
+ @subfolder = args[:subfolder] if args.key?(:subfolder)
892
+ end
893
+ end
894
+
895
+ # Response for `SendCommandToDevice`.
896
+ class SendCommandToDeviceResponse
897
+ include Google::Apis::Core::Hashable
898
+
899
+ def initialize(**args)
900
+ update!(**args)
901
+ end
902
+
903
+ # Update properties of this object
904
+ def update!(**args)
905
+ end
906
+ end
907
+
849
908
  # Request message for `SetIamPolicy` method.
850
909
  class SetIamPolicyRequest
851
910
  include Google::Apis::Core::Hashable
@@ -148,6 +148,18 @@ module Google
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
+ class SendCommandToDeviceRequest
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class SendCommandToDeviceResponse
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
151
163
  class SetIamPolicyRequest
152
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
165
 
@@ -211,6 +223,7 @@ module Google
211
223
  property :last_event_time, as: 'lastEventTime'
212
224
  property :last_heartbeat_time, as: 'lastHeartbeatTime'
213
225
  property :last_state_time, as: 'lastStateTime'
226
+ property :log_level, as: 'logLevel'
214
227
  hash :metadata, as: 'metadata'
215
228
  property :name, as: 'name'
216
229
  property :num_id, :numeric_string => true, as: 'numId'
@@ -248,6 +261,7 @@ module Google
248
261
  property :http_config, as: 'httpConfig', class: Google::Apis::CloudiotV1::HttpConfig, decorator: Google::Apis::CloudiotV1::HttpConfig::Representation
249
262
 
250
263
  property :id, as: 'id'
264
+ property :log_level, as: 'logLevel'
251
265
  property :mqtt_config, as: 'mqttConfig', class: Google::Apis::CloudiotV1::MqttConfig, decorator: Google::Apis::CloudiotV1::MqttConfig::Representation
252
266
 
253
267
  property :name, as: 'name'
@@ -386,6 +400,20 @@ module Google
386
400
  end
387
401
  end
388
402
 
403
+ class SendCommandToDeviceRequest
404
+ # @private
405
+ class Representation < Google::Apis::Core::JsonRepresentation
406
+ property :binary_data, :base64 => true, as: 'binaryData'
407
+ property :subfolder, as: 'subfolder'
408
+ end
409
+ end
410
+
411
+ class SendCommandToDeviceResponse
412
+ # @private
413
+ class Representation < Google::Apis::Core::JsonRepresentation
414
+ end
415
+ end
416
+
389
417
  class SetIamPolicyRequest
390
418
  # @private
391
419
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -572,6 +572,53 @@ module Google
572
572
  execute_or_queue_command(command, &block)
573
573
  end
574
574
 
575
+ # Sends a command to the specified device. In order for a device to be able
576
+ # to receive commands, it must:
577
+ # 1) be connected to Cloud IoT Core using the MQTT protocol, and
578
+ # 2) be subscribed to the group of MQTT topics specified by
579
+ # /devices/`device-id`/commands/#. This subscription will receive commands
580
+ # at the top-level topic /devices/`device-id`/commands as well as commands
581
+ # for subfolders, like /devices/`device-id`/commands/subfolder.
582
+ # Note that subscribing to specific subfolders is not supported.
583
+ # If the command could not be delivered to the device, this method will
584
+ # return an error; in particular, if the device is not subscribed, this
585
+ # method will return FAILED_PRECONDITION. Otherwise, this method will
586
+ # return OK. If the subscription is QoS 1, at least once delivery will be
587
+ # guaranteed; for QoS 0, no acknowledgment will be expected from the device.
588
+ # @param [String] name
589
+ # The name of the device. For example,
590
+ # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
591
+ # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
592
+ # @param [Google::Apis::CloudiotV1::SendCommandToDeviceRequest] send_command_to_device_request_object
593
+ # @param [String] fields
594
+ # Selector specifying which fields to include in a partial response.
595
+ # @param [String] quota_user
596
+ # Available to use for quota purposes for server-side applications. Can be any
597
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
598
+ # @param [Google::Apis::RequestOptions] options
599
+ # Request-specific options
600
+ #
601
+ # @yield [result, err] Result & error if block supplied
602
+ # @yieldparam result [Google::Apis::CloudiotV1::SendCommandToDeviceResponse] parsed result object
603
+ # @yieldparam err [StandardError] error object if request failed
604
+ #
605
+ # @return [Google::Apis::CloudiotV1::SendCommandToDeviceResponse]
606
+ #
607
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
608
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
609
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
610
+ def send_project_location_registry_device_command_to_device(name, send_command_to_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
611
+ command = make_simple_command(:post, 'v1/{+name}:sendCommandToDevice', options)
612
+ command.request_representation = Google::Apis::CloudiotV1::SendCommandToDeviceRequest::Representation
613
+ command.request_object = send_command_to_device_request_object
614
+ command.response_representation = Google::Apis::CloudiotV1::SendCommandToDeviceResponse::Representation
615
+ command.response_class = Google::Apis::CloudiotV1::SendCommandToDeviceResponse
616
+ command.params['name'] = name unless name.nil?
617
+ command.query['fields'] = fields unless fields.nil?
618
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
619
+ execute_or_queue_command(command, &block)
620
+ end
621
+
575
622
  # Lists the last few versions of the device configuration in descending
576
623
  # order (i.e.: newest first).
577
624
  # @param [String] name
@@ -926,6 +973,53 @@ module Google
926
973
  execute_or_queue_command(command, &block)
927
974
  end
928
975
 
976
+ # Sends a command to the specified device. In order for a device to be able
977
+ # to receive commands, it must:
978
+ # 1) be connected to Cloud IoT Core using the MQTT protocol, and
979
+ # 2) be subscribed to the group of MQTT topics specified by
980
+ # /devices/`device-id`/commands/#. This subscription will receive commands
981
+ # at the top-level topic /devices/`device-id`/commands as well as commands
982
+ # for subfolders, like /devices/`device-id`/commands/subfolder.
983
+ # Note that subscribing to specific subfolders is not supported.
984
+ # If the command could not be delivered to the device, this method will
985
+ # return an error; in particular, if the device is not subscribed, this
986
+ # method will return FAILED_PRECONDITION. Otherwise, this method will
987
+ # return OK. If the subscription is QoS 1, at least once delivery will be
988
+ # guaranteed; for QoS 0, no acknowledgment will be expected from the device.
989
+ # @param [String] name
990
+ # The name of the device. For example,
991
+ # `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
992
+ # `projects/p0/locations/us-central1/registries/registry0/devices/`num_id``.
993
+ # @param [Google::Apis::CloudiotV1::SendCommandToDeviceRequest] send_command_to_device_request_object
994
+ # @param [String] fields
995
+ # Selector specifying which fields to include in a partial response.
996
+ # @param [String] quota_user
997
+ # Available to use for quota purposes for server-side applications. Can be any
998
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
999
+ # @param [Google::Apis::RequestOptions] options
1000
+ # Request-specific options
1001
+ #
1002
+ # @yield [result, err] Result & error if block supplied
1003
+ # @yieldparam result [Google::Apis::CloudiotV1::SendCommandToDeviceResponse] parsed result object
1004
+ # @yieldparam err [StandardError] error object if request failed
1005
+ #
1006
+ # @return [Google::Apis::CloudiotV1::SendCommandToDeviceResponse]
1007
+ #
1008
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1009
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1010
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1011
+ def send_project_location_registry_group_device_command_to_device(name, send_command_to_device_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1012
+ command = make_simple_command(:post, 'v1/{+name}:sendCommandToDevice', options)
1013
+ command.request_representation = Google::Apis::CloudiotV1::SendCommandToDeviceRequest::Representation
1014
+ command.request_object = send_command_to_device_request_object
1015
+ command.response_representation = Google::Apis::CloudiotV1::SendCommandToDeviceResponse::Representation
1016
+ command.response_class = Google::Apis::CloudiotV1::SendCommandToDeviceResponse
1017
+ command.params['name'] = name unless name.nil?
1018
+ command.query['fields'] = fields unless fields.nil?
1019
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1020
+ execute_or_queue_command(command, &block)
1021
+ end
1022
+
929
1023
  # Lists the last few versions of the device configuration in descending
930
1024
  # order (i.e.: newest first).
931
1025
  # @param [String] name
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/composer/
26
26
  module ComposerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20180905'
28
+ REVISION = '20181001'
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'
@@ -111,6 +111,7 @@ module Google
111
111
  class EnvironmentConfig
112
112
  include Google::Apis::Core::Hashable
113
113
 
114
+ # Output only.
114
115
  # The URI of the Apache Airflow Web UI hosted within this environment (see
115
116
  # [Airflow web interface](/composer/docs/how-to/accessing/airflow-web-interface))
116
117
  # .
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/composer/
26
26
  module ComposerV1beta1
27
27
  VERSION = 'V1beta1'
28
- REVISION = '20180905'
28
+ REVISION = '20181001'
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'
@@ -111,6 +111,7 @@ module Google
111
111
  class EnvironmentConfig
112
112
  include Google::Apis::Core::Hashable
113
113
 
114
+ # Output only.
114
115
  # The URI of the Apache Airflow Web UI hosted within this environment (see
115
116
  # [Airflow web interface](/composer/docs/how-to/accessing/airflow-web-interface))
116
117
  # .
@@ -529,15 +530,34 @@ module Google
529
530
  # @return [Hash<String,String>]
530
531
  attr_accessor :env_variables
531
532
 
532
- # Output only.
533
- # The version of the software running in the environment.
533
+ # Immutable. The version of the software running in the environment.
534
534
  # This encapsulates both the version of Cloud Composer functionality and the
535
535
  # version of Apache Airflow. It must match the regular expression
536
- # `composer-[0-9]+\.[0-9]+(\.[0-9]+)?-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)?`.
536
+ # `composer-([0-9]+\.[0-9]+(\.[0-9]+)?|latest)-airflow-[0-9]+\.[0-9]+(\.[0-9]+.*)
537
+ # ?`.
538
+ # When used as input, the server will also check if the provided version is
539
+ # supported and deny the creation request for an unsupported version.
537
540
  # The Cloud Composer portion of the version is a
538
- # [semantic version](https://semver.org). The portion of the image version
539
- # following <em>airflow-</em> is an official Apache Airflow repository
541
+ # [semantic version](https://semver.org) or `latest`. The patch version
542
+ # can be omitted and the current Cloud Composer patch version
543
+ # will be selected.
544
+ # When `latest` is provided instead of an explicit version number,
545
+ # the server will replace `latest` with the current Cloud Composer version
546
+ # and store that version number in the same field.
547
+ # The portion of the image version that follows <em>airflow-</em> is an official
548
+ # Apache Airflow repository
540
549
  # [release name](https://github.com/apache/incubator-airflow/releases).
550
+ # Supported values for input are:
551
+ # * `composer-latest-airflow-latest`
552
+ # * `composer-latest-airflow-1.10.0`
553
+ # * `composer-latest-airflow-1.9.0`
554
+ # * `composer-latest-airflow-1.10`
555
+ # * `composer-latest-airflow-1.9`
556
+ # * `composer-1.1.1-airflow-latest`
557
+ # * `composer-1.1.1-airflow-1.10.0`
558
+ # * `composer-1.1.1-airflow-1.9.0`
559
+ # * `composer-1.1.1-airflow-1.10`
560
+ # * `composer-1.1.1-airflow-1.9`
541
561
  # See also [Release Notes](/composer/docs/release-notes).
542
562
  # Corresponds to the JSON property `imageVersion`
543
563
  # @return [String]
@@ -554,6 +574,14 @@ module Google
554
574
  # @return [Hash<String,String>]
555
575
  attr_accessor :pypi_packages
556
576
 
577
+ # Optional. The major version of Python used to run the Apache Airflow
578
+ # scheduler, worker, and webserver processes.
579
+ # Can be set to '2' or '3'. If not specified, the default is '2'. Cannot be
580
+ # updated.
581
+ # Corresponds to the JSON property `pythonVersion`
582
+ # @return [String]
583
+ attr_accessor :python_version
584
+
557
585
  def initialize(**args)
558
586
  update!(**args)
559
587
  end
@@ -564,6 +592,7 @@ module Google
564
592
  @env_variables = args[:env_variables] if args.key?(:env_variables)
565
593
  @image_version = args[:image_version] if args.key?(:image_version)
566
594
  @pypi_packages = args[:pypi_packages] if args.key?(:pypi_packages)
595
+ @python_version = args[:python_version] if args.key?(:python_version)
567
596
  end
568
597
  end
569
598