Google Cloud Identity and Access Management (IAM) v2 API - Class Policy (1.0.0-beta02)

public sealed class Policy : IMessage<Policy>, IEquatable<Policy>, IDeepCloneable<Policy>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v2 API class Policy.

Data for an IAM policy.

Inheritance

Object > Policy

Namespace

Google.Cloud.Iam.V2

Assembly

Google.Cloud.Iam.V2.dll

Constructors

Policy()

public Policy()

Policy(Policy)

public Policy(Policy other)
Parameter
NameDescription
otherPolicy

Properties

Annotations

public MapField<string, string> Annotations { get; }

A key-value map to store arbitrary metadata for the Policy. Keys can be up to 63 characters. Values can be up to 255 characters.

Property Value
TypeDescription
MapField<String, String>

CreateTime

public Timestamp CreateTime { get; set; }

Output only. The time when the Policy was created.

Property Value
TypeDescription
Timestamp

DeleteTime

public Timestamp DeleteTime { get; set; }

Output only. The time when the Policy was deleted. Empty if the policy is not deleted.

Property Value
TypeDescription
Timestamp

DisplayName

public string DisplayName { get; set; }

A user-specified description of the Policy. This value can be up to 63 characters.

Property Value
TypeDescription
String

Etag

public string Etag { get; set; }

An opaque tag that identifies the current version of the Policy. IAM uses this value to help manage concurrent updates, so they do not cause one update to be overwritten by another.

If this field is present in a [CreatePolicy][] request, the value is ignored.

Property Value
TypeDescription
String

Kind

public string Kind { get; set; }

Output only. The kind of the Policy. Always contains the value DenyPolicy.

Property Value
TypeDescription
String

ManagingAuthority

public string ManagingAuthority { get; set; }

Immutable. Specifies that this policy is managed by an authority and can only be modified by that authority. Usage is restricted.

Property Value
TypeDescription
String

Name

public string Name { get; set; }

Immutable. The resource name of the Policy, which must be unique. Format: policies/{attachment_point}/denypolicies/{policy_id}

The attachment point is identified by its URL-encoded full resource name, which means that the forward-slash character, /, must be written as %2F. For example, policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy.

For organizations and folders, use the numeric ID in the full resource name. For projects, requests can use the alphanumeric or the numeric ID. Responses always contain the numeric ID.

Property Value
TypeDescription
String

Rules

public RepeatedField<PolicyRule> Rules { get; }

A list of rules that specify the behavior of the Policy. All of the rules should be of the kind specified in the Policy.

Property Value
TypeDescription
RepeatedField<PolicyRule>

Uid

public string Uid { get; set; }

Immutable. The globally unique ID of the Policy. Assigned automatically when the Policy is created.

Property Value
TypeDescription
String

UpdateTime

public Timestamp UpdateTime { get; set; }

Output only. The time when the Policy was last updated.

Property Value
TypeDescription
Timestamp