Autogenerated update (2019-03-26)
Update: - cloudiot_v1 - cloudkms_v1 - genomics_v1 - genomics_v1alpha2 - genomics_v2alpha1 - groupssettings_v1 - people_v1 - serviceconsumermanagement_v1
This commit is contained in:
parent
39a8317550
commit
a4295f202f
|
@ -73981,6 +73981,88 @@
|
|||
"/driveactivity:v2/fields": fields
|
||||
"/driveactivity:v2/key": key
|
||||
"/driveactivity:v2/quotaUser": quota_user
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1Claim": google_factchecking_factchecktools_v1alpha1_claim
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1Claim/claimDate": claim_date
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1Claim/claimReview": claim_review
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1Claim/claimReview/claim_review": claim_review
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1Claim/claimant": claimant
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1Claim/text": text
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor": google_factchecking_factchecktools_v1alpha1_claim_author
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor/imageUrl": image_url
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor/jobTitle": job_title
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor/name": name
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor/sameAs": same_as
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating": google_factchecking_factchecktools_v1alpha1_claim_rating
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating/bestRating": best_rating
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating/imageUrl": image_url
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating/ratingValue": rating_value
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating/textualRating": textual_rating
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating/worstRating": worst_rating
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview": google_factchecking_factchecktools_v1alpha1_claim_review
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview/languageCode": language_code
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview/publisher": publisher
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview/reviewDate": review_date
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview/textualRating": textual_rating
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview/title": title
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview/url": url
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor": google_factchecking_factchecktools_v1alpha1_claim_review_author
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor/imageUrl": image_url
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor/name": name
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup": google_factchecking_factchecktools_v1alpha1_claim_review_markup
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup/claimAppearances": claim_appearances
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup/claimAppearances/claim_appearance": claim_appearance
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup/claimAuthor": claim_author
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup/claimDate": claim_date
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup/claimFirstAppearance": claim_first_appearance
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup/claimLocation": claim_location
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup/claimReviewed": claim_reviewed
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup/rating": rating
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup/url": url
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage": google_factchecking_factchecktools_v1alpha1_claim_review_markup_page
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage/claimReviewAuthor": claim_review_author
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage/claimReviewMarkups": claim_review_markups
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage/claimReviewMarkups/claim_review_markup": claim_review_markup
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage/name": name
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage/pageUrl": page_url
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage/publishDate": publish_date
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage/versionId": version_id
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse": google_factchecking_factchecktools_v1alpha1_fact_checked_claim_search_response
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse/claims": claims
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse/claims/claim": claim
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse/nextPageToken": next_page_token
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse": google_factchecking_factchecktools_v1alpha1_list_claim_review_markup_pages_response
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse/claimReviewMarkupPages": claim_review_markup_pages
|
||||
? "/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse/claimReviewMarkupPages/claim_review_markup_page"
|
||||
: claim_review_markup_page
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse/nextPageToken": next_page_token
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1Publisher": google_factchecking_factchecktools_v1alpha1_publisher
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1Publisher/name": name
|
||||
"/factchecktools:v1alpha1/GoogleFactcheckingFactchecktoolsV1alpha1Publisher/site": site
|
||||
"/factchecktools:v1alpha1/GoogleProtobufEmpty": google_protobuf_empty
|
||||
"/factchecktools:v1alpha1/factchecktools.claims.search": search_claims
|
||||
"/factchecktools:v1alpha1/factchecktools.claims.search/languageCode": language_code
|
||||
"/factchecktools:v1alpha1/factchecktools.claims.search/maxAgeDays": max_age_days
|
||||
"/factchecktools:v1alpha1/factchecktools.claims.search/offset": offset
|
||||
"/factchecktools:v1alpha1/factchecktools.claims.search/pageSize": page_size
|
||||
"/factchecktools:v1alpha1/factchecktools.claims.search/pageToken": page_token
|
||||
"/factchecktools:v1alpha1/factchecktools.claims.search/query": query
|
||||
"/factchecktools:v1alpha1/factchecktools.claims.search/reviewPublisherSiteFilter": review_publisher_site_filter
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.create": create_page
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.delete": delete_page
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.delete/name": name
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.get": get_page
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.get/name": name
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.list": list_pages
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.list/offset": offset
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.list/organization": organization
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.list/pageSize": page_size
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.list/pageToken": page_token
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.list/url": url
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.update": update_page
|
||||
"/factchecktools:v1alpha1/factchecktools.pages.update/name": name
|
||||
"/factchecktools:v1alpha1/fields": fields
|
||||
"/factchecktools:v1alpha1/key": key
|
||||
"/factchecktools:v1alpha1/quotaUser": quota_user
|
||||
"/file:v1/CancelOperationRequest": cancel_operation_request
|
||||
"/file:v1/Empty": empty
|
||||
"/file:v1/FileShareConfig": file_share_config
|
||||
|
@ -78859,9 +78941,11 @@
|
|||
"/groupssettings:v1/Groups/archiveOnly": archive_only
|
||||
"/groupssettings:v1/Groups/customFooterText": custom_footer_text
|
||||
"/groupssettings:v1/Groups/customReplyTo": custom_reply_to
|
||||
"/groupssettings:v1/Groups/customRolesEnabledForSettingsToBeMerged": custom_roles_enabled_for_settings_to_be_merged
|
||||
"/groupssettings:v1/Groups/defaultMessageDenyNotificationText": default_message_deny_notification_text
|
||||
"/groupssettings:v1/Groups/description": description
|
||||
"/groupssettings:v1/Groups/email": email
|
||||
"/groupssettings:v1/Groups/enableCollaborativeInbox": enable_collaborative_inbox
|
||||
"/groupssettings:v1/Groups/favoriteRepliesOnTop": favorite_replies_on_top
|
||||
"/groupssettings:v1/Groups/includeCustomFooter": include_custom_footer
|
||||
"/groupssettings:v1/Groups/includeInGlobalAddressList": include_in_global_address_list
|
||||
|
@ -78879,17 +78963,33 @@
|
|||
"/groupssettings:v1/Groups/spamModerationLevel": spam_moderation_level
|
||||
"/groupssettings:v1/Groups/whoCanAdd": who_can_add
|
||||
"/groupssettings:v1/Groups/whoCanAddReferences": who_can_add_references
|
||||
"/groupssettings:v1/Groups/whoCanApproveMembers": who_can_approve_members
|
||||
"/groupssettings:v1/Groups/whoCanApproveMessages": who_can_approve_messages
|
||||
"/groupssettings:v1/Groups/whoCanAssignTopics": who_can_assign_topics
|
||||
"/groupssettings:v1/Groups/whoCanAssistContent": who_can_assist_content
|
||||
"/groupssettings:v1/Groups/whoCanBanUsers": who_can_ban_users
|
||||
"/groupssettings:v1/Groups/whoCanContactOwner": who_can_contact_owner
|
||||
"/groupssettings:v1/Groups/whoCanDeleteAnyPost": who_can_delete_any_post
|
||||
"/groupssettings:v1/Groups/whoCanDeleteTopics": who_can_delete_topics
|
||||
"/groupssettings:v1/Groups/whoCanDiscoverGroup": who_can_discover_group
|
||||
"/groupssettings:v1/Groups/whoCanEnterFreeFormTags": who_can_enter_free_form_tags
|
||||
"/groupssettings:v1/Groups/whoCanHideAbuse": who_can_hide_abuse
|
||||
"/groupssettings:v1/Groups/whoCanInvite": who_can_invite
|
||||
"/groupssettings:v1/Groups/whoCanJoin": who_can_join
|
||||
"/groupssettings:v1/Groups/whoCanLeaveGroup": who_can_leave_group
|
||||
"/groupssettings:v1/Groups/whoCanLockTopics": who_can_lock_topics
|
||||
"/groupssettings:v1/Groups/whoCanMakeTopicsSticky": who_can_make_topics_sticky
|
||||
"/groupssettings:v1/Groups/whoCanMarkDuplicate": who_can_mark_duplicate
|
||||
"/groupssettings:v1/Groups/whoCanMarkFavoriteReplyOnAnyTopic": who_can_mark_favorite_reply_on_any_topic
|
||||
"/groupssettings:v1/Groups/whoCanMarkFavoriteReplyOnOwnTopic": who_can_mark_favorite_reply_on_own_topic
|
||||
"/groupssettings:v1/Groups/whoCanMarkNoResponseNeeded": who_can_mark_no_response_needed
|
||||
"/groupssettings:v1/Groups/whoCanModerateContent": who_can_moderate_content
|
||||
"/groupssettings:v1/Groups/whoCanModerateMembers": who_can_moderate_members
|
||||
"/groupssettings:v1/Groups/whoCanModifyMembers": who_can_modify_members
|
||||
"/groupssettings:v1/Groups/whoCanModifyTagsAndCategories": who_can_modify_tags_and_categories
|
||||
"/groupssettings:v1/Groups/whoCanMoveTopicsIn": who_can_move_topics_in
|
||||
"/groupssettings:v1/Groups/whoCanMoveTopicsOut": who_can_move_topics_out
|
||||
"/groupssettings:v1/Groups/whoCanPostAnnouncements": who_can_post_announcements
|
||||
"/groupssettings:v1/Groups/whoCanPostMessage": who_can_post_message
|
||||
"/groupssettings:v1/Groups/whoCanTakeTopics": who_can_take_topics
|
||||
"/groupssettings:v1/Groups/whoCanUnassignTopic": who_can_unassign_topic
|
||||
|
@ -111767,6 +111867,168 @@
|
|||
"/websecurityscanner:v1alpha/websecurityscanner.projects.scanConfigs.scanRuns.stop/name": name
|
||||
"/websecurityscanner:v1alpha/websecurityscanner.projects.scanConfigs.start": start_scan_config_scan_run
|
||||
"/websecurityscanner:v1alpha/websecurityscanner.projects.scanConfigs.start/name": name
|
||||
"/websecurityscanner:v1beta/Authentication": authentication
|
||||
"/websecurityscanner:v1beta/Authentication/customAccount": custom_account
|
||||
"/websecurityscanner:v1beta/Authentication/googleAccount": google_account
|
||||
"/websecurityscanner:v1beta/CrawledUrl": crawled_url
|
||||
"/websecurityscanner:v1beta/CrawledUrl/body": body
|
||||
"/websecurityscanner:v1beta/CrawledUrl/httpMethod": http_method
|
||||
"/websecurityscanner:v1beta/CrawledUrl/url": url
|
||||
"/websecurityscanner:v1beta/CustomAccount": custom_account
|
||||
"/websecurityscanner:v1beta/CustomAccount/loginUrl": login_url
|
||||
"/websecurityscanner:v1beta/CustomAccount/password": password
|
||||
"/websecurityscanner:v1beta/CustomAccount/username": username
|
||||
"/websecurityscanner:v1beta/Empty": empty
|
||||
"/websecurityscanner:v1beta/Finding": finding
|
||||
"/websecurityscanner:v1beta/Finding/body": body
|
||||
"/websecurityscanner:v1beta/Finding/description": description
|
||||
"/websecurityscanner:v1beta/Finding/finalUrl": final_url
|
||||
"/websecurityscanner:v1beta/Finding/findingType": finding_type
|
||||
"/websecurityscanner:v1beta/Finding/form": form
|
||||
"/websecurityscanner:v1beta/Finding/frameUrl": frame_url
|
||||
"/websecurityscanner:v1beta/Finding/fuzzedUrl": fuzzed_url
|
||||
"/websecurityscanner:v1beta/Finding/httpMethod": http_method
|
||||
"/websecurityscanner:v1beta/Finding/name": name
|
||||
"/websecurityscanner:v1beta/Finding/outdatedLibrary": outdated_library
|
||||
"/websecurityscanner:v1beta/Finding/reproductionUrl": reproduction_url
|
||||
"/websecurityscanner:v1beta/Finding/trackingId": tracking_id
|
||||
"/websecurityscanner:v1beta/Finding/violatingResource": violating_resource
|
||||
"/websecurityscanner:v1beta/Finding/vulnerableHeaders": vulnerable_headers
|
||||
"/websecurityscanner:v1beta/Finding/vulnerableParameters": vulnerable_parameters
|
||||
"/websecurityscanner:v1beta/Finding/xss": xss
|
||||
"/websecurityscanner:v1beta/FindingTypeStats": finding_type_stats
|
||||
"/websecurityscanner:v1beta/FindingTypeStats/findingCount": finding_count
|
||||
"/websecurityscanner:v1beta/FindingTypeStats/findingType": finding_type
|
||||
"/websecurityscanner:v1beta/Form": form
|
||||
"/websecurityscanner:v1beta/Form/actionUri": action_uri
|
||||
"/websecurityscanner:v1beta/Form/fields": fields
|
||||
"/websecurityscanner:v1beta/Form/fields/field": field
|
||||
"/websecurityscanner:v1beta/GoogleAccount": google_account
|
||||
"/websecurityscanner:v1beta/GoogleAccount/password": password
|
||||
"/websecurityscanner:v1beta/GoogleAccount/username": username
|
||||
"/websecurityscanner:v1beta/Header": header
|
||||
"/websecurityscanner:v1beta/Header/name": name
|
||||
"/websecurityscanner:v1beta/Header/value": value
|
||||
"/websecurityscanner:v1beta/ListCrawledUrlsResponse": list_crawled_urls_response
|
||||
"/websecurityscanner:v1beta/ListCrawledUrlsResponse/crawledUrls": crawled_urls
|
||||
"/websecurityscanner:v1beta/ListCrawledUrlsResponse/crawledUrls/crawled_url": crawled_url
|
||||
"/websecurityscanner:v1beta/ListCrawledUrlsResponse/nextPageToken": next_page_token
|
||||
"/websecurityscanner:v1beta/ListFindingTypeStatsResponse": list_finding_type_stats_response
|
||||
"/websecurityscanner:v1beta/ListFindingTypeStatsResponse/findingTypeStats": finding_type_stats
|
||||
"/websecurityscanner:v1beta/ListFindingTypeStatsResponse/findingTypeStats/finding_type_stat": finding_type_stat
|
||||
"/websecurityscanner:v1beta/ListFindingsResponse": list_findings_response
|
||||
"/websecurityscanner:v1beta/ListFindingsResponse/findings": findings
|
||||
"/websecurityscanner:v1beta/ListFindingsResponse/findings/finding": finding
|
||||
"/websecurityscanner:v1beta/ListFindingsResponse/nextPageToken": next_page_token
|
||||
"/websecurityscanner:v1beta/ListScanConfigsResponse": list_scan_configs_response
|
||||
"/websecurityscanner:v1beta/ListScanConfigsResponse/nextPageToken": next_page_token
|
||||
"/websecurityscanner:v1beta/ListScanConfigsResponse/scanConfigs": scan_configs
|
||||
"/websecurityscanner:v1beta/ListScanConfigsResponse/scanConfigs/scan_config": scan_config
|
||||
"/websecurityscanner:v1beta/ListScanRunsResponse": list_scan_runs_response
|
||||
"/websecurityscanner:v1beta/ListScanRunsResponse/nextPageToken": next_page_token
|
||||
"/websecurityscanner:v1beta/ListScanRunsResponse/scanRuns": scan_runs
|
||||
"/websecurityscanner:v1beta/ListScanRunsResponse/scanRuns/scan_run": scan_run
|
||||
"/websecurityscanner:v1beta/OutdatedLibrary": outdated_library
|
||||
"/websecurityscanner:v1beta/OutdatedLibrary/learnMoreUrls": learn_more_urls
|
||||
"/websecurityscanner:v1beta/OutdatedLibrary/learnMoreUrls/learn_more_url": learn_more_url
|
||||
"/websecurityscanner:v1beta/OutdatedLibrary/libraryName": library_name
|
||||
"/websecurityscanner:v1beta/OutdatedLibrary/version": version
|
||||
"/websecurityscanner:v1beta/ScanConfig": scan_config
|
||||
"/websecurityscanner:v1beta/ScanConfig/authentication": authentication
|
||||
"/websecurityscanner:v1beta/ScanConfig/blacklistPatterns": blacklist_patterns
|
||||
"/websecurityscanner:v1beta/ScanConfig/blacklistPatterns/blacklist_pattern": blacklist_pattern
|
||||
"/websecurityscanner:v1beta/ScanConfig/displayName": display_name
|
||||
"/websecurityscanner:v1beta/ScanConfig/exportToSecurityCommandCenter": export_to_security_command_center
|
||||
"/websecurityscanner:v1beta/ScanConfig/latestRun": latest_run
|
||||
"/websecurityscanner:v1beta/ScanConfig/maxQps": max_qps
|
||||
"/websecurityscanner:v1beta/ScanConfig/name": name
|
||||
"/websecurityscanner:v1beta/ScanConfig/schedule": schedule
|
||||
"/websecurityscanner:v1beta/ScanConfig/startingUrls": starting_urls
|
||||
"/websecurityscanner:v1beta/ScanConfig/startingUrls/starting_url": starting_url
|
||||
"/websecurityscanner:v1beta/ScanConfig/targetPlatforms": target_platforms
|
||||
"/websecurityscanner:v1beta/ScanConfig/targetPlatforms/target_platform": target_platform
|
||||
"/websecurityscanner:v1beta/ScanConfig/userAgent": user_agent
|
||||
"/websecurityscanner:v1beta/ScanConfigError": scan_config_error
|
||||
"/websecurityscanner:v1beta/ScanConfigError/code": code
|
||||
"/websecurityscanner:v1beta/ScanConfigError/fieldName": field_name
|
||||
"/websecurityscanner:v1beta/ScanRun": scan_run
|
||||
"/websecurityscanner:v1beta/ScanRun/endTime": end_time
|
||||
"/websecurityscanner:v1beta/ScanRun/errorTrace": error_trace
|
||||
"/websecurityscanner:v1beta/ScanRun/executionState": execution_state
|
||||
"/websecurityscanner:v1beta/ScanRun/hasVulnerabilities": has_vulnerabilities
|
||||
"/websecurityscanner:v1beta/ScanRun/name": name
|
||||
"/websecurityscanner:v1beta/ScanRun/progressPercent": progress_percent
|
||||
"/websecurityscanner:v1beta/ScanRun/resultState": result_state
|
||||
"/websecurityscanner:v1beta/ScanRun/startTime": start_time
|
||||
"/websecurityscanner:v1beta/ScanRun/urlsCrawledCount": urls_crawled_count
|
||||
"/websecurityscanner:v1beta/ScanRun/urlsTestedCount": urls_tested_count
|
||||
"/websecurityscanner:v1beta/ScanRun/warningTraces": warning_traces
|
||||
"/websecurityscanner:v1beta/ScanRun/warningTraces/warning_trace": warning_trace
|
||||
"/websecurityscanner:v1beta/ScanRunErrorTrace": scan_run_error_trace
|
||||
"/websecurityscanner:v1beta/ScanRunErrorTrace/code": code
|
||||
"/websecurityscanner:v1beta/ScanRunErrorTrace/mostCommonHttpErrorCode": most_common_http_error_code
|
||||
"/websecurityscanner:v1beta/ScanRunErrorTrace/scanConfigError": scan_config_error
|
||||
"/websecurityscanner:v1beta/ScanRunWarningTrace": scan_run_warning_trace
|
||||
"/websecurityscanner:v1beta/ScanRunWarningTrace/code": code
|
||||
"/websecurityscanner:v1beta/Schedule": schedule
|
||||
"/websecurityscanner:v1beta/Schedule/intervalDurationDays": interval_duration_days
|
||||
"/websecurityscanner:v1beta/Schedule/scheduleTime": schedule_time
|
||||
"/websecurityscanner:v1beta/StartScanRunRequest": start_scan_run_request
|
||||
"/websecurityscanner:v1beta/StopScanRunRequest": stop_scan_run_request
|
||||
"/websecurityscanner:v1beta/ViolatingResource": violating_resource
|
||||
"/websecurityscanner:v1beta/ViolatingResource/contentType": content_type
|
||||
"/websecurityscanner:v1beta/ViolatingResource/resourceUrl": resource_url
|
||||
"/websecurityscanner:v1beta/VulnerableHeaders": vulnerable_headers
|
||||
"/websecurityscanner:v1beta/VulnerableHeaders/headers": headers
|
||||
"/websecurityscanner:v1beta/VulnerableHeaders/headers/header": header
|
||||
"/websecurityscanner:v1beta/VulnerableHeaders/missingHeaders": missing_headers
|
||||
"/websecurityscanner:v1beta/VulnerableHeaders/missingHeaders/missing_header": missing_header
|
||||
"/websecurityscanner:v1beta/VulnerableParameters": vulnerable_parameters
|
||||
"/websecurityscanner:v1beta/VulnerableParameters/parameterNames": parameter_names
|
||||
"/websecurityscanner:v1beta/VulnerableParameters/parameterNames/parameter_name": parameter_name
|
||||
"/websecurityscanner:v1beta/Xss": xss
|
||||
"/websecurityscanner:v1beta/Xss/errorMessage": error_message
|
||||
"/websecurityscanner:v1beta/Xss/stackTraces": stack_traces
|
||||
"/websecurityscanner:v1beta/Xss/stackTraces/stack_trace": stack_trace
|
||||
"/websecurityscanner:v1beta/fields": fields
|
||||
"/websecurityscanner:v1beta/key": key
|
||||
"/websecurityscanner:v1beta/quotaUser": quota_user
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.create": create_project_scan_config
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.create/parent": parent
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.delete": delete_project_scan_config
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.delete/name": name
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.get": get_project_scan_config
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.get/name": name
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.list": list_project_scan_configs
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.list/pageSize": page_size
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.list/pageToken": page_token
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.list/parent": parent
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.patch": patch_project_scan_config
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.patch/name": name
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.patch/updateMask": update_mask
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.crawledUrls.list": list_project_scan_config_scan_run_crawled_urls
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.crawledUrls.list/pageSize": page_size
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.crawledUrls.list/pageToken": page_token
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.crawledUrls.list/parent": parent
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.findingTypeStats.list": list_project_scan_config_scan_run_finding_type_stats
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.findingTypeStats.list/parent": parent
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.findings.get": get_project_scan_config_scan_run_finding
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.findings.get/name": name
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.findings.list": list_project_scan_config_scan_run_findings
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.findings.list/filter": filter
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.findings.list/pageSize": page_size
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.findings.list/pageToken": page_token
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.findings.list/parent": parent
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.get": get_project_scan_config_scan_run
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.get/name": name
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.list": list_project_scan_config_scan_runs
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.list/pageSize": page_size
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.list/pageToken": page_token
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.list/parent": parent
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.stop": stop_scan_run
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.scanRuns.stop/name": name
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.start": start_scan_config_scan_run
|
||||
"/websecurityscanner:v1beta/websecurityscanner.projects.scanConfigs.start/name": name
|
||||
"/youtube:v3/AccessPolicy": access_policy
|
||||
"/youtube:v3/AccessPolicy/allowed": allowed
|
||||
"/youtube:v3/AccessPolicy/exception": exception
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/iot
|
||||
module CloudiotV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190306'
|
||||
REVISION = '20190321'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/kms/
|
||||
module CloudkmsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190222'
|
||||
REVISION = '20190321'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/factchecktools_v1alpha1/service.rb'
|
||||
require 'google/apis/factchecktools_v1alpha1/classes.rb'
|
||||
require 'google/apis/factchecktools_v1alpha1/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Fact Check Tools API
|
||||
#
|
||||
#
|
||||
#
|
||||
# @see https://developers.google.com/fact-check/tools/api/
|
||||
module FactchecktoolsV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20190325'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,459 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module FactchecktoolsV1alpha1
|
||||
|
||||
# Information about the claim.
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1Claim
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The date that the claim was made.
|
||||
# Corresponds to the JSON property `claimDate`
|
||||
# @return [String]
|
||||
attr_accessor :claim_date
|
||||
|
||||
# One or more reviews of this claim (namely, a fact-checking article).
|
||||
# Corresponds to the JSON property `claimReview`
|
||||
# @return [Array<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview>]
|
||||
attr_accessor :claim_review
|
||||
|
||||
# A person or organization stating the claim. For instance, "John Doe".
|
||||
# Corresponds to the JSON property `claimant`
|
||||
# @return [String]
|
||||
attr_accessor :claimant
|
||||
|
||||
# The claim text. For instance, "Crime has doubled in the last 2 years."
|
||||
# Corresponds to the JSON property `text`
|
||||
# @return [String]
|
||||
attr_accessor :text
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@claim_date = args[:claim_date] if args.key?(:claim_date)
|
||||
@claim_review = args[:claim_review] if args.key?(:claim_review)
|
||||
@claimant = args[:claimant] if args.key?(:claimant)
|
||||
@text = args[:text] if args.key?(:text)
|
||||
end
|
||||
end
|
||||
|
||||
# Information about the claim author.
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Corresponds to `ClaimReview.itemReviewed.author.image`.
|
||||
# Corresponds to the JSON property `imageUrl`
|
||||
# @return [String]
|
||||
attr_accessor :image_url
|
||||
|
||||
# Corresponds to `ClaimReview.itemReviewed.author.jobTitle`.
|
||||
# Corresponds to the JSON property `jobTitle`
|
||||
# @return [String]
|
||||
attr_accessor :job_title
|
||||
|
||||
# A person or organization stating the claim. For instance, "John Doe".<br>
|
||||
# Corresponds to `ClaimReview.itemReviewed.author.name`.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Corresponds to `ClaimReview.itemReviewed.author.sameAs`.
|
||||
# Corresponds to the JSON property `sameAs`
|
||||
# @return [String]
|
||||
attr_accessor :same_as
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@image_url = args[:image_url] if args.key?(:image_url)
|
||||
@job_title = args[:job_title] if args.key?(:job_title)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@same_as = args[:same_as] if args.key?(:same_as)
|
||||
end
|
||||
end
|
||||
|
||||
# Information about the claim rating.
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# For numeric ratings, the best value possible in the scale from worst to
|
||||
# best.<br>
|
||||
# Corresponds to `ClaimReview.reviewRating.bestRating`.
|
||||
# Corresponds to the JSON property `bestRating`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :best_rating
|
||||
|
||||
# Corresponds to `ClaimReview.reviewRating.image`.
|
||||
# Corresponds to the JSON property `imageUrl`
|
||||
# @return [String]
|
||||
attr_accessor :image_url
|
||||
|
||||
# A numeric rating of this claim, in the range worstRating — bestRating
|
||||
# inclusive.<br>
|
||||
# Corresponds to `ClaimReview.reviewRating.ratingValue`.
|
||||
# Corresponds to the JSON property `ratingValue`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :rating_value
|
||||
|
||||
# The truthfulness rating as a human-readible short word or phrase.<br>
|
||||
# Corresponds to `ClaimReview.reviewRating.alternateName`.
|
||||
# Corresponds to the JSON property `textualRating`
|
||||
# @return [String]
|
||||
attr_accessor :textual_rating
|
||||
|
||||
# For numeric ratings, the worst value possible in the scale from worst to
|
||||
# best.<br>
|
||||
# Corresponds to `ClaimReview.reviewRating.worstRating`.
|
||||
# Corresponds to the JSON property `worstRating`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :worst_rating
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@best_rating = args[:best_rating] if args.key?(:best_rating)
|
||||
@image_url = args[:image_url] if args.key?(:image_url)
|
||||
@rating_value = args[:rating_value] if args.key?(:rating_value)
|
||||
@textual_rating = args[:textual_rating] if args.key?(:textual_rating)
|
||||
@worst_rating = args[:worst_rating] if args.key?(:worst_rating)
|
||||
end
|
||||
end
|
||||
|
||||
# Information about a claim review.
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The language this review was written in. For instance, "en" or "de".
|
||||
# Corresponds to the JSON property `languageCode`
|
||||
# @return [String]
|
||||
attr_accessor :language_code
|
||||
|
||||
# Information about the publisher.
|
||||
# Corresponds to the JSON property `publisher`
|
||||
# @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Publisher]
|
||||
attr_accessor :publisher
|
||||
|
||||
# The date the claim was reviewed.
|
||||
# Corresponds to the JSON property `reviewDate`
|
||||
# @return [String]
|
||||
attr_accessor :review_date
|
||||
|
||||
# Textual rating. For instance, "Mostly false".
|
||||
# Corresponds to the JSON property `textualRating`
|
||||
# @return [String]
|
||||
attr_accessor :textual_rating
|
||||
|
||||
# The title of this claim review, if it can be determined.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
attr_accessor :title
|
||||
|
||||
# The URL of this claim review.
|
||||
# Corresponds to the JSON property `url`
|
||||
# @return [String]
|
||||
attr_accessor :url
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@language_code = args[:language_code] if args.key?(:language_code)
|
||||
@publisher = args[:publisher] if args.key?(:publisher)
|
||||
@review_date = args[:review_date] if args.key?(:review_date)
|
||||
@textual_rating = args[:textual_rating] if args.key?(:textual_rating)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
end
|
||||
end
|
||||
|
||||
# Information about the claim review author.
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Corresponds to `ClaimReview.author.image`.
|
||||
# Corresponds to the JSON property `imageUrl`
|
||||
# @return [String]
|
||||
attr_accessor :image_url
|
||||
|
||||
# Name of the organization that is publishing the fact check.<br>
|
||||
# Corresponds to `ClaimReview.author.name`.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@image_url = args[:image_url] if args.key?(:image_url)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
||||
# Fields for an individual `ClaimReview` element.
|
||||
# Except for sub-messages that group fields together, each of these fields
|
||||
# correspond those in https://schema.org/ClaimReview. We list the precise
|
||||
# mapping for each field.
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of links to works in which this claim appears, aside from the one
|
||||
# specified in `claim_first_appearance`.<br>
|
||||
# Corresponds to `ClaimReview.itemReviewed[@type=Claim].appearance.url`.
|
||||
# Corresponds to the JSON property `claimAppearances`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :claim_appearances
|
||||
|
||||
# Information about the claim author.
|
||||
# Corresponds to the JSON property `claimAuthor`
|
||||
# @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor]
|
||||
attr_accessor :claim_author
|
||||
|
||||
# The date when the claim was made or entered public discourse.<br>
|
||||
# Corresponds to `ClaimReview.itemReviewed.datePublished`.
|
||||
# Corresponds to the JSON property `claimDate`
|
||||
# @return [String]
|
||||
attr_accessor :claim_date
|
||||
|
||||
# A link to a work in which this claim first appears.<br>
|
||||
# Corresponds to `ClaimReview.itemReviewed[@type=Claim].firstAppearance.url`.
|
||||
# Corresponds to the JSON property `claimFirstAppearance`
|
||||
# @return [String]
|
||||
attr_accessor :claim_first_appearance
|
||||
|
||||
# The location where this claim was made.<br>
|
||||
# Corresponds to `ClaimReview.itemReviewed.name`.
|
||||
# Corresponds to the JSON property `claimLocation`
|
||||
# @return [String]
|
||||
attr_accessor :claim_location
|
||||
|
||||
# A short summary of the claim being evaluated.<br>
|
||||
# Corresponds to `ClaimReview.claimReviewed`.
|
||||
# Corresponds to the JSON property `claimReviewed`
|
||||
# @return [String]
|
||||
attr_accessor :claim_reviewed
|
||||
|
||||
# Information about the claim rating.
|
||||
# Corresponds to the JSON property `rating`
|
||||
# @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating]
|
||||
attr_accessor :rating
|
||||
|
||||
# This field is optional, and will default to the page URL. We provide this
|
||||
# field to allow you the override the default value, but the only permitted
|
||||
# override is the page URL plus an optional anchor link ("page jump").<br>
|
||||
# Corresponds to `ClaimReview.url`
|
||||
# Corresponds to the JSON property `url`
|
||||
# @return [String]
|
||||
attr_accessor :url
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@claim_appearances = args[:claim_appearances] if args.key?(:claim_appearances)
|
||||
@claim_author = args[:claim_author] if args.key?(:claim_author)
|
||||
@claim_date = args[:claim_date] if args.key?(:claim_date)
|
||||
@claim_first_appearance = args[:claim_first_appearance] if args.key?(:claim_first_appearance)
|
||||
@claim_location = args[:claim_location] if args.key?(:claim_location)
|
||||
@claim_reviewed = args[:claim_reviewed] if args.key?(:claim_reviewed)
|
||||
@rating = args[:rating] if args.key?(:rating)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
end
|
||||
end
|
||||
|
||||
# Holds one or more instances of `ClaimReview` markup for a webpage.
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Information about the claim review author.
|
||||
# Corresponds to the JSON property `claimReviewAuthor`
|
||||
# @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor]
|
||||
attr_accessor :claim_review_author
|
||||
|
||||
# A list of individual claim reviews for this page.
|
||||
# Each item in the list corresponds to one `ClaimReview` element.
|
||||
# Corresponds to the JSON property `claimReviewMarkups`
|
||||
# @return [Array<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup>]
|
||||
attr_accessor :claim_review_markups
|
||||
|
||||
# The name of this `ClaimReview` markup page resource, in the form of
|
||||
# `pages/`page_id``. Except for update requests, this field is output-only
|
||||
# and should not be set by the user.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The URL of the page associated with this `ClaimReview` markup.
|
||||
# While every individual `ClaimReview` has its own URL field, semantically
|
||||
# this is a page-level field, and each `ClaimReview` on this page will use
|
||||
# this value unless individually overridden.<br>
|
||||
# Corresponds to `ClaimReview.url`
|
||||
# Corresponds to the JSON property `pageUrl`
|
||||
# @return [String]
|
||||
attr_accessor :page_url
|
||||
|
||||
# The date when the fact check was published.
|
||||
# Similar to the URL, semantically this is a page-level field, and each
|
||||
# `ClaimReview` on this page will contain the same value.<br>
|
||||
# Corresponds to `ClaimReview.datePublished`
|
||||
# Corresponds to the JSON property `publishDate`
|
||||
# @return [String]
|
||||
attr_accessor :publish_date
|
||||
|
||||
# The version ID for this markup. Except for update requests, this field is
|
||||
# output-only and should not be set by the user.
|
||||
# Corresponds to the JSON property `versionId`
|
||||
# @return [String]
|
||||
attr_accessor :version_id
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@claim_review_author = args[:claim_review_author] if args.key?(:claim_review_author)
|
||||
@claim_review_markups = args[:claim_review_markups] if args.key?(:claim_review_markups)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@page_url = args[:page_url] if args.key?(:page_url)
|
||||
@publish_date = args[:publish_date] if args.key?(:publish_date)
|
||||
@version_id = args[:version_id] if args.key?(:version_id)
|
||||
end
|
||||
end
|
||||
|
||||
# Response from searching fact-checked claims.
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of claims and all of their associated information.
|
||||
# Corresponds to the JSON property `claims`
|
||||
# @return [Array<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim>]
|
||||
attr_accessor :claims
|
||||
|
||||
# The next pagination token in the Search response. It should be used as the
|
||||
# `page_token` for the following request. An empty value means no more
|
||||
# results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@claims = args[:claims] if args.key?(:claims)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# Response from listing `ClaimReview` markup.
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The result list of pages of `ClaimReview` markup.
|
||||
# Corresponds to the JSON property `claimReviewMarkupPages`
|
||||
# @return [Array<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage>]
|
||||
attr_accessor :claim_review_markup_pages
|
||||
|
||||
# The next pagination token in the Search response. It should be used as the
|
||||
# `page_token` for the following request. An empty value means no more
|
||||
# results.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@claim_review_markup_pages = args[:claim_review_markup_pages] if args.key?(:claim_review_markup_pages)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# Information about the publisher.
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1Publisher
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of this publisher. For instance, "Awesome Fact Checks".
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Host-level site name, without the protocol or "www" prefix. For instance,
|
||||
# "awesomefactchecks.com". This value of this field is based purely on the
|
||||
# claim review URL.
|
||||
# Corresponds to the JSON property `site`
|
||||
# @return [String]
|
||||
attr_accessor :site
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@site = args[:site] if args.key?(:site)
|
||||
end
|
||||
end
|
||||
|
||||
# A generic empty message that you can re-use to avoid defining duplicated
|
||||
# empty messages in your APIs. A typical example is to use it as the request
|
||||
# or the response type of an API method. For instance:
|
||||
# service Foo `
|
||||
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
# `
|
||||
# The JSON representation for `Empty` is empty JSON object ````.
|
||||
class GoogleProtobufEmpty
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,207 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module FactchecktoolsV1alpha1
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1Claim
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1Publisher
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleProtobufEmpty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1Claim
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :claim_date, as: 'claimDate'
|
||||
collection :claim_review, as: 'claimReview', class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview, decorator: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview::Representation
|
||||
|
||||
property :claimant, as: 'claimant'
|
||||
property :text, as: 'text'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :image_url, as: 'imageUrl'
|
||||
property :job_title, as: 'jobTitle'
|
||||
property :name, as: 'name'
|
||||
property :same_as, as: 'sameAs'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :best_rating, as: 'bestRating'
|
||||
property :image_url, as: 'imageUrl'
|
||||
property :rating_value, as: 'ratingValue'
|
||||
property :textual_rating, as: 'textualRating'
|
||||
property :worst_rating, as: 'worstRating'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :language_code, as: 'languageCode'
|
||||
property :publisher, as: 'publisher', class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Publisher, decorator: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Publisher::Representation
|
||||
|
||||
property :review_date, as: 'reviewDate'
|
||||
property :textual_rating, as: 'textualRating'
|
||||
property :title, as: 'title'
|
||||
property :url, as: 'url'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :image_url, as: 'imageUrl'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :claim_appearances, as: 'claimAppearances'
|
||||
property :claim_author, as: 'claimAuthor', class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor, decorator: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor::Representation
|
||||
|
||||
property :claim_date, as: 'claimDate'
|
||||
property :claim_first_appearance, as: 'claimFirstAppearance'
|
||||
property :claim_location, as: 'claimLocation'
|
||||
property :claim_reviewed, as: 'claimReviewed'
|
||||
property :rating, as: 'rating', class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating, decorator: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating::Representation
|
||||
|
||||
property :url, as: 'url'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :claim_review_author, as: 'claimReviewAuthor', class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor, decorator: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor::Representation
|
||||
|
||||
collection :claim_review_markups, as: 'claimReviewMarkups', class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup, decorator: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :page_url, as: 'pageUrl'
|
||||
property :publish_date, as: 'publishDate'
|
||||
property :version_id, as: 'versionId'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :claims, as: 'claims', class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim, decorator: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :claim_review_markup_pages, as: 'claimReviewMarkupPages', class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage, decorator: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleFactcheckingFactchecktoolsV1alpha1Publisher
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :site, as: 'site'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleProtobufEmpty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,300 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module FactchecktoolsV1alpha1
|
||||
# Fact Check Tools API
|
||||
#
|
||||
#
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/factchecktools_v1alpha1'
|
||||
#
|
||||
# Factchecktools = Google::Apis::FactchecktoolsV1alpha1 # Alias the module
|
||||
# service = Factchecktools::FactCheckToolsService.new
|
||||
#
|
||||
# @see https://developers.google.com/fact-check/tools/api/
|
||||
class FactCheckToolsService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://factchecktools.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Search through fact-checked claims.
|
||||
# @param [String] language_code
|
||||
# The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to
|
||||
# restrict results by language, though we do not currently consider the
|
||||
# region.
|
||||
# @param [Fixnum] max_age_days
|
||||
# The maximum age of the returned search results, in days.
|
||||
# Age is determined by either claim date or review date, whichever is newer.
|
||||
# @param [Fixnum] offset
|
||||
# An integer that specifies the current offset (that is, starting result
|
||||
# location) in search results. This field is only considered if `page_token`
|
||||
# is unset. For example, 0 means to return results starting from the first
|
||||
# matching result, and 10 means to return from the 11th result.
|
||||
# @param [Fixnum] page_size
|
||||
# The pagination size. We will return up to that many results. Defaults to
|
||||
# 10 if not set.
|
||||
# @param [String] page_token
|
||||
# The pagination token. You may provide the `next_page_token` returned from a
|
||||
# previous List request, if any, in order to get the next page. All other
|
||||
# fields must have the same values as in the previous request.
|
||||
# @param [String] query
|
||||
# Textual query string. Required unless `review_publisher_site_filter` is
|
||||
# specified.
|
||||
# @param [String] review_publisher_site_filter
|
||||
# The review publisher site to filter results by, e.g. nytimes.com.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def search_claims(language_code: nil, max_age_days: nil, offset: nil, page_size: nil, page_token: nil, query: nil, review_publisher_site_filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/claims:search', options)
|
||||
command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse::Representation
|
||||
command.response_class = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse
|
||||
command.query['languageCode'] = language_code unless language_code.nil?
|
||||
command.query['maxAgeDays'] = max_age_days unless max_age_days.nil?
|
||||
command.query['offset'] = offset unless offset.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['query'] = query unless query.nil?
|
||||
command.query['reviewPublisherSiteFilter'] = review_publisher_site_filter unless review_publisher_site_filter.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Create `ClaimReview` markup on a page.
|
||||
# @param [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage] google_factchecking_factchecktools_v1alpha1_claim_review_markup_page_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_page(google_factchecking_factchecktools_v1alpha1_claim_review_markup_page_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1alpha1/pages', options)
|
||||
command.request_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::Representation
|
||||
command.request_object = google_factchecking_factchecktools_v1alpha1_claim_review_markup_page_object
|
||||
command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::Representation
|
||||
command.response_class = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Delete all `ClaimReview` markup on a page.
|
||||
# @param [String] name
|
||||
# The name of the resource to delete, in the form of `pages/`page_id``.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FactchecktoolsV1alpha1::GoogleProtobufEmpty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FactchecktoolsV1alpha1::GoogleProtobufEmpty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_page(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleProtobufEmpty::Representation
|
||||
command.response_class = Google::Apis::FactchecktoolsV1alpha1::GoogleProtobufEmpty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get all `ClaimReview` markup on a page.
|
||||
# @param [String] name
|
||||
# The name of the resource to get, in the form of `pages/`page_id``.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_page(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
||||
command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::Representation
|
||||
command.response_class = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# List the `ClaimReview` markup pages for a specific URL or for an
|
||||
# organization.
|
||||
# @param [Fixnum] offset
|
||||
# An integer that specifies the current offset (that is, starting result
|
||||
# location) in search results. This field is only considered if `page_token`
|
||||
# is unset, and if the request is not for a specific URL. For example, 0
|
||||
# means to return results starting from the first matching result, and 10
|
||||
# means to return from the 11th result.
|
||||
# @param [String] organization
|
||||
# The organization for which we want to fetch markups for. For instance,
|
||||
# "site.com". Cannot be specified along with an URL.
|
||||
# @param [Fixnum] page_size
|
||||
# The pagination size. We will return up to that many results. Defaults to
|
||||
# 10 if not set. Has no effect if a URL is requested.
|
||||
# @param [String] page_token
|
||||
# The pagination token. You may provide the `next_page_token` returned from a
|
||||
# previous List request, if any, in order to get the next page. All other
|
||||
# fields must have the same values as in the previous request.
|
||||
# @param [String] url
|
||||
# The URL from which to get `ClaimReview` markup. There will be at most one
|
||||
# result. If markup is associated with a more canonical version of the URL
|
||||
# provided, we will return that URL instead. Cannot be specified along with
|
||||
# an organization.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_pages(offset: nil, organization: nil, page_size: nil, page_token: nil, url: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1alpha1/pages', options)
|
||||
command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse::Representation
|
||||
command.response_class = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse
|
||||
command.query['offset'] = offset unless offset.nil?
|
||||
command.query['organization'] = organization unless organization.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['url'] = url unless url.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Update for all `ClaimReview` markup on a page
|
||||
# Note that this is a full update. To retain the existing `ClaimReview`
|
||||
# markup on a page, first perform a Get operation, then modify the returned
|
||||
# markup, and finally call Update with the entire `ClaimReview` markup as the
|
||||
# body.
|
||||
# @param [String] name
|
||||
# The name of this `ClaimReview` markup page resource, in the form of
|
||||
# `pages/`page_id``. Except for update requests, this field is output-only
|
||||
# and should not be set by the user.
|
||||
# @param [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage] google_factchecking_factchecktools_v1alpha1_claim_review_markup_page_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_page(name, google_factchecking_factchecktools_v1alpha1_claim_review_markup_page_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v1alpha1/{+name}', options)
|
||||
command.request_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::Representation
|
||||
command.request_object = google_factchecking_factchecktools_v1alpha1_claim_review_markup_page_object
|
||||
command.response_representation = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::Representation
|
||||
command.response_class = Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/genomics
|
||||
module GenomicsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190312'
|
||||
REVISION = '20190323'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -276,44 +276,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The read group set import response.
|
||||
class ImportReadGroupSetsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# IDs of the read group sets that were created.
|
||||
# Corresponds to the JSON property `readGroupSetIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :read_group_set_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@read_group_set_ids = args[:read_group_set_ids] if args.key?(:read_group_set_ids)
|
||||
end
|
||||
end
|
||||
|
||||
# The variant data import response.
|
||||
class ImportVariantsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# IDs of the call sets created during the import.
|
||||
# Corresponds to the JSON property `callSetIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :call_set_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Operations.ListOperations.
|
||||
class ListOperationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -408,9 +370,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If
|
||||
# importing Variants, an ImportVariantsResponse is returned. For pipelines and
|
||||
# exports, an Empty response is returned.
|
||||
# An Empty object.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :response
|
||||
|
|
|
@ -76,18 +76,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ImportReadGroupSetsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ImportVariantsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -232,20 +220,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ImportReadGroupSetsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :read_group_set_ids, as: 'readGroupSetIds'
|
||||
end
|
||||
end
|
||||
|
||||
class ImportVariantsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :call_set_ids, as: 'callSetIds'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/genomics
|
||||
module GenomicsV1alpha2
|
||||
VERSION = 'V1alpha2'
|
||||
REVISION = '20190309'
|
||||
REVISION = '20190323'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -444,44 +444,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The read group set import response.
|
||||
class ImportReadGroupSetsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# IDs of the read group sets that were created.
|
||||
# Corresponds to the JSON property `readGroupSetIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :read_group_set_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@read_group_set_ids = args[:read_group_set_ids] if args.key?(:read_group_set_ids)
|
||||
end
|
||||
end
|
||||
|
||||
# The variant data import response.
|
||||
class ImportVariantsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# IDs of the call sets created during the import.
|
||||
# Corresponds to the JSON property `callSetIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :call_set_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Operations.ListOperations.
|
||||
class ListOperationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -661,9 +623,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If
|
||||
# importing Variants, an ImportVariantsResponse is returned. For pipelines and
|
||||
# exports, an Empty response is returned.
|
||||
# An Empty object.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :response
|
||||
|
|
|
@ -94,18 +94,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ImportReadGroupSetsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ImportVariantsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -359,20 +347,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ImportReadGroupSetsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :read_group_set_ids, as: 'readGroupSetIds'
|
||||
end
|
||||
end
|
||||
|
||||
class ImportVariantsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :call_set_ids, as: 'callSetIds'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/genomics
|
||||
module GenomicsV2alpha1
|
||||
VERSION = 'V2alpha1'
|
||||
REVISION = '20190309'
|
||||
REVISION = '20190323'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -620,44 +620,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The read group set import response.
|
||||
class ImportReadGroupSetsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# IDs of the read group sets that were created.
|
||||
# Corresponds to the JSON property `readGroupSetIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :read_group_set_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@read_group_set_ids = args[:read_group_set_ids] if args.key?(:read_group_set_ids)
|
||||
end
|
||||
end
|
||||
|
||||
# The variant data import response.
|
||||
class ImportVariantsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# IDs of the call sets created during the import.
|
||||
# Corresponds to the JSON property `callSetIds`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :call_set_ids
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids)
|
||||
end
|
||||
end
|
||||
|
||||
# The response message for Operations.ListOperations.
|
||||
class ListOperationsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -880,9 +842,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If
|
||||
# importing Variants, an ImportVariantsResponse is returned. For pipelines and
|
||||
# exports, an Empty response is returned.
|
||||
# An Empty object.
|
||||
# Corresponds to the JSON property `response`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :response
|
||||
|
|
|
@ -112,18 +112,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ImportReadGroupSetsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ImportVariantsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -395,20 +383,6 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ImportReadGroupSetsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :read_group_set_ids, as: 'readGroupSetIds'
|
||||
end
|
||||
end
|
||||
|
||||
class ImportVariantsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :call_set_ids, as: 'callSetIds'
|
||||
end
|
||||
end
|
||||
|
||||
class ListOperationsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -20,12 +20,12 @@ module Google
|
|||
module Apis
|
||||
# Groups Settings API
|
||||
#
|
||||
# Lets you manage permission levels and related settings of a group.
|
||||
# Manages permission levels and related settings of a group.
|
||||
#
|
||||
# @see https://developers.google.com/google-apps/groups-settings/get_started
|
||||
module GroupssettingsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20180615'
|
||||
REVISION = '20190315'
|
||||
|
||||
# View and manage the settings of a G Suite group
|
||||
AUTH_APPS_GROUPS_SETTINGS = 'https://www.googleapis.com/auth/apps.groups.settings'
|
||||
|
|
|
@ -56,6 +56,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :custom_reply_to
|
||||
|
||||
# If any of the settings that will be merged have custom roles which is anything
|
||||
# other than owners, managers, or group scopes.
|
||||
# Corresponds to the JSON property `customRolesEnabledForSettingsToBeMerged`
|
||||
# @return [String]
|
||||
attr_accessor :custom_roles_enabled_for_settings_to_be_merged
|
||||
|
||||
# Default message deny notification message
|
||||
# Corresponds to the JSON property `defaultMessageDenyNotificationText`
|
||||
# @return [String]
|
||||
|
@ -71,6 +77,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :email
|
||||
|
||||
# If a primary Collab Inbox feature is enabled.
|
||||
# Corresponds to the JSON property `enableCollaborativeInbox`
|
||||
# @return [String]
|
||||
attr_accessor :enable_collaborative_inbox
|
||||
|
||||
# If favorite replies should be displayed above other replies.
|
||||
# Corresponds to the JSON property `favoriteRepliesOnTop`
|
||||
# @return [String]
|
||||
|
@ -163,12 +174,36 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :who_can_add_references
|
||||
|
||||
# Permission to approve members. Possible values are: ALL_OWNERS_CAN_APPROVE
|
||||
# ALL_MANAGERS_CAN_APPROVE ALL_MEMBERS_CAN_APPROVE NONE_CAN_APPROVE
|
||||
# Corresponds to the JSON property `whoCanApproveMembers`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_approve_members
|
||||
|
||||
# Permission to approve pending messages in the moderation queue. Possible
|
||||
# values are: NONE OWNERS_ONLY OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanApproveMessages`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_approve_messages
|
||||
|
||||
# Permission to assign topics in a forum to another user. Possible values are:
|
||||
# NONE OWNERS_ONLY MANAGERS_ONLY OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanAssignTopics`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_assign_topics
|
||||
|
||||
# Permission for content assistants. Possible values are: Possible values are:
|
||||
# NONE OWNERS_ONLY MANAGERS_ONLY OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanAssistContent`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_assist_content
|
||||
|
||||
# Permission to ban users. Possible values are: NONE OWNERS_ONLY
|
||||
# OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanBanUsers`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_ban_users
|
||||
|
||||
# Permission to contact owner of the group via web UI. Possible values are:
|
||||
# ANYONE_CAN_CONTACT ALL_IN_DOMAIN_CAN_CONTACT ALL_MEMBERS_CAN_CONTACT
|
||||
# ALL_MANAGERS_CAN_CONTACT
|
||||
|
@ -176,12 +211,36 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :who_can_contact_owner
|
||||
|
||||
# Permission to delete replies to topics. Possible values are: NONE OWNERS_ONLY
|
||||
# OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanDeleteAnyPost`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_delete_any_post
|
||||
|
||||
# Permission to delete topics. Possible values are: NONE OWNERS_ONLY
|
||||
# OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanDeleteTopics`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_delete_topics
|
||||
|
||||
# Permission for who can discover the group. Possible values are:
|
||||
# ALL_MEMBERS_CAN_DISCOVER ALL_IN_DOMAIN_CAN_DISCOVER ANYONE_CAN_DISCOVER
|
||||
# Corresponds to the JSON property `whoCanDiscoverGroup`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_discover_group
|
||||
|
||||
# Permission to enter free form tags for topics in a forum. Possible values are:
|
||||
# NONE OWNERS_ONLY MANAGERS_ONLY OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanEnterFreeFormTags`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_enter_free_form_tags
|
||||
|
||||
# Permission to hide posts by reporting them as abuse. Possible values are: NONE
|
||||
# OWNERS_ONLY MANAGERS_ONLY OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanHideAbuse`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_hide_abuse
|
||||
|
||||
# Permissions to invite members. Possible values are: ALL_MEMBERS_CAN_INVITE
|
||||
# ALL_MANAGERS_CAN_INVITE ALL_OWNERS_CAN_INVITE NONE_CAN_INVITE
|
||||
# Corresponds to the JSON property `whoCanInvite`
|
||||
|
@ -200,6 +259,18 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :who_can_leave_group
|
||||
|
||||
# Permission to lock topics. Possible values are: NONE OWNERS_ONLY
|
||||
# OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanLockTopics`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_lock_topics
|
||||
|
||||
# Permission to make topics appear at the top of the topic list. Possible values
|
||||
# are: NONE OWNERS_ONLY MANAGERS_ONLY OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanMakeTopicsSticky`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_make_topics_sticky
|
||||
|
||||
# Permission to mark a topic as a duplicate of another topic. Possible values
|
||||
# are: NONE OWNERS_ONLY MANAGERS_ONLY OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanMarkDuplicate`
|
||||
|
@ -225,12 +296,48 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :who_can_mark_no_response_needed
|
||||
|
||||
# Permission for content moderation. Possible values are: NONE OWNERS_ONLY
|
||||
# OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanModerateContent`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_moderate_content
|
||||
|
||||
# Permission for membership moderation. Possible values are: NONE OWNERS_ONLY
|
||||
# OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanModerateMembers`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_moderate_members
|
||||
|
||||
# Permission to modify members (change member roles). Possible values are: NONE
|
||||
# OWNERS_ONLY OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanModifyMembers`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_modify_members
|
||||
|
||||
# Permission to change tags and categories. Possible values are: NONE
|
||||
# OWNERS_ONLY MANAGERS_ONLY OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanModifyTagsAndCategories`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_modify_tags_and_categories
|
||||
|
||||
# Permission to move topics into the group or forum. Possible values are: NONE
|
||||
# OWNERS_ONLY OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanMoveTopicsIn`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_move_topics_in
|
||||
|
||||
# Permission to move topics out of the group or forum. Possible values are: NONE
|
||||
# OWNERS_ONLY OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanMoveTopicsOut`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_move_topics_out
|
||||
|
||||
# Permission to post announcements, a special topic type. Possible values are:
|
||||
# NONE OWNERS_ONLY OWNERS_AND_MANAGERS ALL_MEMBERS
|
||||
# Corresponds to the JSON property `whoCanPostAnnouncements`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_post_announcements
|
||||
|
||||
# Permissions to post messages to the group. Possible values are: NONE_CAN_POST
|
||||
# ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST ALL_OWNERS_CAN_POST
|
||||
# ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST
|
||||
|
@ -264,7 +371,7 @@ module Google
|
|||
attr_accessor :who_can_view_group
|
||||
|
||||
# Permissions to view membership. Possible values are: ALL_IN_DOMAIN_CAN_VIEW
|
||||
# ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
|
||||
# ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW ALL_OWNERS_CAN_VIEW
|
||||
# Corresponds to the JSON property `whoCanViewMembership`
|
||||
# @return [String]
|
||||
attr_accessor :who_can_view_membership
|
||||
|
@ -281,9 +388,11 @@ module Google
|
|||
@archive_only = args[:archive_only] if args.key?(:archive_only)
|
||||
@custom_footer_text = args[:custom_footer_text] if args.key?(:custom_footer_text)
|
||||
@custom_reply_to = args[:custom_reply_to] if args.key?(:custom_reply_to)
|
||||
@custom_roles_enabled_for_settings_to_be_merged = args[:custom_roles_enabled_for_settings_to_be_merged] if args.key?(:custom_roles_enabled_for_settings_to_be_merged)
|
||||
@default_message_deny_notification_text = args[:default_message_deny_notification_text] if args.key?(:default_message_deny_notification_text)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@email = args[:email] if args.key?(:email)
|
||||
@enable_collaborative_inbox = args[:enable_collaborative_inbox] if args.key?(:enable_collaborative_inbox)
|
||||
@favorite_replies_on_top = args[:favorite_replies_on_top] if args.key?(:favorite_replies_on_top)
|
||||
@include_custom_footer = args[:include_custom_footer] if args.key?(:include_custom_footer)
|
||||
@include_in_global_address_list = args[:include_in_global_address_list] if args.key?(:include_in_global_address_list)
|
||||
|
@ -301,17 +410,33 @@ module Google
|
|||
@spam_moderation_level = args[:spam_moderation_level] if args.key?(:spam_moderation_level)
|
||||
@who_can_add = args[:who_can_add] if args.key?(:who_can_add)
|
||||
@who_can_add_references = args[:who_can_add_references] if args.key?(:who_can_add_references)
|
||||
@who_can_approve_members = args[:who_can_approve_members] if args.key?(:who_can_approve_members)
|
||||
@who_can_approve_messages = args[:who_can_approve_messages] if args.key?(:who_can_approve_messages)
|
||||
@who_can_assign_topics = args[:who_can_assign_topics] if args.key?(:who_can_assign_topics)
|
||||
@who_can_assist_content = args[:who_can_assist_content] if args.key?(:who_can_assist_content)
|
||||
@who_can_ban_users = args[:who_can_ban_users] if args.key?(:who_can_ban_users)
|
||||
@who_can_contact_owner = args[:who_can_contact_owner] if args.key?(:who_can_contact_owner)
|
||||
@who_can_delete_any_post = args[:who_can_delete_any_post] if args.key?(:who_can_delete_any_post)
|
||||
@who_can_delete_topics = args[:who_can_delete_topics] if args.key?(:who_can_delete_topics)
|
||||
@who_can_discover_group = args[:who_can_discover_group] if args.key?(:who_can_discover_group)
|
||||
@who_can_enter_free_form_tags = args[:who_can_enter_free_form_tags] if args.key?(:who_can_enter_free_form_tags)
|
||||
@who_can_hide_abuse = args[:who_can_hide_abuse] if args.key?(:who_can_hide_abuse)
|
||||
@who_can_invite = args[:who_can_invite] if args.key?(:who_can_invite)
|
||||
@who_can_join = args[:who_can_join] if args.key?(:who_can_join)
|
||||
@who_can_leave_group = args[:who_can_leave_group] if args.key?(:who_can_leave_group)
|
||||
@who_can_lock_topics = args[:who_can_lock_topics] if args.key?(:who_can_lock_topics)
|
||||
@who_can_make_topics_sticky = args[:who_can_make_topics_sticky] if args.key?(:who_can_make_topics_sticky)
|
||||
@who_can_mark_duplicate = args[:who_can_mark_duplicate] if args.key?(:who_can_mark_duplicate)
|
||||
@who_can_mark_favorite_reply_on_any_topic = args[:who_can_mark_favorite_reply_on_any_topic] if args.key?(:who_can_mark_favorite_reply_on_any_topic)
|
||||
@who_can_mark_favorite_reply_on_own_topic = args[:who_can_mark_favorite_reply_on_own_topic] if args.key?(:who_can_mark_favorite_reply_on_own_topic)
|
||||
@who_can_mark_no_response_needed = args[:who_can_mark_no_response_needed] if args.key?(:who_can_mark_no_response_needed)
|
||||
@who_can_moderate_content = args[:who_can_moderate_content] if args.key?(:who_can_moderate_content)
|
||||
@who_can_moderate_members = args[:who_can_moderate_members] if args.key?(:who_can_moderate_members)
|
||||
@who_can_modify_members = args[:who_can_modify_members] if args.key?(:who_can_modify_members)
|
||||
@who_can_modify_tags_and_categories = args[:who_can_modify_tags_and_categories] if args.key?(:who_can_modify_tags_and_categories)
|
||||
@who_can_move_topics_in = args[:who_can_move_topics_in] if args.key?(:who_can_move_topics_in)
|
||||
@who_can_move_topics_out = args[:who_can_move_topics_out] if args.key?(:who_can_move_topics_out)
|
||||
@who_can_post_announcements = args[:who_can_post_announcements] if args.key?(:who_can_post_announcements)
|
||||
@who_can_post_message = args[:who_can_post_message] if args.key?(:who_can_post_message)
|
||||
@who_can_take_topics = args[:who_can_take_topics] if args.key?(:who_can_take_topics)
|
||||
@who_can_unassign_topic = args[:who_can_unassign_topic] if args.key?(:who_can_unassign_topic)
|
||||
|
|
|
@ -37,9 +37,11 @@ module Google
|
|||
property :archive_only, as: 'archiveOnly'
|
||||
property :custom_footer_text, as: 'customFooterText'
|
||||
property :custom_reply_to, as: 'customReplyTo'
|
||||
property :custom_roles_enabled_for_settings_to_be_merged, as: 'customRolesEnabledForSettingsToBeMerged'
|
||||
property :default_message_deny_notification_text, as: 'defaultMessageDenyNotificationText'
|
||||
property :description, as: 'description'
|
||||
property :email, as: 'email'
|
||||
property :enable_collaborative_inbox, as: 'enableCollaborativeInbox'
|
||||
property :favorite_replies_on_top, as: 'favoriteRepliesOnTop'
|
||||
property :include_custom_footer, as: 'includeCustomFooter'
|
||||
property :include_in_global_address_list, as: 'includeInGlobalAddressList'
|
||||
|
@ -57,17 +59,33 @@ module Google
|
|||
property :spam_moderation_level, as: 'spamModerationLevel'
|
||||
property :who_can_add, as: 'whoCanAdd'
|
||||
property :who_can_add_references, as: 'whoCanAddReferences'
|
||||
property :who_can_approve_members, as: 'whoCanApproveMembers'
|
||||
property :who_can_approve_messages, as: 'whoCanApproveMessages'
|
||||
property :who_can_assign_topics, as: 'whoCanAssignTopics'
|
||||
property :who_can_assist_content, as: 'whoCanAssistContent'
|
||||
property :who_can_ban_users, as: 'whoCanBanUsers'
|
||||
property :who_can_contact_owner, as: 'whoCanContactOwner'
|
||||
property :who_can_delete_any_post, as: 'whoCanDeleteAnyPost'
|
||||
property :who_can_delete_topics, as: 'whoCanDeleteTopics'
|
||||
property :who_can_discover_group, as: 'whoCanDiscoverGroup'
|
||||
property :who_can_enter_free_form_tags, as: 'whoCanEnterFreeFormTags'
|
||||
property :who_can_hide_abuse, as: 'whoCanHideAbuse'
|
||||
property :who_can_invite, as: 'whoCanInvite'
|
||||
property :who_can_join, as: 'whoCanJoin'
|
||||
property :who_can_leave_group, as: 'whoCanLeaveGroup'
|
||||
property :who_can_lock_topics, as: 'whoCanLockTopics'
|
||||
property :who_can_make_topics_sticky, as: 'whoCanMakeTopicsSticky'
|
||||
property :who_can_mark_duplicate, as: 'whoCanMarkDuplicate'
|
||||
property :who_can_mark_favorite_reply_on_any_topic, as: 'whoCanMarkFavoriteReplyOnAnyTopic'
|
||||
property :who_can_mark_favorite_reply_on_own_topic, as: 'whoCanMarkFavoriteReplyOnOwnTopic'
|
||||
property :who_can_mark_no_response_needed, as: 'whoCanMarkNoResponseNeeded'
|
||||
property :who_can_moderate_content, as: 'whoCanModerateContent'
|
||||
property :who_can_moderate_members, as: 'whoCanModerateMembers'
|
||||
property :who_can_modify_members, as: 'whoCanModifyMembers'
|
||||
property :who_can_modify_tags_and_categories, as: 'whoCanModifyTagsAndCategories'
|
||||
property :who_can_move_topics_in, as: 'whoCanMoveTopicsIn'
|
||||
property :who_can_move_topics_out, as: 'whoCanMoveTopicsOut'
|
||||
property :who_can_post_announcements, as: 'whoCanPostAnnouncements'
|
||||
property :who_can_post_message, as: 'whoCanPostMessage'
|
||||
property :who_can_take_topics, as: 'whoCanTakeTopics'
|
||||
property :who_can_unassign_topic, as: 'whoCanUnassignTopic'
|
||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
|||
module GroupssettingsV1
|
||||
# Groups Settings API
|
||||
#
|
||||
# Lets you manage permission levels and related settings of a group.
|
||||
# Manages permission levels and related settings of a group.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/groupssettings_v1'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/people/
|
||||
module PeopleV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190316'
|
||||
REVISION = '20190323'
|
||||
|
||||
# See, edit, download, and permanently delete your contacts
|
||||
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
|
||||
|
@ -51,7 +51,7 @@ module Google
|
|||
# View your email address
|
||||
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
||||
|
||||
# See your personal info, including any personal info you've made publically available
|
||||
# See your personal info, including any personal info you've made publicly available
|
||||
AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/service-consumer-management/docs/overview
|
||||
module ServiceconsumermanagementV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190320'
|
||||
REVISION = '20190323'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -165,7 +165,7 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# When attaching an external project, this is in the format of
|
||||
# `projects/`project_number`’.
|
||||
# `projects/`project_number``.
|
||||
# Corresponds to the JSON property `externalResource`
|
||||
# @return [String]
|
||||
attr_accessor :external_resource
|
||||
|
|
|
@ -351,7 +351,7 @@ module Google
|
|||
# project of a managed service, or from a separate project.
|
||||
# The caller is checked against a set of permissions as if calling
|
||||
# `AddTenantProject` on the same service consumer.
|
||||
# To trigger the attachement, the targeted tenant project must be in a
|
||||
# To trigger the attachment, the targeted tenant project must be in a
|
||||
# folder. Make sure the ServiceConsumerManagement service account is
|
||||
# the owner of that project. These two requirements are already met
|
||||
# if the project is reserved by calling `AddTenantProject`.
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/websecurityscanner_v1beta/service.rb'
|
||||
require 'google/apis/websecurityscanner_v1beta/classes.rb'
|
||||
require 'google/apis/websecurityscanner_v1beta/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Web Security Scanner API
|
||||
#
|
||||
# Scans your Compute and App Engine apps for common web vulnerabilities.
|
||||
#
|
||||
# @see https://cloud.google.com/security-scanner/
|
||||
module WebsecurityscannerV1beta
|
||||
VERSION = 'V1beta'
|
||||
REVISION = '20190323'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,973 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module WebsecurityscannerV1beta
|
||||
|
||||
# Scan authentication configuration.
|
||||
class Authentication
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Describes authentication configuration that uses a custom account.
|
||||
# Corresponds to the JSON property `customAccount`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::CustomAccount]
|
||||
attr_accessor :custom_account
|
||||
|
||||
# Describes authentication configuration that uses a Google account.
|
||||
# Corresponds to the JSON property `googleAccount`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::GoogleAccount]
|
||||
attr_accessor :google_account
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@custom_account = args[:custom_account] if args.key?(:custom_account)
|
||||
@google_account = args[:google_account] if args.key?(:google_account)
|
||||
end
|
||||
end
|
||||
|
||||
# A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web
|
||||
# Security Scanner Service crawls the web applications, following all links
|
||||
# within the scope of sites, to find the URLs to test against.
|
||||
class CrawledUrl
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only.
|
||||
# The body of the request that was used to visit the URL.
|
||||
# Corresponds to the JSON property `body`
|
||||
# @return [String]
|
||||
attr_accessor :body
|
||||
|
||||
# Output only.
|
||||
# The http method of the request that was used to visit the URL, in
|
||||
# uppercase.
|
||||
# Corresponds to the JSON property `httpMethod`
|
||||
# @return [String]
|
||||
attr_accessor :http_method
|
||||
|
||||
# Output only.
|
||||
# The URL that was crawled.
|
||||
# Corresponds to the JSON property `url`
|
||||
# @return [String]
|
||||
attr_accessor :url
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@body = args[:body] if args.key?(:body)
|
||||
@http_method = args[:http_method] if args.key?(:http_method)
|
||||
@url = args[:url] if args.key?(:url)
|
||||
end
|
||||
end
|
||||
|
||||
# Describes authentication configuration that uses a custom account.
|
||||
class CustomAccount
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required.
|
||||
# The login form URL of the website.
|
||||
# Corresponds to the JSON property `loginUrl`
|
||||
# @return [String]
|
||||
attr_accessor :login_url
|
||||
|
||||
# Input only.
|
||||
# Required.
|
||||
# The password of the custom account. The credential is stored encrypted
|
||||
# and not returned in any response nor included in audit logs.
|
||||
# Corresponds to the JSON property `password`
|
||||
# @return [String]
|
||||
attr_accessor :password
|
||||
|
||||
# Required.
|
||||
# The user name of the custom account.
|
||||
# Corresponds to the JSON property `username`
|
||||
# @return [String]
|
||||
attr_accessor :username
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@login_url = args[:login_url] if args.key?(:login_url)
|
||||
@password = args[:password] if args.key?(:password)
|
||||
@username = args[:username] if args.key?(:username)
|
||||
end
|
||||
end
|
||||
|
||||
# A generic empty message that you can re-use to avoid defining duplicated
|
||||
# empty messages in your APIs. A typical example is to use it as the request
|
||||
# or the response type of an API method. For instance:
|
||||
# service Foo `
|
||||
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
||||
# `
|
||||
# The JSON representation for `Empty` is empty JSON object ````.
|
||||
class Empty
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# A Finding resource represents a vulnerability instance identified during a
|
||||
# ScanRun.
|
||||
class Finding
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only.
|
||||
# The body of the request that triggered the vulnerability.
|
||||
# Corresponds to the JSON property `body`
|
||||
# @return [String]
|
||||
attr_accessor :body
|
||||
|
||||
# Output only.
|
||||
# The description of the vulnerability.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# Output only.
|
||||
# The URL where the browser lands when the vulnerability is detected.
|
||||
# Corresponds to the JSON property `finalUrl`
|
||||
# @return [String]
|
||||
attr_accessor :final_url
|
||||
|
||||
# Output only.
|
||||
# The type of the Finding.
|
||||
# Detailed and up-to-date information on findings can be found here:
|
||||
# https://cloud.google.com/security-scanner/docs/scan-result-details
|
||||
# Corresponds to the JSON property `findingType`
|
||||
# @return [String]
|
||||
attr_accessor :finding_type
|
||||
|
||||
# ! Information about a vulnerability with an HTML.
|
||||
# Corresponds to the JSON property `form`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::Form]
|
||||
attr_accessor :form
|
||||
|
||||
# Output only.
|
||||
# If the vulnerability was originated from nested IFrame, the immediate
|
||||
# parent IFrame is reported.
|
||||
# Corresponds to the JSON property `frameUrl`
|
||||
# @return [String]
|
||||
attr_accessor :frame_url
|
||||
|
||||
# Output only.
|
||||
# The URL produced by the server-side fuzzer and used in the request that
|
||||
# triggered the vulnerability.
|
||||
# Corresponds to the JSON property `fuzzedUrl`
|
||||
# @return [String]
|
||||
attr_accessor :fuzzed_url
|
||||
|
||||
# Output only.
|
||||
# The http method of the request that triggered the vulnerability, in
|
||||
# uppercase.
|
||||
# Corresponds to the JSON property `httpMethod`
|
||||
# @return [String]
|
||||
attr_accessor :http_method
|
||||
|
||||
# Output only.
|
||||
# The resource name of the Finding. The name follows the format of
|
||||
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanruns/`scanRunId`/findings/
|
||||
# `findingId`'.
|
||||
# The finding IDs are generated by the system.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Information reported for an outdated library.
|
||||
# Corresponds to the JSON property `outdatedLibrary`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::OutdatedLibrary]
|
||||
attr_accessor :outdated_library
|
||||
|
||||
# Output only.
|
||||
# The URL containing human-readable payload that user can leverage to
|
||||
# reproduce the vulnerability.
|
||||
# Corresponds to the JSON property `reproductionUrl`
|
||||
# @return [String]
|
||||
attr_accessor :reproduction_url
|
||||
|
||||
# Output only.
|
||||
# The tracking ID uniquely identifies a vulnerability instance across
|
||||
# multiple ScanRuns.
|
||||
# Corresponds to the JSON property `trackingId`
|
||||
# @return [String]
|
||||
attr_accessor :tracking_id
|
||||
|
||||
# Information regarding any resource causing the vulnerability such
|
||||
# as JavaScript sources, image, audio files, etc.
|
||||
# Corresponds to the JSON property `violatingResource`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ViolatingResource]
|
||||
attr_accessor :violating_resource
|
||||
|
||||
# Information about vulnerable or missing HTTP Headers.
|
||||
# Corresponds to the JSON property `vulnerableHeaders`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::VulnerableHeaders]
|
||||
attr_accessor :vulnerable_headers
|
||||
|
||||
# Information about vulnerable request parameters.
|
||||
# Corresponds to the JSON property `vulnerableParameters`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::VulnerableParameters]
|
||||
attr_accessor :vulnerable_parameters
|
||||
|
||||
# Information reported for an XSS.
|
||||
# Corresponds to the JSON property `xss`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::Xss]
|
||||
attr_accessor :xss
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@body = args[:body] if args.key?(:body)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@final_url = args[:final_url] if args.key?(:final_url)
|
||||
@finding_type = args[:finding_type] if args.key?(:finding_type)
|
||||
@form = args[:form] if args.key?(:form)
|
||||
@frame_url = args[:frame_url] if args.key?(:frame_url)
|
||||
@fuzzed_url = args[:fuzzed_url] if args.key?(:fuzzed_url)
|
||||
@http_method = args[:http_method] if args.key?(:http_method)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@outdated_library = args[:outdated_library] if args.key?(:outdated_library)
|
||||
@reproduction_url = args[:reproduction_url] if args.key?(:reproduction_url)
|
||||
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
|
||||
@violating_resource = args[:violating_resource] if args.key?(:violating_resource)
|
||||
@vulnerable_headers = args[:vulnerable_headers] if args.key?(:vulnerable_headers)
|
||||
@vulnerable_parameters = args[:vulnerable_parameters] if args.key?(:vulnerable_parameters)
|
||||
@xss = args[:xss] if args.key?(:xss)
|
||||
end
|
||||
end
|
||||
|
||||
# A FindingTypeStats resource represents stats regarding a specific FindingType
|
||||
# of Findings under a given ScanRun.
|
||||
class FindingTypeStats
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only.
|
||||
# The count of findings belonging to this finding type.
|
||||
# Corresponds to the JSON property `findingCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :finding_count
|
||||
|
||||
# Output only.
|
||||
# The finding type associated with the stats.
|
||||
# Corresponds to the JSON property `findingType`
|
||||
# @return [String]
|
||||
attr_accessor :finding_type
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@finding_count = args[:finding_count] if args.key?(:finding_count)
|
||||
@finding_type = args[:finding_type] if args.key?(:finding_type)
|
||||
end
|
||||
end
|
||||
|
||||
# ! Information about a vulnerability with an HTML.
|
||||
class Form
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# ! The URI where to send the form when it's submitted.
|
||||
# Corresponds to the JSON property `actionUri`
|
||||
# @return [String]
|
||||
attr_accessor :action_uri
|
||||
|
||||
# ! The names of form fields related to the vulnerability.
|
||||
# Corresponds to the JSON property `fields`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :fields
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@action_uri = args[:action_uri] if args.key?(:action_uri)
|
||||
@fields = args[:fields] if args.key?(:fields)
|
||||
end
|
||||
end
|
||||
|
||||
# Describes authentication configuration that uses a Google account.
|
||||
class GoogleAccount
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Input only.
|
||||
# Required.
|
||||
# The password of the Google account. The credential is stored encrypted
|
||||
# and not returned in any response nor included in audit logs.
|
||||
# Corresponds to the JSON property `password`
|
||||
# @return [String]
|
||||
attr_accessor :password
|
||||
|
||||
# Required.
|
||||
# The user name of the Google account.
|
||||
# Corresponds to the JSON property `username`
|
||||
# @return [String]
|
||||
attr_accessor :username
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@password = args[:password] if args.key?(:password)
|
||||
@username = args[:username] if args.key?(:username)
|
||||
end
|
||||
end
|
||||
|
||||
# Describes a HTTP Header.
|
||||
class Header
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Header name.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Header value.
|
||||
# Corresponds to the JSON property `value`
|
||||
# @return [String]
|
||||
attr_accessor :value
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@value = args[:value] if args.key?(:value)
|
||||
end
|
||||
end
|
||||
|
||||
# Response for the `ListCrawledUrls` method.
|
||||
class ListCrawledUrlsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of CrawledUrls returned.
|
||||
# Corresponds to the JSON property `crawledUrls`
|
||||
# @return [Array<Google::Apis::WebsecurityscannerV1beta::CrawledUrl>]
|
||||
attr_accessor :crawled_urls
|
||||
|
||||
# Token to retrieve the next page of results, or empty if there are no
|
||||
# more results in the list.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@crawled_urls = args[:crawled_urls] if args.key?(:crawled_urls)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# Response for the `ListFindingTypeStats` method.
|
||||
class ListFindingTypeStatsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of FindingTypeStats returned.
|
||||
# Corresponds to the JSON property `findingTypeStats`
|
||||
# @return [Array<Google::Apis::WebsecurityscannerV1beta::FindingTypeStats>]
|
||||
attr_accessor :finding_type_stats
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@finding_type_stats = args[:finding_type_stats] if args.key?(:finding_type_stats)
|
||||
end
|
||||
end
|
||||
|
||||
# Response for the `ListFindings` method.
|
||||
class ListFindingsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The list of Findings returned.
|
||||
# Corresponds to the JSON property `findings`
|
||||
# @return [Array<Google::Apis::WebsecurityscannerV1beta::Finding>]
|
||||
attr_accessor :findings
|
||||
|
||||
# Token to retrieve the next page of results, or empty if there are no
|
||||
# more results in the list.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@findings = args[:findings] if args.key?(:findings)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# Response for the `ListScanConfigs` method.
|
||||
class ListScanConfigsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Token to retrieve the next page of results, or empty if there are no
|
||||
# more results in the list.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# The list of ScanConfigs returned.
|
||||
# Corresponds to the JSON property `scanConfigs`
|
||||
# @return [Array<Google::Apis::WebsecurityscannerV1beta::ScanConfig>]
|
||||
attr_accessor :scan_configs
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@scan_configs = args[:scan_configs] if args.key?(:scan_configs)
|
||||
end
|
||||
end
|
||||
|
||||
# Response for the `ListScanRuns` method.
|
||||
class ListScanRunsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Token to retrieve the next page of results, or empty if there are no
|
||||
# more results in the list.
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# The list of ScanRuns returned.
|
||||
# Corresponds to the JSON property `scanRuns`
|
||||
# @return [Array<Google::Apis::WebsecurityscannerV1beta::ScanRun>]
|
||||
attr_accessor :scan_runs
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@scan_runs = args[:scan_runs] if args.key?(:scan_runs)
|
||||
end
|
||||
end
|
||||
|
||||
# Information reported for an outdated library.
|
||||
class OutdatedLibrary
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# URLs to learn more information about the vulnerabilities in the library.
|
||||
# Corresponds to the JSON property `learnMoreUrls`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :learn_more_urls
|
||||
|
||||
# The name of the outdated library.
|
||||
# Corresponds to the JSON property `libraryName`
|
||||
# @return [String]
|
||||
attr_accessor :library_name
|
||||
|
||||
# The version number.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [String]
|
||||
attr_accessor :version
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@learn_more_urls = args[:learn_more_urls] if args.key?(:learn_more_urls)
|
||||
@library_name = args[:library_name] if args.key?(:library_name)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
end
|
||||
end
|
||||
|
||||
# A ScanConfig resource contains the configurations to launch a scan.
|
||||
# next id: 12
|
||||
class ScanConfig
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Scan authentication configuration.
|
||||
# Corresponds to the JSON property `authentication`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::Authentication]
|
||||
attr_accessor :authentication
|
||||
|
||||
# The blacklist URL patterns as described in
|
||||
# https://cloud.google.com/security-scanner/docs/excluded-urls
|
||||
# Corresponds to the JSON property `blacklistPatterns`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :blacklist_patterns
|
||||
|
||||
# Required.
|
||||
# The user provided display name of the ScanConfig.
|
||||
# Corresponds to the JSON property `displayName`
|
||||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# Controls export of scan configurations and results to Cloud Security
|
||||
# Command Center.
|
||||
# Corresponds to the JSON property `exportToSecurityCommandCenter`
|
||||
# @return [String]
|
||||
attr_accessor :export_to_security_command_center
|
||||
|
||||
# A ScanRun is a output-only resource representing an actual run of the scan.
|
||||
# Next id: 12
|
||||
# Corresponds to the JSON property `latestRun`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ScanRun]
|
||||
attr_accessor :latest_run
|
||||
|
||||
# The maximum QPS during scanning. A valid value ranges from 5 to 20
|
||||
# inclusively. If the field is unspecified or its value is set 0, server will
|
||||
# default to 15. Other values outside of [5, 20] range will be rejected with
|
||||
# INVALID_ARGUMENT error.
|
||||
# Corresponds to the JSON property `maxQps`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_qps
|
||||
|
||||
# The resource name of the ScanConfig. The name follows the format of
|
||||
# 'projects/`projectId`/scanConfigs/`scanConfigId`'. The ScanConfig IDs are
|
||||
# generated by the system.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Scan schedule configuration.
|
||||
# Corresponds to the JSON property `schedule`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::Schedule]
|
||||
attr_accessor :schedule
|
||||
|
||||
# Required.
|
||||
# The starting URLs from which the scanner finds site pages.
|
||||
# Corresponds to the JSON property `startingUrls`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :starting_urls
|
||||
|
||||
# Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
|
||||
# used as a default.
|
||||
# Corresponds to the JSON property `targetPlatforms`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :target_platforms
|
||||
|
||||
# The user agent used during scanning.
|
||||
# Corresponds to the JSON property `userAgent`
|
||||
# @return [String]
|
||||
attr_accessor :user_agent
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@authentication = args[:authentication] if args.key?(:authentication)
|
||||
@blacklist_patterns = args[:blacklist_patterns] if args.key?(:blacklist_patterns)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@export_to_security_command_center = args[:export_to_security_command_center] if args.key?(:export_to_security_command_center)
|
||||
@latest_run = args[:latest_run] if args.key?(:latest_run)
|
||||
@max_qps = args[:max_qps] if args.key?(:max_qps)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@schedule = args[:schedule] if args.key?(:schedule)
|
||||
@starting_urls = args[:starting_urls] if args.key?(:starting_urls)
|
||||
@target_platforms = args[:target_platforms] if args.key?(:target_platforms)
|
||||
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
||||
end
|
||||
end
|
||||
|
||||
# Defines a custom error message used by CreateScanConfig and UpdateScanConfig
|
||||
# APIs when scan configuration validation fails. It is also reported as part of
|
||||
# a ScanRunErrorTrace message if scan validation fails due to a scan
|
||||
# configuration error.
|
||||
class ScanConfigError
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only.
|
||||
# Indicates the reason code for a configuration failure.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [String]
|
||||
attr_accessor :code
|
||||
|
||||
# Output only.
|
||||
# Indicates the full name of the ScanConfig field that triggers this error,
|
||||
# for example "scan_config.max_qps". This field is provided for
|
||||
# troubleshooting purposes only and its actual value can change in the
|
||||
# future.
|
||||
# Corresponds to the JSON property `fieldName`
|
||||
# @return [String]
|
||||
attr_accessor :field_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@field_name = args[:field_name] if args.key?(:field_name)
|
||||
end
|
||||
end
|
||||
|
||||
# A ScanRun is a output-only resource representing an actual run of the scan.
|
||||
# Next id: 12
|
||||
class ScanRun
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only.
|
||||
# The time at which the ScanRun reached termination state - that the ScanRun
|
||||
# is either finished or stopped by user.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# Output only.
|
||||
# Defines an error trace message for a ScanRun.
|
||||
# Corresponds to the JSON property `errorTrace`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ScanRunErrorTrace]
|
||||
attr_accessor :error_trace
|
||||
|
||||
# Output only.
|
||||
# The execution state of the ScanRun.
|
||||
# Corresponds to the JSON property `executionState`
|
||||
# @return [String]
|
||||
attr_accessor :execution_state
|
||||
|
||||
# Output only.
|
||||
# Whether the scan run has found any vulnerabilities.
|
||||
# Corresponds to the JSON property `hasVulnerabilities`
|
||||
# @return [Boolean]
|
||||
attr_accessor :has_vulnerabilities
|
||||
alias_method :has_vulnerabilities?, :has_vulnerabilities
|
||||
|
||||
# Output only.
|
||||
# The resource name of the ScanRun. The name follows the format of
|
||||
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
|
||||
# The ScanRun IDs are generated by the system.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Output only.
|
||||
# The percentage of total completion ranging from 0 to 100.
|
||||
# If the scan is in queue, the value is 0.
|
||||
# If the scan is running, the value ranges from 0 to 100.
|
||||
# If the scan is finished, the value is 100.
|
||||
# Corresponds to the JSON property `progressPercent`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :progress_percent
|
||||
|
||||
# Output only.
|
||||
# The result state of the ScanRun. This field is only available after the
|
||||
# execution state reaches "FINISHED".
|
||||
# Corresponds to the JSON property `resultState`
|
||||
# @return [String]
|
||||
attr_accessor :result_state
|
||||
|
||||
# Output only.
|
||||
# The time at which the ScanRun started.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
|
||||
# Output only.
|
||||
# The number of URLs crawled during this ScanRun. If the scan is in progress,
|
||||
# the value represents the number of URLs crawled up to now.
|
||||
# Corresponds to the JSON property `urlsCrawledCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :urls_crawled_count
|
||||
|
||||
# Output only.
|
||||
# The number of URLs tested during this ScanRun. If the scan is in progress,
|
||||
# the value represents the number of URLs tested up to now. The number of
|
||||
# URLs tested is usually larger than the number URLS crawled because
|
||||
# typically a crawled URL is tested with multiple test payloads.
|
||||
# Corresponds to the JSON property `urlsTestedCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :urls_tested_count
|
||||
|
||||
# Output only.
|
||||
# A list of warnings, if such are encountered during this scan run.
|
||||
# Corresponds to the JSON property `warningTraces`
|
||||
# @return [Array<Google::Apis::WebsecurityscannerV1beta::ScanRunWarningTrace>]
|
||||
attr_accessor :warning_traces
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@error_trace = args[:error_trace] if args.key?(:error_trace)
|
||||
@execution_state = args[:execution_state] if args.key?(:execution_state)
|
||||
@has_vulnerabilities = args[:has_vulnerabilities] if args.key?(:has_vulnerabilities)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@progress_percent = args[:progress_percent] if args.key?(:progress_percent)
|
||||
@result_state = args[:result_state] if args.key?(:result_state)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
@urls_crawled_count = args[:urls_crawled_count] if args.key?(:urls_crawled_count)
|
||||
@urls_tested_count = args[:urls_tested_count] if args.key?(:urls_tested_count)
|
||||
@warning_traces = args[:warning_traces] if args.key?(:warning_traces)
|
||||
end
|
||||
end
|
||||
|
||||
# Output only.
|
||||
# Defines an error trace message for a ScanRun.
|
||||
class ScanRunErrorTrace
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only.
|
||||
# Indicates the error reason code.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [String]
|
||||
attr_accessor :code
|
||||
|
||||
# Output only.
|
||||
# If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most
|
||||
# common HTTP error code, if such is available. For example, if this code is
|
||||
# 404, the scan has encountered too many NOT_FOUND responses.
|
||||
# Corresponds to the JSON property `mostCommonHttpErrorCode`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :most_common_http_error_code
|
||||
|
||||
# Defines a custom error message used by CreateScanConfig and UpdateScanConfig
|
||||
# APIs when scan configuration validation fails. It is also reported as part of
|
||||
# a ScanRunErrorTrace message if scan validation fails due to a scan
|
||||
# configuration error.
|
||||
# Corresponds to the JSON property `scanConfigError`
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ScanConfigError]
|
||||
attr_accessor :scan_config_error
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
@most_common_http_error_code = args[:most_common_http_error_code] if args.key?(:most_common_http_error_code)
|
||||
@scan_config_error = args[:scan_config_error] if args.key?(:scan_config_error)
|
||||
end
|
||||
end
|
||||
|
||||
# Output only.
|
||||
# Defines a warning trace message for ScanRun. Warning traces provide customers
|
||||
# with useful information that helps make the scanning process more effective.
|
||||
class ScanRunWarningTrace
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Output only.
|
||||
# Indicates the warning code.
|
||||
# Corresponds to the JSON property `code`
|
||||
# @return [String]
|
||||
attr_accessor :code
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@code = args[:code] if args.key?(:code)
|
||||
end
|
||||
end
|
||||
|
||||
# Scan schedule configuration.
|
||||
class Schedule
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Required.
|
||||
# The duration of time between executions in days.
|
||||
# Corresponds to the JSON property `intervalDurationDays`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :interval_duration_days
|
||||
|
||||
# A timestamp indicates when the next run will be scheduled. The value is
|
||||
# refreshed by the server after each run. If unspecified, it will default
|
||||
# to current server time, which means the scan will be scheduled to start
|
||||
# immediately.
|
||||
# Corresponds to the JSON property `scheduleTime`
|
||||
# @return [String]
|
||||
attr_accessor :schedule_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@interval_duration_days = args[:interval_duration_days] if args.key?(:interval_duration_days)
|
||||
@schedule_time = args[:schedule_time] if args.key?(:schedule_time)
|
||||
end
|
||||
end
|
||||
|
||||
# Request for the `StartScanRun` method.
|
||||
class StartScanRunRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Request for the `StopScanRun` method.
|
||||
class StopScanRunRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
end
|
||||
end
|
||||
|
||||
# Information regarding any resource causing the vulnerability such
|
||||
# as JavaScript sources, image, audio files, etc.
|
||||
class ViolatingResource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The MIME type of this resource.
|
||||
# Corresponds to the JSON property `contentType`
|
||||
# @return [String]
|
||||
attr_accessor :content_type
|
||||
|
||||
# URL of this violating resource.
|
||||
# Corresponds to the JSON property `resourceUrl`
|
||||
# @return [String]
|
||||
attr_accessor :resource_url
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@content_type = args[:content_type] if args.key?(:content_type)
|
||||
@resource_url = args[:resource_url] if args.key?(:resource_url)
|
||||
end
|
||||
end
|
||||
|
||||
# Information about vulnerable or missing HTTP Headers.
|
||||
class VulnerableHeaders
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# List of vulnerable headers.
|
||||
# Corresponds to the JSON property `headers`
|
||||
# @return [Array<Google::Apis::WebsecurityscannerV1beta::Header>]
|
||||
attr_accessor :headers
|
||||
|
||||
# List of missing headers.
|
||||
# Corresponds to the JSON property `missingHeaders`
|
||||
# @return [Array<Google::Apis::WebsecurityscannerV1beta::Header>]
|
||||
attr_accessor :missing_headers
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@headers = args[:headers] if args.key?(:headers)
|
||||
@missing_headers = args[:missing_headers] if args.key?(:missing_headers)
|
||||
end
|
||||
end
|
||||
|
||||
# Information about vulnerable request parameters.
|
||||
class VulnerableParameters
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The vulnerable parameter names.
|
||||
# Corresponds to the JSON property `parameterNames`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :parameter_names
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@parameter_names = args[:parameter_names] if args.key?(:parameter_names)
|
||||
end
|
||||
end
|
||||
|
||||
# Information reported for an XSS.
|
||||
class Xss
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# An error message generated by a javascript breakage.
|
||||
# Corresponds to the JSON property `errorMessage`
|
||||
# @return [String]
|
||||
attr_accessor :error_message
|
||||
|
||||
# Stack traces leading to the point where the XSS occurred.
|
||||
# Corresponds to the JSON property `stackTraces`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :stack_traces
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@error_message = args[:error_message] if args.key?(:error_message)
|
||||
@stack_traces = args[:stack_traces] if args.key?(:stack_traces)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,452 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module WebsecurityscannerV1beta
|
||||
|
||||
class Authentication
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CrawledUrl
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CustomAccount
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Finding
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class FindingTypeStats
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Form
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GoogleAccount
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Header
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListCrawledUrlsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListFindingTypeStatsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListFindingsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListScanConfigsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListScanRunsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OutdatedLibrary
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ScanConfig
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ScanConfigError
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ScanRun
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ScanRunErrorTrace
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ScanRunWarningTrace
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Schedule
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StartScanRunRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StopScanRunRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ViolatingResource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class VulnerableHeaders
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class VulnerableParameters
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Xss
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Authentication
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :custom_account, as: 'customAccount', class: Google::Apis::WebsecurityscannerV1beta::CustomAccount, decorator: Google::Apis::WebsecurityscannerV1beta::CustomAccount::Representation
|
||||
|
||||
property :google_account, as: 'googleAccount', class: Google::Apis::WebsecurityscannerV1beta::GoogleAccount, decorator: Google::Apis::WebsecurityscannerV1beta::GoogleAccount::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CrawledUrl
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :body, as: 'body'
|
||||
property :http_method, as: 'httpMethod'
|
||||
property :url, as: 'url'
|
||||
end
|
||||
end
|
||||
|
||||
class CustomAccount
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :login_url, as: 'loginUrl'
|
||||
property :password, as: 'password'
|
||||
property :username, as: 'username'
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class Finding
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :body, as: 'body'
|
||||
property :description, as: 'description'
|
||||
property :final_url, as: 'finalUrl'
|
||||
property :finding_type, as: 'findingType'
|
||||
property :form, as: 'form', class: Google::Apis::WebsecurityscannerV1beta::Form, decorator: Google::Apis::WebsecurityscannerV1beta::Form::Representation
|
||||
|
||||
property :frame_url, as: 'frameUrl'
|
||||
property :fuzzed_url, as: 'fuzzedUrl'
|
||||
property :http_method, as: 'httpMethod'
|
||||
property :name, as: 'name'
|
||||
property :outdated_library, as: 'outdatedLibrary', class: Google::Apis::WebsecurityscannerV1beta::OutdatedLibrary, decorator: Google::Apis::WebsecurityscannerV1beta::OutdatedLibrary::Representation
|
||||
|
||||
property :reproduction_url, as: 'reproductionUrl'
|
||||
property :tracking_id, as: 'trackingId'
|
||||
property :violating_resource, as: 'violatingResource', class: Google::Apis::WebsecurityscannerV1beta::ViolatingResource, decorator: Google::Apis::WebsecurityscannerV1beta::ViolatingResource::Representation
|
||||
|
||||
property :vulnerable_headers, as: 'vulnerableHeaders', class: Google::Apis::WebsecurityscannerV1beta::VulnerableHeaders, decorator: Google::Apis::WebsecurityscannerV1beta::VulnerableHeaders::Representation
|
||||
|
||||
property :vulnerable_parameters, as: 'vulnerableParameters', class: Google::Apis::WebsecurityscannerV1beta::VulnerableParameters, decorator: Google::Apis::WebsecurityscannerV1beta::VulnerableParameters::Representation
|
||||
|
||||
property :xss, as: 'xss', class: Google::Apis::WebsecurityscannerV1beta::Xss, decorator: Google::Apis::WebsecurityscannerV1beta::Xss::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class FindingTypeStats
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :finding_count, as: 'findingCount'
|
||||
property :finding_type, as: 'findingType'
|
||||
end
|
||||
end
|
||||
|
||||
class Form
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :action_uri, as: 'actionUri'
|
||||
collection :fields, as: 'fields'
|
||||
end
|
||||
end
|
||||
|
||||
class GoogleAccount
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :password, as: 'password'
|
||||
property :username, as: 'username'
|
||||
end
|
||||
end
|
||||
|
||||
class Header
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :value, as: 'value'
|
||||
end
|
||||
end
|
||||
|
||||
class ListCrawledUrlsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :crawled_urls, as: 'crawledUrls', class: Google::Apis::WebsecurityscannerV1beta::CrawledUrl, decorator: Google::Apis::WebsecurityscannerV1beta::CrawledUrl::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListFindingTypeStatsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :finding_type_stats, as: 'findingTypeStats', class: Google::Apis::WebsecurityscannerV1beta::FindingTypeStats, decorator: Google::Apis::WebsecurityscannerV1beta::FindingTypeStats::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListFindingsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :findings, as: 'findings', class: Google::Apis::WebsecurityscannerV1beta::Finding, decorator: Google::Apis::WebsecurityscannerV1beta::Finding::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class ListScanConfigsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :scan_configs, as: 'scanConfigs', class: Google::Apis::WebsecurityscannerV1beta::ScanConfig, decorator: Google::Apis::WebsecurityscannerV1beta::ScanConfig::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ListScanRunsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
collection :scan_runs, as: 'scanRuns', class: Google::Apis::WebsecurityscannerV1beta::ScanRun, decorator: Google::Apis::WebsecurityscannerV1beta::ScanRun::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class OutdatedLibrary
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :learn_more_urls, as: 'learnMoreUrls'
|
||||
property :library_name, as: 'libraryName'
|
||||
property :version, as: 'version'
|
||||
end
|
||||
end
|
||||
|
||||
class ScanConfig
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :authentication, as: 'authentication', class: Google::Apis::WebsecurityscannerV1beta::Authentication, decorator: Google::Apis::WebsecurityscannerV1beta::Authentication::Representation
|
||||
|
||||
collection :blacklist_patterns, as: 'blacklistPatterns'
|
||||
property :display_name, as: 'displayName'
|
||||
property :export_to_security_command_center, as: 'exportToSecurityCommandCenter'
|
||||
property :latest_run, as: 'latestRun', class: Google::Apis::WebsecurityscannerV1beta::ScanRun, decorator: Google::Apis::WebsecurityscannerV1beta::ScanRun::Representation
|
||||
|
||||
property :max_qps, as: 'maxQps'
|
||||
property :name, as: 'name'
|
||||
property :schedule, as: 'schedule', class: Google::Apis::WebsecurityscannerV1beta::Schedule, decorator: Google::Apis::WebsecurityscannerV1beta::Schedule::Representation
|
||||
|
||||
collection :starting_urls, as: 'startingUrls'
|
||||
collection :target_platforms, as: 'targetPlatforms'
|
||||
property :user_agent, as: 'userAgent'
|
||||
end
|
||||
end
|
||||
|
||||
class ScanConfigError
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :field_name, as: 'fieldName'
|
||||
end
|
||||
end
|
||||
|
||||
class ScanRun
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :end_time, as: 'endTime'
|
||||
property :error_trace, as: 'errorTrace', class: Google::Apis::WebsecurityscannerV1beta::ScanRunErrorTrace, decorator: Google::Apis::WebsecurityscannerV1beta::ScanRunErrorTrace::Representation
|
||||
|
||||
property :execution_state, as: 'executionState'
|
||||
property :has_vulnerabilities, as: 'hasVulnerabilities'
|
||||
property :name, as: 'name'
|
||||
property :progress_percent, as: 'progressPercent'
|
||||
property :result_state, as: 'resultState'
|
||||
property :start_time, as: 'startTime'
|
||||
property :urls_crawled_count, :numeric_string => true, as: 'urlsCrawledCount'
|
||||
property :urls_tested_count, :numeric_string => true, as: 'urlsTestedCount'
|
||||
collection :warning_traces, as: 'warningTraces', class: Google::Apis::WebsecurityscannerV1beta::ScanRunWarningTrace, decorator: Google::Apis::WebsecurityscannerV1beta::ScanRunWarningTrace::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ScanRunErrorTrace
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
property :most_common_http_error_code, as: 'mostCommonHttpErrorCode'
|
||||
property :scan_config_error, as: 'scanConfigError', class: Google::Apis::WebsecurityscannerV1beta::ScanConfigError, decorator: Google::Apis::WebsecurityscannerV1beta::ScanConfigError::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ScanRunWarningTrace
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :code, as: 'code'
|
||||
end
|
||||
end
|
||||
|
||||
class Schedule
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :interval_duration_days, as: 'intervalDurationDays'
|
||||
property :schedule_time, as: 'scheduleTime'
|
||||
end
|
||||
end
|
||||
|
||||
class StartScanRunRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class StopScanRunRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
end
|
||||
end
|
||||
|
||||
class ViolatingResource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :content_type, as: 'contentType'
|
||||
property :resource_url, as: 'resourceUrl'
|
||||
end
|
||||
end
|
||||
|
||||
class VulnerableHeaders
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :headers, as: 'headers', class: Google::Apis::WebsecurityscannerV1beta::Header, decorator: Google::Apis::WebsecurityscannerV1beta::Header::Representation
|
||||
|
||||
collection :missing_headers, as: 'missingHeaders', class: Google::Apis::WebsecurityscannerV1beta::Header, decorator: Google::Apis::WebsecurityscannerV1beta::Header::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class VulnerableParameters
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :parameter_names, as: 'parameterNames'
|
||||
end
|
||||
end
|
||||
|
||||
class Xss
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :error_message, as: 'errorMessage'
|
||||
collection :stack_traces, as: 'stackTraces'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,548 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module WebsecurityscannerV1beta
|
||||
# Web Security Scanner API
|
||||
#
|
||||
# Scans your Compute and App Engine apps for common web vulnerabilities.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/websecurityscanner_v1beta'
|
||||
#
|
||||
# Websecurityscanner = Google::Apis::WebsecurityscannerV1beta # Alias the module
|
||||
# service = Websecurityscanner::WebSecurityScannerService.new
|
||||
#
|
||||
# @see https://cloud.google.com/security-scanner/
|
||||
class WebSecurityScannerService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://websecurityscanner.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
end
|
||||
|
||||
# Creates a new ScanConfig.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The parent resource name where the scan is created, which should be a
|
||||
# project resource name in the format 'projects/`projectId`'.
|
||||
# @param [Google::Apis::WebsecurityscannerV1beta::ScanConfig] scan_config_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::ScanConfig] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ScanConfig]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_project_scan_config(parent, scan_config_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta/{+parent}/scanConfigs', options)
|
||||
command.request_representation = Google::Apis::WebsecurityscannerV1beta::ScanConfig::Representation
|
||||
command.request_object = scan_config_object
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::ScanConfig::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::ScanConfig
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes an existing ScanConfig and its child resources.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The resource name of the ScanConfig to be deleted. The name follows the
|
||||
# format of 'projects/`projectId`/scanConfigs/`scanConfigId`'.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::Empty] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::Empty]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_scan_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1beta/{+name}', options)
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::Empty::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::Empty
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets a ScanConfig.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The resource name of the ScanConfig to be returned. The name follows the
|
||||
# format of 'projects/`projectId`/scanConfigs/`scanConfigId`'.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::ScanConfig] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ScanConfig]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_scan_config(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::ScanConfig::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::ScanConfig
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists ScanConfigs under a given project.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The parent resource name, which should be a project resource name in the
|
||||
# format 'projects/`projectId`'.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of ScanConfigs to return, can be limited by server.
|
||||
# If not specified or not positive, the implementation will select a
|
||||
# reasonable value.
|
||||
# @param [String] page_token
|
||||
# A token identifying a page of results to be returned. This should be a
|
||||
# `next_page_token` value returned from a previous List request.
|
||||
# If unspecified, the first page of results is returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::ListScanConfigsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ListScanConfigsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_scan_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta/{+parent}/scanConfigs', options)
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::ListScanConfigsResponse::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::ListScanConfigsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates a ScanConfig. This method support partial update of a ScanConfig.
|
||||
# @param [String] name
|
||||
# The resource name of the ScanConfig. The name follows the format of
|
||||
# 'projects/`projectId`/scanConfigs/`scanConfigId`'. The ScanConfig IDs are
|
||||
# generated by the system.
|
||||
# @param [Google::Apis::WebsecurityscannerV1beta::ScanConfig] scan_config_object
|
||||
# @param [String] update_mask
|
||||
# Required.
|
||||
# The update mask applies to the resource. For the `FieldMask` definition,
|
||||
# see
|
||||
# https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
|
||||
# fieldmask
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::ScanConfig] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ScanConfig]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def patch_project_scan_config(name, scan_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:patch, 'v1beta/{+name}', options)
|
||||
command.request_representation = Google::Apis::WebsecurityscannerV1beta::ScanConfig::Representation
|
||||
command.request_object = scan_config_object
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::ScanConfig::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::ScanConfig
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['updateMask'] = update_mask unless update_mask.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Start a ScanRun according to the given ScanConfig.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The resource name of the ScanConfig to be used. The name follows the
|
||||
# format of 'projects/`projectId`/scanConfigs/`scanConfigId`'.
|
||||
# @param [Google::Apis::WebsecurityscannerV1beta::StartScanRunRequest] start_scan_run_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::ScanRun] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ScanRun]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def start_scan_config_scan_run(name, start_scan_run_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta/{+name}:start', options)
|
||||
command.request_representation = Google::Apis::WebsecurityscannerV1beta::StartScanRunRequest::Representation
|
||||
command.request_object = start_scan_run_request_object
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::ScanRun::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::ScanRun
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets a ScanRun.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The resource name of the ScanRun to be returned. The name follows the
|
||||
# format of
|
||||
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::ScanRun] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ScanRun]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_scan_config_scan_run(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::ScanRun::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::ScanRun
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists ScanRuns under a given ScanConfig, in descending order of ScanRun
|
||||
# stop time.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The parent resource name, which should be a scan resource name in the
|
||||
# format 'projects/`projectId`/scanConfigs/`scanConfigId`'.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of ScanRuns to return, can be limited by server.
|
||||
# If not specified or not positive, the implementation will select a
|
||||
# reasonable value.
|
||||
# @param [String] page_token
|
||||
# A token identifying a page of results to be returned. This should be a
|
||||
# `next_page_token` value returned from a previous List request.
|
||||
# If unspecified, the first page of results is returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::ListScanRunsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ListScanRunsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_scan_config_scan_runs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta/{+parent}/scanRuns', options)
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::ListScanRunsResponse::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::ListScanRunsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Stops a ScanRun. The stopped ScanRun is returned.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The resource name of the ScanRun to be stopped. The name follows the
|
||||
# format of
|
||||
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
|
||||
# @param [Google::Apis::WebsecurityscannerV1beta::StopScanRunRequest] stop_scan_run_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::ScanRun] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ScanRun]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def stop_scan_run(name, stop_scan_run_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta/{+name}:stop', options)
|
||||
command.request_representation = Google::Apis::WebsecurityscannerV1beta::StopScanRunRequest::Representation
|
||||
command.request_object = stop_scan_run_request_object
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::ScanRun::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::ScanRun
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# List CrawledUrls under a given ScanRun.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The parent resource name, which should be a scan run resource name in the
|
||||
# format
|
||||
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of CrawledUrls to return, can be limited by server.
|
||||
# If not specified or not positive, the implementation will select a
|
||||
# reasonable value.
|
||||
# @param [String] page_token
|
||||
# A token identifying a page of results to be returned. This should be a
|
||||
# `next_page_token` value returned from a previous List request.
|
||||
# If unspecified, the first page of results is returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::ListCrawledUrlsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ListCrawledUrlsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_scan_config_scan_run_crawled_urls(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta/{+parent}/crawledUrls', options)
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::ListCrawledUrlsResponse::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::ListCrawledUrlsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# List all FindingTypeStats under a given ScanRun.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The parent resource name, which should be a scan run resource name in the
|
||||
# format
|
||||
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::ListFindingTypeStatsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ListFindingTypeStatsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_scan_config_scan_run_finding_type_stats(parent, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta/{+parent}/findingTypeStats', options)
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::ListFindingTypeStatsResponse::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::ListFindingTypeStatsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets a Finding.
|
||||
# @param [String] name
|
||||
# Required.
|
||||
# The resource name of the Finding to be returned. The name follows the
|
||||
# format of
|
||||
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`/findings/
|
||||
# `findingId`'.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::Finding] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::Finding]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_scan_config_scan_run_finding(name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::Finding::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::Finding
|
||||
command.params['name'] = name unless name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# List Findings under a given ScanRun.
|
||||
# @param [String] parent
|
||||
# Required.
|
||||
# The parent resource name, which should be a scan run resource name in the
|
||||
# format
|
||||
# 'projects/`projectId`/scanConfigs/`scanConfigId`/scanRuns/`scanRunId`'.
|
||||
# @param [String] filter
|
||||
# The filter expression. The expression must be in the format: <field>
|
||||
# <operator> <value>.
|
||||
# Supported field: 'finding_type'.
|
||||
# Supported operator: '='.
|
||||
# @param [Fixnum] page_size
|
||||
# The maximum number of Findings to return, can be limited by server.
|
||||
# If not specified or not positive, the implementation will select a
|
||||
# reasonable value.
|
||||
# @param [String] page_token
|
||||
# A token identifying a page of results to be returned. This should be a
|
||||
# `next_page_token` value returned from a previous List request.
|
||||
# If unspecified, the first page of results is returned.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::WebsecurityscannerV1beta::ListFindingsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::WebsecurityscannerV1beta::ListFindingsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
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)
|
||||
command = make_simple_command(:get, 'v1beta/{+parent}/findings', options)
|
||||
command.response_representation = Google::Apis::WebsecurityscannerV1beta::ListFindingsResponse::Representation
|
||||
command.response_class = Google::Apis::WebsecurityscannerV1beta::ListFindingsResponse
|
||||
command.params['parent'] = parent unless parent.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue