google-api-client 0.42.1 → 0.42.2

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 (201) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +76 -0
  3. data/generated/google/apis/admob_v1.rb +1 -1
  4. data/generated/google/apis/admob_v1/classes.rb +3 -1
  5. data/generated/google/apis/apigee_v1.rb +1 -1
  6. data/generated/google/apis/apigee_v1/classes.rb +6 -12
  7. data/generated/google/apis/apigee_v1/representations.rb +1 -2
  8. data/generated/google/apis/apigee_v1/service.rb +18 -5
  9. data/generated/google/apis/appengine_v1.rb +1 -1
  10. data/generated/google/apis/appengine_v1/service.rb +6 -3
  11. data/generated/google/apis/appengine_v1beta.rb +1 -1
  12. data/generated/google/apis/appengine_v1beta/service.rb +6 -2
  13. data/generated/google/apis/appsmarket_v2.rb +1 -1
  14. data/generated/google/apis/bigquery_v2.rb +1 -1
  15. data/generated/google/apis/bigquery_v2/classes.rb +198 -3
  16. data/generated/google/apis/bigquery_v2/representations.rb +70 -0
  17. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  18. data/generated/google/apis/bigtableadmin_v1/classes.rb +267 -0
  19. data/generated/google/apis/bigtableadmin_v1/representations.rb +100 -0
  20. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  21. data/generated/google/apis/bigtableadmin_v2/classes.rb +355 -0
  22. data/generated/google/apis/bigtableadmin_v2/representations.rb +146 -0
  23. data/generated/google/apis/bigtableadmin_v2/service.rb +298 -0
  24. data/generated/google/apis/books_v1.rb +1 -1
  25. data/generated/google/apis/books_v1/classes.rb +140 -159
  26. data/generated/google/apis/books_v1/service.rb +47 -49
  27. data/generated/google/apis/chat_v1.rb +1 -1
  28. data/generated/google/apis/chat_v1/classes.rb +19 -0
  29. data/generated/google/apis/chat_v1/representations.rb +13 -0
  30. data/generated/google/apis/chat_v1/service.rb +39 -0
  31. data/generated/google/apis/chromeuxreport_v1.rb +1 -1
  32. data/generated/google/apis/chromeuxreport_v1/classes.rb +22 -0
  33. data/generated/google/apis/chromeuxreport_v1/representations.rb +2 -0
  34. data/generated/google/apis/{cloudfunctions_v1beta2.rb → cloudasset_v1p5beta1.rb} +9 -9
  35. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +1537 -0
  36. data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +399 -0
  37. data/generated/google/apis/cloudasset_v1p5beta1/service.rb +129 -0
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  41. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  42. data/generated/google/apis/cloudfunctions_v1/classes.rb +0 -45
  43. data/generated/google/apis/cloudfunctions_v1/representations.rb +0 -17
  44. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  45. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +503 -754
  46. data/generated/google/apis/cloudresourcemanager_v1/service.rb +198 -249
  47. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +258 -429
  49. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +136 -178
  50. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +258 -414
  52. data/generated/google/apis/cloudresourcemanager_v2/service.rb +96 -129
  53. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +258 -414
  55. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +96 -129
  56. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  57. data/generated/google/apis/cloudscheduler_v1/classes.rb +11 -0
  58. data/generated/google/apis/cloudscheduler_v1/representations.rb +1 -0
  59. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  60. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +11 -0
  61. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +1 -0
  62. data/generated/google/apis/cloudshell_v1.rb +1 -1
  63. data/generated/google/apis/cloudshell_v1/classes.rb +2 -2
  64. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  65. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -5
  66. data/generated/google/apis/content_v2.rb +1 -1
  67. data/generated/google/apis/content_v2/classes.rb +6 -0
  68. data/generated/google/apis/content_v2/representations.rb +1 -0
  69. data/generated/google/apis/content_v2_1.rb +1 -1
  70. data/generated/google/apis/content_v2_1/classes.rb +6 -0
  71. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  72. data/generated/google/apis/customsearch_v1.rb +1 -1
  73. data/generated/google/apis/customsearch_v1/classes.rb +14 -10
  74. data/generated/google/apis/customsearch_v1/service.rb +6 -6
  75. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  76. data/generated/google/apis/datacatalog_v1beta1/classes.rb +380 -569
  77. data/generated/google/apis/datacatalog_v1beta1/service.rb +319 -440
  78. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  79. data/generated/google/apis/dataflow_v1b3/classes.rb +2 -1
  80. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  81. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  82. data/generated/google/apis/dfareporting_v3_4/classes.rb +421 -0
  83. data/generated/google/apis/dfareporting_v3_4/representations.rb +182 -0
  84. data/generated/google/apis/dialogflow_v2.rb +1 -1
  85. data/generated/google/apis/dialogflow_v2/classes.rb +148 -35
  86. data/generated/google/apis/dialogflow_v2/representations.rb +15 -0
  87. data/generated/google/apis/dialogflow_v2/service.rb +4 -0
  88. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  89. data/generated/google/apis/dialogflow_v2beta1/classes.rb +164 -36
  90. data/generated/google/apis/dialogflow_v2beta1/representations.rb +15 -0
  91. data/generated/google/apis/dialogflow_v2beta1/service.rb +8 -0
  92. data/generated/google/apis/displayvideo_v1.rb +7 -1
  93. data/generated/google/apis/displayvideo_v1/classes.rb +1666 -1726
  94. data/generated/google/apis/displayvideo_v1/representations.rb +264 -0
  95. data/generated/google/apis/displayvideo_v1/service.rb +1173 -926
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/doubleclicksearch_v2/classes.rb +109 -126
  98. data/generated/google/apis/doubleclicksearch_v2/service.rb +3 -4
  99. data/generated/google/apis/fcm_v1.rb +1 -1
  100. data/generated/google/apis/fcm_v1/classes.rb +245 -393
  101. data/generated/google/apis/fcm_v1/service.rb +5 -6
  102. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  103. data/generated/google/apis/firebase_v1beta1/classes.rb +10 -16
  104. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  105. data/generated/google/apis/firebaseml_v1beta2/classes.rb +9 -0
  106. data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -0
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_configuration_v1configuration/service.rb +2 -2
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_management_v1management/service.rb +2 -2
  111. data/generated/google/apis/games_v1.rb +1 -1
  112. data/generated/google/apis/games_v1/classes.rb +1 -1
  113. data/generated/google/apis/games_v1/service.rb +2 -2
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/classes.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +2 -1
  117. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +4 -1
  118. data/generated/google/apis/monitoring_v1.rb +1 -1
  119. data/generated/google/apis/monitoring_v1/classes.rb +2 -1
  120. data/generated/google/apis/monitoring_v3.rb +1 -1
  121. data/generated/google/apis/monitoring_v3/classes.rb +5 -4
  122. data/generated/google/apis/monitoring_v3/service.rb +5 -4
  123. data/generated/google/apis/osconfig_v1.rb +1 -1
  124. data/generated/google/apis/osconfig_v1/classes.rb +75 -0
  125. data/generated/google/apis/osconfig_v1/representations.rb +35 -0
  126. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  127. data/generated/google/apis/osconfig_v1beta/classes.rb +75 -0
  128. data/generated/google/apis/osconfig_v1beta/representations.rb +35 -0
  129. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  130. data/generated/google/apis/people_v1.rb +1 -1
  131. data/generated/google/apis/people_v1/classes.rb +243 -397
  132. data/generated/google/apis/people_v1/service.rb +156 -384
  133. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  134. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +0 -73
  135. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +0 -32
  136. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +0 -477
  137. data/generated/google/apis/pubsub_v1.rb +1 -1
  138. data/generated/google/apis/pubsub_v1/classes.rb +21 -0
  139. data/generated/google/apis/pubsub_v1/representations.rb +2 -0
  140. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  141. data/generated/google/apis/redis_v1.rb +1 -1
  142. data/generated/google/apis/redis_v1/classes.rb +397 -0
  143. data/generated/google/apis/redis_v1/representations.rb +139 -0
  144. data/generated/google/apis/redis_v1beta1.rb +1 -1
  145. data/generated/google/apis/redis_v1beta1/classes.rb +397 -0
  146. data/generated/google/apis/redis_v1beta1/representations.rb +139 -0
  147. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  148. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  149. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  150. data/generated/google/apis/run_v1.rb +1 -1
  151. data/generated/google/apis/run_v1/classes.rb +835 -1248
  152. data/generated/google/apis/run_v1/service.rb +195 -245
  153. data/generated/google/apis/run_v1alpha1.rb +1 -1
  154. data/generated/google/apis/run_v1alpha1/classes.rb +934 -1331
  155. data/generated/google/apis/run_v1alpha1/service.rb +321 -377
  156. data/generated/google/apis/run_v1beta1.rb +1 -1
  157. data/generated/google/apis/run_v1beta1/classes.rb +209 -276
  158. data/generated/google/apis/run_v1beta1/service.rb +16 -18
  159. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  160. data/generated/google/apis/sasportal_v1alpha1/classes.rb +0 -73
  161. data/generated/google/apis/sasportal_v1alpha1/representations.rb +0 -32
  162. data/generated/google/apis/sasportal_v1alpha1/service.rb +0 -477
  163. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  164. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +2 -2
  165. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +7 -7
  166. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  167. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +1 -1
  168. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  169. data/generated/google/apis/servicenetworking_v1/classes.rb +1 -1
  170. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  171. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -1
  172. data/generated/google/apis/serviceusage_v1.rb +1 -1
  173. data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
  174. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  175. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
  176. data/generated/google/apis/spanner_v1.rb +1 -1
  177. data/generated/google/apis/sql_v1beta4.rb +1 -1
  178. data/generated/google/apis/sql_v1beta4/classes.rb +207 -200
  179. data/generated/google/apis/sql_v1beta4/representations.rb +2 -1
  180. data/generated/google/apis/sql_v1beta4/service.rb +2 -2
  181. data/generated/google/apis/testing_v1.rb +1 -1
  182. data/generated/google/apis/testing_v1/classes.rb +63 -0
  183. data/generated/google/apis/testing_v1/representations.rb +32 -0
  184. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  185. data/generated/google/apis/toolresults_v1beta3/classes.rb +9 -0
  186. data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
  187. data/generated/google/apis/toolresults_v1beta3/service.rb +498 -498
  188. data/generated/google/apis/webfonts_v1.rb +1 -1
  189. data/generated/google/apis/webfonts_v1/service.rb +2 -2
  190. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  191. data/generated/google/apis/youtube_partner_v1/classes.rb +637 -761
  192. data/generated/google/apis/youtube_partner_v1/service.rb +511 -651
  193. data/generated/google/apis/youtube_v3.rb +1 -1
  194. data/generated/google/apis/youtube_v3/classes.rb +6 -0
  195. data/generated/google/apis/youtube_v3/representations.rb +1 -0
  196. data/generated/google/apis/youtube_v3/service.rb +32 -32
  197. data/lib/google/apis/version.rb +1 -1
  198. metadata +7 -7
  199. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +0 -848
  200. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +0 -346
  201. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +0 -486
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/youtube/
27
27
  module YoutubeV3
