Close httplib2 connections.
Gets details of a specific ACL policy revision.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists all ACL policy revisions in a given ACL policy.
Retrieves the next page of results.
close()
Close httplib2 connections.
get(name, x__xgafv=None)
Gets details of a specific ACL policy revision.
Args:
name: string, Required. Redis ACL policy revision resource name using the form: `projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}/revisions/{revision_id}` where `location_id` refers to a Google Cloud region. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # The ACL policy revision resource.
"attachedClusters": [ # Output only. A list of clusters that are attached to this ACL policy revision.
"A String",
],
"createTime": "A String", # Output only. The timestamp that the revision was created.
"name": "A String", # Identifier. The name of the ACL policy revision. Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
"revisionNumber": "A String", # Output only. The revision number of the ACL policy revision.
"snapshot": { # The ACL policy resource. # Output only. The snapshot of the ACL policy at the time of revision creation.
"clusterAclPolicyAttachments": [ # Output only. The ACL policy attachment status for each attached cluster.
{ # ClusterAclPolicyAttachment stores the ACL policy status for an attached cluster for the revisions successfully applied, under application or failed.
"aclPolicyRevisionStatuses": [ # Output only. A list of status for various revisions of this ACL policy on the cluster.
{ # AclPolicyRevisionStatus stores the per-revision status for an attached cluster.
"aclPolicyRevision": "A String", # Output only. The resource name of the ACL policy revision this status refers to. Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
"aclPolicyRevisionNumber": "A String", # Output only. The revision number of the ACL policy revision this status refers to.
"errorMessage": "A String", # Output only. Human-readable error message providing more details for FAILED states.
"state": "A String", # Output only. AclPolicyRevision state.
},
],
"cluster": "A String", # Output only. The resource name of the attached Cluster. Format: "projects/{project}/locations/{location}/clusters/{cluster}"
},
],
"createTime": "A String", # Output only. The timestamp that the ACL policy was created.
"etag": "A String", # Output only. Etag for the ACL policy.
"name": "A String", # Identifier. Full resource path of the ACL policy.
"rules": [ # Required. The ACL rules within the ACL policy.
{ # A single ACL rule which defines the policy for a user.
"rule": "A String", # Required. The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
"username": "A String", # Required. Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Redis OSS.
},
],
"state": "A String", # Output only. The state of the ACL policy.
"updateTime": "A String", # Output only. The timestamp that the ACL policy was last updated.
"version": "A String", # Output only. Deprecated: Used in drift resolution.
},
}
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists all ACL policy revisions in a given ACL policy.
Args:
parent: string, Required. The name of the ACL policy to list revisions for. Format: "projects/{project_id}/locations/{location_id}/aclPolicies/{acl_policy_id}" (required)
pageSize: integer, Optional. The maximum number of items to return.
pageToken: string, Optional. The `next_page_token` value returned from a previous `ListAclPolicyRevisions` request, if any.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response for `ListAclPolicyRevisions`.
"aclPolicyRevisions": [ # A list of ACL policy revisions.
{ # The ACL policy revision resource.
"attachedClusters": [ # Output only. A list of clusters that are attached to this ACL policy revision.
"A String",
],
"createTime": "A String", # Output only. The timestamp that the revision was created.
"name": "A String", # Identifier. The name of the ACL policy revision. Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
"revisionNumber": "A String", # Output only. The revision number of the ACL policy revision.
"snapshot": { # The ACL policy resource. # Output only. The snapshot of the ACL policy at the time of revision creation.
"clusterAclPolicyAttachments": [ # Output only. The ACL policy attachment status for each attached cluster.
{ # ClusterAclPolicyAttachment stores the ACL policy status for an attached cluster for the revisions successfully applied, under application or failed.
"aclPolicyRevisionStatuses": [ # Output only. A list of status for various revisions of this ACL policy on the cluster.
{ # AclPolicyRevisionStatus stores the per-revision status for an attached cluster.
"aclPolicyRevision": "A String", # Output only. The resource name of the ACL policy revision this status refers to. Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
"aclPolicyRevisionNumber": "A String", # Output only. The revision number of the ACL policy revision this status refers to.
"errorMessage": "A String", # Output only. Human-readable error message providing more details for FAILED states.
"state": "A String", # Output only. AclPolicyRevision state.
},
],
"cluster": "A String", # Output only. The resource name of the attached Cluster. Format: "projects/{project}/locations/{location}/clusters/{cluster}"
},
],
"createTime": "A String", # Output only. The timestamp that the ACL policy was created.
"etag": "A String", # Output only. Etag for the ACL policy.
"name": "A String", # Identifier. Full resource path of the ACL policy.
"rules": [ # Required. The ACL rules within the ACL policy.
{ # A single ACL rule which defines the policy for a user.
"rule": "A String", # Required. The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Redis OSS: https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/
"username": "A String", # Required. Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Redis OSS.
},
],
"state": "A String", # Output only. The state of the ACL policy.
"updateTime": "A String", # Output only. The timestamp that the ACL policy was last updated.
"version": "A String", # Output only. Deprecated: Used in drift resolution.
},
},
],
"nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no more results in the list.
"unreachable": [ # Unordered list. Locations that could not be reached.
"A String",
],
}
list_next()
Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call 'execute()' on to request the next
page. Returns None if there are no more items in the collection.