Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class CreateOrgPolicyViolationsPreviewRequest.
CreateOrgPolicyViolationsPreviewRequest is the request message for OrgPolicyViolationsPreviewService.CreateOrgPolicyViolationsPreview.
Generated from protobuf message google.cloud.policysimulator.v1.CreateOrgPolicyViolationsPreviewRequest
Namespace
Google \ Cloud \ PolicySimulator \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: |
↳ org_policy_violations_preview |
OrgPolicyViolationsPreview
Required. The OrgPolicyViolationsPreview to generate. |
↳ org_policy_violations_preview_id |
string
Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If not provided, a random ID will be generated. |
getParent
Required. The organization under which this OrgPolicyViolationsPreview will be created.
Example: organizations/my-example-org/locations/global
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The organization under which this OrgPolicyViolationsPreview will be created.
Example: organizations/my-example-org/locations/global
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOrgPolicyViolationsPreview
Required. The OrgPolicyViolationsPreview to generate.
| Returns | |
|---|---|
| Type | Description |
OrgPolicyViolationsPreview|null |
|
hasOrgPolicyViolationsPreview
clearOrgPolicyViolationsPreview
setOrgPolicyViolationsPreview
Required. The OrgPolicyViolationsPreview to generate.
| Parameter | |
|---|---|
| Name | Description |
var |
OrgPolicyViolationsPreview
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOrgPolicyViolationsPreviewId
Optional. An optional user-specified ID for the OrgPolicyViolationsPreview.
If not provided, a random ID will be generated.
| Returns | |
|---|---|
| Type | Description |
string |
|
setOrgPolicyViolationsPreviewId
Optional. An optional user-specified ID for the OrgPolicyViolationsPreview.
If not provided, a random ID will be generated.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The organization under which this OrgPolicyViolationsPreview will be created. Example: |
orgPolicyViolationsPreview |
OrgPolicyViolationsPreview
Required. The OrgPolicyViolationsPreview to generate. |
orgPolicyViolationsPreviewId |
string
Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If not provided, a random ID will be generated. |
| Returns | |
|---|---|
| Type | Description |
CreateOrgPolicyViolationsPreviewRequest |
|