Skip to content

Commit 945bc80

Browse files
feat(threatintelligence): update the API
#### threatintelligence:v1beta The following keys were added: - resources.projects.methods.generateOrgProfile.description - resources.projects.methods.generateOrgProfile.flatPath - resources.projects.methods.generateOrgProfile.httpMethod - resources.projects.methods.generateOrgProfile.id - resources.projects.methods.generateOrgProfile.parameterOrder - resources.projects.methods.generateOrgProfile.parameters.name.description - resources.projects.methods.generateOrgProfile.parameters.name.location - resources.projects.methods.generateOrgProfile.parameters.name.pattern - resources.projects.methods.generateOrgProfile.parameters.name.required - resources.projects.methods.generateOrgProfile.parameters.name.type - resources.projects.methods.generateOrgProfile.path - resources.projects.methods.generateOrgProfile.request.$ref - resources.projects.methods.generateOrgProfile.response.$ref - resources.projects.methods.generateOrgProfile.scopes - schemas.Alert.properties.findingCount.description - schemas.Alert.properties.findingCount.format - schemas.Alert.properties.findingCount.readOnly - schemas.Alert.properties.findingCount.type - schemas.GenerateOrgProfileConfigurationRequest.description - schemas.GenerateOrgProfileConfigurationRequest.id - schemas.GenerateOrgProfileConfigurationRequest.properties.displayName.description - schemas.GenerateOrgProfileConfigurationRequest.properties.displayName.type - schemas.GenerateOrgProfileConfigurationRequest.properties.domain.description - schemas.GenerateOrgProfileConfigurationRequest.properties.domain.type - schemas.GenerateOrgProfileConfigurationRequest.type - schemas.Operation.description - schemas.Operation.id - schemas.Operation.properties.done.description - schemas.Operation.properties.done.type - schemas.Operation.properties.error.$ref - schemas.Operation.properties.error.description - schemas.Operation.properties.metadata.additionalProperties.description - schemas.Operation.properties.metadata.additionalProperties.type - schemas.Operation.properties.metadata.description - schemas.Operation.properties.metadata.type - schemas.Operation.properties.name.description - schemas.Operation.properties.name.type - schemas.Operation.properties.response.additionalProperties.description - schemas.Operation.properties.response.additionalProperties.type - schemas.Operation.properties.response.description - schemas.Operation.properties.response.type - schemas.Operation.type - schemas.Status.description - schemas.Status.id - schemas.Status.properties.code.description - schemas.Status.properties.code.format - schemas.Status.properties.code.type - schemas.Status.properties.details.description - schemas.Status.properties.details.items.additionalProperties.description - schemas.Status.properties.details.items.additionalProperties.type - schemas.Status.properties.details.items.type - schemas.Status.properties.details.type - schemas.Status.properties.message.description - schemas.Status.properties.message.type - schemas.Status.type
1 parent 79b1034 commit 945bc80

File tree

2 files changed

+346
-1
lines changed

2 files changed

+346
-1
lines changed

discovery/threatintelligence-v1beta.json

