Reference documentation and code samples for the Google Cloud Network Services V1 Client class CreateServiceLbPolicyRequest.
Request used by the ServiceLbPolicy method.
Generated from protobuf message google.cloud.networkservices.v1.CreateServiceLbPolicyRequest
Namespace
Google \ Cloud \ NetworkServices \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The parent resource of the ServiceLbPolicy. Must be in the format |
↳ service_lb_policy_id |
string
Required. Short name of the ServiceLbPolicy resource to be created. E.g. for resource name |
↳ service_lb_policy |
ServiceLbPolicy
Required. ServiceLbPolicy resource to be created. |
getParent
Required. The parent resource of the ServiceLbPolicy. Must be in the
format projects/{project}/locations/{location}.
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The parent resource of the ServiceLbPolicy. Must be in the
format projects/{project}/locations/{location}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getServiceLbPolicyId
Required. Short name of the ServiceLbPolicy resource to be created.
E.g. for resource name
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.
the id is value of {service_lb_policy_name}
| Returns | |
|---|---|
| Type | Description |
string |
|
setServiceLbPolicyId
Required. Short name of the ServiceLbPolicy resource to be created.
E.g. for resource name
projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.
the id is value of {service_lb_policy_name}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getServiceLbPolicy
Required. ServiceLbPolicy resource to be created.
| Returns | |
|---|---|
| Type | Description |
ServiceLbPolicy|null |
|
hasServiceLbPolicy
clearServiceLbPolicy
setServiceLbPolicy
Required. ServiceLbPolicy resource to be created.
| Parameter | |
|---|---|
| Name | Description |
var |
ServiceLbPolicy
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The parent resource of the ServiceLbPolicy. Must be in the
format |
serviceLbPolicy |
ServiceLbPolicy
Required. ServiceLbPolicy resource to be created. |
serviceLbPolicyId |
string
Required. Short name of the ServiceLbPolicy resource to be created.
E.g. for resource name
|
| Returns | |
|---|---|
| Type | Description |
CreateServiceLbPolicyRequest |
|