Class: Google::Apis::CloudresourcemanagerV3::TagHold
- Inherits:
-
Object
- Object
- Google::Apis::CloudresourcemanagerV3::TagHold
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudresourcemanager_v3/classes.rb,
lib/google/apis/cloudresourcemanager_v3/representations.rb,
lib/google/apis/cloudresourcemanager_v3/representations.rb
Overview
A TagHold represents the use of a TagValue that is not captured by TagBindings.
If a TagValue has any TagHolds, deletion will be blocked. This resource is
intended to be created in the same cloud location as the holder.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#help_link ⇒ String
Optional.
-
#holder ⇒ String
Required.
-
#name ⇒ String
Output only.
-
#origin ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TagHold
constructor
A new instance of TagHold.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TagHold
Returns a new instance of TagHold.
1908 1909 1910 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1908 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time this TagHold was created.
Corresponds to the JSON property createTime
1878 1879 1880 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1878 def create_time @create_time end |
#help_link ⇒ String
Optional. A URL where an end user can learn more about removing this hold. E.g.
https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-
managing
Corresponds to the JSON property helpLink
1885 1886 1887 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1885 def help_link @help_link end |
#holder ⇒ String
Required. The name of the resource where the TagValue is being used. Must be
less than 200 characters. E.g. //compute.googleapis.com/compute/projects/
myproject/regions/us-east-1/instanceGroupManagers/instance-group
Corresponds to the JSON property holder
1892 1893 1894 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1892 def holder @holder end |
#name ⇒ String
Output only. The resource name of a TagHold. This is a String of the form:
tagValues/tag-value-id/tagHolds/tag-hold-id`(e.g.tagValues/123/tagHolds/
456). This resource name is generated by the server.
Corresponds to the JSON propertyname`
1899 1900 1901 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1899 def name @name end |
#origin ⇒ String
Optional. An optional string representing the origin of this request. This
field should include human-understandable information to distinguish origins
from each other. Must be less than 200 characters. E.g. migs-35678234
Corresponds to the JSON property origin
1906 1907 1908 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1906 def origin @origin end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1913 1914 1915 1916 1917 1918 1919 |
# File 'lib/google/apis/cloudresourcemanager_v3/classes.rb', line 1913 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @help_link = args[:help_link] if args.key?(:help_link) @holder = args[:holder] if args.key?(:holder) @name = args[:name] if args.key?(:name) @origin = args[:origin] if args.key?(:origin) end |