Google Cloud Network Management V1 Client - Class CreateConnectivityTestRequest (1.0.5)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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

↳ resource Google\Cloud\NetworkManagement\V1\ConnectivityTest

Required. A ConnectivityTest resource

getParent

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

Returns
TypeDescription
string

setParent

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTestId

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
Returns
TypeDescription
string

setTestId

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
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResource

Required. A ConnectivityTest resource

Returns
TypeDescription
Google\Cloud\NetworkManagement\V1\ConnectivityTest|null

hasResource

clearResource

setResource

Required. A ConnectivityTest resource

Parameter
NameDescription
var Google\Cloud\NetworkManagement\V1\ConnectivityTest
Returns
TypeDescription
$this