Skip to content

Commit 13e1418

Browse files
yoshi-automationBenjamin E. Coe
authored andcommitted
feat(alertcenter): update the API
#### alertcenter:v1beta1 The following keys were added: - schemas.TransferError.description - schemas.TransferError.id - schemas.TransferError.properties.email.description - schemas.TransferError.properties.email.type - schemas.TransferError.properties.entityType.description - schemas.TransferError.properties.entityType.enum - schemas.TransferError.properties.entityType.enumDescriptions - schemas.TransferError.properties.entityType.type - schemas.TransferError.properties.id.description - schemas.TransferError.properties.id.type - schemas.TransferError.properties.invalidReason.description - schemas.TransferError.properties.invalidReason.enum - schemas.TransferError.properties.invalidReason.enumDescriptions - schemas.TransferError.properties.invalidReason.type - schemas.TransferError.properties.name.description - schemas.TransferError.properties.name.type - schemas.TransferError.type - schemas.TransferMisconfiguration.description - schemas.TransferMisconfiguration.id - schemas.TransferMisconfiguration.properties.errors.description - schemas.TransferMisconfiguration.properties.errors.items.$ref - schemas.TransferMisconfiguration.properties.errors.type - schemas.TransferMisconfiguration.type - schemas.VoiceMisconfiguration.description - schemas.VoiceMisconfiguration.id - schemas.VoiceMisconfiguration.properties.entityName.description - schemas.VoiceMisconfiguration.properties.entityName.type - schemas.VoiceMisconfiguration.properties.entityType.description - schemas.VoiceMisconfiguration.properties.entityType.enum - schemas.VoiceMisconfiguration.properties.entityType.enumDescriptions - schemas.VoiceMisconfiguration.properties.entityType.type - schemas.VoiceMisconfiguration.properties.fixUri.description - schemas.VoiceMisconfiguration.properties.fixUri.type - schemas.VoiceMisconfiguration.properties.membersMisconfiguration.$ref - schemas.VoiceMisconfiguration.properties.membersMisconfiguration.description - schemas.VoiceMisconfiguration.properties.transferMisconfiguration.$ref - schemas.VoiceMisconfiguration.properties.transferMisconfiguration.description - schemas.VoiceMisconfiguration.properties.voicemailMisconfiguration.$ref - schemas.VoiceMisconfiguration.properties.voicemailMisconfiguration.description - schemas.VoiceMisconfiguration.type - schemas.VoicemailMisconfiguration.description - schemas.VoicemailMisconfiguration.id - schemas.VoicemailMisconfiguration.properties.errors.description - schemas.VoicemailMisconfiguration.properties.errors.items.$ref - schemas.VoicemailMisconfiguration.properties.errors.type - schemas.VoicemailMisconfiguration.type - schemas.VoicemailRecipientError.description - schemas.VoicemailRecipientError.id - schemas.VoicemailRecipientError.properties.email.description - schemas.VoicemailRecipientError.properties.email.type - schemas.VoicemailRecipientError.properties.invalidReason.description - schemas.VoicemailRecipientError.properties.invalidReason.enum - schemas.VoicemailRecipientError.properties.invalidReason.enumDescriptions - schemas.VoicemailRecipientError.properties.invalidReason.type - schemas.VoicemailRecipientError.type The following keys were changed: - schemas.ApnsCertificateExpirationInfo.properties.appleId.description - schemas.RuleViolationInfo.properties.suppressedActionTypes.items.enum - schemas.RuleViolationInfo.properties.suppressedActionTypes.items.enumDescriptions - schemas.RuleViolationInfo.properties.triggeredActionTypes.items.enum - schemas.RuleViolationInfo.properties.triggeredActionTypes.items.enumDescriptions
1 parent 45c607b commit 13e1418

File tree

2 files changed

+243
-7
lines changed

2 files changed

+243
-7
lines changed

discovery/alertcenter-v1beta1.json

