google-api-client 0.33.1 → 0.33.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  4. data/generated/google/apis/accessapproval_v1beta1/classes.rb +11 -0
  5. data/generated/google/apis/accessapproval_v1beta1/representations.rb +1 -0
  6. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  7. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +0 -72
  8. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -32
  9. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +15 -2
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +16 -3
  13. data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
  14. data/generated/google/apis/admin_datatransfer_v1/classes.rb +5 -5
  15. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -2
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/admin_reports_v1/service.rb +6 -3
  18. data/generated/google/apis/appengine_v1.rb +1 -1
  19. data/generated/google/apis/appengine_v1/service.rb +3 -3
  20. data/generated/google/apis/appengine_v1beta.rb +1 -1
  21. data/generated/google/apis/appengine_v1beta/service.rb +3 -3
  22. data/generated/google/apis/bigquery_v2.rb +1 -1
  23. data/generated/google/apis/bigquery_v2/classes.rb +9 -1
  24. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  25. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +1 -1
  26. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  27. data/generated/google/apis/bigtableadmin_v2/classes.rb +62 -29
  28. data/generated/google/apis/civicinfo_v2.rb +1 -1
  29. data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
  30. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  31. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +2 -2
  32. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  33. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +12 -12
  34. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  35. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +4 -8
  36. data/generated/google/apis/cloudresourcemanager_v2/service.rb +11 -13
  37. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  38. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +4 -8
  39. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +11 -13
  40. data/generated/google/apis/cloudshell_v1.rb +1 -1
  41. data/generated/google/apis/cloudshell_v1/classes.rb +6 -0
  42. data/generated/google/apis/cloudshell_v1/representations.rb +1 -0
  43. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  44. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +6 -0
  45. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +1 -0
  46. data/generated/google/apis/container_v1.rb +1 -1
  47. data/generated/google/apis/container_v1/classes.rb +205 -4
  48. data/generated/google/apis/container_v1/representations.rb +85 -0
  49. data/generated/google/apis/container_v1beta1.rb +1 -1
  50. data/generated/google/apis/container_v1beta1/classes.rb +93 -2
  51. data/generated/google/apis/container_v1beta1/representations.rb +18 -0
  52. data/generated/google/apis/docs_v1.rb +1 -1
  53. data/generated/google/apis/docs_v1/classes.rb +112 -0
  54. data/generated/google/apis/docs_v1/representations.rb +60 -0
  55. data/generated/google/apis/drive_v2.rb +1 -1
  56. data/generated/google/apis/drive_v2/classes.rb +2 -1
  57. data/generated/google/apis/fitness_v1.rb +1 -1
  58. data/generated/google/apis/fitness_v1/service.rb +1 -1
  59. data/generated/google/apis/healthcare_v1beta1/service.rb +11 -7
  60. data/generated/google/apis/licensing_v1.rb +4 -4
  61. data/generated/google/apis/licensing_v1/classes.rb +15 -7
  62. data/generated/google/apis/licensing_v1/service.rb +81 -37
  63. data/generated/google/apis/ml_v1.rb +2 -2
  64. data/generated/google/apis/ml_v1/classes.rb +9 -0
  65. data/generated/google/apis/ml_v1/representations.rb +1 -0
  66. data/generated/google/apis/ml_v1/service.rb +1 -1
  67. data/generated/google/apis/oslogin_v1.rb +1 -1
  68. data/generated/google/apis/oslogin_v1/classes.rb +1 -1
  69. data/generated/google/apis/oslogin_v1/service.rb +8 -5
  70. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  71. data/generated/google/apis/oslogin_v1beta/classes.rb +1 -1
  72. data/generated/google/apis/oslogin_v1beta/service.rb +9 -5
  73. data/generated/google/apis/reseller_v1.rb +1 -1
  74. data/generated/google/apis/reseller_v1/service.rb +1 -1
  75. data/generated/google/apis/run_v1alpha1.rb +1 -1
  76. data/generated/google/apis/run_v1alpha1/classes.rb +319 -0
  77. data/generated/google/apis/run_v1alpha1/representations.rb +126 -0
  78. data/generated/google/apis/run_v1alpha1/service.rb +408 -0
  79. data/generated/google/apis/speech_v2beta1.rb +34 -0
  80. data/generated/google/apis/speech_v2beta1/classes.rb +356 -0
  81. data/generated/google/apis/speech_v2beta1/representations.rb +152 -0
  82. data/generated/google/apis/speech_v2beta1/service.rb +138 -0
  83. data/generated/google/apis/sql_v1beta4.rb +1 -1
  84. data/generated/google/apis/sql_v1beta4/classes.rb +63 -0
  85. data/generated/google/apis/sql_v1beta4/representations.rb +32 -0
  86. data/generated/google/apis/sql_v1beta4/service.rb +161 -30
  87. data/generated/google/apis/storage_v1.rb +1 -1
  88. data/generated/google/apis/testing_v1.rb +1 -1
  89. data/generated/google/apis/testing_v1/classes.rb +141 -0
  90. data/generated/google/apis/testing_v1/representations.rb +76 -0
  91. data/generated/google/apis/videointelligence_v1.rb +1 -1
  92. data/generated/google/apis/videointelligence_v1/classes.rb +34 -34
  93. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  94. data/generated/google/apis/videointelligence_v1beta2/classes.rb +34 -34
  95. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  96. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +34 -34
  97. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  98. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +34 -34
  99. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  100. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +34 -34
  101. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  102. data/generated/google/apis/youtube_partner_v1/service.rb +2 -2
  103. data/lib/google/apis/version.rb +1 -1
  104. metadata +6 -2