28
28
  VERSION = 'V3'
29
- REVISION = '20200715'
29
+ REVISION = '20200722'
30
30
 
31
31
  # Manage your YouTube account
32
32
  AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'
@@ -7628,6 +7628,11 @@ module Google
7628
7628
  class TestItem
7629
7629
  include Google::Apis::Core::Hashable
7630
7630
 
7631
+ #
7632
+ # Corresponds to the JSON property `gaia`
7633
+ # @return [Fixnum]
7634
+ attr_accessor :gaia
7635
+
7631
7636
  #
7632
7637
  # Corresponds to the JSON property `id`
7633
7638
  # @return [String]
@@ -7644,6 +7649,7 @@ module Google
7644
7649
 
7645
7650
  # Update properties of this object
7646
7651
  def update!(**args)
7652
+ @gaia = args[:gaia] if args.key?(:gaia)
7647
7653
  @id = args[:id] if args.key?(:id)
7648
7654
  @snippet = args[:snippet] if args.key?(:snippet)
7649
7655
  end
@@ -3176,6 +3176,7 @@ module Google
3176
3176
  class TestItem
3177
3177
  # @private
3178
3178
  class Representation < Google::Apis::Core::JsonRepresentation
3179
+ property :gaia, :numeric_string => true, as: 'gaia'
3179
3180
  property :id, as: 'id'