Lines changed: 157 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@
423423
}
424424
}
425425
},
426-
"revision": "20221024",
426+
"revision": "20221219",
427427
"rootUrl": "https://alertcenter.googleapis.com/",
428428
"schemas": {
429429
"AbuseDetected": {
@@ -768,7 +768,7 @@
768768
"id": "ApnsCertificateExpirationInfo",
769769
"properties": {
770770
"appleId": {
771-
"description": "The Apple ID used for the certificate, may be blank if admins did not enter it.",
771+
"description": "The Apple ID used for the certificate may be blank if admins didn't enter it.",
772772
"type": "string"
773773
},
774774
"expirationTime": {
@@ -1606,15 +1606,17 @@
16061606
"DRIVE_WARN_ON_EXTERNAL_SHARING",
16071607
"ALERT",
16081608
"RULE_ACTIVATE",
1609-
"RULE_DEACTIVATE"
1609+
"RULE_DEACTIVATE",
1610+
"DELETE_WEBPROTECT_EVIDENCE"
16101611
],
16111612
"enumDescriptions": [
16121613
"Action type is unspecified.",
16131614
"Block sharing a file externally.",
16141615
"Show a warning message when sharing a file externally.",
16151616
"Send alert.",
16161617
"Activate Rule Action",
1617-
"Deactivate Rule Action"
1618+
"Deactivate Rule Action",
1619+
"Chrome actions Delete web protect evidence file"
16181620
],
16191621
"type": "string"
16201622
},
@@ -1648,15 +1650,17 @@
16481650
"DRIVE_WARN_ON_EXTERNAL_SHARING",
16491651
"ALERT",
16501652
"RULE_ACTIVATE",
1651-
"RULE_DEACTIVATE"
1653+
"RULE_DEACTIVATE",
1654+
"DELETE_WEBPROTECT_EVIDENCE"
16521655
],
16531656
"enumDescriptions": [
16541657
"Action type is unspecified.",
16551658
"Block sharing a file externally.",
16561659
"Show a warning message when sharing a file externally.",
16571660
"Send alert.",
16581661
"Activate Rule Action",
1659-
"Deactivate Rule Action"
1662+
"Deactivate Rule Action",
1663+
"Chrome actions Delete web protect evidence file"
16601664
],
16611665
"type": "string"
16621666
},
@@ -1866,6 +1870,73 @@
18661870
},
18671871
"type": "object"
18681872
},
1873+
"TransferError": {
1874+
"description": "Details for an invalid transfer or forward.",
1875+
"id": "TransferError",
1876+
"properties": {
1877+
"email": {
1878+
"description": "User's email address. This may be unavailable if the entity was deleted.",
1879+
"type": "string"
1880+
},
1881+
"entityType": {
1882+
"description": "Type of entity being transferred to. For ring group members, this should always be USER.",
1883+
"enum": [
1884+
"TRANSFER_ENTITY_TYPE_UNSPECIFIED",
1885+
"TRANSFER_AUTO_ATTENDANT",
1886+
"TRANSFER_RING_GROUP",
1887+
"TRANSFER_USER"
1888+
],
1889+
"enumDescriptions": [
1890+
"Entity type wasn't set.",
1891+
"Transfer to auto attendant.",
1892+
"Transfer to ring group.",
1893+
"Transfer to user."
1894+
],
1895+
"type": "string"
1896+
},
1897+
"id": {
1898+
"description": "Ring group or auto attendant ID. Not set for users.",
1899+
"type": "string"
1900+
},
1901+
"invalidReason": {
1902+
"description": "Reason for the error.",
1903+
"enum": [
1904+
"TRANSFER_INVALID_REASON_UNSPECIFIED",
1905+
"TRANSFER_TARGET_DELETED",
1906+
"UNLICENSED",
1907+
"SUSPENDED",
1908+
"NO_PHONE_NUMBER"
1909+
],
1910+
"enumDescriptions": [
1911+
"Reason wasn't specified.",
1912+
"The transfer target can't be found—most likely it was deleted.",
1913+
"The user's Google Voice license was removed.",
1914+
"The user's Google Workspace account was suspended.",
1915+
"The transfer target no longer has a phone number. This reason should become deprecated once we support numberless transfer."
1916+
],
1917+
"type": "string"
1918+
},
1919+
"name": {
1920+
"description": "User's full name, or the ring group / auto attendant name. This may be unavailable if the entity was deleted.",
1921+
"type": "string"
1922+
}
1923+
},
1924+
"type": "object"
1925+
},
1926+
"TransferMisconfiguration": {
1927+
"description": "Error related to transferring or forwarding a phone call.",
1928+
"id": "TransferMisconfiguration",
1929+
"properties": {
1930+
"errors": {
1931+
"description": "Details for each invalid transfer or forward.",
1932+
"items": {
1933+
"$ref": "TransferError"
1934+
},
1935+
"type": "array"
1936+
}
1937+
},
1938+
"type": "object"
1939+
},
18691940
"UndeleteAlertRequest": {
18701941
"description": "A request to undelete a specific alert that was marked for deletion.",
18711942
"id": "UndeleteAlertRequest",
@@ -1917,6 +1988,86 @@
19171988
}
19181989
},
19191990
"type": "object"
1991+
},
1992+
"VoiceMisconfiguration": {
1993+
"description": "An alert triggered when Google Voice configuration becomes invalid, generally due to an external entity being modified or deleted.",
1994+
"id": "VoiceMisconfiguration",
1995+
"properties": {
1996+
"entityName": {
1997+
"description": "Name of the entity whose configuration is now invalid.",
1998+
"type": "string"
1999+
},
2000+
"entityType": {
2001+
"description": "Type of the entity whose configuration is now invalid.",
2002+
"enum": [
2003+
"ENTITY_TYPE_UNSPECIFIED",
2004+
"AUTO_ATTENDANT",
2005+
"RING_GROUP"
2006+
],
2007+
"enumDescriptions": [
2008+
"Entity type wasn't set.",
2009+
"Invalid auto attendant.",
2010+
"Invalid ring group."
2011+
],
2012+
"type": "string"
2013+
},
2014+
"fixUri": {
2015+
"description": "Link that the admin can follow to fix the issue.",
2016+
"type": "string"
2017+
},
2018+
"membersMisconfiguration": {
2019+
"$ref": "TransferMisconfiguration",
2020+
"description": "Issue(s) with members of a ring group."
2021+
},
2022+
"transferMisconfiguration": {
2023+
"$ref": "TransferMisconfiguration",
2024+
"description": "Issue(s) with transferring or forwarding to an external entity."
2025+
},
2026+
"voicemailMisconfiguration": {
2027+
"$ref": "VoicemailMisconfiguration",
2028+
"description": "Issue(s) with sending to voicemail."
2029+
}
2030+
},
2031+
"type": "object"
2032+
},
2033+
"VoicemailMisconfiguration": {
2034+
"description": "Issue(s) with sending to voicemail.",
2035+
"id": "VoicemailMisconfiguration",
2036+
"properties": {
2037+
"errors": {
2038+
"description": "Issue(s) with voicemail recipients.",
2039+
"items": {
2040+
"$ref": "VoicemailRecipientError"
2041+
},
2042+
"type": "array"
2043+
}
2044+
},
2045+
"type": "object"
2046+
},
2047+
"VoicemailRecipientError": {
2048+
"description": "Issue(s) with a voicemail recipient.",
2049+
"id": "VoicemailRecipientError",
2050+
"properties": {
2051+
"email": {
2052+
"description": "Email address of the invalid recipient. This may be unavailable if the recipient was deleted.",
2053+
"type": "string"
2054+
},
2055+
"invalidReason": {
2056+
"description": "Reason for the error.",
2057+
"enum": [
2058+
"EMAIL_INVALID_REASON_UNSPECIFIED",
2059+
"OUT_OF_QUOTA",
2060+
"RECIPIENT_DELETED"
2061+
],
2062+
"enumDescriptions": [
2063+
"Reason wasn't specified.",
2064+
"User can't receive emails due to insufficient quota.",
2065+
"All recipients were deleted."
2066+
],
2067+
"type": "string"
2068+
}
2069+
},
2070+
"type": "object"
19202071
}
19212072
},
19222073
"servicePath": "",

