google-api-client 0.46.2 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/trampoline.sh +0 -0
  3. data/CHANGELOG.md +370 -192
  4. data/Gemfile +1 -0
  5. data/Rakefile +31 -3
  6. data/generated/google/apis/accessapproval_v1.rb +1 -1
  7. data/generated/google/apis/accessapproval_v1/classes.rb +13 -15
  8. data/generated/google/apis/admob_v1.rb +1 -1
  9. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  10. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +26 -12
  11. data/generated/google/apis/analyticsdata_v1alpha/service.rb +3 -1
  12. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  13. data/generated/google/apis/androidmanagement_v1/classes.rb +29 -26
  14. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  15. data/generated/google/apis/androidpublisher_v3/classes.rb +2 -1
  16. data/generated/google/apis/apigee_v1.rb +1 -1
  17. data/generated/google/apis/apigee_v1/classes.rb +16 -54
  18. data/generated/google/apis/apigee_v1/representations.rb +1 -18
  19. data/generated/google/apis/apigee_v1/service.rb +21 -13
  20. data/generated/google/apis/area120tables_v1alpha1.rb +46 -0
  21. data/generated/google/apis/area120tables_v1alpha1/classes.rb +423 -0
  22. data/generated/google/apis/area120tables_v1alpha1/representations.rb +248 -0
  23. data/generated/google/apis/area120tables_v1alpha1/service.rb +381 -0
  24. data/generated/google/apis/bigquery_v2.rb +1 -1
  25. data/generated/google/apis/bigquery_v2/classes.rb +72 -0
  26. data/generated/google/apis/bigquery_v2/representations.rb +33 -0
  27. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  28. data/generated/google/apis/binaryauthorization_v1/classes.rb +2 -2
  29. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  30. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +2 -2
  31. data/generated/google/apis/books_v1.rb +1 -1
  32. data/generated/google/apis/books_v1/service.rb +52 -52
  33. data/generated/google/apis/chat_v1.rb +1 -1
  34. data/generated/google/apis/chat_v1/classes.rb +8 -0
  35. data/generated/google/apis/chat_v1/representations.rb +1 -0
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +2 -1
  40. data/generated/google/apis/cloudbuild_v1/service.rb +10 -2
  41. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  42. data/generated/google/apis/cloudresourcemanager_v2/service.rb +7 -7
  43. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  44. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +7 -7
  45. data/generated/google/apis/compute_v1.rb +1 -1
  46. data/generated/google/apis/compute_v1/classes.rb +15 -8
  47. data/generated/google/apis/content_v2.rb +2 -3
  48. data/generated/google/apis/content_v2/classes.rb +508 -1216
  49. data/generated/google/apis/content_v2/service.rb +373 -646
  50. data/generated/google/apis/dataproc_v1.rb +1 -1
  51. data/generated/google/apis/dataproc_v1/classes.rb +15 -3
  52. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  53. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  54. data/generated/google/apis/dataproc_v1beta2/classes.rb +15 -3
  55. data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
  56. data/generated/google/apis/dialogflow_v2.rb +1 -1
  57. data/generated/google/apis/dialogflow_v2/classes.rb +651 -374
  58. data/generated/google/apis/dialogflow_v2/representations.rb +284 -185
  59. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  60. data/generated/google/apis/dialogflow_v2beta1/classes.rb +651 -374
  61. data/generated/google/apis/dialogflow_v2beta1/representations.rb +288 -189
  62. data/generated/google/apis/dialogflow_v2beta1/service.rb +2 -2
  63. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  64. data/generated/google/apis/dialogflow_v3beta1/classes.rb +682 -374
  65. data/generated/google/apis/dialogflow_v3beta1/representations.rb +303 -188
  66. data/generated/google/apis/dialogflow_v3beta1/service.rb +1 -1
  67. data/generated/google/apis/dlp_v2.rb +1 -1
  68. data/generated/google/apis/dlp_v2/classes.rb +29 -29
  69. data/generated/google/apis/dns_v1.rb +2 -2
  70. data/generated/google/apis/dns_v1/service.rb +1 -1
  71. data/generated/google/apis/dns_v1beta2.rb +2 -2
  72. data/generated/google/apis/dns_v1beta2/classes.rb +1 -1
  73. data/generated/google/apis/dns_v1beta2/service.rb +1 -1
  74. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  75. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +3 -2
  76. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  77. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +3 -2
  78. data/generated/google/apis/eventarc_v1beta1.rb +34 -0
  79. data/generated/google/apis/eventarc_v1beta1/classes.rb +933 -0
  80. data/generated/google/apis/eventarc_v1beta1/representations.rb +379 -0
  81. data/generated/google/apis/eventarc_v1beta1/service.rb +579 -0
  82. data/generated/google/apis/games_v1.rb +1 -1
  83. data/generated/google/apis/healthcare_v1.rb +1 -1
  84. data/generated/google/apis/healthcare_v1/service.rb +2 -1
  85. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  86. data/generated/google/apis/healthcare_v1beta1/classes.rb +79 -0
  87. data/generated/google/apis/healthcare_v1beta1/representations.rb +31 -0
  88. data/generated/google/apis/healthcare_v1beta1/service.rb +53 -11
  89. data/generated/google/apis/licensing_v1.rb +1 -1
  90. data/generated/google/apis/licensing_v1/service.rb +2 -2
  91. data/generated/google/apis/localservices_v1.rb +1 -1
  92. data/generated/google/apis/localservices_v1/classes.rb +7 -0
  93. data/generated/google/apis/localservices_v1/representations.rb +2 -0
  94. data/generated/google/apis/logging_v2.rb +1 -1
  95. data/generated/google/apis/logging_v2/classes.rb +4 -5
  96. data/generated/google/apis/ml_v1.rb +1 -1
  97. data/generated/google/apis/ml_v1/classes.rb +238 -77
  98. data/generated/google/apis/ml_v1/representations.rb +17 -0
  99. data/generated/google/apis/monitoring_v3.rb +1 -1
  100. data/generated/google/apis/monitoring_v3/classes.rb +11 -5
  101. data/generated/google/apis/monitoring_v3/service.rb +50 -1
  102. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  103. data/generated/google/apis/pubsub_v1.rb +1 -1
  104. data/generated/google/apis/pubsub_v1/service.rb +2 -2
  105. data/generated/google/apis/recommender_v1.rb +1 -1
  106. data/generated/google/apis/recommender_v1/classes.rb +1 -1
  107. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  108. data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
  109. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  110. data/generated/google/apis/sasportal_v1alpha1/service.rb +109 -0
  111. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  112. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +5 -63
  113. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -18
  114. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  115. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +5 -63
  116. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +0 -18
  117. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  118. data/generated/google/apis/servicecontrol_v1/classes.rb +32 -2
  119. data/generated/google/apis/servicecontrol_v1/representations.rb +4 -0
  120. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  121. data/generated/google/apis/servicecontrol_v2/classes.rb +17 -0
  122. data/generated/google/apis/servicecontrol_v2/representations.rb +2 -0
  123. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  124. data/generated/google/apis/servicemanagement_v1/classes.rb +4 -3
  125. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  126. data/generated/google/apis/servicenetworking_v1/classes.rb +78 -60
  127. data/generated/google/apis/servicenetworking_v1/representations.rb +29 -14
  128. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  129. data/generated/google/apis/servicenetworking_v1beta/classes.rb +32 -60
  130. data/generated/google/apis/servicenetworking_v1beta/representations.rb +12 -14
  131. data/generated/google/apis/serviceusage_v1.rb +1 -1
  132. data/generated/google/apis/serviceusage_v1/classes.rb +5 -63
  133. data/generated/google/apis/serviceusage_v1/representations.rb +0 -18
  134. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  135. data/generated/google/apis/serviceusage_v1beta1/classes.rb +5 -63
  136. data/generated/google/apis/serviceusage_v1beta1/representations.rb +0 -18
  137. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  138. data/generated/google/apis/storagetransfer_v1/classes.rb +29 -29
  139. data/generated/google/apis/tagmanager_v2.rb +1 -1
  140. data/generated/google/apis/tagmanager_v2/classes.rb +12 -0
  141. data/generated/google/apis/tagmanager_v2/representations.rb +3 -0
  142. data/generated/google/apis/testing_v1.rb +1 -1
  143. data/generated/google/apis/testing_v1/classes.rb +45 -33
  144. data/generated/google/apis/testing_v1/representations.rb +1 -0
  145. data/generated/google/apis/testing_v1/service.rb +4 -4
  146. data/generated/google/apis/videointelligence_v1.rb +1 -1
  147. data/generated/google/apis/videointelligence_v1/service.rb +0 -62
  148. data/generated/google/apis/youtube_v3.rb +1 -1
  149. data/generated/google/apis/youtube_v3/service.rb +2 -2
  150. data/google-api-client.gemspec +25 -25
  151. data/lib/google/apis/core/http_command.rb +2 -1
  152. data/lib/google/apis/options.rb +8 -5
  153. data/lib/google/apis/version.rb +1 -1
  154. metadata +12 -8
  155. data/generated/google/apis/safebrowsing_v4.rb +0 -35
  156. data/generated/google/apis/safebrowsing_v4/classes.rb +0 -909
  157. data/generated/google/apis/safebrowsing_v4/representations.rb +0 -445
  158. data/generated/google/apis/safebrowsing_v4/service.rb +0 -286
