Skip to content

Commit

Permalink
feat(osconfig): update the API
Browse files Browse the repository at this point in the history
#### osconfig:v1alpha

The following keys were added:
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.id
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.apiVersion.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.apiVersion.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.apiVersion.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.createTime.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.createTime.format
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.createTime.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.createTime.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.endTime.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.endTime.format
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.endTime.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.endTime.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.requestedCancellation.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.requestedCancellation.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.requestedCancellation.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.statusMessage.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.statusMessage.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.statusMessage.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.target.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.target.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.target.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.verb.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.verb.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.verb.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.type

The following keys were changed:
- resources.projects.resources.locations.resources.osPolicyAssignments.resources.operations.methods.cancel.description

#### osconfig:v1beta

The following keys were added:
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.id
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.apiVersion.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.apiVersion.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.apiVersion.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.createTime.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.createTime.format
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.createTime.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.createTime.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.endTime.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.endTime.format
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.endTime.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.endTime.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.requestedCancellation.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.requestedCancellation.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.requestedCancellation.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.statusMessage.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.statusMessage.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.statusMessage.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.target.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.target.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.target.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.verb.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.verb.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.verb.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.type

The following keys were changed:
- schemas.TimeZone.properties.id.description
- schemas.TimeZone.properties.version.description

#### osconfig:v1

The following keys were added:
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.id
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.apiVersion.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.apiVersion.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.apiVersion.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.createTime.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.createTime.format
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.createTime.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.createTime.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.endTime.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.endTime.format
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.endTime.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.endTime.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.requestedCancellation.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.requestedCancellation.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.requestedCancellation.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.statusMessage.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.statusMessage.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.statusMessage.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.target.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.target.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.target.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.verb.description
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.verb.readOnly
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.properties.verb.type
- schemas.GoogleCloudOsconfigV2beta__OperationMetadata.type

The following keys were changed:
- resources.projects.resources.locations.resources.osPolicyAssignments.resources.operations.methods.cancel.description
- schemas.TimeZone.properties.id.description
- schemas.TimeZone.properties.version.description
  • Loading branch information