src/apis/alertcenter/v1beta1.ts

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ export namespace alertcenter_v1beta1 {
379379
*/
380380
export interface Schema$ApnsCertificateExpirationInfo {
381381
/**
382-
* The Apple ID used for the certificate, may be blank if admins did not enter it.
382+
* The Apple ID used for the certificate may be blank if admins didn't enter it.
383383
*/
384384
appleId?: string | null;
385385
/**
@@ -1183,6 +1183,40 @@ export namespace alertcenter_v1beta1 {
11831183
*/
11841184
serialNumber?: string | null;
11851185
}
1186+
/**
1187+
* Details for an invalid transfer or forward.
1188+
*/
1189+
export interface Schema$TransferError {
1190+
/**
1191+
* User's email address. This may be unavailable if the entity was deleted.
1192+
*/
1193+
email?: string | null;
1194+
/**
1195+
* Type of entity being transferred to. For ring group members, this should always be USER.
1196+
*/
1197+
entityType?: string | null;
1198+
/**
1199+
* Ring group or auto attendant ID. Not set for users.
1200+
*/
1201+
id?: string | null;
1202+
/**
1203+
* Reason for the error.
1204+
*/
1205+
invalidReason?: string | null;
1206+
/**
1207+
* User's full name, or the ring group / auto attendant name. This may be unavailable if the entity was deleted.
1208+
*/
1209+
name?: string | null;
1210+
}
1211+
/**
1212+
* Error related to transferring or forwarding a phone call.
1213+
*/
1214+
export interface Schema$TransferMisconfiguration {
1215+
/**
1216+
* Details for each invalid transfer or forward.
1217+
*/
1218+
errors?: Schema$TransferError[];
1219+
}
11861220
/**
11871221
* A request to undelete a specific alert that was marked for deletion.
11881222
*/
@@ -1227,6 +1261,57 @@ export namespace alertcenter_v1beta1 {
12271261
*/
12281262
resourceName?: string | null;
12291263
}
1264+
/**
1265+
* Issue(s) with sending to voicemail.
1266+
*/
1267+
export interface Schema$VoicemailMisconfiguration {
1268+
/**
1269+
* Issue(s) with voicemail recipients.
1270+
*/
1271+
errors?: Schema$VoicemailRecipientError[];
1272+
}
1273+
/**
1274+
* Issue(s) with a voicemail recipient.
1275+
*/
1276+
export interface Schema$VoicemailRecipientError {
1277+
/**
1278+
* Email address of the invalid recipient. This may be unavailable if the recipient was deleted.
1279+
*/
1280+
email?: string | null;
1281+
/**
1282+
* Reason for the error.
1283+
*/
1284+
invalidReason?: string | null;
1285+
}
1286+
/**
1287+
* An alert triggered when Google Voice configuration becomes invalid, generally due to an external entity being modified or deleted.
1288+
*/
1289+
export interface Schema$VoiceMisconfiguration {
1290+
/**
1291+
* Name of the entity whose configuration is now invalid.
1292+
*/
1293+
entityName?: string | null;
1294+
/**
1295+
* Type of the entity whose configuration is now invalid.
1296+
*/
1297+
entityType?: string | null;
1298+
/**
1299+
* Link that the admin can follow to fix the issue.
1300+
*/
1301+
fixUri?: string | null;
1302+
/**
1303+
* Issue(s) with members of a ring group.
1304+
*/
1305+
membersMisconfiguration?: Schema$TransferMisconfiguration;
1306+
/**
1307+
* Issue(s) with transferring or forwarding to an external entity.
1308+
*/
1309+
transferMisconfiguration?: Schema$TransferMisconfiguration;
1310+
/**
1311+
* Issue(s) with sending to voicemail.
1312+
*/
1313+
voicemailMisconfiguration?: Schema$VoicemailMisconfiguration;
1314+
}
12301315

12311316
export class Resource$Alerts {
12321317
context: APIRequestContext;

0 commit comments

Comments
 (0)