Stackdriver Monitoring V3 Client - Class CreateGroupRequest (1.7.1)

Reference documentation and code samples for the Stackdriver Monitoring V3 Client class CreateGroupRequest.

The CreateGroup request.

Generated from protobuf message google.monitoring.v3.CreateGroupRequest

Namespace

Google \ Cloud \ Monitoring \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The project in which to create the group. The format is: projects/[PROJECT_ID_OR_NUMBER]

↳ group Google\Cloud\Monitoring\V3\Group

Required. A group definition. It is an error to define the name field because the system assigns the name.

↳ validate_only bool

If true, validate this request but do not create the group.

getName

Required. The project in which to create the group. The format is: projects/[PROJECT_ID_OR_NUMBER]

Returns
TypeDescription
string

setName

Required. The project in which to create the group. The format is: projects/[PROJECT_ID_OR_NUMBER]

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGroup

Required. A group definition. It is an error to define the name field because the system assigns the name.

Returns
TypeDescription
Google\Cloud\Monitoring\V3\Group|null

hasGroup

clearGroup

setGroup

Required. A group definition. It is an error to define the name field because the system assigns the name.

Parameter
NameDescription
var Google\Cloud\Monitoring\V3\Group
Returns
TypeDescription
$this

getValidateOnly

If true, validate this request but do not create the group.

Returns
TypeDescription
bool

setValidateOnly

If true, validate this request but do not create the group.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
name string

Required. The project in which to create the group. The format is:

projects/[PROJECT_ID_OR_NUMBER]

group Google\Cloud\Monitoring\V3\Group

Required. A group definition. It is an error to define the name field because the system assigns the name.

Returns
TypeDescription
Google\Cloud\Monitoring\V3\CreateGroupRequest