@@ -252,7 +252,7 @@ module Google
252
252
  execute_or_queue_command(command, &block)
253
253
  end
254
254
 
255
- # Restores the specified agent from a bianry file. Replaces the current agent
255
+ # Restores the specified agent from a binary file. Replaces the current agent
256
256
  # with a new one. Note that all existing resources in agent (e.g. intents,
257
257
  # entity types, flows) will be removed.
258
258
  # @param [String] name
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/dlp/docs/
28
28
  module DlpV2
29
29
  VERSION = 'V2'
30
- REVISION = '20201009'
30
+ REVISION = '20201016'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -1638,14 +1638,14 @@ module Google
1638
1638
  class GooglePrivacyDlpV2DateTime
1639
1639
  include Google::Apis::Core::Hashable
1640
1640
 
1641
- # Represents a whole or partial calendar date, e.g. a birthday. The time of day
1642
- # and time zone are either specified elsewhere or are not significant. The date
1643
- # is relative to the Proleptic Gregorian Calendar. This can represent: * A full
1644
- # date, with non-zero year, month and day values * A month and day value, with a
1645
- # zero year, e.g. an anniversary * A year on its own, with zero month and day
1646
- # values * A year and month value, with a zero day, e.g. a credit card
1647
- # expiration date Related types are google.type.TimeOfDay and `google.protobuf.
1648
- # Timestamp`.
1641
+ # Represents a whole or partial calendar date, such as a birthday. The time of
1642
+ # day and time zone are either specified elsewhere or are insignificant. The
1643
+ # date is relative to the Gregorian Calendar. This can represent one of the
1644
+ # following: * A full date, with non-zero year, month, and day values * A month
1645
+ # and day value, with a zero year, such as an anniversary * A year on its own,
1646
+ # with zero month and day values * A year and month value, with a zero day, such
1647
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
1648
+ # google.protobuf.Timestamp`.
1649
1649
  # Corresponds to the JSON property `date`
1650
1650
  # @return [Google::Apis::DlpV2::GoogleTypeDate]
1651
1651
  attr_accessor :date
@@ -6333,14 +6333,14 @@ module Google
6333
6333
  attr_accessor :boolean_value
6334
6334
  alias_method :boolean_value?, :boolean_value
6335
6335
 
6336
- # Represents a whole or partial calendar date, e.g. a birthday. The time of day
6337
- # and time zone are either specified elsewhere or are not significant. The date
6338
- # is relative to the Proleptic Gregorian Calendar. This can represent: * A full
6339
- # date, with non-zero year, month and day values * A month and day value, with a
6340
- # zero year, e.g. an anniversary * A year on its own, with zero month and day
6341
- # values * A year and month value, with a zero day, e.g. a credit card
6342
- # expiration date Related types are google.type.TimeOfDay and `google.protobuf.
6343
- # Timestamp`.
6336
+ # Represents a whole or partial calendar date, such as a birthday. The time of
6337
+ # day and time zone are either specified elsewhere or are insignificant. The
6338
+ # date is relative to the Gregorian Calendar. This can represent one of the
6339
+ # following: * A full date, with non-zero year, month, and day values * A month
6340
+ # and day value, with a zero year, such as an anniversary * A year on its own,
6341
+ # with zero month and day values * A year and month value, with a zero day, such
6342
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
6343
+ # google.protobuf.Timestamp`.
6344
6344
  # Corresponds to the JSON property `dateValue`
6345
6345
  # @return [Google::Apis::DlpV2::GoogleTypeDate]
6346
6346
  attr_accessor :date_value
@@ -6500,31 +6500,31 @@ module Google
6500
6500
  end
6501
6501
  end
6502
6502
 
6503
- # Represents a whole or partial calendar date, e.g. a birthday. The time of day
6504
- # and time zone are either specified elsewhere or are not significant. The date
6505
- # is relative to the Proleptic Gregorian Calendar. This can represent: * A full
6506
- # date, with non-zero year, month and day values * A month and day value, with a
6507
- # zero year, e.g. an anniversary * A year on its own, with zero month and day
6508
- # values * A year and month value, with a zero day, e.g. a credit card
6509
- # expiration date Related types are google.type.TimeOfDay and `google.protobuf.
6510
- # Timestamp`.
6503
+ # Represents a whole or partial calendar date, such as a birthday. The time of
6504
+ # day and time zone are either specified elsewhere or are insignificant. The
6505
+ # date is relative to the Gregorian Calendar. This can represent one of the
6506
+ # following: * A full date, with non-zero year, month, and day values * A month
6507
+ # and day value, with a zero year, such as an anniversary * A year on its own,
6508
+ # with zero month and day values * A year and month value, with a zero day, such
6509
+ # as a credit card expiration date Related types are google.type.TimeOfDay and `
6510
+ # google.protobuf.Timestamp`.
6511
6511
  class GoogleTypeDate
