Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource

The "connectivityTests" collection of methods.

Inheritance
System.Object
ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.NetworkManagement.v1
Assembly: Google.Apis.NetworkManagement.v1.dll
Syntax
public class ConnectivityTestsResource

Constructors

ConnectivityTestsResource(IClientService)

Constructs a new resource.

Declaration
public ConnectivityTestsResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.IClientService service

Methods

Create(ConnectivityTest, String)

Creates a new Connectivity Test. After you create a test, the reachability analysis is performed as part of the long running operation, which completes when the analysis completes. If the endpoint specifications in ConnectivityTest are invalid (for example, containing non-existent resources in the network, or you don't have read permissions to the network configurations of listed projects), then the reachability result returns a value of UNKNOWN. If the endpoint specifications in ConnectivityTest are incomplete, the reachability result returns a value of AMBIGUOUS. For more information, see the Connectivity Test documentation.

Declaration
public virtual ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.CreateRequest Create(ConnectivityTest body, string parent)
Parameters
Type Name Description
ConnectivityTest body

The body of the request.

System.String parent

Required. The parent resource of the Connectivity Test to create: projects/{project_id}/locations/global

Returns
Type Description
ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.CreateRequest

Delete(String)

Deletes a specific ConnectivityTest.

Declaration
public virtual ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
System.String name

Required. Connectivity Test resource name using the form: projects/{project_id}/locations/global/connectivityTests/{test_id}

Returns
Type Description
ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.DeleteRequest

Get(String)

Gets the details of a specific Connectivity Test.

Declaration
public virtual ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.GetRequest Get(string name)
Parameters
Type Name Description
System.String name

Required. ConnectivityTest resource name using the form: projects/{project_id}/locations/global/connectivityTests/{test_id}

Returns
Type Description
ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.GetRequest

GetIamPolicy(String)

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

Declaration
public virtual ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.GetIamPolicyRequest GetIamPolicy(string resource)
Parameters
Type Name Description
System.String resource

REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.GetIamPolicyRequest

List(String)

Lists all Connectivity Tests owned by a project.

Declaration
public virtual ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.ListRequest List(string parent)
Parameters
Type Name Description
System.String parent

Required. The parent resource of the Connectivity Tests: projects/{project_id}/locations/global

Returns
Type Description
ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.ListRequest

Patch(ConnectivityTest, String)

Updates the configuration of an existing ConnectivityTest. After you update a test, the reachability analysis is performed as part of the long running operation, which completes when the analysis completes. The Reachability state in the test resource is updated with the new result. If the endpoint specifications in ConnectivityTest are invalid (for example, they contain non-existent resources in the network, or the user does not have read permissions to the network configurations of listed projects), then the reachability result returns a value of UNKNOWN. If the endpoint specifications in ConnectivityTest are incomplete, the reachability result returns a value of AMBIGUOUS. See the documentation in ConnectivityTest for for more details.

Declaration
public virtual ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.PatchRequest Patch(ConnectivityTest body, string name)
Parameters
Type Name Description
ConnectivityTest body

The body of the request.

System.String name

Required. Unique name of the resource using the form: projects/{project_id}/locations/global/connectivityTests/{test_id}

Returns
Type Description
ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.PatchRequest

Rerun(RerunConnectivityTestRequest, String)

Rerun an existing ConnectivityTest. After the user triggers the rerun, the reachability analysis is performed as part of the long running operation, which completes when the analysis completes. Even though the test configuration remains the same, the reachability result may change due to underlying network configuration changes. If the endpoint specifications in ConnectivityTest become invalid (for example, specified resources are deleted in the network, or you lost read permissions to the network configurations of listed projects), then the reachability result returns a value of UNKNOWN.

Declaration
public virtual ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.RerunRequest Rerun(RerunConnectivityTestRequest body, string name)
Parameters
Type Name Description
RerunConnectivityTestRequest body

The body of the request.

System.String name

Required. Connectivity Test resource name using the form: projects/{project_id}/locations/global/connectivityTests/{test_id}

Returns
Type Description
ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.RerunRequest

SetIamPolicy(SetIamPolicyRequest, String)

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

Declaration
public virtual ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

System.String resource

REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, String)

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

Declaration
public virtual ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

System.String resource

REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.GlobalResource.ConnectivityTestsResource.TestIamPermissionsRequest
In This Article
Back to top