Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class NetworkPolicy.
Represents a network policy resource. Network policies are regional resources. You can use a network policy to enable or disable internet access and external IP access. Network policies are associated with a VMware Engine network, which might span across regions. For a given region, a network policy applies to all private clouds in the VMware Engine network associated with the policy.
Generated from protobuf message google.cloud.vmwareengine.v1.NetworkPolicy
Namespace
Google \ Cloud \ VmwareEngine \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The resource name of this network policy. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names
. For example: projects/my-project/locations/us-central1/networkPolicies/my-network-policy
↳ create_time
↳ update_time
↳ internet_access
↳ external_ip
NetworkPolicy\NetworkService
Network service that allows External IP addresses to be assigned to VMware workloads. This service can only be enabled when internet_access
is also enabled.
↳ edge_services_cidr
string
Required. IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
↳ uid
string
Output only. System-generated unique identifier for the resource.
↳ vmware_engine_network
string
Optional. The relative resource name of the VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where {project}
can either be a project number or a project ID.
↳ description
string
Optional. User-provided description for this network policy.
↳ vmware_engine_network_canonical
string
Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
getName
Output only. The resource name of this network policy.
Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names
.
For example: projects/my-project/locations/us-central1/networkPolicies/my-network-policy
string
setName
Output only. The resource name of this network policy.
Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names
.
For example: projects/my-project/locations/us-central1/networkPolicies/my-network-policy
var
string
$this
getCreateTime
Output only. Creation time of this resource.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Creation time of this resource.
$this
getUpdateTime
Output only. Last update time of this resource.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Last update time of this resource.
$this
getInternetAccess
Network service that allows VMware workloads to access the internet.
hasInternetAccess
clearInternetAccess
setInternetAccess
Network service that allows VMware workloads to access the internet.
$this
getExternalIp
Network service that allows External IP addresses to be assigned to VMware
workloads. This service can only be enabled when internet_access
is also
enabled.
hasExternalIp
clearExternalIp
setExternalIp
Network service that allows External IP addresses to be assigned to VMware
workloads. This service can only be enabled when internet_access
is also
enabled.
$this
getEdgeServicesCidr
Required. IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
string
setEdgeServicesCidr
Required. IP address range in CIDR notation used to create internet access and external IP access. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network.
var
string
$this
getUid
Output only. System-generated unique identifier for the resource.
string
setUid
Output only. System-generated unique identifier for the resource.
var
string
$this
getVmwareEngineNetwork
Optional. The relative resource name of the VMware Engine network.
Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where {project}
can either be a project number or a project ID.
string
setVmwareEngineNetwork
Optional. The relative resource name of the VMware Engine network.
Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
where {project}
can either be a project number or a project ID.
var
string
$this
getDescription
Optional. User-provided description for this network policy.
string
setDescription
Optional. User-provided description for this network policy.
var
string
$this
getVmwareEngineNetworkCanonical
Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
string
setVmwareEngineNetworkCanonical
Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}
var
string
$this