6512
6512
  include Google::Apis::Core::Hashable
6513
6513
 
6514
- # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
6515
- # specifying a year by itself or a year and month where the day is not
6516
- # significant.
6514
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
6515
+ # specify a year by itself or a year and month where the day isn't significant.
6517
6516
  # Corresponds to the JSON property `day`
6518
6517
  # @return [Fixnum]
6519
6518
  attr_accessor :day
6520
6519
 
6521
- # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month
6520
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
6522
6521
  # and day.
6523
6522
  # Corresponds to the JSON property `month`
6524
6523
  # @return [Fixnum]
6525
6524
  attr_accessor :month
6526
6525
 
6527
- # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
6526
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
6527
+ # year.
6528
6528
  # Corresponds to the JSON property `year`
6529
6529
  # @return [Fixnum]
6530
6530
  attr_accessor :year
@@ -22,10 +22,10 @@ module Google
22
22
  #
23
23
  #
24
24
  #
25
- # @see http://developers.google.com/cloud-dns
25
+ # @see https://cloud.google.com/dns/docs
26
26
  module DnsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20201003'
28
+ REVISION = '20201013'
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'
@@ -30,7 +30,7 @@ module Google
30
30
  # Dns = Google::Apis::DnsV1 # Alias the module
31
31
  # service = Dns::DnsService.new
32
32
  #
33
- # @see http://developers.google.com/cloud-dns
33
+ # @see https://cloud.google.com/dns/docs
34
34
  class DnsService < Google::Apis::Core::BaseService
35
35
  # @return [String]
36
36
  # API key. Your API key identifies your project and provides you with API access,
@@ -22,10 +22,10 @@ module Google
22
22
  #
23
23
  #
24
24
  #
25
- # @see http://developers.google.com/cloud-dns
25
+ # @see https://cloud.google.com/dns/docs
26
26
  module DnsV1beta2
27
27
  VERSION = 'V1beta2'
28
- REVISION = '20201003'
28
+ REVISION = '20201013'
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'
@@ -1610,7 +1610,7 @@ module Google
1610
1610
  # @return [Google::Apis::DnsV1beta2::ResponseHeader]
1611
1611
  attr_accessor :header
1612
1612
 
1613
- # Type of resource.
1613
+ #
1614
1614
  # Corresponds to the JSON property `kind`
1615
1615
  # @return [String]
1616
1616
  attr_accessor :kind
@@ -30,7 +30,7 @@ module Google
30
30
  # Dns = Google::Apis::DnsV1beta2 # Alias the module
31
31
  # service = Dns::DnsService.new
32
32
  #
33
- # @see http://developers.google.com/cloud-dns
33
+ # @see https://cloud.google.com/dns/docs
34
34
  class DnsService < Google::Apis::Core::BaseService
35
35
  # @return [String]
36
36
  # API key. Your API key identifies your project and provides you with API access,
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/bid-manager/
27
27
  module DoubleclickbidmanagerV1
28
28
  VERSION = 'V1'
29
- REVISION = '20201006'
29
+ REVISION = '20201016'
30
30
 
31
31
  # View and manage your reports in DoubleClick Bid Manager
32
32
  AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'
@@ -106,7 +106,7 @@ module Google
106
106
  attr_accessor :filter_type
107
107
 
108
108
  # SDF Version (column names, types, order) in which the entities will be
109
- # returned. Default to 5.2.
109
+ # returned. Default to 5.
110
110
  # Corresponds to the JSON property `version`
111
111
  # @return [String]
112
112
  attr_accessor :version
@@ -461,7 +461,8 @@ module Google
461
461
  # @return [String]
462
462
  attr_accessor :frequency
463
463
 
464
- # Deprecated. This field has no effect.
464
+ # Time of day at which a new report will be generated, represented as minutes
465
+ # past midnight. Range is 0 to 1439. Only applies to scheduled reports.
465
466
  # Corresponds to the JSON property `nextRunMinuteOfDay`
466
467
  # @return [Fixnum]
467
468
  attr_accessor :next_run_minute_of_day
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/bid-manager/
27
27
  module DoubleclickbidmanagerV1_1
28
28
  VERSION = 'V1_1'
29
- REVISION = '20201006'
29
+ REVISION = '20201016'
30
30
 
31
31
  # View and manage your reports in DoubleClick Bid Manager
32
32
  AUTH_DOUBLECLICKBIDMANAGER = 'https://www.googleapis.com/auth/doubleclickbidmanager'
@@ -160,7 +160,7 @@ module Google
160
160
  attr_accessor :filter_type
161
161
 
162
162
  # SDF Version (column names, types, order) in which the entities will be
163
- # returned. Default to 5.2.
163
+ # returned. Default to 5.
164
164
  # Corresponds to the JSON property `version`
165
165
  # @return [String]
166
166
  attr_accessor :version
@@ -668,7 +668,8 @@ module Google
668
668
  # @return [String]
669
669
  attr_accessor :frequency
670
670
 
671
- # Deprecated. This field has no effect.
671
+ # Time of day at which a new report will be generated, represented as minutes
672
+ # past midnight. Range is 0 to 1439. Only applies to scheduled reports.
672
673
  # Corresponds to the JSON property `nextRunMinuteOfDay`
673
674
  # @return [Fixnum]
674
675
  attr_accessor :next_run_minute_of_day
