| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// - protoc-gen-go-grpc v1.3.0 |
| 18 |
// - protoc v4.25.7 |
| 19 |
// source: google/cloud/osconfig/v1/osconfig_zonal_service.proto |
| 20 |
|
| 21 |
package osconfigpb |
| 22 |
|
| 23 |
import ( |
| 24 |
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" |
| 25 |
context "context" |
| 26 |
grpc "google.golang.org/grpc" |
| 27 |
codes "google.golang.org/grpc/codes" |
| 28 |
status "google.golang.org/grpc/status" |
| 29 |
) |
| 30 |
|
| 31 |
// This is a compile-time assertion to ensure that this generated file |
| 32 |
// is compatible with the grpc package it is being compiled against. |
| 33 |
// Requires gRPC-Go v1.32.0 or later. |
| 34 |
const _ = grpc.SupportPackageIsVersion7 |
| 35 |
|
| 36 |
const ( |
| 37 |
OsConfigZonalService_CreateOSPolicyAssignment_FullMethodName = "/google.cloud.osconfig.v1.OsConfigZonalService/CreateOSPolicyAssignment" |
| 38 |
OsConfigZonalService_UpdateOSPolicyAssignment_FullMethodName = "/google.cloud.osconfig.v1.OsConfigZonalService/UpdateOSPolicyAssignment" |
| 39 |
OsConfigZonalService_GetOSPolicyAssignment_FullMethodName = "/google.cloud.osconfig.v1.OsConfigZonalService/GetOSPolicyAssignment" |
| 40 |
OsConfigZonalService_ListOSPolicyAssignments_FullMethodName = "/google.cloud.osconfig.v1.OsConfigZonalService/ListOSPolicyAssignments" |
| 41 |
OsConfigZonalService_ListOSPolicyAssignmentRevisions_FullMethodName = "/google.cloud.osconfig.v1.OsConfigZonalService/ListOSPolicyAssignmentRevisions" |
| 42 |
OsConfigZonalService_DeleteOSPolicyAssignment_FullMethodName = "/google.cloud.osconfig.v1.OsConfigZonalService/DeleteOSPolicyAssignment" |
| 43 |
OsConfigZonalService_GetOSPolicyAssignmentReport_FullMethodName = "/google.cloud.osconfig.v1.OsConfigZonalService/GetOSPolicyAssignmentReport" |
| 44 |
OsConfigZonalService_ListOSPolicyAssignmentReports_FullMethodName = "/google.cloud.osconfig.v1.OsConfigZonalService/ListOSPolicyAssignmentReports" |
| 45 |
OsConfigZonalService_GetInventory_FullMethodName = "/google.cloud.osconfig.v1.OsConfigZonalService/GetInventory" |
| 46 |
OsConfigZonalService_ListInventories_FullMethodName = "/google.cloud.osconfig.v1.OsConfigZonalService/ListInventories" |
| 47 |
OsConfigZonalService_GetVulnerabilityReport_FullMethodName = "/google.cloud.osconfig.v1.OsConfigZonalService/GetVulnerabilityReport" |
| 48 |
OsConfigZonalService_ListVulnerabilityReports_FullMethodName = "/google.cloud.osconfig.v1.OsConfigZonalService/ListVulnerabilityReports" |
| 49 |
) |
| 50 |
|
| 51 |
// OsConfigZonalServiceClient is the client API for OsConfigZonalService service. |
| 52 |
// |
| 53 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. |
| 54 |
type OsConfigZonalServiceClient interface { |
| 55 |
// Create an OS policy assignment. |
| 56 |
// |
| 57 |
// This method also creates the first revision of the OS policy assignment. |
| 58 |
// |
| 59 |
// This method returns a long running operation (LRO) that contains the |
| 60 |
// rollout details. The rollout can be cancelled by cancelling the LRO. |
| 61 |
// |
| 62 |
// For more information, see [Method: |
| 63 |
// projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel). |
| 64 |
CreateOSPolicyAssignment(ctx context.Context, in *CreateOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 65 |
// Update an existing OS policy assignment. |
| 66 |
// |
| 67 |
// This method creates a new revision of the OS policy assignment. |
| 68 |
// |
| 69 |
// This method returns a long running operation (LRO) that contains the |
| 70 |
// rollout details. The rollout can be cancelled by cancelling the LRO. |
| 71 |
// |
| 72 |
// For more information, see [Method: |
| 73 |
// projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel). |
| 74 |
UpdateOSPolicyAssignment(ctx context.Context, in *UpdateOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 75 |
// Retrieve an existing OS policy assignment. |
| 76 |
// |
| 77 |
// This method always returns the latest revision. In order to retrieve a |
| 78 |
// previous revision of the assignment, also provide the revision ID in the |
| 79 |
// `name` parameter. |
| 80 |
GetOSPolicyAssignment(ctx context.Context, in *GetOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*OSPolicyAssignment, error) |
| 81 |
// List the OS policy assignments under the parent resource. |
| 82 |
// |
| 83 |
// For each OS policy assignment, the latest revision is returned. |
| 84 |
ListOSPolicyAssignments(ctx context.Context, in *ListOSPolicyAssignmentsRequest, opts ...grpc.CallOption) (*ListOSPolicyAssignmentsResponse, error) |
| 85 |
// List the OS policy assignment revisions for a given OS policy assignment. |
| 86 |
ListOSPolicyAssignmentRevisions(ctx context.Context, in *ListOSPolicyAssignmentRevisionsRequest, opts ...grpc.CallOption) (*ListOSPolicyAssignmentRevisionsResponse, error) |
| 87 |
// Delete the OS policy assignment. |
| 88 |
// |
| 89 |
// This method creates a new revision of the OS policy assignment. |
| 90 |
// |
| 91 |
// This method returns a long running operation (LRO) that contains the |
| 92 |
// rollout details. The rollout can be cancelled by cancelling the LRO. |
| 93 |
// |
| 94 |
// If the LRO completes and is not cancelled, all revisions associated with |
| 95 |
// the OS policy assignment are deleted. |
| 96 |
// |
| 97 |
// For more information, see [Method: |
| 98 |
// projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel). |
| 99 |
DeleteOSPolicyAssignment(ctx context.Context, in *DeleteOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 100 |
// Get the OS policy asssignment report for the specified Compute Engine VM |
| 101 |
// instance. |
| 102 |
GetOSPolicyAssignmentReport(ctx context.Context, in *GetOSPolicyAssignmentReportRequest, opts ...grpc.CallOption) (*OSPolicyAssignmentReport, error) |
| 103 |
// List OS policy asssignment reports for all Compute Engine VM instances in |
| 104 |
// the specified zone. |
| 105 |
ListOSPolicyAssignmentReports(ctx context.Context, in *ListOSPolicyAssignmentReportsRequest, opts ...grpc.CallOption) (*ListOSPolicyAssignmentReportsResponse, error) |
| 106 |
// Get inventory data for the specified VM instance. If the VM has no |
| 107 |
// associated inventory, the message `NOT_FOUND` is returned. |
| 108 |
GetInventory(ctx context.Context, in *GetInventoryRequest, opts ...grpc.CallOption) (*Inventory, error) |
| 109 |
// List inventory data for all VM instances in the specified zone. |
| 110 |
ListInventories(ctx context.Context, in *ListInventoriesRequest, opts ...grpc.CallOption) (*ListInventoriesResponse, error) |
| 111 |
// Gets the vulnerability report for the specified VM instance. Only VMs with |
| 112 |
// inventory data have vulnerability reports associated with them. |
| 113 |
GetVulnerabilityReport(ctx context.Context, in *GetVulnerabilityReportRequest, opts ...grpc.CallOption) (*VulnerabilityReport, error) |
| 114 |
// List vulnerability reports for all VM instances in the specified zone. |
| 115 |
ListVulnerabilityReports(ctx context.Context, in *ListVulnerabilityReportsRequest, opts ...grpc.CallOption) (*ListVulnerabilityReportsResponse, error) |
| 116 |
} |
| 117 |
|
| 118 |
type osConfigZonalServiceClient struct { |
| 119 |
cc grpc.ClientConnInterface |
| 120 |
} |
| 121 |
|
| 122 |
func NewOsConfigZonalServiceClient(cc grpc.ClientConnInterface) OsConfigZonalServiceClient { |
| 123 |
return &osConfigZonalServiceClient{cc} |
| 124 |
} |
| 125 |
|
| 126 |
func (c *osConfigZonalServiceClient) CreateOSPolicyAssignment(ctx context.Context, in *CreateOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 127 |
out := new(longrunningpb.Operation) |
| 128 |
err := c.cc.Invoke(ctx, OsConfigZonalService_CreateOSPolicyAssignment_FullMethodName, in, out, opts...) |
| 129 |
if err != nil { |
| 130 |
return nil, err |
| 131 |
} |
| 132 |
return out, nil |
| 133 |
} |
| 134 |
|
| 135 |
func (c *osConfigZonalServiceClient) UpdateOSPolicyAssignment(ctx context.Context, in *UpdateOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 136 |
out := new(longrunningpb.Operation) |
| 137 |
err := c.cc.Invoke(ctx, OsConfigZonalService_UpdateOSPolicyAssignment_FullMethodName, in, out, opts...) |
| 138 |
if err != nil { |
| 139 |
return nil, err |
| 140 |
} |
| 141 |
return out, nil |
| 142 |
} |
| 143 |
|
| 144 |
func (c *osConfigZonalServiceClient) GetOSPolicyAssignment(ctx context.Context, in *GetOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*OSPolicyAssignment, error) { |
| 145 |
out := new(OSPolicyAssignment) |
| 146 |
err := c.cc.Invoke(ctx, OsConfigZonalService_GetOSPolicyAssignment_FullMethodName, in, out, opts...) |
| 147 |
if err != nil { |
| 148 |
return nil, err |
| 149 |
} |
| 150 |
return out, nil |
| 151 |
} |
| 152 |
|
| 153 |
func (c *osConfigZonalServiceClient) ListOSPolicyAssignments(ctx context.Context, in *ListOSPolicyAssignmentsRequest, opts ...grpc.CallOption) (*ListOSPolicyAssignmentsResponse, error) { |
| 154 |
out := new(ListOSPolicyAssignmentsResponse) |
| 155 |
err := c.cc.Invoke(ctx, OsConfigZonalService_ListOSPolicyAssignments_FullMethodName, in, out, opts...) |
| 156 |
if err != nil { |
| 157 |
return nil, err |
| 158 |
} |
| 159 |
return out, nil |
| 160 |
} |
| 161 |
|
| 162 |
func (c *osConfigZonalServiceClient) ListOSPolicyAssignmentRevisions(ctx context.Context, in *ListOSPolicyAssignmentRevisionsRequest, opts ...grpc.CallOption) (*ListOSPolicyAssignmentRevisionsResponse, error) { |
| 163 |
out := new(ListOSPolicyAssignmentRevisionsResponse) |
| 164 |
err := c.cc.Invoke(ctx, OsConfigZonalService_ListOSPolicyAssignmentRevisions_FullMethodName, in, out, opts...) |
| 165 |
if err != nil { |
| 166 |
return nil, err |
| 167 |
} |
| 168 |
return out, nil |
| 169 |
} |
| 170 |
|
| 171 |
func (c *osConfigZonalServiceClient) DeleteOSPolicyAssignment(ctx context.Context, in *DeleteOSPolicyAssignmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 172 |
out := new(longrunningpb.Operation) |
| 173 |
err := c.cc.Invoke(ctx, OsConfigZonalService_DeleteOSPolicyAssignment_FullMethodName, in, out, opts...) |
| 174 |
if err != nil { |
| 175 |
return nil, err |
| 176 |
} |
| 177 |
return out, nil |
| 178 |
} |
| 179 |
|
| 180 |
func (c *osConfigZonalServiceClient) GetOSPolicyAssignmentReport(ctx context.Context, in *GetOSPolicyAssignmentReportRequest, opts ...grpc.CallOption) (*OSPolicyAssignmentReport, error) { |
| 181 |
out := new(OSPolicyAssignmentReport) |
| 182 |
err := c.cc.Invoke(ctx, OsConfigZonalService_GetOSPolicyAssignmentReport_FullMethodName, in, out, opts...) |
| 183 |
if err != nil { |
| 184 |
return nil, err |
| 185 |
} |
| 186 |
return out, nil |
| 187 |
} |
| 188 |
|
| 189 |
func (c *osConfigZonalServiceClient) ListOSPolicyAssignmentReports(ctx context.Context, in *ListOSPolicyAssignmentReportsRequest, opts ...grpc.CallOption) (*ListOSPolicyAssignmentReportsResponse, error) { |
| 190 |
out := new(ListOSPolicyAssignmentReportsResponse) |
| 191 |
err := c.cc.Invoke(ctx, OsConfigZonalService_ListOSPolicyAssignmentReports_FullMethodName, in, out, opts...) |
| 192 |
if err != nil { |
| 193 |
return nil, err |
| 194 |
} |
| 195 |
return out, nil |
| 196 |
} |
| 197 |
|
| 198 |
func (c *osConfigZonalServiceClient) GetInventory(ctx context.Context, in *GetInventoryRequest, opts ...grpc.CallOption) (*Inventory, error) { |
| 199 |
out := new(Inventory) |
| 200 |
err := c.cc.Invoke(ctx, OsConfigZonalService_GetInventory_FullMethodName, in, out, opts...) |
| 201 |
if err != nil { |
| 202 |
return nil, err |
| 203 |
} |
| 204 |
return out, nil |
| 205 |
} |
| 206 |
|
| 207 |
func (c *osConfigZonalServiceClient) ListInventories(ctx context.Context, in *ListInventoriesRequest, opts ...grpc.CallOption) (*ListInventoriesResponse, error) { |
| 208 |
out := new(ListInventoriesResponse) |
| 209 |
err := c.cc.Invoke(ctx, OsConfigZonalService_ListInventories_FullMethodName, in, out, opts...) |
| 210 |
if err != nil { |
| 211 |
return nil, err |
| 212 |
} |
| 213 |
return out, nil |
| 214 |
} |
| 215 |
|
| 216 |
func (c *osConfigZonalServiceClient) GetVulnerabilityReport(ctx context.Context, in *GetVulnerabilityReportRequest, opts ...grpc.CallOption) (*VulnerabilityReport, error) { |
| 217 |
out := new(VulnerabilityReport) |
| 218 |
err := c.cc.Invoke(ctx, OsConfigZonalService_GetVulnerabilityReport_FullMethodName, in, out, opts...) |
| 219 |
if err != nil { |
| 220 |
return nil, err |
| 221 |
} |
| 222 |
return out, nil |
| 223 |
} |
| 224 |
|
| 225 |
func (c *osConfigZonalServiceClient) ListVulnerabilityReports(ctx context.Context, in *ListVulnerabilityReportsRequest, opts ...grpc.CallOption) (*ListVulnerabilityReportsResponse, error) { |
| 226 |
out := new(ListVulnerabilityReportsResponse) |
| 227 |
err := c.cc.Invoke(ctx, OsConfigZonalService_ListVulnerabilityReports_FullMethodName, in, out, opts...) |
| 228 |
if err != nil { |
| 229 |
return nil, err |
| 230 |
} |
| 231 |
return out, nil |
| 232 |
} |
| 233 |
|
| 234 |
// OsConfigZonalServiceServer is the server API for OsConfigZonalService service. |
| 235 |
// All implementations should embed UnimplementedOsConfigZonalServiceServer |
| 236 |
// for forward compatibility |
| 237 |
type OsConfigZonalServiceServer interface { |
| 238 |
// Create an OS policy assignment. |
| 239 |
// |
| 240 |
// This method also creates the first revision of the OS policy assignment. |
| 241 |
// |
| 242 |
// This method returns a long running operation (LRO) that contains the |
| 243 |
// rollout details. The rollout can be cancelled by cancelling the LRO. |
| 244 |
// |
| 245 |
// For more information, see [Method: |
| 246 |
// projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel). |
| 247 |
CreateOSPolicyAssignment(context.Context, *CreateOSPolicyAssignmentRequest) (*longrunningpb.Operation, error) |
| 248 |
// Update an existing OS policy assignment. |
| 249 |
// |
| 250 |
// This method creates a new revision of the OS policy assignment. |
| 251 |
// |
| 252 |
// This method returns a long running operation (LRO) that contains the |
| 253 |
// rollout details. The rollout can be cancelled by cancelling the LRO. |
| 254 |
// |
| 255 |
// For more information, see [Method: |
| 256 |
// projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel). |
| 257 |
UpdateOSPolicyAssignment(context.Context, *UpdateOSPolicyAssignmentRequest) (*longrunningpb.Operation, error) |
| 258 |
// Retrieve an existing OS policy assignment. |
| 259 |
// |
| 260 |
// This method always returns the latest revision. In order to retrieve a |
| 261 |
// previous revision of the assignment, also provide the revision ID in the |
| 262 |
// `name` parameter. |
| 263 |
GetOSPolicyAssignment(context.Context, *GetOSPolicyAssignmentRequest) (*OSPolicyAssignment, error) |
| 264 |
// List the OS policy assignments under the parent resource. |
| 265 |
// |
| 266 |
// For each OS policy assignment, the latest revision is returned. |
| 267 |
ListOSPolicyAssignments(context.Context, *ListOSPolicyAssignmentsRequest) (*ListOSPolicyAssignmentsResponse, error) |
| 268 |
// List the OS policy assignment revisions for a given OS policy assignment. |
| 269 |
ListOSPolicyAssignmentRevisions(context.Context, *ListOSPolicyAssignmentRevisionsRequest) (*ListOSPolicyAssignmentRevisionsResponse, error) |
| 270 |
// Delete the OS policy assignment. |
| 271 |
// |
| 272 |
// This method creates a new revision of the OS policy assignment. |
| 273 |
// |
| 274 |
// This method returns a long running operation (LRO) that contains the |
| 275 |
// rollout details. The rollout can be cancelled by cancelling the LRO. |
| 276 |
// |
| 277 |
// If the LRO completes and is not cancelled, all revisions associated with |
| 278 |
// the OS policy assignment are deleted. |
| 279 |
// |
| 280 |
// For more information, see [Method: |
| 281 |
// projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel). |
| 282 |
DeleteOSPolicyAssignment(context.Context, *DeleteOSPolicyAssignmentRequest) (*longrunningpb.Operation, error) |
| 283 |
// Get the OS policy asssignment report for the specified Compute Engine VM |
| 284 |
// instance. |
| 285 |
GetOSPolicyAssignmentReport(context.Context, *GetOSPolicyAssignmentReportRequest) (*OSPolicyAssignmentReport, error) |
| 286 |
// List OS policy asssignment reports for all Compute Engine VM instances in |
| 287 |
// the specified zone. |
| 288 |
ListOSPolicyAssignmentReports(context.Context, *ListOSPolicyAssignmentReportsRequest) (*ListOSPolicyAssignmentReportsResponse, error) |
| 289 |
// Get inventory data for the specified VM instance. If the VM has no |
| 290 |
// associated inventory, the message `NOT_FOUND` is returned. |
| 291 |
GetInventory(context.Context, *GetInventoryRequest) (*Inventory, error) |
| 292 |
// List inventory data for all VM instances in the specified zone. |
| 293 |
ListInventories(context.Context, *ListInventoriesRequest) (*ListInventoriesResponse, error) |
| 294 |
// Gets the vulnerability report for the specified VM instance. Only VMs with |
| 295 |
// inventory data have vulnerability reports associated with them. |
| 296 |
GetVulnerabilityReport(context.Context, *GetVulnerabilityReportRequest) (*VulnerabilityReport, error) |
| 297 |
// List vulnerability reports for all VM instances in the specified zone. |
| 298 |
ListVulnerabilityReports(context.Context, *ListVulnerabilityReportsRequest) (*ListVulnerabilityReportsResponse, error) |
| 299 |
} |
| 300 |
|
| 301 |
// UnimplementedOsConfigZonalServiceServer should be embedded to have forward compatible implementations. |
| 302 |
type UnimplementedOsConfigZonalServiceServer struct { |
| 303 |
} |
| 304 |
|
| 305 |
func (UnimplementedOsConfigZonalServiceServer) CreateOSPolicyAssignment(context.Context, *CreateOSPolicyAssignmentRequest) (*longrunningpb.Operation, error) { |
| 306 |
return nil, status.Errorf(codes.Unimplemented, "method CreateOSPolicyAssignment not implemented") |
| 307 |
} |
| 308 |
func (UnimplementedOsConfigZonalServiceServer) UpdateOSPolicyAssignment(context.Context, *UpdateOSPolicyAssignmentRequest) (*longrunningpb.Operation, error) { |
| 309 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateOSPolicyAssignment not implemented") |
| 310 |
} |
| 311 |
func (UnimplementedOsConfigZonalServiceServer) GetOSPolicyAssignment(context.Context, *GetOSPolicyAssignmentRequest) (*OSPolicyAssignment, error) { |
| 312 |
return nil, status.Errorf(codes.Unimplemented, "method GetOSPolicyAssignment not implemented") |
| 313 |
} |
| 314 |
func (UnimplementedOsConfigZonalServiceServer) ListOSPolicyAssignments(context.Context, *ListOSPolicyAssignmentsRequest) (*ListOSPolicyAssignmentsResponse, error) { |
| 315 |
return nil, status.Errorf(codes.Unimplemented, "method ListOSPolicyAssignments not implemented") |
| 316 |
} |
| 317 |
func (UnimplementedOsConfigZonalServiceServer) ListOSPolicyAssignmentRevisions(context.Context, *ListOSPolicyAssignmentRevisionsRequest) (*ListOSPolicyAssignmentRevisionsResponse, error) { |
| 318 |
return nil, status.Errorf(codes.Unimplemented, "method ListOSPolicyAssignmentRevisions not implemented") |
| 319 |
} |
| 320 |
func (UnimplementedOsConfigZonalServiceServer) DeleteOSPolicyAssignment(context.Context, *DeleteOSPolicyAssignmentRequest) (*longrunningpb.Operation, error) { |
| 321 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteOSPolicyAssignment not implemented") |
| 322 |
} |
| 323 |
func (UnimplementedOsConfigZonalServiceServer) GetOSPolicyAssignmentReport(context.Context, *GetOSPolicyAssignmentReportRequest) (*OSPolicyAssignmentReport, error) { |
| 324 |
return nil, status.Errorf(codes.Unimplemented, "method GetOSPolicyAssignmentReport not implemented") |
| 325 |
} |
| 326 |
func (UnimplementedOsConfigZonalServiceServer) ListOSPolicyAssignmentReports(context.Context, *ListOSPolicyAssignmentReportsRequest) (*ListOSPolicyAssignmentReportsResponse, error) { |
| 327 |
return nil, status.Errorf(codes.Unimplemented, "method ListOSPolicyAssignmentReports not implemented") |
| 328 |
} |
| 329 |
func (UnimplementedOsConfigZonalServiceServer) GetInventory(context.Context, *GetInventoryRequest) (*Inventory, error) { |
| 330 |
return nil, status.Errorf(codes.Unimplemented, "method GetInventory not implemented") |
| 331 |
} |
| 332 |
func (UnimplementedOsConfigZonalServiceServer) ListInventories(context.Context, *ListInventoriesRequest) (*ListInventoriesResponse, error) { |
| 333 |
return nil, status.Errorf(codes.Unimplemented, "method ListInventories not implemented") |
| 334 |
} |
| 335 |
func (UnimplementedOsConfigZonalServiceServer) GetVulnerabilityReport(context.Context, *GetVulnerabilityReportRequest) (*VulnerabilityReport, error) { |
| 336 |
return nil, status.Errorf(codes.Unimplemented, "method GetVulnerabilityReport not implemented") |
| 337 |
} |
| 338 |
func (UnimplementedOsConfigZonalServiceServer) ListVulnerabilityReports(context.Context, *ListVulnerabilityReportsRequest) (*ListVulnerabilityReportsResponse, error) { |
| 339 |
return nil, status.Errorf(codes.Unimplemented, "method ListVulnerabilityReports not implemented") |
| 340 |
} |
| 341 |
|
| 342 |
// UnsafeOsConfigZonalServiceServer may be embedded to opt out of forward compatibility for this service. |
| 343 |
// Use of this interface is not recommended, as added methods to OsConfigZonalServiceServer will |
| 344 |
// result in compilation errors. |
| 345 |
type UnsafeOsConfigZonalServiceServer interface { |
| 346 |
mustEmbedUnimplementedOsConfigZonalServiceServer() |
| 347 |
} |
| 348 |
|
| 349 |
func RegisterOsConfigZonalServiceServer(s grpc.ServiceRegistrar, srv OsConfigZonalServiceServer) { |
| 350 |
s.RegisterService(&OsConfigZonalService_ServiceDesc, srv) |
| 351 |
} |
| 352 |
|
| 353 |
func _OsConfigZonalService_CreateOSPolicyAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 354 |
in := new(CreateOSPolicyAssignmentRequest) |
| 355 |
if err := dec(in); err != nil { |
| 356 |
return nil, err |
| 357 |
} |
| 358 |
if interceptor == nil { |
| 359 |
return srv.(OsConfigZonalServiceServer).CreateOSPolicyAssignment(ctx, in) |
| 360 |
} |
| 361 |
info := &grpc.UnaryServerInfo{ |
| 362 |
Server: srv, |
| 363 |
FullMethod: OsConfigZonalService_CreateOSPolicyAssignment_FullMethodName, |
| 364 |
} |
| 365 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 366 |
return srv.(OsConfigZonalServiceServer).CreateOSPolicyAssignment(ctx, req.(*CreateOSPolicyAssignmentRequest)) |
| 367 |
} |
| 368 |
return interceptor(ctx, in, info, handler) |
| 369 |
} |
| 370 |
|
| 371 |
func _OsConfigZonalService_UpdateOSPolicyAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 372 |
in := new(UpdateOSPolicyAssignmentRequest) |
| 373 |
if err := dec(in); err != nil { |
| 374 |
return nil, err |
| 375 |
} |
| 376 |
if interceptor == nil { |
| 377 |
return srv.(OsConfigZonalServiceServer).UpdateOSPolicyAssignment(ctx, in) |
| 378 |
} |
| 379 |
info := &grpc.UnaryServerInfo{ |
| 380 |
Server: srv, |
| 381 |
FullMethod: OsConfigZonalService_UpdateOSPolicyAssignment_FullMethodName, |
| 382 |
} |
| 383 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 384 |
return srv.(OsConfigZonalServiceServer).UpdateOSPolicyAssignment(ctx, req.(*UpdateOSPolicyAssignmentRequest)) |
| 385 |
} |
| 386 |
return interceptor(ctx, in, info, handler) |
| 387 |
} |
| 388 |
|
| 389 |
func _OsConfigZonalService_GetOSPolicyAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 390 |
in := new(GetOSPolicyAssignmentRequest) |
| 391 |
if err := dec(in); err != nil { |
| 392 |
return nil, err |
| 393 |
} |
| 394 |
if interceptor == nil { |
| 395 |
return srv.(OsConfigZonalServiceServer).GetOSPolicyAssignment(ctx, in) |
| 396 |
} |
| 397 |
info := &grpc.UnaryServerInfo{ |
| 398 |
Server: srv, |
| 399 |
FullMethod: OsConfigZonalService_GetOSPolicyAssignment_FullMethodName, |
| 400 |
} |
| 401 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 402 |
return srv.(OsConfigZonalServiceServer).GetOSPolicyAssignment(ctx, req.(*GetOSPolicyAssignmentRequest)) |
| 403 |
} |
| 404 |
return interceptor(ctx, in, info, handler) |
| 405 |
} |
| 406 |
|
| 407 |
func _OsConfigZonalService_ListOSPolicyAssignments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 408 |
in := new(ListOSPolicyAssignmentsRequest) |
| 409 |
if err := dec(in); err != nil { |
| 410 |
return nil, err |
| 411 |
} |
| 412 |
if interceptor == nil { |
| 413 |
return srv.(OsConfigZonalServiceServer).ListOSPolicyAssignments(ctx, in) |
| 414 |
} |
| 415 |
info := &grpc.UnaryServerInfo{ |
| 416 |
Server: srv, |
| 417 |
FullMethod: OsConfigZonalService_ListOSPolicyAssignments_FullMethodName, |
| 418 |
} |
| 419 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 420 |
return srv.(OsConfigZonalServiceServer).ListOSPolicyAssignments(ctx, req.(*ListOSPolicyAssignmentsRequest)) |
| 421 |
} |
| 422 |
return interceptor(ctx, in, info, handler) |
| 423 |
} |
| 424 |
|
| 425 |
func _OsConfigZonalService_ListOSPolicyAssignmentRevisions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 426 |
in := new(ListOSPolicyAssignmentRevisionsRequest) |
| 427 |
if err := dec(in); err != nil { |
| 428 |
return nil, err |
| 429 |
} |
| 430 |
if interceptor == nil { |
| 431 |
return srv.(OsConfigZonalServiceServer).ListOSPolicyAssignmentRevisions(ctx, in) |
| 432 |
} |
| 433 |
info := &grpc.UnaryServerInfo{ |
| 434 |
Server: srv, |
| 435 |
FullMethod: OsConfigZonalService_ListOSPolicyAssignmentRevisions_FullMethodName, |
| 436 |
} |
| 437 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 438 |
return srv.(OsConfigZonalServiceServer).ListOSPolicyAssignmentRevisions(ctx, req.(*ListOSPolicyAssignmentRevisionsRequest)) |
| 439 |
} |
| 440 |
return interceptor(ctx, in, info, handler) |
| 441 |
} |
| 442 |
|
| 443 |
func _OsConfigZonalService_DeleteOSPolicyAssignment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 444 |
in := new(DeleteOSPolicyAssignmentRequest) |
| 445 |
if err := dec(in); err != nil { |
| 446 |
return nil, err |
| 447 |
} |
| 448 |
if interceptor == nil { |
| 449 |
return srv.(OsConfigZonalServiceServer).DeleteOSPolicyAssignment(ctx, in) |
| 450 |
} |
| 451 |
info := &grpc.UnaryServerInfo{ |
| 452 |
Server: srv, |
| 453 |
FullMethod: OsConfigZonalService_DeleteOSPolicyAssignment_FullMethodName, |
| 454 |
} |
| 455 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 456 |
return srv.(OsConfigZonalServiceServer).DeleteOSPolicyAssignment(ctx, req.(*DeleteOSPolicyAssignmentRequest)) |
| 457 |
} |
| 458 |
return interceptor(ctx, in, info, handler) |
| 459 |
} |
| 460 |
|
| 461 |
func _OsConfigZonalService_GetOSPolicyAssignmentReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 462 |
in := new(GetOSPolicyAssignmentReportRequest) |
| 463 |
if err := dec(in); err != nil { |
| 464 |
return nil, err |
| 465 |
} |
| 466 |
if interceptor == nil { |
| 467 |
return srv.(OsConfigZonalServiceServer).GetOSPolicyAssignmentReport(ctx, in) |
| 468 |
} |
| 469 |
info := &grpc.UnaryServerInfo{ |
| 470 |
Server: srv, |
| 471 |
FullMethod: OsConfigZonalService_GetOSPolicyAssignmentReport_FullMethodName, |
| 472 |
} |
| 473 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 474 |
return srv.(OsConfigZonalServiceServer).GetOSPolicyAssignmentReport(ctx, req.(*GetOSPolicyAssignmentReportRequest)) |
| 475 |
} |
| 476 |
return interceptor(ctx, in, info, handler) |
| 477 |
} |
| 478 |
|
| 479 |
func _OsConfigZonalService_ListOSPolicyAssignmentReports_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 480 |
in := new(ListOSPolicyAssignmentReportsRequest) |
| 481 |
if err := dec(in); err != nil { |
| 482 |
return nil, err |
| 483 |
} |
| 484 |
if interceptor == nil { |
| 485 |
return srv.(OsConfigZonalServiceServer).ListOSPolicyAssignmentReports(ctx, in) |
| 486 |
} |
| 487 |
info := &grpc.UnaryServerInfo{ |
| 488 |
Server: srv, |
| 489 |
FullMethod: OsConfigZonalService_ListOSPolicyAssignmentReports_FullMethodName, |
| 490 |
} |
| 491 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 492 |
return srv.(OsConfigZonalServiceServer).ListOSPolicyAssignmentReports(ctx, req.(*ListOSPolicyAssignmentReportsRequest)) |
| 493 |
} |
| 494 |
return interceptor(ctx, in, info, handler) |
| 495 |
} |
| 496 |
|
| 497 |
func _OsConfigZonalService_GetInventory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 498 |
in := new(GetInventoryRequest) |
| 499 |
if err := dec(in); err != nil { |
| 500 |
return nil, err |
| 501 |
} |
| 502 |
if interceptor == nil { |
| 503 |
return srv.(OsConfigZonalServiceServer).GetInventory(ctx, in) |
| 504 |
} |
| 505 |
info := &grpc.UnaryServerInfo{ |
| 506 |
Server: srv, |
| 507 |
FullMethod: OsConfigZonalService_GetInventory_FullMethodName, |
| 508 |
} |
| 509 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 510 |
return srv.(OsConfigZonalServiceServer).GetInventory(ctx, req.(*GetInventoryRequest)) |
| 511 |
} |
| 512 |
return interceptor(ctx, in, info, handler) |
| 513 |
} |
| 514 |
|
| 515 |
func _OsConfigZonalService_ListInventories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 516 |
in := new(ListInventoriesRequest) |
| 517 |
if err := dec(in); err != nil { |
| 518 |
return nil, err |
| 519 |
} |
| 520 |
if interceptor == nil { |
| 521 |
return srv.(OsConfigZonalServiceServer).ListInventories(ctx, in) |
| 522 |
} |
| 523 |
info := &grpc.UnaryServerInfo{ |
| 524 |
Server: srv, |
| 525 |
FullMethod: OsConfigZonalService_ListInventories_FullMethodName, |
| 526 |
} |
| 527 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 528 |
return srv.(OsConfigZonalServiceServer).ListInventories(ctx, req.(*ListInventoriesRequest)) |
| 529 |
} |
| 530 |
return interceptor(ctx, in, info, handler) |
| 531 |
} |
| 532 |
|
| 533 |
func _OsConfigZonalService_GetVulnerabilityReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 534 |
in := new(GetVulnerabilityReportRequest) |
| 535 |
if err := dec(in); err != nil { |
| 536 |
return nil, err |
| 537 |
} |
| 538 |
if interceptor == nil { |
| 539 |
return srv.(OsConfigZonalServiceServer).GetVulnerabilityReport(ctx, in) |
| 540 |
} |
| 541 |
info := &grpc.UnaryServerInfo{ |
| 542 |
Server: srv, |
| 543 |
FullMethod: OsConfigZonalService_GetVulnerabilityReport_FullMethodName, |
| 544 |
} |
| 545 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 546 |
return srv.(OsConfigZonalServiceServer).GetVulnerabilityReport(ctx, req.(*GetVulnerabilityReportRequest)) |
| 547 |
} |
| 548 |
return interceptor(ctx, in, info, handler) |
| 549 |
} |
| 550 |
|
| 551 |
func _OsConfigZonalService_ListVulnerabilityReports_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 552 |
in := new(ListVulnerabilityReportsRequest) |
| 553 |
if err := dec(in); err != nil { |
| 554 |
return nil, err |
| 555 |
} |
| 556 |
if interceptor == nil { |
| 557 |
return srv.(OsConfigZonalServiceServer).ListVulnerabilityReports(ctx, in) |
| 558 |
} |
| 559 |
info := &grpc.UnaryServerInfo{ |
| 560 |
Server: srv, |
| 561 |
FullMethod: OsConfigZonalService_ListVulnerabilityReports_FullMethodName, |
| 562 |
} |
| 563 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 564 |
return srv.(OsConfigZonalServiceServer).ListVulnerabilityReports(ctx, req.(*ListVulnerabilityReportsRequest)) |
| 565 |
} |
| 566 |
return interceptor(ctx, in, info, handler) |
| 567 |
} |
| 568 |
|
| 569 |
// OsConfigZonalService_ServiceDesc is the grpc.ServiceDesc for OsConfigZonalService service. |
| 570 |
// It's only intended for direct use with grpc.RegisterService, |
| 571 |
// and not to be introspected or modified (even as a copy) |
| 572 |
var OsConfigZonalService_ServiceDesc = grpc.ServiceDesc{ |
| 573 |
ServiceName: "google.cloud.osconfig.v1.OsConfigZonalService", |
| 574 |
HandlerType: (*OsConfigZonalServiceServer)(nil), |
| 575 |
Methods: []grpc.MethodDesc{ |
| 576 |
{ |
| 577 |
MethodName: "CreateOSPolicyAssignment", |
| 578 |
Handler: _OsConfigZonalService_CreateOSPolicyAssignment_Handler, |
| 579 |
}, |
| 580 |
{ |
| 581 |
MethodName: "UpdateOSPolicyAssignment", |
| 582 |
Handler: _OsConfigZonalService_UpdateOSPolicyAssignment_Handler, |
| 583 |
}, |
| 584 |
{ |
| 585 |
MethodName: "GetOSPolicyAssignment", |
| 586 |
Handler: _OsConfigZonalService_GetOSPolicyAssignment_Handler, |
| 587 |
}, |
| 588 |
{ |
| 589 |
MethodName: "ListOSPolicyAssignments", |
| 590 |
Handler: _OsConfigZonalService_ListOSPolicyAssignments_Handler, |
| 591 |
}, |
| 592 |
{ |
| 593 |
MethodName: "ListOSPolicyAssignmentRevisions", |
| 594 |
Handler: _OsConfigZonalService_ListOSPolicyAssignmentRevisions_Handler, |
| 595 |
}, |
| 596 |
{ |
| 597 |
MethodName: "DeleteOSPolicyAssignment", |
| 598 |
Handler: _OsConfigZonalService_DeleteOSPolicyAssignment_Handler, |
| 599 |
}, |
| 600 |
{ |
| 601 |
MethodName: "GetOSPolicyAssignmentReport", |
| 602 |
Handler: _OsConfigZonalService_GetOSPolicyAssignmentReport_Handler, |
| 603 |
}, |
| 604 |
{ |
| 605 |
MethodName: "ListOSPolicyAssignmentReports", |
| 606 |
Handler: _OsConfigZonalService_ListOSPolicyAssignmentReports_Handler, |
| 607 |
}, |
| 608 |
{ |
| 609 |
MethodName: "GetInventory", |
| 610 |
Handler: _OsConfigZonalService_GetInventory_Handler, |
| 611 |
}, |
| 612 |
{ |
| 613 |
MethodName: "ListInventories", |
| 614 |
Handler: _OsConfigZonalService_ListInventories_Handler, |
| 615 |
}, |
| 616 |
{ |
| 617 |
MethodName: "GetVulnerabilityReport", |
| 618 |
Handler: _OsConfigZonalService_GetVulnerabilityReport_Handler, |
| 619 |
}, |
| 620 |
{ |
| 621 |
MethodName: "ListVulnerabilityReports", |
| 622 |
Handler: _OsConfigZonalService_ListVulnerabilityReports_Handler, |
| 623 |
}, |
| 624 |
}, |
| 625 |
Streams: []grpc.StreamDesc{}, |
| 626 |
Metadata: "google/cloud/osconfig/v1/osconfig_zonal_service.proto", |
| 627 |
} |