Reference documentation and code samples for the Google Cloud Network Management V1 Client class CreateConnectivityTestRequest.
Request for the CreateConnectivityTest method.
Generated from protobuf message google.cloud.networkmanagement.v1.CreateConnectivityTestRequest
Namespace
Google \ Cloud \ NetworkManagement \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent resource of the Connectivity Test to create: projects/{project_id}/locations/global
↳ test_id
string
Required. The logical name of the Connectivity Test in your project with the following restrictions: * * Must contain only lowercase letters, numbers, and hyphens. * * Must start with a letter. * * Must be between 1-40 characters. * * Must end with a number or a letter. * * Must be unique within the customer project
Required. The parent resource of the Connectivity Test to create:
projects/{project_id}/locations/global
Please see ReachabilityServiceClient::projectName() for help formatting this field.
testId
string
Required. The logical name of the Connectivity Test in your project
with the following restrictions:
Must contain only lowercase letters, numbers, and hyphens.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Network Management V1 Client - Class CreateConnectivityTestRequest (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/php/docs/reference/cloud-network-management/latest/V1.CreateConnectivityTestRequest)\n- [2.4.2](/php/docs/reference/cloud-network-management/2.4.2/V1.CreateConnectivityTestRequest)\n- [2.3.2](/php/docs/reference/cloud-network-management/2.3.2/V1.CreateConnectivityTestRequest)\n- [2.2.1](/php/docs/reference/cloud-network-management/2.2.1/V1.CreateConnectivityTestRequest)\n- [2.1.1](/php/docs/reference/cloud-network-management/2.1.1/V1.CreateConnectivityTestRequest)\n- [2.0.1](/php/docs/reference/cloud-network-management/2.0.1/V1.CreateConnectivityTestRequest)\n- [1.7.3](/php/docs/reference/cloud-network-management/1.7.3/V1.CreateConnectivityTestRequest)\n- [1.5.0](/php/docs/reference/cloud-network-management/1.5.0/V1.CreateConnectivityTestRequest)\n- [1.4.2](/php/docs/reference/cloud-network-management/1.4.2/V1.CreateConnectivityTestRequest)\n- [1.3.0](/php/docs/reference/cloud-network-management/1.3.0/V1.CreateConnectivityTestRequest)\n- [1.2.0](/php/docs/reference/cloud-network-management/1.2.0/V1.CreateConnectivityTestRequest)\n- [1.1.1](/php/docs/reference/cloud-network-management/1.1.1/V1.CreateConnectivityTestRequest)\n- [1.0.5](/php/docs/reference/cloud-network-management/1.0.5/V1.CreateConnectivityTestRequest) \nReference documentation and code samples for the Google Cloud Network Management V1 Client class CreateConnectivityTestRequest.\n\nRequest for the `CreateConnectivityTest` method.\n\nGenerated from protobuf message `google.cloud.networkmanagement.v1.CreateConnectivityTestRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetworkManagement \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The parent resource of the Connectivity Test to create:\n`projects/{project_id}/locations/global`\n\n### setParent\n\nRequired. The parent resource of the Connectivity Test to create:\n`projects/{project_id}/locations/global`\n\n### getTestId\n\nRequired. The logical name of the Connectivity Test in your project\nwith the following restrictions:\n\n- Must contain only lowercase letters, numbers, and hyphens.\n\n- Must start with a letter.\n\n- Must be between 1-40 characters.\n- Must end with a number or a letter.\n- Must be unique within the customer project\n\n### setTestId\n\nRequired. The logical name of the Connectivity Test in your project\nwith the following restrictions:\n\n- Must contain only lowercase letters, numbers, and hyphens.\n\n- Must start with a letter.\n\n- Must be between 1-40 characters.\n- Must end with a number or a letter.\n- Must be unique within the customer project\n\n### getResource\n\nRequired. A `ConnectivityTest` resource\n\n### hasResource\n\n### clearResource\n\n### setResource\n\nRequired. A `ConnectivityTest` resource\n\n### static::build"]]