|
|
|
@ -27,14 +27,11 @@ import "google/longrunning/operations.proto"; |
|
|
|
|
|
|
|
|
|
option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha"; |
|
|
|
|
option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig"; |
|
|
|
|
option java_multiple_files = true; |
|
|
|
|
option java_outer_classname = "OsConfigZonalServiceProto"; |
|
|
|
|
option java_package = "com.google.cloud.osconfig.v1alpha"; |
|
|
|
|
option java_multiple_files = true; |
|
|
|
|
option php_namespace = "Google\\Cloud\\OsConfig\\V1alpha"; |
|
|
|
|
option ruby_package = "Google::Cloud::OsConfig::V1alpha"; |
|
|
|
|
|
|
|
|
|
// Some messages refer to Compute API resources; the resource names |
|
|
|
|
// need to be defined so that client library generators know how to handle them. |
|
|
|
|
option (google.api.resource_definition) = { |
|
|
|
|
type: "compute.googleapis.com/Instance" |
|
|
|
|
pattern: "projects/{project}/locations/{location}/instances/{instance}" |
|
|
|
@ -46,8 +43,7 @@ option (google.api.resource_definition) = { |
|
|
|
|
// manage package installations and patch jobs for Compute Engine VM instances. |
|
|
|
|
service OsConfigZonalService { |
|
|
|
|
option (google.api.default_host) = "osconfig.googleapis.com"; |
|
|
|
|
option (google.api.oauth_scopes) = |
|
|
|
|
"https://www.googleapis.com/auth/cloud-platform"; |
|
|
|
|
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; |
|
|
|
|
|
|
|
|
|
// Create an OS policy assignment. |
|
|
|
|
// |
|
|
|
@ -58,14 +54,12 @@ service OsConfigZonalService { |
|
|
|
|
// |
|
|
|
|
// For more information, see [Method: |
|
|
|
|
// projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). |
|
|
|
|
rpc CreateOSPolicyAssignment(CreateOSPolicyAssignmentRequest) |
|
|
|
|
returns (google.longrunning.Operation) { |
|
|
|
|
rpc CreateOSPolicyAssignment(CreateOSPolicyAssignmentRequest) returns (google.longrunning.Operation) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
post: "/v1alpha/{parent=projects/*/locations/*}/osPolicyAssignments" |
|
|
|
|
body: "os_policy_assignment" |
|
|
|
|
}; |
|
|
|
|
option (google.api.method_signature) = |
|
|
|
|
"parent,os_policy_assignment,os_policy_assignment_id"; |
|
|
|
|
option (google.api.method_signature) = "parent,os_policy_assignment,os_policy_assignment_id"; |
|
|
|
|
option (google.longrunning.operation_info) = { |
|
|
|
|
response_type: "OSPolicyAssignment" |
|
|
|
|
metadata_type: "OSPolicyAssignmentOperationMetadata" |
|
|
|
@ -81,8 +75,7 @@ service OsConfigZonalService { |
|
|
|
|
// |
|
|
|
|
// For more information, see [Method: |
|
|
|
|
// projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). |
|
|
|
|
rpc UpdateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest) |
|
|
|
|
returns (google.longrunning.Operation) { |
|
|
|
|
rpc UpdateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest) returns (google.longrunning.Operation) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
patch: "/v1alpha/{os_policy_assignment.name=projects/*/locations/*/osPolicyAssignments/*}" |
|
|
|
|
body: "os_policy_assignment" |
|
|
|
@ -99,8 +92,7 @@ service OsConfigZonalService { |
|
|
|
|
// 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. |
|
|
|
|
rpc GetOSPolicyAssignment(GetOSPolicyAssignmentRequest) |
|
|
|
|
returns (OSPolicyAssignment) { |
|
|
|
|
rpc GetOSPolicyAssignment(GetOSPolicyAssignmentRequest) returns (OSPolicyAssignment) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v1alpha/{name=projects/*/locations/*/osPolicyAssignments/*}" |
|
|
|
|
}; |
|
|
|
@ -110,8 +102,7 @@ service OsConfigZonalService { |
|
|
|
|
// List the OS policy assignments under the parent resource. |
|
|
|
|
// |
|
|
|
|
// For each OS policy assignment, the latest revision is returned. |
|
|
|
|
rpc ListOSPolicyAssignments(ListOSPolicyAssignmentsRequest) |
|
|
|
|
returns (ListOSPolicyAssignmentsResponse) { |
|
|
|
|
rpc ListOSPolicyAssignments(ListOSPolicyAssignmentsRequest) returns (ListOSPolicyAssignmentsResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v1alpha/{parent=projects/*/locations/*}/osPolicyAssignments" |
|
|
|
|
}; |
|
|
|
@ -119,8 +110,7 @@ service OsConfigZonalService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// List the OS policy assignment revisions for a given OS policy assignment. |
|
|
|
|
rpc ListOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest) |
|
|
|
|
returns (ListOSPolicyAssignmentRevisionsResponse) { |
|
|
|
|
rpc ListOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest) returns (ListOSPolicyAssignmentRevisionsResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v1alpha/{name=projects/*/locations/*/osPolicyAssignments/*}:listRevisions" |
|
|
|
|
}; |
|
|
|
@ -139,8 +129,7 @@ service OsConfigZonalService { |
|
|
|
|
// |
|
|
|
|
// For more information, see [Method: |
|
|
|
|
// projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel). |
|
|
|
|
rpc DeleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest) |
|
|
|
|
returns (google.longrunning.Operation) { |
|
|
|
|
rpc DeleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest) returns (google.longrunning.Operation) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
delete: "/v1alpha/{name=projects/*/locations/*/osPolicyAssignments/*}" |
|
|
|
|
}; |
|
|
|
@ -153,8 +142,7 @@ service OsConfigZonalService { |
|
|
|
|
|
|
|
|
|
// Get OS policies compliance data for the specified Compute Engine VM |
|
|
|
|
// instance. |
|
|
|
|
rpc GetInstanceOSPoliciesCompliance(GetInstanceOSPoliciesComplianceRequest) |
|
|
|
|
returns (InstanceOSPoliciesCompliance) { |
|
|
|
|
rpc GetInstanceOSPoliciesCompliance(GetInstanceOSPoliciesComplianceRequest) returns (InstanceOSPoliciesCompliance) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v1alpha/{name=projects/*/locations/*/instanceOSPoliciesCompliances/*}" |
|
|
|
|
}; |
|
|
|
@ -163,9 +151,7 @@ service OsConfigZonalService { |
|
|
|
|
|
|
|
|
|
// List OS policies compliance data for all Compute Engine VM instances in the |
|
|
|
|
// specified zone. |
|
|
|
|
rpc ListInstanceOSPoliciesCompliances( |
|
|
|
|
ListInstanceOSPoliciesCompliancesRequest) |
|
|
|
|
returns (ListInstanceOSPoliciesCompliancesResponse) { |
|
|
|
|
rpc ListInstanceOSPoliciesCompliances(ListInstanceOSPoliciesCompliancesRequest) returns (ListInstanceOSPoliciesCompliancesResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v1alpha/{parent=projects/*/locations/*}/instanceOSPoliciesCompliances" |
|
|
|
|
}; |
|
|
|
@ -182,8 +168,7 @@ service OsConfigZonalService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// List inventory data for all VM instances in the specified zone. |
|
|
|
|
rpc ListInventories(ListInventoriesRequest) |
|
|
|
|
returns (ListInventoriesResponse) { |
|
|
|
|
rpc ListInventories(ListInventoriesRequest) returns (ListInventoriesResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v1alpha/{parent=projects/*/locations/*/instances/*}/inventories" |
|
|
|
|
}; |
|
|
|
@ -192,8 +177,7 @@ service OsConfigZonalService { |
|
|
|
|
|
|
|
|
|
// Gets the vulnerability report for the specified VM instance. Only VMs with |
|
|
|
|
// inventory data have vulnerability reports associated with them. |
|
|
|
|
rpc GetVulnerabilityReport(GetVulnerabilityReportRequest) |
|
|
|
|
returns (VulnerabilityReport) { |
|
|
|
|
rpc GetVulnerabilityReport(GetVulnerabilityReportRequest) returns (VulnerabilityReport) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v1alpha/{name=projects/*/locations/*/instances/*/vulnerabilityReport}" |
|
|
|
|
}; |
|
|
|
@ -201,8 +185,7 @@ service OsConfigZonalService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// List vulnerability reports for all VM instances in the specified zone. |
|
|
|
|
rpc ListVulnerabilityReports(ListVulnerabilityReportsRequest) |
|
|
|
|
returns (ListVulnerabilityReportsResponse) { |
|
|
|
|
rpc ListVulnerabilityReports(ListVulnerabilityReportsRequest) returns (ListVulnerabilityReportsResponse) { |
|
|
|
|
option (google.api.http) = { |
|
|
|
|
get: "/v1alpha/{parent=projects/*/locations/*/instances/*}/vulnerabilityReports" |
|
|
|
|
}; |
|
|
|
|