google-api-client 0.33.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +119 -0
- data/README.md +1 -1
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +30 -0
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +13 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +105 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +1 -73
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -32
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +15 -2
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +16 -3
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +5 -5
- data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +6 -3
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +6 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +3 -3
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta/service.rb +3 -3
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +15 -1
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +2 -2
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +62 -29
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/service.rb +2 -0
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +2 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +14 -15
- data/generated/google/apis/cloudasset_v1/service.rb +1 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/service.rb +14 -14
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +11 -8
- data/generated/google/apis/cloudidentity_v1/service.rb +2 -1
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +13 -10
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +2 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +12 -12
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +4 -8
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +11 -13
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +4 -8
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +11 -13
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +5 -2
- data/generated/google/apis/cloudsearch_v1/service.rb +5 -2
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +22 -0
- data/generated/google/apis/cloudshell_v1/representations.rb +3 -0
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +22 -0
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +3 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +519 -152
- data/generated/google/apis/compute_alpha/representations.rb +108 -2
- data/generated/google/apis/compute_alpha/service.rb +1035 -640
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1016 -266
- data/generated/google/apis/compute_beta/representations.rb +284 -0
- data/generated/google/apis/compute_beta/service.rb +1242 -532
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +283 -125
- data/generated/google/apis/compute_v1/representations.rb +24 -0
- data/generated/google/apis/compute_v1/service.rb +759 -473
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +207 -5
- data/generated/google/apis/container_v1/representations.rb +85 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +125 -3
- data/generated/google/apis/container_v1beta1/representations.rb +22 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1/service.rb +85 -1
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +25 -287
- data/generated/google/apis/dialogflow_v2/representations.rb +2 -115
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +33 -287
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +3 -115
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +19 -11
- data/generated/google/apis/dlp_v2/representations.rb +1 -0
- data/generated/google/apis/dlp_v2/service.rb +43 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +175 -0
- data/generated/google/apis/docs_v1/representations.rb +77 -0
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +2 -1
- data/generated/google/apis/drive_v2/service.rb +3 -3
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +37 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +16 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +6 -26
- data/generated/google/apis/games_management_v1management/representations.rb +1 -14
- data/generated/google/apis/games_management_v1management/service.rb +0 -158
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +6 -292
- data/generated/google/apis/games_v1/representations.rb +1 -98
- data/generated/google/apis/games_v1/service.rb +0 -123
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +205 -9
- data/generated/google/apis/healthcare_v1beta1/representations.rb +101 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +198 -104
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +9 -2
- data/generated/google/apis/iam_v1/representations.rb +1 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +185 -0
- data/generated/google/apis/iap_v1/representations.rb +102 -0
- data/generated/google/apis/iap_v1/service.rb +72 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +167 -0
- data/generated/google/apis/jobs_v2/representations.rb +40 -0
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +179 -0
- data/generated/google/apis/jobs_v3/representations.rb +41 -0
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +179 -0
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +41 -0
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/licensing_v1/classes.rb +15 -7
- data/generated/google/apis/licensing_v1/service.rb +81 -37
- data/generated/google/apis/licensing_v1.rb +4 -4
- data/generated/google/apis/lifesciences_v2beta/classes.rb +1329 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +533 -0
- data/generated/google/apis/lifesciences_v2beta/service.rb +303 -0
- data/generated/google/apis/lifesciences_v2beta.rb +35 -0
- data/generated/google/apis/ml_v1/classes.rb +66 -23
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1/service.rb +7 -3
- data/generated/google/apis/ml_v1.rb +2 -2
- data/generated/google/apis/monitoring_v1/classes.rb +260 -0
- data/generated/google/apis/monitoring_v1/representations.rb +123 -0
- data/generated/google/apis/monitoring_v1/service.rb +64 -0
- data/generated/google/apis/monitoring_v1.rb +36 -0
- data/generated/google/apis/monitoring_v3/classes.rb +12 -12
- data/generated/google/apis/monitoring_v3/service.rb +2 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +1 -1
- data/generated/google/apis/oslogin_v1/service.rb +10 -6
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/service.rb +9 -5
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +67 -63
- data/generated/google/apis/people_v1/service.rb +53 -44
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/reseller_v1/service.rb +1 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +0 -7
- data/generated/google/apis/run_v1/service.rb +156 -94
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +319 -0
- data/generated/google/apis/run_v1alpha1/representations.rb +126 -0
- data/generated/google/apis/run_v1alpha1/service.rb +408 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +0 -11
- data/generated/google/apis/servicecontrol_v1/representations.rb +0 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/classes.rb +9 -8
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/representations.rb +6 -6
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/service.rb +13 -13
- data/generated/google/apis/{speech_v2beta.rb → speech_v2beta1.rb} +6 -6
- data/generated/google/apis/sql_v1beta4/classes.rb +2752 -0
- data/generated/google/apis/sql_v1beta4/representations.rb +1131 -0
- data/generated/google/apis/sql_v1beta4/service.rb +1791 -0
- data/generated/google/apis/sql_v1beta4.rb +37 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +142 -1
- data/generated/google/apis/testing_v1/representations.rb +76 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +35 -36
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +35 -36
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +35 -36
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +35 -36
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +35 -36
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/google-api-client.gemspec +3 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +20 -11
- data/generated/google/apis/dfareporting_v3_2/classes.rb +0 -12299
- data/generated/google/apis/dfareporting_v3_2/representations.rb +0 -4397
- data/generated/google/apis/dfareporting_v3_2/service.rb +0 -8793
- data/generated/google/apis/dfareporting_v3_2.rb +0 -40
|
@@ -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
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/run/
|
|
27
27
|
module RunV1alpha1
|
|
28
28
|
VERSION = 'V1alpha1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20191021'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -1453,16 +1453,6 @@ module Google
|
|
|
1453
1453
|
# @return [Google::Apis::ServicecontrolV1::QuotaProperties]
|
|
1454
1454
|
attr_accessor :quota_properties
|
|
1455
1455
|
|
|
1456
|
-
# DO NOT USE. This field is deprecated, use "resources" field instead.
|
|
1457
|
-
# The resource name of the parent of a resource in the resource hierarchy.
|
|
1458
|
-
# This can be in one of the following formats:
|
|
1459
|
-
# - “projects/<project-id or project-number>”
|
|
1460
|
-
# - “folders/<folder-id>”
|
|
1461
|
-
# - “organizations/<organization-id>”
|
|
1462
|
-
# Corresponds to the JSON property `resourceContainer`
|
|
1463
|
-
# @return [String]
|
|
1464
|
-
attr_accessor :resource_container
|
|
1465
|
-
|
|
1466
1456
|
# The resources that are involved in the operation.
|
|
1467
1457
|
# The maximum supported number of entries in this field is 100.
|
|
1468
1458
|
# Corresponds to the JSON property `resources`
|
|
@@ -1496,7 +1486,6 @@ module Google
|
|
|
1496
1486
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
|
1497
1487
|
@operation_name = args[:operation_name] if args.key?(:operation_name)
|
|
1498
1488
|
@quota_properties = args[:quota_properties] if args.key?(:quota_properties)
|
|
1499
|
-
@resource_container = args[:resource_container] if args.key?(:resource_container)
|
|
1500
1489
|
@resources = args[:resources] if args.key?(:resources)
|
|
1501
1490
|
@start_time = args[:start_time] if args.key?(:start_time)
|
|
1502
1491
|
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
|
@@ -597,7 +597,6 @@ module Google
|
|
|
597
597
|
property :operation_name, as: 'operationName'
|
|
598
598
|
property :quota_properties, as: 'quotaProperties', class: Google::Apis::ServicecontrolV1::QuotaProperties, decorator: Google::Apis::ServicecontrolV1::QuotaProperties::Representation
|
|
599
599
|
|
|
600
|
-
property :resource_container, as: 'resourceContainer'
|
|
601
600
|
collection :resources, as: 'resources', class: Google::Apis::ServicecontrolV1::ResourceInfo, decorator: Google::Apis::ServicecontrolV1::ResourceInfo::Representation
|
|
602
601
|
|
|
603
602
|
property :start_time, as: 'startTime'
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/service-control/
|
|
27
27
|
module ServicecontrolV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20191027'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -20,7 +20,7 @@ require 'google/apis/errors'
|
|
|
20
20
|
|
|
21
21
|
module Google
|
|
22
22
|
module Apis
|
|
23
|
-
module
|
|
23
|
+
module SpeechV2beta1
|
|
24
24
|
|
|
25
25
|
# The response message for Operations.ListOperations.
|
|
26
26
|
class ListOperationsResponse
|
|
@@ -33,7 +33,7 @@ module Google
|
|
|
33
33
|
|
|
34
34
|
# A list of operations that matches the specified filter in the request.
|
|
35
35
|
# Corresponds to the JSON property `operations`
|
|
36
|
-
# @return [Array<Google::Apis::
|
|
36
|
+
# @return [Array<Google::Apis::SpeechV2beta1::Operation>]
|
|
37
37
|
attr_accessor :operations
|
|
38
38
|
|
|
39
39
|
def initialize(**args)
|
|
@@ -93,7 +93,7 @@ module Google
|
|
|
93
93
|
# Output only. Sequential list of transcription results corresponding to
|
|
94
94
|
# sequential portions of audio.
|
|
95
95
|
# Corresponds to the JSON property `results`
|
|
96
|
-
# @return [Array<Google::Apis::
|
|
96
|
+
# @return [Array<Google::Apis::SpeechV2beta1::SpeechRecognitionResult>]
|
|
97
97
|
attr_accessor :results
|
|
98
98
|
|
|
99
99
|
def initialize(**args)
|
|
@@ -126,7 +126,7 @@ module Google
|
|
|
126
126
|
# You can find out more about this error model and how to work with it in the
|
|
127
127
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
128
128
|
# Corresponds to the JSON property `error`
|
|
129
|
-
# @return [Google::Apis::
|
|
129
|
+
# @return [Google::Apis::SpeechV2beta1::Status]
|
|
130
130
|
attr_accessor :error
|
|
131
131
|
|
|
132
132
|
# Service-specific metadata associated with the operation. It typically
|
|
@@ -194,7 +194,7 @@ module Google
|
|
|
194
194
|
# Note: When `enable_speaker_diarization` is true, you will see all the words
|
|
195
195
|
# from the beginning of the audio.
|
|
196
196
|
# Corresponds to the JSON property `words`
|
|
197
|
-
# @return [Array<Google::Apis::
|
|
197
|
+
# @return [Array<Google::Apis::SpeechV2beta1::WordInfo>]
|
|
198
198
|
attr_accessor :words
|
|
199
199
|
|
|
200
200
|
def initialize(**args)
|
|
@@ -218,7 +218,7 @@ module Google
|
|
|
218
218
|
# These alternatives are ordered in terms of accuracy, with the top (first)
|
|
219
219
|
# alternative being the most probable, as ranked by the recognizer.
|
|
220
220
|
# Corresponds to the JSON property `alternatives`
|
|
221
|
-
# @return [Array<Google::Apis::
|
|
221
|
+
# @return [Array<Google::Apis::SpeechV2beta1::SpeechRecognitionAlternative>]
|
|
222
222
|
attr_accessor :alternatives
|
|
223
223
|
|
|
224
224
|
# Output only. For multi-channel audio, this is the channel number corresponding
|
|
@@ -316,8 +316,9 @@ module Google
|
|
|
316
316
|
# Output only. A distinct integer value is assigned for every speaker within
|
|
317
317
|
# the audio. This field specifies which one of those speakers was detected to
|
|
318
318
|
# have spoken this word. Value ranges from `1` to
|
|
319
|
-
# `
|
|
320
|
-
# `enable_speaker_diarization` = `true` and only in the
|
|
319
|
+
# `diarization_config.max_speaker_count` . `speaker_tag` is set if
|
|
320
|
+
# `diarization_config.enable_speaker_diarization` = `true` and only in the
|
|
321
|
+
# top alternative.
|
|
321
322
|
# Corresponds to the JSON property `speakerTag`
|
|
322
323
|
# @return [Fixnum]
|
|
323
324
|
attr_accessor :speaker_tag
|
|
@@ -20,7 +20,7 @@ require 'google/apis/errors'
|
|
|
20
20
|
|
|
21
21
|
module Google
|
|
22
22
|
module Apis
|
|
23
|
-
module
|
|
23
|
+
module SpeechV2beta1
|
|
24
24
|
|
|
25
25
|
class ListOperationsResponse
|
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
@@ -74,7 +74,7 @@ module Google
|
|
|
74
74
|
# @private
|
|
75
75
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
76
76
|
property :next_page_token, as: 'nextPageToken'
|
|
77
|
-
collection :operations, as: 'operations', class: Google::Apis::
|
|
77
|
+
collection :operations, as: 'operations', class: Google::Apis::SpeechV2beta1::Operation, decorator: Google::Apis::SpeechV2beta1::Operation::Representation
|
|
78
78
|
|
|
79
79
|
end
|
|
80
80
|
end
|
|
@@ -91,7 +91,7 @@ module Google
|
|
|
91
91
|
class LongRunningRecognizeResponse
|
|
92
92
|
# @private
|
|
93
93
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
94
|
-
collection :results, as: 'results', class: Google::Apis::
|
|
94
|
+
collection :results, as: 'results', class: Google::Apis::SpeechV2beta1::SpeechRecognitionResult, decorator: Google::Apis::SpeechV2beta1::SpeechRecognitionResult::Representation
|
|
95
95
|
|
|
96
96
|
end
|
|
97
97
|
end
|
|
@@ -100,7 +100,7 @@ module Google
|
|
|
100
100
|
# @private
|
|
101
101
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
102
102
|
property :done, as: 'done'
|
|
103
|
-
property :error, as: 'error', class: Google::Apis::
|
|
103
|
+
property :error, as: 'error', class: Google::Apis::SpeechV2beta1::Status, decorator: Google::Apis::SpeechV2beta1::Status::Representation
|
|
104
104
|
|
|
105
105
|
hash :metadata, as: 'metadata'
|
|
106
106
|
property :name, as: 'name'
|
|
@@ -113,7 +113,7 @@ module Google
|
|
|
113
113
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
114
114
|
property :confidence, as: 'confidence'
|
|
115
115
|
property :transcript, as: 'transcript'
|
|
116
|
-
collection :words, as: 'words', class: Google::Apis::
|
|
116
|
+
collection :words, as: 'words', class: Google::Apis::SpeechV2beta1::WordInfo, decorator: Google::Apis::SpeechV2beta1::WordInfo::Representation
|
|
117
117
|
|
|
118
118
|
end
|
|
119
119
|
end
|
|
@@ -121,7 +121,7 @@ module Google
|
|
|
121
121
|
class SpeechRecognitionResult
|
|
122
122
|
# @private
|
|
123
123
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
124
|
-
collection :alternatives, as: 'alternatives', class: Google::Apis::
|
|
124
|
+
collection :alternatives, as: 'alternatives', class: Google::Apis::SpeechV2beta1::SpeechRecognitionAlternative, decorator: Google::Apis::SpeechV2beta1::SpeechRecognitionAlternative::Representation
|
|
125
125
|
|
|
126
126
|
property :channel_tag, as: 'channelTag'
|
|
127
127
|
property :language_code, as: 'languageCode'
|