Google Cloud Artifact Registry V1 Client - Class CreateRuleRequest (1.1.1)

Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class CreateRuleRequest.

The request to create a new rule.

Generated from protobuf message google.devtools.artifactregistry.v1.CreateRuleRequest

Namespace

Google \ Cloud \ ArtifactRegistry \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The name of the parent resource where the rule will be created.

↳ rule_id string

The rule id to use for this repository.

↳ rule Google\Cloud\ArtifactRegistry\V1\Rule

The rule to be created.

getParent

Required. The name of the parent resource where the rule will be created.

Returns
Type Description
string

setParent

Required. The name of the parent resource where the rule will be created.

Parameter
Name Description
var string
Returns
Type Description
$this

getRuleId

The rule id to use for this repository.

Returns
Type Description
string

setRuleId

The rule id to use for this repository.

Parameter
Name Description
var string
Returns
Type Description
$this

getRule

The rule to be created.

Returns
Type Description
Google\Cloud\ArtifactRegistry\V1\Rule|null

hasRule

clearRule

setRule

The rule to be created.

Parameter
Name Description
var Google\Cloud\ArtifactRegistry\V1\Rule
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The name of the parent resource where the rule will be created. Please see Google\Cloud\ArtifactRegistry\V1\ArtifactRegistryClient::repositoryName() for help formatting this field.

rule Google\Cloud\ArtifactRegistry\V1\Rule

The rule to be created.

ruleId string

The rule id to use for this repository.

Returns
Type Description
Google\Cloud\ArtifactRegistry\V1\CreateRuleRequest