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.OSPolicyResourceCompliance.properties.execResourceOutput.$ref (Total Keys: 1)
- schemas.OSPolicyResourceComplianceExecResourceOutput (Total Keys: 4)
- schemas.OSPolicyResourceExecResourceExec.properties.outputFilePath.type (Total Keys: 1)
  • Loading branch information
yoshi-automation committed May 27, 2021
1 parent 447b804 commit c541143
Show file tree
Hide file tree
Showing 7 changed files with 117 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # 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](/compute/docs/os-configuration-management/view-compliance).
{ # 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).
&quot;detailedState&quot;: &quot;A String&quot;, # 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.
&quot;detailedStateReason&quot;: &quot;A String&quot;, # Output only. The reason for the `detailed_state` of the VM (if any).
&quot;instance&quot;: &quot;A String&quot;, # Output only. The Compute Engine VM instance name.
Expand All @@ -125,6 +125,9 @@ <h3>Method Details</h3>
&quot;type&quot;: &quot;A String&quot;, # Configuration step type.
},
],
&quot;execResourceOutput&quot;: { # ExecResource specific output. # ExecResource specific output.
&quot;enforcementOutput&quot;: &quot;A String&quot;, # Output from Enforcement phase output file (if run). Output size is limited to 100K bytes.
},
&quot;osPolicyResourceId&quot;: &quot;A String&quot;, # The id of the OS policy resource.
&quot;state&quot;: &quot;A String&quot;, # Compliance state of the OS policy resource.
},
Expand Down Expand Up @@ -155,7 +158,7 @@ <h3>Method Details</h3>

{ # A response message for listing OS policies compliance data for all Compute Engine VMs in the given location.
&quot;instanceOsPoliciesCompliances&quot;: [ # List of instance OS policies compliance objects.
{ # 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](/compute/docs/os-configuration-management/view-compliance).
{ # 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).
&quot;detailedState&quot;: &quot;A String&quot;, # 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.
&quot;detailedStateReason&quot;: &quot;A String&quot;, # Output only. The reason for the `detailed_state` of the VM (if any).
&quot;instance&quot;: &quot;A String&quot;, # Output only. The Compute Engine VM instance name.
Expand All @@ -174,6 +177,9 @@ <h3>Method Details</h3>
&quot;type&quot;: &quot;A String&quot;, # Configuration step type.
},
],
&quot;execResourceOutput&quot;: { # ExecResource specific output. # ExecResource specific output.
&quot;enforcementOutput&quot;: &quot;A String&quot;, # Output from Enforcement phase output file (if run). Output size is limited to 100K bytes.
},
&quot;osPolicyResourceId&quot;: &quot;A String&quot;, # The id of the OS policy resource.
&quot;state&quot;: &quot;A String&quot;, # Compliance state of the OS policy resource.
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # 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](/compute/docs/instances/os-inventory-management#data-collected).
{ # 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).
&quot;items&quot;: { # 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.
&quot;a_key&quot;: { # A single piece of inventory on a VM.
&quot;availablePackage&quot;: { # Software package information of the operating system. # Software package available to be installed on the VM instance.
Expand Down Expand Up @@ -278,7 +278,7 @@ <h3>Method Details</h3>

{ # A response message for listing inventory data for all VMs in a specified location.
&quot;inventories&quot;: [ # List of inventory objects.
{ # 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](/compute/docs/instances/os-inventory-management#data-collected).
{ # 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).
&quot;items&quot;: { # 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.
&quot;a_key&quot;: { # A single piece of inventory on a VM.
&quot;availablePackage&quot;: { # Software package information of the operating system. # Software package available to be installed on the VM instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ <h3>Method Details</h3>
Returns:
An object of the form:

{ # 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](/compute/docs/instances/os-inventory-management#vulnerability-reports).
{ # 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).
&quot;name&quot;: &quot;A String&quot;, # Output only. The `vulnerabilityReport` API resource name. Format: `projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport`
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the last vulnerability report was generated for the VM.
&quot;vulnerabilities&quot;: [ # Output only. List of vulnerabilities affecting the VM.
Expand Down Expand Up @@ -168,7 +168,7 @@ <h3>Method Details</h3>
{ # A response message for listing vulnerability reports for all VM instances in the specified location.
&quot;nextPageToken&quot;: &quot;A String&quot;, # The pagination token to retrieve the next page of vulnerabilityReports object.
&quot;vulnerabilityReports&quot;: [ # List of vulnerabilityReport objects.
{ # 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](/compute/docs/instances/os-inventory-management#vulnerability-reports).
{ # 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).
&quot;name&quot;: &quot;A String&quot;, # Output only. The `vulnerabilityReport` API resource name. Format: `projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport`
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp for when the last vulnerability report was generated for the VM.
&quot;vulnerabilities&quot;: [ # Output only. List of vulnerabilities affecting the VM.
Expand Down
Loading

0 comments on commit c541143

Please sign in to comment.