yoshi-automation authored and sofisl committed Jan 29, 2025
1 parent 0d4d1b6 commit 5f511db
Show file tree
Hide file tree
Showing 9 changed files with 6,455 additions and 16 deletions.
52 changes: 48 additions & 4 deletions discovery/osconfig-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@
"operations": {
"methods": {
"cancel": {
"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`.",
"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`.",
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments/{osPolicyAssignmentsId}/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "osconfig.projects.locations.osPolicyAssignments.operations.cancel",
Expand Down Expand Up @@ -1083,7 +1083,7 @@
}
}
},
"revision": "20241002",
"revision": "20241201",
"rootUrl": "https://osconfig.googleapis.com/",
"schemas": {
"AptSettings": {
Expand Down Expand Up @@ -1495,6 +1495,50 @@
},
"type": "object"
},
"GoogleCloudOsconfigV2beta__OperationMetadata": {
"description": "Represents the metadata of the long-running operation.",
"id": "GoogleCloudOsconfigV2beta__OperationMetadata",
"properties": {
"apiVersion": {
"description": "Output only. API version used to start the operation.",
"readOnly": true,
"type": "string"
},
"createTime": {
"description": "Output only. The time the operation was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"endTime": {
"description": "Output only. The time the operation finished running.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"requestedCancellation": {
"description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
"readOnly": true,
"type": "boolean"
},
"statusMessage": {
"description": "Output only. Human-readable status of the operation, if any.",
"readOnly": true,
"type": "string"
},
"target": {
"description": "Output only. Server-defined resource path for the target of the operation.",
"readOnly": true,
"type": "string"
},
"verb": {
"description": "Output only. Name of the verb executed by the operation.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"Inventory": {
"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).",
"id": "Inventory",
Expand Down Expand Up @@ -3527,11 +3571,11 @@
"id": "TimeZone",
"properties": {
"id": {
"description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".",
"description": "IANA Time Zone Database time zone. For example \"America/New_York\".",
"type": "string"
},
"version": {
"description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".",
"description": "Optional. IANA Time Zone Database version number. For example \"2019a\".",
"type": "string"
}
},
Expand Down
48 changes: 46 additions & 2 deletions discovery/osconfig-v1alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@
"operations": {
"methods": {
"cancel": {
"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`.",
"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`.",
"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/osPolicyAssignments/{osPolicyAssignmentsId}/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "osconfig.projects.locations.osPolicyAssignments.operations.cancel",
Expand Down Expand Up @@ -707,7 +707,7 @@
}
}
},
"revision": "20240901",
"revision": "20241117",
"rootUrl": "https://osconfig.googleapis.com/",
"schemas": {
"CVSSv3": {
Expand Down Expand Up @@ -962,6 +962,50 @@
},
"type": "object"
},
"GoogleCloudOsconfigV2beta__OperationMetadata": {
"description": "Represents the metadata of the long-running operation.",
"id": "GoogleCloudOsconfigV2beta__OperationMetadata",
"properties": {
"apiVersion": {
"description": "Output only. API version used to start the operation.",
"readOnly": true,
"type": "string"
},
"createTime": {
"description": "Output only. The time the operation was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"endTime": {
"description": "Output only. The time the operation finished running.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"requestedCancellation": {
"description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
"readOnly": true,
"type": "boolean"
},
"statusMessage": {
"description": "Output only. Human-readable status of the operation, if any.",
"readOnly": true,
"type": "string"
},
"target": {
"description": "Output only. Server-defined resource path for the target of the operation.",
"readOnly": true,
"type": "string"
},
"verb": {
"description": "Output only. Name of the verb executed by the operation.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"InstanceOSPoliciesCompliance": {
"deprecated": true,
"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).",
Expand Down
50 changes: 47 additions & 3 deletions discovery/osconfig-v1beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@
}
}
},
"revision": "20241002",
"revision": "20241201",
"rootUrl": "https://osconfig.googleapis.com/",
"schemas": {
"AptRepository": {
Expand Down Expand Up @@ -1130,6 +1130,50 @@
},
"type": "object"
},
"GoogleCloudOsconfigV2beta__OperationMetadata": {
"description": "Represents the metadata of the long-running operation.",
"id": "GoogleCloudOsconfigV2beta__OperationMetadata",
"properties": {
"apiVersion": {
"description": "Output only. API version used to start the operation.",
"readOnly": true,
"type": "string"
},
"createTime": {
"description": "Output only. The time the operation was created.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"endTime": {
"description": "Output only. The time the operation finished running.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"requestedCancellation": {
"description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
"readOnly": true,
"type": "boolean"
},
"statusMessage": {
"description": "Output only. Human-readable status of the operation, if any.",
"readOnly": true,
"type": "string"
},
"target": {
"description": "Output only. Server-defined resource path for the target of the operation.",
"readOnly": true,
"type": "string"
},
"verb": {
"description": "Output only. Name of the verb executed by the operation.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"GuestPolicy": {
"description": "An OS Config resource representing a guest configuration policy. These policies represent the desired state for VM instance guest environments including packages to install or remove, package repository configurations, and software to install.",
"id": "GuestPolicy",
Expand Down Expand Up @@ -2295,11 +2339,11 @@
"id": "TimeZone",
"properties": {
"id": {
"description": "IANA Time Zone Database time zone, e.g. \"America/New_York\".",
"description": "IANA Time Zone Database time zone. For example \"America/New_York\".",
"type": "string"
},
"version": {
"description": "Optional. IANA Time Zone Database version number, e.g. \"2019a\".",
"description": "Optional. IANA Time Zone Database version number. For example \"2019a\".",
"type": "string"
}
},
Expand Down
Loading

0 comments on commit 5f511db

Please sign in to comment.