@@ -58,6 +58,18 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class CloudEventOverrides
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Condition
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
61
73
  class ConfigMapEnvSource
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
@@ -112,6 +124,12 @@ module Google
112
124
  include Google::Apis::Core::JsonObjectSupport
113
125
  end
114
126
 
127
+ class Destination
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
115
133
  class DomainMapping
116
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
135
 
@@ -280,6 +298,12 @@ module Google
280
298
  include Google::Apis::Core::JsonObjectSupport
281
299
  end
282
300
 
301
+ class ListPubSubsResponse
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
283
307
  class ListRevisionsResponse
284
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
309
 
@@ -346,6 +370,24 @@ module Google
346
370
  include Google::Apis::Core::JsonObjectSupport
347
371
  end
348
372
 
373
+ class PubSub
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
379
+ class PubSubSpec
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
385
+ class PubSubStatus
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
349
391
  class Quantity
350
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
393
 
@@ -643,6 +685,25 @@ module Google
643
685
  end
644
686
  end
645
687
 
688
+ class CloudEventOverrides
689
+ # @private
690
+ class Representation < Google::Apis::Core::JsonRepresentation
691
+ hash :extensions, as: 'extensions'
692
+ end
693
+ end
694
+
695
+ class Condition
696
+ # @private
697
+ class Representation < Google::Apis::Core::JsonRepresentation
698
+ property :last_transition_time, as: 'lastTransitionTime'
699
+ property :message, as: 'message'
700
+ property :reason, as: 'reason'
701
+ property :severity, as: 'severity'
702
+ property :status, as: 'status'
703
+ property :type, as: 'type'
704
+ end
705
+ end
706
+
646
707
  class ConfigMapEnvSource
647
708
  # @private
648
709
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -771,6 +832,15 @@ module Google
771
832
  end
772
833
  end
773
834
 
835
+ class Destination
836
+ # @private
837
+ class Representation < Google::Apis::Core::JsonRepresentation
838
+ property :ref, as: 'ref', class: Google::Apis::RunV1alpha1::ObjectReference, decorator: Google::Apis::RunV1alpha1::ObjectReference::Representation
839
+
840
+ property :uri, as: 'uri'
841
+ end
842
+ end
843
+
774
844
  class DomainMapping
