update all json files

This commit is contained in:
Sebastian Thiel
2020-04-12 18:55:37 +08:00
parent ea3b428364
commit aacc30f08d
260 changed files with 138411 additions and 26293 deletions

View File

@@ -22,6 +22,7 @@
},
"id": "alertcenter:v1beta1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://alertcenter.mtls.googleapis.com/",
"name": "alertcenter",
"ownerDomain": "google.com",
"ownerName": "Google",
@@ -106,6 +107,42 @@
"resources": {
"alerts": {
"methods": {
"batchDelete": {
"description": "Performs batch delete operation on alerts.",
"flatPath": "v1beta1/alerts:batchDelete",
"httpMethod": "POST",
"id": "alertcenter.alerts.batchDelete",
"parameterOrder": [],
"parameters": {},
"path": "v1beta1/alerts:batchDelete",
"request": {
"$ref": "BatchDeleteAlertsRequest"
},
"response": {
"$ref": "BatchDeleteAlertsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/apps.alerts"
]
},
"batchUndelete": {
"description": "Performs batch undelete operation on alerts.",
"flatPath": "v1beta1/alerts:batchUndelete",
"httpMethod": "POST",
"id": "alertcenter.alerts.batchUndelete",
"parameterOrder": [],
"parameters": {},
"path": "v1beta1/alerts:batchUndelete",
"request": {
"$ref": "BatchUndeleteAlertsRequest"
},
"response": {
"$ref": "BatchUndeleteAlertsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/apps.alerts"
]
},
"delete": {
"description": "Marks the specified alert for deletion. An alert that has been marked for\ndeletion is removed from Alert Center after 30 days.\nMarking an alert for deletion has no effect on an alert which has\nalready been marked for deletion. Attempting to mark a nonexistent alert\nfor deletion results in a `NOT_FOUND` error.",
"flatPath": "v1beta1/alerts/{alertId}",
@@ -164,6 +201,35 @@
"https://www.googleapis.com/auth/apps.alerts"
]
},
"getMetadata": {
"description": "Returns the metadata of an alert. Attempting to get metadata for\na non-existent alert returns `NOT_FOUND` error.",
"flatPath": "v1beta1/alerts/{alertId}/metadata",
"httpMethod": "GET",
"id": "alertcenter.alerts.getMetadata",
"parameterOrder": [
"alertId"
],
"parameters": {
"alertId": {
"description": "Required. The identifier of the alert this metadata belongs to.",
"location": "path",
"required": true,
"type": "string"
},
"customerId": {
"description": "Optional. The unique identifier of the G Suite organization account of the\ncustomer the alert metadata is associated with.\nInferred from the caller identity if not provided.",
"location": "query",
"type": "string"
}
},
"path": "v1beta1/alerts/{alertId}/metadata",
"response": {
"$ref": "AlertMetadata"
},
"scopes": [
"https://www.googleapis.com/auth/apps.alerts"
]
},
"list": {
"description": "Lists the alerts.",
"flatPath": "v1beta1/alerts",
@@ -238,7 +304,7 @@
"feedback": {
"methods": {
"create": {
"description": "Creates new feedback for an alert. Attempting to create a feedback for\na non-existent alert returns `NOT_FOUND` error.",
"description": "Creates new feedback for an alert. Attempting to create a feedback for\na non-existent alert returns `NOT_FOUND` error. Attempting to create a\nfeedback for an alert that is marked for deletion returns\n`FAILED_PRECONDITION' error.",
"flatPath": "v1beta1/alerts/{alertId}/feedback",
"httpMethod": "POST",
"id": "alertcenter.alerts.feedback.create",
@@ -357,7 +423,7 @@
}
}
},
"revision": "20190628",
"revision": "20200406",
"rootUrl": "https://alertcenter.googleapis.com/",
"schemas": {
"AccountWarning": {
@@ -408,14 +474,14 @@
"type": "string"
},
"supersededAlerts": {
"description": "List of alert ids superseded by this alert. It is used to indicate that\nthis alert is essentially extension of superseded alerts and we found the\nrelationship after creating these alerts.",
"description": "List of alert IDs superseded by this alert. It is used to indicate that\nthis alert is essentially extension of superseded alerts and we found the\nrelationship after creating these alerts.",
"items": {
"type": "string"
},
"type": "array"
},
"supersedingAlert": {
"description": "Alert id superseding this alert. It is used to indicate that superseding\nalert is essentially extension of this alert and we found the relationship\nafter creating both alerts.",
"description": "Alert ID superseding this alert. It is used to indicate that superseding\nalert is essentially extension of this alert and we found the relationship\nafter creating both alerts.",
"type": "string"
},
"threshold": {
@@ -473,12 +539,20 @@
"format": "google-datetime",
"type": "string"
},
"etag": {
"description": "Optional. `etag` is used for optimistic concurrency control as a way to help\nprevent simultaneous updates of an alert from overwriting each other.\nIt is strongly suggested that systems make use of the `etag` in the\nread-modify-write cycle to perform alert updates in order to avoid race\nconditions: An `etag` is returned in the response which contains alerts,\nand systems are expected to put that etag in the request to update alert to\nensure that their change will be applied to the same version of the alert.\n\nIf no `etag` is provided in the call to update alert, then the existing\nalert is overwritten blindly.",
"type": "string"
},
"metadata": {
"$ref": "AlertMetadata",
"description": "Output only. The metadata associated with this alert."
},
"securityInvestigationToolLink": {
"description": "Output only. An optional\n[Security Investigation Tool](https://support.google.com/a/answer/7575955)\nquery for this alert.",
"type": "string"
},
"source": {
"description": "Required. A unique identifier for the system that reported the alert.\nThis is output only after alert is created.\n\nSupported sources are any of the following:\n\n* Google Operations\n* Mobile device management\n* Gmail phishing\n* Domain wide takeout\n* Government attack warning\n* Google identity",
"description": "Required. A unique identifier for the system that reported the alert.\nThis is output only after alert is created.\n\nSupported sources are any of the following:\n\n* Google Operations\n* Mobile device management\n* Gmail phishing\n* Domain wide takeout\n* State sponsored attack\n* Google identity",
"type": "string"
},
"startTime": {
@@ -542,6 +616,56 @@
},
"type": "object"
},
"AlertMetadata": {
"description": "An alert metadata.",
"id": "AlertMetadata",
"properties": {
"alertId": {
"description": "Output only. The alert identifier.",
"type": "string"
},
"assignee": {
"description": "The email address of the user assigned to the alert.",
"type": "string"
},
"customerId": {
"description": "Output only. The unique identifier of the Google account of the customer.",
"type": "string"
},
"etag": {
"description": "Optional. `etag` is used for optimistic concurrency control as a way to\nhelp prevent simultaneous updates of an alert metadata from overwriting\neach other. It is strongly suggested that systems make use of the `etag` in\nthe read-modify-write cycle to perform metatdata updates in order to avoid\nrace conditions: An `etag` is returned in the response which contains alert\nmetadata, and systems are expected to put that etag in the request to\nupdate alert metadata to ensure that their change will be applied to the\nsame version of the alert metadata.\n\nIf no `etag` is provided in the call to update alert metadata, then the\nexisting alert metadata is overwritten blindly.",
"type": "string"
},
"severity": {
"description": "The severity value of the alert. Alert Center will set this field at alert\ncreation time, default's to an empty string when it could not be\ndetermined.\nThe supported values for update actions on this field are the following:\n\n* HIGH\n* MEDIUM\n* LOW",
"type": "string"
},
"status": {
"description": "The current status of the alert.\nThe supported values are the following:\n\n* NOT_STARTED\n* IN_PROGRESS\n* CLOSED",
"type": "string"
},
"updateTime": {
"description": "Output only. The time this metadata was last updated.",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"AppMakerSqlSetupNotification": {
"description": "Alerts from App Maker to notify admins to set up default SQL instance.",
"id": "AppMakerSqlSetupNotification",
"properties": {
"requestInfo": {
"description": "List of applications with requests for default SQL set up.",
"items": {
"$ref": "RequestInfo"
},
"type": "array"
}
},
"type": "object"
},
"Attachment": {
"description": "Attachment with application-specific information about an alert.",
"id": "Attachment",
@@ -579,6 +703,84 @@
},
"type": "object"
},
"BatchDeleteAlertsRequest": {
"description": "A request to perform batch delete on alerts.",
"id": "BatchDeleteAlertsRequest",
"properties": {
"alertId": {
"description": "Required. list of alert IDs.",
"items": {
"type": "string"
},
"type": "array"
},
"customerId": {
"description": "Optional. The unique identifier of the G Suite organization account of the\ncustomer the alerts are associated with.",
"type": "string"
}
},
"type": "object"
},
"BatchDeleteAlertsResponse": {
"description": "Response to batch delete operation on alerts.",
"id": "BatchDeleteAlertsResponse",
"properties": {
"failedAlertStatus": {
"additionalProperties": {
"$ref": "Status"
},
"description": "The status details for each failed alert_id.",
"type": "object"
},
"successAlertIds": {
"description": "The successful list of alert IDs.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"BatchUndeleteAlertsRequest": {
"description": "A request to perform batch undelete on alerts.",
"id": "BatchUndeleteAlertsRequest",
"properties": {
"alertId": {
"description": "Required. list of alert IDs.",
"items": {
"type": "string"
},
"type": "array"
},
"customerId": {
"description": "Optional. The unique identifier of the G Suite organization account of the\ncustomer the alerts are associated with.",
"type": "string"
}
},
"type": "object"
},
"BatchUndeleteAlertsResponse": {
"description": "Response to batch undelete operation on alerts.",
"id": "BatchUndeleteAlertsResponse",
"properties": {
"failedAlertStatus": {
"additionalProperties": {
"$ref": "Status"
},
"description": "The status details for each failed alert_id.",
"type": "object"
},
"successAlertIds": {
"description": "The successful list of alert IDs.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"CloudPubsubTopic": {
"description": "A reference to a Cloud Pubsub topic.\n\nTo register for notifications, the owner of the topic must grant\n`alerts-api-push-notifications@system.gserviceaccount.com` the\n `projects.topics.publish` permission.",
"id": "CloudPubsubTopic",
@@ -690,6 +892,17 @@
},
"type": "object"
},
"DlpRuleViolation": {
"description": "Alerts that get triggered on violations of Data Loss Prevention (DLP) rules.",
"id": "DlpRuleViolation",
"properties": {
"ruleViolationInfo": {
"$ref": "RuleViolationInfo",
"description": "Details about the violated DLP rule.\n\nAdmins can use the predefined detectors provided by Google Cloud DLP\nhttps://cloud.google.com/dlp/ when setting up a DLP rule. Matched Cloud DLP\ndetectors in this violation if any will be captured in the\nMatchInfo.predefined_detector."
}
},
"type": "object"
},
"DomainId": {
"description": "Domain ID of Gmail phishing alerts.",
"id": "DomainId",
@@ -832,7 +1045,7 @@
"type": "string"
},
"loginTime": {
"description": "Optional. The successful login time that is associated with the warning\nevent. This will not be present for blocked login attempts.",
"description": "Optional. The successful login time that is associated with the warning\nevent. This isn't present for blocked login attempts.",
"format": "google-datetime",
"type": "string"
}
@@ -840,7 +1053,7 @@
"type": "object"
},
"MailPhishing": {
"description": "Proto for all phishing alerts with common payload.\nSupported types are any of the following:\n\n* User reported phishing\n* User reported spam spike\n* Suspicious message reported\n* Phishing reclassification\n* Malware reclassification",
"description": "Proto for all phishing alerts with common payload.\nSupported types are any of the following:\n\n* User reported phishing\n* User reported spam spike\n* Suspicious message reported\n* Phishing reclassification\n* Malware reclassification\n* Gmail potential employee spoofing",
"id": "MailPhishing",
"properties": {
"domainId": {
@@ -861,6 +1074,20 @@
"$ref": "GmailMessageInfo"
},
"type": "array"
},
"systemActionType": {
"description": "System actions on the messages.",
"enum": [
"SYSTEM_ACTION_TYPE_UNSPECIFIED",
"NO_OPERATION",
"REMOVED_FROM_INBOX"
],
"enumDescriptions": [
"System action is unspecified.",
"No operation.",
"Messages were removed from the inbox."
],
"type": "string"
}
},
"type": "object"
@@ -873,6 +1100,10 @@
"description": "The header from display name.",
"type": "string"
},
"entity": {
"$ref": "User",
"description": "The actor who triggered a gmail phishing alert."
},
"fromHeader": {
"description": "The sender email address.",
"type": "string"
@@ -880,6 +1111,21 @@
},
"type": "object"
},
"MatchInfo": {
"description": "Proto that contains match information from the condition part of the rule.",
"id": "MatchInfo",
"properties": {
"predefinedDetector": {
"$ref": "PredefinedDetectorInfo",
"description": "For matched detector predefined by Google."
},
"userDefinedDetector": {
"$ref": "UserDefinedDetectorInfo",
"description": "For matched detector defined by administrators."
}
},
"type": "object"
},
"Notification": {
"description": "Settings for callback notifications.\nFor more details see [G Suite Alert\nNotification](/admin-sdk/alertcenter/guides/notifications).",
"id": "Notification",
@@ -917,6 +1163,165 @@
},
"type": "object"
},
"PredefinedDetectorInfo": {
"description": "Detector provided by Google.",
"id": "PredefinedDetectorInfo",
"properties": {
"detectorName": {
"description": "Name that uniquely identifies the detector.",
"type": "string"
}
},
"type": "object"
},
"RequestInfo": {
"description": "Requests for one application that needs default SQL setup.",
"id": "RequestInfo",
"properties": {
"appDeveloperEmail": {
"description": "List of app developers who triggered notifications for above\napplication.",
"items": {
"type": "string"
},
"type": "array"
},
"appKey": {
"description": "Required. The application that requires the SQL setup.",
"type": "string"
},
"numberOfRequests": {
"description": "Required. Number of requests sent for this application to set up default\nSQL instance.",
"format": "int64",
"type": "string"
}
},
"type": "object"
},
"ResourceInfo": {
"description": "Proto that contains resource information.",
"id": "ResourceInfo",
"properties": {
"documentId": {
"description": "Drive file ID.",
"type": "string"
},
"resourceTitle": {
"description": "Title of the resource, for example email subject, or document title.",
"type": "string"
}
},
"type": "object"
},
"RuleInfo": {
"description": "Proto that contains rule information.",
"id": "RuleInfo",
"properties": {
"displayName": {
"description": "User provided name of the rule.",
"type": "string"
},
"resourceName": {
"description": "Resource name that uniquely identifies the rule.",
"type": "string"
}
},
"type": "object"
},
"RuleViolationInfo": {
"description": "Common alert information about violated rules that are configured by G Suite\nadministrators.",
"id": "RuleViolationInfo",
"properties": {
"dataSource": {
"description": "Source of the data.",
"enum": [
"DATA_SOURCE_UNSPECIFIED",
"DRIVE"
],
"enumDescriptions": [
"Data source is unspecified.",
"Drive data source."
],
"type": "string"
},
"matchInfo": {
"description": "List of matches that were found in the resource content.",
"items": {
"$ref": "MatchInfo"
},
"type": "array"
},
"recipients": {
"description": "Resource recipients.\n\nFor Drive, they are grantees that the Drive file was shared with at the\ntime of rule triggering. Valid values include user emails, group emails,\ndomains, or 'anyone' if the file was publicly accessible. If the file was\nprivate the recipients list will be empty.\n\nFor Gmail, they are emails of the users or groups that the Gmail message\nwas sent to.",
"items": {
"type": "string"
},
"type": "array"
},
"resourceInfo": {
"$ref": "ResourceInfo",
"description": "Details of the resource which violated the rule."
},
"ruleInfo": {
"$ref": "RuleInfo",
"description": "Details of the violated rule."
},
"suppressedActionTypes": {
"description": "Actions suppressed due to other actions with higher priority.",
"enumDescriptions": [
"Action type is unspecified.",
"Block sharing a file externally.",
"Show a warning message when sharing a file externally.",
"Send alert."
],
"items": {
"enum": [
"ACTION_TYPE_UNSPECIFIED",
"DRIVE_BLOCK_EXTERNAL_SHARING",
"DRIVE_WARN_ON_EXTERNAL_SHARING",
"ALERT"
],
"type": "string"
},
"type": "array"
},
"trigger": {
"description": "Trigger of the rule.",
"enum": [
"TRIGGER_UNSPECIFIED",
"DRIVE_SHARE"
],
"enumDescriptions": [
"Trigger is unspecified.",
"A Drive file is shared."
],
"type": "string"
},
"triggeredActionTypes": {
"description": "Actions applied as a consequence of the rule being triggered.",
"enumDescriptions": [
"Action type is unspecified.",
"Block sharing a file externally.",
"Show a warning message when sharing a file externally.",
"Send alert."
],
"items": {
"enum": [
"ACTION_TYPE_UNSPECIFIED",
"DRIVE_BLOCK_EXTERNAL_SHARING",
"DRIVE_WARN_ON_EXTERNAL_SHARING",
"ALERT"
],
"type": "string"
},
"type": "array"
},
"triggeringUserEmail": {
"description": "Email of the user who caused the violation. Value could be empty if not\napplicable, for example, a violation found by drive continuous scan.",
"type": "string"
}
},
"type": "object"
},
"Settings": {
"description": "Customer-level settings.",
"id": "Settings",
@@ -942,6 +1347,33 @@
},
"type": "object"
},
"Status": {
"description": "The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).",
"id": "Status",
"properties": {
"code": {
"description": "The status code, which should be an enum value of google.rpc.Code.",
"format": "int32",
"type": "integer"
},
"details": {
"description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
"items": {
"additionalProperties": {
"description": "Properties of the object. Contains field @type with type URL.",
"type": "any"
},
"type": "object"
},
"type": "array"
},
"message": {
"description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
"type": "string"
}
},
"type": "object"
},
"SuspiciousActivity": {
"description": "A mobile suspicious activity alert. Derived from audit logs.",
"id": "SuspiciousActivity",
@@ -1013,6 +1445,36 @@
}
},
"type": "object"
},
"User": {
"description": "A user.",
"id": "User",
"properties": {
"displayName": {
"description": "Display name of the user.",
"type": "string"
},
"emailAddress": {
"description": "Email address of the user.",
"type": "string"
}
},
"type": "object"
},
"UserDefinedDetectorInfo": {
"description": "Detector defined by administrators.",
"id": "UserDefinedDetectorInfo",
"properties": {
"displayName": {
"description": "Display name of the detector.",
"type": "string"
},
"resourceName": {
"description": "Resource name that uniquely identifies the detector.",
"type": "string"
}
},
"type": "object"
}
},
"servicePath": "",