Package com.google.cloud.osconfig.v1alpha
@Generated("by gapic-generator-java")
package com.google.cloud.osconfig.v1alpha
A client to OS Config API
The interfaces provided are listed below, along with usage samples.
======================= OsConfigZonalServiceClient =======================
Service Description: 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.
Sample for OsConfigZonalServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (OsConfigZonalServiceClient osConfigZonalServiceClient =
OsConfigZonalServiceClient.create()) {
OSPolicyAssignmentName name =
OSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[OS_POLICY_ASSIGNMENT]");
OSPolicyAssignment response = osConfigZonalServiceClient.getOSPolicyAssignment(name);
}
-
ClassesClassDescriptionService Description: Zonal OS Config APISettings class to configure an instance of
OsConfigZonalServiceClient.Builder for OsConfigZonalServiceSettings.