775
845
  # @private
776
846
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1057,6 +1127,19 @@ module Google
1057
1127
  end
1058
1128
  end
1059
1129
 
1130
+ class ListPubSubsResponse
1131
+ # @private
1132
+ class Representation < Google::Apis::Core::JsonRepresentation
1133
+ property :api_version, as: 'apiVersion'
1134
+ collection :items, as: 'items', class: Google::Apis::RunV1alpha1::PubSub, decorator: Google::Apis::RunV1alpha1::PubSub::Representation
1135
+
1136
+ property :kind, as: 'kind'
1137
+ property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ListMeta, decorator: Google::Apis::RunV1alpha1::ListMeta::Representation
1138
+
1139
+ collection :unreachable, as: 'unreachable'
1140
+ end
1141
+ end
1142
+
1060
1143
  class ListRevisionsResponse
1061
1144
  # @private
1062
1145
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1201,6 +1284,49 @@ module Google
1201
1284
  end
1202
1285
  end
1203
1286
 
1287
+ class PubSub
1288
+ # @private
1289
+ class Representation < Google::Apis::Core::JsonRepresentation
1290
+ property :api_version, as: 'apiVersion'
1291
+ property :kind, as: 'kind'
1292
+ property :metadata, as: 'metadata', class: Google::Apis::RunV1alpha1::ObjectMeta, decorator: Google::Apis::RunV1alpha1::ObjectMeta::Representation
1293
+
1294
+ property :spec, as: 'spec', class: Google::Apis::RunV1alpha1::PubSubSpec, decorator: Google::Apis::RunV1alpha1::PubSubSpec::Representation
1295
+
1296
+ property :status, as: 'status', class: Google::Apis::RunV1alpha1::PubSubStatus, decorator: Google::Apis::RunV1alpha1::PubSubStatus::Representation
1297
+
1298
+ end
1299
+ end
1300
+
1301
+ class PubSubSpec
1302
+ # @private
1303
+ class Representation < Google::Apis::Core::JsonRepresentation
1304
+ property :ack_deadline, as: 'ackDeadline'
1305
+ property :ce_overrides, as: 'ceOverrides', class: Google::Apis::RunV1alpha1::CloudEventOverrides, decorator: Google::Apis::RunV1alpha1::CloudEventOverrides::Representation
1306
+
1307
+ property :project, as: 'project'
1308
+ property :pubsub_secret, as: 'pubsubSecret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation
1309
+
1310
+ property :retain_acked_messages, as: 'retainAckedMessages'
1311
+ property :retention_duration, as: 'retentionDuration'
1312
+ property :secret, as: 'secret', class: Google::Apis::RunV1alpha1::SecretKeySelector, decorator: Google::Apis::RunV1alpha1::SecretKeySelector::Representation
1313
+
1314
+ property :sink, as: 'sink', class: Google::Apis::RunV1alpha1::Destination, decorator: Google::Apis::RunV1alpha1::Destination::Representation
1315
+
1316
+ property :topic, as: 'topic'
1317
+ end
1318
+ end
1319
+
1320
+ class PubSubStatus
1321
+ # @private
1322
+ class Representation < Google::Apis::Core::JsonRepresentation
1323
+ collection :conditions, as: 'conditions', class: Google::Apis::RunV1alpha1::Condition, decorator: Google::Apis::RunV1alpha1::Condition::Representation
1324
+
1325
+ property :observed_generation, as: 'observedGeneration'
1326
+ property :sink_uri, as: 'sinkUri'
1327
+ end
1328
+ end
1329
+
1204
1330
  class Quantity
1205
1331
  # @private
1206
1332
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -432,6 +432,210 @@ module Google
432
432
  execute_or_queue_command(command, &block)
433
433
  end
434
434
 
