google-api-client 0.30.8 → 0.30.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +108 -0
- data/README.md +1 -1
- data/api_names.yaml +16 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +51 -0
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +16 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +30 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +2 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +55 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +6 -0
- data/generated/google/apis/admin_directory_v1/service.rb +11 -10
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +235 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +95 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +99 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +6 -0
- data/generated/google/apis/analytics_v3/representations.rb +1 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +3 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +2 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +65 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +33 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -2
- data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +12 -12
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +39 -2
- data/generated/google/apis/androidpublisher_v3/representations.rb +4 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +25 -13
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +137 -5
- data/generated/google/apis/bigquery_v2/representations.rb +64 -0
- data/generated/google/apis/bigquery_v2/service.rb +5 -1
- data/generated/google/apis/bigquerydatatransfer_v1.rb +4 -1
- data/generated/google/apis/bigqueryreservation_v1.rb +37 -0
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +216 -0
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +112 -0
- data/generated/google/apis/bigqueryreservation_v1/service.rb +139 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +37 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +514 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +237 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +714 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +2 -2
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +2 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +0 -9
- data/generated/google/apis/cloudasset_v1/representations.rb +0 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +0 -9
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +0 -1
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +14 -4
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +6 -2
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +18 -22
- data/generated/google/apis/cloudfunctions_v1/service.rb +7 -1
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +8 -11
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +26 -11
- data/generated/google/apis/cloudkms_v1/representations.rb +2 -0
- data/generated/google/apis/cloudkms_v1/service.rb +28 -16
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +0 -9
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +0 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -4
- data/generated/google/apis/cloudscheduler_v1/service.rb +7 -14
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -4
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +7 -14
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +0 -18
- data/generated/google/apis/cloudsearch_v1/representations.rb +0 -2
- data/generated/google/apis/cloudsearch_v1/service.rb +17 -9
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +59 -17
- data/generated/google/apis/cloudtasks_v2/representations.rb +15 -0
- data/generated/google/apis/cloudtasks_v2/service.rb +12 -24
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +35 -12
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +15 -0
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +16 -32
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +30 -2
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +15 -0
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +12 -24
- data/generated/google/apis/compute_v1/service.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +138 -138
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +54 -32
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +19 -135
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +2 -32
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +10 -5
- data/generated/google/apis/content_v2/service.rb +3 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +618 -6
- data/generated/google/apis/content_v2_1/representations.rb +271 -0
- data/generated/google/apis/content_v2_1/service.rb +357 -2
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +69 -8
- data/generated/google/apis/dataproc_v1/representations.rb +18 -0
- data/generated/google/apis/dataproc_v1/service.rb +121 -57
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +35 -11
- data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +203 -97
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/service.rb +94 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +51 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +16 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +1989 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +1 -1
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +6 -6
- data/generated/google/apis/drive_v3/service.rb +6 -6
- data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
- data/generated/google/apis/factchecktools_v1alpha1/classes.rb +6 -0
- data/generated/google/apis/factchecktools_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +419 -0
- data/generated/google/apis/fcm_v1/representations.rb +45 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +12 -1
- data/generated/google/apis/file_v1/representations.rb +1 -0
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +12 -1
- data/generated/google/apis/file_v1beta1/representations.rb +1 -0
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +164 -4
- data/generated/google/apis/firebase_v1beta1/representations.rb +71 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +165 -2
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +27 -6
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +3 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +6 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +1 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +1 -2
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +1 -2
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +18 -7
- data/generated/google/apis/genomics_v2alpha1/service.rb +5 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +367 -99
- data/generated/google/apis/groupssettings_v1/service.rb +3 -3
- data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +4 -21
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +0 -2
- data/generated/google/apis/healthcare_v1alpha2/service.rb +101 -117
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +18 -13
- data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +90 -22
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +31 -1
- data/generated/google/apis/iam_v1/representations.rb +14 -0
- data/generated/google/apis/iam_v1/service.rb +45 -4
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +1 -1
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +2 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +2 -1
- data/generated/google/apis/libraryagent_v1.rb +1 -1
- data/generated/google/apis/libraryagent_v1/service.rb +5 -5
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +2 -2
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +63 -9
- data/generated/google/apis/ml_v1/representations.rb +16 -1
- data/generated/google/apis/ml_v1/service.rb +2 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +29 -2
- data/generated/google/apis/monitoring_v3/representations.rb +4 -0
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +7 -0
- data/generated/google/apis/people_v1/representations.rb +1 -0
- data/generated/google/apis/people_v1/service.rb +5 -4
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +12 -11
- data/generated/google/apis/pubsub_v1/service.rb +3 -3
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +2 -2
- data/generated/google/apis/pubsub_v1beta2/service.rb +2 -2
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +32 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +16 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +32 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +16 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +32 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +16 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +25 -0
- data/generated/google/apis/run_v1/representations.rb +15 -0
- data/generated/google/apis/run_v1/service.rb +39 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +338 -22
- data/generated/google/apis/run_v1alpha1/representations.rb +141 -1
- data/generated/google/apis/run_v1alpha1/service.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +16 -13
- data/generated/google/apis/securitycenter_v1/representations.rb +0 -1
- data/generated/google/apis/securitycenter_v1/service.rb +19 -6
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +1 -10
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -1
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/service.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/service.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +4 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +54 -19
- data/generated/google/apis/servicecontrol_v1/representations.rb +17 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +11 -20
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +0 -2
- data/generated/google/apis/serviceusage_v1/service.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +53 -10
- data/generated/google/apis/sheets_v4/representations.rb +17 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +50 -54
- data/generated/google/apis/spanner_v1/service.rb +8 -15
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +2 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +9 -16
- data/generated/google/apis/{run_v1beta1.rb → speech_v2beta.rb} +9 -10
- data/generated/google/apis/speech_v2beta/classes.rb +355 -0
- data/generated/google/apis/speech_v2beta/representations.rb +152 -0
- data/generated/google/apis/speech_v2beta/service.rb +138 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +14 -12
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +44 -9
- data/generated/google/apis/toolresults_v1beta3/representations.rb +2 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +3 -6
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +12 -0
- data/generated/google/apis/tpu_v1/representations.rb +2 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +12 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +2 -0
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +72 -0
- data/generated/google/apis/translate_v3beta1/representations.rb +32 -0
- data/generated/google/apis/translate_v3beta1/service.rb +82 -7
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +579 -0
- data/generated/google/apis/vision_v1/representations.rb +172 -0
- data/generated/google/apis/vision_v1/service.rb +404 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +523 -0
- data/generated/google/apis/vision_v1p1beta1/representations.rb +143 -0
- data/generated/google/apis/vision_v1p1beta1/service.rb +352 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +187 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +23 -0
- data/generated/google/apis/vision_v1p2beta1/service.rb +352 -0
- data/generated/google/apis/websecurityscanner_v1.rb +4 -1
- data/generated/google/apis/websecurityscanner_v1/classes.rb +924 -0
- data/generated/google/apis/websecurityscanner_v1/representations.rb +426 -0
- data/generated/google/apis/websecurityscanner_v1/service.rb +487 -0
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +2 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +322 -0
- data/generated/google/apis/youtube_v3/representations.rb +139 -0
- data/generated/google/apis/youtube_v3/service.rb +85 -0
- data/lib/google/api_client/client_secrets.rb +1 -2
- data/lib/google/apis/core/api_command.rb +12 -0
- data/lib/google/apis/core/batch.rb +2 -0
- data/lib/google/apis/core/http_command.rb +8 -1
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/generator/annotator.rb +1 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -6
- data/generated/google/apis/run_v1beta1/classes.rb +0 -98
- data/generated/google/apis/run_v1beta1/representations.rb +0 -58
- data/generated/google/apis/run_v1beta1/service.rb +0 -99
@@ -184,6 +184,358 @@ module Google
|
|
184
184
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
185
185
|
execute_or_queue_command(command, &block)
|
186
186
|
end
|
187
|
+
|
188
|
+
# Service that performs image detection and annotation for a batch of files.
|
189
|
+
# Now only "application/pdf", "image/tiff" and "image/gif" are supported.
|
190
|
+
# This service will extract at most 5 (customers can specify which 5 in
|
191
|
+
# AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each
|
192
|
+
# file provided and perform detection and annotation for each image
|
193
|
+
# extracted.
|
194
|
+
# @param [String] parent
|
195
|
+
# Optional. Target project and location to make a call.
|
196
|
+
# Format: `projects/`project-id`/locations/`location-id``.
|
197
|
+
# If no parent is specified, a region will be chosen automatically.
|
198
|
+
# Supported location-ids:
|
199
|
+
# `us`: USA country only,
|
200
|
+
# `asia`: East asia areas, like Japan, Taiwan,
|
201
|
+
# `eu`: The European Union.
|
202
|
+
# Example: `projects/project-A/locations/eu`.
|
203
|
+
# @param [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest] google_cloud_vision_v1p2beta1_batch_annotate_files_request_object
|
204
|
+
# @param [String] fields
|
205
|
+
# Selector specifying which fields to include in a partial response.
|
206
|
+
# @param [String] quota_user
|
207
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
208
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
209
|
+
# @param [Google::Apis::RequestOptions] options
|
210
|
+
# Request-specific options
|
211
|
+
#
|
212
|
+
# @yield [result, err] Result & error if block supplied
|
213
|
+
# @yieldparam result [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse] parsed result object
|
214
|
+
# @yieldparam err [StandardError] error object if request failed
|
215
|
+
#
|
216
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse]
|
217
|
+
#
|
218
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
219
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
220
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
221
|
+
def annotate_project_file(parent, google_cloud_vision_v1p2beta1_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
222
|
+
command = make_simple_command(:post, 'v1p2beta1/{+parent}/files:annotate', options)
|
223
|
+
command.request_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest::Representation
|
224
|
+
command.request_object = google_cloud_vision_v1p2beta1_batch_annotate_files_request_object
|
225
|
+
command.response_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse::Representation
|
226
|
+
command.response_class = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse
|
227
|
+
command.params['parent'] = parent unless parent.nil?
|
228
|
+
command.query['fields'] = fields unless fields.nil?
|
229
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
230
|
+
execute_or_queue_command(command, &block)
|
231
|
+
end
|
232
|
+
|
233
|
+
# Run asynchronous image detection and annotation for a list of generic
|
234
|
+
# files, such as PDF files, which may contain multiple pages and multiple
|
235
|
+
# images per page. Progress and results can be retrieved through the
|
236
|
+
# `google.longrunning.Operations` interface.
|
237
|
+
# `Operation.metadata` contains `OperationMetadata` (metadata).
|
238
|
+
# `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
|
239
|
+
# @param [String] parent
|
240
|
+
# Optional. Target project and location to make a call.
|
241
|
+
# Format: `projects/`project-id`/locations/`location-id``.
|
242
|
+
# If no parent is specified, a region will be chosen automatically.
|
243
|
+
# Supported location-ids:
|
244
|
+
# `us`: USA country only,
|
245
|
+
# `asia`: East asia areas, like Japan, Taiwan,
|
246
|
+
# `eu`: The European Union.
|
247
|
+
# Example: `projects/project-A/locations/eu`.
|
248
|
+
# @param [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest] google_cloud_vision_v1p2beta1_async_batch_annotate_files_request_object
|
249
|
+
# @param [String] fields
|
250
|
+
# Selector specifying which fields to include in a partial response.
|
251
|
+
# @param [String] quota_user
|
252
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
253
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
254
|
+
# @param [Google::Apis::RequestOptions] options
|
255
|
+
# Request-specific options
|
256
|
+
#
|
257
|
+
# @yield [result, err] Result & error if block supplied
|
258
|
+
# @yieldparam result [Google::Apis::VisionV1p2beta1::Operation] parsed result object
|
259
|
+
# @yieldparam err [StandardError] error object if request failed
|
260
|
+
#
|
261
|
+
# @return [Google::Apis::VisionV1p2beta1::Operation]
|
262
|
+
#
|
263
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
264
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
265
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
266
|
+
def async_project_file_batch_annotate(parent, google_cloud_vision_v1p2beta1_async_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
267
|
+
command = make_simple_command(:post, 'v1p2beta1/{+parent}/files:asyncBatchAnnotate', options)
|
268
|
+
command.request_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest::Representation
|
269
|
+
command.request_object = google_cloud_vision_v1p2beta1_async_batch_annotate_files_request_object
|
270
|
+
command.response_representation = Google::Apis::VisionV1p2beta1::Operation::Representation
|
271
|
+
command.response_class = Google::Apis::VisionV1p2beta1::Operation
|
272
|
+
command.params['parent'] = parent unless parent.nil?
|
273
|
+
command.query['fields'] = fields unless fields.nil?
|
274
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
275
|
+
execute_or_queue_command(command, &block)
|
276
|
+
end
|
277
|
+
|
278
|
+
# Run image detection and annotation for a batch of images.
|
279
|
+
# @param [String] parent
|
280
|
+
# Optional. Target project and location to make a call.
|
281
|
+
# Format: `projects/`project-id`/locations/`location-id``.
|
282
|
+
# If no parent is specified, a region will be chosen automatically.
|
283
|
+
# Supported location-ids:
|
284
|
+
# `us`: USA country only,
|
285
|
+
# `asia`: East asia areas, like Japan, Taiwan,
|
286
|
+
# `eu`: The European Union.
|
287
|
+
# Example: `projects/project-A/locations/eu`.
|
288
|
+
# @param [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest] google_cloud_vision_v1p2beta1_batch_annotate_images_request_object
|
289
|
+
# @param [String] fields
|
290
|
+
# Selector specifying which fields to include in a partial response.
|
291
|
+
# @param [String] quota_user
|
292
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
293
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
294
|
+
# @param [Google::Apis::RequestOptions] options
|
295
|
+
# Request-specific options
|
296
|
+
#
|
297
|
+
# @yield [result, err] Result & error if block supplied
|
298
|
+
# @yieldparam result [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse] parsed result object
|
299
|
+
# @yieldparam err [StandardError] error object if request failed
|
300
|
+
#
|
301
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse]
|
302
|
+
#
|
303
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
304
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
305
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
306
|
+
def annotate_project_image(parent, google_cloud_vision_v1p2beta1_batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
307
|
+
command = make_simple_command(:post, 'v1p2beta1/{+parent}/images:annotate', options)
|
308
|
+
command.request_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest::Representation
|
309
|
+
command.request_object = google_cloud_vision_v1p2beta1_batch_annotate_images_request_object
|
310
|
+
command.response_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse::Representation
|
311
|
+
command.response_class = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse
|
312
|
+
command.params['parent'] = parent unless parent.nil?
|
313
|
+
command.query['fields'] = fields unless fields.nil?
|
314
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
315
|
+
execute_or_queue_command(command, &block)
|
316
|
+
end
|
317
|
+
|
318
|
+
# Run asynchronous image detection and annotation for a list of images.
|
319
|
+
# Progress and results can be retrieved through the
|
320
|
+
# `google.longrunning.Operations` interface.
|
321
|
+
# `Operation.metadata` contains `OperationMetadata` (metadata).
|
322
|
+
# `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results).
|
323
|
+
# This service will write image annotation outputs to json files in customer
|
324
|
+
# GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
|
325
|
+
# @param [String] parent
|
326
|
+
# Optional. Target project and location to make a call.
|
327
|
+
# Format: `projects/`project-id`/locations/`location-id``.
|
328
|
+
# If no parent is specified, a region will be chosen automatically.
|
329
|
+
# Supported location-ids:
|
330
|
+
# `us`: USA country only,
|
331
|
+
# `asia`: East asia areas, like Japan, Taiwan,
|
332
|
+
# `eu`: The European Union.
|
333
|
+
# Example: `projects/project-A/locations/eu`.
|
334
|
+
# @param [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest] google_cloud_vision_v1p2beta1_async_batch_annotate_images_request_object
|
335
|
+
# @param [String] fields
|
336
|
+
# Selector specifying which fields to include in a partial response.
|
337
|
+
# @param [String] quota_user
|
338
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
339
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
340
|
+
# @param [Google::Apis::RequestOptions] options
|
341
|
+
# Request-specific options
|
342
|
+
#
|
343
|
+
# @yield [result, err] Result & error if block supplied
|
344
|
+
# @yieldparam result [Google::Apis::VisionV1p2beta1::Operation] parsed result object
|
345
|
+
# @yieldparam err [StandardError] error object if request failed
|
346
|
+
#
|
347
|
+
# @return [Google::Apis::VisionV1p2beta1::Operation]
|
348
|
+
#
|
349
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
350
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
351
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
352
|
+
def async_project_image_batch_annotate(parent, google_cloud_vision_v1p2beta1_async_batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
353
|
+
command = make_simple_command(:post, 'v1p2beta1/{+parent}/images:asyncBatchAnnotate', options)
|
354
|
+
command.request_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest::Representation
|
355
|
+
command.request_object = google_cloud_vision_v1p2beta1_async_batch_annotate_images_request_object
|
356
|
+
command.response_representation = Google::Apis::VisionV1p2beta1::Operation::Representation
|
357
|
+
command.response_class = Google::Apis::VisionV1p2beta1::Operation
|
358
|
+
command.params['parent'] = parent unless parent.nil?
|
359
|
+
command.query['fields'] = fields unless fields.nil?
|
360
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
361
|
+
execute_or_queue_command(command, &block)
|
362
|
+
end
|
363
|
+
|
364
|
+
# Service that performs image detection and annotation for a batch of files.
|
365
|
+
# Now only "application/pdf", "image/tiff" and "image/gif" are supported.
|
366
|
+
# This service will extract at most 5 (customers can specify which 5 in
|
367
|
+
# AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each
|
368
|
+
# file provided and perform detection and annotation for each image
|
369
|
+
# extracted.
|
370
|
+
# @param [String] parent
|
371
|
+
# Optional. Target project and location to make a call.
|
372
|
+
# Format: `projects/`project-id`/locations/`location-id``.
|
373
|
+
# If no parent is specified, a region will be chosen automatically.
|
374
|
+
# Supported location-ids:
|
375
|
+
# `us`: USA country only,
|
376
|
+
# `asia`: East asia areas, like Japan, Taiwan,
|
377
|
+
# `eu`: The European Union.
|
378
|
+
# Example: `projects/project-A/locations/eu`.
|
379
|
+
# @param [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest] google_cloud_vision_v1p2beta1_batch_annotate_files_request_object
|
380
|
+
# @param [String] fields
|
381
|
+
# Selector specifying which fields to include in a partial response.
|
382
|
+
# @param [String] quota_user
|
383
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
384
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
385
|
+
# @param [Google::Apis::RequestOptions] options
|
386
|
+
# Request-specific options
|
387
|
+
#
|
388
|
+
# @yield [result, err] Result & error if block supplied
|
389
|
+
# @yieldparam result [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse] parsed result object
|
390
|
+
# @yieldparam err [StandardError] error object if request failed
|
391
|
+
#
|
392
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse]
|
393
|
+
#
|
394
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
395
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
396
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
397
|
+
def annotate_project_location_file(parent, google_cloud_vision_v1p2beta1_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
398
|
+
command = make_simple_command(:post, 'v1p2beta1/{+parent}/files:annotate', options)
|
399
|
+
command.request_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesRequest::Representation
|
400
|
+
command.request_object = google_cloud_vision_v1p2beta1_batch_annotate_files_request_object
|
401
|
+
command.response_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse::Representation
|
402
|
+
command.response_class = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateFilesResponse
|
403
|
+
command.params['parent'] = parent unless parent.nil?
|
404
|
+
command.query['fields'] = fields unless fields.nil?
|
405
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
406
|
+
execute_or_queue_command(command, &block)
|
407
|
+
end
|
408
|
+
|
409
|
+
# Run asynchronous image detection and annotation for a list of generic
|
410
|
+
# files, such as PDF files, which may contain multiple pages and multiple
|
411
|
+
# images per page. Progress and results can be retrieved through the
|
412
|
+
# `google.longrunning.Operations` interface.
|
413
|
+
# `Operation.metadata` contains `OperationMetadata` (metadata).
|
414
|
+
# `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
|
415
|
+
# @param [String] parent
|
416
|
+
# Optional. Target project and location to make a call.
|
417
|
+
# Format: `projects/`project-id`/locations/`location-id``.
|
418
|
+
# If no parent is specified, a region will be chosen automatically.
|
419
|
+
# Supported location-ids:
|
420
|
+
# `us`: USA country only,
|
421
|
+
# `asia`: East asia areas, like Japan, Taiwan,
|
422
|
+
# `eu`: The European Union.
|
423
|
+
# Example: `projects/project-A/locations/eu`.
|
424
|
+
# @param [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest] google_cloud_vision_v1p2beta1_async_batch_annotate_files_request_object
|
425
|
+
# @param [String] fields
|
426
|
+
# Selector specifying which fields to include in a partial response.
|
427
|
+
# @param [String] quota_user
|
428
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
429
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
430
|
+
# @param [Google::Apis::RequestOptions] options
|
431
|
+
# Request-specific options
|
432
|
+
#
|
433
|
+
# @yield [result, err] Result & error if block supplied
|
434
|
+
# @yieldparam result [Google::Apis::VisionV1p2beta1::Operation] parsed result object
|
435
|
+
# @yieldparam err [StandardError] error object if request failed
|
436
|
+
#
|
437
|
+
# @return [Google::Apis::VisionV1p2beta1::Operation]
|
438
|
+
#
|
439
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
440
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
441
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
442
|
+
def async_project_location_file_batch_annotate(parent, google_cloud_vision_v1p2beta1_async_batch_annotate_files_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
443
|
+
command = make_simple_command(:post, 'v1p2beta1/{+parent}/files:asyncBatchAnnotate', options)
|
444
|
+
command.request_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesRequest::Representation
|
445
|
+
command.request_object = google_cloud_vision_v1p2beta1_async_batch_annotate_files_request_object
|
446
|
+
command.response_representation = Google::Apis::VisionV1p2beta1::Operation::Representation
|
447
|
+
command.response_class = Google::Apis::VisionV1p2beta1::Operation
|
448
|
+
command.params['parent'] = parent unless parent.nil?
|
449
|
+
command.query['fields'] = fields unless fields.nil?
|
450
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
451
|
+
execute_or_queue_command(command, &block)
|
452
|
+
end
|
453
|
+
|
454
|
+
# Run image detection and annotation for a batch of images.
|
455
|
+
# @param [String] parent
|
456
|
+
# Optional. Target project and location to make a call.
|
457
|
+
# Format: `projects/`project-id`/locations/`location-id``.
|
458
|
+
# If no parent is specified, a region will be chosen automatically.
|
459
|
+
# Supported location-ids:
|
460
|
+
# `us`: USA country only,
|
461
|
+
# `asia`: East asia areas, like Japan, Taiwan,
|
462
|
+
# `eu`: The European Union.
|
463
|
+
# Example: `projects/project-A/locations/eu`.
|
464
|
+
# @param [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest] google_cloud_vision_v1p2beta1_batch_annotate_images_request_object
|
465
|
+
# @param [String] fields
|
466
|
+
# Selector specifying which fields to include in a partial response.
|
467
|
+
# @param [String] quota_user
|
468
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
469
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
470
|
+
# @param [Google::Apis::RequestOptions] options
|
471
|
+
# Request-specific options
|
472
|
+
#
|
473
|
+
# @yield [result, err] Result & error if block supplied
|
474
|
+
# @yieldparam result [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse] parsed result object
|
475
|
+
# @yieldparam err [StandardError] error object if request failed
|
476
|
+
#
|
477
|
+
# @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse]
|
478
|
+
#
|
479
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
480
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
481
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
482
|
+
def annotate_project_location_image(parent, google_cloud_vision_v1p2beta1_batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
483
|
+
command = make_simple_command(:post, 'v1p2beta1/{+parent}/images:annotate', options)
|
484
|
+
command.request_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesRequest::Representation
|
485
|
+
command.request_object = google_cloud_vision_v1p2beta1_batch_annotate_images_request_object
|
486
|
+
command.response_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse::Representation
|
487
|
+
command.response_class = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1BatchAnnotateImagesResponse
|
488
|
+
command.params['parent'] = parent unless parent.nil?
|
489
|
+
command.query['fields'] = fields unless fields.nil?
|
490
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
491
|
+
execute_or_queue_command(command, &block)
|
492
|
+
end
|
493
|
+
|
494
|
+
# Run asynchronous image detection and annotation for a list of images.
|
495
|
+
# Progress and results can be retrieved through the
|
496
|
+
# `google.longrunning.Operations` interface.
|
497
|
+
# `Operation.metadata` contains `OperationMetadata` (metadata).
|
498
|
+
# `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results).
|
499
|
+
# This service will write image annotation outputs to json files in customer
|
500
|
+
# GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
|
501
|
+
# @param [String] parent
|
502
|
+
# Optional. Target project and location to make a call.
|
503
|
+
# Format: `projects/`project-id`/locations/`location-id``.
|
504
|
+
# If no parent is specified, a region will be chosen automatically.
|
505
|
+
# Supported location-ids:
|
506
|
+
# `us`: USA country only,
|
507
|
+
# `asia`: East asia areas, like Japan, Taiwan,
|
508
|
+
# `eu`: The European Union.
|
509
|
+
# Example: `projects/project-A/locations/eu`.
|
510
|
+
# @param [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest] google_cloud_vision_v1p2beta1_async_batch_annotate_images_request_object
|
511
|
+
# @param [String] fields
|
512
|
+
# Selector specifying which fields to include in a partial response.
|
513
|
+
# @param [String] quota_user
|
514
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
515
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
516
|
+
# @param [Google::Apis::RequestOptions] options
|
517
|
+
# Request-specific options
|
518
|
+
#
|
519
|
+
# @yield [result, err] Result & error if block supplied
|
520
|
+
# @yieldparam result [Google::Apis::VisionV1p2beta1::Operation] parsed result object
|
521
|
+
# @yieldparam err [StandardError] error object if request failed
|
522
|
+
#
|
523
|
+
# @return [Google::Apis::VisionV1p2beta1::Operation]
|
524
|
+
#
|
525
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
526
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
527
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
528
|
+
def async_project_location_image_batch_annotate(parent, google_cloud_vision_v1p2beta1_async_batch_annotate_images_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
529
|
+
command = make_simple_command(:post, 'v1p2beta1/{+parent}/images:asyncBatchAnnotate', options)
|
530
|
+
command.request_representation = Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest::Representation
|
531
|
+
command.request_object = google_cloud_vision_v1p2beta1_async_batch_annotate_images_request_object
|
532
|
+
command.response_representation = Google::Apis::VisionV1p2beta1::Operation::Representation
|
533
|
+
command.response_class = Google::Apis::VisionV1p2beta1::Operation
|
534
|
+
command.params['parent'] = parent unless parent.nil?
|
535
|
+
command.query['fields'] = fields unless fields.nil?
|
536
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
537
|
+
execute_or_queue_command(command, &block)
|
538
|
+
end
|
187
539
|
|
188
540
|
protected
|
189
541
|
|
@@ -25,7 +25,10 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/security-scanner/
|
26
26
|
module WebsecurityscannerV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20190805'
|
29
|
+
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
29
32
|
end
|
30
33
|
end
|
31
34
|
end
|
@@ -21,6 +21,930 @@ require 'google/apis/errors'
|
|
21
21
|
module Google
|
22
22
|
module Apis
|
23
23
|
module WebsecurityscannerV1
|
24
|
+
|
25
|
+
# Scan authentication configuration.
|
26
|
+
class Authentication
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Describes authentication configuration that uses a custom account.
|
30
|
+
# Corresponds to the JSON property `customAccount`
|
31
|
+
# @return [Google::Apis::WebsecurityscannerV1::CustomAccount]
|
32
|
+
attr_accessor :custom_account
|
33
|
+
|
34
|
+
# Describes authentication configuration that uses a Google account.
|
35
|
+
# Corresponds to the JSON property `googleAccount`
|
36
|
+
# @return [Google::Apis::WebsecurityscannerV1::GoogleAccount]
|
37
|
+
attr_accessor :google_account
|
38
|
+
|
39
|
+
def initialize(**args)
|
40
|
+
update!(**args)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Update properties of this object
|
44
|
+
def update!(**args)
|
45
|
+
@custom_account = args[:custom_account] if args.key?(:custom_account)
|
46
|
+
@google_account = args[:google_account] if args.key?(:google_account)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
|
51
|
+
# Security Scanner Service crawls the web applications, following all links
|
52
|
+
# within the scope of sites, to find the URLs to test against.
|
53
|
+
class CrawledUrl
|
54
|
+
include Google::Apis::Core::Hashable
|
55
|
+
|
56
|
+
# Output only. The body of the request that was used to visit the URL.
|
57
|
+
# Corresponds to the JSON property `body`
|
58
|
+
# @return [String]
|
59
|
+
attr_accessor :body
|
60
|
+
|
61
|
+
# Output only. The http method of the request that was used to visit the URL, in
|
62
|
+
# uppercase.
|
63
|
+
# Corresponds to the JSON property `httpMethod`
|
64
|
+
# @return [String]
|
65
|
+
attr_accessor :http_method
|
66
|
+
|
67
|
+
# Output only. The URL that was crawled.
|
68
|
+
# Corresponds to the JSON property `url`
|
69
|
+
# @return [String]
|
70
|
+
attr_accessor :url
|
71
|
+
|
72
|
+
def initialize(**args)
|
73
|
+
update!(**args)
|
74
|
+
end
|
75
|
+
|
76
|
+
# Update properties of this object
|
77
|
+
def update!(**args)
|
78
|
+
@body = args[:body] if args.key?(:body)
|
79
|
+
@http_method = args[:http_method] if args.key?(:http_method)
|
80
|
+
@url = args[:url] if args.key?(:url)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# Describes authentication configuration that uses a custom account.
|
85
|
+
class CustomAccount
|
86
|
+
include Google::Apis::Core::Hashable
|
87
|
+
|
88
|
+
# Required. The login form URL of the website.
|
89
|
+
# Corresponds to the JSON property `loginUrl`
|
90
|
+
# @return [String]
|
91
|
+
attr_accessor :login_url
|
92
|
+
|
93
|
+
# Required. Input only. The password of the custom account. The credential is
|
94
|
+
# stored encrypted
|
95
|
+
# and not returned in any response nor included in audit logs.
|
96
|
+
# Corresponds to the JSON property `password`
|
97
|
+
# @return [String]
|
98
|
+
attr_accessor :password
|
99
|
+
|
100
|
+
# Required. The user name of the custom account.
|
101
|
+
# Corresponds to the JSON property `username`
|
102
|
+
# @return [String]
|
103
|
+
attr_accessor :username
|
104
|
+
|
105
|
+
def initialize(**args)
|
106
|
+
update!(**args)
|
107
|
+
end
|
108
|
+
|
109
|
+
# Update properties of this object
|
110
|
+
def update!(**args)
|
111
|
+
@login_url = args[:login_url] if args.key?(:login_url)
|
112
|
+
@password = args[:password] if args.key?(:password)
|
113
|
+
@username = args[:username] if args.key?(:username)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
118
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
119
|
+
# or the response type of an API method. For instance:
|
120
|
+
# service Foo `
|
121
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
122
|
+
# `
|
123
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
124
|
+
class Empty
|
125
|
+
include Google::Apis::Core::Hashable
|
126
|
+
|
127
|
+
def initialize(**args)
|
128
|
+
update!(**args)
|
129
|
+
end
|
130
|
+
|
131
|
+
# Update properties of this object
|
132
|
+
def update!(**args)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# A Finding resource represents a vulnerability instance identified during a
|
137
|
+
# ScanRun.
|
138
|
+
class Finding
|
139
|
+
include Google::Apis::Core::Hashable
|
140
|
+
|
141
|
+
# Output only. The body of the request that triggered the vulnerability.
|
142
|
+
# Corresponds to the JSON property `body`
|
143
|
+
# @return [String]
|
144
|
+
attr_accessor :body
|
145
|
+
|
146
|
+
# Output only. The description of the vulnerability.
|
147
|
+
# Corresponds to the JSON property `description`
|
148
|
+
# @return [String]
|
149
|
+
attr_accessor :description
|
150
|
+
|
151
|
+
# Output only. The URL where the browser lands when the vulnerability is
|
152
|
+
# detected.
|
153
|
+
# Corresponds to the JSON property `finalUrl`
|
154
|
+
# @return [String]
|
155
|
+
attr_accessor :final_url
|
156
|
+
|
157
|
+
# Output only. The type of the Finding.
|
158
|
+
# Detailed and up-to-date information on findings can be found here:
|
159
|
+
# https://cloud.google.com/security-scanner/docs/scan-result-details
|
160
|
+
# Corresponds to the JSON property `findingType`
|
161
|
+
# @return [String]
|
162
|
+
attr_accessor :finding_type
|
163
|
+
|
164
|
+
# ! Information about a vulnerability with an HTML.
|
165
|
+
# Corresponds to the JSON property `form`
|
166
|
+
# @return [Google::Apis::WebsecurityscannerV1::Form]
|
167
|
+
attr_accessor :form
|
168
|
+
|
169
|
+
# Output only. If the vulnerability was originated from nested IFrame, the
|
170
|
+
# immediate
|
171
|
+
# parent IFrame is reported.
|
172
|
+
# Corresponds to the JSON property `frameUrl`
|
173
|
+
# @return [String]
|
174
|
+
attr_accessor :frame_url
|
175
|
+
|
176
|
+
# Output only. The URL produced by the server-side fuzzer and used in the
|
177
|
+
# request that
|
178
|
+
# triggered the vulnerability.
|
179
|
+
# Corresponds to the JSON property `fuzzedUrl`
|
180
|
+
# @return [String]
|
181
|
+
attr_accessor :fuzzed_url
|
182
|
+
|
183
|
+
# Output only. The http method of the request that triggered the vulnerability,
|
184
|
+
# in
|
185
|
+
# uppercase.
|
186
|
+
# Corresponds to the JSON property `httpMethod`
|
187
|
+
# @return [String]
|
188
|
+
attr_accessor :http_method
|
189
|
+
|
190
|
+
# Output only. The resource name of the Finding. The name follows the format of
|
191
|
+
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanruns/`scanRunId`/findings/
|
192
|
+
# `findingId`'.
|
193
|
+
# The finding IDs are generated by the system.
|
194
|
+
# Corresponds to the JSON property `name`
|
195
|
+
# @return [String]
|
196
|
+
attr_accessor :name
|
197
|
+
|
198
|
+
# Information reported for an outdated library.
|
199
|
+
# Corresponds to the JSON property `outdatedLibrary`
|
200
|
+
# @return [Google::Apis::WebsecurityscannerV1::OutdatedLibrary]
|
201
|
+
attr_accessor :outdated_library
|
202
|
+
|
203
|
+
# Output only. The URL containing human-readable payload that user can leverage
|
204
|
+
# to
|
205
|
+
# reproduce the vulnerability.
|
206
|
+
# Corresponds to the JSON property `reproductionUrl`
|
207
|
+
# @return [String]
|
208
|
+
attr_accessor :reproduction_url
|
209
|
+
|
210
|
+
# Output only. The tracking ID uniquely identifies a vulnerability instance
|
211
|
+
# across
|
212
|
+
# multiple ScanRuns.
|
213
|
+
# Corresponds to the JSON property `trackingId`
|
214
|
+
# @return [String]
|
215
|
+
attr_accessor :tracking_id
|
216
|
+
|
217
|
+
# Information regarding any resource causing the vulnerability such
|
218
|
+
# as JavaScript sources, image, audio files, etc.
|
219
|
+
# Corresponds to the JSON property `violatingResource`
|
220
|
+
# @return [Google::Apis::WebsecurityscannerV1::ViolatingResource]
|
221
|
+
attr_accessor :violating_resource
|
222
|
+
|
223
|
+
# Information about vulnerable or missing HTTP Headers.
|
224
|
+
# Corresponds to the JSON property `vulnerableHeaders`
|
225
|
+
# @return [Google::Apis::WebsecurityscannerV1::VulnerableHeaders]
|
226
|
+
attr_accessor :vulnerable_headers
|
227
|
+
|
228
|
+
# Information about vulnerable request parameters.
|
229
|
+
# Corresponds to the JSON property `vulnerableParameters`
|
230
|
+
# @return [Google::Apis::WebsecurityscannerV1::VulnerableParameters]
|
231
|
+
attr_accessor :vulnerable_parameters
|
232
|
+
|
233
|
+
# Information reported for an XSS.
|
234
|
+
# Corresponds to the JSON property `xss`
|
235
|
+
# @return [Google::Apis::WebsecurityscannerV1::Xss]
|
236
|
+
attr_accessor :xss
|
237
|
+
|
238
|
+
def initialize(**args)
|
239
|
+
update!(**args)
|
240
|
+
end
|
241
|
+
|
242
|
+
# Update properties of this object
|
243
|
+
def update!(**args)
|
244
|
+
@body = args[:body] if args.key?(:body)
|
245
|
+
@description = args[:description] if args.key?(:description)
|
246
|
+
@final_url = args[:final_url] if args.key?(:final_url)
|
247
|
+
@finding_type = args[:finding_type] if args.key?(:finding_type)
|
248
|
+
@form = args[:form] if args.key?(:form)
|
249
|
+
@frame_url = args[:frame_url] if args.key?(:frame_url)
|
250
|
+
@fuzzed_url = args[:fuzzed_url] if args.key?(:fuzzed_url)
|
251
|
+
@http_method = args[:http_method] if args.key?(:http_method)
|
252
|
+
@name = args[:name] if args.key?(:name)
|
253
|
+
@outdated_library = args[:outdated_library] if args.key?(:outdated_library)
|
254
|
+
@reproduction_url = args[:reproduction_url] if args.key?(:reproduction_url)
|
255
|
+
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
|
256
|
+
@violating_resource = args[:violating_resource] if args.key?(:violating_resource)
|
257
|
+
@vulnerable_headers = args[:vulnerable_headers] if args.key?(:vulnerable_headers)
|
258
|
+
@vulnerable_parameters = args[:vulnerable_parameters] if args.key?(:vulnerable_parameters)
|
259
|
+
@xss = args[:xss] if args.key?(:xss)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
# A FindingTypeStats resource represents stats regarding a specific FindingType
|
264
|
+
# of Findings under a given ScanRun.
|
265
|
+
class FindingTypeStats
|
266
|
+
include Google::Apis::Core::Hashable
|
267
|
+
|
268
|
+
# Output only. The count of findings belonging to this finding type.
|
269
|
+
# Corresponds to the JSON property `findingCount`
|
270
|
+
# @return [Fixnum]
|
271
|
+
attr_accessor :finding_count
|
272
|
+
|
273
|
+
# Output only. The finding type associated with the stats.
|
274
|
+
# Corresponds to the JSON property `findingType`
|
275
|
+
# @return [String]
|
276
|
+
attr_accessor :finding_type
|
277
|
+
|
278
|
+
def initialize(**args)
|
279
|
+
update!(**args)
|
280
|
+
end
|
281
|
+
|
282
|
+
# Update properties of this object
|
283
|
+
def update!(**args)
|
284
|
+
@finding_count = args[:finding_count] if args.key?(:finding_count)
|
285
|
+
@finding_type = args[:finding_type] if args.key?(:finding_type)
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
# ! Information about a vulnerability with an HTML.
|
290
|
+
class Form
|
291
|
+
include Google::Apis::Core::Hashable
|
292
|
+
|
293
|
+
# ! The URI where to send the form when it's submitted.
|
294
|
+
# Corresponds to the JSON property `actionUri`
|
295
|
+
# @return [String]
|
296
|
+
attr_accessor :action_uri
|
297
|
+
|
298
|
+
# ! The names of form fields related to the vulnerability.
|
299
|
+
# Corresponds to the JSON property `fields`
|
300
|
+
# @return [Array<String>]
|
301
|
+
attr_accessor :fields
|
302
|
+
|
303
|
+
def initialize(**args)
|
304
|
+
update!(**args)
|
305
|
+
end
|
306
|
+
|
307
|
+
# Update properties of this object
|
308
|
+
def update!(**args)
|
309
|
+
@action_uri = args[:action_uri] if args.key?(:action_uri)
|
310
|
+
@fields = args[:fields] if args.key?(:fields)
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
314
|
+
# Describes authentication configuration that uses a Google account.
|
315
|
+
class GoogleAccount
|
316
|
+
include Google::Apis::Core::Hashable
|
317
|
+
|
318
|
+
# Required. Input only. The password of the Google account. The credential is
|
319
|
+
# stored encrypted
|
320
|
+
# and not returned in any response nor included in audit logs.
|
321
|
+
# Corresponds to the JSON property `password`
|
322
|
+
# @return [String]
|
323
|
+
attr_accessor :password
|
324
|
+
|
325
|
+
# Required. The user name of the Google account.
|
326
|
+
# Corresponds to the JSON property `username`
|
327
|
+
# @return [String]
|
328
|
+
attr_accessor :username
|
329
|
+
|
330
|
+
def initialize(**args)
|
331
|
+
update!(**args)
|
332
|
+
end
|
333
|
+
|
334
|
+
# Update properties of this object
|
335
|
+
def update!(**args)
|
336
|
+
@password = args[:password] if args.key?(:password)
|
337
|
+
@username = args[:username] if args.key?(:username)
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
# Describes a HTTP Header.
|
342
|
+
class Header
|
343
|
+
include Google::Apis::Core::Hashable
|
344
|
+
|
345
|
+
# Header name.
|
346
|
+
# Corresponds to the JSON property `name`
|
347
|
+
# @return [String]
|
348
|
+
attr_accessor :name
|
349
|
+
|
350
|
+
# Header value.
|
351
|
+
# Corresponds to the JSON property `value`
|
352
|
+
# @return [String]
|
353
|
+
attr_accessor :value
|
354
|
+
|
355
|
+
def initialize(**args)
|
356
|
+
update!(**args)
|
357
|
+
end
|
358
|
+
|
359
|
+
# Update properties of this object
|
360
|
+
def update!(**args)
|
361
|
+
@name = args[:name] if args.key?(:name)
|
362
|
+
@value = args[:value] if args.key?(:value)
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
# Response for the `ListCrawledUrls` method.
|
367
|
+
class ListCrawledUrlsResponse
|
368
|
+
include Google::Apis::Core::Hashable
|
369
|
+
|
370
|
+
# The list of CrawledUrls returned.
|
371
|
+
# Corresponds to the JSON property `crawledUrls`
|
372
|
+
# @return [Array<Google::Apis::WebsecurityscannerV1::CrawledUrl>]
|
373
|
+
attr_accessor :crawled_urls
|
374
|
+
|
375
|
+
# Token to retrieve the next page of results, or empty if there are no
|
376
|
+
# more results in the list.
|
377
|
+
# Corresponds to the JSON property `nextPageToken`
|
378
|
+
# @return [String]
|
379
|
+
attr_accessor :next_page_token
|
380
|
+
|
381
|
+
def initialize(**args)
|
382
|
+
update!(**args)
|
383
|
+
end
|
384
|
+
|
385
|
+
# Update properties of this object
|
386
|
+
def update!(**args)
|
387
|
+
@crawled_urls = args[:crawled_urls] if args.key?(:crawled_urls)
|
388
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
# Response for the `ListFindingTypeStats` method.
|
393
|
+
class ListFindingTypeStatsResponse
|
394
|
+
include Google::Apis::Core::Hashable
|
395
|
+
|
396
|
+
# The list of FindingTypeStats returned.
|
397
|
+
# Corresponds to the JSON property `findingTypeStats`
|
398
|
+
# @return [Array<Google::Apis::WebsecurityscannerV1::FindingTypeStats>]
|
399
|
+
attr_accessor :finding_type_stats
|
400
|
+
|
401
|
+
def initialize(**args)
|
402
|
+
update!(**args)
|
403
|
+
end
|
404
|
+
|
405
|
+
# Update properties of this object
|
406
|
+
def update!(**args)
|
407
|
+
@finding_type_stats = args[:finding_type_stats] if args.key?(:finding_type_stats)
|
408
|
+
end
|
409
|
+
end
|
410
|
+
|
411
|
+
# Response for the `ListFindings` method.
|
412
|
+
class ListFindingsResponse
|
413
|
+
include Google::Apis::Core::Hashable
|
414
|
+
|
415
|
+
# The list of Findings returned.
|
416
|
+
# Corresponds to the JSON property `findings`
|
417
|
+
# @return [Array<Google::Apis::WebsecurityscannerV1::Finding>]
|
418
|
+
attr_accessor :findings
|
419
|
+
|
420
|
+
# Token to retrieve the next page of results, or empty if there are no
|
421
|
+
# more results in the list.
|
422
|
+
# Corresponds to the JSON property `nextPageToken`
|
423
|
+
# @return [String]
|
424
|
+
attr_accessor :next_page_token
|
425
|
+
|
426
|
+
def initialize(**args)
|
427
|
+
update!(**args)
|
428
|
+
end
|
429
|
+
|
430
|
+
# Update properties of this object
|
431
|
+
def update!(**args)
|
432
|
+
@findings = args[:findings] if args.key?(:findings)
|
433
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
434
|
+
end
|
435
|
+
end
|
436
|
+
|
437
|
+
# Response for the `ListScanConfigs` method.
|
438
|
+
class ListScanConfigsResponse
|
439
|
+
include Google::Apis::Core::Hashable
|
440
|
+
|
441
|
+
# Token to retrieve the next page of results, or empty if there are no
|
442
|
+
# more results in the list.
|
443
|
+
# Corresponds to the JSON property `nextPageToken`
|
444
|
+
# @return [String]
|
445
|
+
attr_accessor :next_page_token
|
446
|
+
|
447
|
+
# The list of ScanConfigs returned.
|
448
|
+
# Corresponds to the JSON property `scanConfigs`
|
449
|
+
# @return [Array<Google::Apis::WebsecurityscannerV1::ScanConfig>]
|
450
|
+
attr_accessor :scan_configs
|
451
|
+
|
452
|
+
def initialize(**args)
|
453
|
+
update!(**args)
|
454
|
+
end
|
455
|
+
|
456
|
+
# Update properties of this object
|
457
|
+
def update!(**args)
|
458
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
459
|
+
@scan_configs = args[:scan_configs] if args.key?(:scan_configs)
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
463
|
+
# Response for the `ListScanRuns` method.
|
464
|
+
class ListScanRunsResponse
|
465
|
+
include Google::Apis::Core::Hashable
|
466
|
+
|
467
|
+
# Token to retrieve the next page of results, or empty if there are no
|
468
|
+
# more results in the list.
|
469
|
+
# Corresponds to the JSON property `nextPageToken`
|
470
|
+
# @return [String]
|
471
|
+
attr_accessor :next_page_token
|
472
|
+
|
473
|
+
# The list of ScanRuns returned.
|
474
|
+
# Corresponds to the JSON property `scanRuns`
|
475
|
+
# @return [Array<Google::Apis::WebsecurityscannerV1::ScanRun>]
|
476
|
+
attr_accessor :scan_runs
|
477
|
+
|
478
|
+
def initialize(**args)
|
479
|
+
update!(**args)
|
480
|
+
end
|
481
|
+
|
482
|
+
# Update properties of this object
|
483
|
+
def update!(**args)
|
484
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
485
|
+
@scan_runs = args[:scan_runs] if args.key?(:scan_runs)
|
486
|
+
end
|
487
|
+
end
|
488
|
+
|
489
|
+
# Information reported for an outdated library.
|
490
|
+
class OutdatedLibrary
|
491
|
+
include Google::Apis::Core::Hashable
|
492
|
+
|
493
|
+
# URLs to learn more information about the vulnerabilities in the library.
|
494
|
+
# Corresponds to the JSON property `learnMoreUrls`
|
495
|
+
# @return [Array<String>]
|
496
|
+
attr_accessor :learn_more_urls
|
497
|
+
|
498
|
+
# The name of the outdated library.
|
499
|
+
# Corresponds to the JSON property `libraryName`
|
500
|
+
# @return [String]
|
501
|
+
attr_accessor :library_name
|
502
|
+
|
503
|
+
# The version number.
|
504
|
+
# Corresponds to the JSON property `version`
|
505
|
+
# @return [String]
|
506
|
+
attr_accessor :version
|
507
|
+
|
508
|
+
def initialize(**args)
|
509
|
+
update!(**args)
|
510
|
+
end
|
511
|
+
|
512
|
+
# Update properties of this object
|
513
|
+
def update!(**args)
|
514
|
+
@learn_more_urls = args[:learn_more_urls] if args.key?(:learn_more_urls)
|
515
|
+
@library_name = args[:library_name] if args.key?(:library_name)
|
516
|
+
@version = args[:version] if args.key?(:version)
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
520
|
+
# A ScanConfig resource contains the configurations to launch a scan.
|
521
|
+
class ScanConfig
|
522
|
+
include Google::Apis::Core::Hashable
|
523
|
+
|
524
|
+
# Scan authentication configuration.
|
525
|
+
# Corresponds to the JSON property `authentication`
|
526
|
+
# @return [Google::Apis::WebsecurityscannerV1::Authentication]
|
527
|
+
attr_accessor :authentication
|
528
|
+
|
529
|
+
# The blacklist URL patterns as described in
|
530
|
+
# https://cloud.google.com/security-scanner/docs/excluded-urls
|
531
|
+
# Corresponds to the JSON property `blacklistPatterns`
|
532
|
+
# @return [Array<String>]
|
533
|
+
attr_accessor :blacklist_patterns
|
534
|
+
|
535
|
+
# Required. The user provided display name of the ScanConfig.
|
536
|
+
# Corresponds to the JSON property `displayName`
|
537
|
+
# @return [String]
|
538
|
+
attr_accessor :display_name
|
539
|
+
|
540
|
+
# Controls export of scan configurations and results to Cloud Security
|
541
|
+
# Command Center.
|
542
|
+
# Corresponds to the JSON property `exportToSecurityCommandCenter`
|
543
|
+
# @return [String]
|
544
|
+
attr_accessor :export_to_security_command_center
|
545
|
+
|
546
|
+
# The maximum QPS during scanning. A valid value ranges from 5 to 20
|
547
|
+
# inclusively. If the field is unspecified or its value is set 0, server will
|
548
|
+
# default to 15. Other values outside of [5, 20] range will be rejected with
|
549
|
+
# INVALID_ARGUMENT error.
|
550
|
+
# Corresponds to the JSON property `maxQps`
|
551
|
+
# @return [Fixnum]
|
552
|
+
attr_accessor :max_qps
|
553
|
+
|
554
|
+
# The resource name of the ScanConfig. The name follows the format of
|
555
|
+
# 'projects/`projectId`/scanConfigs/`scanConfigId`'. The ScanConfig IDs are
|
556
|
+
# generated by the system.
|
557
|
+
# Corresponds to the JSON property `name`
|
558
|
+
# @return [String]
|
559
|
+
attr_accessor :name
|
560
|
+
|
561
|
+
# The risk level selected for the scan
|
562
|
+
# Corresponds to the JSON property `riskLevel`
|
563
|
+
# @return [String]
|
564
|
+
attr_accessor :risk_level
|
565
|
+
|
566
|
+
# Scan schedule configuration.
|
567
|
+
# Corresponds to the JSON property `schedule`
|
568
|
+
# @return [Google::Apis::WebsecurityscannerV1::Schedule]
|
569
|
+
attr_accessor :schedule
|
570
|
+
|
571
|
+
# Required. The starting URLs from which the scanner finds site pages.
|
572
|
+
# Corresponds to the JSON property `startingUrls`
|
573
|
+
# @return [Array<String>]
|
574
|
+
attr_accessor :starting_urls
|
575
|
+
|
576
|
+
# The user agent used during scanning.
|
577
|
+
# Corresponds to the JSON property `userAgent`
|
578
|
+
# @return [String]
|
579
|
+
attr_accessor :user_agent
|
580
|
+
|
581
|
+
def initialize(**args)
|
582
|
+
update!(**args)
|
583
|
+
end
|
584
|
+
|
585
|
+
# Update properties of this object
|
586
|
+
def update!(**args)
|
587
|
+
@authentication = args[:authentication] if args.key?(:authentication)
|
588
|
+
@blacklist_patterns = args[:blacklist_patterns] if args.key?(:blacklist_patterns)
|
589
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
590
|
+
@export_to_security_command_center = args[:export_to_security_command_center] if args.key?(:export_to_security_command_center)
|
591
|
+
@max_qps = args[:max_qps] if args.key?(:max_qps)
|
592
|
+
@name = args[:name] if args.key?(:name)
|
593
|
+
@risk_level = args[:risk_level] if args.key?(:risk_level)
|
594
|
+
@schedule = args[:schedule] if args.key?(:schedule)
|
595
|
+
@starting_urls = args[:starting_urls] if args.key?(:starting_urls)
|
596
|
+
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
597
|
+
end
|
598
|
+
end
|
599
|
+
|
600
|
+
# Defines a custom error message used by CreateScanConfig and UpdateScanConfig
|
601
|
+
# APIs when scan configuration validation fails. It is also reported as part of
|
602
|
+
# a ScanRunErrorTrace message if scan validation fails due to a scan
|
603
|
+
# configuration error.
|
604
|
+
class ScanConfigError
|
605
|
+
include Google::Apis::Core::Hashable
|
606
|
+
|
607
|
+
# Output only. Indicates the reason code for a configuration failure.
|
608
|
+
# Corresponds to the JSON property `code`
|
609
|
+
# @return [String]
|
610
|
+
attr_accessor :code
|
611
|
+
|
612
|
+
# Output only. Indicates the full name of the ScanConfig field that triggers
|
613
|
+
# this error,
|
614
|
+
# for example "scan_config.max_qps". This field is provided for
|
615
|
+
# troubleshooting purposes only and its actual value can change in the
|
616
|
+
# future.
|
617
|
+
# Corresponds to the JSON property `fieldName`
|
618
|
+
# @return [String]
|
619
|
+
attr_accessor :field_name
|
620
|
+
|
621
|
+
def initialize(**args)
|
622
|
+
update!(**args)
|
623
|
+
end
|
624
|
+
|
625
|
+
# Update properties of this object
|
626
|
+
def update!(**args)
|
627
|
+
@code = args[:code] if args.key?(:code)
|
628
|
+
@field_name = args[:field_name] if args.key?(:field_name)
|
629
|
+
end
|
630
|
+
end
|
631
|
+
|
632
|
+
# A ScanRun is a output-only resource representing an actual run of the scan.
|
633
|
+
# Next id: 12
|
634
|
+
class ScanRun
|
635
|
+
include Google::Apis::Core::Hashable
|
636
|
+
|
637
|
+
# Output only. The time at which the ScanRun reached termination state - that
|
638
|
+
# the ScanRun
|
639
|
+
# is either finished or stopped by user.
|
640
|
+
# Corresponds to the JSON property `endTime`
|
641
|
+
# @return [String]
|
642
|
+
attr_accessor :end_time
|
643
|
+
|
644
|
+
# Output only.
|
645
|
+
# Defines an error trace message for a ScanRun.
|
646
|
+
# Corresponds to the JSON property `errorTrace`
|
647
|
+
# @return [Google::Apis::WebsecurityscannerV1::ScanRunErrorTrace]
|
648
|
+
attr_accessor :error_trace
|
649
|
+
|
650
|
+
# Output only. The execution state of the ScanRun.
|
651
|
+
# Corresponds to the JSON property `executionState`
|
652
|
+
# @return [String]
|
653
|
+
attr_accessor :execution_state
|
654
|
+
|
655
|
+
# Output only. Whether the scan run has found any vulnerabilities.
|
656
|
+
# Corresponds to the JSON property `hasVulnerabilities`
|
657
|
+
# @return [Boolean]
|
658
|
+
attr_accessor :has_vulnerabilities
|
659
|
+
alias_method :has_vulnerabilities?, :has_vulnerabilities
|
660
|
+
|
661
|
+
# Output only. The resource name of the ScanRun. The name follows the format of
|
662
|
+
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
|
663
|
+
# The ScanRun IDs are generated by the system.
|
664
|
+
# Corresponds to the JSON property `name`
|
665
|
+
# @return [String]
|
666
|
+
attr_accessor :name
|
667
|
+
|
668
|
+
# Output only. The percentage of total completion ranging from 0 to 100.
|
669
|
+
# If the scan is in queue, the value is 0.
|
670
|
+
# If the scan is running, the value ranges from 0 to 100.
|
671
|
+
# If the scan is finished, the value is 100.
|
672
|
+
# Corresponds to the JSON property `progressPercent`
|
673
|
+
# @return [Fixnum]
|
674
|
+
attr_accessor :progress_percent
|
675
|
+
|
676
|
+
# Output only. The result state of the ScanRun. This field is only available
|
677
|
+
# after the
|
678
|
+
# execution state reaches "FINISHED".
|
679
|
+
# Corresponds to the JSON property `resultState`
|
680
|
+
# @return [String]
|
681
|
+
attr_accessor :result_state
|
682
|
+
|
683
|
+
# Output only. The time at which the ScanRun started.
|
684
|
+
# Corresponds to the JSON property `startTime`
|
685
|
+
# @return [String]
|
686
|
+
attr_accessor :start_time
|
687
|
+
|
688
|
+
# Output only. The number of URLs crawled during this ScanRun. If the scan is in
|
689
|
+
# progress,
|
690
|
+
# the value represents the number of URLs crawled up to now.
|
691
|
+
# Corresponds to the JSON property `urlsCrawledCount`
|
692
|
+
# @return [Fixnum]
|
693
|
+
attr_accessor :urls_crawled_count
|
694
|
+
|
695
|
+
# Output only. The number of URLs tested during this ScanRun. If the scan is in
|
696
|
+
# progress,
|
697
|
+
# the value represents the number of URLs tested up to now. The number of
|
698
|
+
# URLs tested is usually larger than the number URLS crawled because
|
699
|
+
# typically a crawled URL is tested with multiple test payloads.
|
700
|
+
# Corresponds to the JSON property `urlsTestedCount`
|
701
|
+
# @return [Fixnum]
|
702
|
+
attr_accessor :urls_tested_count
|
703
|
+
|
704
|
+
# Output only. A list of warnings, if such are encountered during this scan run.
|
705
|
+
# Corresponds to the JSON property `warningTraces`
|
706
|
+
# @return [Array<Google::Apis::WebsecurityscannerV1::ScanRunWarningTrace>]
|
707
|
+
attr_accessor :warning_traces
|
708
|
+
|
709
|
+
def initialize(**args)
|
710
|
+
update!(**args)
|
711
|
+
end
|
712
|
+
|
713
|
+
# Update properties of this object
|
714
|
+
def update!(**args)
|
715
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
716
|
+
@error_trace = args[:error_trace] if args.key?(:error_trace)
|
717
|
+
@execution_state = args[:execution_state] if args.key?(:execution_state)
|
718
|
+
@has_vulnerabilities = args[:has_vulnerabilities] if args.key?(:has_vulnerabilities)
|
719
|
+
@name = args[:name] if args.key?(:name)
|
720
|
+
@progress_percent = args[:progress_percent] if args.key?(:progress_percent)
|
721
|
+
@result_state = args[:result_state] if args.key?(:result_state)
|
722
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
723
|
+
@urls_crawled_count = args[:urls_crawled_count] if args.key?(:urls_crawled_count)
|
724
|
+
@urls_tested_count = args[:urls_tested_count] if args.key?(:urls_tested_count)
|
725
|
+
@warning_traces = args[:warning_traces] if args.key?(:warning_traces)
|
726
|
+
end
|
727
|
+
end
|
728
|
+
|
729
|
+
# Output only.
|
730
|
+
# Defines an error trace message for a ScanRun.
|
731
|
+
class ScanRunErrorTrace
|
732
|
+
include Google::Apis::Core::Hashable
|
733
|
+
|
734
|
+
# Output only. Indicates the error reason code.
|
735
|
+
# Corresponds to the JSON property `code`
|
736
|
+
# @return [String]
|
737
|
+
attr_accessor :code
|
738
|
+
|
739
|
+
# Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates
|
740
|
+
# the most
|
741
|
+
# common HTTP error code, if such is available. For example, if this code is
|
742
|
+
# 404, the scan has encountered too many NOT_FOUND responses.
|
743
|
+
# Corresponds to the JSON property `mostCommonHttpErrorCode`
|
744
|
+
# @return [Fixnum]
|
745
|
+
attr_accessor :most_common_http_error_code
|
746
|
+
|
747
|
+
# Defines a custom error message used by CreateScanConfig and UpdateScanConfig
|
748
|
+
# APIs when scan configuration validation fails. It is also reported as part of
|
749
|
+
# a ScanRunErrorTrace message if scan validation fails due to a scan
|
750
|
+
# configuration error.
|
751
|
+
# Corresponds to the JSON property `scanConfigError`
|
752
|
+
# @return [Google::Apis::WebsecurityscannerV1::ScanConfigError]
|
753
|
+
attr_accessor :scan_config_error
|
754
|
+
|
755
|
+
def initialize(**args)
|
756
|
+
update!(**args)
|
757
|
+
end
|
758
|
+
|
759
|
+
# Update properties of this object
|
760
|
+
def update!(**args)
|
761
|
+
@code = args[:code] if args.key?(:code)
|
762
|
+
@most_common_http_error_code = args[:most_common_http_error_code] if args.key?(:most_common_http_error_code)
|
763
|
+
@scan_config_error = args[:scan_config_error] if args.key?(:scan_config_error)
|
764
|
+
end
|
765
|
+
end
|
766
|
+
|
767
|
+
# Output only.
|
768
|
+
# Defines a warning trace message for ScanRun. Warning traces provide customers
|
769
|
+
# with useful information that helps make the scanning process more effective.
|
770
|
+
class ScanRunWarningTrace
|
771
|
+
include Google::Apis::Core::Hashable
|
772
|
+
|
773
|
+
# Output only. Indicates the warning code.
|
774
|
+
# Corresponds to the JSON property `code`
|
775
|
+
# @return [String]
|
776
|
+
attr_accessor :code
|
777
|
+
|
778
|
+
def initialize(**args)
|
779
|
+
update!(**args)
|
780
|
+
end
|
781
|
+
|
782
|
+
# Update properties of this object
|
783
|
+
def update!(**args)
|
784
|
+
@code = args[:code] if args.key?(:code)
|
785
|
+
end
|
786
|
+
end
|
787
|
+
|
788
|
+
# Scan schedule configuration.
|
789
|
+
class Schedule
|
790
|
+
include Google::Apis::Core::Hashable
|
791
|
+
|
792
|
+
# Required. The duration of time between executions in days.
|
793
|
+
# Corresponds to the JSON property `intervalDurationDays`
|
794
|
+
# @return [Fixnum]
|
795
|
+
attr_accessor :interval_duration_days
|
796
|
+
|
797
|
+
# A timestamp indicates when the next run will be scheduled. The value is
|
798
|
+
# refreshed by the server after each run. If unspecified, it will default
|
799
|
+
# to current server time, which means the scan will be scheduled to start
|
800
|
+
# immediately.
|
801
|
+
# Corresponds to the JSON property `scheduleTime`
|
802
|
+
# @return [String]
|
803
|
+
attr_accessor :schedule_time
|
804
|
+
|
805
|
+
def initialize(**args)
|
806
|
+
update!(**args)
|
807
|
+
end
|
808
|
+
|
809
|
+
# Update properties of this object
|
810
|
+
def update!(**args)
|
811
|
+
@interval_duration_days = args[:interval_duration_days] if args.key?(:interval_duration_days)
|
812
|
+
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
813
|
+
end
|
814
|
+
end
|
815
|
+
|
816
|
+
# Request for the `StartScanRun` method.
|
817
|
+
class StartScanRunRequest
|
818
|
+
include Google::Apis::Core::Hashable
|
819
|
+
|
820
|
+
def initialize(**args)
|
821
|
+
update!(**args)
|
822
|
+
end
|
823
|
+
|
824
|
+
# Update properties of this object
|
825
|
+
def update!(**args)
|
826
|
+
end
|
827
|
+
end
|
828
|
+
|
829
|
+
# Request for the `StopScanRun` method.
|
830
|
+
class StopScanRunRequest
|
831
|
+
include Google::Apis::Core::Hashable
|
832
|
+
|
833
|
+
def initialize(**args)
|
834
|
+
update!(**args)
|
835
|
+
end
|
836
|
+
|
837
|
+
# Update properties of this object
|
838
|
+
def update!(**args)
|
839
|
+
end
|
840
|
+
end
|
841
|
+
|
842
|
+
# Information regarding any resource causing the vulnerability such
|
843
|
+
# as JavaScript sources, image, audio files, etc.
|
844
|
+
class ViolatingResource
|
845
|
+
include Google::Apis::Core::Hashable
|
846
|
+
|
847
|
+
# The MIME type of this resource.
|
848
|
+
# Corresponds to the JSON property `contentType`
|
849
|
+
# @return [String]
|
850
|
+
attr_accessor :content_type
|
851
|
+
|
852
|
+
# URL of this violating resource.
|
853
|
+
# Corresponds to the JSON property `resourceUrl`
|
854
|
+
# @return [String]
|
855
|
+
attr_accessor :resource_url
|
856
|
+
|
857
|
+
def initialize(**args)
|
858
|
+
update!(**args)
|
859
|
+
end
|
860
|
+
|
861
|
+
# Update properties of this object
|
862
|
+
def update!(**args)
|
863
|
+
@content_type = args[:content_type] if args.key?(:content_type)
|
864
|
+
@resource_url = args[:resource_url] if args.key?(:resource_url)
|
865
|
+
end
|
866
|
+
end
|
867
|
+
|
868
|
+
# Information about vulnerable or missing HTTP Headers.
|
869
|
+
class VulnerableHeaders
|
870
|
+
include Google::Apis::Core::Hashable
|
871
|
+
|
872
|
+
# List of vulnerable headers.
|
873
|
+
# Corresponds to the JSON property `headers`
|
874
|
+
# @return [Array<Google::Apis::WebsecurityscannerV1::Header>]
|
875
|
+
attr_accessor :headers
|
876
|
+
|
877
|
+
# List of missing headers.
|
878
|
+
# Corresponds to the JSON property `missingHeaders`
|
879
|
+
# @return [Array<Google::Apis::WebsecurityscannerV1::Header>]
|
880
|
+
attr_accessor :missing_headers
|
881
|
+
|
882
|
+
def initialize(**args)
|
883
|
+
update!(**args)
|
884
|
+
end
|
885
|
+
|
886
|
+
# Update properties of this object
|
887
|
+
def update!(**args)
|
888
|
+
@headers = args[:headers] if args.key?(:headers)
|
889
|
+
@missing_headers = args[:missing_headers] if args.key?(:missing_headers)
|
890
|
+
end
|
891
|
+
end
|
892
|
+
|
893
|
+
# Information about vulnerable request parameters.
|
894
|
+
class VulnerableParameters
|
895
|
+
include Google::Apis::Core::Hashable
|
896
|
+
|
897
|
+
# The vulnerable parameter names.
|
898
|
+
# Corresponds to the JSON property `parameterNames`
|
899
|
+
# @return [Array<String>]
|
900
|
+
attr_accessor :parameter_names
|
901
|
+
|
902
|
+
def initialize(**args)
|
903
|
+
update!(**args)
|
904
|
+
end
|
905
|
+
|
906
|
+
# Update properties of this object
|
907
|
+
def update!(**args)
|
908
|
+
@parameter_names = args[:parameter_names] if args.key?(:parameter_names)
|
909
|
+
end
|
910
|
+
end
|
911
|
+
|
912
|
+
# Information reported for an XSS.
|
913
|
+
class Xss
|
914
|
+
include Google::Apis::Core::Hashable
|
915
|
+
|
916
|
+
# The attack vector of the payload triggering this XSS.
|
917
|
+
# Corresponds to the JSON property `attackVector`
|
918
|
+
# @return [String]
|
919
|
+
attr_accessor :attack_vector
|
920
|
+
|
921
|
+
# An error message generated by a javascript breakage.
|
922
|
+
# Corresponds to the JSON property `errorMessage`
|
923
|
+
# @return [String]
|
924
|
+
attr_accessor :error_message
|
925
|
+
|
926
|
+
# Stack traces leading to the point where the XSS occurred.
|
927
|
+
# Corresponds to the JSON property `stackTraces`
|
928
|
+
# @return [Array<String>]
|
929
|
+
attr_accessor :stack_traces
|
930
|
+
|
931
|
+
# The reproduction url for the seeding POST request of a Stored XSS.
|
932
|
+
# Corresponds to the JSON property `storedXssSeedingUrl`
|
933
|
+
# @return [String]
|
934
|
+
attr_accessor :stored_xss_seeding_url
|
935
|
+
|
936
|
+
def initialize(**args)
|
937
|
+
update!(**args)
|
938
|
+
end
|
939
|
+
|
940
|
+
# Update properties of this object
|
941
|
+
def update!(**args)
|
942
|
+
@attack_vector = args[:attack_vector] if args.key?(:attack_vector)
|
943
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
944
|
+
@stack_traces = args[:stack_traces] if args.key?(:stack_traces)
|
945
|
+
@stored_xss_seeding_url = args[:stored_xss_seeding_url] if args.key?(:stored_xss_seeding_url)
|
946
|
+
end
|
947
|
+
end
|
24
948
|
end
|
25
949
|
end
|
26
950
|
end
|