google-api-client 0.46.0 → 0.46.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +59 -0
  3. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  4. data/generated/google/apis/accesscontextmanager_v1/classes.rb +68 -0
  5. data/generated/google/apis/accesscontextmanager_v1/representations.rb +30 -0
  6. data/generated/google/apis/accesscontextmanager_v1/service.rb +180 -0
  7. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +15 -0
  10. data/generated/google/apis/admob_v1.rb +3 -2
  11. data/generated/google/apis/admob_v1/service.rb +2 -1
  12. data/generated/google/apis/adsense_v1_4.rb +1 -1
  13. data/generated/google/apis/adsense_v1_4/service.rb +4 -1
  14. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  15. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +31 -0
  16. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +17 -0
  17. data/generated/google/apis/analyticsdata_v1alpha/service.rb +39 -0
  18. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  19. data/generated/google/apis/androidpublisher_v3/service.rb +2 -5
  20. data/generated/google/apis/apigee_v1.rb +1 -1
  21. data/generated/google/apis/apigee_v1/classes.rb +231 -1
  22. data/generated/google/apis/apigee_v1/representations.rb +87 -0
  23. data/generated/google/apis/apigee_v1/service.rb +201 -1
  24. data/generated/google/apis/appsmarket_v2.rb +1 -1
  25. data/generated/google/apis/billingbudgets_v1.rb +38 -0
  26. data/generated/google/apis/billingbudgets_v1/classes.rb +362 -0
  27. data/generated/google/apis/billingbudgets_v1/representations.rb +170 -0
  28. data/generated/google/apis/billingbudgets_v1/service.rb +249 -0
  29. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  30. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +3 -3
  31. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  32. data/generated/google/apis/cloudsearch_v1/classes.rb +2 -1
  33. data/generated/google/apis/cloudshell_v1.rb +1 -1
  34. data/generated/google/apis/cloudshell_v1/classes.rb +342 -0
  35. data/generated/google/apis/cloudshell_v1/representations.rb +200 -0
  36. data/generated/google/apis/cloudshell_v1/service.rb +177 -0
  37. data/generated/google/apis/composer_v1.rb +1 -1
  38. data/generated/google/apis/composer_v1/classes.rb +2 -3
  39. data/generated/google/apis/composer_v1beta1.rb +1 -1
  40. data/generated/google/apis/composer_v1beta1/classes.rb +2 -3
  41. data/generated/google/apis/composer_v1beta1/service.rb +37 -35
  42. data/generated/google/apis/compute_alpha.rb +1 -1
  43. data/generated/google/apis/compute_alpha/classes.rb +126 -21
  44. data/generated/google/apis/compute_alpha/representations.rb +7 -0
  45. data/generated/google/apis/compute_alpha/service.rb +62 -3
  46. data/generated/google/apis/compute_beta.rb +1 -1
  47. data/generated/google/apis/compute_beta/classes.rb +83 -19
  48. data/generated/google/apis/compute_beta/representations.rb +4 -0
  49. data/generated/google/apis/compute_beta/service.rb +3 -3
  50. data/generated/google/apis/compute_v1.rb +1 -1
  51. data/generated/google/apis/compute_v1/classes.rb +28 -8
  52. data/generated/google/apis/compute_v1/representations.rb +3 -0
  53. data/generated/google/apis/compute_v1/service.rb +3 -3
  54. data/generated/google/apis/container_v1beta1.rb +1 -1
  55. data/generated/google/apis/content_v2.rb +1 -1
  56. data/generated/google/apis/content_v2_1.rb +1 -1
  57. data/generated/google/apis/content_v2_1/classes.rb +99 -0
  58. data/generated/google/apis/content_v2_1/representations.rb +47 -0
  59. data/generated/google/apis/content_v2_1/service.rb +37 -0
  60. data/generated/google/apis/dialogflow_v2.rb +1 -1
  61. data/generated/google/apis/dialogflow_v2/classes.rb +50 -32
  62. data/generated/google/apis/dialogflow_v2/representations.rb +28 -13
  63. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  64. data/generated/google/apis/dialogflow_v2beta1/classes.rb +50 -32
  65. data/generated/google/apis/dialogflow_v2beta1/representations.rb +28 -13
  66. data/generated/google/apis/dialogflow_v2beta1/service.rb +54 -4
  67. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  68. data/generated/google/apis/dialogflow_v3beta1/classes.rb +66 -35
  69. data/generated/google/apis/dialogflow_v3beta1/representations.rb +29 -13
  70. data/generated/google/apis/dialogflow_v3beta1/service.rb +22 -9
  71. data/generated/google/apis/displayvideo_v1.rb +1 -1
  72. data/generated/google/apis/displayvideo_v1/service.rb +13 -10
  73. data/generated/google/apis/dns_v1.rb +1 -1
  74. data/generated/google/apis/dns_v1/service.rb +10 -10
  75. data/generated/google/apis/dns_v1beta2.rb +1 -1
  76. data/generated/google/apis/dns_v1beta2/service.rb +10 -10
  77. data/generated/google/apis/documentai_v1beta3.rb +36 -0
  78. data/generated/google/apis/documentai_v1beta3/classes.rb +6149 -0
  79. data/generated/google/apis/documentai_v1beta3/representations.rb +2666 -0
  80. data/generated/google/apis/documentai_v1beta3/service.rb +263 -0
  81. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  82. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +2 -2
  83. data/generated/google/apis/drive_v2.rb +1 -1
  84. data/generated/google/apis/drive_v2/classes.rb +2 -1
  85. data/generated/google/apis/fitness_v1.rb +13 -1
  86. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  87. data/generated/google/apis/healthcare_v1beta1/classes.rb +116 -289
  88. data/generated/google/apis/healthcare_v1beta1/representations.rb +45 -81
  89. data/generated/google/apis/healthcare_v1beta1/service.rb +65 -61
  90. data/generated/google/apis/licensing_v1.rb +1 -1
  91. data/generated/google/apis/licensing_v1/service.rb +2 -2
  92. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  93. data/generated/google/apis/lifesciences_v2beta/classes.rb +104 -0
  94. data/generated/google/apis/lifesciences_v2beta/representations.rb +47 -0
  95. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  96. data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
  97. data/generated/google/apis/monitoring_v3.rb +1 -1
  98. data/generated/google/apis/monitoring_v3/classes.rb +48 -0
  99. data/generated/google/apis/monitoring_v3/representations.rb +18 -0
  100. data/generated/google/apis/oauth2_v2.rb +40 -0
  101. data/generated/google/apis/oauth2_v2/classes.rb +165 -0
  102. data/generated/google/apis/oauth2_v2/representations.rb +68 -0
  103. data/generated/google/apis/oauth2_v2/service.rb +158 -0
  104. data/generated/google/apis/people_v1.rb +1 -1
  105. data/generated/google/apis/people_v1/classes.rb +3 -2
  106. data/generated/google/apis/people_v1/service.rb +4 -4
  107. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  108. data/generated/google/apis/realtimebidding_v1/classes.rb +55 -94
  109. data/generated/google/apis/realtimebidding_v1/representations.rb +18 -32
  110. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  111. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  112. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  113. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  114. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  115. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  116. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  117. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  118. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  119. data/generated/google/apis/run_v1.rb +1 -1
  120. data/generated/google/apis/run_v1/classes.rb +5 -2
  121. data/generated/google/apis/smartdevicemanagement_v1.rb +1 -1
  122. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +4 -10
  123. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +0 -1
  124. data/generated/google/apis/smartdevicemanagement_v1/service.rb +1 -4
  125. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  126. data/generated/google/apis/sqladmin_v1beta4/classes.rb +49 -5
  127. data/generated/google/apis/sqladmin_v1beta4/representations.rb +17 -0
  128. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  129. data/generated/google/apis/storagetransfer_v1/classes.rb +13 -0
  130. data/generated/google/apis/storagetransfer_v1/representations.rb +12 -0
  131. data/generated/google/apis/storagetransfer_v1/service.rb +5 -2
  132. data/generated/google/apis/sts_v1.rb +1 -1
  133. data/generated/google/apis/sts_v1/classes.rb +10 -9
  134. data/generated/google/apis/sts_v1beta.rb +1 -1
  135. data/generated/google/apis/sts_v1beta/classes.rb +66 -70
  136. data/generated/google/apis/sts_v1beta/service.rb +2 -2
  137. data/generated/google/apis/testing_v1.rb +1 -1
  138. data/generated/google/apis/testing_v1/classes.rb +47 -0
  139. data/generated/google/apis/testing_v1/representations.rb +20 -0
  140. data/generated/google/apis/videointelligence_v1.rb +1 -1
  141. data/generated/google/apis/videointelligence_v1/classes.rb +430 -2
  142. data/generated/google/apis/videointelligence_v1/representations.rb +241 -0
  143. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  144. data/generated/google/apis/videointelligence_v1beta2/classes.rb +430 -2
  145. data/generated/google/apis/videointelligence_v1beta2/representations.rb +241 -0
  146. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  147. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +430 -2
  148. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +241 -0
  149. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  150. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +430 -2
  151. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +241 -0
  152. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  153. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +430 -2
  154. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +241 -0
  155. data/generated/google/apis/workflows_v1beta.rb +3 -2
  156. data/generated/google/apis/workflows_v1beta/service.rb +2 -1
  157. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  158. data/generated/google/apis/youtube_v3.rb +1 -1
  159. data/lib/google/apis/version.rb +1 -1
  160. metadata +15 -3
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/admin-sdk/licensing/
27
27
  module LicensingV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200912'
