class Google::Apis::CloudresourcemanagerV3::Lien

A Lien represents an encumbrance on the actions that can be performed on a resource.

Attributes

create_time[RW]

The creation time of this Lien. Corresponds to the JSON property `createTime` @return [String]

name[RW]

A system-generated unique identifier for this Lien. Example: `liens/1234abcd` Corresponds to the JSON property `name` @return [String]

origin[RW]

A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically. Maximum length of 200 characters. Example: 'compute.googleapis.com' Corresponds to the JSON property `origin` @return [String]

parent[RW]

A reference to the resource this Lien is attached to. The server will validate the parent against those for which Liens are supported. Example: `projects/ 1234` Corresponds to the JSON property `parent` @return [String]

reason[RW]

Concise user-visible strings indicating why an action cannot be performed on a resource. Maximum length of 200 characters. Example: 'Holds production API key' Corresponds to the JSON property `reason` @return [String]

restrictions[RW]

The types of operations which should be blocked as a result of this Lien. Each value should correspond to an IAM permission. The server will validate the permissions against those for which Liens are supported. An empty list is meaningless and will be rejected. Example: ['resourcemanager.projects.delete'] Corresponds to the JSON property `restrictions` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudresourcemanager_v3/classes.rb, line 715
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudresourcemanager_v3/classes.rb, line 720
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @origin = args[:origin] if args.key?(:origin)
  @parent = args[:parent] if args.key?(:parent)
  @reason = args[:reason] if args.key?(:reason)
  @restrictions = args[:restrictions] if args.key?(:restrictions)
end