google-api-client 0.44.1 → 0.44.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +119 -0
- data/api_names.yaml +1 -0
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/classes.rb +6 -4
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +1 -15
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -14
- data/generated/google/apis/admin_directory_v1/service.rb +89 -1
- data/generated/google/apis/admob_v1.rb +1 -1
- data/generated/google/apis/analyticsdata_v1alpha.rb +37 -0
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +1610 -0
- data/generated/google/apis/analyticsdata_v1alpha/representations.rb +789 -0
- data/generated/google/apis/analyticsdata_v1alpha/service.rb +220 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/apigateway_v1alpha1.rb +34 -0
- data/generated/google/apis/apigateway_v1alpha1/classes.rb +633 -0
- data/generated/google/apis/apigateway_v1alpha1/representations.rb +250 -0
- data/generated/google/apis/apigateway_v1alpha1/service.rb +623 -0
- data/generated/google/apis/apigateway_v1beta.rb +34 -0
- data/generated/google/apis/apigateway_v1beta/classes.rb +1162 -0
- data/generated/google/apis/apigateway_v1beta/representations.rb +470 -0
- data/generated/google/apis/apigateway_v1beta/service.rb +1172 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +51 -24
- data/generated/google/apis/appengine_v1/representations.rb +15 -0
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +58 -24
- data/generated/google/apis/appengine_v1beta/representations.rb +16 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +26 -0
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +87 -119
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +405 -607
- data/generated/google/apis/bigtableadmin_v2/service.rb +194 -247
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +7 -0
- data/generated/google/apis/binaryauthorization_v1/representations.rb +1 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +7 -0
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +1 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +11 -9
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +18 -8
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +81 -1
- data/generated/google/apis/cloudbuild_v1/representations.rb +22 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +217 -3
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -0
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +8 -0
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1.rb +4 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +270 -2
- data/generated/google/apis/cloudidentity_v1/representations.rb +139 -0
- data/generated/google/apis/cloudidentity_v1/service.rb +759 -0
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +20 -7
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +7 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +14 -7
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +59 -57
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +11 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +23 -22
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -0
- data/generated/google/apis/cloudresourcemanager_v2/representations.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +7 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +1 -0
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +18 -18
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +57 -2
- data/generated/google/apis/container_v1/representations.rb +7 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +52 -8
- data/generated/google/apis/container_v1beta1/representations.rb +6 -0
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +7 -0
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +7 -0
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +1 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +14 -3
- data/generated/google/apis/content_v2_1/representations.rb +1 -0
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +7 -0
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
- data/generated/google/apis/datafusion_v1.rb +1 -1
- data/generated/google/apis/datafusion_v1/classes.rb +15 -0
- data/generated/google/apis/datafusion_v1/representations.rb +2 -0
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +15 -0
- data/generated/google/apis/datafusion_v1beta1/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +22 -9
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +22 -9
- data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +42 -26
- data/generated/google/apis/dialogflow_v2/representations.rb +1 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +53 -34
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +458 -320
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +42 -33
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +1 -1
- data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
- data/generated/google/apis/digitalassetlinks_v1/classes.rb +66 -92
- data/generated/google/apis/digitalassetlinks_v1/service.rb +131 -188
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/service.rb +2 -2
- data/generated/google/apis/displayvideo_v1beta.rb +38 -0
- data/generated/google/apis/displayvideo_v1beta/classes.rb +146 -0
- data/generated/google/apis/displayvideo_v1beta/representations.rb +72 -0
- data/generated/google/apis/displayvideo_v1beta/service.rb +161 -0
- data/generated/google/apis/displayvideo_v1beta2.rb +38 -0
- data/generated/google/apis/displayvideo_v1beta2/classes.rb +146 -0
- data/generated/google/apis/displayvideo_v1beta2/representations.rb +72 -0
- data/generated/google/apis/displayvideo_v1beta2/service.rb +130 -0
- data/generated/google/apis/displayvideo_v1dev.rb +38 -0
- data/generated/google/apis/displayvideo_v1dev/classes.rb +146 -0
- data/generated/google/apis/displayvideo_v1dev/representations.rb +72 -0
- data/generated/google/apis/displayvideo_v1dev/service.rb +130 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +5 -5
- data/generated/google/apis/documentai_v1beta2.rb +1 -1
- data/generated/google/apis/documentai_v1beta2/classes.rb +1059 -6
- data/generated/google/apis/documentai_v1beta2/representations.rb +398 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -2
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +1 -2
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +8 -4
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +160 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +68 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +414 -0
- data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
- data/generated/google/apis/firebaseml_v1beta2/classes.rb +8 -0
- data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -0
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +3 -3
- data/generated/google/apis/fitness_v1/classes.rb +5 -5
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/gameservices_v1.rb +1 -1
- data/generated/google/apis/gameservices_v1/classes.rb +7 -0
- data/generated/google/apis/gameservices_v1/representations.rb +1 -0
- data/generated/google/apis/gameservices_v1beta.rb +1 -1
- data/generated/google/apis/gameservices_v1beta/classes.rb +7 -0
- data/generated/google/apis/gameservices_v1beta/representations.rb +1 -0
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +72 -0
- data/generated/google/apis/healthcare_v1/representations.rb +32 -0
- data/generated/google/apis/healthcare_v1/service.rb +182 -16
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +231 -16
- data/generated/google/apis/homegraph_v1.rb +4 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +7 -0
- data/generated/google/apis/iam_v1/representations.rb +1 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +7 -0
- data/generated/google/apis/iap_v1/representations.rb +1 -0
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +7 -0
- data/generated/google/apis/iap_v1beta1/representations.rb +1 -0
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +786 -1086
- data/generated/google/apis/jobs_v2/service.rb +85 -126
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +637 -856
- data/generated/google/apis/jobs_v3/service.rb +101 -139
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +762 -1023
- data/generated/google/apis/jobs_v3p1beta1/service.rb +103 -142
- data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +8 -0
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +8 -0
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +7 -0
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +9 -5
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +0 -704
- data/generated/google/apis/osconfig_v1/representations.rb +0 -337
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +0 -704
- data/generated/google/apis/osconfig_v1beta/representations.rb +0 -337
- data/generated/google/apis/playcustomapp_v1.rb +1 -1
- data/generated/google/apis/playcustomapp_v1/service.rb +2 -2
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +20 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +13 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +479 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +7 -0
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +1 -0
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1/classes.rb +168 -2
- data/generated/google/apis/secretmanager_v1/representations.rb +92 -0
- data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +7 -0
- data/generated/google/apis/secretmanager_v1beta1/representations.rb +1 -0
- data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
- data/generated/google/apis/servicedirectory_v1beta1/classes.rb +7 -0
- data/generated/google/apis/servicedirectory_v1beta1/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +0 -9
- data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/sql_v1beta4.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/sts_v1.rb +32 -0
- data/generated/google/apis/sts_v1/classes.rb +120 -0
- data/generated/google/apis/sts_v1/representations.rb +59 -0
- data/generated/google/apis/sts_v1/service.rb +90 -0
- data/generated/google/apis/sts_v1beta.rb +32 -0
- data/generated/google/apis/sts_v1beta/classes.rb +191 -0
- data/generated/google/apis/sts_v1beta/representations.rb +61 -0
- data/generated/google/apis/sts_v1beta/service.rb +92 -0
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +43 -0
- data/generated/google/apis/tpu_v1/representations.rb +18 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +43 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +18 -0
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +80 -103
- data/generated/google/apis/vault_v1/service.rb +31 -37
- data/generated/google/apis/verifiedaccess_v1.rb +1 -1
- data/generated/google/apis/verifiedaccess_v1/classes.rb +20 -27
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/service.rb +31 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- 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/workflowexecutions_v1beta.rb +34 -0
- data/generated/google/apis/workflowexecutions_v1beta/classes.rb +155 -0
- data/generated/google/apis/workflowexecutions_v1beta/representations.rb +88 -0
- data/generated/google/apis/workflowexecutions_v1beta/service.rb +211 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/service.rb +78 -78
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +54 -4
|
@@ -0,0 +1,88 @@
|
|
|
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 WorkflowexecutionsV1beta
|
|
24
|
+
|
|
25
|
+
class CancelExecutionRequest
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
class Error
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class Execution
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
|
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class ListExecutionsResponse
|
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
|
+
|
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class CancelExecutionRequest
|
|
50
|
+
# @private
|
|
51
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class Error
|
|
56
|
+
# @private
|
|
57
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
58
|
+
property :context, as: 'context'
|
|
59
|
+
property :payload, as: 'payload'
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
class Execution
|
|
64
|
+
# @private
|
|
65
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
66
|
+
property :argument, as: 'argument'
|
|
67
|
+
property :end_time, as: 'endTime'
|
|
68
|
+
property :error, as: 'error', class: Google::Apis::WorkflowexecutionsV1beta::Error, decorator: Google::Apis::WorkflowexecutionsV1beta::Error::Representation
|
|
69
|
+
|
|
70
|
+
property :name, as: 'name'
|
|
71
|
+
property :result, as: 'result'
|
|
72
|
+
property :start_time, as: 'startTime'
|
|
73
|
+
property :state, as: 'state'
|
|
74
|
+
property :workflow_revision_id, as: 'workflowRevisionId'
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
class ListExecutionsResponse
|
|
79
|
+
# @private
|
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
81
|
+
collection :executions, as: 'executions', class: Google::Apis::WorkflowexecutionsV1beta::Execution, decorator: Google::Apis::WorkflowexecutionsV1beta::Execution::Representation
|
|
82
|
+
|
|
83
|
+
property :next_page_token, as: 'nextPageToken'
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module WorkflowexecutionsV1beta
|
|
23
|
+
# Workflow Executions API
|
|
24
|
+
#
|
|
25
|
+
# Manages user-provided workflows.
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# require 'google/apis/workflowexecutions_v1beta'
|
|
29
|
+
#
|
|
30
|
+
# Workflowexecutions = Google::Apis::WorkflowexecutionsV1beta # Alias the module
|
|
31
|
+
# service = Workflowexecutions::WorkflowExecutionsService.new
|
|
32
|
+
#
|
|
33
|
+
# @see https://cloud.google.com/workflows
|
|
34
|
+
class WorkflowExecutionsService < Google::Apis::Core::BaseService
|
|
35
|
+
# @return [String]
|
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
38
|
+
attr_accessor :key
|
|
39
|
+
|
|
40
|
+
# @return [String]
|
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
43
|
+
attr_accessor :quota_user
|
|
44
|
+
|
|
45
|
+
def initialize
|
|
46
|
+
super('https://workflowexecutions.googleapis.com/', '')
|
|
47
|
+
@batch_path = 'batch'
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Cancels an execution of the given name.
|
|
51
|
+
# @param [String] name
|
|
52
|
+
# Required. Name of the execution to be cancelled. Format: projects/`project`/
|
|
53
|
+
# locations/`location`/workflows/`workflow`/executions/`execution`
|
|
54
|
+
# @param [Google::Apis::WorkflowexecutionsV1beta::CancelExecutionRequest] cancel_execution_request_object
|
|
55
|
+
# @param [String] fields
|
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
|
57
|
+
# @param [String] quota_user
|
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
|
61
|
+
# Request-specific options
|
|
62
|
+
#
|
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
|
64
|
+
# @yieldparam result [Google::Apis::WorkflowexecutionsV1beta::Execution] parsed result object
|
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
66
|
+
#
|
|
67
|
+
# @return [Google::Apis::WorkflowexecutionsV1beta::Execution]
|
|
68
|
+
#
|
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
72
|
+
def cancel_execution(name, cancel_execution_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
73
|
+
command = make_simple_command(:post, 'v1beta/{+name}:cancel', options)
|
|
74
|
+
command.request_representation = Google::Apis::WorkflowexecutionsV1beta::CancelExecutionRequest::Representation
|
|
75
|
+
command.request_object = cancel_execution_request_object
|
|
76
|
+
command.response_representation = Google::Apis::WorkflowexecutionsV1beta::Execution::Representation
|
|
77
|
+
command.response_class = Google::Apis::WorkflowexecutionsV1beta::Execution
|
|
78
|
+
command.params['name'] = name unless name.nil?
|
|
79
|
+
command.query['fields'] = fields unless fields.nil?
|
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
81
|
+
execute_or_queue_command(command, &block)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Creates a new execution using the latest revision of the given workflow.
|
|
85
|
+
# @param [String] parent
|
|
86
|
+
# Required. Name of the workflow for which an execution should be created.
|
|
87
|
+
# Format: projects/`project`/locations/`location`/workflows/`workflow` The
|
|
88
|
+
# latest revision of the workflow will be used.
|
|
89
|
+
# @param [Google::Apis::WorkflowexecutionsV1beta::Execution] execution_object
|
|
90
|
+
# @param [String] fields
|
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
|
92
|
+
# @param [String] quota_user
|
|
93
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
94
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
95
|
+
# @param [Google::Apis::RequestOptions] options
|
|
96
|
+
# Request-specific options
|
|
97
|
+
#
|
|
98
|
+
# @yield [result, err] Result & error if block supplied
|
|
99
|
+
# @yieldparam result [Google::Apis::WorkflowexecutionsV1beta::Execution] parsed result object
|
|
100
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
101
|
+
#
|
|
102
|
+
# @return [Google::Apis::WorkflowexecutionsV1beta::Execution]
|
|
103
|
+
#
|
|
104
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
105
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
106
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
107
|
+
def create_project_location_workflow_execution(parent, execution_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
108
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/executions', options)
|
|
109
|
+
command.request_representation = Google::Apis::WorkflowexecutionsV1beta::Execution::Representation
|
|
110
|
+
command.request_object = execution_object
|
|
111
|
+
command.response_representation = Google::Apis::WorkflowexecutionsV1beta::Execution::Representation
|
|
112
|
+
command.response_class = Google::Apis::WorkflowexecutionsV1beta::Execution
|
|
113
|
+
command.params['parent'] = parent unless parent.nil?
|
|
114
|
+
command.query['fields'] = fields unless fields.nil?
|
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
116
|
+
execute_or_queue_command(command, &block)
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Returns an execution of the given name.
|
|
120
|
+
# @param [String] name
|
|
121
|
+
# Required. Name of the execution to be retrieved. Format: projects/`project`/
|
|
122
|
+
# locations/`location`/workflows/`workflow`/executions/`execution`
|
|
123
|
+
# @param [String] view
|
|
124
|
+
# Optional. A view defining which fields should be filled in the returned
|
|
125
|
+
# execution. The API will default to the FULL view.
|
|
126
|
+
# @param [String] fields
|
|
127
|
+
# Selector specifying which fields to include in a partial response.
|
|
128
|
+
# @param [String] quota_user
|
|
129
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
130
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
131
|
+
# @param [Google::Apis::RequestOptions] options
|
|
132
|
+
# Request-specific options
|
|
133
|
+
#
|
|
134
|
+
# @yield [result, err] Result & error if block supplied
|
|
135
|
+
# @yieldparam result [Google::Apis::WorkflowexecutionsV1beta::Execution] parsed result object
|
|
136
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
137
|
+
#
|
|
138
|
+
# @return [Google::Apis::WorkflowexecutionsV1beta::Execution]
|
|
139
|
+
#
|
|
140
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
141
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
142
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
143
|
+
def get_project_location_workflow_execution(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
144
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
|
145
|
+
command.response_representation = Google::Apis::WorkflowexecutionsV1beta::Execution::Representation
|
|
146
|
+
command.response_class = Google::Apis::WorkflowexecutionsV1beta::Execution
|
|
147
|
+
command.params['name'] = name unless name.nil?
|
|
148
|
+
command.query['view'] = view unless view.nil?
|
|
149
|
+
command.query['fields'] = fields unless fields.nil?
|
|
150
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
151
|
+
execute_or_queue_command(command, &block)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Returns a list of executions which belong to the workflow with the given name.
|
|
155
|
+
# The method returns executions of all workflow revisions. Returned executions
|
|
156
|
+
# are ordered by their start time (newest first).
|
|
157
|
+
# @param [String] parent
|
|
158
|
+
# Required. Name of the workflow for which the executions should be listed.
|
|
159
|
+
# Format: projects/`project`/locations/`location`/workflows/`workflow`
|
|
160
|
+
# @param [Fixnum] page_size
|
|
161
|
+
# Maximum number of executions to return per call. Max supported value depends
|
|
162
|
+
# on the selected Execution view: it's 10000 for BASIC and 100 for FULL. The
|
|
163
|
+
# default value used if the field is not specified is 100, regardless of the
|
|
164
|
+
# selected view. Values greater than the max value will be coerced down to it.
|
|
165
|
+
# @param [String] page_token
|
|
166
|
+
# A page token, received from a previous `ListExecutions` call. Provide this to
|
|
167
|
+
# retrieve the subsequent page. When paginating, all other parameters provided
|
|
168
|
+
# to `ListExecutions` must match the call that provided the page token.
|
|
169
|
+
# @param [String] view
|
|
170
|
+
# Optional. A view defining which fields should be filled in the returned
|
|
171
|
+
# executions. The API will default to the BASIC view.
|
|
172
|
+
# @param [String] fields
|
|
173
|
+
# Selector specifying which fields to include in a partial response.
|
|
174
|
+
# @param [String] quota_user
|
|
175
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
176
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
177
|
+
# @param [Google::Apis::RequestOptions] options
|
|
178
|
+
# Request-specific options
|
|
179
|
+
#
|
|
180
|
+
# @yield [result, err] Result & error if block supplied
|
|
181
|
+
# @yieldparam result [Google::Apis::WorkflowexecutionsV1beta::ListExecutionsResponse] parsed result object
|
|
182
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
183
|
+
#
|
|
184
|
+
# @return [Google::Apis::WorkflowexecutionsV1beta::ListExecutionsResponse]
|
|
185
|
+
#
|
|
186
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
187
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
188
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
189
|
+
def list_project_location_workflow_executions(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
190
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/executions', options)
|
|
191
|
+
command.response_representation = Google::Apis::WorkflowexecutionsV1beta::ListExecutionsResponse::Representation
|
|
192
|
+
command.response_class = Google::Apis::WorkflowexecutionsV1beta::ListExecutionsResponse
|
|
193
|
+
command.params['parent'] = parent unless parent.nil?
|
|
194
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
195
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
196
|
+
command.query['view'] = view unless view.nil?
|
|
197
|
+
command.query['fields'] = fields unless fields.nil?
|
|
198
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
199
|
+
execute_or_queue_command(command, &block)
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
protected
|
|
203
|
+
|
|
204
|
+
def apply_command_defaults(command)
|
|
205
|
+
command.query['key'] = key unless key.nil?
|
|
206
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
end
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://devsite.googleplex.com/youtube/partner/docs/v1/
|
|
27
27
|
module YoutubePartnerV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20200914'
|
|
30
30
|
|
|
31
31
|
# View and manage your assets and associated content on YouTube
|
|
32
32
|
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
|
@@ -1361,6 +1361,84 @@ module Google
|
|
|
1361
1361
|
execute_or_queue_command(command, &block)
|
|
1362
1362
|
end
|
|
1363
1363
|
|
|
1364
|
+
# Retrieves all infocards for a given video.
|
|
1365
|
+
# @param [Array<String>, String] part
|
|
1366
|
+
# The properties to return.
|
|
1367
|
+
# @param [String] on_behalf_of_content_owner
|
|
1368
|
+
# Content owner of the video.
|
|
1369
|
+
# @param [String] video_id
|
|
1370
|
+
# Encrypted id of the video.
|
|
1371
|
+
# @param [String] fields
|
|
1372
|
+
# Selector specifying which fields to include in a partial response.
|
|
1373
|
+
# @param [String] quota_user
|
|
1374
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1375
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1376
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1377
|
+
# Request-specific options
|
|
1378
|
+
#
|
|
1379
|
+
# @yield [result, err] Result & error if block supplied
|
|
1380
|
+
# @yieldparam result [Google::Apis::YoutubeV3::InfocardListResponse] parsed result object
|
|
1381
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1382
|
+
#
|
|
1383
|
+
# @return [Google::Apis::YoutubeV3::InfocardListResponse]
|
|
1384
|
+
#
|
|
1385
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1386
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1387
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1388
|
+
def list_infocards(part, on_behalf_of_content_owner: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1389
|
+
command = make_simple_command(:get, 'youtube/v3/infocards', options)
|
|
1390
|
+
command.response_representation = Google::Apis::YoutubeV3::InfocardListResponse::Representation
|
|
1391
|
+
command.response_class = Google::Apis::YoutubeV3::InfocardListResponse
|
|
1392
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
1393
|
+
command.query['part'] = part unless part.nil?
|
|
1394
|
+
command.query['videoId'] = video_id unless video_id.nil?
|
|
1395
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1396
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1397
|
+
execute_or_queue_command(command, &block)
|
|
1398
|
+
end
|
|
1399
|
+
|
|
1400
|
+
# Updates infocards for a given video. Note: * If the card id is not provided, a
|
|
1401
|
+
# new card will be created. * If the card id is provided, that card will be
|
|
1402
|
+
# updated. * Existing cards will be discarded if they're not included in the
|
|
1403
|
+
# request.
|
|
1404
|
+
# @param [Array<String>, String] part
|
|
1405
|
+
# The properties to update.
|
|
1406
|
+
# @param [Google::Apis::YoutubeV3::InfoCards] info_cards_object
|
|
1407
|
+
# @param [String] on_behalf_of_content_owner
|
|
1408
|
+
# Content owner of the video.
|
|
1409
|
+
# @param [String] video_id
|
|
1410
|
+
# Encrypted id of the video.
|
|
1411
|
+
# @param [String] fields
|
|
1412
|
+
# Selector specifying which fields to include in a partial response.
|
|
1413
|
+
# @param [String] quota_user
|
|
1414
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1415
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1416
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1417
|
+
# Request-specific options
|
|
1418
|
+
#
|
|
1419
|
+
# @yield [result, err] Result & error if block supplied
|
|
1420
|
+
# @yieldparam result [Google::Apis::YoutubeV3::InfoCards] parsed result object
|
|
1421
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1422
|
+
#
|
|
1423
|
+
# @return [Google::Apis::YoutubeV3::InfoCards]
|
|
1424
|
+
#
|
|
1425
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1426
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1427
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1428
|
+
def update_infocard(part, info_cards_object = nil, on_behalf_of_content_owner: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1429
|
+
command = make_simple_command(:post, 'youtube/v3/infocards', options)
|
|
1430
|
+
command.request_representation = Google::Apis::YoutubeV3::InfoCards::Representation
|
|
1431
|
+
command.request_object = info_cards_object
|
|
1432
|
+
command.response_representation = Google::Apis::YoutubeV3::InfoCards::Representation
|
|
1433
|
+
command.response_class = Google::Apis::YoutubeV3::InfoCards
|
|
1434
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
1435
|
+
command.query['part'] = part unless part.nil?
|
|
1436
|
+
command.query['videoId'] = video_id unless video_id.nil?
|
|
1437
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1438
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1439
|
+
execute_or_queue_command(command, &block)
|
|
1440
|
+
end
|
|
1441
|
+
|
|
1364
1442
|
# Bind a broadcast to a stream.
|
|
1365
1443
|
# @param [String] id
|
|
1366
1444
|
# Broadcast to bind to the stream
|
|
@@ -4041,84 +4119,6 @@ module Google
|
|
|
4041
4119
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4042
4120
|
execute_or_queue_command(command, &block)
|
|
4043
4121
|
end
|
|
4044
|
-
|
|
4045
|
-
# Updates infocards for a given video. Note: * If the card id is not provided, a
|
|
4046
|
-
# new card will be created. * If the card id is provided, that card will be
|
|
4047
|
-
# updated. * Existing cards will be discarded if they're not included in the
|
|
4048
|
-
# request.
|
|
4049
|
-
# @param [Array<String>, String] part
|
|
4050
|
-
# The properties to update.
|
|
4051
|
-
# @param [Google::Apis::YoutubeV3::InfoCards] info_cards_object
|
|
4052
|
-
# @param [String] on_behalf_of_content_owner
|
|
4053
|
-
# Content owner of the video.
|
|
4054
|
-
# @param [String] video_id
|
|
4055
|
-
# Encrypted id of the video.
|
|
4056
|
-
# @param [String] fields
|
|
4057
|
-
# Selector specifying which fields to include in a partial response.
|
|
4058
|
-
# @param [String] quota_user
|
|
4059
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
4060
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4061
|
-
# @param [Google::Apis::RequestOptions] options
|
|
4062
|
-
# Request-specific options
|
|
4063
|
-
#
|
|
4064
|
-
# @yield [result, err] Result & error if block supplied
|
|
4065
|
-
# @yieldparam result [Google::Apis::YoutubeV3::InfoCards] parsed result object
|
|
4066
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
4067
|
-
#
|
|
4068
|
-
# @return [Google::Apis::YoutubeV3::InfoCards]
|
|
4069
|
-
#
|
|
4070
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4071
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4072
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4073
|
-
def infocards_youtube_v3(part, info_cards_object = nil, on_behalf_of_content_owner: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
4074
|
-
command = make_simple_command(:post, 'youtube/v3/infocards', options)
|
|
4075
|
-
command.request_representation = Google::Apis::YoutubeV3::InfoCards::Representation
|
|
4076
|
-
command.request_object = info_cards_object
|
|
4077
|
-
command.response_representation = Google::Apis::YoutubeV3::InfoCards::Representation
|
|
4078
|
-
command.response_class = Google::Apis::YoutubeV3::InfoCards
|
|
4079
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
4080
|
-
command.query['part'] = part unless part.nil?
|
|
4081
|
-
command.query['videoId'] = video_id unless video_id.nil?
|
|
4082
|
-
command.query['fields'] = fields unless fields.nil?
|
|
4083
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4084
|
-
execute_or_queue_command(command, &block)
|
|
4085
|
-
end
|
|
4086
|
-
|
|
4087
|
-
# Retrieves all infocards for a given video.
|
|
4088
|
-
# @param [Array<String>, String] part
|
|
4089
|
-
# The properties to return.
|
|
4090
|
-
# @param [String] on_behalf_of_content_owner
|
|
4091
|
-
# Content owner of the video.
|
|
4092
|
-
# @param [String] video_id
|
|
4093
|
-
# Encrypted id of the video.
|
|
4094
|
-
# @param [String] fields
|
|
4095
|
-
# Selector specifying which fields to include in a partial response.
|
|
4096
|
-
# @param [String] quota_user
|
|
4097
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
4098
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
4099
|
-
# @param [Google::Apis::RequestOptions] options
|
|
4100
|
-
# Request-specific options
|
|
4101
|
-
#
|
|
4102
|
-
# @yield [result, err] Result & error if block supplied
|
|
4103
|
-
# @yieldparam result [Google::Apis::YoutubeV3::InfocardListResponse] parsed result object
|
|
4104
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
4105
|
-
#
|
|
4106
|
-
# @return [Google::Apis::YoutubeV3::InfocardListResponse]
|
|
4107
|
-
#
|
|
4108
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
4109
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
4110
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
4111
|
-
def list_youtube_v3_infocards(part, on_behalf_of_content_owner: nil, video_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
4112
|
-
command = make_simple_command(:get, 'youtube/v3/infocards', options)
|
|
4113
|
-
command.response_representation = Google::Apis::YoutubeV3::InfocardListResponse::Representation
|
|
4114
|
-
command.response_class = Google::Apis::YoutubeV3::InfocardListResponse
|
|
4115
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
|
4116
|
-
command.query['part'] = part unless part.nil?
|
|
4117
|
-
command.query['videoId'] = video_id unless video_id.nil?
|
|
4118
|
-
command.query['fields'] = fields unless fields.nil?
|
|
4119
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
4120
|
-
execute_or_queue_command(command, &block)
|
|
4121
|
-
end
|
|
4122
4122
|
|
|
4123
4123
|
protected
|
|
4124
4124
|
|