yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1 | { |
| 2 | "auth": { |
| 3 | "oauth2": { |
| 4 | "scopes": { |
| 5 | "https://www.googleapis.com/auth/cloud-platform": { |
| 6 | "description": "See, edit, configure, and delete your Google Cloud Platform data" |
| 7 | } |
| 8 | } |
| 9 | } |
| 10 | }, |
| 11 | "basePath": "", |
| 12 | "baseUrl": "https://osconfig.googleapis.com/", |
| 13 | "batchPath": "batch", |
| 14 | "canonicalName": "OS Config", |
| 15 | "description": "OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances.", |
| 16 | "discoveryVersion": "v1", |
| 17 | "documentationLink": "https://cloud.google.com/compute/docs/osconfig/rest", |
| 18 | "fullyEncodeReservedExpansion": true, |
| 19 | "icons": { |
| 20 | "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 21 | "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 22 | }, |
| 23 | "id": "osconfig:v1alpha", |
| 24 | "kind": "discovery#restDescription", |
| 25 | "mtlsRootUrl": "https://osconfig.mtls.googleapis.com/", |
| 26 | "name": "osconfig", |
| 27 | "ownerDomain": "google.com", |
| 28 | "ownerName": "Google", |
| 29 | "parameters": { |
| 30 | "$.xgafv": { |
| 31 | "description": "V1 error format.", |
| 32 | "enum": [ |
| 33 | "1", |
| 34 | "2" |
| 35 | ], |
| 36 | "enumDescriptions": [ |
| 37 | "v1 error format", |
| 38 | "v2 error format" |
| 39 | ], |
| 40 | "location": "query", |
| 41 | "type": "string" |
| 42 | }, |
| 43 | "access_token": { |
| 44 | "description": "OAuth access token.", |
| 45 | "location": "query", |
| 46 | "type": "string" |
| 47 | }, |
| 48 | "alt": { |
| 49 | "default": "json", |
| 50 | "description": "Data format for response.", |
| 51 | "enum": [ |
| 52 | "json", |
| 53 | "media", |
| 54 | "proto" |
| 55 | ], |
| 56 | "enumDescriptions": [ |
| 57 | "Responses with Content-Type of application/json", |
| 58 | "Media download with context-dependent Content-Type", |
| 59 | "Responses with Content-Type of application/x-protobuf" |
| 60 | ], |
| 61 | "location": "query", |
| 62 | "type": "string" |
| 63 | }, |
| 64 | "callback": { |
| 65 | "description": "JSONP", |
| 66 | "location": "query", |
| 67 | "type": "string" |
| 68 | }, |
| 69 | "fields": { |
| 70 | "description": "Selector specifying which fields to include in a partial response.", |
| 71 | "location": "query", |
| 72 | "type": "string" |
| 73 | }, |
| 74 | "key": { |
| 75 | "description": "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.", |
| 76 | "location": "query", |
| 77 | "type": "string" |
| 78 | }, |
| 79 | "oauth_token": { |
| 80 | "description": "OAuth 2.0 token for the current user.", |
| 81 | "location": "query", |
| 82 | "type": "string" |
| 83 | }, |
| 84 | "prettyPrint": { |
| 85 | "default": "true", |
| 86 | "description": "Returns response with indentations and line breaks.", |
| 87 | "location": "query", |
| 88 | "type": "boolean" |
| 89 | }, |
| 90 | "quotaUser": { |
| 91 | "description": "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.", |
| 92 | "location": "query", |
| 93 | "type": "string" |
| 94 | }, |
| 95 | "uploadType": { |
| 96 | "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
| 97 | "location": "query", |
| 98 | "type": "string" |
| 99 | }, |
| 100 | "upload_protocol": { |
| 101 | "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
| 102 | "location": "query", |
| 103 | "type": "string" |
| 104 | } |
| 105 | }, |
| 106 | "protocol": "rest", |
| 107 | "resources": { |
| 108 | "projects": { |
| 109 | "resources": { |
| 110 | "locations": { |
| 111 | "resources": { |
| 112 | "instanceOSPoliciesCompliances": { |
| 113 | "methods": { |
| 114 | "get": { |
| 115 | "description": "Get OS policies compliance data for the specified Compute Engine VM instance.", |
| 116 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/instanceOSPoliciesCompliances/{instanceOSPoliciesCompliancesId}", |
| 117 | "httpMethod": "GET", |
| 118 | "id": "osconfig.projects.locations.instanceOSPoliciesCompliances.get", |
| 119 | "parameterOrder": [ |
| 120 | "name" |
| 121 | ], |
| 122 | "parameters": { |
| 123 | "name": { |
| 124 | "description": "Required. API resource name for instance OS policies compliance resource. Format: `projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}` For `{project}`, either Compute Engine project-number or project-id can be provided. For `{instance}`, either Compute Engine VM instance-id or instance-name can be provided.", |
| 125 | "location": "path", |
| 126 | "pattern": "^projects/[^/]+/locations/[^/]+/instanceOSPoliciesCompliances/[^/]+$", |
| 127 | "required": true, |
| 128 | "type": "string" |
| 129 | } |
| 130 | }, |
| 131 | "path": "v1alpha/{+name}", |
| 132 | "response": { |
| 133 | "$ref": "InstanceOSPoliciesCompliance" |
| 134 | }, |
| 135 | "scopes": [ |
| 136 | "https://www.googleapis.com/auth/cloud-platform" |
| 137 | ] |
| 138 | }, |
| 139 | "list": { |
| 140 | "description": "List OS policies compliance data for all Compute Engine VM instances in the specified zone.", |
| 141 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/instanceOSPoliciesCompliances", |
| 142 | "httpMethod": "GET", |
| 143 | "id": "osconfig.projects.locations.instanceOSPoliciesCompliances.list", |
| 144 | "parameterOrder": [ |
| 145 | "parent" |
| 146 | ], |
| 147 | "parameters": { |
| 148 | "filter": { |
| 149 | "description": "If provided, this field specifies the criteria that must be met by a `InstanceOSPoliciesCompliance` API resource to be included in the response.", |
| 150 | "location": "query", |
| 151 | "type": "string" |
| 152 | }, |
| 153 | "pageSize": { |
| 154 | "description": "The maximum number of results to return.", |
| 155 | "format": "int32", |
| 156 | "location": "query", |
| 157 | "type": "integer" |
| 158 | }, |
| 159 | "pageToken": { |
| 160 | "description": "A pagination token returned from a previous call to `ListInstanceOSPoliciesCompliances` that indicates where this listing should continue from.", |
| 161 | "location": "query", |
| 162 | "type": "string" |
| 163 | }, |
| 164 | "parent": { |
| 165 | "description": "Required. The parent resource name. Format: `projects/{project}/locations/{location}` For `{project}`, either Compute Engine project-number or project-id can be provided.", |
| 166 | "location": "path", |
| 167 | "pattern": "^projects/[^/]+/locations/[^/]+$", |
| 168 | "required": true, |
| 169 | "type": "string" |
| 170 | } |
| 171 | }, |
| 172 | "path": "v1alpha/{+parent}/instanceOSPoliciesCompliances", |
| 173 | "response": { |
| 174 | "$ref": "ListInstanceOSPoliciesCompliancesResponse" |
| 175 | }, |
| 176 | "scopes": [ |
| 177 | "https://www.googleapis.com/auth/cloud-platform" |
| 178 | ] |
| 179 | } |
| 180 | } |
| 181 | }, |
| 182 | "instances": { |
| 183 | "resources": { |
| 184 | "inventories": { |
| 185 | "methods": { |
| 186 | "get": { |
| 187 | "description": "Get inventory data for the specified VM instance. If the VM has no associated inventory, the message `NOT_FOUND` is returned.", |
| 188 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/inventory", |
| 189 | "httpMethod": "GET", |
| 190 | "id": "osconfig.projects.locations.instances.inventories.get", |
| 191 | "parameterOrder": [ |
| 192 | "name" |
| 193 | ], |
| 194 | "parameters": { |
| 195 | "name": { |
| 196 | "description": "Required. API resource name for inventory resource. Format: `projects/{project}/locations/{location}/instances/{instance}/inventory` For `{project}`, either `project-number` or `project-id` can be provided. For `{instance}`, either Compute Engine `instance-id` or `instance-name` can be provided.", |
| 197 | "location": "path", |
| 198 | "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+/inventory$", |
| 199 | "required": true, |
| 200 | "type": "string" |
| 201 | }, |
| 202 | "view": { |
| 203 | "description": "Inventory view indicating what information should be included in the inventory resource. If unspecified, the default view is BASIC.", |
| 204 | "enum": [ |
| 205 | "INVENTORY_VIEW_UNSPECIFIED", |
| 206 | "BASIC", |
| 207 | "FULL" |
| 208 | ], |
| 209 | "enumDescriptions": [ |
| 210 | "The default value. The API defaults to the BASIC view.", |
| 211 | "Returns the basic inventory information that includes `os_info`.", |
| 212 | "Returns all fields." |
| 213 | ], |
| 214 | "location": "query", |
| 215 | "type": "string" |
| 216 | } |
| 217 | }, |
| 218 | "path": "v1alpha/{+name}", |
| 219 | "response": { |
| 220 | "$ref": "Inventory" |
| 221 | }, |
| 222 | "scopes": [ |
| 223 | "https://www.googleapis.com/auth/cloud-platform" |
| 224 | ] |
| 225 | }, |
| 226 | "list": { |
| 227 | "description": "List inventory data for all VM instances in the specified zone.", |
| 228 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/inventories", |
| 229 | "httpMethod": "GET", |
| 230 | "id": "osconfig.projects.locations.instances.inventories.list", |
| 231 | "parameterOrder": [ |
| 232 | "parent" |
| 233 | ], |
| 234 | "parameters": { |
| 235 | "filter": { |
| 236 | "description": "If provided, this field specifies the criteria that must be met by a `Inventory` API resource to be included in the response.", |
| 237 | "location": "query", |
| 238 | "type": "string" |
| 239 | }, |
| 240 | "pageSize": { |
| 241 | "description": "The maximum number of results to return.", |
| 242 | "format": "int32", |
| 243 | "location": "query", |
| 244 | "type": "integer" |
| 245 | }, |
| 246 | "pageToken": { |
| 247 | "description": "A pagination token returned from a previous call to `ListInventories` that indicates where this listing should continue from.", |
| 248 | "location": "query", |
| 249 | "type": "string" |
| 250 | }, |
| 251 | "parent": { |
| 252 | "description": "Required. The parent resource name. Format: `projects/{project}/locations/{location}/instances/{instance}` For `{project}`, either `project-number` or `project-id` can be provided. For `{instance}`, only hyphen or dash character is supported to list inventories across VMs.", |
| 253 | "location": "path", |
| 254 | "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", |
| 255 | "required": true, |
| 256 | "type": "string" |
| 257 | }, |
| 258 | "view": { |
| 259 | "description": "Inventory view indicating what information should be included in the inventory resource. If unspecified, the default view is BASIC.", |
| 260 | "enum": [ |
| 261 | "INVENTORY_VIEW_UNSPECIFIED", |
| 262 | "BASIC", |
| 263 | "FULL" |
| 264 | ], |
| 265 | "enumDescriptions": [ |
| 266 | "The default value. The API defaults to the BASIC view.", |
| 267 | "Returns the basic inventory information that includes `os_info`.", |
| 268 | "Returns all fields." |
| 269 | ], |
| 270 | "location": "query", |
| 271 | "type": "string" |
| 272 | } |
| 273 | }, |
| 274 | "path": "v1alpha/{+parent}/inventories", |
| 275 | "response": { |
| 276 | "$ref": "ListInventoriesResponse" |
| 277 | }, |
| 278 | "scopes": [ |
| 279 | "https://www.googleapis.com/auth/cloud-platform" |
| 280 | ] |
| 281 | } |
| 282 | } |
| 283 | }, |
| 284 | "vulnerabilityReports": { |
| 285 | "methods": { |
| 286 | "get": { |
| 287 | "description": "Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.", |
| 288 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/vulnerabilityReport", |
| 289 | "httpMethod": "GET", |
| 290 | "id": "osconfig.projects.locations.instances.vulnerabilityReports.get", |
| 291 | "parameterOrder": [ |
| 292 | "name" |
| 293 | ], |
| 294 | "parameters": { |
| 295 | "name": { |
| 296 | "description": "Required. API resource name for vulnerability resource. Format: `projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport` For `{project}`, either `project-number` or `project-id` can be provided. For `{instance}`, either Compute Engine `instance-id` or `instance-name` can be provided.", |
| 297 | "location": "path", |
| 298 | "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+/vulnerabilityReport$", |
| 299 | "required": true, |
| 300 | "type": "string" |
| 301 | } |
| 302 | }, |
| 303 | "path": "v1alpha/{+name}", |
| 304 | "response": { |
| 305 | "$ref": "VulnerabilityReport" |
| 306 | }, |
| 307 | "scopes": [ |
| 308 | "https://www.googleapis.com/auth/cloud-platform" |
| 309 | ] |
| 310 | }, |
| 311 | "list": { |
| 312 | "description": "List vulnerability reports for all VM instances in the specified zone.", |
| 313 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/instances/{instancesId}/vulnerabilityReports", |
| 314 | "httpMethod": "GET", |
| 315 | "id": "osconfig.projects.locations.instances.vulnerabilityReports.list", |
| 316 | "parameterOrder": [ |
| 317 | "parent" |
| 318 | ], |
| 319 | "parameters": { |
| 320 | "filter": { |
| 321 | "description": "If provided, this field specifies the criteria that must be met by a `vulnerabilityReport` API resource to be included in the response.", |
| 322 | "location": "query", |
| 323 | "type": "string" |
| 324 | }, |
| 325 | "pageSize": { |
| 326 | "description": "The maximum number of results to return.", |
| 327 | "format": "int32", |
| 328 | "location": "query", |
| 329 | "type": "integer" |
| 330 | }, |
| 331 | "pageToken": { |
| 332 | "description": "A pagination token returned from a previous call to `ListVulnerabilityReports` that indicates where this listing should continue from.", |
| 333 | "location": "query", |
| 334 | "type": "string" |
| 335 | }, |
| 336 | "parent": { |
| 337 | "description": "Required. The parent resource name. Format: `projects/{project}/locations/{location}/instances/{instance}` For `{project}`, either `project-number` or `project-id` can be provided. For `{instance}`, only `-` character is supported to list vulnerability reports across VMs.", |
| 338 | "location": "path", |
| 339 | "pattern": "^projects/[^/]+/locations/[^/]+/instances/[^/]+$", |
| 340 | "required": true, |
| 341 | "type": "string" |
| 342 | } |
| 343 | }, |
| 344 | "path": "v1alpha/{+parent}/vulnerabilityReports", |
| 345 | "response": { |
| 346 | "$ref": "ListVulnerabilityReportsResponse" |
| 347 | }, |
| 348 | "scopes": [ |
| 349 | "https://www.googleapis.com/auth/cloud-platform" |
| 350 | ] |
| 351 | } |
| 352 | } |
| 353 | } |
| 354 | } |
| 355 | }, |
| 356 | "osPolicyAssignments": { |
| 357 | "methods": { |
| 358 | "create": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 359 | "description": "Create an OS policy assignment. This method also creates the first revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 360 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments", |
| 361 | "httpMethod": "POST", |
| 362 | "id": "osconfig.projects.locations.osPolicyAssignments.create", |
| 363 | "parameterOrder": [ |
| 364 | "parent" |
| 365 | ], |
| 366 | "parameters": { |
| 367 | "osPolicyAssignmentId": { |
| 368 | "description": "Required. The logical name of the OS policy assignment in the project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the project.", |
| 369 | "location": "query", |
| 370 | "type": "string" |
| 371 | }, |
| 372 | "parent": { |
| 373 | "description": "Required. The parent resource name in the form: projects/{project}/locations/{location}", |
| 374 | "location": "path", |
| 375 | "pattern": "^projects/[^/]+/locations/[^/]+$", |
| 376 | "required": true, |
| 377 | "type": "string" |
| 378 | } |
| 379 | }, |
| 380 | "path": "v1alpha/{+parent}/osPolicyAssignments", |
| 381 | "request": { |
| 382 | "$ref": "OSPolicyAssignment" |
| 383 | }, |
| 384 | "response": { |
| 385 | "$ref": "Operation" |
| 386 | }, |
| 387 | "scopes": [ |
| 388 | "https://www.googleapis.com/auth/cloud-platform" |
| 389 | ] |
| 390 | }, |
| 391 | "delete": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 392 | "description": "Delete the OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. If the LRO completes and is not cancelled, all revisions associated with the OS policy assignment are deleted. For more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 393 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments/{osPolicyAssignmentsId}", |
| 394 | "httpMethod": "DELETE", |
| 395 | "id": "osconfig.projects.locations.osPolicyAssignments.delete", |
| 396 | "parameterOrder": [ |
| 397 | "name" |
| 398 | ], |
| 399 | "parameters": { |
| 400 | "name": { |
| 401 | "description": "Required. The name of the OS policy assignment to be deleted", |
| 402 | "location": "path", |
| 403 | "pattern": "^projects/[^/]+/locations/[^/]+/osPolicyAssignments/[^/]+$", |
| 404 | "required": true, |
| 405 | "type": "string" |
| 406 | } |
| 407 | }, |
| 408 | "path": "v1alpha/{+name}", |
| 409 | "response": { |
| 410 | "$ref": "Operation" |
| 411 | }, |
| 412 | "scopes": [ |
| 413 | "https://www.googleapis.com/auth/cloud-platform" |
| 414 | ] |
| 415 | }, |
| 416 | "get": { |
| 417 | "description": "Retrieve an existing OS policy assignment. This method always returns the latest revision. In order to retrieve a previous revision of the assignment, also provide the revision ID in the `name` parameter.", |
| 418 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments/{osPolicyAssignmentsId}", |
| 419 | "httpMethod": "GET", |
| 420 | "id": "osconfig.projects.locations.osPolicyAssignments.get", |
| 421 | "parameterOrder": [ |
| 422 | "name" |
| 423 | ], |
| 424 | "parameters": { |
| 425 | "name": { |
| 426 | "description": "Required. The resource name of OS policy assignment. Format: `projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId}`", |
| 427 | "location": "path", |
| 428 | "pattern": "^projects/[^/]+/locations/[^/]+/osPolicyAssignments/[^/]+$", |
| 429 | "required": true, |
| 430 | "type": "string" |
| 431 | } |
| 432 | }, |
| 433 | "path": "v1alpha/{+name}", |
| 434 | "response": { |
| 435 | "$ref": "OSPolicyAssignment" |
| 436 | }, |
| 437 | "scopes": [ |
| 438 | "https://www.googleapis.com/auth/cloud-platform" |
| 439 | ] |
| 440 | }, |
| 441 | "list": { |
| 442 | "description": "List the OS policy assignments under the parent resource. For each OS policy assignment, the latest revision is returned.", |
| 443 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments", |
| 444 | "httpMethod": "GET", |
| 445 | "id": "osconfig.projects.locations.osPolicyAssignments.list", |
| 446 | "parameterOrder": [ |
| 447 | "parent" |
| 448 | ], |
| 449 | "parameters": { |
| 450 | "pageSize": { |
| 451 | "description": "The maximum number of assignments to return.", |
| 452 | "format": "int32", |
| 453 | "location": "query", |
| 454 | "type": "integer" |
| 455 | }, |
| 456 | "pageToken": { |
| 457 | "description": "A pagination token returned from a previous call to `ListOSPolicyAssignments` that indicates where this listing should continue from.", |
| 458 | "location": "query", |
| 459 | "type": "string" |
| 460 | }, |
| 461 | "parent": { |
| 462 | "description": "Required. The parent resource name.", |
| 463 | "location": "path", |
| 464 | "pattern": "^projects/[^/]+/locations/[^/]+$", |
| 465 | "required": true, |
| 466 | "type": "string" |
| 467 | } |
| 468 | }, |
| 469 | "path": "v1alpha/{+parent}/osPolicyAssignments", |
| 470 | "response": { |
| 471 | "$ref": "ListOSPolicyAssignmentsResponse" |
| 472 | }, |
| 473 | "scopes": [ |
| 474 | "https://www.googleapis.com/auth/cloud-platform" |
| 475 | ] |
| 476 | }, |
| 477 | "listRevisions": { |
| 478 | "description": "List the OS policy assignment revisions for a given OS policy assignment.", |
| 479 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments/{osPolicyAssignmentsId}:listRevisions", |
| 480 | "httpMethod": "GET", |
| 481 | "id": "osconfig.projects.locations.osPolicyAssignments.listRevisions", |
| 482 | "parameterOrder": [ |
| 483 | "name" |
| 484 | ], |
| 485 | "parameters": { |
| 486 | "name": { |
| 487 | "description": "Required. The name of the OS policy assignment to list revisions for.", |
| 488 | "location": "path", |
| 489 | "pattern": "^projects/[^/]+/locations/[^/]+/osPolicyAssignments/[^/]+$", |
| 490 | "required": true, |
| 491 | "type": "string" |
| 492 | }, |
| 493 | "pageSize": { |
| 494 | "description": "The maximum number of revisions to return.", |
| 495 | "format": "int32", |
| 496 | "location": "query", |
| 497 | "type": "integer" |
| 498 | }, |
| 499 | "pageToken": { |
| 500 | "description": "A pagination token returned from a previous call to `ListOSPolicyAssignmentRevisions` that indicates where this listing should continue from.", |
| 501 | "location": "query", |
| 502 | "type": "string" |
| 503 | } |
| 504 | }, |
| 505 | "path": "v1alpha/{+name}:listRevisions", |
| 506 | "response": { |
| 507 | "$ref": "ListOSPolicyAssignmentRevisionsResponse" |
| 508 | }, |
| 509 | "scopes": [ |
| 510 | "https://www.googleapis.com/auth/cloud-platform" |
| 511 | ] |
| 512 | }, |
| 513 | "patch": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 514 | "description": "Update an existing OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 515 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments/{osPolicyAssignmentsId}", |
| 516 | "httpMethod": "PATCH", |
| 517 | "id": "osconfig.projects.locations.osPolicyAssignments.patch", |
| 518 | "parameterOrder": [ |
| 519 | "name" |
| 520 | ], |
| 521 | "parameters": { |
| 522 | "name": { |
| 523 | "description": "Resource name. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}` This field is ignored when you create an OS policy assignment.", |
| 524 | "location": "path", |
| 525 | "pattern": "^projects/[^/]+/locations/[^/]+/osPolicyAssignments/[^/]+$", |
| 526 | "required": true, |
| 527 | "type": "string" |
| 528 | }, |
| 529 | "updateMask": { |
| 530 | "description": "Optional. Field mask that controls which fields of the assignment should be updated.", |
| 531 | "format": "google-fieldmask", |
| 532 | "location": "query", |
| 533 | "type": "string" |
| 534 | } |
| 535 | }, |
| 536 | "path": "v1alpha/{+name}", |
| 537 | "request": { |
| 538 | "$ref": "OSPolicyAssignment" |
| 539 | }, |
| 540 | "response": { |
| 541 | "$ref": "Operation" |
| 542 | }, |
| 543 | "scopes": [ |
| 544 | "https://www.googleapis.com/auth/cloud-platform" |
| 545 | ] |
| 546 | } |
| 547 | }, |
| 548 | "resources": { |
| 549 | "operations": { |
| 550 | "methods": { |
| 551 | "cancel": { |
| 552 | "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", |
| 553 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments/{osPolicyAssignmentsId}/operations/{operationsId}:cancel", |
| 554 | "httpMethod": "POST", |
| 555 | "id": "osconfig.projects.locations.osPolicyAssignments.operations.cancel", |
| 556 | "parameterOrder": [ |
| 557 | "name" |
| 558 | ], |
| 559 | "parameters": { |
| 560 | "name": { |
| 561 | "description": "The name of the operation resource to be cancelled.", |
| 562 | "location": "path", |
| 563 | "pattern": "^projects/[^/]+/locations/[^/]+/osPolicyAssignments/[^/]+/operations/[^/]+$", |
| 564 | "required": true, |
| 565 | "type": "string" |
| 566 | } |
| 567 | }, |
| 568 | "path": "v1alpha/{+name}:cancel", |
| 569 | "request": { |
| 570 | "$ref": "CancelOperationRequest" |
| 571 | }, |
| 572 | "response": { |
| 573 | "$ref": "Empty" |
| 574 | }, |
| 575 | "scopes": [ |
| 576 | "https://www.googleapis.com/auth/cloud-platform" |
| 577 | ] |
| 578 | }, |
| 579 | "get": { |
| 580 | "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", |
| 581 | "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments/{osPolicyAssignmentsId}/operations/{operationsId}", |
| 582 | "httpMethod": "GET", |
| 583 | "id": "osconfig.projects.locations.osPolicyAssignments.operations.get", |
| 584 | "parameterOrder": [ |
| 585 | "name" |
| 586 | ], |
| 587 | "parameters": { |
| 588 | "name": { |
| 589 | "description": "The name of the operation resource.", |
| 590 | "location": "path", |
| 591 | "pattern": "^projects/[^/]+/locations/[^/]+/osPolicyAssignments/[^/]+/operations/[^/]+$", |
| 592 | "required": true, |
| 593 | "type": "string" |
| 594 | } |
| 595 | }, |
| 596 | "path": "v1alpha/{+name}", |
| 597 | "response": { |
| 598 | "$ref": "Operation" |
| 599 | }, |
| 600 | "scopes": [ |
| 601 | "https://www.googleapis.com/auth/cloud-platform" |
| 602 | ] |
| 603 | } |
| 604 | } |
| 605 | } |
| 606 | } |
| 607 | } |
| 608 | } |
| 609 | } |
| 610 | } |
| 611 | } |
| 612 | }, |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 613 | "revision": "20210507", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 614 | "rootUrl": "https://osconfig.googleapis.com/", |
| 615 | "schemas": { |
| 616 | "CVSSv3": { |
| 617 | "description": "Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document", |
| 618 | "id": "CVSSv3", |
| 619 | "properties": { |
| 620 | "attackComplexity": { |
| 621 | "description": "This metric describes the conditions beyond the attacker's control that must exist in order to exploit the vulnerability.", |
| 622 | "enum": [ |
| 623 | "ATTACK_COMPLEXITY_UNSPECIFIED", |
| 624 | "ATTACK_COMPLEXITY_LOW", |
| 625 | "ATTACK_COMPLEXITY_HIGH" |
| 626 | ], |
| 627 | "enumDescriptions": [ |
| 628 | "Invalid value.", |
| 629 | "Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success when attacking the vulnerable component.", |
| 630 | "A successful attack depends on conditions beyond the attacker's control. That is, a successful attack cannot be accomplished at will, but requires the attacker to invest in some measurable amount of effort in preparation or execution against the vulnerable component before a successful attack can be expected." |
| 631 | ], |
| 632 | "type": "string" |
| 633 | }, |
| 634 | "attackVector": { |
| 635 | "description": "This metric reflects the context by which vulnerability exploitation is possible.", |
| 636 | "enum": [ |
| 637 | "ATTACK_VECTOR_UNSPECIFIED", |
| 638 | "ATTACK_VECTOR_NETWORK", |
| 639 | "ATTACK_VECTOR_ADJACENT", |
| 640 | "ATTACK_VECTOR_LOCAL", |
| 641 | "ATTACK_VECTOR_PHYSICAL" |
| 642 | ], |
| 643 | "enumDescriptions": [ |
| 644 | "Invalid value.", |
| 645 | "The vulnerable component is bound to the network stack and the set of possible attackers extends beyond the other options listed below, up to and including the entire Internet.", |
| 646 | "The vulnerable component is bound to the network stack, but the attack is limited at the protocol level to a logically adjacent topology.", |
| 647 | "The vulnerable component is not bound to the network stack and the attacker's path is via read/write/execute capabilities.", |
| 648 | "The attack requires the attacker to physically touch or manipulate the vulnerable component." |
| 649 | ], |
| 650 | "type": "string" |
| 651 | }, |
| 652 | "availabilityImpact": { |
| 653 | "description": "This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability.", |
| 654 | "enum": [ |
| 655 | "IMPACT_UNSPECIFIED", |
| 656 | "IMPACT_HIGH", |
| 657 | "IMPACT_LOW", |
| 658 | "IMPACT_NONE" |
| 659 | ], |
| 660 | "enumDescriptions": [ |
| 661 | "Invalid value.", |
| 662 | "High impact.", |
| 663 | "Low impact.", |
| 664 | "No impact." |
| 665 | ], |
| 666 | "type": "string" |
| 667 | }, |
| 668 | "baseScore": { |
| 669 | "description": "The base score is a function of the base metric scores. https://www.first.org/cvss/specification-document#Base-Metrics", |
| 670 | "format": "float", |
| 671 | "type": "number" |
| 672 | }, |
| 673 | "confidentialityImpact": { |
| 674 | "description": "This metric measures the impact to the confidentiality of the information resources managed by a software component due to a successfully exploited vulnerability.", |
| 675 | "enum": [ |
| 676 | "IMPACT_UNSPECIFIED", |
| 677 | "IMPACT_HIGH", |
| 678 | "IMPACT_LOW", |
| 679 | "IMPACT_NONE" |
| 680 | ], |
| 681 | "enumDescriptions": [ |
| 682 | "Invalid value.", |
| 683 | "High impact.", |
| 684 | "Low impact.", |
| 685 | "No impact." |
| 686 | ], |
| 687 | "type": "string" |
| 688 | }, |
| 689 | "exploitabilityScore": { |
| 690 | "description": "The Exploitability sub-score equation is derived from the Base Exploitability metrics. https://www.first.org/cvss/specification-document#2-1-Exploitability-Metrics", |
| 691 | "format": "float", |
| 692 | "type": "number" |
| 693 | }, |
| 694 | "impactScore": { |
| 695 | "description": "The Impact sub-score equation is derived from the Base Impact metrics.", |
| 696 | "format": "float", |
| 697 | "type": "number" |
| 698 | }, |
| 699 | "integrityImpact": { |
| 700 | "description": "This metric measures the impact to integrity of a successfully exploited vulnerability.", |
| 701 | "enum": [ |
| 702 | "IMPACT_UNSPECIFIED", |
| 703 | "IMPACT_HIGH", |
| 704 | "IMPACT_LOW", |
| 705 | "IMPACT_NONE" |
| 706 | ], |
| 707 | "enumDescriptions": [ |
| 708 | "Invalid value.", |
| 709 | "High impact.", |
| 710 | "Low impact.", |
| 711 | "No impact." |
| 712 | ], |
| 713 | "type": "string" |
| 714 | }, |
| 715 | "privilegesRequired": { |
| 716 | "description": "This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability.", |
| 717 | "enum": [ |
| 718 | "PRIVILEGES_REQUIRED_UNSPECIFIED", |
| 719 | "PRIVILEGES_REQUIRED_NONE", |
| 720 | "PRIVILEGES_REQUIRED_LOW", |
| 721 | "PRIVILEGES_REQUIRED_HIGH" |
| 722 | ], |
| 723 | "enumDescriptions": [ |
| 724 | "Invalid value.", |
| 725 | "The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files of the vulnerable system to carry out an attack.", |
| 726 | "The attacker requires privileges that provide basic user capabilities that could normally affect only settings and files owned by a user. Alternatively, an attacker with Low privileges has the ability to access only non-sensitive resources.", |
| 727 | "The attacker requires privileges that provide significant (e.g., administrative) control over the vulnerable component allowing access to component-wide settings and files." |
| 728 | ], |
| 729 | "type": "string" |
| 730 | }, |
| 731 | "scope": { |
| 732 | "description": "The Scope metric captures whether a vulnerability in one vulnerable component impacts resources in components beyond its security scope.", |
| 733 | "enum": [ |
| 734 | "SCOPE_UNSPECIFIED", |
| 735 | "SCOPE_UNCHANGED", |
| 736 | "SCOPE_CHANGED" |
| 737 | ], |
| 738 | "enumDescriptions": [ |
| 739 | "Invalid value.", |
| 740 | "An exploited vulnerability can only affect resources managed by the same security authority.", |
| 741 | "An exploited vulnerability can affect resources beyond the security scope managed by the security authority of the vulnerable component." |
| 742 | ], |
| 743 | "type": "string" |
| 744 | }, |
| 745 | "userInteraction": { |
| 746 | "description": "This metric captures the requirement for a human user, other than the attacker, to participate in the successful compromise of the vulnerable component.", |
| 747 | "enum": [ |
| 748 | "USER_INTERACTION_UNSPECIFIED", |
| 749 | "USER_INTERACTION_NONE", |
| 750 | "USER_INTERACTION_REQUIRED" |
| 751 | ], |
| 752 | "enumDescriptions": [ |
| 753 | "Invalid value.", |
| 754 | "The vulnerable system can be exploited without interaction from any user.", |
| 755 | "Successful exploitation of this vulnerability requires a user to take some action before the vulnerability can be exploited." |
| 756 | ], |
| 757 | "type": "string" |
| 758 | } |
| 759 | }, |
| 760 | "type": "object" |
| 761 | }, |
| 762 | "CancelOperationRequest": { |
| 763 | "description": "The request message for Operations.CancelOperation.", |
| 764 | "id": "CancelOperationRequest", |
| 765 | "properties": {}, |
| 766 | "type": "object" |
| 767 | }, |
| 768 | "Empty": { |
| 769 | "description": "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 `{}`.", |
| 770 | "id": "Empty", |
| 771 | "properties": {}, |
| 772 | "type": "object" |
| 773 | }, |
| 774 | "FixedOrPercent": { |
| 775 | "description": "Message encapsulating a value that can be either absolute (\"fixed\") or relative (\"percent\") to a value.", |
| 776 | "id": "FixedOrPercent", |
| 777 | "properties": { |
| 778 | "fixed": { |
| 779 | "description": "Specifies a fixed value.", |
| 780 | "format": "int32", |
| 781 | "type": "integer" |
| 782 | }, |
| 783 | "percent": { |
| 784 | "description": "Specifies the relative value defined as a percentage, which will be multiplied by a reference value.", |
| 785 | "format": "int32", |
| 786 | "type": "integer" |
| 787 | } |
| 788 | }, |
| 789 | "type": "object" |
| 790 | }, |
| 791 | "InstanceOSPoliciesCompliance": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 792 | "description": "This API resource represents the OS policies compliance data for a Compute Engine virtual machine (VM) instance at a given point in time. A Compute Engine VM can have multiple OS policy assignments, and each assignment can have multiple OS policies. As a result, multiple OS policies could be applied to a single VM. You can use this API resource to determine both the compliance state of your VM as well as the compliance state of an individual OS policy. For more information, see [View compliance](https://cloud.google.com/compute/docs/os-configuration-management/view-compliance).", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 793 | "id": "InstanceOSPoliciesCompliance", |
| 794 | "properties": { |
| 795 | "detailedState": { |
| 796 | "description": "Output only. Detailed compliance state of the VM. This field is populated only when compliance state is `UNKNOWN`. It may contain one of the following values: * `no-compliance-data`: Compliance data is not available for this VM. * `no-agent-detected`: OS Config agent is not detected for this VM. * `config-not-supported-by-agent`: The version of the OS Config agent running on this VM does not support configuration management. * `inactive`: VM is not running. * `internal-service-errors`: There were internal service errors encountered while enforcing compliance. * `agent-errors`: OS config agent encountered errors while enforcing compliance.", |
| 797 | "readOnly": true, |
| 798 | "type": "string" |
| 799 | }, |
| 800 | "detailedStateReason": { |
| 801 | "description": "Output only. The reason for the `detailed_state` of the VM (if any).", |
| 802 | "readOnly": true, |
| 803 | "type": "string" |
| 804 | }, |
| 805 | "instance": { |
| 806 | "description": "Output only. The Compute Engine VM instance name.", |
| 807 | "readOnly": true, |
| 808 | "type": "string" |
| 809 | }, |
| 810 | "lastComplianceCheckTime": { |
| 811 | "description": "Output only. Timestamp of the last compliance check for the VM.", |
| 812 | "format": "google-datetime", |
| 813 | "readOnly": true, |
| 814 | "type": "string" |
| 815 | }, |
| 816 | "lastComplianceRunId": { |
| 817 | "description": "Output only. Unique identifier for the last compliance run. This id will be logged by the OS config agent during a compliance run and can be used for debugging and tracing purpose.", |
| 818 | "readOnly": true, |
| 819 | "type": "string" |
| 820 | }, |
| 821 | "name": { |
| 822 | "description": "Output only. The `InstanceOSPoliciesCompliance` API resource name. Format: `projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}`", |
| 823 | "readOnly": true, |
| 824 | "type": "string" |
| 825 | }, |
| 826 | "osPolicyCompliances": { |
| 827 | "description": "Output only. Compliance data for each `OSPolicy` that is applied to the VM.", |
| 828 | "items": { |
| 829 | "$ref": "InstanceOSPoliciesComplianceOSPolicyCompliance" |
| 830 | }, |
| 831 | "readOnly": true, |
| 832 | "type": "array" |
| 833 | }, |
| 834 | "state": { |
| 835 | "description": "Output only. Compliance state of the VM.", |
| 836 | "enum": [ |
| 837 | "OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED", |
| 838 | "COMPLIANT", |
| 839 | "NON_COMPLIANT", |
| 840 | "UNKNOWN", |
| 841 | "NO_OS_POLICIES_APPLICABLE" |
| 842 | ], |
| 843 | "enumDescriptions": [ |
| 844 | "Default value. This value is unused.", |
| 845 | "Compliant state.", |
| 846 | "Non-compliant state", |
| 847 | "Unknown compliance state.", |
| 848 | "No applicable OS policies were found for the instance. This state is only applicable to the instance." |
| 849 | ], |
| 850 | "readOnly": true, |
| 851 | "type": "string" |
| 852 | } |
| 853 | }, |
| 854 | "type": "object" |
| 855 | }, |
| 856 | "InstanceOSPoliciesComplianceOSPolicyCompliance": { |
| 857 | "description": "Compliance data for an OS policy", |
| 858 | "id": "InstanceOSPoliciesComplianceOSPolicyCompliance", |
| 859 | "properties": { |
| 860 | "osPolicyAssignment": { |
| 861 | "description": "Reference to the `OSPolicyAssignment` API resource that the `OSPolicy` belongs to. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`", |
| 862 | "type": "string" |
| 863 | }, |
| 864 | "osPolicyId": { |
| 865 | "description": "The OS policy id", |
| 866 | "type": "string" |
| 867 | }, |
| 868 | "osPolicyResourceCompliances": { |
| 869 | "description": "Compliance data for each `OSPolicyResource` that is applied to the VM.", |
| 870 | "items": { |
| 871 | "$ref": "OSPolicyResourceCompliance" |
| 872 | }, |
| 873 | "type": "array" |
| 874 | }, |
| 875 | "state": { |
| 876 | "description": "Compliance state of the OS policy.", |
| 877 | "enum": [ |
| 878 | "OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED", |
| 879 | "COMPLIANT", |
| 880 | "NON_COMPLIANT", |
| 881 | "UNKNOWN", |
| 882 | "NO_OS_POLICIES_APPLICABLE" |
| 883 | ], |
| 884 | "enumDescriptions": [ |
| 885 | "Default value. This value is unused.", |
| 886 | "Compliant state.", |
| 887 | "Non-compliant state", |
| 888 | "Unknown compliance state.", |
| 889 | "No applicable OS policies were found for the instance. This state is only applicable to the instance." |
| 890 | ], |
| 891 | "type": "string" |
| 892 | } |
| 893 | }, |
| 894 | "type": "object" |
| 895 | }, |
| 896 | "Inventory": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 897 | "description": "This API resource represents the available inventory data for a Compute Engine virtual machine (VM) instance at a given point in time. You can use this API resource to determine the inventory data of your VM. For more information, see [Information provided by OS inventory management](https://cloud.google.com/compute/docs/instances/os-inventory-management#data-collected).", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 898 | "id": "Inventory", |
| 899 | "properties": { |
| 900 | "items": { |
| 901 | "additionalProperties": { |
| 902 | "$ref": "InventoryItem" |
| 903 | }, |
| 904 | "description": "Output only. Inventory items related to the VM keyed by an opaque unique identifier for each inventory item. The identifier is unique to each distinct and addressable inventory item and will change, when there is a new package version.", |
| 905 | "readOnly": true, |
| 906 | "type": "object" |
| 907 | }, |
| 908 | "name": { |
| 909 | "description": "Output only. The `Inventory` API resource name. Format: `projects/{project_number}/locations/{location}/instances/{instance_id}/inventory`", |
| 910 | "readOnly": true, |
| 911 | "type": "string" |
| 912 | }, |
| 913 | "osInfo": { |
| 914 | "$ref": "InventoryOsInfo", |
| 915 | "description": "Output only. Base level operating system information for the VM.", |
| 916 | "readOnly": true |
| 917 | }, |
| 918 | "updateTime": { |
| 919 | "description": "Output only. Timestamp of the last reported inventory for the VM.", |
| 920 | "format": "google-datetime", |
| 921 | "readOnly": true, |
| 922 | "type": "string" |
| 923 | } |
| 924 | }, |
| 925 | "type": "object" |
| 926 | }, |
| 927 | "InventoryItem": { |
| 928 | "description": "A single piece of inventory on a VM.", |
| 929 | "id": "InventoryItem", |
| 930 | "properties": { |
| 931 | "availablePackage": { |
| 932 | "$ref": "InventorySoftwarePackage", |
| 933 | "description": "Software package available to be installed on the VM instance." |
| 934 | }, |
| 935 | "createTime": { |
| 936 | "description": "When this inventory item was first detected.", |
| 937 | "format": "google-datetime", |
| 938 | "type": "string" |
| 939 | }, |
| 940 | "id": { |
| 941 | "description": "Identifier for this item, unique across items for this VM.", |
| 942 | "type": "string" |
| 943 | }, |
| 944 | "installedPackage": { |
| 945 | "$ref": "InventorySoftwarePackage", |
| 946 | "description": "Software package present on the VM instance." |
| 947 | }, |
| 948 | "originType": { |
| 949 | "description": "The origin of this inventory item.", |
| 950 | "enum": [ |
| 951 | "ORIGIN_TYPE_UNSPECIFIED", |
| 952 | "INVENTORY_REPORT" |
| 953 | ], |
| 954 | "enumDescriptions": [ |
| 955 | "Invalid. An origin type must be specified.", |
| 956 | "This inventory item was discovered as the result of the agent reporting inventory via the reporting API." |
| 957 | ], |
| 958 | "type": "string" |
| 959 | }, |
| 960 | "type": { |
| 961 | "description": "The specific type of inventory, correlating to its specific details.", |
| 962 | "enum": [ |
| 963 | "TYPE_UNSPECIFIED", |
| 964 | "INSTALLED_PACKAGE", |
| 965 | "AVAILABLE_PACKAGE" |
| 966 | ], |
| 967 | "enumDescriptions": [ |
| 968 | "Invalid. An type must be specified.", |
| 969 | "This represents a package that is installed on the VM.", |
| 970 | "This represents an update that is available for a package." |
| 971 | ], |
| 972 | "type": "string" |
| 973 | }, |
| 974 | "updateTime": { |
| 975 | "description": "When this inventory item was last modified.", |
| 976 | "format": "google-datetime", |
| 977 | "type": "string" |
| 978 | } |
| 979 | }, |
| 980 | "type": "object" |
| 981 | }, |
| 982 | "InventoryOsInfo": { |
| 983 | "description": "Operating system information for the VM.", |
| 984 | "id": "InventoryOsInfo", |
| 985 | "properties": { |
| 986 | "architecture": { |
| 987 | "description": "The system architecture of the operating system.", |
| 988 | "type": "string" |
| 989 | }, |
| 990 | "hostname": { |
| 991 | "description": "The VM hostname.", |
| 992 | "type": "string" |
| 993 | }, |
| 994 | "kernelRelease": { |
| 995 | "description": "The kernel release of the operating system.", |
| 996 | "type": "string" |
| 997 | }, |
| 998 | "kernelVersion": { |
| 999 | "description": "The kernel version of the operating system.", |
| 1000 | "type": "string" |
| 1001 | }, |
| 1002 | "longName": { |
| 1003 | "description": "The operating system long name. For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 Datacenter'.", |
| 1004 | "type": "string" |
| 1005 | }, |
| 1006 | "osconfigAgentVersion": { |
| 1007 | "description": "The current version of the OS Config agent running on the VM.", |
| 1008 | "type": "string" |
| 1009 | }, |
| 1010 | "shortName": { |
| 1011 | "description": "The operating system short name. For example, 'windows' or 'debian'.", |
| 1012 | "type": "string" |
| 1013 | }, |
| 1014 | "version": { |
| 1015 | "description": "The version of the operating system.", |
| 1016 | "type": "string" |
| 1017 | } |
| 1018 | }, |
| 1019 | "type": "object" |
| 1020 | }, |
| 1021 | "InventorySoftwarePackage": { |
| 1022 | "description": "Software package information of the operating system.", |
| 1023 | "id": "InventorySoftwarePackage", |
| 1024 | "properties": { |
| 1025 | "aptPackage": { |
| 1026 | "$ref": "InventoryVersionedPackage", |
| 1027 | "description": "Details of an APT package. For details about the apt package manager, see https://wiki.debian.org/Apt." |
| 1028 | }, |
| 1029 | "cosPackage": { |
| 1030 | "$ref": "InventoryVersionedPackage", |
| 1031 | "description": "Details of a COS package." |
| 1032 | }, |
| 1033 | "googetPackage": { |
| 1034 | "$ref": "InventoryVersionedPackage", |
| 1035 | "description": "Details of a Googet package. For details about the googet package manager, see https://github.com/google/googet." |
| 1036 | }, |
| 1037 | "qfePackage": { |
| 1038 | "$ref": "InventoryWindowsQuickFixEngineeringPackage", |
| 1039 | "description": "Details of a Windows Quick Fix engineering package. See https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering for info in Windows Quick Fix Engineering." |
| 1040 | }, |
| 1041 | "wuaPackage": { |
| 1042 | "$ref": "InventoryWindowsUpdatePackage", |
| 1043 | "description": "Details of a Windows Update package. See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for information about Windows Update." |
| 1044 | }, |
| 1045 | "yumPackage": { |
| 1046 | "$ref": "InventoryVersionedPackage", |
| 1047 | "description": "Yum package info. For details about the yum package manager, see https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum." |
| 1048 | }, |
| 1049 | "zypperPackage": { |
| 1050 | "$ref": "InventoryVersionedPackage", |
| 1051 | "description": "Details of a Zypper package. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual." |
| 1052 | }, |
| 1053 | "zypperPatch": { |
| 1054 | "$ref": "InventoryZypperPatch", |
| 1055 | "description": "Details of a Zypper patch. For details about the Zypper package manager, see https://en.opensuse.org/SDB:Zypper_manual." |
| 1056 | } |
| 1057 | }, |
| 1058 | "type": "object" |
| 1059 | }, |
| 1060 | "InventoryVersionedPackage": { |
| 1061 | "description": "Information related to the a standard versioned package. This includes package info for APT, Yum, Zypper, and Googet package managers.", |
| 1062 | "id": "InventoryVersionedPackage", |
| 1063 | "properties": { |
| 1064 | "architecture": { |
| 1065 | "description": "The system architecture this package is intended for.", |
| 1066 | "type": "string" |
| 1067 | }, |
| 1068 | "packageName": { |
| 1069 | "description": "The name of the package.", |
| 1070 | "type": "string" |
| 1071 | }, |
| 1072 | "version": { |
| 1073 | "description": "The version of the package.", |
| 1074 | "type": "string" |
| 1075 | } |
| 1076 | }, |
| 1077 | "type": "object" |
| 1078 | }, |
| 1079 | "InventoryWindowsQuickFixEngineeringPackage": { |
| 1080 | "description": "Information related to a Quick Fix Engineering package. Fields are taken from Windows QuickFixEngineering Interface and match the source names: https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering", |
| 1081 | "id": "InventoryWindowsQuickFixEngineeringPackage", |
| 1082 | "properties": { |
| 1083 | "caption": { |
| 1084 | "description": "A short textual description of the QFE update.", |
| 1085 | "type": "string" |
| 1086 | }, |
| 1087 | "description": { |
| 1088 | "description": "A textual description of the QFE update.", |
| 1089 | "type": "string" |
| 1090 | }, |
| 1091 | "hotFixId": { |
| 1092 | "description": "Unique identifier associated with a particular QFE update.", |
| 1093 | "type": "string" |
| 1094 | }, |
| 1095 | "installTime": { |
| 1096 | "description": "Date that the QFE update was installed. Mapped from installed_on field.", |
| 1097 | "format": "google-datetime", |
| 1098 | "type": "string" |
| 1099 | } |
| 1100 | }, |
| 1101 | "type": "object" |
| 1102 | }, |
| 1103 | "InventoryWindowsUpdatePackage": { |
| 1104 | "description": "Details related to a Windows Update package. Field data and names are taken from Windows Update API IUpdate Interface: https://docs.microsoft.com/en-us/windows/win32/api/_wua/ Descriptive fields like title, and description are localized based on the locale of the VM being updated.", |
| 1105 | "id": "InventoryWindowsUpdatePackage", |
| 1106 | "properties": { |
| 1107 | "categories": { |
| 1108 | "description": "The categories that are associated with this update package.", |
| 1109 | "items": { |
| 1110 | "$ref": "InventoryWindowsUpdatePackageWindowsUpdateCategory" |
| 1111 | }, |
| 1112 | "type": "array" |
| 1113 | }, |
| 1114 | "description": { |
| 1115 | "description": "The localized description of the update package.", |
| 1116 | "type": "string" |
| 1117 | }, |
| 1118 | "kbArticleIds": { |
| 1119 | "description": "A collection of Microsoft Knowledge Base article IDs that are associated with the update package.", |
| 1120 | "items": { |
| 1121 | "type": "string" |
| 1122 | }, |
| 1123 | "type": "array" |
| 1124 | }, |
| 1125 | "lastDeploymentChangeTime": { |
| 1126 | "description": "The last published date of the update, in (UTC) date and time.", |
| 1127 | "format": "google-datetime", |
| 1128 | "type": "string" |
| 1129 | }, |
| 1130 | "moreInfoUrls": { |
| 1131 | "description": "A collection of URLs that provide more information about the update package.", |
| 1132 | "items": { |
| 1133 | "type": "string" |
| 1134 | }, |
| 1135 | "type": "array" |
| 1136 | }, |
| 1137 | "revisionNumber": { |
| 1138 | "description": "The revision number of this update package.", |
| 1139 | "format": "int32", |
| 1140 | "type": "integer" |
| 1141 | }, |
| 1142 | "supportUrl": { |
| 1143 | "description": "A hyperlink to the language-specific support information for the update.", |
| 1144 | "type": "string" |
| 1145 | }, |
| 1146 | "title": { |
| 1147 | "description": "The localized title of the update package.", |
| 1148 | "type": "string" |
| 1149 | }, |
| 1150 | "updateId": { |
| 1151 | "description": "Gets the identifier of an update package. Stays the same across revisions.", |
| 1152 | "type": "string" |
| 1153 | } |
| 1154 | }, |
| 1155 | "type": "object" |
| 1156 | }, |
| 1157 | "InventoryWindowsUpdatePackageWindowsUpdateCategory": { |
| 1158 | "description": "Categories specified by the Windows Update.", |
| 1159 | "id": "InventoryWindowsUpdatePackageWindowsUpdateCategory", |
| 1160 | "properties": { |
| 1161 | "id": { |
| 1162 | "description": "The identifier of the windows update category.", |
| 1163 | "type": "string" |
| 1164 | }, |
| 1165 | "name": { |
| 1166 | "description": "The name of the windows update category.", |
| 1167 | "type": "string" |
| 1168 | } |
| 1169 | }, |
| 1170 | "type": "object" |
| 1171 | }, |
| 1172 | "InventoryZypperPatch": { |
| 1173 | "description": "Details related to a Zypper Patch.", |
| 1174 | "id": "InventoryZypperPatch", |
| 1175 | "properties": { |
| 1176 | "category": { |
| 1177 | "description": "The category of the patch.", |
| 1178 | "type": "string" |
| 1179 | }, |
| 1180 | "patchName": { |
| 1181 | "description": "The name of the patch.", |
| 1182 | "type": "string" |
| 1183 | }, |
| 1184 | "severity": { |
| 1185 | "description": "The severity specified for this patch", |
| 1186 | "type": "string" |
| 1187 | }, |
| 1188 | "summary": { |
| 1189 | "description": "Any summary information provided about this patch.", |
| 1190 | "type": "string" |
| 1191 | } |
| 1192 | }, |
| 1193 | "type": "object" |
| 1194 | }, |
| 1195 | "ListInstanceOSPoliciesCompliancesResponse": { |
| 1196 | "description": "A response message for listing OS policies compliance data for all Compute Engine VMs in the given location.", |
| 1197 | "id": "ListInstanceOSPoliciesCompliancesResponse", |
| 1198 | "properties": { |
| 1199 | "instanceOsPoliciesCompliances": { |
| 1200 | "description": "List of instance OS policies compliance objects.", |
| 1201 | "items": { |
| 1202 | "$ref": "InstanceOSPoliciesCompliance" |
| 1203 | }, |
| 1204 | "type": "array" |
| 1205 | }, |
| 1206 | "nextPageToken": { |
| 1207 | "description": "The pagination token to retrieve the next page of instance OS policies compliance objects.", |
| 1208 | "type": "string" |
| 1209 | } |
| 1210 | }, |
| 1211 | "type": "object" |
| 1212 | }, |
| 1213 | "ListInventoriesResponse": { |
| 1214 | "description": "A response message for listing inventory data for all VMs in a specified location.", |
| 1215 | "id": "ListInventoriesResponse", |
| 1216 | "properties": { |
| 1217 | "inventories": { |
| 1218 | "description": "List of inventory objects.", |
| 1219 | "items": { |
| 1220 | "$ref": "Inventory" |
| 1221 | }, |
| 1222 | "type": "array" |
| 1223 | }, |
| 1224 | "nextPageToken": { |
| 1225 | "description": "The pagination token to retrieve the next page of inventory objects.", |
| 1226 | "type": "string" |
| 1227 | } |
| 1228 | }, |
| 1229 | "type": "object" |
| 1230 | }, |
| 1231 | "ListOSPolicyAssignmentRevisionsResponse": { |
| 1232 | "description": "A response message for listing all revisions for a OS policy assignment.", |
| 1233 | "id": "ListOSPolicyAssignmentRevisionsResponse", |
| 1234 | "properties": { |
| 1235 | "nextPageToken": { |
| 1236 | "description": "The pagination token to retrieve the next page of OS policy assignment revisions.", |
| 1237 | "type": "string" |
| 1238 | }, |
| 1239 | "osPolicyAssignments": { |
| 1240 | "description": "The OS policy assignment revisions", |
| 1241 | "items": { |
| 1242 | "$ref": "OSPolicyAssignment" |
| 1243 | }, |
| 1244 | "type": "array" |
| 1245 | } |
| 1246 | }, |
| 1247 | "type": "object" |
| 1248 | }, |
| 1249 | "ListOSPolicyAssignmentsResponse": { |
| 1250 | "description": "A response message for listing all assignments under given parent.", |
| 1251 | "id": "ListOSPolicyAssignmentsResponse", |
| 1252 | "properties": { |
| 1253 | "nextPageToken": { |
| 1254 | "description": "The pagination token to retrieve the next page of OS policy assignments.", |
| 1255 | "type": "string" |
| 1256 | }, |
| 1257 | "osPolicyAssignments": { |
| 1258 | "description": "The list of assignments", |
| 1259 | "items": { |
| 1260 | "$ref": "OSPolicyAssignment" |
| 1261 | }, |
| 1262 | "type": "array" |
| 1263 | } |
| 1264 | }, |
| 1265 | "type": "object" |
| 1266 | }, |
| 1267 | "ListVulnerabilityReportsResponse": { |
| 1268 | "description": "A response message for listing vulnerability reports for all VM instances in the specified location.", |
| 1269 | "id": "ListVulnerabilityReportsResponse", |
| 1270 | "properties": { |
| 1271 | "nextPageToken": { |
| 1272 | "description": "The pagination token to retrieve the next page of vulnerabilityReports object.", |
| 1273 | "type": "string" |
| 1274 | }, |
| 1275 | "vulnerabilityReports": { |
| 1276 | "description": "List of vulnerabilityReport objects.", |
| 1277 | "items": { |
| 1278 | "$ref": "VulnerabilityReport" |
| 1279 | }, |
| 1280 | "type": "array" |
| 1281 | } |
| 1282 | }, |
| 1283 | "type": "object" |
| 1284 | }, |
| 1285 | "OSPolicy": { |
| 1286 | "description": "An OS policy defines the desired state configuration for a VM.", |
| 1287 | "id": "OSPolicy", |
| 1288 | "properties": { |
| 1289 | "allowNoResourceGroupMatch": { |
| 1290 | "description": "This flag determines the OS policy compliance status when none of the resource groups within the policy are applicable for a VM. Set this value to `true` if the policy needs to be reported as compliant even if the policy has nothing to validate or enforce.", |
| 1291 | "type": "boolean" |
| 1292 | }, |
| 1293 | "description": { |
| 1294 | "description": "Policy description. Length of the description is limited to 1024 characters.", |
| 1295 | "type": "string" |
| 1296 | }, |
| 1297 | "id": { |
| 1298 | "description": "Required. The id of the OS policy with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the assignment.", |
| 1299 | "type": "string" |
| 1300 | }, |
| 1301 | "mode": { |
| 1302 | "description": "Required. Policy mode", |
| 1303 | "enum": [ |
| 1304 | "MODE_UNSPECIFIED", |
| 1305 | "VALIDATION", |
| 1306 | "ENFORCEMENT" |
| 1307 | ], |
| 1308 | "enumDescriptions": [ |
| 1309 | "Invalid mode", |
| 1310 | "This mode checks if the configuration resources in the policy are in their desired state. No actions are performed if they are not in the desired state. This mode is used for reporting purposes.", |
| 1311 | "This mode checks if the configuration resources in the policy are in their desired state, and if not, enforces the desired state." |
| 1312 | ], |
| 1313 | "type": "string" |
| 1314 | }, |
| 1315 | "resourceGroups": { |
| 1316 | "description": "Required. List of resource groups for the policy. For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag `allow_no_resource_group_match`", |
| 1317 | "items": { |
| 1318 | "$ref": "OSPolicyResourceGroup" |
| 1319 | }, |
| 1320 | "type": "array" |
| 1321 | } |
| 1322 | }, |
| 1323 | "type": "object" |
| 1324 | }, |
| 1325 | "OSPolicyAssignment": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 1326 | "description": "OS policy assignment is an API resource that is used to apply a set of OS policies to a dynamically targeted group of Compute Engine VM instances. An OS policy is used to define the desired state configuration for a Compute Engine VM instance through a set of configuration resources that provide capabilities such as installing or removing software packages, or executing a script. For more information, see [OS policy and OS policy assignment](https://cloud.google.com/compute/docs/os-configuration-management/working-with-os-policies).", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1327 | "id": "OSPolicyAssignment", |
| 1328 | "properties": { |
| 1329 | "baseline": { |
| 1330 | "description": "Output only. Indicates that this revision has been successfully rolled out in this zone and new VMs will be assigned OS policies from this revision. For a given OS policy assignment, there is only one revision with a value of `true` for this field.", |
| 1331 | "readOnly": true, |
| 1332 | "type": "boolean" |
| 1333 | }, |
| 1334 | "deleted": { |
| 1335 | "description": "Output only. Indicates that this revision deletes the OS policy assignment.", |
| 1336 | "readOnly": true, |
| 1337 | "type": "boolean" |
| 1338 | }, |
| 1339 | "description": { |
| 1340 | "description": "OS policy assignment description. Length of the description is limited to 1024 characters.", |
| 1341 | "type": "string" |
| 1342 | }, |
| 1343 | "instanceFilter": { |
| 1344 | "$ref": "OSPolicyAssignmentInstanceFilter", |
| 1345 | "description": "Required. Filter to select VMs." |
| 1346 | }, |
| 1347 | "name": { |
| 1348 | "description": "Resource name. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id}` This field is ignored when you create an OS policy assignment.", |
| 1349 | "type": "string" |
| 1350 | }, |
| 1351 | "osPolicies": { |
| 1352 | "description": "Required. List of OS policies to be applied to the VMs.", |
| 1353 | "items": { |
| 1354 | "$ref": "OSPolicy" |
| 1355 | }, |
| 1356 | "type": "array" |
| 1357 | }, |
| 1358 | "reconciling": { |
| 1359 | "description": "Output only. Indicates that reconciliation is in progress for the revision. This value is `true` when the `rollout_state` is one of: * IN_PROGRESS * CANCELLING", |
| 1360 | "readOnly": true, |
| 1361 | "type": "boolean" |
| 1362 | }, |
| 1363 | "revisionCreateTime": { |
| 1364 | "description": "Output only. The timestamp that the revision was created.", |
| 1365 | "format": "google-datetime", |
| 1366 | "readOnly": true, |
| 1367 | "type": "string" |
| 1368 | }, |
| 1369 | "revisionId": { |
| 1370 | "description": "Output only. The assignment revision ID A new revision is committed whenever a rollout is triggered for a OS policy assignment", |
| 1371 | "readOnly": true, |
| 1372 | "type": "string" |
| 1373 | }, |
| 1374 | "rollout": { |
| 1375 | "$ref": "OSPolicyAssignmentRollout", |
| 1376 | "description": "Required. Rollout to deploy the OS policy assignment. A rollout is triggered in the following situations: 1) OSPolicyAssignment is created. 2) OSPolicyAssignment is updated and the update contains changes to one of the following fields: - instance_filter - os_policies 3) OSPolicyAssignment is deleted." |
| 1377 | }, |
| 1378 | "rolloutState": { |
| 1379 | "description": "Output only. OS policy assignment rollout state", |
| 1380 | "enum": [ |
| 1381 | "ROLLOUT_STATE_UNSPECIFIED", |
| 1382 | "IN_PROGRESS", |
| 1383 | "CANCELLING", |
| 1384 | "CANCELLED", |
| 1385 | "SUCCEEDED" |
| 1386 | ], |
| 1387 | "enumDescriptions": [ |
| 1388 | "Invalid value", |
| 1389 | "The rollout is in progress.", |
| 1390 | "The rollout is being cancelled.", |
| 1391 | "The rollout is cancelled.", |
| 1392 | "The rollout has completed successfully." |
| 1393 | ], |
| 1394 | "readOnly": true, |
| 1395 | "type": "string" |
| 1396 | }, |
| 1397 | "uid": { |
| 1398 | "description": "Output only. Server generated unique id for the OS policy assignment resource.", |
| 1399 | "readOnly": true, |
| 1400 | "type": "string" |
| 1401 | } |
| 1402 | }, |
| 1403 | "type": "object" |
| 1404 | }, |
| 1405 | "OSPolicyAssignmentInstanceFilter": { |
| 1406 | "description": "Message to represent the filters to select VMs for an assignment", |
| 1407 | "id": "OSPolicyAssignmentInstanceFilter", |
| 1408 | "properties": { |
| 1409 | "all": { |
| 1410 | "description": "Target all VMs in the project. If true, no other criteria is permitted.", |
| 1411 | "type": "boolean" |
| 1412 | }, |
| 1413 | "exclusionLabels": { |
| 1414 | "description": "List of label sets used for VM exclusion. If the list has more than one label set, the VM is excluded if any of the label sets are applicable for the VM. This filter is applied last in the filtering chain and therefore a VM is guaranteed to be excluded if it satisfies one of the below label sets.", |
| 1415 | "items": { |
| 1416 | "$ref": "OSPolicyAssignmentLabelSet" |
| 1417 | }, |
| 1418 | "type": "array" |
| 1419 | }, |
| 1420 | "inclusionLabels": { |
| 1421 | "description": "List of label sets used for VM inclusion. If the list has more than one `LabelSet`, the VM is included if any of the label sets are applicable for the VM.", |
| 1422 | "items": { |
| 1423 | "$ref": "OSPolicyAssignmentLabelSet" |
| 1424 | }, |
| 1425 | "type": "array" |
| 1426 | }, |
| 1427 | "osShortNames": { |
| 1428 | "description": "A VM is included if it's OS short name matches with any of the values provided in this list.", |
| 1429 | "items": { |
| 1430 | "type": "string" |
| 1431 | }, |
| 1432 | "type": "array" |
| 1433 | } |
| 1434 | }, |
| 1435 | "type": "object" |
| 1436 | }, |
| 1437 | "OSPolicyAssignmentLabelSet": { |
| 1438 | "description": "Message representing label set. * A label is a key value pair set for a VM. * A LabelSet is a set of labels. * Labels within a LabelSet are ANDed. In other words, a LabelSet is applicable for a VM only if it matches all the labels in the LabelSet. * Example: A LabelSet with 2 labels: `env=prod` and `type=webserver` will only be applicable for those VMs with both labels present.", |
| 1439 | "id": "OSPolicyAssignmentLabelSet", |
| 1440 | "properties": { |
| 1441 | "labels": { |
| 1442 | "additionalProperties": { |
| 1443 | "type": "string" |
| 1444 | }, |
| 1445 | "description": "Labels are identified by key/value pairs in this map. A VM should contain all the key/value pairs specified in this map to be selected.", |
| 1446 | "type": "object" |
| 1447 | } |
| 1448 | }, |
| 1449 | "type": "object" |
| 1450 | }, |
| 1451 | "OSPolicyAssignmentOperationMetadata": { |
| 1452 | "description": "OS policy assignment operation metadata provided by OS policy assignment API methods that return long running operations.", |
| 1453 | "id": "OSPolicyAssignmentOperationMetadata", |
| 1454 | "properties": { |
| 1455 | "apiMethod": { |
| 1456 | "description": "The OS policy assignment API method.", |
| 1457 | "enum": [ |
| 1458 | "API_METHOD_UNSPECIFIED", |
| 1459 | "CREATE", |
| 1460 | "UPDATE", |
| 1461 | "DELETE" |
| 1462 | ], |
| 1463 | "enumDescriptions": [ |
| 1464 | "Invalid value", |
| 1465 | "Create OS policy assignment API method", |
| 1466 | "Update OS policy assignment API method", |
| 1467 | "Delete OS policy assignment API method" |
| 1468 | ], |
| 1469 | "type": "string" |
| 1470 | }, |
| 1471 | "osPolicyAssignment": { |
| 1472 | "description": "Reference to the `OSPolicyAssignment` API resource. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`", |
| 1473 | "type": "string" |
| 1474 | }, |
| 1475 | "rolloutStartTime": { |
| 1476 | "description": "Rollout start time", |
| 1477 | "format": "google-datetime", |
| 1478 | "type": "string" |
| 1479 | }, |
| 1480 | "rolloutState": { |
| 1481 | "description": "State of the rollout", |
| 1482 | "enum": [ |
| 1483 | "ROLLOUT_STATE_UNSPECIFIED", |
| 1484 | "IN_PROGRESS", |
| 1485 | "CANCELLING", |
| 1486 | "CANCELLED", |
| 1487 | "SUCCEEDED" |
| 1488 | ], |
| 1489 | "enumDescriptions": [ |
| 1490 | "Invalid value", |
| 1491 | "The rollout is in progress.", |
| 1492 | "The rollout is being cancelled.", |
| 1493 | "The rollout is cancelled.", |
| 1494 | "The rollout has completed successfully." |
| 1495 | ], |
| 1496 | "type": "string" |
| 1497 | }, |
| 1498 | "rolloutUpdateTime": { |
| 1499 | "description": "Rollout update time", |
| 1500 | "format": "google-datetime", |
| 1501 | "type": "string" |
| 1502 | } |
| 1503 | }, |
| 1504 | "type": "object" |
| 1505 | }, |
| 1506 | "OSPolicyAssignmentRollout": { |
| 1507 | "description": "Message to configure the rollout at the zonal level for the OS policy assignment.", |
| 1508 | "id": "OSPolicyAssignmentRollout", |
| 1509 | "properties": { |
| 1510 | "disruptionBudget": { |
| 1511 | "$ref": "FixedOrPercent", |
| 1512 | "description": "Required. The maximum number (or percentage) of VMs per zone to disrupt at any given moment." |
| 1513 | }, |
| 1514 | "minWaitDuration": { |
| 1515 | "description": "Required. This determines the minimum duration of time to wait after the configuration changes are applied through the current rollout. A VM continues to count towards the `disruption_budget` at least until this duration of time has passed after configuration changes are applied.", |
| 1516 | "format": "google-duration", |
| 1517 | "type": "string" |
| 1518 | } |
| 1519 | }, |
| 1520 | "type": "object" |
| 1521 | }, |
| 1522 | "OSPolicyOSFilter": { |
| 1523 | "description": "The `OSFilter` is used to specify the OS filtering criteria for the resource group.", |
| 1524 | "id": "OSPolicyOSFilter", |
| 1525 | "properties": { |
| 1526 | "osShortName": { |
| 1527 | "description": "This should match OS short name emitted by the OS inventory agent. An empty value matches any OS.", |
| 1528 | "type": "string" |
| 1529 | }, |
| 1530 | "osVersion": { |
| 1531 | "description": "This value should match the version emitted by the OS inventory agent. Prefix matches are supported if asterisk(*) is provided as the last character. For example, to match all versions with a major version of `7`, specify the following value for this field `7.*`", |
| 1532 | "type": "string" |
| 1533 | } |
| 1534 | }, |
| 1535 | "type": "object" |
| 1536 | }, |
| 1537 | "OSPolicyResource": { |
| 1538 | "description": "An OS policy resource is used to define the desired state configuration and provides a specific functionality like installing/removing packages, executing a script etc. The system ensures that resources are always in their desired state by taking necessary actions if they have drifted from their desired state.", |
| 1539 | "id": "OSPolicyResource", |
| 1540 | "properties": { |
| 1541 | "exec": { |
| 1542 | "$ref": "OSPolicyResourceExecResource", |
| 1543 | "description": "Exec resource" |
| 1544 | }, |
| 1545 | "file": { |
| 1546 | "$ref": "OSPolicyResourceFileResource", |
| 1547 | "description": "File resource" |
| 1548 | }, |
| 1549 | "id": { |
| 1550 | "description": "Required. The id of the resource with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-63 characters. * Must end with a number or a letter. * Must be unique within the OS policy.", |
| 1551 | "type": "string" |
| 1552 | }, |
| 1553 | "pkg": { |
| 1554 | "$ref": "OSPolicyResourcePackageResource", |
| 1555 | "description": "Package resource" |
| 1556 | }, |
| 1557 | "repository": { |
| 1558 | "$ref": "OSPolicyResourceRepositoryResource", |
| 1559 | "description": "Package repository resource" |
| 1560 | } |
| 1561 | }, |
| 1562 | "type": "object" |
| 1563 | }, |
| 1564 | "OSPolicyResourceCompliance": { |
| 1565 | "description": "Compliance data for an OS policy resource.", |
| 1566 | "id": "OSPolicyResourceCompliance", |
| 1567 | "properties": { |
| 1568 | "configSteps": { |
| 1569 | "description": "Ordered list of configuration steps taken by the agent for the OS policy resource.", |
| 1570 | "items": { |
| 1571 | "$ref": "OSPolicyResourceConfigStep" |
| 1572 | }, |
| 1573 | "type": "array" |
| 1574 | }, |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 1575 | "execResourceOutput": { |
| 1576 | "$ref": "OSPolicyResourceComplianceExecResourceOutput", |
| 1577 | "description": "ExecResource specific output." |
| 1578 | }, |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1579 | "osPolicyResourceId": { |
| 1580 | "description": "The id of the OS policy resource.", |
| 1581 | "type": "string" |
| 1582 | }, |
| 1583 | "state": { |
| 1584 | "description": "Compliance state of the OS policy resource.", |
| 1585 | "enum": [ |
| 1586 | "OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED", |
| 1587 | "COMPLIANT", |
| 1588 | "NON_COMPLIANT", |
| 1589 | "UNKNOWN", |
| 1590 | "NO_OS_POLICIES_APPLICABLE" |
| 1591 | ], |
| 1592 | "enumDescriptions": [ |
| 1593 | "Default value. This value is unused.", |
| 1594 | "Compliant state.", |
| 1595 | "Non-compliant state", |
| 1596 | "Unknown compliance state.", |
| 1597 | "No applicable OS policies were found for the instance. This state is only applicable to the instance." |
| 1598 | ], |
| 1599 | "type": "string" |
| 1600 | } |
| 1601 | }, |
| 1602 | "type": "object" |
| 1603 | }, |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 1604 | "OSPolicyResourceComplianceExecResourceOutput": { |
| 1605 | "description": "ExecResource specific output.", |
| 1606 | "id": "OSPolicyResourceComplianceExecResourceOutput", |
| 1607 | "properties": { |
| 1608 | "enforcementOutput": { |
| 1609 | "description": "Output from Enforcement phase output file (if run). Output size is limited to 100K bytes.", |
| 1610 | "format": "byte", |
| 1611 | "type": "string" |
| 1612 | } |
| 1613 | }, |
| 1614 | "type": "object" |
| 1615 | }, |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1616 | "OSPolicyResourceConfigStep": { |
| 1617 | "description": "Step performed by the OS Config agent for configuring an `OSPolicyResource` to its desired state.", |
| 1618 | "id": "OSPolicyResourceConfigStep", |
| 1619 | "properties": { |
| 1620 | "outcome": { |
| 1621 | "description": "Outcome of the configuration step.", |
| 1622 | "enum": [ |
| 1623 | "OUTCOME_UNSPECIFIED", |
| 1624 | "SUCCEEDED", |
| 1625 | "FAILED" |
| 1626 | ], |
| 1627 | "enumDescriptions": [ |
| 1628 | "Default value. This value is unused.", |
| 1629 | "The step succeeded.", |
| 1630 | "The step failed." |
| 1631 | ], |
| 1632 | "type": "string" |
| 1633 | }, |
| 1634 | "type": { |
| 1635 | "description": "Configuration step type.", |
| 1636 | "enum": [ |
| 1637 | "TYPE_UNSPECIFIED", |
| 1638 | "VALIDATION", |
| 1639 | "DESIRED_STATE_CHECK", |
| 1640 | "DESIRED_STATE_ENFORCEMENT", |
| 1641 | "DESIRED_STATE_CHECK_POST_ENFORCEMENT" |
| 1642 | ], |
| 1643 | "enumDescriptions": [ |
| 1644 | "Default value. This value is unused.", |
| 1645 | "Validation to detect resource conflicts, schema errors, etc.", |
| 1646 | "Check the current desired state status of the resource.", |
| 1647 | "Enforce the desired state for a resource that is not in desired state.", |
| 1648 | "Re-check desired state status for a resource after enforcement of all resources in the current configuration run. This step is used to determine the final desired state status for the resource. It accounts for any resources that might have drifted from their desired state due to side effects from configuring other resources during the current configuration run." |
| 1649 | ], |
| 1650 | "type": "string" |
| 1651 | } |
| 1652 | }, |
| 1653 | "type": "object" |
| 1654 | }, |
| 1655 | "OSPolicyResourceExecResource": { |
| 1656 | "description": "A resource that allows executing scripts on the VM. The `ExecResource` has 2 stages: `validate` and `enforce` and both stages accept a script as an argument to execute. When the `ExecResource` is applied by the agent, it first executes the script in the `validate` stage. The `validate` stage can signal that the `ExecResource` is already in the desired state by returning an exit code of `100`. If the `ExecResource` is not in the desired state, it should return an exit code of `101`. Any other exit code returned by this stage is considered an error. If the `ExecResource` is not in the desired state based on the exit code from the `validate` stage, the agent proceeds to execute the script from the `enforce` stage. If the `ExecResource` is already in the desired state, the `enforce` stage will not be run. Similar to `validate` stage, the `enforce` stage should return an exit code of `100` to indicate that the resource in now in its desired state. Any other exit code is considered an error. NOTE: An exit code of `100` was chosen over `0` (and `101` vs `1`) to have an explicit indicator of `in desired state`, `not in desired state` and errors. Because, for example, Powershell will always return an exit code of `0` unless an `exit` statement is provided in the script. So, for reasons of consistency and being explicit, exit codes `100` and `101` were chosen.", |
| 1657 | "id": "OSPolicyResourceExecResource", |
| 1658 | "properties": { |
| 1659 | "enforce": { |
| 1660 | "$ref": "OSPolicyResourceExecResourceExec", |
| 1661 | "description": "What to run to bring this resource into the desired state. An exit code of 100 indicates \"success\", any other exit code indicates a failure running enforce." |
| 1662 | }, |
| 1663 | "validate": { |
| 1664 | "$ref": "OSPolicyResourceExecResourceExec", |
| 1665 | "description": "Required. What to run to validate this resource is in the desired state. An exit code of 100 indicates \"in desired state\", and exit code of 101 indicates \"not in desired state\". Any other exit code indicates a failure running validate." |
| 1666 | } |
| 1667 | }, |
| 1668 | "type": "object" |
| 1669 | }, |
| 1670 | "OSPolicyResourceExecResourceExec": { |
| 1671 | "description": "A file or script to execute.", |
| 1672 | "id": "OSPolicyResourceExecResourceExec", |
| 1673 | "properties": { |
| 1674 | "args": { |
| 1675 | "description": "Optional arguments to pass to the source during execution.", |
| 1676 | "items": { |
| 1677 | "type": "string" |
| 1678 | }, |
| 1679 | "type": "array" |
| 1680 | }, |
| 1681 | "file": { |
| 1682 | "$ref": "OSPolicyResourceFile", |
| 1683 | "description": "A remote or local file." |
| 1684 | }, |
| 1685 | "interpreter": { |
| 1686 | "description": "Required. The script interpreter to use.", |
| 1687 | "enum": [ |
| 1688 | "INTERPRETER_UNSPECIFIED", |
| 1689 | "NONE", |
| 1690 | "SHELL", |
| 1691 | "POWERSHELL" |
| 1692 | ], |
| 1693 | "enumDescriptions": [ |
| 1694 | "Defaults to NONE.", |
| 1695 | "If no interpreter is specified the source will be executed directly, which will likely only succeed for executables and scripts with shebang lines. [Wikipedia shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)).", |
| 1696 | "Indicates that the script will be run with /bin/sh on Linux and cmd.exe on windows.", |
| 1697 | "Indicates that the script will be run with powershell." |
| 1698 | ], |
| 1699 | "type": "string" |
| 1700 | }, |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 1701 | "outputFilePath": { |
| 1702 | "description": "Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.", |
| 1703 | "type": "string" |
| 1704 | }, |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1705 | "script": { |
| 1706 | "description": "An inline script. The size of the script is limited to 1024 characters.", |
| 1707 | "type": "string" |
| 1708 | } |
| 1709 | }, |
| 1710 | "type": "object" |
| 1711 | }, |
| 1712 | "OSPolicyResourceFile": { |
| 1713 | "description": "A remote or local file.", |
| 1714 | "id": "OSPolicyResourceFile", |
| 1715 | "properties": { |
| 1716 | "allowInsecure": { |
| 1717 | "description": "Defaults to false. When false, files are subject to validations based on the file type: Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.", |
| 1718 | "type": "boolean" |
| 1719 | }, |
| 1720 | "gcs": { |
| 1721 | "$ref": "OSPolicyResourceFileGcs", |
| 1722 | "description": "A Cloud Storage object." |
| 1723 | }, |
| 1724 | "localPath": { |
| 1725 | "description": "A local path within the VM to use.", |
| 1726 | "type": "string" |
| 1727 | }, |
| 1728 | "remote": { |
| 1729 | "$ref": "OSPolicyResourceFileRemote", |
| 1730 | "description": "A generic remote file." |
| 1731 | } |
| 1732 | }, |
| 1733 | "type": "object" |
| 1734 | }, |
| 1735 | "OSPolicyResourceFileGcs": { |
| 1736 | "description": "Specifies a file available as a Cloud Storage Object.", |
| 1737 | "id": "OSPolicyResourceFileGcs", |
| 1738 | "properties": { |
| 1739 | "bucket": { |
| 1740 | "description": "Required. Bucket of the Cloud Storage object.", |
| 1741 | "type": "string" |
| 1742 | }, |
| 1743 | "generation": { |
| 1744 | "description": "Generation number of the Cloud Storage object.", |
| 1745 | "format": "int64", |
| 1746 | "type": "string" |
| 1747 | }, |
| 1748 | "object": { |
| 1749 | "description": "Required. Name of the Cloud Storage object.", |
| 1750 | "type": "string" |
| 1751 | } |
| 1752 | }, |
| 1753 | "type": "object" |
| 1754 | }, |
| 1755 | "OSPolicyResourceFileRemote": { |
| 1756 | "description": "Specifies a file available via some URI.", |
| 1757 | "id": "OSPolicyResourceFileRemote", |
| 1758 | "properties": { |
| 1759 | "sha256Checksum": { |
| 1760 | "description": "SHA256 checksum of the remote file.", |
| 1761 | "type": "string" |
| 1762 | }, |
| 1763 | "uri": { |
| 1764 | "description": "Required. URI from which to fetch the object. It should contain both the protocol and path following the format `{protocol}://{location}`.", |
| 1765 | "type": "string" |
| 1766 | } |
| 1767 | }, |
| 1768 | "type": "object" |
| 1769 | }, |
| 1770 | "OSPolicyResourceFileResource": { |
| 1771 | "description": "A resource that manages the state of a file.", |
| 1772 | "id": "OSPolicyResourceFileResource", |
| 1773 | "properties": { |
| 1774 | "content": { |
| 1775 | "description": "A a file with this content. The size of the content is limited to 1024 characters.", |
| 1776 | "type": "string" |
| 1777 | }, |
| 1778 | "file": { |
| 1779 | "$ref": "OSPolicyResourceFile", |
| 1780 | "description": "A remote or local source." |
| 1781 | }, |
| 1782 | "path": { |
| 1783 | "description": "Required. The absolute path of the file within the VM.", |
| 1784 | "type": "string" |
| 1785 | }, |
| 1786 | "permissions": { |
| 1787 | "description": "Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4", |
| 1788 | "type": "string" |
| 1789 | }, |
| 1790 | "state": { |
| 1791 | "description": "Required. Desired state of the file.", |
| 1792 | "enum": [ |
| 1793 | "DESIRED_STATE_UNSPECIFIED", |
| 1794 | "PRESENT", |
| 1795 | "ABSENT", |
| 1796 | "CONTENTS_MATCH" |
| 1797 | ], |
| 1798 | "enumDescriptions": [ |
| 1799 | "Unspecified is invalid.", |
| 1800 | "Ensure file at path is present.", |
| 1801 | "Ensure file at path is absent.", |
| 1802 | "Ensure the contents of the file at path matches. If the file does not exist it will be created." |
| 1803 | ], |
| 1804 | "type": "string" |
| 1805 | } |
| 1806 | }, |
| 1807 | "type": "object" |
| 1808 | }, |
| 1809 | "OSPolicyResourceGroup": { |
| 1810 | "description": "Resource groups provide a mechanism to group OS policy resources. Resource groups enable OS policy authors to create a single OS policy to be applied to VMs running different operating Systems. When the OS policy is applied to a target VM, the appropriate resource group within the OS policy is selected based on the `OSFilter` specified within the resource group.", |
| 1811 | "id": "OSPolicyResourceGroup", |
| 1812 | "properties": { |
| 1813 | "osFilter": { |
| 1814 | "$ref": "OSPolicyOSFilter", |
| 1815 | "description": "Used to specify the OS filter for a resource group" |
| 1816 | }, |
| 1817 | "resources": { |
| 1818 | "description": "Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.", |
| 1819 | "items": { |
| 1820 | "$ref": "OSPolicyResource" |
| 1821 | }, |
| 1822 | "type": "array" |
| 1823 | } |
| 1824 | }, |
| 1825 | "type": "object" |
| 1826 | }, |
| 1827 | "OSPolicyResourcePackageResource": { |
| 1828 | "description": "A resource that manages a system package.", |
| 1829 | "id": "OSPolicyResourcePackageResource", |
| 1830 | "properties": { |
| 1831 | "apt": { |
| 1832 | "$ref": "OSPolicyResourcePackageResourceAPT", |
| 1833 | "description": "A package managed by Apt." |
| 1834 | }, |
| 1835 | "deb": { |
| 1836 | "$ref": "OSPolicyResourcePackageResourceDeb", |
| 1837 | "description": "A deb package file." |
| 1838 | }, |
| 1839 | "desiredState": { |
| 1840 | "description": "Required. The desired state the agent should maintain for this package.", |
| 1841 | "enum": [ |
| 1842 | "DESIRED_STATE_UNSPECIFIED", |
| 1843 | "INSTALLED", |
| 1844 | "REMOVED" |
| 1845 | ], |
| 1846 | "enumDescriptions": [ |
| 1847 | "Unspecified is invalid.", |
| 1848 | "Ensure that the package is installed.", |
| 1849 | "The agent ensures that the package is not installed and uninstalls it if detected." |
| 1850 | ], |
| 1851 | "type": "string" |
| 1852 | }, |
| 1853 | "googet": { |
| 1854 | "$ref": "OSPolicyResourcePackageResourceGooGet", |
| 1855 | "description": "A package managed by GooGet." |
| 1856 | }, |
| 1857 | "msi": { |
| 1858 | "$ref": "OSPolicyResourcePackageResourceMSI", |
| 1859 | "description": "An MSI package." |
| 1860 | }, |
| 1861 | "rpm": { |
| 1862 | "$ref": "OSPolicyResourcePackageResourceRPM", |
| 1863 | "description": "An rpm package file." |
| 1864 | }, |
| 1865 | "yum": { |
| 1866 | "$ref": "OSPolicyResourcePackageResourceYUM", |
| 1867 | "description": "A package managed by YUM." |
| 1868 | }, |
| 1869 | "zypper": { |
| 1870 | "$ref": "OSPolicyResourcePackageResourceZypper", |
| 1871 | "description": "A package managed by Zypper." |
| 1872 | } |
| 1873 | }, |
| 1874 | "type": "object" |
| 1875 | }, |
| 1876 | "OSPolicyResourcePackageResourceAPT": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 1877 | "description": "A package managed by APT. - install: `apt-get update && apt-get -y install [name]` - remove: `apt-get -y remove [name]`", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1878 | "id": "OSPolicyResourcePackageResourceAPT", |
| 1879 | "properties": { |
| 1880 | "name": { |
| 1881 | "description": "Required. Package name.", |
| 1882 | "type": "string" |
| 1883 | } |
| 1884 | }, |
| 1885 | "type": "object" |
| 1886 | }, |
| 1887 | "OSPolicyResourcePackageResourceDeb": { |
| 1888 | "description": "A deb package file. dpkg packages only support INSTALLED state.", |
| 1889 | "id": "OSPolicyResourcePackageResourceDeb", |
| 1890 | "properties": { |
| 1891 | "pullDeps": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 1892 | "description": "Whether dependencies should also be installed. - install when false: `dpkg -i package` - install when true: `apt-get update && apt-get -y install package.deb`", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1893 | "type": "boolean" |
| 1894 | }, |
| 1895 | "source": { |
| 1896 | "$ref": "OSPolicyResourceFile", |
| 1897 | "description": "Required. A deb package." |
| 1898 | } |
| 1899 | }, |
| 1900 | "type": "object" |
| 1901 | }, |
| 1902 | "OSPolicyResourcePackageResourceGooGet": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 1903 | "description": "A package managed by GooGet. - install: `googet -noconfirm install package` - remove: `googet -noconfirm remove package`", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1904 | "id": "OSPolicyResourcePackageResourceGooGet", |
| 1905 | "properties": { |
| 1906 | "name": { |
| 1907 | "description": "Required. Package name.", |
| 1908 | "type": "string" |
| 1909 | } |
| 1910 | }, |
| 1911 | "type": "object" |
| 1912 | }, |
| 1913 | "OSPolicyResourcePackageResourceMSI": { |
| 1914 | "description": "An MSI package. MSI packages only support INSTALLED state.", |
| 1915 | "id": "OSPolicyResourcePackageResourceMSI", |
| 1916 | "properties": { |
| 1917 | "properties": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 1918 | "description": "Additional properties to use during installation. This should be in the format of Property=Setting. Appended to the defaults of `ACTION=INSTALL REBOOT=ReallySuppress`.", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1919 | "items": { |
| 1920 | "type": "string" |
| 1921 | }, |
| 1922 | "type": "array" |
| 1923 | }, |
| 1924 | "source": { |
| 1925 | "$ref": "OSPolicyResourceFile", |
| 1926 | "description": "Required. The MSI package." |
| 1927 | } |
| 1928 | }, |
| 1929 | "type": "object" |
| 1930 | }, |
| 1931 | "OSPolicyResourcePackageResourceRPM": { |
| 1932 | "description": "An RPM package file. RPM packages only support INSTALLED state.", |
| 1933 | "id": "OSPolicyResourcePackageResourceRPM", |
| 1934 | "properties": { |
| 1935 | "pullDeps": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 1936 | "description": "Whether dependencies should also be installed. - install when false: `rpm --upgrade --replacepkgs package.rpm` - install when true: `yum -y install package.rpm` or `zypper -y install package.rpm`", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1937 | "type": "boolean" |
| 1938 | }, |
| 1939 | "source": { |
| 1940 | "$ref": "OSPolicyResourceFile", |
| 1941 | "description": "Required. An rpm package." |
| 1942 | } |
| 1943 | }, |
| 1944 | "type": "object" |
| 1945 | }, |
| 1946 | "OSPolicyResourcePackageResourceYUM": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 1947 | "description": "A package managed by YUM. - install: `yum -y install package` - remove: `yum -y remove package`", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1948 | "id": "OSPolicyResourcePackageResourceYUM", |
| 1949 | "properties": { |
| 1950 | "name": { |
| 1951 | "description": "Required. Package name.", |
| 1952 | "type": "string" |
| 1953 | } |
| 1954 | }, |
| 1955 | "type": "object" |
| 1956 | }, |
| 1957 | "OSPolicyResourcePackageResourceZypper": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 1958 | "description": "A package managed by Zypper. - install: `zypper -y install package` - remove: `zypper -y rm package`", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1959 | "id": "OSPolicyResourcePackageResourceZypper", |
| 1960 | "properties": { |
| 1961 | "name": { |
| 1962 | "description": "Required. Package name.", |
| 1963 | "type": "string" |
| 1964 | } |
| 1965 | }, |
| 1966 | "type": "object" |
| 1967 | }, |
| 1968 | "OSPolicyResourceRepositoryResource": { |
| 1969 | "description": "A resource that manages a package repository.", |
| 1970 | "id": "OSPolicyResourceRepositoryResource", |
| 1971 | "properties": { |
| 1972 | "apt": { |
| 1973 | "$ref": "OSPolicyResourceRepositoryResourceAptRepository", |
| 1974 | "description": "An Apt Repository." |
| 1975 | }, |
| 1976 | "goo": { |
| 1977 | "$ref": "OSPolicyResourceRepositoryResourceGooRepository", |
| 1978 | "description": "A Goo Repository." |
| 1979 | }, |
| 1980 | "yum": { |
| 1981 | "$ref": "OSPolicyResourceRepositoryResourceYumRepository", |
| 1982 | "description": "A Yum Repository." |
| 1983 | }, |
| 1984 | "zypper": { |
| 1985 | "$ref": "OSPolicyResourceRepositoryResourceZypperRepository", |
| 1986 | "description": "A Zypper Repository." |
| 1987 | } |
| 1988 | }, |
| 1989 | "type": "object" |
| 1990 | }, |
| 1991 | "OSPolicyResourceRepositoryResourceAptRepository": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 1992 | "description": "Represents a single apt package repository. These will be added to a repo file that will be managed at `/etc/apt/sources.list.d/google_osconfig.list`.", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 1993 | "id": "OSPolicyResourceRepositoryResourceAptRepository", |
| 1994 | "properties": { |
| 1995 | "archiveType": { |
| 1996 | "description": "Required. Type of archive files in this repository.", |
| 1997 | "enum": [ |
| 1998 | "ARCHIVE_TYPE_UNSPECIFIED", |
| 1999 | "DEB", |
| 2000 | "DEB_SRC" |
| 2001 | ], |
| 2002 | "enumDescriptions": [ |
| 2003 | "Unspecified is invalid.", |
| 2004 | "Deb indicates that the archive contains binary files.", |
| 2005 | "Deb-src indicates that the archive contains source files." |
| 2006 | ], |
| 2007 | "type": "string" |
| 2008 | }, |
| 2009 | "components": { |
| 2010 | "description": "Required. List of components for this repository. Must contain at least one item.", |
| 2011 | "items": { |
| 2012 | "type": "string" |
| 2013 | }, |
| 2014 | "type": "array" |
| 2015 | }, |
| 2016 | "distribution": { |
| 2017 | "description": "Required. Distribution of this repository.", |
| 2018 | "type": "string" |
| 2019 | }, |
| 2020 | "gpgKey": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 2021 | "description": "URI of the key file for this repository. The agent maintains a keyring at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg`.", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 2022 | "type": "string" |
| 2023 | }, |
| 2024 | "uri": { |
| 2025 | "description": "Required. URI for this repository.", |
| 2026 | "type": "string" |
| 2027 | } |
| 2028 | }, |
| 2029 | "type": "object" |
| 2030 | }, |
| 2031 | "OSPolicyResourceRepositoryResourceGooRepository": { |
| 2032 | "description": "Represents a Goo package repository. These are added to a repo file that is managed at `C:/ProgramData/GooGet/repos/google_osconfig.repo`.", |
| 2033 | "id": "OSPolicyResourceRepositoryResourceGooRepository", |
| 2034 | "properties": { |
| 2035 | "name": { |
| 2036 | "description": "Required. The name of the repository.", |
| 2037 | "type": "string" |
| 2038 | }, |
| 2039 | "url": { |
| 2040 | "description": "Required. The url of the repository.", |
| 2041 | "type": "string" |
| 2042 | } |
| 2043 | }, |
| 2044 | "type": "object" |
| 2045 | }, |
| 2046 | "OSPolicyResourceRepositoryResourceYumRepository": { |
| 2047 | "description": "Represents a single yum package repository. These are added to a repo file that is managed at `/etc/yum.repos.d/google_osconfig.repo`.", |
| 2048 | "id": "OSPolicyResourceRepositoryResourceYumRepository", |
| 2049 | "properties": { |
| 2050 | "baseUrl": { |
| 2051 | "description": "Required. The location of the repository directory.", |
| 2052 | "type": "string" |
| 2053 | }, |
| 2054 | "displayName": { |
| 2055 | "description": "The display name of the repository.", |
| 2056 | "type": "string" |
| 2057 | }, |
| 2058 | "gpgKeys": { |
| 2059 | "description": "URIs of GPG keys.", |
| 2060 | "items": { |
| 2061 | "type": "string" |
| 2062 | }, |
| 2063 | "type": "array" |
| 2064 | }, |
| 2065 | "id": { |
| 2066 | "description": "Required. A one word, unique name for this repository. This is the `repo id` in the yum config file and also the `display_name` if `display_name` is omitted. This id is also used as the unique identifier when checking for resource conflicts.", |
| 2067 | "type": "string" |
| 2068 | } |
| 2069 | }, |
| 2070 | "type": "object" |
| 2071 | }, |
| 2072 | "OSPolicyResourceRepositoryResourceZypperRepository": { |
| 2073 | "description": "Represents a single zypper package repository. These are added to a repo file that is managed at `/etc/zypp/repos.d/google_osconfig.repo`.", |
| 2074 | "id": "OSPolicyResourceRepositoryResourceZypperRepository", |
| 2075 | "properties": { |
| 2076 | "baseUrl": { |
| 2077 | "description": "Required. The location of the repository directory.", |
| 2078 | "type": "string" |
| 2079 | }, |
| 2080 | "displayName": { |
| 2081 | "description": "The display name of the repository.", |
| 2082 | "type": "string" |
| 2083 | }, |
| 2084 | "gpgKeys": { |
| 2085 | "description": "URIs of GPG keys.", |
| 2086 | "items": { |
| 2087 | "type": "string" |
| 2088 | }, |
| 2089 | "type": "array" |
| 2090 | }, |
| 2091 | "id": { |
| 2092 | "description": "Required. A one word, unique name for this repository. This is the `repo id` in the zypper config file and also the `display_name` if `display_name` is omitted. This id is also used as the unique identifier when checking for GuestPolicy conflicts.", |
| 2093 | "type": "string" |
| 2094 | } |
| 2095 | }, |
| 2096 | "type": "object" |
| 2097 | }, |
| 2098 | "Operation": { |
| 2099 | "description": "This resource represents a long-running operation that is the result of a network API call.", |
| 2100 | "id": "Operation", |
| 2101 | "properties": { |
| 2102 | "done": { |
| 2103 | "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.", |
| 2104 | "type": "boolean" |
| 2105 | }, |
| 2106 | "error": { |
| 2107 | "$ref": "Status", |
| 2108 | "description": "The error result of the operation in case of failure or cancellation." |
| 2109 | }, |
| 2110 | "metadata": { |
| 2111 | "additionalProperties": { |
| 2112 | "description": "Properties of the object. Contains field @type with type URL.", |
| 2113 | "type": "any" |
| 2114 | }, |
| 2115 | "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.", |
| 2116 | "type": "object" |
| 2117 | }, |
| 2118 | "name": { |
| 2119 | "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}`.", |
| 2120 | "type": "string" |
| 2121 | }, |
| 2122 | "response": { |
| 2123 | "additionalProperties": { |
| 2124 | "description": "Properties of the object. Contains field @type with type URL.", |
| 2125 | "type": "any" |
| 2126 | }, |
| 2127 | "description": "The normal response of the operation in case of success. 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`.", |
| 2128 | "type": "object" |
| 2129 | } |
| 2130 | }, |
| 2131 | "type": "object" |
| 2132 | }, |
| 2133 | "Status": { |
| 2134 | "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).", |
| 2135 | "id": "Status", |
| 2136 | "properties": { |
| 2137 | "code": { |
| 2138 | "description": "The status code, which should be an enum value of google.rpc.Code.", |
| 2139 | "format": "int32", |
| 2140 | "type": "integer" |
| 2141 | }, |
| 2142 | "details": { |
| 2143 | "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", |
| 2144 | "items": { |
| 2145 | "additionalProperties": { |
| 2146 | "description": "Properties of the object. Contains field @type with type URL.", |
| 2147 | "type": "any" |
| 2148 | }, |
| 2149 | "type": "object" |
| 2150 | }, |
| 2151 | "type": "array" |
| 2152 | }, |
| 2153 | "message": { |
| 2154 | "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.", |
| 2155 | "type": "string" |
| 2156 | } |
| 2157 | }, |
| 2158 | "type": "object" |
| 2159 | }, |
| 2160 | "VulnerabilityReport": { |
yoshi-code-bot | 4c9ccb0 | 2021-05-27 00:38:02 -0700 | [diff] [blame] | 2161 | "description": "This API resource represents the vulnerability report for a specified Compute Engine virtual machine (VM) instance at a given point in time. For more information, see [Vulnerability reports](https://cloud.google.com/compute/docs/instances/os-inventory-management#vulnerability-reports).", |
yoshi-code-bot | 227f8c9 | 2021-05-26 00:34:03 -0700 | [diff] [blame] | 2162 | "id": "VulnerabilityReport", |
| 2163 | "properties": { |
| 2164 | "name": { |
| 2165 | "description": "Output only. The `vulnerabilityReport` API resource name. Format: `projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport`", |
| 2166 | "readOnly": true, |
| 2167 | "type": "string" |
| 2168 | }, |
| 2169 | "updateTime": { |
| 2170 | "description": "Output only. The timestamp for when the last vulnerability report was generated for the VM.", |
| 2171 | "format": "google-datetime", |
| 2172 | "readOnly": true, |
| 2173 | "type": "string" |
| 2174 | }, |
| 2175 | "vulnerabilities": { |
| 2176 | "description": "Output only. List of vulnerabilities affecting the VM.", |
| 2177 | "items": { |
| 2178 | "$ref": "VulnerabilityReportVulnerability" |
| 2179 | }, |
| 2180 | "readOnly": true, |
| 2181 | "type": "array" |
| 2182 | } |
| 2183 | }, |
| 2184 | "type": "object" |
| 2185 | }, |
| 2186 | "VulnerabilityReportVulnerability": { |
| 2187 | "description": "A vulnerability affecting the VM instance.", |
| 2188 | "id": "VulnerabilityReportVulnerability", |
| 2189 | "properties": { |
| 2190 | "availableInventoryItemIds": { |
| 2191 | "description": "Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. If there is no available fix, the field is empty. The `inventory_item` value specifies the latest `SoftwarePackage` available to the VM that fixes the vulnerability.", |
| 2192 | "items": { |
| 2193 | "type": "string" |
| 2194 | }, |
| 2195 | "type": "array" |
| 2196 | }, |
| 2197 | "createTime": { |
| 2198 | "description": "The timestamp for when the vulnerability was first detected.", |
| 2199 | "format": "google-datetime", |
| 2200 | "type": "string" |
| 2201 | }, |
| 2202 | "details": { |
| 2203 | "$ref": "VulnerabilityReportVulnerabilityDetails", |
| 2204 | "description": "Contains metadata as per the upstream feed of the operating system and NVD." |
| 2205 | }, |
| 2206 | "installedInventoryItemIds": { |
| 2207 | "description": "Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM. This field displays the inventory items affected by this vulnerability. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. For some distros, this field may be empty.", |
| 2208 | "items": { |
| 2209 | "type": "string" |
| 2210 | }, |
| 2211 | "type": "array" |
| 2212 | }, |
| 2213 | "updateTime": { |
| 2214 | "description": "The timestamp for when the vulnerability was last modified.", |
| 2215 | "format": "google-datetime", |
| 2216 | "type": "string" |
| 2217 | } |
| 2218 | }, |
| 2219 | "type": "object" |
| 2220 | }, |
| 2221 | "VulnerabilityReportVulnerabilityDetails": { |
| 2222 | "description": "Contains metadata information for the vulnerability. This information is collected from the upstream feed of the operating system.", |
| 2223 | "id": "VulnerabilityReportVulnerabilityDetails", |
| 2224 | "properties": { |
| 2225 | "cve": { |
| 2226 | "description": "The CVE of the vulnerability. CVE cannot be empty and the combination of should be unique across vulnerabilities for a VM.", |
| 2227 | "type": "string" |
| 2228 | }, |
| 2229 | "cvssV2Score": { |
| 2230 | "description": "The CVSS V2 score of this vulnerability. CVSS V2 score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.", |
| 2231 | "format": "float", |
| 2232 | "type": "number" |
| 2233 | }, |
| 2234 | "cvssV3": { |
| 2235 | "$ref": "CVSSv3", |
| 2236 | "description": "The full description of the CVSSv3 for this vulnerability from NVD." |
| 2237 | }, |
| 2238 | "description": { |
| 2239 | "description": "The note or description describing the vulnerability from the distro.", |
| 2240 | "type": "string" |
| 2241 | }, |
| 2242 | "references": { |
| 2243 | "description": "Corresponds to the references attached to the `VulnerabilityDetails`.", |
| 2244 | "items": { |
| 2245 | "$ref": "VulnerabilityReportVulnerabilityDetailsReference" |
| 2246 | }, |
| 2247 | "type": "array" |
| 2248 | }, |
| 2249 | "severity": { |
| 2250 | "description": "Assigned severity/impact ranking from the distro.", |
| 2251 | "type": "string" |
| 2252 | } |
| 2253 | }, |
| 2254 | "type": "object" |
| 2255 | }, |
| 2256 | "VulnerabilityReportVulnerabilityDetailsReference": { |
| 2257 | "description": "A reference for this vulnerability.", |
| 2258 | "id": "VulnerabilityReportVulnerabilityDetailsReference", |
| 2259 | "properties": { |
| 2260 | "url": { |
| 2261 | "description": "The url of the reference.", |
| 2262 | "type": "string" |
| 2263 | } |
| 2264 | }, |
| 2265 | "type": "object" |
| 2266 | } |
| 2267 | }, |
| 2268 | "servicePath": "", |
| 2269 | "title": "OS Config API", |
| 2270 | "version": "v1alpha", |
| 2271 | "version_module": true |
| 2272 | } |