@@ -0,0 +1,34 @@
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/eventarc_v1beta1/service.rb'
16
+ require 'google/apis/eventarc_v1beta1/classes.rb'
17
+ require 'google/apis/eventarc_v1beta1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Eventarc API
22
+ #
23
+ #
24
+ #
25
+ # @see https://cloud.google.com/eventarc
26
+ module EventarcV1beta1
27
+ VERSION = 'V1beta1'
28
+ REVISION = '20201015'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,933 @@
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 EventarcV1beta1
24
+
25
+ # Specifies the audit configuration for a service. The configuration determines
26
+ # which permission types are logged, and what identities, if any, are exempted
27
+ # from logging. An AuditConfig must have one or more AuditLogConfigs. If there
28
+ # are AuditConfigs for both `allServices` and a specific service, the union of
29
+ # the two AuditConfigs is used for that service: the log_types specified in each
30
+ # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
31
+ # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
32
+ # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
33
+ # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
34
+ # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
35
+ # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
36
+ # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
37
+ # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
38
+ # exempts jose@example.com from DATA_READ logging, and aliya@example.com from
39
+ # DATA_WRITE logging.
40
+ class AuditConfig
41
+ include Google::Apis::Core::Hashable
42
+
43
+ # The configuration for logging of each type of permission.
44
+ # Corresponds to the JSON property `auditLogConfigs`
45
+ # @return [Array<Google::Apis::EventarcV1beta1::AuditLogConfig>]
46
+ attr_accessor :audit_log_configs
47
+
48
+ # Specifies a service that will be enabled for audit logging. For example, `
49
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
50
+ # value that covers all services.
51
+ # Corresponds to the JSON property `service`
52
+ # @return [String]
53
+ attr_accessor :service
54
+
55
+ def initialize(**args)
56
+ update!(**args)
57
+ end
58
+
59
+ # Update properties of this object
60
+ def update!(**args)
61
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
62
+ @service = args[:service] if args.key?(:service)
63
+ end
64
+ end
65
+
66
+ # Provides the configuration for logging a type of permissions. Example: ` "
67
+ # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
68
+ # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
69
+ # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
70
+ # DATA_READ logging.
71
+ class AuditLogConfig
72
+ include Google::Apis::Core::Hashable
73
+
74
+ # Specifies the identities that do not cause logging for this type of permission.
75
+ # Follows the same format of Binding.members.
76
+ # Corresponds to the JSON property `exemptedMembers`
77
+ # @return [Array<String>]
78
+ attr_accessor :exempted_members
79
+
80
+ # The log type that this config enables.
81
+ # Corresponds to the JSON property `logType`
82
+ # @return [String]
83
+ attr_accessor :log_type
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
92
+ @log_type = args[:log_type] if args.key?(:log_type)
93
+ end
94
+ end
95
+
96
+ # Associates `members` with a `role`.
97
+ class Binding
98
+ include Google::Apis::Core::Hashable
99
+
100
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
101
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
102
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
103
+ # "Summary size limit" description: "Determines if a summary is less than 100
104
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
105
+ # Requestor is owner" description: "Determines if requestor is the document
106
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
107
+ # Logic): title: "Public documents" description: "Determine whether the document
108
+ # should be publicly visible" expression: "document.type != 'private' &&
109
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
110
+ # string" description: "Create a notification string with a timestamp."
111
+ # expression: "'New message received at ' + string(document.create_time)" The
112
+ # exact variables and functions that may be referenced within an expression are
113
+ # determined by the service that evaluates it. See the service documentation for
114
+ # additional information.
115
+ # Corresponds to the JSON property `condition`
116
+ # @return [Google::Apis::EventarcV1beta1::Expr]
117
+ attr_accessor :condition
118
+
119
+ # Specifies the identities requesting access for a Cloud Platform resource. `
120
+ # members` can have the following values: * `allUsers`: A special identifier
121
+ # that represents anyone who is on the internet; with or without a Google
122
+ # account. * `allAuthenticatedUsers`: A special identifier that represents
123
+ # anyone who is authenticated with a Google account or a service account. * `
124
+ # user:`emailid``: An email address that represents a specific Google account.
125
+ # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
126
+ # address that represents a service account. For example, `my-other-app@appspot.
127
+ # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
128
+ # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
129
+ # `uniqueid``: An email address (plus unique identifier) representing a user
130
+ # that has been recently deleted. For example, `alice@example.com?uid=
131
+ # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
132
+ # emailid`` and the recovered user retains the role in the binding. * `deleted:
133
+ # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
134
+ # identifier) representing a service account that has been recently deleted. For
135
+ # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
136
+ # If the service account is undeleted, this value reverts to `serviceAccount:`
137
+ # emailid`` and the undeleted service account retains the role in the binding. *
138
+ # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
139
+ # identifier) representing a Google group that has been recently deleted. For
140
+ # example, `admins@example.com?uid=123456789012345678901`. If the group is
141
+ # recovered, this value reverts to `group:`emailid`` and the recovered group
142
+ # retains the role in the binding. * `domain:`domain``: The G Suite domain (
143
+ # primary) that represents all the users of that domain. For example, `google.
144
+ # com` or `example.com`.
145
+ # Corresponds to the JSON property `members`
146
+ # @return [Array<String>]
147
+ attr_accessor :members
148
+
149
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
150
+ # , or `roles/owner`.
151
+ # Corresponds to the JSON property `role`
152
+ # @return [String]
153
+ attr_accessor :role
154
+
155
+ def initialize(**args)
156
+ update!(**args)
157
+ end
158
+
159
+ # Update properties of this object
160
+ def update!(**args)
161
+ @condition = args[:condition] if args.key?(:condition)
162
+ @members = args[:members] if args.key?(:members)
163
+ @role = args[:role] if args.key?(:role)
164
+ end
165
+ end
166
+
167
+ # The request message for Operations.CancelOperation.
168
+ class CancelOperationRequest
169
+ include Google::Apis::Core::Hashable
170
+
171
+ def initialize(**args)
172
+ update!(**args)
173
+ end
174
+
175
+ # Update properties of this object
176
+ def update!(**args)
177
+ end
178
+ end
179
+
180
+ # Represents a Cloud Run service destination.
181
+ class CloudRunService
182
+ include Google::Apis::Core::Hashable
183
+
184
+ # Optional. The relative path on the Cloud Run service the events should be sent
185
+ # to. The value must conform to the definition of URI path segment (section 3.3
186
+ # of RFC2396). Examples: "/route", "route", "route/subroute".
187
+ # Corresponds to the JSON property `path`
188
+ # @return [String]
189
+ attr_accessor :path
190
+
191
+ # Optional. The region the Cloud Run service is deployed in. If not set, the
192
+ # location of the trigger is used. For triggers in the "global" location,
193
+ # setting this field is mandatory.
194
+ # Corresponds to the JSON property `region`
195
+ # @return [String]
196
+ attr_accessor :region
197
+
198
+ # Required. The name of the Cloud run service being addressed (see https://cloud.
199
+ # google.com/run/docs/reference/rest/v1/namespaces.services). Only services
200
+ # located in the same project of the trigger object can be addressed.
201
+ # Corresponds to the JSON property `service`
202
+ # @return [String]
203
+ attr_accessor :service
204
+
205
+ def initialize(**args)
206
+ update!(**args)
207
+ end
208
+
209
+ # Update properties of this object
210
+ def update!(**args)
211
+ @path = args[:path] if args.key?(:path)
212
+ @region = args[:region] if args.key?(:region)
213
+ @service = args[:service] if args.key?(:service)
214
+ end
215
+ end
216
+
217
+ # Represents a target of an invocation over HTTP.
218
+ class Destination
219
+ include Google::Apis::Core::Hashable
220
+
221
+ # Represents a Cloud Run service destination.
222
+ # Corresponds to the JSON property `cloudRunService`
223
+ # @return [Google::Apis::EventarcV1beta1::CloudRunService]
224
+ attr_accessor :cloud_run_service
225
+
226
+ def initialize(**args)
227
+ update!(**args)
228
+ end
229
+
230
+ # Update properties of this object
231
+ def update!(**args)
232
+ @cloud_run_service = args[:cloud_run_service] if args.key?(:cloud_run_service)
233
+ end
234
+ end
235
+
236
+ # A generic empty message that you can re-use to avoid defining duplicated empty
237
+ # messages in your APIs. A typical example is to use it as the request or the
238
+ # response type of an API method. For instance: service Foo ` rpc Bar(google.
239
+ # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
240
+ # `Empty` is empty JSON object ````.
241
+ class Empty
242
+ include Google::Apis::Core::Hashable
243
+
244
+ def initialize(**args)
245
+ update!(**args)
246
+ end
247
+
248
+ # Update properties of this object
249
+ def update!(**args)
250
+ end
251
+ end
252
+
253
+ # Represents a textual expression in the Common Expression Language (CEL) syntax.
254
+ # CEL is a C-like expression language. The syntax and semantics of CEL are
255
+ # documented at https://github.com/google/cel-spec. Example (Comparison): title:
256
+ # "Summary size limit" description: "Determines if a summary is less than 100
257
+ # chars" expression: "document.summary.size() < 100" Example (Equality): title: "
258
+ # Requestor is owner" description: "Determines if requestor is the document
259
+ # owner" expression: "document.owner == request.auth.claims.email" Example (
260
+ # Logic): title: "Public documents" description: "Determine whether the document
261
+ # should be publicly visible" expression: "document.type != 'private' &&
262
+ # document.type != 'internal'" Example (Data Manipulation): title: "Notification
263
+ # string" description: "Create a notification string with a timestamp."
264
+ # expression: "'New message received at ' + string(document.create_time)" The
265
+ # exact variables and functions that may be referenced within an expression are
266
+ # determined by the service that evaluates it. See the service documentation for
267
+ # additional information.
268
+ class Expr
269
+ include Google::Apis::Core::Hashable
270
+
271
+ # Optional. Description of the expression. This is a longer text which describes
272
+ # the expression, e.g. when hovered over it in a UI.
273
+ # Corresponds to the JSON property `description`
274
+ # @return [String]
275
+ attr_accessor :description
276
+
277
+ # Textual representation of an expression in Common Expression Language syntax.
278
+ # Corresponds to the JSON property `expression`
279
+ # @return [String]
280
+ attr_accessor :expression
281
+
282
+ # Optional. String indicating the location of the expression for error reporting,
283
+ # e.g. a file name and a position in the file.
284
+ # Corresponds to the JSON property `location`
285
+ # @return [String]
286
+ attr_accessor :location
287
+
288
+ # Optional. Title for the expression, i.e. a short string describing its purpose.
289
+ # This can be used e.g. in UIs which allow to enter the expression.
290
+ # Corresponds to the JSON property `title`
291
+ # @return [String]
292
+ attr_accessor :title
293
+
294
+ def initialize(**args)
295
+ update!(**args)
296
+ end
297
+
298
+ # Update properties of this object
299
+ def update!(**args)
300
+ @description = args[:description] if args.key?(:description)
301
+ @expression = args[:expression] if args.key?(:expression)
302
+ @location = args[:location] if args.key?(:location)
303
+ @title = args[:title] if args.key?(:title)
304
+ end
305
+ end
306
+
307
+ # The response message for Locations.ListLocations.
308
+ class ListLocationsResponse
309
+ include Google::Apis::Core::Hashable
310
+
311
+ # A list of locations that matches the specified filter in the request.
312
+ # Corresponds to the JSON property `locations`
313
+ # @return [Array<Google::Apis::EventarcV1beta1::Location>]
314
+ attr_accessor :locations
315
+
316
+ # The standard List next-page token.
317
+ # Corresponds to the JSON property `nextPageToken`
318
+ # @return [String]
319
+ attr_accessor :next_page_token
320
+
321
+ def initialize(**args)
322
+ update!(**args)
323
+ end
324
+
325
+ # Update properties of this object
326
+ def update!(**args)
327
+ @locations = args[:locations] if args.key?(:locations)
328
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
329
+ end
330
+ end
331
+
332
+ # The response message for Operations.ListOperations.
333
+ class ListOperationsResponse
334
+ include Google::Apis::Core::Hashable
335
+
336
+ # The standard List next-page token.
337
+ # Corresponds to the JSON property `nextPageToken`
338
+ # @return [String]
339
+ attr_accessor :next_page_token
340
+
341
+ # A list of operations that matches the specified filter in the request.
342
+ # Corresponds to the JSON property `operations`
343
+ # @return [Array<Google::Apis::EventarcV1beta1::Operation>]
344
+ attr_accessor :operations
345
+
346
+ def initialize(**args)
347
+ update!(**args)
348
+ end
349
+
350
+ # Update properties of this object
351
+ def update!(**args)
352
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
353
+ @operations = args[:operations] if args.key?(:operations)
354
+ end
355
+ end
356
+
357
+ # The response message for the ListTriggers method.
358
+ class ListTriggersResponse
359
+ include Google::Apis::Core::Hashable
360
+
361
+ # A page token that can be sent to ListTriggers to request the next page. If
362
+ # this is empty, then there are no more pages.
363
+ # Corresponds to the JSON property `nextPageToken`
364
+ # @return [String]
365
+ attr_accessor :next_page_token
366
+
367
+ # The requested triggers, up to the number specified in `page_size`.
368
+ # Corresponds to the JSON property `triggers`
369
+ # @return [Array<Google::Apis::EventarcV1beta1::Trigger>]
370
+ attr_accessor :triggers
371
+
372
+ # Unreachable resources, if any.
373
+ # Corresponds to the JSON property `unreachable`
374
+ # @return [Array<String>]
375
+ attr_accessor :unreachable
376
+
377
+ def initialize(**args)
378
+ update!(**args)
379
+ end
380
+
381
+ # Update properties of this object
382
+ def update!(**args)
383
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
384
+ @triggers = args[:triggers] if args.key?(:triggers)
385
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
386
+ end
387
+ end
388
+
389
+ # A resource that represents Google Cloud Platform location.
390
+ class Location
391
+ include Google::Apis::Core::Hashable
392
+
393
+ # The friendly name for this location, typically a nearby city name. For example,
394
+ # "Tokyo".
395
+ # Corresponds to the JSON property `displayName`
396
+ # @return [String]
397
+ attr_accessor :display_name
398
+
399
+ # Cross-service attributes for the location. For example `"cloud.googleapis.com/
400
+ # region": "us-east1"`
401
+ # Corresponds to the JSON property `labels`
402
+ # @return [Hash<String,String>]
403
+ attr_accessor :labels
404
+
405
+ # The canonical id for this location. For example: `"us-east1"`.
406
+ # Corresponds to the JSON property `locationId`
407
+ # @return [String]
408
+ attr_accessor :location_id
409
+
410
+ # Service-specific metadata. For example the available capacity at the given
411
+ # location.
412
+ # Corresponds to the JSON property `metadata`
413
+ # @return [Hash<String,Object>]
414
+ attr_accessor :metadata
415
+
416
+ # Resource name for the location, which may vary between implementations. For
417
+ # example: `"projects/example-project/locations/us-east1"`
418
+ # Corresponds to the JSON property `name`
419
+ # @return [String]
420
+ attr_accessor :name
421
+
422
+ def initialize(**args)
423
+ update!(**args)
424
+ end
425
+
426
+ # Update properties of this object
427
+ def update!(**args)
428
+ @display_name = args[:display_name] if args.key?(:display_name)
429
+ @labels = args[:labels] if args.key?(:labels)
430
+ @location_id = args[:location_id] if args.key?(:location_id)
431
+ @metadata = args[:metadata] if args.key?(:metadata)
432
+ @name = args[:name] if args.key?(:name)
433
+ end
434
+ end
435
+
436
+ # Matches events based on exact matches on the CloudEvents attributes.
437
+ class MatchingCriteria
438
+ include Google::Apis::Core::Hashable
439
+
440
+ # Required. The name of a CloudEvents atrribute. Currently, only a subset of
441
+ # attributes can be specified. All triggers MUST provide a matching criteria for
442
+ # attribute 'type'. Event types specify what event type has attributes are
443
+ # allowed based on
444
+ # Corresponds to the JSON property `attribute`
445
+ # @return [String]
446
+ attr_accessor :attribute
447
+
448
+ # Required. The value for the attribute
449
+ # Corresponds to the JSON property `value`
450
+ # @return [String]
451
+ attr_accessor :value
452
+
453
+ def initialize(**args)
454
+ update!(**args)
455
+ end
456
+
457
+ # Update properties of this object
458
+ def update!(**args)
459
+ @attribute = args[:attribute] if args.key?(:attribute)
460
+ @value = args[:value] if args.key?(:value)
461
+ end
462
+ end
463
+
464
+ # This resource represents a long-running operation that is the result of a
465
+ # network API call.
466
+ class Operation
467
+ include Google::Apis::Core::Hashable
468
+
469
+ # If the value is `false`, it means the operation is still in progress. If `true`
470
+ # , the operation is completed, and either `error` or `response` is available.
471
+ # Corresponds to the JSON property `done`
472
+ # @return [Boolean]
473
+ attr_accessor :done
474
+ alias_method :done?, :done
475
+
476
+ # The `Status` type defines a logical error model that is suitable for different
477
+ # programming environments, including REST APIs and RPC APIs. It is used by [
478
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
479
+ # data: error code, error message, and error details. You can find out more
480
+ # about this error model and how to work with it in the [API Design Guide](https:
481
+ # //cloud.google.com/apis/design/errors).
482
+ # Corresponds to the JSON property `error`
483
+ # @return [Google::Apis::EventarcV1beta1::Status]
484
+ attr_accessor :error
485
+
486
+ # Service-specific metadata associated with the operation. It typically contains
487
+ # progress information and common metadata such as create time. Some services
488
+ # might not provide such metadata. Any method that returns a long-running
489
+ # operation should document the metadata type, if any.
490
+ # Corresponds to the JSON property `metadata`
491
+ # @return [Hash<String,Object>]
492
+ attr_accessor :metadata
493
+
494
+ # The server-assigned name, which is only unique within the same service that
495
+ # originally returns it. If you use the default HTTP mapping, the `name` should
496
+ # be a resource name ending with `operations/`unique_id``.
497
+ # Corresponds to the JSON property `name`
498
+ # @return [String]
499
+ attr_accessor :name
500
+
501
+ # The normal response of the operation in case of success. If the original
502
+ # method returns no data on success, such as `Delete`, the response is `google.
503
+ # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
504
+ # the response should be the resource. For other methods, the response should
505
+ # have the type `XxxResponse`, where `Xxx` is the original method name. For
506
+ # example, if the original method name is `TakeSnapshot()`, the inferred
507
+ # response type is `TakeSnapshotResponse`.
508
+ # Corresponds to the JSON property `response`
509
+ # @return [Hash<String,Object>]
510
+ attr_accessor :response
511
+
512
+ def initialize(**args)
513
+ update!(**args)
514
+ end
515
+
516
+ # Update properties of this object
517
+ def update!(**args)
518
+ @done = args[:done] if args.key?(:done)
519
+ @error = args[:error] if args.key?(:error)
520
+ @metadata = args[:metadata] if args.key?(:metadata)
521
+ @name = args[:name] if args.key?(:name)
522
+ @response = args[:response] if args.key?(:response)
523
+ end
524
+ end
525
+
526
+ # Represents the metadata of the long-running operation.
527
+ class OperationMetadata
528
+ include Google::Apis::Core::Hashable
529
+
530
+ # Output only. API version used to start the operation.
531
+ # Corresponds to the JSON property `apiVersion`
532
+ # @return [String]
533
+ attr_accessor :api_version
534
+
535
+ # Output only. The time the operation was created.
536
+ # Corresponds to the JSON property `createTime`
537
+ # @return [String]
538
+ attr_accessor :create_time
539
+
540
+ # Output only. The time the operation finished running.
541
+ # Corresponds to the JSON property `endTime`
542
+ # @return [String]
543
+ attr_accessor :end_time
544
+
545
+ # Output only. Identifies whether the user has requested cancellation of the
546
+ # operation. Operations that have successfully been cancelled have Operation.
547
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
548
+ # CANCELLED`.
549
+ # Corresponds to the JSON property `requestedCancellation`
550
+ # @return [Boolean]
551
+ attr_accessor :requested_cancellation
552
+ alias_method :requested_cancellation?, :requested_cancellation
553
+
554
+ # Output only. Human-readable status of the operation, if any.
555
+ # Corresponds to the JSON property `statusMessage`
556
+ # @return [String]
557
+ attr_accessor :status_message
558
+
559
+ # Output only. Server-defined resource path for the target of the operation.
560
+ # Corresponds to the JSON property `target`
561
+ # @return [String]
562
+ attr_accessor :target
563
+
564
+ # Output only. Name of the verb executed by the operation.
565
+ # Corresponds to the JSON property `verb`
566
+ # @return [String]
567
+ attr_accessor :verb
568
+
569
+ def initialize(**args)
570
+ update!(**args)
571
+ end
572
+
573
+ # Update properties of this object
574
+ def update!(**args)
575
+ @api_version = args[:api_version] if args.key?(:api_version)
576
+ @create_time = args[:create_time] if args.key?(:create_time)
577
+ @end_time = args[:end_time] if args.key?(:end_time)
578
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
579
+ @status_message = args[:status_message] if args.key?(:status_message)
580
+ @target = args[:target] if args.key?(:target)
581
+ @verb = args[:verb] if args.key?(:verb)
582
+ end
583
+ end
584
+
585
+ # An Identity and Access Management (IAM) policy, which specifies access
586
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
587
+ # A `binding` binds one or more `members` to a single `role`. Members can be
588
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
589
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
590
+ # role or a user-created custom role. For some types of Google Cloud resources,
591
+ # a `binding` can also specify a `condition`, which is a logical expression that
592
+ # allows access to a resource only if the expression evaluates to `true`. A
593
+ # condition can add constraints based on attributes of the request, the resource,
594
+ # or both. To learn which resources support conditions in their IAM policies,
595
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
596
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
597
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
598
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
599
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
600
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
601
+ # title": "expirable access", "description": "Does not grant access after Sep
602
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
603
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
604
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
605
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
606
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
607
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
608
+ # description: Does not grant access after Sep 2020 expression: request.time <
609
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
610
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
611
+ # google.com/iam/docs/).
612
+ class Policy
613
+ include Google::Apis::Core::Hashable
614
+
615
+ # Specifies cloud audit logging configuration for this policy.
616
+ # Corresponds to the JSON property `auditConfigs`
617
+ # @return [Array<Google::Apis::EventarcV1beta1::AuditConfig>]
618
+ attr_accessor :audit_configs
619
+
620
+ # Associates a list of `members` to a `role`. Optionally, may specify a `
621
+ # condition` that determines how and when the `bindings` are applied. Each of
622
+ # the `bindings` must contain at least one member.
623
+ # Corresponds to the JSON property `bindings`
624
+ # @return [Array<Google::Apis::EventarcV1beta1::Binding>]
625
+ attr_accessor :bindings
626
+
627
+ # `etag` is used for optimistic concurrency control as a way to help prevent
628
+ # simultaneous updates of a policy from overwriting each other. It is strongly
629
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
630
+ # to perform policy updates in order to avoid race conditions: An `etag` is
631
+ # returned in the response to `getIamPolicy`, and systems are expected to put
632
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
633
+ # applied to the same version of the policy. **Important:** If you use IAM
634
+ # Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
635
+ # If you omit this field, then IAM allows you to overwrite a version `3` policy
636
+ # with a version `1` policy, and all of the conditions in the version `3` policy
637
+ # are lost.
638
+ # Corresponds to the JSON property `etag`
639
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
640
+ # @return [String]
641
+ attr_accessor :etag
642
+
643
+ # Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
644
+ # Requests that specify an invalid value are rejected. Any operation that
645
+ # affects conditional role bindings must specify version `3`. This requirement
646
+ # applies to the following operations: * Getting a policy that includes a
647
+ # conditional role binding * Adding a conditional role binding to a policy *
648
+ # Changing a conditional role binding in a policy * Removing any role binding,
649
+ # with or without a condition, from a policy that includes conditions **
650
+ # Important:** If you use IAM Conditions, you must include the `etag` field
651
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
652
+ # to overwrite a version `3` policy with a version `1` policy, and all of the
653
+ # conditions in the version `3` policy are lost. If a policy does not include
654
+ # any conditions, operations on that policy may specify any valid version or
655
+ # leave the field unset. To learn which resources support conditions in their
656
+ # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
657
+ # conditions/resource-policies).
658
+ # Corresponds to the JSON property `version`
659
+ # @return [Fixnum]
660
+ attr_accessor :version
661
+
662
+ def initialize(**args)
663
+ update!(**args)
664
+ end
665
+
666
+ # Update properties of this object
667
+ def update!(**args)
668
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
669
+ @bindings = args[:bindings] if args.key?(:bindings)
670
+ @etag = args[:etag] if args.key?(:etag)
671
+ @version = args[:version] if args.key?(:version)
672
+ end
673
+ end
674
+
675
+ # Represents a Pub/Sub transport.
676
+ class Pubsub
677
+ include Google::Apis::Core::Hashable
678
+
679
+ # The name of the Pub/Sub subscription created and managed by Eventarc system as
680
+ # a transport for the event delivery. The value must be in the form of `projects/
681
+ # `PROJECT_ID`/subscriptions/`SUBSCRIPTION_NAME`
682
+ # Corresponds to the JSON property `subscription`
683
+ # @return [String]
684
+ attr_accessor :subscription
685
+
686
+ # The name of the Pub/Sub topic created and managed by Eventarc system as a
687
+ # transport for the event delivery. The value must be in the form of `projects/`
688
+ # PROJECT_ID`/topics/`TOPIC_NAME`
689
+ # Corresponds to the JSON property `topic`
690
+ # @return [String]
691
+ attr_accessor :topic
692
+
693
+ def initialize(**args)
694
+ update!(**args)
695
+ end
696
+
697
+ # Update properties of this object
698
+ def update!(**args)
699
+ @subscription = args[:subscription] if args.key?(:subscription)
700
+ @topic = args[:topic] if args.key?(:topic)
701
+ end
702
+ end
703
+
704
+ # Request message for `SetIamPolicy` method.
705
+ class SetIamPolicyRequest
706
+ include Google::Apis::Core::Hashable
707
+
708
+ # An Identity and Access Management (IAM) policy, which specifies access
709
+ # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
710
+ # A `binding` binds one or more `members` to a single `role`. Members can be
711
+ # user accounts, service accounts, Google groups, and domains (such as G Suite).
712
+ # A `role` is a named list of permissions; each `role` can be an IAM predefined
713
+ # role or a user-created custom role. For some types of Google Cloud resources,
714
+ # a `binding` can also specify a `condition`, which is a logical expression that
715
+ # allows access to a resource only if the expression evaluates to `true`. A
716
+ # condition can add constraints based on attributes of the request, the resource,
717
+ # or both. To learn which resources support conditions in their IAM policies,
718
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
719
+ # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
720
+ # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
721
+ # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
722
+ # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
723
+ # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
724
+ # title": "expirable access", "description": "Does not grant access after Sep
725
+ # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
726
+ # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
727
+ # members: - user:mike@example.com - group:admins@example.com - domain:google.
728
+ # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
729
+ # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
730
+ # roles/resourcemanager.organizationViewer condition: title: expirable access
731
+ # description: Does not grant access after Sep 2020 expression: request.time <
732
+ # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
733
+ # description of IAM and its features, see the [IAM documentation](https://cloud.
734
+ # google.com/iam/docs/).
735
+ # Corresponds to the JSON property `policy`
736
+ # @return [Google::Apis::EventarcV1beta1::Policy]
737
+ attr_accessor :policy
738
+
739
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
740
+ # the fields in the mask will be modified. If no mask is provided, the following
741
+ # default mask is used: `paths: "bindings, etag"`
742
+ # Corresponds to the JSON property `updateMask`
743
+ # @return [String]
744
+ attr_accessor :update_mask
745
+
746
+ def initialize(**args)
747
+ update!(**args)
748
+ end
749
+
750
+ # Update properties of this object
751
+ def update!(**args)
752
+ @policy = args[:policy] if args.key?(:policy)
753
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
754
+ end
755
+ end
756
+
757
+ # The `Status` type defines a logical error model that is suitable for different
758
+ # programming environments, including REST APIs and RPC APIs. It is used by [
759
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
760
+ # data: error code, error message, and error details. You can find out more
761
+ # about this error model and how to work with it in the [API Design Guide](https:
762
+ # //cloud.google.com/apis/design/errors).
763
+ class Status
764
+ include Google::Apis::Core::Hashable
765
+
766
+ # The status code, which should be an enum value of google.rpc.Code.
767
+ # Corresponds to the JSON property `code`
768
+ # @return [Fixnum]
769
+ attr_accessor :code
770
+
771
+ # A list of messages that carry the error details. There is a common set of
772
+ # message types for APIs to use.
773
+ # Corresponds to the JSON property `details`
774
+ # @return [Array<Hash<String,Object>>]
775
+ attr_accessor :details
776
+
777
+ # A developer-facing error message, which should be in English. Any user-facing
778
+ # error message should be localized and sent in the google.rpc.Status.details
779
+ # field, or localized by the client.
780
+ # Corresponds to the JSON property `message`
781
+ # @return [String]
782
+ attr_accessor :message
783
+
784
+ def initialize(**args)
785
+ update!(**args)
786
+ end
787
+
788
+ # Update properties of this object
789
+ def update!(**args)
790
+ @code = args[:code] if args.key?(:code)
791
+ @details = args[:details] if args.key?(:details)
792
+ @message = args[:message] if args.key?(:message)
793
+ end
794
+ end
795
+
796
+ # Request message for `TestIamPermissions` method.
797
+ class TestIamPermissionsRequest
798
+ include Google::Apis::Core::Hashable
799
+
800
+ # The set of permissions to check for the `resource`. Permissions with wildcards
801
+ # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
802
+ # Overview](https://cloud.google.com/iam/docs/overview#permissions).
803
+ # Corresponds to the JSON property `permissions`
804
+ # @return [Array<String>]
805
+ attr_accessor :permissions
806
+
807
+ def initialize(**args)
808
+ update!(**args)
809
+ end
810
+
811
+ # Update properties of this object
812
+ def update!(**args)
813
+ @permissions = args[:permissions] if args.key?(:permissions)
814
+ end
815
+ end
816
+
817
+ # Response message for `TestIamPermissions` method.
818
+ class TestIamPermissionsResponse
819
+ include Google::Apis::Core::Hashable
820
+
821
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
822
+ # Corresponds to the JSON property `permissions`
823
+ # @return [Array<String>]
824
+ attr_accessor :permissions
825
+
826
+ def initialize(**args)
827
+ update!(**args)
828
+ end
829
+
830
+ # Update properties of this object
831
+ def update!(**args)
832
+ @permissions = args[:permissions] if args.key?(:permissions)
833
+ end
834
+ end
835
+
836
+ # Represents the transport intermediaries created for the trigger in order to
837
+ # deliver events.
838
+ class Transport
839
+ include Google::Apis::Core::Hashable
840
+
841
+ # Represents a Pub/Sub transport.
842
+ # Corresponds to the JSON property `pubsub`
843
+ # @return [Google::Apis::EventarcV1beta1::Pubsub]
844
+ attr_accessor :pubsub
845
+
846
+ def initialize(**args)
847
+ update!(**args)
848
+ end
849
+
850
+ # Update properties of this object
851
+ def update!(**args)
852
+ @pubsub = args[:pubsub] if args.key?(:pubsub)
853
+ end
854
+ end
855
+
856
+ # A representation of the trigger resource.
857
+ class Trigger
858
+ include Google::Apis::Core::Hashable
859
+
860
+ # Output only. The creation time.
861
+ # Corresponds to the JSON property `createTime`
862
+ # @return [String]
863
+ attr_accessor :create_time
864
+
865
+ # Represents a target of an invocation over HTTP.
866
+ # Corresponds to the JSON property `destination`
867
+ # @return [Google::Apis::EventarcV1beta1::Destination]
868
+ attr_accessor :destination
869
+
870
+ # Output only. This checksum is computed by the server based on the value of
871
+ # other fields, and may be sent only on create requests to ensure the client has
872
+ # an up-to-date value before proceeding.
873
+ # Corresponds to the JSON property `etag`
874
+ # @return [String]
875
+ attr_accessor :etag
876
+
877
+ # Required. The criteria by which events are filtered. Only events that match
878
+ # with this critera will be sent to the destinations.
879
+ # Corresponds to the JSON property `matchingCriteria`
880
+ # @return [Array<Google::Apis::EventarcV1beta1::MatchingCriteria>]
881
+ attr_accessor :matching_criteria
882
+
883
+ # Required. The resource name of the trigger. Must be unique within the location
884
+ # on the project. Format: projects/`project`/locations/`location`/triggers/`
885
+ # trigger`
886
+ # Corresponds to the JSON property `name`
887
+ # @return [String]
888
+ attr_accessor :name
889
+
890
+ # Optional. The IAM service account email associated with the trigger. The
891
+ # service account represents the identity of the trigger. The principal who
892
+ # calls this API must have `iam.serviceAccounts.actAs` permission in the service
893
+ # account. See https://cloud.google.com/iam/docs/understanding-service-accounts?
894
+ # hl=en#sa_common for more information. For Cloud Run destinations, this service
895
+ # account is used to generate identity tokens when invoking the service. See
896
+ # https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-
897
+ # account for information on how to invoke authenticated Cloud Run services. In
898
+ # order to create Audit Log triggers, the service account should also have '
899
+ # eventarc.events.receiveAuditLogV1Written' permission.
900
+ # Corresponds to the JSON property `serviceAccount`
901
+ # @return [String]
902
+ attr_accessor :service_account
903
+
904
+ # Represents the transport intermediaries created for the trigger in order to
905
+ # deliver events.
906
+ # Corresponds to the JSON property `transport`
907
+ # @return [Google::Apis::EventarcV1beta1::Transport]
908
+ attr_accessor :transport
909
+
910
+ # Output only. The last-modified time.
911
+ # Corresponds to the JSON property `updateTime`
912
+ # @return [String]
913
+ attr_accessor :update_time
914
+
915
+ def initialize(**args)
916
+ update!(**args)
917
+ end
918
+
919
+ # Update properties of this object
920
+ def update!(**args)
921
+ @create_time = args[:create_time] if args.key?(:create_time)
922
+ @destination = args[:destination] if args.key?(:destination)
923
+ @etag = args[:etag] if args.key?(:etag)
924
+ @matching_criteria = args[:matching_criteria] if args.key?(:matching_criteria)
925
+ @name = args[:name] if args.key?(:name)
926
+ @service_account = args[:service_account] if args.key?(:service_account)
927
+ @transport = args[:transport] if args.key?(:transport)
928
+ @update_time = args[:update_time] if args.key?(:update_time)
929
+ end
930
+ end
931
+ end
932
+ end
933
+ end