435
+ # Creates a new pubsub.
436
+ # @param [String] parent
437
+ # The project ID or project number in which this pubsub should
438
+ # be created.
439
+ # @param [Google::Apis::RunV1alpha1::PubSub] pub_sub_object
440
+ # @param [String] fields
441
+ # Selector specifying which fields to include in a partial response.
442
+ # @param [String] quota_user
443
+ # Available to use for quota purposes for server-side applications. Can be any
444
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
445
+ # @param [Google::Apis::RequestOptions] options
446
+ # Request-specific options
447
+ #
448
+ # @yield [result, err] Result & error if block supplied
449
+ # @yieldparam result [Google::Apis::RunV1alpha1::PubSub] parsed result object
450
+ # @yieldparam err [StandardError] error object if request failed
451
+ #
452
+ # @return [Google::Apis::RunV1alpha1::PubSub]
453
+ #
454
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
455
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
456
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
457
+ def create_namespace_pubsub(parent, pub_sub_object = nil, fields: nil, quota_user: nil, options: nil, &block)
458
+ command = make_simple_command(:post, 'apis/events.cloud.google.com/v1alpha1/{+parent}/pubsubs', options)
459
+ command.request_representation = Google::Apis::RunV1alpha1::PubSub::Representation
460
+ command.request_object = pub_sub_object
461
+ command.response_representation = Google::Apis::RunV1alpha1::PubSub::Representation
462
+ command.response_class = Google::Apis::RunV1alpha1::PubSub
463
+ command.params['parent'] = parent unless parent.nil?
464
+ command.query['fields'] = fields unless fields.nil?
465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
466
+ execute_or_queue_command(command, &block)
467
+ end
468
+
469
+ # Rpc to delete a pubsub.
470
+ # @param [String] name
471
+ # The name of the pubsub being deleted. If needed, replace
472
+ # `namespace_id` with the project ID.
473
+ # @param [String] api_version
474
+ # Cloud Run currently ignores this parameter.
475
+ # @param [String] kind
476
+ # Cloud Run currently ignores this parameter.
477
+ # @param [String] propagation_policy
478
+ # Specifies the propagation policy of delete. Cloud Run currently ignores
479
+ # this setting, and deletes in the background. Please see
480
+ # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for
481
+ # more information.
482
+ # @param [String] fields
483
+ # Selector specifying which fields to include in a partial response.
484
+ # @param [String] quota_user
485
+ # Available to use for quota purposes for server-side applications. Can be any
486
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
487
+ # @param [Google::Apis::RequestOptions] options
488
+ # Request-specific options
489
+ #
490
+ # @yield [result, err] Result & error if block supplied
491
+ # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
492
+ # @yieldparam err [StandardError] error object if request failed
493
+ #
494
+ # @return [Google::Apis::RunV1alpha1::Empty]
495
+ #
496
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
497
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
498
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
499
+ def delete_namespace_pubsub(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
500
+ command = make_simple_command(:delete, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
501
+ command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
502
+ command.response_class = Google::Apis::RunV1alpha1::Empty
503
+ command.params['name'] = name unless name.nil?
504
+ command.query['apiVersion'] = api_version unless api_version.nil?
505
+ command.query['kind'] = kind unless kind.nil?
506
+ command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
507
+ command.query['fields'] = fields unless fields.nil?
508
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
509
+ execute_or_queue_command(command, &block)
510
+ end
511
+
512
+ # Rpc to get information about a pubsub.
513
+ # @param [String] name
514
+ # The name of the pubsub being retrieved. If needed, replace
515
+ # `namespace_id` with the project ID.
516
+ # @param [String] fields
517
+ # Selector specifying which fields to include in a partial response.
518
+ # @param [String] quota_user
519
+ # Available to use for quota purposes for server-side applications. Can be any
520
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
521
+ # @param [Google::Apis::RequestOptions] options
522
+ # Request-specific options
523
+ #
524
+ # @yield [result, err] Result & error if block supplied
525
+ # @yieldparam result [Google::Apis::RunV1alpha1::PubSub] parsed result object
526
+ # @yieldparam err [StandardError] error object if request failed
527
+ #
528
+ # @return [Google::Apis::RunV1alpha1::PubSub]
529
+ #
530
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
531
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
532
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
533
+ def get_namespace_pubsub(name, fields: nil, quota_user: nil, options: nil, &block)
534
+ command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
535
+ command.response_representation = Google::Apis::RunV1alpha1::PubSub::Representation
536
+ command.response_class = Google::Apis::RunV1alpha1::PubSub
537
+ command.params['name'] = name unless name.nil?
538
+ command.query['fields'] = fields unless fields.nil?
539
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
540
+ execute_or_queue_command(command, &block)
541
+ end
542
+
543
+ # Rpc to list pubsubs.
544
+ # @param [String] parent
545
+ # The project ID or project number from which the pubsubs should
546
+ # be listed.
547
+ # @param [String] continue
548
+ # Optional encoded string to continue paging.
549
+ # @param [String] field_selector
550
+ # Allows to filter resources based on a specific value for a field name.
551
+ # Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
552
+ # Not currently used by Cloud Run.
553
+ # @param [Boolean] include_uninitialized
554
+ # Not currently used by Cloud Run.
555
+ # @param [String] label_selector
556
+ # Allows to filter resources based on a label. Supported operations are
557
+ # =, !=, exists, in, and notIn.
558
+ # @param [Fixnum] limit
559
+ # The maximum number of records that should be returned.
560
+ # @param [String] resource_version
561
+ # The baseline resource version from which the list or watch operation should
562
+ # start. Not currently used by Cloud Run.
563
+ # @param [Boolean] watch
564
+ # Flag that indicates that the client expects to watch this resource as well.
565
+ # Not currently used by Cloud Run.
566
+ # @param [String] fields
567
+ # Selector specifying which fields to include in a partial response.
568
+ # @param [String] quota_user
569
+ # Available to use for quota purposes for server-side applications. Can be any
570
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
571
+ # @param [Google::Apis::RequestOptions] options
572
+ # Request-specific options
573
+ #
574
+ # @yield [result, err] Result & error if block supplied
575
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListPubSubsResponse] parsed result object
576
+ # @yieldparam err [StandardError] error object if request failed
577
+ #
578
+ # @return [Google::Apis::RunV1alpha1::ListPubSubsResponse]
579
+ #
580
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
581
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
582
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
583
+ def list_namespace_pubsubs(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
584
+ command = make_simple_command(:get, 'apis/events.cloud.google.com/v1alpha1/{+parent}/pubsubs', options)
585
+ command.response_representation = Google::Apis::RunV1alpha1::ListPubSubsResponse::Representation
586
+ command.response_class = Google::Apis::RunV1alpha1::ListPubSubsResponse
587
+ command.params['parent'] = parent unless parent.nil?
588
+ command.query['continue'] = continue unless continue.nil?
589
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
590
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
591
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
592
+ command.query['limit'] = limit unless limit.nil?
593
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
594
+ command.query['watch'] = watch unless watch.nil?
595
+ command.query['fields'] = fields unless fields.nil?
596
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
597
+ execute_or_queue_command(command, &block)
598
+ end
599
+
600
+ # Rpc to replace a pubsub.
601
+ # Only the spec and metadata labels and annotations are modifiable. After
602
+ # the Update request, Cloud Run will work to make the 'status'
603
+ # match the requested 'spec'.
604
+ # May provide metadata.resourceVersion to enforce update from last read for
605
+ # optimistic concurrency control.
606
+ # @param [String] name
607
+ # The name of the pubsub being retrieved. If needed, replace
608
+ # `namespace_id` with the project ID.
609
+ # @param [Google::Apis::RunV1alpha1::PubSub] pub_sub_object
610
+ # @param [String] fields
611
+ # Selector specifying which fields to include in a partial response.
612
+ # @param [String] quota_user
613
+ # Available to use for quota purposes for server-side applications. Can be any
614
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
615
+ # @param [Google::Apis::RequestOptions] options
616
+ # Request-specific options
617
+ #
618
+ # @yield [result, err] Result & error if block supplied
619
+ # @yieldparam result [Google::Apis::RunV1alpha1::PubSub] parsed result object
620
+ # @yieldparam err [StandardError] error object if request failed
621
+ #
622
+ # @return [Google::Apis::RunV1alpha1::PubSub]
623
+ #
624
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
625
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
626
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
627
+ def replace_namespace_pubsub_pub_sub(name, pub_sub_object = nil, fields: nil, quota_user: nil, options: nil, &block)
628
+ command = make_simple_command(:put, 'apis/events.cloud.google.com/v1alpha1/{+name}', options)
629
+ command.request_representation = Google::Apis::RunV1alpha1::PubSub::Representation
630
+ command.request_object = pub_sub_object
631
+ command.response_representation = Google::Apis::RunV1alpha1::PubSub::Representation
632
+ command.response_class = Google::Apis::RunV1alpha1::PubSub
633
+ command.params['name'] = name unless name.nil?
634
+ command.query['fields'] = fields unless fields.nil?
635
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
636
+ execute_or_queue_command(command, &block)
637
+ end
638
+
435
639
  # Rpc to delete a revision.
436
640
  # @param [String] name
437
641
  # The name of the revision being deleted. If needed, replace
@@ -1494,6 +1698,210 @@ module Google
1494
1698
  execute_or_queue_command(command, &block)
1495
1699
  end
1496
1700
 
1701
+ # Creates a new pubsub.
1702
+ # @param [String] parent
1703
+ # The project ID or project number in which this pubsub should
1704
+ # be created.
1705
+ # @param [Google::Apis::RunV1alpha1::PubSub] pub_sub_object
1706
+ # @param [String] fields
1707
+ # Selector specifying which fields to include in a partial response.
1708
+ # @param [String] quota_user
1709
+ # Available to use for quota purposes for server-side applications. Can be any
1710
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1711
+ # @param [Google::Apis::RequestOptions] options
1712
+ # Request-specific options
1713
+ #
1714
+ # @yield [result, err] Result & error if block supplied
1715
+ # @yieldparam result [Google::Apis::RunV1alpha1::PubSub] parsed result object
1716
+ # @yieldparam err [StandardError] error object if request failed
1717
+ #
1718
+ # @return [Google::Apis::RunV1alpha1::PubSub]
1719
+ #
1720
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1721
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1722
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1723
+ def create_project_location_pubsub(parent, pub_sub_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1724
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/pubsubs', options)
1725
+ command.request_representation = Google::Apis::RunV1alpha1::PubSub::Representation
1726
+ command.request_object = pub_sub_object
1727
+ command.response_representation = Google::Apis::RunV1alpha1::PubSub::Representation
1728
+ command.response_class = Google::Apis::RunV1alpha1::PubSub
1729
+ command.params['parent'] = parent unless parent.nil?
1730
+ command.query['fields'] = fields unless fields.nil?
1731
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1732
+ execute_or_queue_command(command, &block)
1733
+ end
1734
+
1735
+ # Rpc to delete a pubsub.
1736
+ # @param [String] name
1737
+ # The name of the pubsub being deleted. If needed, replace
1738
+ # `namespace_id` with the project ID.
1739
+ # @param [String] api_version
1740
+ # Cloud Run currently ignores this parameter.
1741
+ # @param [String] kind
1742
+ # Cloud Run currently ignores this parameter.
1743
+ # @param [String] propagation_policy
1744
+ # Specifies the propagation policy of delete. Cloud Run currently ignores
1745
+ # this setting, and deletes in the background. Please see
1746
+ # kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for
1747
+ # more information.
1748
+ # @param [String] fields
1749
+ # Selector specifying which fields to include in a partial response.
1750
+ # @param [String] quota_user
1751
+ # Available to use for quota purposes for server-side applications. Can be any
1752
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1753
+ # @param [Google::Apis::RequestOptions] options
1754
+ # Request-specific options
1755
+ #
1756
+ # @yield [result, err] Result & error if block supplied
1757
+ # @yieldparam result [Google::Apis::RunV1alpha1::Empty] parsed result object
1758
+ # @yieldparam err [StandardError] error object if request failed
1759
+ #
1760
+ # @return [Google::Apis::RunV1alpha1::Empty]
1761
+ #
1762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1765
+ def delete_project_location_pubsub(name, api_version: nil, kind: nil, propagation_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
1766
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
1767
+ command.response_representation = Google::Apis::RunV1alpha1::Empty::Representation
1768
+ command.response_class = Google::Apis::RunV1alpha1::Empty
1769
+ command.params['name'] = name unless name.nil?
1770
+ command.query['apiVersion'] = api_version unless api_version.nil?
1771
+ command.query['kind'] = kind unless kind.nil?
1772
+ command.query['propagationPolicy'] = propagation_policy unless propagation_policy.nil?
1773
+ command.query['fields'] = fields unless fields.nil?
1774
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1775
+ execute_or_queue_command(command, &block)
1776
+ end
1777
+
1778
+ # Rpc to get information about a pubsub.
1779
+ # @param [String] name
1780
+ # The name of the pubsub being retrieved. If needed, replace
1781
+ # `namespace_id` with the project ID.
1782
+ # @param [String] fields
1783
+ # Selector specifying which fields to include in a partial response.
1784
+ # @param [String] quota_user
1785
+ # Available to use for quota purposes for server-side applications. Can be any
1786
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1787
+ # @param [Google::Apis::RequestOptions] options
1788
+ # Request-specific options
1789
+ #
1790
+ # @yield [result, err] Result & error if block supplied
1791
+ # @yieldparam result [Google::Apis::RunV1alpha1::PubSub] parsed result object
1792
+ # @yieldparam err [StandardError] error object if request failed
1793
+ #
1794
+ # @return [Google::Apis::RunV1alpha1::PubSub]
1795
+ #
1796
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1797
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1798
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1799
+ def get_project_location_pubsub(name, fields: nil, quota_user: nil, options: nil, &block)
1800
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
1801
+ command.response_representation = Google::Apis::RunV1alpha1::PubSub::Representation
1802
+ command.response_class = Google::Apis::RunV1alpha1::PubSub
1803
+ command.params['name'] = name unless name.nil?
1804
+ command.query['fields'] = fields unless fields.nil?
1805
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1806
+ execute_or_queue_command(command, &block)
1807
+ end
1808
+
1809
+ # Rpc to list pubsubs.
1810
+ # @param [String] parent
1811
+ # The project ID or project number from which the pubsubs should
1812
+ # be listed.
1813
+ # @param [String] continue
1814
+ # Optional encoded string to continue paging.
1815
+ # @param [String] field_selector
1816
+ # Allows to filter resources based on a specific value for a field name.
1817
+ # Send this in a query string format. i.e. 'metadata.name%3Dlorem'.
1818
+ # Not currently used by Cloud Run.
1819
+ # @param [Boolean] include_uninitialized
1820
+ # Not currently used by Cloud Run.
1821
+ # @param [String] label_selector
1822
+ # Allows to filter resources based on a label. Supported operations are
1823
+ # =, !=, exists, in, and notIn.
1824
+ # @param [Fixnum] limit
1825
+ # The maximum number of records that should be returned.
1826
+ # @param [String] resource_version
1827
+ # The baseline resource version from which the list or watch operation should
1828
+ # start. Not currently used by Cloud Run.
1829
+ # @param [Boolean] watch
1830
+ # Flag that indicates that the client expects to watch this resource as well.
1831
+ # Not currently used by Cloud Run.
1832
+ # @param [String] fields
1833
+ # Selector specifying which fields to include in a partial response.
1834
+ # @param [String] quota_user
1835
+ # Available to use for quota purposes for server-side applications. Can be any
1836
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1837
+ # @param [Google::Apis::RequestOptions] options
1838
+ # Request-specific options
1839
+ #
1840
+ # @yield [result, err] Result & error if block supplied
1841
+ # @yieldparam result [Google::Apis::RunV1alpha1::ListPubSubsResponse] parsed result object
1842
+ # @yieldparam err [StandardError] error object if request failed
1843
+ #
1844
+ # @return [Google::Apis::RunV1alpha1::ListPubSubsResponse]
1845
+ #
1846
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1847
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1848
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1849
+ def list_project_location_pubsubs(parent, continue: nil, field_selector: nil, include_uninitialized: nil, label_selector: nil, limit: nil, resource_version: nil, watch: nil, fields: nil, quota_user: nil, options: nil, &block)
1850
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/pubsubs', options)
1851
+ command.response_representation = Google::Apis::RunV1alpha1::ListPubSubsResponse::Representation
1852
+ command.response_class = Google::Apis::RunV1alpha1::ListPubSubsResponse
1853
+ command.params['parent'] = parent unless parent.nil?
1854
+ command.query['continue'] = continue unless continue.nil?
1855
+ command.query['fieldSelector'] = field_selector unless field_selector.nil?
1856
+ command.query['includeUninitialized'] = include_uninitialized unless include_uninitialized.nil?
1857
+ command.query['labelSelector'] = label_selector unless label_selector.nil?
1858
+ command.query['limit'] = limit unless limit.nil?
1859
+ command.query['resourceVersion'] = resource_version unless resource_version.nil?
1860
+ command.query['watch'] = watch unless watch.nil?
1861
+ command.query['fields'] = fields unless fields.nil?
1862
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1863
+ execute_or_queue_command(command, &block)
1864
+ end
1865
+
1866
+ # Rpc to replace a pubsub.
1867
+ # Only the spec and metadata labels and annotations are modifiable. After
1868
+ # the Update request, Cloud Run will work to make the 'status'
1869
+ # match the requested 'spec'.
1870
+ # May provide metadata.resourceVersion to enforce update from last read for
1871
+ # optimistic concurrency control.
1872
+ # @param [String] name
1873
+ # The name of the pubsub being retrieved. If needed, replace
1874
+ # `namespace_id` with the project ID.
1875
+ # @param [Google::Apis::RunV1alpha1::PubSub] pub_sub_object
1876
+ # @param [String] fields
1877
+ # Selector specifying which fields to include in a partial response.
1878
+ # @param [String] quota_user
1879
+ # Available to use for quota purposes for server-side applications. Can be any
1880
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1881
+ # @param [Google::Apis::RequestOptions] options
1882
+ # Request-specific options
1883
+ #
1884
+ # @yield [result, err] Result & error if block supplied
1885
+ # @yieldparam result [Google::Apis::RunV1alpha1::PubSub] parsed result object
1886
+ # @yieldparam err [StandardError] error object if request failed
1887
+ #
1888
+ # @return [Google::Apis::RunV1alpha1::PubSub]
1889
+ #
1890
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1891
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1892
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1893
+ def replace_project_location_pubsub_pub_sub(name, pub_sub_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1894
+ command = make_simple_command(:put, 'v1alpha1/{+name}', options)
1895
+ command.request_representation = Google::Apis::RunV1alpha1::PubSub::Representation
1896
+ command.request_object = pub_sub_object
1897
+ command.response_representation = Google::Apis::RunV1alpha1::PubSub::Representation
1898
+ command.response_class = Google::Apis::RunV1alpha1::PubSub
1899
+ command.params['name'] = name unless name.nil?
1900
+ command.query['fields'] = fields unless fields.nil?
1901
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1902
+ execute_or_queue_command(command, &block)
1903
+ end
1904
+
1497
1905
  # Rpc to delete a revision.
1498
1906
  # @param [String] name
1499
1907
  # The name of the revision being deleted. If needed, replace