3180
3181
  property :snippet, as: 'snippet', class: Google::Apis::YoutubeV3::TestItemTestItemSnippet, decorator: Google::Apis::YoutubeV3::TestItemTestItemSnippet::Representation
3181
3182
 
@@ -3450,6 +3450,38 @@ module Google
3450
3450
  execute_or_queue_command(command, &block)
3451
3451
  end
3452
3452
 
3453
+ # POST method.
3454
+ # @param [Array<String>, String] part
3455
+ # @param [Google::Apis::YoutubeV3::TestItem] test_item_object
3456
+ # @param [String] fields
3457
+ # Selector specifying which fields to include in a partial response.
3458
+ # @param [String] quota_user
3459
+ # Available to use for quota purposes for server-side applications. Can be any
3460
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3461
+ # @param [Google::Apis::RequestOptions] options
3462
+ # Request-specific options
3463
+ #
3464
+ # @yield [result, err] Result & error if block supplied
3465
+ # @yieldparam result [Google::Apis::YoutubeV3::TestItem] parsed result object
3466
+ # @yieldparam err [StandardError] error object if request failed
3467
+ #
3468
+ # @return [Google::Apis::YoutubeV3::TestItem]
3469
+ #
3470
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3471
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3472
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3473
+ def insert_test(part, test_item_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3474
+ command = make_simple_command(:post, 'youtube/v3/tests', options)
3475
+ command.request_representation = Google::Apis::YoutubeV3::TestItem::Representation
3476
+ command.request_object = test_item_object
3477
+ command.response_representation = Google::Apis::YoutubeV3::TestItem::Representation
3478
+ command.response_class = Google::Apis::YoutubeV3::TestItem
3479
+ command.query['part'] = part unless part.nil?
3480
+ command.query['fields'] = fields unless fields.nil?
3481
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3482
+ execute_or_queue_command(command, &block)
3483
+ end
3484
+
3453
3485
  # Deletes a resource.
3454
3486
  # @param [String] linking_token
3455
3487
  # Delete the partner links with the given linking token.
@@ -4318,38 +4350,6 @@ module Google
4318
4350
  command.query['quotaUser'] = quota_user unless quota_user.nil?
4319
4351
  execute_or_queue_command(command, &block)
4320
4352
  end
4321
-
4322
- # POST method.
4323
- # @param [Google::Apis::YoutubeV3::TestItem] test_item_object
4324
- # @param [Array<String>, String] part
4325
- # @param [String] fields
4326
- # Selector specifying which fields to include in a partial response.
4327
- # @param [String] quota_user
4328
- # Available to use for quota purposes for server-side applications. Can be any
4329
- # arbitrary string assigned to a user, but should not exceed 40 characters.
4330
- # @param [Google::Apis::RequestOptions] options
4331
- # Request-specific options
4332
- #
4333
- # @yield [result, err] Result & error if block supplied
4334
- # @yieldparam result [Google::Apis::YoutubeV3::TestItem] parsed result object
4335
- # @yieldparam err [StandardError] error object if request failed
4336
- #
4337
- # @return [Google::Apis::YoutubeV3::TestItem]
4338
- #
4339
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4340
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4341
- # @raise [Google::Apis::AuthorizationError] Authorization is required
4342
- def create_youtube_v3_test(test_item_object = nil, part: nil, fields: nil, quota_user: nil, options: nil, &block)
4343
- command = make_simple_command(:post, 'youtube/v3/tests', options)
4344
- command.request_representation = Google::Apis::YoutubeV3::TestItem::Representation
4345
- command.request_object = test_item_object
4346
- command.response_representation = Google::Apis::YoutubeV3::TestItem::Representation
4347
- command.response_class = Google::Apis::YoutubeV3::TestItem
4348
- command.query['part'] = part unless part.nil?
4349
- command.query['fields'] = fields unless fields.nil?
4350
- command.query['quotaUser'] = quota_user unless quota_user.nil?
4351
- execute_or_queue_command(command, &block)
4352
- end
4353
4353
 
4354
4354
  protected
4355
4355
 
@@ -17,7 +17,7 @@ require 'open3'
17
17
  module Google
18
18
  module Apis
19
19
  # Client library version
20
- VERSION = '0.42.1'.freeze
20
+ VERSION = '0.42.2'.freeze
21
21
 
22
22
  # Current operating system
23
23
  # @private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.42.1
4
+ version: 0.42.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Bazyl
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-07-20 00:00:00.000000000 Z
14
+ date: 2020-07-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable
@@ -444,6 +444,10 @@ files:
444
444
  - generated/google/apis/cloudasset_v1p4beta1/classes.rb
445
445
  - generated/google/apis/cloudasset_v1p4beta1/representations.rb
446
446
  - generated/google/apis/cloudasset_v1p4beta1/service.rb
447
+ - generated/google/apis/cloudasset_v1p5beta1.rb
448
+ - generated/google/apis/cloudasset_v1p5beta1/classes.rb
449
+ - generated/google/apis/cloudasset_v1p5beta1/representations.rb
450
+ - generated/google/apis/cloudasset_v1p5beta1/service.rb
447
451
  - generated/google/apis/cloudbilling_v1.rb
448
452
  - generated/google/apis/cloudbilling_v1/classes.rb
449
453
  - generated/google/apis/cloudbilling_v1/representations.rb
@@ -472,10 +476,6 @@ files:
472
476
  - generated/google/apis/cloudfunctions_v1/classes.rb
473
477
  - generated/google/apis/cloudfunctions_v1/representations.rb
474
478
  - generated/google/apis/cloudfunctions_v1/service.rb
475
- - generated/google/apis/cloudfunctions_v1beta2.rb
476
- - generated/google/apis/cloudfunctions_v1beta2/classes.rb
477
- - generated/google/apis/cloudfunctions_v1beta2/representations.rb
478
- - generated/google/apis/cloudfunctions_v1beta2/service.rb
479
479
  - generated/google/apis/cloudidentity_v1.rb
480
480
  - generated/google/apis/cloudidentity_v1/classes.rb
481
481
  - generated/google/apis/cloudidentity_v1/representations.rb
@@ -1416,7 +1416,7 @@ homepage: https://github.com/google/google-api-ruby-client
1416
1416
  licenses:
1417
1417
  - Apache-2.0
1418
1418
  metadata:
1419
- documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.42.1
1419
+ documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.42.2
1420
1420
  post_install_message:
1421
1421
  rdoc_options: []
1422
1422
  require_paths:
@@ -1,848 +0,0 @@
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 CloudfunctionsV1beta2
24
-
25
- # Request for the `CallFunction` method.
26
- class CallFunctionRequest
27
- include Google::Apis::Core::Hashable
28
-
29
- # Required. Input to be passed to the function.
30
- # Corresponds to the JSON property `data`
31
- # @return [String]
32
- attr_accessor :data
33
-
34
- def initialize(**args)
35
- update!(**args)
36
- end
37
-
38
- # Update properties of this object
39
- def update!(**args)
40
- @data = args[:data] if args.key?(:data)
41
- end
42
- end
43
-
44
- # Response of `CallFunction` method.
45
- class CallFunctionResponse
46
- include Google::Apis::Core::Hashable
47
-
48
- # Either system or user-function generated error. Set if execution
49
- # was not successful.
50
- # Corresponds to the JSON property `error`
51
- # @return [String]
52
- attr_accessor :error
53
-
54
- # Execution id of function invocation.
55
- # Corresponds to the JSON property `executionId`
56
- # @return [String]
57
- attr_accessor :execution_id
58
-
59
- # Result populated for successful execution of synchronous function. Will
60
- # not be populated if function does not return a result through context.
61
- # Corresponds to the JSON property `result`
62
- # @return [String]
63
- attr_accessor :result
64
-
65
- def initialize(**args)
66
- update!(**args)
67
- end
68
-
69
- # Update properties of this object
70
- def update!(**args)
71
- @error = args[:error] if args.key?(:error)
72
- @execution_id = args[:execution_id] if args.key?(:execution_id)
73
- @result = args[:result] if args.key?(:result)
74
- end
75
- end
76
-
77
- # Describes a Cloud Function that contains user computation executed in
78
- # response to an event. It encapsulate function and triggers configurations.
79
- class CloudFunction
80
- include Google::Apis::Core::Hashable
81
-
82
- # The amount of memory in MB available for a function.
83
- # Defaults to 256MB.
84
- # Corresponds to the JSON property `availableMemoryMb`
85
- # @return [Fixnum]
86
- attr_accessor :available_memory_mb
87
-
88
- # The name of the function (as defined in source code) that will be
89
- # executed. Defaults to the resource name suffix, if not specified. For
90
- # backward compatibility, if function with given name is not found, then the
91
- # system will try to use function named "function".
92
- # For Node.js this is name of a function exported by the module specified
93
- # in `source_location`.
94
- # Corresponds to the JSON property `entryPoint`
95
- # @return [String]
96
- attr_accessor :entry_point
97
-
98
- # Environment variables that shall be available during function execution.
99
- # Corresponds to the JSON property `environmentVariables`
100
- # @return [Hash<String,String>]
101
- attr_accessor :environment_variables
102
-
103
- # Describes EventTrigger, used to request events be sent from another
104
- # service.
105
- # Corresponds to the JSON property `eventTrigger`
106
- # @return [Google::Apis::CloudfunctionsV1beta2::EventTrigger]
107
- attr_accessor :event_trigger
108
-
109
- # Describes HTTPSTrigger, could be used to connect web hooks to function.
110
- # Corresponds to the JSON property `httpsTrigger`
111
- # @return [Google::Apis::CloudfunctionsV1beta2::HttpsTrigger]
112
- attr_accessor :https_trigger
113
-
114
- # Labels associated with this Cloud Function.
115
- # Corresponds to the JSON property `labels`
116
- # @return [Hash<String,String>]
117
- attr_accessor :labels
118
-
119
- # Output only. Name of the most recent operation modifying the function. If
120
- # the function status is `DEPLOYING` or `DELETING`, then it points to the
121
- # active operation.
122
- # Corresponds to the JSON property `latestOperation`
123
- # @return [String]
124
- attr_accessor :latest_operation
125
-
126
- # The limit on the maximum number of function instances that may coexist at a
127
- # given time.
128
- # Corresponds to the JSON property `maxInstances`
129
- # @return [Fixnum]
130
- attr_accessor :max_instances
131
-
132
- # A user-defined name of the function. Function names must be unique
133
- # globally and match pattern `projects/*/locations/*/functions/*`
134
- # Corresponds to the JSON property `name`
135
- # @return [String]
136
- attr_accessor :name
137
-
138
- # The VPC Network that this cloud function can connect to. It can be
139
- # either the fully-qualified URI, or the short name of the network resource.
140
- # If the short network name is used, the network must belong to the same
141
- # project. Otherwise, it must belong to a project within the same
142
- # organization. The format of this field is either
143
- # `projects/`project`/global/networks/`network`` or ``network``, where
144
- # `project` is a project id where the network is defined, and `network` is
145
- # the short name of the network.
146
- # This field is mutually exclusive with `vpc_connector` and will be replaced
147
- # by it.
148
- # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
149
- # more information on connecting Cloud projects.
150
- # Corresponds to the JSON property `network`
151
- # @return [String]
152
- attr_accessor :network
153
-
154
- # The runtime in which to run the function. Required when deploying a new
155
- # function, optional when updating an existing function. For a complete
156
- # list of possible choices, see the
157
- # [`gcloud` command
158
- # reference](/sdk/gcloud/reference/functions/deploy#--runtime).
159
- # Corresponds to the JSON property `runtime`
160
- # @return [String]
161
- attr_accessor :runtime
162
-
163
- # The email of the function's service account. If empty, defaults to
164
- # ``project_id`@appspot.gserviceaccount.com`.
165
- # Corresponds to the JSON property `serviceAccount`
166
- # @return [String]
167
- attr_accessor :service_account
168
-
169
- # The Google Cloud Storage URL, starting with gs://, pointing to the zip
170
- # archive which contains the function.
171
- # Corresponds to the JSON property `sourceArchiveUrl`
172
- # @return [String]
173
- attr_accessor :source_archive_url
174
-
175
- # Describes the location of the function source in a remote repository.
176
- # Corresponds to the JSON property `sourceRepository`
177
- # @return [Google::Apis::CloudfunctionsV1beta2::SourceRepository]
178
- attr_accessor :source_repository
179
-
180
- # The URL pointing to the hosted repository where the function is defined.
181
- # There are supported Cloud Source Repository URLs in the following
182
- # formats:
183
- # To refer to a specific commit:
184
- # `https://source.developers.google.com/projects/*/repos/*/revisions/*/paths/*`
185
- # To refer to a moveable alias (branch):
186
- # `https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/
187
- # paths/*`
188
- # In particular, to refer to HEAD use `master` moveable alias.
189
- # To refer to a specific fixed alias (tag):
190
- # `https://source.developers.google.com/projects/*/repos/*/fixed-aliases/*/paths/
191
- # *`
192
- # You may omit `paths/*` if you want to use the main directory.
193
- # Corresponds to the JSON property `sourceRepositoryUrl`
194
- # @return [String]
195
- attr_accessor :source_repository_url
196
-
197
- # The Google Cloud Storage signed URL used for source uploading, generated
198
- # by google.cloud.functions.v1beta2.GenerateUploadUrl
199
- # Corresponds to the JSON property `sourceUploadUrl`
200
- # @return [String]
201
- attr_accessor :source_upload_url
202
-
203
- # Output only. Status of the function deployment.
204
- # Corresponds to the JSON property `status`
205
- # @return [String]
206
- attr_accessor :status
207
-
208
- # The function execution timeout. Execution is considered failed and
209
- # can be terminated if the function is not completed at the end of the
210
- # timeout period. Defaults to 60 seconds.
211
- # Corresponds to the JSON property `timeout`
212
- # @return [String]
213
- attr_accessor :timeout
214
-
215
- # Output only. The last update timestamp of a Cloud Function.
216
- # Corresponds to the JSON property `updateTime`
217
- # @return [String]
218
- attr_accessor :update_time
219
-
220
- # Output only. The version identifier of the Cloud Function. Each deployment
221
- # attempt
222
- # results in a new version of a function being created.
223
- # Corresponds to the JSON property `versionId`
224
- # @return [Fixnum]
225
- attr_accessor :version_id
226
-
227
- # The VPC Network Connector that this cloud function can connect to. It can
228
- # be either the fully-qualified URI, or the short name of the network
229
- # connector resource. The format of this field is
230
- # `projects/*/locations/*/connectors/*`
231
- # This field is mutually exclusive with `network` field and will eventually
232
- # replace it.
233
- # See [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for
234
- # more information on connecting Cloud projects.
235
- # Corresponds to the JSON property `vpcConnector`
236
- # @return [String]
237
- attr_accessor :vpc_connector
238
-
239
- def initialize(**args)
240
- update!(**args)
241
- end
242
-
243
- # Update properties of this object
244
- def update!(**args)
245
- @available_memory_mb = args[:available_memory_mb] if args.key?(:available_memory_mb)
246
- @entry_point = args[:entry_point] if args.key?(:entry_point)
247
- @environment_variables = args[:environment_variables] if args.key?(:environment_variables)
248
- @event_trigger = args[:event_trigger] if args.key?(:event_trigger)
249
- @https_trigger = args[:https_trigger] if args.key?(:https_trigger)
250
- @labels = args[:labels] if args.key?(:labels)
251
- @latest_operation = args[:latest_operation] if args.key?(:latest_operation)
252
- @max_instances = args[:max_instances] if args.key?(:max_instances)
253
- @name = args[:name] if args.key?(:name)
254
- @network = args[:network] if args.key?(:network)
255
- @runtime = args[:runtime] if args.key?(:runtime)
256
- @service_account = args[:service_account] if args.key?(:service_account)
257
- @source_archive_url = args[:source_archive_url] if args.key?(:source_archive_url)
258
- @source_repository = args[:source_repository] if args.key?(:source_repository)
259
- @source_repository_url = args[:source_repository_url] if args.key?(:source_repository_url)
260
- @source_upload_url = args[:source_upload_url] if args.key?(:source_upload_url)
261
- @status = args[:status] if args.key?(:status)
262
- @timeout = args[:timeout] if args.key?(:timeout)
263
- @update_time = args[:update_time] if args.key?(:update_time)
264
- @version_id = args[:version_id] if args.key?(:version_id)
265
- @vpc_connector = args[:vpc_connector] if args.key?(:vpc_connector)
266
- end
267
- end
268
-
269
- # Describes EventTrigger, used to request events be sent from another
270
- # service.
271
- class EventTrigger
272
- include Google::Apis::Core::Hashable
273
-
274
- # `event_type` names contain the service that is sending an event and the
275
- # kind of event that was fired. Must be of the form
276
- # `providers/*/eventTypes/*` e.g. Directly handle a Message published to
277
- # Google Cloud Pub/Sub `providers/cloud.pubsub/eventTypes/topic.publish`.
278
- # Handle an object changing in Google Cloud Storage:
279
- # `providers/cloud.storage/eventTypes/object.change`
280
- # Handle a write to the Firebase Realtime Database:
281
- # `providers/google.firebase.database/eventTypes/ref.write`
282
- # Corresponds to the JSON property `eventType`
283
- # @return [String]
284
- attr_accessor :event_type
285
-
286
- # Describes the policy in case of function's execution failure.
287
- # If empty, then defaults to ignoring failures (i.e. not retrying them).
288
- # Corresponds to the JSON property `failurePolicy`
289
- # @return [Google::Apis::CloudfunctionsV1beta2::FailurePolicy]
290
- attr_accessor :failure_policy
291
-
292
- # Which instance of the source's service should send events. E.g. for Pub/Sub
293
- # this would be a Pub/Sub topic at `projects/*/topics/*`. For Google Cloud
294
- # Storage this would be a bucket at `projects/*/buckets/*`. For any source
295
- # that only supports one instance per-project, this should be the name of the
296
- # project (`projects/*`)
297
- # Corresponds to the JSON property `resource`
298
- # @return [String]
299
- attr_accessor :resource
300
-
301
- # The hostname of the service that should be observed.
302
- # If no string is provided, the default service implementing the API will
303
- # be used. For example, `storage.googleapis.com` is the default for all
304
- # event types in the `google.storage` namespace.
305
- # Corresponds to the JSON property `service`
306
- # @return [String]
307
- attr_accessor :service
308
-
309
- def initialize(**args)
310
- update!(**args)
311
- end
312
-
313
- # Update properties of this object
314
- def update!(**args)
315
- @event_type = args[:event_type] if args.key?(:event_type)
316
- @failure_policy = args[:failure_policy] if args.key?(:failure_policy)
317
- @resource = args[:resource] if args.key?(:resource)
318
- @service = args[:service] if args.key?(:service)
319
- end
320
- end
321
-
322
- # Describes the policy in case of function's execution failure.
323
- # If empty, then defaults to ignoring failures (i.e. not retrying them).
324
- class FailurePolicy
325
- include Google::Apis::Core::Hashable
326
-
327
- # Describes the retry policy in case of function's execution failure.
328
- # A function execution will be retried on any failure.
329
- # A failed execution will be retried up to 7 days with an exponential backoff
330
- # (capped at 10 seconds).
331
- # Retried execution is charged as any other execution.
332
- # Corresponds to the JSON property `retry`
333
- # @return [Google::Apis::CloudfunctionsV1beta2::Retry]
334
- attr_accessor :retry
335
-
336
- def initialize(**args)
337
- update!(**args)
338
- end
339
-
340
- # Update properties of this object
341
- def update!(**args)
342
- @retry = args[:retry] if args.key?(:retry)
343
- end
344
- end
345
-
346
- # Request of `GenerateDownloadUrl` method.
347
- class GenerateDownloadUrlRequest
348
- include Google::Apis::Core::Hashable
349
-
350
- # The optional version of function.
351
- # Corresponds to the JSON property `versionId`
352
- # @return [Fixnum]
353
- attr_accessor :version_id
354
-
355
- def initialize(**args)
356
- update!(**args)
357
- end
358
-
359
- # Update properties of this object
360
- def update!(**args)
361
- @version_id = args[:version_id] if args.key?(:version_id)
362
- end
363
- end
364
-
365
- # Response of `GenerateDownloadUrl` method.
366
- class GenerateDownloadUrlResponse
367
- include Google::Apis::Core::Hashable
368
-
369
- # The generated Google Cloud Storage signed URL that should be used for
370
- # function source code download.
371
- # Corresponds to the JSON property `downloadUrl`
372
- # @return [String]
373
- attr_accessor :download_url
374
-
375
- def initialize(**args)
376
- update!(**args)
377
- end
378
-
379
- # Update properties of this object
380
- def update!(**args)
381
- @download_url = args[:download_url] if args.key?(:download_url)
382
- end
383
- end
384
-
385
- # Request of `GenerateUploadUrl` method.
386
- class GenerateUploadUrlRequest
387
- include Google::Apis::Core::Hashable
388
-
389
- def initialize(**args)
390
- update!(**args)
391
- end
392
-
393
- # Update properties of this object
394
- def update!(**args)
395
- end
396
- end
397
-
398
- # Response of `GenerateUploadUrl` method.
399
- class GenerateUploadUrlResponse
400
- include Google::Apis::Core::Hashable
401
-
402
- # The generated Google Cloud Storage signed URL that should be used for a
403
- # function source code upload. The uploaded file should be a zip archive
404
- # which contains a function.
405
- # Corresponds to the JSON property `uploadUrl`
406
- # @return [String]
407
- attr_accessor :upload_url
408
-
409
- def initialize(**args)
410
- update!(**args)
411
- end
412
-
413
- # Update properties of this object
414
- def update!(**args)
415
- @upload_url = args[:upload_url] if args.key?(:upload_url)
416
- end
417
- end
418
-
419
- # Describes HTTPSTrigger, could be used to connect web hooks to function.
420
- class HttpsTrigger
421
- include Google::Apis::Core::Hashable
422
-
423
- # Output only. The deployed url for the function.
424
- # Corresponds to the JSON property `url`
425
- # @return [String]
426
- attr_accessor :url
427
-
428
- def initialize(**args)
429
- update!(**args)
430
- end
431
-
432
- # Update properties of this object
433
- def update!(**args)
434
- @url = args[:url] if args.key?(:url)
435
- end
436
- end
437
-
438
- # Response for the `ListFunctions` method.
439
- class ListFunctionsResponse
440
- include Google::Apis::Core::Hashable
441
-
442
- # The functions that match the request.
443
- # Corresponds to the JSON property `functions`
444
- # @return [Array<Google::Apis::CloudfunctionsV1beta2::CloudFunction>]
445
- attr_accessor :functions
446
-
447
- # If not empty, indicates that there may be more functions that match
448
- # the request; this value should be passed in a new
449
- # google.cloud.functions.v1beta2.ListFunctionsRequest
450
- # to get more functions.
451
- # Corresponds to the JSON property `nextPageToken`
452
- # @return [String]
453
- attr_accessor :next_page_token
454
-
455
- # Locations that could not be reached. The response does not include any
456
- # functions from these locations.
457
- # Corresponds to the JSON property `unreachable`
458
- # @return [Array<String>]
459
- attr_accessor :unreachable
460
-
461
- def initialize(**args)
462
- update!(**args)
463
- end
464
-
465
- # Update properties of this object
466
- def update!(**args)
467
- @functions = args[:functions] if args.key?(:functions)
468
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
469
- @unreachable = args[:unreachable] if args.key?(:unreachable)
470
- end
471
- end
472
-
473
- # The response message for Locations.ListLocations.
474
- class ListLocationsResponse
475
- include Google::Apis::Core::Hashable
476
-
477
- # A list of locations that matches the specified filter in the request.
478
- # Corresponds to the JSON property `locations`
479
- # @return [Array<Google::Apis::CloudfunctionsV1beta2::Location>]
480
- attr_accessor :locations
481
-
482
- # The standard List next-page token.
483
- # Corresponds to the JSON property `nextPageToken`
484
- # @return [String]
485
- attr_accessor :next_page_token
486
-
487
- def initialize(**args)
488
- update!(**args)
489
- end
490
-
491
- # Update properties of this object
492
- def update!(**args)
493
- @locations = args[:locations] if args.key?(:locations)
494
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
495
- end
496
- end
497
-
498
- # The response message for Operations.ListOperations.
499
- class ListOperationsResponse
500
- include Google::Apis::Core::Hashable
501
-
502
- # The standard List next-page token.
503
- # Corresponds to the JSON property `nextPageToken`
504
- # @return [String]
505
- attr_accessor :next_page_token
506
-
507
- # A list of operations that matches the specified filter in the request.
508
- # Corresponds to the JSON property `operations`
509
- # @return [Array<Google::Apis::CloudfunctionsV1beta2::Operation>]
510
- attr_accessor :operations
511
-
512
- def initialize(**args)
513
- update!(**args)
514
- end
515
-
516
- # Update properties of this object
517
- def update!(**args)
518
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
519
- @operations = args[:operations] if args.key?(:operations)
520
- end
521
- end
522
-
523
- # A resource that represents Google Cloud Platform location.
524
- class Location
525
- include Google::Apis::Core::Hashable
526
-
527
- # The friendly name for this location, typically a nearby city name.
528
- # For example, "Tokyo".
529
- # Corresponds to the JSON property `displayName`
530
- # @return [String]
531
- attr_accessor :display_name
532
-
533
- # Cross-service attributes for the location. For example
534
- # `"cloud.googleapis.com/region": "us-east1"`
535
- # Corresponds to the JSON property `labels`
536
- # @return [Hash<String,String>]
537
- attr_accessor :labels
538
-
539
- # The canonical id for this location. For example: `"us-east1"`.
540
- # Corresponds to the JSON property `locationId`
541
- # @return [String]
542
- attr_accessor :location_id
543
-
544
- # Service-specific metadata. For example the available capacity at the given
545
- # location.
546
- # Corresponds to the JSON property `metadata`
547
- # @return [Hash<String,Object>]
548
- attr_accessor :metadata
549
-
550
- # Resource name for the location, which may vary between implementations.
551
- # For example: `"projects/example-project/locations/us-east1"`
552
- # Corresponds to the JSON property `name`
553
- # @return [String]
554
- attr_accessor :name
555
-
556
- def initialize(**args)
557
- update!(**args)
558
- end
559
-
560
- # Update properties of this object
561
- def update!(**args)
562
- @display_name = args[:display_name] if args.key?(:display_name)
563
- @labels = args[:labels] if args.key?(:labels)
564
- @location_id = args[:location_id] if args.key?(:location_id)
565
- @metadata = args[:metadata] if args.key?(:metadata)
566
- @name = args[:name] if args.key?(:name)
567
- end
568
- end
569
-
570
- # This resource represents a long-running operation that is the result of a
571
- # network API call.
572
- class Operation
573
- include Google::Apis::Core::Hashable
574
-
575
- # If the value is `false`, it means the operation is still in progress.
576
- # If `true`, the operation is completed, and either `error` or `response` is
577
- # available.
578
- # Corresponds to the JSON property `done`
579
- # @return [Boolean]
580
- attr_accessor :done
581
- alias_method :done?, :done
582
-
583
- # The `Status` type defines a logical error model that is suitable for
584
- # different programming environments, including REST APIs and RPC APIs. It is
585
- # used by [gRPC](https://github.com/grpc). Each `Status` message contains
586
- # three pieces of data: error code, error message, and error details.
587
- # You can find out more about this error model and how to work with it in the
588
- # [API Design Guide](https://cloud.google.com/apis/design/errors).
589
- # Corresponds to the JSON property `error`
590
- # @return [Google::Apis::CloudfunctionsV1beta2::Status]
591
- attr_accessor :error
592
-
593
- # Service-specific metadata associated with the operation. It typically
594
- # contains progress information and common metadata such as create time.
595
- # Some services might not provide such metadata. Any method that returns a
596
- # long-running operation should document the metadata type, if any.
597
- # Corresponds to the JSON property `metadata`
598
- # @return [Hash<String,Object>]
599
- attr_accessor :metadata
600
-
601
- # The server-assigned name, which is only unique within the same service that
602
- # originally returns it. If you use the default HTTP mapping, the
603
- # `name` should be a resource name ending with `operations/`unique_id``.
604
- # Corresponds to the JSON property `name`
605
- # @return [String]
606
- attr_accessor :name
607
-
608
- # The normal response of the operation in case of success. If the original
609
- # method returns no data on success, such as `Delete`, the response is
610
- # `google.protobuf.Empty`. If the original method is standard
611
- # `Get`/`Create`/`Update`, the response should be the resource. For other
612
- # methods, the response should have the type `XxxResponse`, where `Xxx`
613
- # is the original method name. For example, if the original method name
614
- # is `TakeSnapshot()`, the inferred response type is
615
- # `TakeSnapshotResponse`.
616
- # Corresponds to the JSON property `response`
617
- # @return [Hash<String,Object>]
618
- attr_accessor :response
619
-
620
- def initialize(**args)
621
- update!(**args)
622
- end
623
-
624
- # Update properties of this object
625
- def update!(**args)
626
- @done = args[:done] if args.key?(:done)
627
- @error = args[:error] if args.key?(:error)
628
- @metadata = args[:metadata] if args.key?(:metadata)
629
- @name = args[:name] if args.key?(:name)
630
- @response = args[:response] if args.key?(:response)
631
- end
632
- end
633
-
634
- # Metadata describing an Operation
635
- class OperationMetadataV1
636
- include Google::Apis::Core::Hashable
637
-
638
- # The Cloud Build ID of the function created or updated by an API call.
639
- # This field is only populated for Create and Update operations.
640
- # Corresponds to the JSON property `buildId`
641
- # @return [String]
642
- attr_accessor :build_id
643
-
644
- # The original request that started the operation.
645
- # Corresponds to the JSON property `request`
646
- # @return [Hash<String,Object>]
647
- attr_accessor :request
648
-
649
- # Target of the operation - for example
650
- # projects/project-1/locations/region-1/functions/function-1
651
- # Corresponds to the JSON property `target`
652
- # @return [String]
653
- attr_accessor :target
654
-
655
- # Type of operation.
656
- # Corresponds to the JSON property `type`
657
- # @return [String]
658
- attr_accessor :type
659
-
660
- # The last update timestamp of the operation.
661
- # Corresponds to the JSON property `updateTime`
662
- # @return [String]
663
- attr_accessor :update_time
664
-
665
- # Version id of the function created or updated by an API call.
666
- # This field is only populated for Create and Update operations.
667
- # Corresponds to the JSON property `versionId`
668
- # @return [Fixnum]
669
- attr_accessor :version_id
670
-
671
- def initialize(**args)
672
- update!(**args)
673
- end
674
-
675
- # Update properties of this object
676
- def update!(**args)
677
- @build_id = args[:build_id] if args.key?(:build_id)
678
- @request = args[:request] if args.key?(:request)
679
- @target = args[:target] if args.key?(:target)
680
- @type = args[:type] if args.key?(:type)
681
- @update_time = args[:update_time] if args.key?(:update_time)
682
- @version_id = args[:version_id] if args.key?(:version_id)
683
- end
684
- end
685
-
686
- # Metadata describing an Operation
687
- class OperationMetadataV1Beta2
688
- include Google::Apis::Core::Hashable
689
-
690
- # The original request that started the operation.
691
- # Corresponds to the JSON property `request`
692
- # @return [Hash<String,Object>]
693
- attr_accessor :request
694
-
695
- # Target of the operation - for example
696
- # projects/project-1/locations/region-1/functions/function-1
697
- # Corresponds to the JSON property `target`
698
- # @return [String]
699
- attr_accessor :target
700
-
701
- # Type of operation.
702
- # Corresponds to the JSON property `type`
703
- # @return [String]
704
- attr_accessor :type
705
-
706
- # The last update timestamp of the operation.
707
- # Corresponds to the JSON property `updateTime`
708
- # @return [String]
709
- attr_accessor :update_time
710
-
711
- # Version id of the function created or updated by an API call.
712
- # This field is only populated for Create and Update operations.
713
- # Corresponds to the JSON property `versionId`
714
- # @return [Fixnum]
715
- attr_accessor :version_id
716
-
717
- def initialize(**args)
718
- update!(**args)
719
- end
720
-
721
- # Update properties of this object
722
- def update!(**args)
723
- @request = args[:request] if args.key?(:request)
724
- @target = args[:target] if args.key?(:target)
725
- @type = args[:type] if args.key?(:type)
726
- @update_time = args[:update_time] if args.key?(:update_time)
727
- @version_id = args[:version_id] if args.key?(:version_id)
728
- end
729
- end
730
-
731
- # Describes the retry policy in case of function's execution failure.
732
- # A function execution will be retried on any failure.
733
- # A failed execution will be retried up to 7 days with an exponential backoff
734
- # (capped at 10 seconds).
735
- # Retried execution is charged as any other execution.
736
- class Retry
737
- include Google::Apis::Core::Hashable
738
-
739
- def initialize(**args)
740
- update!(**args)
741
- end
742
-
743
- # Update properties of this object
744
- def update!(**args)
745
- end
746
- end
747
-
748
- # Describes the location of the function source in a remote repository.
749
- class SourceRepository
750
- include Google::Apis::Core::Hashable
751
-
752
- # The name of the branch from which the function should be fetched.
753
- # Corresponds to the JSON property `branch`
754
- # @return [String]
755
- attr_accessor :branch
756
-
757
- # Output only. The id of the revision that was resolved at the moment of
758
- # function creation or update. For example when a user deployed from a
759
- # branch, it will be the revision id of the latest change on this branch at
760
- # that time. If user deployed from revision then this value will be always
761
- # equal to the revision specified by the user.
762
- # Corresponds to the JSON property `deployedRevision`
763
- # @return [String]
764
- attr_accessor :deployed_revision
765
-
766
- # URL to the hosted repository where the function is defined. Only paths in
767
- # https://source.developers.google.com domain are supported. The path should
768
- # contain the name of the repository.
769
- # Corresponds to the JSON property `repositoryUrl`
770
- # @return [String]
771
- attr_accessor :repository_url
772
-
773
- # The id of the revision that captures the state of the repository from
774
- # which the function should be fetched.
775
- # Corresponds to the JSON property `revision`
776
- # @return [String]
777
- attr_accessor :revision
778
-
779
- # The path within the repository where the function is defined. The path
780
- # should point to the directory where Cloud Functions files are located. Use
781
- # "/" if the function is defined directly in the root directory of a
782
- # repository.
783
- # Corresponds to the JSON property `sourcePath`
784
- # @return [String]
785
- attr_accessor :source_path
786
-
787
- # The name of the tag that captures the state of the repository from
788
- # which the function should be fetched.
789
- # Corresponds to the JSON property `tag`
790
- # @return [String]
791
- attr_accessor :tag
792
-
793
- def initialize(**args)
794
- update!(**args)
795
- end
796
-
797
- # Update properties of this object
798
- def update!(**args)
799
- @branch = args[:branch] if args.key?(:branch)
800
- @deployed_revision = args[:deployed_revision] if args.key?(:deployed_revision)
801
- @repository_url = args[:repository_url] if args.key?(:repository_url)
802
- @revision = args[:revision] if args.key?(:revision)
803
- @source_path = args[:source_path] if args.key?(:source_path)
804
- @tag = args[:tag] if args.key?(:tag)
805
- end
806
- end
807
-
808
- # The `Status` type defines a logical error model that is suitable for
809
- # different programming environments, including REST APIs and RPC APIs. It is
810
- # used by [gRPC](https://github.com/grpc). Each `Status` message contains
811
- # three pieces of data: error code, error message, and error details.
812
- # You can find out more about this error model and how to work with it in the
813
- # [API Design Guide](https://cloud.google.com/apis/design/errors).
814
- class Status
815
- include Google::Apis::Core::Hashable
816
-
817
- # The status code, which should be an enum value of google.rpc.Code.
818
- # Corresponds to the JSON property `code`
819
- # @return [Fixnum]
820
- attr_accessor :code
821
-
822
- # A list of messages that carry the error details. There is a common set of
823
- # message types for APIs to use.
824
- # Corresponds to the JSON property `details`
825
- # @return [Array<Hash<String,Object>>]
826
- attr_accessor :details
827
-
828
- # A developer-facing error message, which should be in English. Any
829
- # user-facing error message should be localized and sent in the
830
- # google.rpc.Status.details field, or localized by the client.
831
- # Corresponds to the JSON property `message`
832
- # @return [String]
833
- attr_accessor :message
834
-
835
- def initialize(**args)
836
- update!(**args)
837
- end
838
-
839
- # Update properties of this object
840
- def update!(**args)
841
- @code = args[:code] if args.key?(:code)
842
- @details = args[:details] if args.key?(:details)
843
- @message = args[:message] if args.key?(:message)
844
- end
845
- end
846
- end
847
- end
848
- end