Class ProjectsResource.LocationsResource.NetworkPoliciesResource
The "networkPolicies" collection of methods.
Inherited Members
Namespace: Google.Apis.VMwareEngine.v1
Assembly: Google.Apis.VMwareEngine.v1.dll
Syntax
public class ProjectsResource.LocationsResource.NetworkPoliciesResource
Constructors
NetworkPoliciesResource(IClientService)
Constructs a new resource.
Declaration
public NetworkPoliciesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
ExternalAccessRules
Gets the ExternalAccessRules resource.
Declaration
public virtual ProjectsResource.LocationsResource.NetworkPoliciesResource.ExternalAccessRulesResource ExternalAccessRules { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.NetworkPoliciesResource.ExternalAccessRulesResource |
Methods
Create(NetworkPolicy, string)
Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.
Declaration
public virtual ProjectsResource.LocationsResource.NetworkPoliciesResource.CreateRequest Create(NetworkPolicy body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkPolicy | body | The body of the request. |
| string | parent | Required. The resource name of the location (region) to create the new network policy in. Resource
names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names. For example:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.NetworkPoliciesResource.CreateRequest |
Delete(string)
Deletes a NetworkPolicy resource. A network policy cannot be deleted when NetworkService.state
is set to RECONCILING for either its external IP or internet access service.
Declaration
public virtual ProjectsResource.LocationsResource.NetworkPoliciesResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the network policy to delete. Resource names are schemeless URIs that
follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.NetworkPoliciesResource.DeleteRequest |
FetchExternalAddresses(string)
Lists external IP addresses assigned to VMware workload VMs within the scope of the given network policy.
Declaration
public virtual ProjectsResource.LocationsResource.NetworkPoliciesResource.FetchExternalAddressesRequest FetchExternalAddresses(string networkPolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| string | networkPolicy | Required. The resource name of the network policy to query for assigned external IP addresses.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names. For example:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.NetworkPoliciesResource.FetchExternalAddressesRequest |
Get(string)
Retrieves a NetworkPolicy resource by its resource name.
Declaration
public virtual ProjectsResource.LocationsResource.NetworkPoliciesResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the network policy to retrieve. Resource names are schemeless URIs
that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.NetworkPoliciesResource.GetRequest |
List(string)
Lists NetworkPolicy resources in a specified project and location.
Declaration
public virtual ProjectsResource.LocationsResource.NetworkPoliciesResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The resource name of the location (region) to query for network policies. Resource names
are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names. For example:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.NetworkPoliciesResource.ListRequest |
Patch(NetworkPolicy, string)
Modifies a NetworkPolicy resource. Only the following fields can be updated: internet_access,
external_ip, edge_services_cidr. Only fields specified in updateMask are applied. When
updating a network policy, the external IP network service can only be disabled if there are no
external IP addresses present in the scope of the policy. Also, a NetworkService cannot be updated
when NetworkService.state is set to RECONCILING. During operation processing, the resource is
temporarily in the ACTIVE state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the processing fully
completes.
Declaration
public virtual ProjectsResource.LocationsResource.NetworkPoliciesResource.PatchRequest Patch(NetworkPolicy body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkPolicy | body | The body of the request. |
| string | name | Output only. Identifier. 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: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.NetworkPoliciesResource.PatchRequest |