public sealed class OsConfigZonalServiceClientImpl : OsConfigZonalServiceClient
OsConfigZonalService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.OsConfig.V1AlphaAssembly
Google.Cloud.OsConfig.V1Alpha.dll
Remarks
Zonal OS Config API
The OS Config service is the server-side component that allows users to manage package installations and patch jobs for Compute Engine VM instances.
Constructors
OsConfigZonalServiceClientImpl(OsConfigZonalService.OsConfigZonalServiceClient, OsConfigZonalServiceSettings)
public OsConfigZonalServiceClientImpl(OsConfigZonalService.OsConfigZonalServiceClient grpcClient, OsConfigZonalServiceSettings settings)
Constructs a client wrapper for the OsConfigZonalService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | OsConfigZonalService.OsConfigZonalServiceClient The underlying gRPC client. |
settings | OsConfigZonalServiceSettings The base OsConfigZonalServiceSettings used within this client. |
Properties
CreateOSPolicyAssignmentOperationsClient
public override OperationsClient CreateOSPolicyAssignmentOperationsClient { get; }
The long-running operations client for CreateOSPolicyAssignment
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteOSPolicyAssignmentOperationsClient
public override OperationsClient DeleteOSPolicyAssignmentOperationsClient { get; }
The long-running operations client for DeleteOSPolicyAssignment
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override OsConfigZonalService.OsConfigZonalServiceClient GrpcClient { get; }
The underlying gRPC OsConfigZonalService client
Property Value | |
---|---|
Type | Description |
OsConfigZonalService.OsConfigZonalServiceClient |
UpdateOSPolicyAssignmentOperationsClient
public override OperationsClient UpdateOSPolicyAssignmentOperationsClient { get; }
The long-running operations client for UpdateOSPolicyAssignment
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
CreateOSPolicyAssignment(CreateOSPolicyAssignmentRequest, CallSettings)
public override Operation<OSPolicyAssignment, OSPolicyAssignmentOperationMetadata> CreateOSPolicyAssignment(CreateOSPolicyAssignmentRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | CreateOSPolicyAssignmentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<OSPolicyAssignment, OSPolicyAssignmentOperationMetadata> | The RPC response. |
CreateOSPolicyAssignmentAsync(CreateOSPolicyAssignmentRequest, CallSettings)
public override Task<Operation<OSPolicyAssignment, OSPolicyAssignmentOperationMetadata>> CreateOSPolicyAssignmentAsync(CreateOSPolicyAssignmentRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | CreateOSPolicyAssignmentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<OSPolicyAssignment, OSPolicyAssignmentOperationMetadata>> | A Task containing the RPC response. |
DeleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest, CallSettings)
public override Operation<Empty, OSPolicyAssignmentOperationMetadata> DeleteOSPolicyAssignment(DeleteOSPolicyAssignmentRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | DeleteOSPolicyAssignmentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OSPolicyAssignmentOperationMetadata> | The RPC response. |
DeleteOSPolicyAssignmentAsync(DeleteOSPolicyAssignmentRequest, CallSettings)
public override Task<Operation<Empty, OSPolicyAssignmentOperationMetadata>> DeleteOSPolicyAssignmentAsync(DeleteOSPolicyAssignmentRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | DeleteOSPolicyAssignmentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OSPolicyAssignmentOperationMetadata>> | A Task containing the RPC response. |
GetInstanceOSPoliciesCompliance(GetInstanceOSPoliciesComplianceRequest, CallSettings)
[Obsolete]
public override InstanceOSPoliciesCompliance GetInstanceOSPoliciesCompliance(GetInstanceOSPoliciesComplianceRequest request, CallSettings callSettings = null)
Get OS policies compliance data for the specified Compute Engine VM instance.
Parameters | |
---|---|
Name | Description |
request | GetInstanceOSPoliciesComplianceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
InstanceOSPoliciesCompliance | The RPC response. |
GetInstanceOSPoliciesComplianceAsync(GetInstanceOSPoliciesComplianceRequest, CallSettings)
[Obsolete]
public override Task<InstanceOSPoliciesCompliance> GetInstanceOSPoliciesComplianceAsync(GetInstanceOSPoliciesComplianceRequest request, CallSettings callSettings = null)
Get OS policies compliance data for the specified Compute Engine VM instance.
Parameters | |
---|---|
Name | Description |
request | GetInstanceOSPoliciesComplianceRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<InstanceOSPoliciesCompliance> | A Task containing the RPC response. |
GetInventory(GetInventoryRequest, CallSettings)
public override Inventory GetInventory(GetInventoryRequest request, CallSettings callSettings = null)
Get inventory data for the specified VM instance. If the VM has no
associated inventory, the message NOT_FOUND
is returned.
Parameters | |
---|---|
Name | Description |
request | GetInventoryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Inventory | The RPC response. |
GetInventoryAsync(GetInventoryRequest, CallSettings)
public override Task<Inventory> GetInventoryAsync(GetInventoryRequest request, CallSettings callSettings = null)
Get inventory data for the specified VM instance. If the VM has no
associated inventory, the message NOT_FOUND
is returned.
Parameters | |
---|---|
Name | Description |
request | GetInventoryRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Inventory> | A Task containing the RPC response. |
GetOSPolicyAssignment(GetOSPolicyAssignmentRequest, CallSettings)
public override OSPolicyAssignment GetOSPolicyAssignment(GetOSPolicyAssignmentRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | GetOSPolicyAssignmentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OSPolicyAssignment | The RPC response. |
GetOSPolicyAssignmentAsync(GetOSPolicyAssignmentRequest, CallSettings)
public override Task<OSPolicyAssignment> GetOSPolicyAssignmentAsync(GetOSPolicyAssignmentRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | GetOSPolicyAssignmentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<OSPolicyAssignment> | A Task containing the RPC response. |
GetOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest, CallSettings)
public override OSPolicyAssignmentReport GetOSPolicyAssignmentReport(GetOSPolicyAssignmentReportRequest request, CallSettings callSettings = null)
Get the OS policy asssignment report for the specified Compute Engine VM instance.
Parameters | |
---|---|
Name | Description |
request | GetOSPolicyAssignmentReportRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OSPolicyAssignmentReport | The RPC response. |
GetOSPolicyAssignmentReportAsync(GetOSPolicyAssignmentReportRequest, CallSettings)
public override Task<OSPolicyAssignmentReport> GetOSPolicyAssignmentReportAsync(GetOSPolicyAssignmentReportRequest request, CallSettings callSettings = null)
Get the OS policy asssignment report for the specified Compute Engine VM instance.
Parameters | |
---|---|
Name | Description |
request | GetOSPolicyAssignmentReportRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<OSPolicyAssignmentReport> | A Task containing the RPC response. |
GetVulnerabilityReport(GetVulnerabilityReportRequest, CallSettings)
public override VulnerabilityReport GetVulnerabilityReport(GetVulnerabilityReportRequest request, CallSettings callSettings = null)
Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.
Parameters | |
---|---|
Name | Description |
request | GetVulnerabilityReportRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
VulnerabilityReport | The RPC response. |
GetVulnerabilityReportAsync(GetVulnerabilityReportRequest, CallSettings)
public override Task<VulnerabilityReport> GetVulnerabilityReportAsync(GetVulnerabilityReportRequest request, CallSettings callSettings = null)
Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.
Parameters | |
---|---|
Name | Description |
request | GetVulnerabilityReportRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<VulnerabilityReport> | A Task containing the RPC response. |
ListInstanceOSPoliciesCompliances(ListInstanceOSPoliciesCompliancesRequest, CallSettings)
[Obsolete]
public override PagedEnumerable<ListInstanceOSPoliciesCompliancesResponse, InstanceOSPoliciesCompliance> ListInstanceOSPoliciesCompliances(ListInstanceOSPoliciesCompliancesRequest request, CallSettings callSettings = null)
List OS policies compliance data for all Compute Engine VM instances in the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListInstanceOSPoliciesCompliancesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListInstanceOSPoliciesCompliancesResponse, InstanceOSPoliciesCompliance> | A pageable sequence of InstanceOSPoliciesCompliance resources. |
ListInstanceOSPoliciesCompliancesAsync(ListInstanceOSPoliciesCompliancesRequest, CallSettings)
[Obsolete]
public override PagedAsyncEnumerable<ListInstanceOSPoliciesCompliancesResponse, InstanceOSPoliciesCompliance> ListInstanceOSPoliciesCompliancesAsync(ListInstanceOSPoliciesCompliancesRequest request, CallSettings callSettings = null)
List OS policies compliance data for all Compute Engine VM instances in the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListInstanceOSPoliciesCompliancesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListInstanceOSPoliciesCompliancesResponse, InstanceOSPoliciesCompliance> | A pageable asynchronous sequence of InstanceOSPoliciesCompliance resources. |
ListInventories(ListInventoriesRequest, CallSettings)
public override PagedEnumerable<ListInventoriesResponse, Inventory> ListInventories(ListInventoriesRequest request, CallSettings callSettings = null)
List inventory data for all VM instances in the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListInventoriesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListInventoriesResponse, Inventory> | A pageable sequence of Inventory resources. |
ListInventoriesAsync(ListInventoriesRequest, CallSettings)
public override PagedAsyncEnumerable<ListInventoriesResponse, Inventory> ListInventoriesAsync(ListInventoriesRequest request, CallSettings callSettings = null)
List inventory data for all VM instances in the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListInventoriesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListInventoriesResponse, Inventory> | A pageable asynchronous sequence of Inventory resources. |
ListOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest, CallSettings)
public override PagedEnumerable<ListOSPolicyAssignmentReportsResponse, OSPolicyAssignmentReport> ListOSPolicyAssignmentReports(ListOSPolicyAssignmentReportsRequest request, CallSettings callSettings = null)
List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListOSPolicyAssignmentReportsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListOSPolicyAssignmentReportsResponse, OSPolicyAssignmentReport> | A pageable sequence of OSPolicyAssignmentReport resources. |
ListOSPolicyAssignmentReportsAsync(ListOSPolicyAssignmentReportsRequest, CallSettings)
public override PagedAsyncEnumerable<ListOSPolicyAssignmentReportsResponse, OSPolicyAssignmentReport> ListOSPolicyAssignmentReportsAsync(ListOSPolicyAssignmentReportsRequest request, CallSettings callSettings = null)
List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListOSPolicyAssignmentReportsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListOSPolicyAssignmentReportsResponse, OSPolicyAssignmentReport> | A pageable asynchronous sequence of OSPolicyAssignmentReport resources. |
ListOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest, CallSettings)
public override PagedEnumerable<ListOSPolicyAssignmentRevisionsResponse, OSPolicyAssignment> ListOSPolicyAssignmentRevisions(ListOSPolicyAssignmentRevisionsRequest request, CallSettings callSettings = null)
List the OS policy assignment revisions for a given OS policy assignment.
Parameters | |
---|---|
Name | Description |
request | ListOSPolicyAssignmentRevisionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListOSPolicyAssignmentRevisionsResponse, OSPolicyAssignment> | A pageable sequence of OSPolicyAssignment resources. |
ListOSPolicyAssignmentRevisionsAsync(ListOSPolicyAssignmentRevisionsRequest, CallSettings)
public override PagedAsyncEnumerable<ListOSPolicyAssignmentRevisionsResponse, OSPolicyAssignment> ListOSPolicyAssignmentRevisionsAsync(ListOSPolicyAssignmentRevisionsRequest request, CallSettings callSettings = null)
List the OS policy assignment revisions for a given OS policy assignment.
Parameters | |
---|---|
Name | Description |
request | ListOSPolicyAssignmentRevisionsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListOSPolicyAssignmentRevisionsResponse, OSPolicyAssignment> | A pageable asynchronous sequence of OSPolicyAssignment resources. |
ListOSPolicyAssignments(ListOSPolicyAssignmentsRequest, CallSettings)
public override PagedEnumerable<ListOSPolicyAssignmentsResponse, OSPolicyAssignment> ListOSPolicyAssignments(ListOSPolicyAssignmentsRequest request, CallSettings callSettings = null)
List the OS policy assignments under the parent resource.
For each OS policy assignment, the latest revision is returned.
Parameters | |
---|---|
Name | Description |
request | ListOSPolicyAssignmentsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListOSPolicyAssignmentsResponse, OSPolicyAssignment> | A pageable sequence of OSPolicyAssignment resources. |
ListOSPolicyAssignmentsAsync(ListOSPolicyAssignmentsRequest, CallSettings)
public override PagedAsyncEnumerable<ListOSPolicyAssignmentsResponse, OSPolicyAssignment> ListOSPolicyAssignmentsAsync(ListOSPolicyAssignmentsRequest request, CallSettings callSettings = null)
List the OS policy assignments under the parent resource.
For each OS policy assignment, the latest revision is returned.
Parameters | |
---|---|
Name | Description |
request | ListOSPolicyAssignmentsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListOSPolicyAssignmentsResponse, OSPolicyAssignment> | A pageable asynchronous sequence of OSPolicyAssignment resources. |
ListVulnerabilityReports(ListVulnerabilityReportsRequest, CallSettings)
public override PagedEnumerable<ListVulnerabilityReportsResponse, VulnerabilityReport> ListVulnerabilityReports(ListVulnerabilityReportsRequest request, CallSettings callSettings = null)
List vulnerability reports for all VM instances in the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListVulnerabilityReportsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListVulnerabilityReportsResponse, VulnerabilityReport> | A pageable sequence of VulnerabilityReport resources. |
ListVulnerabilityReportsAsync(ListVulnerabilityReportsRequest, CallSettings)
public override PagedAsyncEnumerable<ListVulnerabilityReportsResponse, VulnerabilityReport> ListVulnerabilityReportsAsync(ListVulnerabilityReportsRequest request, CallSettings callSettings = null)
List vulnerability reports for all VM instances in the specified zone.
Parameters | |
---|---|
Name | Description |
request | ListVulnerabilityReportsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListVulnerabilityReportsResponse, VulnerabilityReport> | A pageable asynchronous sequence of VulnerabilityReport resources. |
UpdateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest, CallSettings)
public override Operation<OSPolicyAssignment, OSPolicyAssignmentOperationMetadata> UpdateOSPolicyAssignment(UpdateOSPolicyAssignmentRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | UpdateOSPolicyAssignmentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<OSPolicyAssignment, OSPolicyAssignmentOperationMetadata> | The RPC response. |
UpdateOSPolicyAssignmentAsync(UpdateOSPolicyAssignmentRequest, CallSettings)
public override Task<Operation<OSPolicyAssignment, OSPolicyAssignmentOperationMetadata>> UpdateOSPolicyAssignmentAsync(UpdateOSPolicyAssignmentRequest request, CallSettings callSettings = null)
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.
Parameters | |
---|---|
Name | Description |
request | UpdateOSPolicyAssignmentRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<OSPolicyAssignment, OSPolicyAssignmentOperationMetadata>> | A Task containing the RPC response. |