Google Cloud Vmware Engine V1 Client - Class NetworkService (0.4.0)

Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class NetworkService.

Represents a network service that is managed by a NetworkPolicy resource.

A network service provides a way to control an aspect of external access to VMware workloads. For example, whether the VMware workloads in the private clouds governed by a network policy can access or be accessed from the internet.

Generated from protobuf message google.cloud.vmwareengine.v1.NetworkPolicy.NetworkService

Namespace

Google \ Cloud \ VmwareEngine \ V1 \ NetworkPolicy

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ enabled bool

True if the service is enabled; false otherwise.

↳ state int

Output only. State of the service. New values may be added to this enum when appropriate.

getEnabled

True if the service is enabled; false otherwise.

Returns
TypeDescription
bool

setEnabled

True if the service is enabled; false otherwise.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getState

Output only. State of the service. New values may be added to this enum when appropriate.

Returns
TypeDescription
int

setState

Output only. State of the service. New values may be added to this enum when appropriate.

Parameter
NameDescription
var int
Returns
TypeDescription
$this