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
@@ -21,6 +21,432 @@ require 'google/apis/errors'
|
|
21
21
|
module Google
|
22
22
|
module Apis
|
23
23
|
module WebsecurityscannerV1
|
24
|
+
|
25
|
+
class Authentication
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class CrawledUrl
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class CustomAccount
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Empty
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class Finding
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class FindingTypeStats
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class Form
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class GoogleAccount
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class Header
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class ListCrawledUrlsResponse
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class ListFindingTypeStatsResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class ListFindingsResponse
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class ListScanConfigsResponse
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class ListScanRunsResponse
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class OutdatedLibrary
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class ScanConfig
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class ScanConfigError
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class ScanRun
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class ScanRunErrorTrace
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class ScanRunWarningTrace
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
145
|
+
class Schedule
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class StartScanRunRequest
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
157
|
+
class StopScanRunRequest
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
163
|
+
class ViolatingResource
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
|
+
|
166
|
+
include Google::Apis::Core::JsonObjectSupport
|
167
|
+
end
|
168
|
+
|
169
|
+
class VulnerableHeaders
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
175
|
+
class VulnerableParameters
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class Xss
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
187
|
+
class Authentication
|
188
|
+
# @private
|
189
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
190
|
+
property :custom_account, as: 'customAccount', class: Google::Apis::WebsecurityscannerV1::CustomAccount, decorator: Google::Apis::WebsecurityscannerV1::CustomAccount::Representation
|
191
|
+
|
192
|
+
property :google_account, as: 'googleAccount', class: Google::Apis::WebsecurityscannerV1::GoogleAccount, decorator: Google::Apis::WebsecurityscannerV1::GoogleAccount::Representation
|
193
|
+
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
class CrawledUrl
|
198
|
+
# @private
|
199
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
200
|
+
property :body, as: 'body'
|
201
|
+
property :http_method, as: 'httpMethod'
|
202
|
+
property :url, as: 'url'
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
class CustomAccount
|
207
|
+
# @private
|
208
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
209
|
+
property :login_url, as: 'loginUrl'
|
210
|
+
property :password, as: 'password'
|
211
|
+
property :username, as: 'username'
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
class Empty
|
216
|
+
# @private
|
217
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
class Finding
|
222
|
+
# @private
|
223
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
224
|
+
property :body, as: 'body'
|
225
|
+
property :description, as: 'description'
|
226
|
+
property :final_url, as: 'finalUrl'
|
227
|
+
property :finding_type, as: 'findingType'
|
228
|
+
property :form, as: 'form', class: Google::Apis::WebsecurityscannerV1::Form, decorator: Google::Apis::WebsecurityscannerV1::Form::Representation
|
229
|
+
|
230
|
+
property :frame_url, as: 'frameUrl'
|
231
|
+
property :fuzzed_url, as: 'fuzzedUrl'
|
232
|
+
property :http_method, as: 'httpMethod'
|
233
|
+
property :name, as: 'name'
|
234
|
+
property :outdated_library, as: 'outdatedLibrary', class: Google::Apis::WebsecurityscannerV1::OutdatedLibrary, decorator: Google::Apis::WebsecurityscannerV1::OutdatedLibrary::Representation
|
235
|
+
|
236
|
+
property :reproduction_url, as: 'reproductionUrl'
|
237
|
+
property :tracking_id, as: 'trackingId'
|
238
|
+
property :violating_resource, as: 'violatingResource', class: Google::Apis::WebsecurityscannerV1::ViolatingResource, decorator: Google::Apis::WebsecurityscannerV1::ViolatingResource::Representation
|
239
|
+
|
240
|
+
property :vulnerable_headers, as: 'vulnerableHeaders', class: Google::Apis::WebsecurityscannerV1::VulnerableHeaders, decorator: Google::Apis::WebsecurityscannerV1::VulnerableHeaders::Representation
|
241
|
+
|
242
|
+
property :vulnerable_parameters, as: 'vulnerableParameters', class: Google::Apis::WebsecurityscannerV1::VulnerableParameters, decorator: Google::Apis::WebsecurityscannerV1::VulnerableParameters::Representation
|
243
|
+
|
244
|
+
property :xss, as: 'xss', class: Google::Apis::WebsecurityscannerV1::Xss, decorator: Google::Apis::WebsecurityscannerV1::Xss::Representation
|
245
|
+
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
class FindingTypeStats
|
250
|
+
# @private
|
251
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
252
|
+
property :finding_count, as: 'findingCount'
|
253
|
+
property :finding_type, as: 'findingType'
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
class Form
|
258
|
+
# @private
|
259
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
260
|
+
property :action_uri, as: 'actionUri'
|
261
|
+
collection :fields, as: 'fields'
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
class GoogleAccount
|
266
|
+
# @private
|
267
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
268
|
+
property :password, as: 'password'
|
269
|
+
property :username, as: 'username'
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
class Header
|
274
|
+
# @private
|
275
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
276
|
+
property :name, as: 'name'
|
277
|
+
property :value, as: 'value'
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
class ListCrawledUrlsResponse
|
282
|
+
# @private
|
283
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
284
|
+
collection :crawled_urls, as: 'crawledUrls', class: Google::Apis::WebsecurityscannerV1::CrawledUrl, decorator: Google::Apis::WebsecurityscannerV1::CrawledUrl::Representation
|
285
|
+
|
286
|
+
property :next_page_token, as: 'nextPageToken'
|
287
|
+
end
|
288
|
+
end
|
289
|
+
|
290
|
+
class ListFindingTypeStatsResponse
|
291
|
+
# @private
|
292
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
293
|
+
collection :finding_type_stats, as: 'findingTypeStats', class: Google::Apis::WebsecurityscannerV1::FindingTypeStats, decorator: Google::Apis::WebsecurityscannerV1::FindingTypeStats::Representation
|
294
|
+
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
class ListFindingsResponse
|
299
|
+
# @private
|
300
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
301
|
+
collection :findings, as: 'findings', class: Google::Apis::WebsecurityscannerV1::Finding, decorator: Google::Apis::WebsecurityscannerV1::Finding::Representation
|
302
|
+
|
303
|
+
property :next_page_token, as: 'nextPageToken'
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
class ListScanConfigsResponse
|
308
|
+
# @private
|
309
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
310
|
+
property :next_page_token, as: 'nextPageToken'
|
311
|
+
collection :scan_configs, as: 'scanConfigs', class: Google::Apis::WebsecurityscannerV1::ScanConfig, decorator: Google::Apis::WebsecurityscannerV1::ScanConfig::Representation
|
312
|
+
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
class ListScanRunsResponse
|
317
|
+
# @private
|
318
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
319
|
+
property :next_page_token, as: 'nextPageToken'
|
320
|
+
collection :scan_runs, as: 'scanRuns', class: Google::Apis::WebsecurityscannerV1::ScanRun, decorator: Google::Apis::WebsecurityscannerV1::ScanRun::Representation
|
321
|
+
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
325
|
+
class OutdatedLibrary
|
326
|
+
# @private
|
327
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
328
|
+
collection :learn_more_urls, as: 'learnMoreUrls'
|
329
|
+
property :library_name, as: 'libraryName'
|
330
|
+
property :version, as: 'version'
|
331
|
+
end
|
332
|
+
end
|
333
|
+
|
334
|
+
class ScanConfig
|
335
|
+
# @private
|
336
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
337
|
+
property :authentication, as: 'authentication', class: Google::Apis::WebsecurityscannerV1::Authentication, decorator: Google::Apis::WebsecurityscannerV1::Authentication::Representation
|
338
|
+
|
339
|
+
collection :blacklist_patterns, as: 'blacklistPatterns'
|
340
|
+
property :display_name, as: 'displayName'
|
341
|
+
property :export_to_security_command_center, as: 'exportToSecurityCommandCenter'
|
342
|
+
property :max_qps, as: 'maxQps'
|
343
|
+
property :name, as: 'name'
|
344
|
+
property :risk_level, as: 'riskLevel'
|
345
|
+
property :schedule, as: 'schedule', class: Google::Apis::WebsecurityscannerV1::Schedule, decorator: Google::Apis::WebsecurityscannerV1::Schedule::Representation
|
346
|
+
|
347
|
+
collection :starting_urls, as: 'startingUrls'
|
348
|
+
property :user_agent, as: 'userAgent'
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
class ScanConfigError
|
353
|
+
# @private
|
354
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
355
|
+
property :code, as: 'code'
|
356
|
+
property :field_name, as: 'fieldName'
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
360
|
+
class ScanRun
|
361
|
+
# @private
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
363
|
+
property :end_time, as: 'endTime'
|
364
|
+
property :error_trace, as: 'errorTrace', class: Google::Apis::WebsecurityscannerV1::ScanRunErrorTrace, decorator: Google::Apis::WebsecurityscannerV1::ScanRunErrorTrace::Representation
|
365
|
+
|
366
|
+
property :execution_state, as: 'executionState'
|
367
|
+
property :has_vulnerabilities, as: 'hasVulnerabilities'
|
368
|
+
property :name, as: 'name'
|
369
|
+
property :progress_percent, as: 'progressPercent'
|
370
|
+
property :result_state, as: 'resultState'
|
371
|
+
property :start_time, as: 'startTime'
|
372
|
+
property :urls_crawled_count, :numeric_string => true, as: 'urlsCrawledCount'
|
373
|
+
property :urls_tested_count, :numeric_string => true, as: 'urlsTestedCount'
|
374
|
+
collection :warning_traces, as: 'warningTraces', class: Google::Apis::WebsecurityscannerV1::ScanRunWarningTrace, decorator: Google::Apis::WebsecurityscannerV1::ScanRunWarningTrace::Representation
|
375
|
+
|
376
|
+
end
|
377
|
+
end
|
378
|
+
|
379
|
+
class ScanRunErrorTrace
|
380
|
+
# @private
|
381
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
382
|
+
property :code, as: 'code'
|
383
|
+
property :most_common_http_error_code, as: 'mostCommonHttpErrorCode'
|
384
|
+
property :scan_config_error, as: 'scanConfigError', class: Google::Apis::WebsecurityscannerV1::ScanConfigError, decorator: Google::Apis::WebsecurityscannerV1::ScanConfigError::Representation
|
385
|
+
|
386
|
+
end
|
387
|
+
end
|
388
|
+
|
389
|
+
class ScanRunWarningTrace
|
390
|
+
# @private
|
391
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
392
|
+
property :code, as: 'code'
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
class Schedule
|
397
|
+
# @private
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
399
|
+
property :interval_duration_days, as: 'intervalDurationDays'
|
400
|
+
property :schedule_time, as: 'scheduleTime'
|
401
|
+
end
|
402
|
+
end
|
403
|
+
|
404
|
+
class StartScanRunRequest
|
405
|
+
# @private
|
406
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
410
|
+
class StopScanRunRequest
|
411
|
+
# @private
|
412
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
413
|
+
end
|
414
|
+
end
|
415
|
+
|
416
|
+
class ViolatingResource
|
417
|
+
# @private
|
418
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
419
|
+
property :content_type, as: 'contentType'
|
420
|
+
property :resource_url, as: 'resourceUrl'
|
421
|
+
end
|
422
|
+
end
|
423
|
+
|
424
|
+
class VulnerableHeaders
|
425
|
+
# @private
|
426
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
427
|
+
collection :headers, as: 'headers', class: Google::Apis::WebsecurityscannerV1::Header, decorator: Google::Apis::WebsecurityscannerV1::Header::Representation
|
428
|
+
|
429
|
+
collection :missing_headers, as: 'missingHeaders', class: Google::Apis::WebsecurityscannerV1::Header, decorator: Google::Apis::WebsecurityscannerV1::Header::Representation
|
430
|
+
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
434
|
+
class VulnerableParameters
|
435
|
+
# @private
|
436
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
437
|
+
collection :parameter_names, as: 'parameterNames'
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
441
|
+
class Xss
|
442
|
+
# @private
|
443
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
444
|
+
property :attack_vector, as: 'attackVector'
|
445
|
+
property :error_message, as: 'errorMessage'
|
446
|
+
collection :stack_traces, as: 'stackTraces'
|
447
|
+
property :stored_xss_seeding_url, as: 'storedXssSeedingUrl'
|
448
|
+
end
|
449
|
+
end
|
24
450
|
end
|
25
451
|
end
|
26
452
|
end
|
@@ -46,6 +46,493 @@ module Google
|
|
46
46
|
super('https://websecurityscanner.googleapis.com/', '')
|
47
47
|
@batch_path = 'batch'
|
48
48
|
end
|
49
|
+
|
50
|
+
# Creates a new ScanConfig.
|
51
|
+
# @param [String] parent
|
52
|
+
# Required. The parent resource name where the scan is created, which should be
|
53
|
+
# a
|
54
|
+
# project resource name in the format 'projects/`projectId`'.
|
55
|
+
# @param [Google::Apis::WebsecurityscannerV1::ScanConfig] scan_config_object
|
56
|
+
# @param [String] fields
|
57
|
+
# Selector specifying which fields to include in a partial response.
|
58
|
+
# @param [String] quota_user
|
59
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
60
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
61
|
+
# @param [Google::Apis::RequestOptions] options
|
62
|
+
# Request-specific options
|
63
|
+
#
|
64
|
+
# @yield [result, err] Result & error if block supplied
|
65
|
+
# @yieldparam result [Google::Apis::WebsecurityscannerV1::ScanConfig] parsed result object
|
66
|
+
# @yieldparam err [StandardError] error object if request failed
|
67
|
+
#
|
68
|
+
# @return [Google::Apis::WebsecurityscannerV1::ScanConfig]
|
69
|
+
#
|
70
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
+
def create_project_scan_config(parent, scan_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
74
|
+
command = make_simple_command(:post, 'v1/{+parent}/scanConfigs', options)
|
75
|
+
command.request_representation = Google::Apis::WebsecurityscannerV1::ScanConfig::Representation
|
76
|
+
command.request_object = scan_config_object
|
77
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::ScanConfig::Representation
|
78
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::ScanConfig
|
79
|
+
command.params['parent'] = parent unless parent.nil?
|
80
|
+
command.query['fields'] = fields unless fields.nil?
|
81
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
82
|
+
execute_or_queue_command(command, &block)
|
83
|
+
end
|
84
|
+
|
85
|
+
# Deletes an existing ScanConfig and its child resources.
|
86
|
+
# @param [String] name
|
87
|
+
# Required. The resource name of the ScanConfig to be deleted. The name follows
|
88
|
+
# the
|
89
|
+
# format of 'projects/`projectId`/scanConfigs/`scanConfigId`'.
|
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::WebsecurityscannerV1::Empty] parsed result object
|
100
|
+
# @yieldparam err [StandardError] error object if request failed
|
101
|
+
#
|
102
|
+
# @return [Google::Apis::WebsecurityscannerV1::Empty]
|
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 delete_project_scan_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
109
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::Empty::Representation
|
110
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::Empty
|
111
|
+
command.params['name'] = name unless name.nil?
|
112
|
+
command.query['fields'] = fields unless fields.nil?
|
113
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
114
|
+
execute_or_queue_command(command, &block)
|
115
|
+
end
|
116
|
+
|
117
|
+
# Gets a ScanConfig.
|
118
|
+
# @param [String] name
|
119
|
+
# Required. The resource name of the ScanConfig to be returned. The name follows
|
120
|
+
# the
|
121
|
+
# format of 'projects/`projectId`/scanConfigs/`scanConfigId`'.
|
122
|
+
# @param [String] fields
|
123
|
+
# Selector specifying which fields to include in a partial response.
|
124
|
+
# @param [String] quota_user
|
125
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
126
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
127
|
+
# @param [Google::Apis::RequestOptions] options
|
128
|
+
# Request-specific options
|
129
|
+
#
|
130
|
+
# @yield [result, err] Result & error if block supplied
|
131
|
+
# @yieldparam result [Google::Apis::WebsecurityscannerV1::ScanConfig] parsed result object
|
132
|
+
# @yieldparam err [StandardError] error object if request failed
|
133
|
+
#
|
134
|
+
# @return [Google::Apis::WebsecurityscannerV1::ScanConfig]
|
135
|
+
#
|
136
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
137
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
138
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
139
|
+
def get_project_scan_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
140
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
141
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::ScanConfig::Representation
|
142
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::ScanConfig
|
143
|
+
command.params['name'] = name unless name.nil?
|
144
|
+
command.query['fields'] = fields unless fields.nil?
|
145
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
146
|
+
execute_or_queue_command(command, &block)
|
147
|
+
end
|
148
|
+
|
149
|
+
# Lists ScanConfigs under a given project.
|
150
|
+
# @param [String] parent
|
151
|
+
# Required. The parent resource name, which should be a project resource name in
|
152
|
+
# the
|
153
|
+
# format 'projects/`projectId`'.
|
154
|
+
# @param [Fixnum] page_size
|
155
|
+
# The maximum number of ScanConfigs to return, can be limited by server.
|
156
|
+
# If not specified or not positive, the implementation will select a
|
157
|
+
# reasonable value.
|
158
|
+
# @param [String] page_token
|
159
|
+
# A token identifying a page of results to be returned. This should be a
|
160
|
+
# `next_page_token` value returned from a previous List request.
|
161
|
+
# If unspecified, the first page of results is returned.
|
162
|
+
# @param [String] fields
|
163
|
+
# Selector specifying which fields to include in a partial response.
|
164
|
+
# @param [String] quota_user
|
165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
167
|
+
# @param [Google::Apis::RequestOptions] options
|
168
|
+
# Request-specific options
|
169
|
+
#
|
170
|
+
# @yield [result, err] Result & error if block supplied
|
171
|
+
# @yieldparam result [Google::Apis::WebsecurityscannerV1::ListScanConfigsResponse] parsed result object
|
172
|
+
# @yieldparam err [StandardError] error object if request failed
|
173
|
+
#
|
174
|
+
# @return [Google::Apis::WebsecurityscannerV1::ListScanConfigsResponse]
|
175
|
+
#
|
176
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
177
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
178
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
179
|
+
def list_project_scan_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
180
|
+
command = make_simple_command(:get, 'v1/{+parent}/scanConfigs', options)
|
181
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::ListScanConfigsResponse::Representation
|
182
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::ListScanConfigsResponse
|
183
|
+
command.params['parent'] = parent unless parent.nil?
|
184
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
185
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
186
|
+
command.query['fields'] = fields unless fields.nil?
|
187
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
188
|
+
execute_or_queue_command(command, &block)
|
189
|
+
end
|
190
|
+
|
191
|
+
# Updates a ScanConfig. This method support partial update of a ScanConfig.
|
192
|
+
# @param [String] name
|
193
|
+
# The resource name of the ScanConfig. The name follows the format of
|
194
|
+
# 'projects/`projectId`/scanConfigs/`scanConfigId`'. The ScanConfig IDs are
|
195
|
+
# generated by the system.
|
196
|
+
# @param [Google::Apis::WebsecurityscannerV1::ScanConfig] scan_config_object
|
197
|
+
# @param [String] update_mask
|
198
|
+
# Required. The update mask applies to the resource. For the `FieldMask`
|
199
|
+
# definition,
|
200
|
+
# see
|
201
|
+
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
202
|
+
# fieldmask
|
203
|
+
# @param [String] fields
|
204
|
+
# Selector specifying which fields to include in a partial response.
|
205
|
+
# @param [String] quota_user
|
206
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
207
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
208
|
+
# @param [Google::Apis::RequestOptions] options
|
209
|
+
# Request-specific options
|
210
|
+
#
|
211
|
+
# @yield [result, err] Result & error if block supplied
|
212
|
+
# @yieldparam result [Google::Apis::WebsecurityscannerV1::ScanConfig] parsed result object
|
213
|
+
# @yieldparam err [StandardError] error object if request failed
|
214
|
+
#
|
215
|
+
# @return [Google::Apis::WebsecurityscannerV1::ScanConfig]
|
216
|
+
#
|
217
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
218
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
219
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
220
|
+
def patch_project_scan_config(name, scan_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
221
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
222
|
+
command.request_representation = Google::Apis::WebsecurityscannerV1::ScanConfig::Representation
|
223
|
+
command.request_object = scan_config_object
|
224
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::ScanConfig::Representation
|
225
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::ScanConfig
|
226
|
+
command.params['name'] = name unless name.nil?
|
227
|
+
command.query['updateMask'] = update_mask unless update_mask.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
|
+
# Start a ScanRun according to the given ScanConfig.
|
234
|
+
# @param [String] name
|
235
|
+
# Required. The resource name of the ScanConfig to be used. The name follows the
|
236
|
+
# format of 'projects/`projectId`/scanConfigs/`scanConfigId`'.
|
237
|
+
# @param [Google::Apis::WebsecurityscannerV1::StartScanRunRequest] start_scan_run_request_object
|
238
|
+
# @param [String] fields
|
239
|
+
# Selector specifying which fields to include in a partial response.
|
240
|
+
# @param [String] quota_user
|
241
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
242
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
243
|
+
# @param [Google::Apis::RequestOptions] options
|
244
|
+
# Request-specific options
|
245
|
+
#
|
246
|
+
# @yield [result, err] Result & error if block supplied
|
247
|
+
# @yieldparam result [Google::Apis::WebsecurityscannerV1::ScanRun] parsed result object
|
248
|
+
# @yieldparam err [StandardError] error object if request failed
|
249
|
+
#
|
250
|
+
# @return [Google::Apis::WebsecurityscannerV1::ScanRun]
|
251
|
+
#
|
252
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
253
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
254
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
255
|
+
def start_scan_config_scan_run(name, start_scan_run_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
256
|
+
command = make_simple_command(:post, 'v1/{+name}:start', options)
|
257
|
+
command.request_representation = Google::Apis::WebsecurityscannerV1::StartScanRunRequest::Representation
|
258
|
+
command.request_object = start_scan_run_request_object
|
259
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::ScanRun::Representation
|
260
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::ScanRun
|
261
|
+
command.params['name'] = name unless name.nil?
|
262
|
+
command.query['fields'] = fields unless fields.nil?
|
263
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
264
|
+
execute_or_queue_command(command, &block)
|
265
|
+
end
|
266
|
+
|
267
|
+
# Gets a ScanRun.
|
268
|
+
# @param [String] name
|
269
|
+
# Required. The resource name of the ScanRun to be returned. The name follows
|
270
|
+
# the
|
271
|
+
# format of
|
272
|
+
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
|
273
|
+
# @param [String] fields
|
274
|
+
# Selector specifying which fields to include in a partial response.
|
275
|
+
# @param [String] quota_user
|
276
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
277
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
278
|
+
# @param [Google::Apis::RequestOptions] options
|
279
|
+
# Request-specific options
|
280
|
+
#
|
281
|
+
# @yield [result, err] Result & error if block supplied
|
282
|
+
# @yieldparam result [Google::Apis::WebsecurityscannerV1::ScanRun] parsed result object
|
283
|
+
# @yieldparam err [StandardError] error object if request failed
|
284
|
+
#
|
285
|
+
# @return [Google::Apis::WebsecurityscannerV1::ScanRun]
|
286
|
+
#
|
287
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
288
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
289
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
290
|
+
def get_project_scan_config_scan_run(name, fields: nil, quota_user: nil, options: nil, &block)
|
291
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
292
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::ScanRun::Representation
|
293
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::ScanRun
|
294
|
+
command.params['name'] = name unless name.nil?
|
295
|
+
command.query['fields'] = fields unless fields.nil?
|
296
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
297
|
+
execute_or_queue_command(command, &block)
|
298
|
+
end
|
299
|
+
|
300
|
+
# Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
|
301
|
+
# stop time.
|
302
|
+
# @param [String] parent
|
303
|
+
# Required. The parent resource name, which should be a scan resource name in
|
304
|
+
# the
|
305
|
+
# format 'projects/`projectId`/scanConfigs/`scanConfigId`'.
|
306
|
+
# @param [Fixnum] page_size
|
307
|
+
# The maximum number of ScanRuns to return, can be limited by server.
|
308
|
+
# If not specified or not positive, the implementation will select a
|
309
|
+
# reasonable value.
|
310
|
+
# @param [String] page_token
|
311
|
+
# A token identifying a page of results to be returned. This should be a
|
312
|
+
# `next_page_token` value returned from a previous List request.
|
313
|
+
# If unspecified, the first page of results is returned.
|
314
|
+
# @param [String] fields
|
315
|
+
# Selector specifying which fields to include in a partial response.
|
316
|
+
# @param [String] quota_user
|
317
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
318
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
319
|
+
# @param [Google::Apis::RequestOptions] options
|
320
|
+
# Request-specific options
|
321
|
+
#
|
322
|
+
# @yield [result, err] Result & error if block supplied
|
323
|
+
# @yieldparam result [Google::Apis::WebsecurityscannerV1::ListScanRunsResponse] parsed result object
|
324
|
+
# @yieldparam err [StandardError] error object if request failed
|
325
|
+
#
|
326
|
+
# @return [Google::Apis::WebsecurityscannerV1::ListScanRunsResponse]
|
327
|
+
#
|
328
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
329
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
330
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
331
|
+
def list_project_scan_config_scan_runs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
332
|
+
command = make_simple_command(:get, 'v1/{+parent}/scanRuns', options)
|
333
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::ListScanRunsResponse::Representation
|
334
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::ListScanRunsResponse
|
335
|
+
command.params['parent'] = parent unless parent.nil?
|
336
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
337
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
338
|
+
command.query['fields'] = fields unless fields.nil?
|
339
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
340
|
+
execute_or_queue_command(command, &block)
|
341
|
+
end
|
342
|
+
|
343
|
+
# Stops a ScanRun. The stopped ScanRun is returned.
|
344
|
+
# @param [String] name
|
345
|
+
# Required. The resource name of the ScanRun to be stopped. The name follows the
|
346
|
+
# format of
|
347
|
+
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
|
348
|
+
# @param [Google::Apis::WebsecurityscannerV1::StopScanRunRequest] stop_scan_run_request_object
|
349
|
+
# @param [String] fields
|
350
|
+
# Selector specifying which fields to include in a partial response.
|
351
|
+
# @param [String] quota_user
|
352
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
353
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
354
|
+
# @param [Google::Apis::RequestOptions] options
|
355
|
+
# Request-specific options
|
356
|
+
#
|
357
|
+
# @yield [result, err] Result & error if block supplied
|
358
|
+
# @yieldparam result [Google::Apis::WebsecurityscannerV1::ScanRun] parsed result object
|
359
|
+
# @yieldparam err [StandardError] error object if request failed
|
360
|
+
#
|
361
|
+
# @return [Google::Apis::WebsecurityscannerV1::ScanRun]
|
362
|
+
#
|
363
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
364
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
365
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
366
|
+
def stop_scan_run(name, stop_scan_run_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
367
|
+
command = make_simple_command(:post, 'v1/{+name}:stop', options)
|
368
|
+
command.request_representation = Google::Apis::WebsecurityscannerV1::StopScanRunRequest::Representation
|
369
|
+
command.request_object = stop_scan_run_request_object
|
370
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::ScanRun::Representation
|
371
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::ScanRun
|
372
|
+
command.params['name'] = name unless name.nil?
|
373
|
+
command.query['fields'] = fields unless fields.nil?
|
374
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
375
|
+
execute_or_queue_command(command, &block)
|
376
|
+
end
|
377
|
+
|
378
|
+
# List CrawledUrls under a given ScanRun.
|
379
|
+
# @param [String] parent
|
380
|
+
# Required. The parent resource name, which should be a scan run resource name
|
381
|
+
# in the
|
382
|
+
# format
|
383
|
+
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
|
384
|
+
# @param [Fixnum] page_size
|
385
|
+
# The maximum number of CrawledUrls to return, can be limited by server.
|
386
|
+
# If not specified or not positive, the implementation will select a
|
387
|
+
# reasonable value.
|
388
|
+
# @param [String] page_token
|
389
|
+
# A token identifying a page of results to be returned. This should be a
|
390
|
+
# `next_page_token` value returned from a previous List request.
|
391
|
+
# If unspecified, the first page of results is returned.
|
392
|
+
# @param [String] fields
|
393
|
+
# Selector specifying which fields to include in a partial response.
|
394
|
+
# @param [String] quota_user
|
395
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
396
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
397
|
+
# @param [Google::Apis::RequestOptions] options
|
398
|
+
# Request-specific options
|
399
|
+
#
|
400
|
+
# @yield [result, err] Result & error if block supplied
|
401
|
+
# @yieldparam result [Google::Apis::WebsecurityscannerV1::ListCrawledUrlsResponse] parsed result object
|
402
|
+
# @yieldparam err [StandardError] error object if request failed
|
403
|
+
#
|
404
|
+
# @return [Google::Apis::WebsecurityscannerV1::ListCrawledUrlsResponse]
|
405
|
+
#
|
406
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
407
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
408
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
409
|
+
def list_project_scan_config_scan_run_crawled_urls(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
410
|
+
command = make_simple_command(:get, 'v1/{+parent}/crawledUrls', options)
|
411
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::ListCrawledUrlsResponse::Representation
|
412
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::ListCrawledUrlsResponse
|
413
|
+
command.params['parent'] = parent unless parent.nil?
|
414
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
415
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
416
|
+
command.query['fields'] = fields unless fields.nil?
|
417
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
418
|
+
execute_or_queue_command(command, &block)
|
419
|
+
end
|
420
|
+
|
421
|
+
# List all FindingTypeStats under a given ScanRun.
|
422
|
+
# @param [String] parent
|
423
|
+
# Required. The parent resource name, which should be a scan run resource name
|
424
|
+
# in the
|
425
|
+
# format
|
426
|
+
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
|
427
|
+
# @param [String] fields
|
428
|
+
# Selector specifying which fields to include in a partial response.
|
429
|
+
# @param [String] quota_user
|
430
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
431
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
432
|
+
# @param [Google::Apis::RequestOptions] options
|
433
|
+
# Request-specific options
|
434
|
+
#
|
435
|
+
# @yield [result, err] Result & error if block supplied
|
436
|
+
# @yieldparam result [Google::Apis::WebsecurityscannerV1::ListFindingTypeStatsResponse] parsed result object
|
437
|
+
# @yieldparam err [StandardError] error object if request failed
|
438
|
+
#
|
439
|
+
# @return [Google::Apis::WebsecurityscannerV1::ListFindingTypeStatsResponse]
|
440
|
+
#
|
441
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
442
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
443
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
444
|
+
def list_project_scan_config_scan_run_finding_type_stats(parent, fields: nil, quota_user: nil, options: nil, &block)
|
445
|
+
command = make_simple_command(:get, 'v1/{+parent}/findingTypeStats', options)
|
446
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::ListFindingTypeStatsResponse::Representation
|
447
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::ListFindingTypeStatsResponse
|
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
|
+
# Gets a Finding.
|
455
|
+
# @param [String] name
|
456
|
+
# Required. The resource name of the Finding to be returned. The name follows
|
457
|
+
# the
|
458
|
+
# format of
|
459
|
+
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`/findings/
|
460
|
+
# `findingId`'.
|
461
|
+
# @param [String] fields
|
462
|
+
# Selector specifying which fields to include in a partial response.
|
463
|
+
# @param [String] quota_user
|
464
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
465
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
466
|
+
# @param [Google::Apis::RequestOptions] options
|
467
|
+
# Request-specific options
|
468
|
+
#
|
469
|
+
# @yield [result, err] Result & error if block supplied
|
470
|
+
# @yieldparam result [Google::Apis::WebsecurityscannerV1::Finding] parsed result object
|
471
|
+
# @yieldparam err [StandardError] error object if request failed
|
472
|
+
#
|
473
|
+
# @return [Google::Apis::WebsecurityscannerV1::Finding]
|
474
|
+
#
|
475
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
476
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
477
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
478
|
+
def get_project_scan_config_scan_run_finding(name, fields: nil, quota_user: nil, options: nil, &block)
|
479
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
480
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::Finding::Representation
|
481
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::Finding
|
482
|
+
command.params['name'] = name unless name.nil?
|
483
|
+
command.query['fields'] = fields unless fields.nil?
|
484
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
485
|
+
execute_or_queue_command(command, &block)
|
486
|
+
end
|
487
|
+
|
488
|
+
# List Findings under a given ScanRun.
|
489
|
+
# @param [String] parent
|
490
|
+
# Required. The parent resource name, which should be a scan run resource name
|
491
|
+
# in the
|
492
|
+
# format
|
493
|
+
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
|
494
|
+
# @param [String] filter
|
495
|
+
# The filter expression. The expression must be in the format: <field>
|
496
|
+
# <operator> <value>.
|
497
|
+
# Supported field: 'finding_type'.
|
498
|
+
# Supported operator: '='.
|
499
|
+
# @param [Fixnum] page_size
|
500
|
+
# The maximum number of Findings to return, can be limited by server.
|
501
|
+
# If not specified or not positive, the implementation will select a
|
502
|
+
# reasonable value.
|
503
|
+
# @param [String] page_token
|
504
|
+
# A token identifying a page of results to be returned. This should be a
|
505
|
+
# `next_page_token` value returned from a previous List request.
|
506
|
+
# If unspecified, the first page of results is returned.
|
507
|
+
# @param [String] fields
|
508
|
+
# Selector specifying which fields to include in a partial response.
|
509
|
+
# @param [String] quota_user
|
510
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
511
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
512
|
+
# @param [Google::Apis::RequestOptions] options
|
513
|
+
# Request-specific options
|
514
|
+
#
|
515
|
+
# @yield [result, err] Result & error if block supplied
|
516
|
+
# @yieldparam result [Google::Apis::WebsecurityscannerV1::ListFindingsResponse] parsed result object
|
517
|
+
# @yieldparam err [StandardError] error object if request failed
|
518
|
+
#
|
519
|
+
# @return [Google::Apis::WebsecurityscannerV1::ListFindingsResponse]
|
520
|
+
#
|
521
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
522
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
523
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
524
|
+
def list_project_scan_config_scan_run_findings(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
525
|
+
command = make_simple_command(:get, 'v1/{+parent}/findings', options)
|
526
|
+
command.response_representation = Google::Apis::WebsecurityscannerV1::ListFindingsResponse::Representation
|
527
|
+
command.response_class = Google::Apis::WebsecurityscannerV1::ListFindingsResponse
|
528
|
+
command.params['parent'] = parent unless parent.nil?
|
529
|
+
command.query['filter'] = filter unless filter.nil?
|
530
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
531
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
532
|
+
command.query['fields'] = fields unless fields.nil?
|
533
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
534
|
+
execute_or_queue_command(command, &block)
|
535
|
+
end
|
49
536
|
|
50
537
|
protected
|
51
538
|
|