- Resource: ConsumerEnforcementAction
- ProjectAccessRestrictionConfig
- State
- ConsumerScope
- ProductScope
- DenyReason
- ReasonCode
- Methods
Resource: ConsumerEnforcementAction
Represents a partner action taken to enforce the partner's Vendor Agreement.
| JSON representation |
|---|
{ "name": string, "uid": string, "etag": string, "state": enum ( |
| Fields | |
|---|---|
name |
Identifier. Name of the ConsumerEnforcementAction resource. Format: |
uid |
Output only. Unique identifier of the resource. |
etag |
This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
state |
Output only. Current lifecycle state of the resource. |
createTime |
Output only. Timestamp when the resource was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Timestamp when the resource was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
succeedTime |
Output only. Timestamp when the enforcement action succeeded. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
displayName |
Optional. Human-readable display name of the resource. Maximum length is 63 characters. |
labels |
Optional. User-defined labels for the resource. An object containing a list of |
consumerScope |
Required. Immutable. Consumer scope of the enforcement action. |
productScope |
Required. Immutable. Product scope of the enforcement action. |
denyReason |
Output only. Reason for denial. Present when the resource state is |
Union field action. Required. The configured enforcement action. action can be only one of the following: |
|
projectAccessRestrictionAction |
Optional. Immutable. Restricts product access for consumer projects. |
ProjectAccessRestrictionConfig
Configuration for an access restriction that applies to consumer projects.
While an access restriction applies to a project, the project is prevented from being used as the client project in requests accessing services provided by the relevant products. Access restriction is non-destructive, and does not modify the consumer's procurement state. Consumer project access is restored automatically when the restriction is deleted or ceases to apply to a project.
| JSON representation |
|---|
{ "falsePositiveGuardDisabled": boolean } |
| Fields | |
|---|---|
falsePositiveGuardDisabled |
Optional. Controls whether Google guards against false positives. When enabled, Google will guard against disruptive enforcement actions that could result from false-positive findings of Vendor Agreement violation or unintentionally overbroad enforcement by the partner. Google will make its own determination based on information available to Google as to whether the enforcement action should proceed, and at its discretion may deny the enforcement action. Google may at its discretion provide details about the basis for its determination when a requested enforcement action is denied, but Google is not obligated to do so, and Google may make determinations based on information that cannot be shared with the partner. If the partner does not agree with the determination, the partner can apply a new enforcement action without the guard. |
State
Represents the lifecycle state of the enforcement action.
New values may be added to this enum in future.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
Unspecified state. Unused. |
RUNNING |
The enforcement action is running. This is the initial state of the resource and persists while the If the operation is cancelled or otherwise ends before any enforcement effects occur, the resource will be removed. Otherwise, when the operation is done the resource state will resolve to one of the following states.
|
SUCCEEDED |
The enforcement action was accepted and successfully applied. Any ongoing effects of the enforcement action are active. |
DENIED |
The enforcement action was not accepted and did not take effect for the reason detailed in denyReason. |
FAILED |
A state transition failed due to a transient or internal system error. Enforcement behavior may be inconsistent. Deletion of a resource in this state will remove any ongoing effects. |
ConsumerScope
Specifies the target consumer resource entity for the enforcement action.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field target_consumer_entity. Required. Exactly one target resource identifier must be set. target_consumer_entity can be only one of the following: |
|
project |
Targets a single project resource. The scope of the enforcement action is limited to the specified project. Must exist at the time the enforcement action is created. Must be specified using project_number format. Format: |
billingAccount |
Targets a billing account resource. The scope of the enforcement action covers the billing account and all projects linked to it. This scope is dynamic. Any effects applied at the time the enforcement action is created are applied to the entities in scope at that time. Any ongoing effects of the enforcement action apply to the entities in scope at the relevant time. Must exist at the time the enforcement action is created. This field cannot be used to target a reseller parent billing account; use Format: |
resellerParentBillingAccount |
Targets the parent billing account of a Google Cloud reseller. The scope of the enforcement action covers the target billing account in the same manner as This scope is dynamic. Any effects applied at the time the enforcement action is created are applied to the entities in scope at that time. Any ongoing effects of the enforcement action apply to the entities in scope at the relevant time. Must exist at the time the enforcement action is created. This field cannot be used to target a non-reseller parent billing account; use Format: |
organization |
Targets an organization resource. The scope of the enforcement action covers all projects within the organization, as well as all billing accounts within the organization, and all projects linked to those billing accounts. This scope is dynamic. Any effects applied at the time the enforcement action is created are applied to the entities in scope at that time. Any ongoing effects of the enforcement action apply to the entities in scope at the relevant time. Must exist at the time the enforcement action is created. Format: |
ProductScope
Defines the product scope of the enforcement action.
| JSON representation |
|---|
{ "aiplatformPublisherId": string } |
| Fields | |
|---|---|
aiplatformPublisherId |
Optional. Targets all managed model products in AI Platform Model Garden parented by the specified publisher ID. In the AI Platform Model Garden, a Format: |
DenyReason
Explanation for why an enforcement action was not applied.
| JSON representation |
|---|
{
"reasonCode": enum ( |
| Fields | |
|---|---|
reasonCode |
Output only. The reason code. Always present when enforcement is denied. |
detailMessage |
Output only. Optional additional human-readable message explaining why the enforcement action was denied. |
ReasonCode
Code indicating why the enforcement action was denied by Google.
| Enums | |
|---|---|
REASON_CODE_UNSPECIFIED |
Unspecified reason. Unused. |
EXEMPT |
The target consumer entity (or a sub-entity lower in the entity hierarchy) is exempt from API-initiated application of the requested enforcement action. To proceed with enforcement against the consumer, contact Google. |
FALSE_POSITIVE_GUARD |
The enforcement action was denied because false positive guard mode was requested and false positive protection was triggered. |
Methods |
|
|---|---|
|
Creates a ConsumerEnforcementAction resource. |
|
Deletes a ConsumerEnforcementAction resource. |
|
Gets a ConsumerEnforcementAction resource by name. |
|
Lists ConsumerEnforcementActions under a parent location. |
|
Updates an existing ConsumerEnforcementAction resource. |