Class: Google::Apis::CloudresourcemanagerV1::Lien
- Inherits:
-
Object
- Object
- Google::Apis::CloudresourcemanagerV1::Lien
- Defined in:
- generated/google/apis/cloudresourcemanager_v1/classes.rb,
generated/google/apis/cloudresourcemanager_v1/representations.rb,
generated/google/apis/cloudresourcemanager_v1/representations.rb
Overview
A Lien represents an encumbrance on the actions that can be performed on a resource.
Instance Attribute Summary collapse
-
#create_time ⇒ String
The creation time of this Lien.
-
#name ⇒ String
A system-generated unique identifier for this Lien.
-
#origin ⇒ String
A stable, user-visible/meaningful string identifying the origin of the Lien, intended to be inspected programmatically.
-
#parent ⇒ String
A reference to the resource this Lien is attached to.
-
#reason ⇒ String
Concise user-visible strings indicating why an action cannot be performed on a resource.
-
#restrictions ⇒ Array<String>
The types of operations which should be blocked as a result of this Lien.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Lien
constructor
A new instance of Lien.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Lien
Returns a new instance of Lien
1042 1043 1044 |
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1042 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The creation time of this Lien.
Corresponds to the JSON property createTime
1010 1011 1012 |
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1010 def create_time @create_time end |
#name ⇒ String
A system-generated unique identifier for this Lien.
Example: liens/1234abcd
Corresponds to the JSON property name
1024 1025 1026 |
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1024 def name @name end |
#origin ⇒ String
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
1018 1019 1020 |
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1018 def origin @origin end |
#parent ⇒ String
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
1005 1006 1007 |
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1005 def parent @parent end |
#reason ⇒ String
Concise user-visible strings indicating why an action cannot be performed
on a resource. Maximum lenth of 200 characters.
Example: 'Holds production API key'
Corresponds to the JSON property reason
1031 1032 1033 |
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1031 def reason @reason end |
#restrictions ⇒ Array<String>
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
1040 1041 1042 |
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1040 def restrictions @restrictions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1047 1048 1049 1050 1051 1052 1053 1054 |
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 1047 def update!(**args) @parent = args[:parent] if args.key?(:parent) @create_time = args[:create_time] if args.key?(:create_time) @origin = args[:origin] if args.key?(:origin) @name = args[:name] if args.key?(:name) @reason = args[:reason] if args.key?(:reason) @restrictions = args[:restrictions] if args.key?(:restrictions) end |