Reference documentation and code samples for the Google Cloud OsConfig V1 Client class GetOSPolicyAssignmentRequest.
A request message to get an OS policy assignment
Generated from protobuf messagegoogle.cloud.osconfig.v1.GetOSPolicyAssignmentRequest
Namespace
Google \ Cloud \ OsConfig \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The resource name of OS policy assignment. Format:projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId}
getName
Required. The resource name of OS policy assignment.
Required. The resource name of OS policy assignment.
Format:projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId}Please seeOsConfigZonalServiceClient::oSPolicyAssignmentName()for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud OsConfig V1 Client - Class GetOSPolicyAssignmentRequest (2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/php/docs/reference/cloud-osconfig/latest/V1.GetOSPolicyAssignmentRequest)\n- [2.0.5](/php/docs/reference/cloud-osconfig/2.0.5/V1.GetOSPolicyAssignmentRequest)\n- [1.3.5](/php/docs/reference/cloud-osconfig/1.3.5/V1.GetOSPolicyAssignmentRequest)\n- [1.2.2](/php/docs/reference/cloud-osconfig/1.2.2/V1.GetOSPolicyAssignmentRequest)\n- [1.1.1](/php/docs/reference/cloud-osconfig/1.1.1/V1.GetOSPolicyAssignmentRequest)\n- [1.0.5](/php/docs/reference/cloud-osconfig/1.0.5/V1.GetOSPolicyAssignmentRequest) \nReference documentation and code samples for the Google Cloud OsConfig V1 Client class GetOSPolicyAssignmentRequest.\n\nA request message to get an OS policy assignment\n\nGenerated from protobuf message `google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsConfig \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The resource name of OS policy assignment.\n\nFormat:\n`projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId}`\n\n### setName\n\nRequired. The resource name of OS policy assignment.\n\nFormat:\n`projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId}`\n\n### static::build"]]