Generated from protobuf messagegoogle.cloud.vmwareengine.v1.GetNetworkPolicyRequest
Namespace
Google \ Cloud \ VmwareEngine \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The resource name of the network policy to retrieve. Resource names are schemeless URIs that follow the conventions inhttps://cloud.google.com/apis/design/resource_names. For example:projects/my-project/locations/us-central1/networkPolicies/my-network-policy
getName
Required. The resource name of the network policy to retrieve.
Resource names are schemeless URIs that follow the conventions inhttps://cloud.google.com/apis/design/resource_names.
For example:projects/my-project/locations/us-central1/networkPolicies/my-network-policy
Returns
Type
Description
string
setName
Required. The resource name of the network policy to retrieve.
Resource names are schemeless URIs that follow the conventions inhttps://cloud.google.com/apis/design/resource_names.
For example:projects/my-project/locations/us-central1/networkPolicies/my-network-policy
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. The resource name of the network policy to retrieve.
Resource names are schemeless URIs that follow the conventions inhttps://cloud.google.com/apis/design/resource_names.
For example:projects/my-project/locations/us-central1/networkPolicies/my-network-policyPlease seeVmwareEngineClient::networkPolicyName()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 Vmware Engine V1 Client - Class GetNetworkPolicyRequest (1.1.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.4 (latest)](/php/docs/reference/cloud-vmware-engine/latest/V1.GetNetworkPolicyRequest)\n- [1.1.3](/php/docs/reference/cloud-vmware-engine/1.1.3/V1.GetNetworkPolicyRequest)\n- [1.0.0](/php/docs/reference/cloud-vmware-engine/1.0.0/V1.GetNetworkPolicyRequest)\n- [0.5.6](/php/docs/reference/cloud-vmware-engine/0.5.6/V1.GetNetworkPolicyRequest)\n- [0.4.0](/php/docs/reference/cloud-vmware-engine/0.4.0/V1.GetNetworkPolicyRequest)\n- [0.3.3](/php/docs/reference/cloud-vmware-engine/0.3.3/V1.GetNetworkPolicyRequest)\n- [0.2.1](/php/docs/reference/cloud-vmware-engine/0.2.1/V1.GetNetworkPolicyRequest)\n- [0.1.4](/php/docs/reference/cloud-vmware-engine/0.1.4/V1.GetNetworkPolicyRequest) \nReference documentation and code samples for the Google Cloud Vmware Engine V1 Client class GetNetworkPolicyRequest.\n\nRequest message for\n[VmwareEngine.GetNetworkPolicy](/php/docs/reference/cloud-vmware-engine/latest/V1.Client.VmwareEngineClient#_Google_Cloud_VmwareEngine_V1_Client_VmwareEngineClient__getNetworkPolicy__)\n\nGenerated from protobuf message `google.cloud.vmwareengine.v1.GetNetworkPolicyRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ VmwareEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The resource name of the network policy to retrieve.\n\nResource names are schemeless URIs that follow the conventions in\n\u003chttps://cloud.google.com/apis/design/resource_names\u003e.\nFor example:\n`projects/my-project/locations/us-central1/networkPolicies/my-network-policy`\n\n### setName\n\nRequired. The resource name of the network policy to retrieve.\n\nResource names are schemeless URIs that follow the conventions in\n\u003chttps://cloud.google.com/apis/design/resource_names\u003e.\nFor example:\n`projects/my-project/locations/us-central1/networkPolicies/my-network-policy`\n\n### static::build"]]