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

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

↳ 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
Type Description
string

setParent

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

Parameter
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getResource

Required. A ConnectivityTest resource

Returns
Type Description
Google\Cloud\NetworkManagement\V1\ConnectivityTest|null

hasResource

clearResource

setResource

Required. A ConnectivityTest resource

Parameter
Name Description
var Google\Cloud\NetworkManagement\V1\ConnectivityTest
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

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

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.
  • 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

Returns
Type Description
Google\Cloud\NetworkManagement\V1\CreateConnectivityTestRequest