29
+ REVISION = '20201005'
30
30
 
31
31
  # View and manage G Suite licenses for your domain
32
32
  AUTH_APPS_LICENSING = 'https://www.googleapis.com/auth/apps.licensing'
@@ -44,8 +44,8 @@ module Google
44
44
  attr_accessor :quota_user
45
45
 
46
46
  def initialize
47
- super('https://www.googleapis.com/', '')
48
- @batch_path = 'batch/licensing/v1'
47
+ super('https://licensing.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
49
  end
50
50
 
51
51
  # Revoke a license.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/life-sciences
27
27
  module LifesciencesV2beta
28
28
  VERSION = 'V2beta'
29
- REVISION = '20200806'
29
+ REVISION = '20201001'
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'
@@ -538,6 +538,32 @@ module Google
538
538
  end
539
539
  end
540
540
 
541
+ # Configuration for an existing disk to be attached to the VM.
542
+ class ExistingDisk
543
+ include Google::Apis::Core::Hashable
544
+
545
+ # If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a
546
+ # complete URL for the disk. If `disk` does not contain slashes, the Cloud Life
547
+ # Sciences API assumes that the disk is a zonal disk and a URL will be generated
548
+ # of the form `zones//disks/`, where `` is the zone in which the instance is
549
+ # allocated. The disk must be ext4 formatted. If all `Mount` references to this
550
+ # disk have the `read_only` flag set to true, the disk will be attached in `read-
551
+ # only` mode and can be shared with other instances. Otherwise, the disk will be
552
+ # available for writing but cannot be shared.
553
+ # Corresponds to the JSON property `disk`
554
+ # @return [String]
555
+ attr_accessor :disk
556
+
557
+ def initialize(**args)
558
+ update!(**args)
559
+ end
560
+
561
+ # Update properties of this object
562
+ def update!(**args)
563
+ @disk = args[:disk] if args.key?(:disk)
564
+ end
565
+ end
566
+
541
567
  # An event generated when the execution of a pipeline has failed. Note that
542
568
  # other events can continue to occur after this event.
543
569
  class FailedEvent
@@ -839,6 +865,43 @@ module Google
839
865
  end
840
866
  end
841
867
 
868
+ # Configuration for a persistent disk to be attached to the VM. See https://
869
+ # cloud.google.com/compute/docs/disks/performance for more information about
870
+ # disk type, size, and performance considerations.
871
+ class PersistentDisk
872
+ include Google::Apis::Core::Hashable
873
+
874
+ # The size, in GB, of the disk to attach. If the size is not specified, a
875
+ # default is chosen to ensure reasonable I/O performance. If the disk type is
876
+ # specified as `local-ssd`, multiple local drives are automatically combined to
877
+ # provide the requested size. Note, however, that each physical SSD is 375GB in
878
+ # size, and no more than 8 drives can be attached to a single instance.
879
+ # Corresponds to the JSON property `sizeGb`
880
+ # @return [Fixnum]
881
+ attr_accessor :size_gb
882
+
883
+ # An image to put on the disk before attaching it to the VM.
884
+ # Corresponds to the JSON property `sourceImage`
885
+ # @return [String]
886
+ attr_accessor :source_image
887
+
888
+ # The Compute Engine disk type. If unspecified, `pd-standard` is used.
889
+ # Corresponds to the JSON property `type`
890
+ # @return [String]
891
+ attr_accessor :type
892
+
893
+ def initialize(**args)
894
+ update!(**args)
895
+ end
896
+
897
+ # Update properties of this object
898
+ def update!(**args)
899
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
900
+ @source_image = args[:source_image] if args.key?(:source_image)
901
+ @type = args[:type] if args.key?(:type)
902
+ end
903
+ end
904
+
842
905
  # Specifies a series of actions to execute, expressed as Docker containers.
843
906
  class Pipeline
844
907
  include Google::Apis::Core::Hashable
@@ -1228,6 +1291,11 @@ module Google
1228
1291
  # @return [Google::Apis::LifesciencesV2beta::ServiceAccount]
1229
1292
  attr_accessor :service_account
1230
1293
 
1294
+ # The list of disks and other storage to create or attach to the VM.
1295
+ # Corresponds to the JSON property `volumes`
1296
+ # @return [Array<Google::Apis::LifesciencesV2beta::Volume>]
1297
+ attr_accessor :volumes
1298
+
1231
1299
  def initialize(**args)
1232
1300
  update!(**args)
1233
1301
  end
@@ -1247,6 +1315,42 @@ module Google
1247
1315
  @nvidia_driver_version = args[:nvidia_driver_version] if args.key?(:nvidia_driver_version)
1248
1316
  @preemptible = args[:preemptible] if args.key?(:preemptible)
1249
1317
  @service_account = args[:service_account] if args.key?(:service_account)
1318
+ @volumes = args[:volumes] if args.key?(:volumes)
1319
+ end
1320
+ end
1321
+
1322
+ # Carries information about storage that can be attached to a VM.
1323
+ class Volume
1324
+ include Google::Apis::Core::Hashable
1325
+
1326
+ # Configuration for an existing disk to be attached to the VM.
1327
+ # Corresponds to the JSON property `existingDisk`
1328
+ # @return [Google::Apis::LifesciencesV2beta::ExistingDisk]
1329
+ attr_accessor :existing_disk
1330
+
1331
+ # Configuration for a persistent disk to be attached to the VM. See https://
1332
+ # cloud.google.com/compute/docs/disks/performance for more information about
1333
+ # disk type, size, and performance considerations.
1334
+ # Corresponds to the JSON property `persistentDisk`
1335
+ # @return [Google::Apis::LifesciencesV2beta::PersistentDisk]
1336
+ attr_accessor :persistent_disk
1337
+
1338
+ # A user-supplied name for the volume. Used when mounting the volume into `
1339
+ # Actions`. The name must contain only upper and lowercase alphanumeric
1340
+ # characters and hyphens and cannot start with a hyphen.
1341
+ # Corresponds to the JSON property `volume`
1342
+ # @return [String]
1343
+ attr_accessor :volume
1344
+
1345
+ def initialize(**args)
1346
+ update!(**args)
1347
+ end
1348
+
1349
+ # Update properties of this object
1350
+ def update!(**args)
1351
+ @existing_disk = args[:existing_disk] if args.key?(:existing_disk)
1352
+ @persistent_disk = args[:persistent_disk] if args.key?(:persistent_disk)
1353
+ @volume = args[:volume] if args.key?(:volume)
1250
1354
  end
1251
1355
  end
1252
1356
 
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class ExistingDisk
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class FailedEvent
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -130,6 +136,12 @@ module Google
130
136
  include Google::Apis::Core::JsonObjectSupport
131
137
  end
132
138
 
139
+ class PersistentDisk
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
133
145
  class Pipeline
134
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
147
 
@@ -196,6 +208,12 @@ module Google
196
208
  include Google::Apis::Core::JsonObjectSupport
197
209
  end
198
210
 
211
+ class Volume
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
199
217
  class WorkerAssignedEvent
200
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
219
 
@@ -325,6 +343,13 @@ module Google
325
343
  end
326
344
  end
327
345
 
346
+ class ExistingDisk
347
+ # @private
348
+ class Representation < Google::Apis::Core::JsonRepresentation
349
+ property :disk, as: 'disk'
350
+ end
351
+ end
352
+
328
353
  class FailedEvent
329
354
  # @private
330
355
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -406,6 +431,15 @@ module Google
406
431
  end
407
432
  end
408
433
 
434
+ class PersistentDisk
435
+ # @private
436
+ class Representation < Google::Apis::Core::JsonRepresentation
437
+ property :size_gb, as: 'sizeGb'
438
+ property :source_image, as: 'sourceImage'
439
+ property :type, as: 'type'
440
+ end
441
+ end
442
+
409
443
  class Pipeline
410
444
  # @private
411
445
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -510,6 +544,19 @@ module Google
510
544
  property :preemptible, as: 'preemptible'
511
545
  property :service_account, as: 'serviceAccount', class: Google::Apis::LifesciencesV2beta::ServiceAccount, decorator: Google::Apis::LifesciencesV2beta::ServiceAccount::Representation
512
546
 
547
+ collection :volumes, as: 'volumes', class: Google::Apis::LifesciencesV2beta::Volume, decorator: Google::Apis::LifesciencesV2beta::Volume::Representation
548
+
549
+ end
550
+ end
551
+
552
+ class Volume
553
+ # @private
554
+ class Representation < Google::Apis::Core::JsonRepresentation
555
+ property :existing_disk, as: 'existingDisk', class: Google::Apis::LifesciencesV2beta::ExistingDisk, decorator: Google::Apis::LifesciencesV2beta::ExistingDisk::Representation
556
+
557
+ property :persistent_disk, as: 'persistentDisk', class: Google::Apis::LifesciencesV2beta::PersistentDisk, decorator: Google::Apis::LifesciencesV2beta::PersistentDisk::Representation
558
+
559
+ property :volume, as: 'volume'
513
560
  end
514
561
  end
515
562
 
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/memorystore/
27
27
  module MemcacheV1beta2
28
28
  VERSION = 'V1beta2'
29
- REVISION = '20200928'
29
+ REVISION = '20201006'
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'
@@ -193,7 +193,7 @@ module Google
193
193
  attr_accessor :maintenance_policy_names
194
194
 
195
195
  # The MaintenanceSchedule contains the scheduling information of published
196
- # maintenance schedule.
196
+ # maintenance schedule with same key as software_versions.
197
197
  # Corresponds to the JSON property `maintenanceSchedules`
198
198
  # @return [Hash<String,Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule>]
199
199
  attr_accessor :maintenance_schedules
@@ -29,7 +29,7 @@ module Google
29
29
  # @see https://cloud.google.com/monitoring/api/
30
30
  module MonitoringV3
31
31
  VERSION = 'V3'
32
- REVISION = '20200927'
32
+ REVISION = '20201005'
33
33
 
34
34
  # View and manage your data across Google Cloud Platform services
35
35
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -645,6 +645,12 @@ module Google
645
645
  # @return [Google::Apis::MonitoringV3::MetricAbsence]
646
646
  attr_accessor :condition_absent
647
647
 
648
+ # A condition type that allows alert policies to be defined using Monitoring
649
+ # Query Language.
650
+ # Corresponds to the JSON property `conditionMonitoringQueryLanguage`
651
+ # @return [Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition]
652
+ attr_accessor :condition_monitoring_query_language
653
+
648
654
  # A condition type that compares a collection of time series against a threshold.
649
655
  # Corresponds to the JSON property `conditionThreshold`
650
656
  # @return [Google::Apis::MonitoringV3::MetricThreshold]
@@ -682,6 +688,7 @@ module Google
682
688
  # Update properties of this object
683
689
  def update!(**args)
684
690
  @condition_absent = args[:condition_absent] if args.key?(:condition_absent)
691
+ @condition_monitoring_query_language = args[:condition_monitoring_query_language] if args.key?(:condition_monitoring_query_language)
685
692
  @condition_threshold = args[:condition_threshold] if args.key?(:condition_threshold)
686
693
  @display_name = args[:display_name] if args.key?(:display_name)
687
694
  @name = args[:name] if args.key?(:name)
@@ -2640,6 +2647,47 @@ module Google
2640
2647
  end
2641
2648
  end
2642
2649
 
2650
+ # A condition type that allows alert policies to be defined using Monitoring
2651
+ # Query Language.
2652
+ class MonitoringQueryLanguageCondition
2653
+ include Google::Apis::Core::Hashable
2654
+
2655
+ # The amount of time that a time series must violate the threshold to be
2656
+ # considered failing. Currently, only values that are a multiple of a minute--e.
2657
+ # g., 0, 60, 120, or 300 seconds--are supported. If an invalid value is given,
2658
+ # an error will be returned. When choosing a duration, it is useful to keep in
2659
+ # mind the frequency of the underlying time series data (which may also be
2660
+ # affected by any alignments specified in the aggregations field); a good
2661
+ # duration is long enough so that a single outlier does not generate spurious
2662
+ # alerts, but short enough that unhealthy states are detected and alerted on
2663
+ # quickly.
2664
+ # Corresponds to the JSON property `duration`
2665
+ # @return [String]
2666
+ attr_accessor :duration
2667
+
2668
+ # Monitoring Query Language query that outputs a boolean stream.
2669
+ # Corresponds to the JSON property `query`
2670
+ # @return [String]
2671
+ attr_accessor :query
2672
+
2673
+ # Specifies how many time series must fail a predicate to trigger a condition.
2674
+ # If not specified, then a `count: 1` trigger is used.
2675
+ # Corresponds to the JSON property `trigger`
2676
+ # @return [Google::Apis::MonitoringV3::Trigger]
2677
+ attr_accessor :trigger
2678
+
2679
+ def initialize(**args)
2680
+ update!(**args)
2681
+ end
2682
+
2683
+ # Update properties of this object
2684
+ def update!(**args)
2685
+ @duration = args[:duration] if args.key?(:duration)
2686
+ @query = args[:query] if args.key?(:query)
2687
+ @trigger = args[:trigger] if args.key?(:trigger)
2688
+ end
2689
+ end
2690
+
2643
2691
  # Describes a change made to a configuration.
2644
2692
  class MutationRecord
2645
2693
  include Google::Apis::Core::Hashable
@@ -394,6 +394,12 @@ module Google
394
394
  include Google::Apis::Core::JsonObjectSupport
395
395
  end
396
396
 
397
+ class MonitoringQueryLanguageCondition
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
397
403
  class MutationRecord
398
404
  class Representation < Google::Apis::Core::JsonRepresentation; end
399
405
 
@@ -744,6 +750,8 @@ module Google
744
750
  class Representation < Google::Apis::Core::JsonRepresentation
745
751
  property :condition_absent, as: 'conditionAbsent', class: Google::Apis::MonitoringV3::MetricAbsence, decorator: Google::Apis::MonitoringV3::MetricAbsence::Representation
746
752
 
753
+ property :condition_monitoring_query_language, as: 'conditionMonitoringQueryLanguage', class: Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition, decorator: Google::Apis::MonitoringV3::MonitoringQueryLanguageCondition::Representation
754
+
747
755
  property :condition_threshold, as: 'conditionThreshold', class: Google::Apis::MonitoringV3::MetricThreshold, decorator: Google::Apis::MonitoringV3::MetricThreshold::Representation
748
756
 
749
757
  property :display_name, as: 'displayName'
@@ -1225,6 +1233,16 @@ module Google
1225
1233
  end
1226
1234
  end
1227
1235
 
1236
+ class MonitoringQueryLanguageCondition
1237
+ # @private
1238
+ class Representation < Google::Apis::Core::JsonRepresentation
1239
+ property :duration, as: 'duration'
1240
+ property :query, as: 'query'
1241
+ property :trigger, as: 'trigger', class: Google::Apis::MonitoringV3::Trigger, decorator: Google::Apis::MonitoringV3::Trigger::Representation
1242
+
1243
+ end
1244
+ end
1245
+
1228
1246
  class MutationRecord
1229
1247
  # @private
1230
1248
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -0,0 +1,40 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/oauth2_v2/service.rb'
16
+ require 'google/apis/oauth2_v2/classes.rb'
17
+ require 'google/apis/oauth2_v2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google OAuth2 API
22
+ #
23
+ # Obtains end-user authorization grants for use with other Google APIs.
24
+ #
25
+ # @see https://developers.google.com/identity/protocols/oauth2/
26
+ module Oauth2V2
27
+ VERSION = 'V2'
28
+ REVISION = '20200213'
29
+
30
+ # View your email address
31
+ AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
32
+
33
+ # See your personal info, including any personal info you've made publicly available
34
+ AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
35
+
36
+ # Associate you with your personal info on Google
37
+ PENID = 'openid'
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,165 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module Oauth2V2
24
+
25
+ #
26
+ class Tokeninfo
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Who is the intended audience for this token. In general the same as issued_to.
30
+ # Corresponds to the JSON property `audience`
31
+ # @return [String]
32
+ attr_accessor :audience
33
+
34
+ # The email address of the user. Present only if the email scope is present in
35
+ # the request.
36
+ # Corresponds to the JSON property `email`
37
+ # @return [String]
38
+ attr_accessor :email
39
+
40
+ # The expiry time of the token, as number of seconds left until expiry.
41
+ # Corresponds to the JSON property `expires_in`
42
+ # @return [Fixnum]
43
+ attr_accessor :expires_in
44
+
45
+ # To whom was the token issued to. In general the same as audience.
46
+ # Corresponds to the JSON property `issued_to`
47
+ # @return [String]
48
+ attr_accessor :issued_to
49
+
50
+ # The space separated list of scopes granted to this token.
51
+ # Corresponds to the JSON property `scope`
52
+ # @return [String]
53
+ attr_accessor :scope
54
+
55
+ # The obfuscated user id.
56
+ # Corresponds to the JSON property `user_id`
57
+ # @return [String]
58
+ attr_accessor :user_id
59
+
60
+ # Boolean flag which is true if the email address is verified. Present only if
61
+ # the email scope is present in the request.
62
+ # Corresponds to the JSON property `verified_email`
63
+ # @return [Boolean]
64
+ attr_accessor :verified_email
65
+ alias_method :verified_email?, :verified_email
66
+
67
+ def initialize(**args)
68
+ update!(**args)
69
+ end
70
+
71
+ # Update properties of this object
72
+ def update!(**args)
73
+ @audience = args[:audience] if args.key?(:audience)
74
+ @email = args[:email] if args.key?(:email)
75
+ @expires_in = args[:expires_in] if args.key?(:expires_in)
76
+ @issued_to = args[:issued_to] if args.key?(:issued_to)
77
+ @scope = args[:scope] if args.key?(:scope)
78
+ @user_id = args[:user_id] if args.key?(:user_id)
79
+ @verified_email = args[:verified_email] if args.key?(:verified_email)
80
+ end
81
+ end
82
+
83
+ #
84
+ class Userinfo
85
+ include Google::Apis::Core::Hashable
86
+
87
+ # The user's email address.
88
+ # Corresponds to the JSON property `email`
89
+ # @return [String]
90
+ attr_accessor :email
91
+
92
+ # The user's last name.
93
+ # Corresponds to the JSON property `family_name`
94
+ # @return [String]
95
+ attr_accessor :family_name
96
+
97
+ # The user's gender.
98
+ # Corresponds to the JSON property `gender`
99
+ # @return [String]
100
+ attr_accessor :gender
101
+
102
+ # The user's first name.
103
+ # Corresponds to the JSON property `given_name`
104
+ # @return [String]
105
+ attr_accessor :given_name
106
+
107
+ # The hosted domain e.g. example.com if the user is Google apps user.
108
+ # Corresponds to the JSON property `hd`
109
+ # @return [String]
110
+ attr_accessor :hd
111
+
112
+ # The obfuscated ID of the user.
113
+ # Corresponds to the JSON property `id`
114
+ # @return [String]
115
+ attr_accessor :id
116
+
117
+ # URL of the profile page.
118
+ # Corresponds to the JSON property `link`
119
+ # @return [String]
120
+ attr_accessor :link
121
+
122
+ # The user's preferred locale.
123
+ # Corresponds to the JSON property `locale`
124
+ # @return [String]
125
+ attr_accessor :locale
126
+
127
+ # The user's full name.
128
+ # Corresponds to the JSON property `name`
129
+ # @return [String]
130
+ attr_accessor :name
131
+
132
+ # URL of the user's picture image.
133
+ # Corresponds to the JSON property `picture`
134
+ # @return [String]
135
+ attr_accessor :picture
136
+
137
+ # Boolean flag which is true if the email address is verified. Always verified
138
+ # because we only return the user's primary email address.
139
+ # Corresponds to the JSON property `verified_email`
140
+ # @return [Boolean]
141
+ attr_accessor :verified_email
142
+ alias_method :verified_email?, :verified_email
143
+
144
+ def initialize(**args)
145
+ update!(**args)
146
+ end
147
+
148
+ # Update properties of this object
149
+ def update!(**args)
150
+ @email = args[:email] if args.key?(:email)
151
+ @family_name = args[:family_name] if args.key?(:family_name)
152
+ @gender = args[:gender] if args.key?(:gender)
153
+ @given_name = args[:given_name] if args.key?(:given_name)
154
+ @hd = args[:hd] if args.key?(:hd)
155
+ @id = args[:id] if args.key?(:id)
156
+ @link = args[:link] if args.key?(:link)
157
+ @locale = args[:locale] if args.key?(:locale)
158
+ @name = args[:name] if args.key?(:name)
159
+ @picture = args[:picture] if args.key?(:picture)
160
+ @verified_email = args[:verified_email] if args.key?(:verified_email)
161
+ end
162
+ end
163
+ end
164
+ end
165
+ end