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
- (::Google::Protobuf::Timestamp) — Output only. Creation time of this resource.
#description
def description() -> ::String
- (::String) — Optional. User-provided description for this network policy.
#description=
def description=(value) -> ::String
- value (::String) — Optional. User-provided description for this network policy.
- (::String) — Optional. User-provided description for this network policy.
#edge_services_cidr
def edge_services_cidr() -> ::String
- (::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
- 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.
- (::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
-
(::Google::Cloud::VmwareEngine::V1::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.
#external_ip=
def external_ip=(value) -> ::Google::Cloud::VmwareEngine::V1::NetworkPolicy::NetworkService
-
value (::Google::Cloud::VmwareEngine::V1::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.
-
(::Google::Cloud::VmwareEngine::V1::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.
#internet_access
def internet_access() -> ::Google::Cloud::VmwareEngine::V1::NetworkPolicy::NetworkService
- (::Google::Cloud::VmwareEngine::V1::NetworkPolicy::NetworkService) — Network service that allows VMware workloads to access the internet.
#internet_access=
def internet_access=(value) -> ::Google::Cloud::VmwareEngine::V1::NetworkPolicy::NetworkService
- value (::Google::Cloud::VmwareEngine::V1::NetworkPolicy::NetworkService) — Network service that allows VMware workloads to access the internet.
- (::Google::Cloud::VmwareEngine::V1::NetworkPolicy::NetworkService) — Network service that allows VMware workloads to access the internet.
#name
def name() -> ::String
-
(::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
- (::String) — Output only. System-generated unique identifier for the resource.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Last update time of this resource.
#vmware_engine_network
def vmware_engine_network() -> ::String
-
(::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
-
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.
-
(::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
-
(::String) — Output only. The canonical name of the VMware Engine network in the form:
projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}