Google Cloud VMware Engine V1 API - Class Google::Cloud::VmwareEngine::V1::NetworkPolicy (v0.7.1)

Reference documentation and code samples for the Google Cloud VMware Engine V1 API class Google::Cloud::VmwareEngine::V1::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#description

def description() -> ::String
Returns
  • (::String) — Optional. User-provided description for this network policy.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Optional. User-provided description for this network policy.
Returns
  • (::String) — Optional. User-provided description for this network policy.

#edge_services_cidr

def edge_services_cidr() -> ::String
Returns
  • (::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.

#edge_services_cidr=

def edge_services_cidr=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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.

#external_ip

def external_ip() -> ::Google::Cloud::VmwareEngine::V1::NetworkPolicy::NetworkService
Returns

#external_ip=

def external_ip=(value) -> ::Google::Cloud::VmwareEngine::V1::NetworkPolicy::NetworkService
Parameter
Returns

#internet_access

def internet_access() -> ::Google::Cloud::VmwareEngine::V1::NetworkPolicy::NetworkService
Returns

#internet_access=

def internet_access=(value) -> ::Google::Cloud::VmwareEngine::V1::NetworkPolicy::NetworkService
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::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

#uid

def uid() -> ::String
Returns
  • (::String) — Output only. System-generated unique identifier for the resource.

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns

#vmware_engine_network

def vmware_engine_network() -> ::String
Returns
  • (::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.

#vmware_engine_network=

def vmware_engine_network=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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.

#vmware_engine_network_canonical

def vmware_engine_network_canonical() -> ::String
Returns
  • (::String) — Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}