Lines changed: 114 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,36 @@
106106
"protocol": "rest",
107107
"resources": {
108108
"projects": {
109+
"methods": {
110+
"generateOrgProfile": {
111+
"description": "Triggers the generation of a Customer Profile for a project.",
112+
"flatPath": "v1beta/projects/{projectsId}:generateOrgProfile",
113+
"httpMethod": "POST",
114+
"id": "threatintelligence.projects.generateOrgProfile",
115+
"parameterOrder": [
116+
"name"
117+
],
118+
"parameters": {
119+
"name": {
120+
"description": "Required. The name of the project to generate the profile for. Format: projects/{project}",
121+
"location": "path",
122+
"pattern": "^projects/[^/]+$",
123+
"required": true,
124+
"type": "string"
125+
}
126+
},
127+
"path": "v1beta/{+name}:generateOrgProfile",
128+
"request": {
129+
"$ref": "GenerateOrgProfileConfigurationRequest"
130+
},
131+
"response": {
132+
"$ref": "Operation"
133+
},
134+
"scopes": [
135+
"https://www.googleapis.com/auth/cloud-platform"
136+
]
137+
}
138+
},
109139
"resources": {
110140
"alerts": {
111141
"methods": {
@@ -836,7 +866,7 @@
836866
}
837867
}
838868
},
839-
"revision": "20260122",
869+
"revision": "20260204",
840870
"rootUrl": "https://threatintelligence.googleapis.com/",
841871
"schemas": {
842872
"AffectedSoftware": {
@@ -915,6 +945,12 @@
915945
"readOnly": true,
916946
"type": "string"
917947
},
948+
"findingCount": {
949+
"description": "Output only. The number of findings associated with this alert.",
950+
"format": "int64",
951+
"readOnly": true,
952+
"type": "string"
953+
},
918954
"findings": {
919955
"description": "Output only. Findings that are covered by this alert.",
920956
"items": {
@@ -2129,6 +2165,21 @@
21292165
},
21302166
"type": "object"
21312167
},
2168+
"GenerateOrgProfileConfigurationRequest": {
2169+
"description": "Request message for GenerateOrgProfileConfiguration.",
2170+
"id": "GenerateOrgProfileConfigurationRequest",
2171+
"properties": {
2172+
"displayName": {
2173+
"description": "Required. The display name of the organization to generate the profile for.",
2174+
"type": "string"
2175+
},
2176+
"domain": {
2177+
"description": "Required. The domain of the organization to generate the profile for.",
2178+
"type": "string"
2179+
}
2180+
},
2181+
"type": "object"
2182+
},
21322183
"InbandVulnerability": {
21332184
"description": "Fleshed out vulnerability object that includes enough details to fill out a vulnerability specific view for an issue.",
21342185
"id": "InbandVulnerability",
@@ -2529,6 +2580,41 @@
25292580
},
25302581
"type": "object"
25312582
},
2583+
"Operation": {
2584+
"description": "This resource represents a long-running operation that is the result of a network API call.",
2585+
"id": "Operation",
2586+
"properties": {
2587+
"done": {
2588+
"description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.",
2589+
"type": "boolean"
2590+
},
2591+
"error": {
2592+
"$ref": "Status",
2593+
"description": "The error result of the operation in case of failure or cancellation."
2594+
},
2595+
"metadata": {
2596+
"additionalProperties": {
2597+
"description": "Properties of the object. Contains field @type with type URL.",
2598+
"type": "any"
2599+
},
2600+
"description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
2601+
"type": "object"
2602+
},
2603+
"name": {
2604+
"description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",
2605+
"type": "string"
2606+
},
2607+
"response": {
2608+
"additionalProperties": {
2609+
"description": "Properties of the object. Contains field @type with type URL.",
2610+
"type": "any"
2611+
},
2612+
"description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
2613+
"type": "object"
2614+
}
2615+
},
2616+
"type": "object"
2617+
},
25322618
"PriorityAnalysis": {
25332619
"description": "Structured priority analysis for a threat.",
25342620
"id": "PriorityAnalysis",
@@ -2754,6 +2840,33 @@
27542840
},
27552841
"type": "object"
27562842
},
2843+
"Status": {
2844+
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
2845+
"id": "Status",
2846+
"properties": {
2847+
"code": {
2848+
"description": "The status code, which should be an enum value of google.rpc.Code.",
2849+
"format": "int32",
2850+
"type": "integer"
2851+
},
2852+
"details": {
2853+
"description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
2854+
"items": {
2855+
"additionalProperties": {
2856+
"description": "Properties of the object. Contains field @type with type URL.",
2857+
"type": "any"
2858+
},
2859+
"type": "object"
2860+
},
2861+
"type": "array"
2862+
},
2863+
"message": {
2864+
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
2865+
"type": "string"
2866+
}
2867+
},
2868+
"type": "object"
2869+
},
27572870
"SuspiciousDomainAlertDetail": {
27582871
"description": "The alert detail for a suspicious domain finding.",
27592872
"id": "SuspiciousDomainAlertDetail",

0 commit comments

Comments
 (0)