Class: Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1SettingMetadata
- Inherits:
-
Object
- Object
- Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1SettingMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/resourcesettings_v1/classes.rb,
lib/google/apis/resourcesettings_v1/representations.rb,
lib/google/apis/resourcesettings_v1/representations.rb
Overview
Metadata about a setting which is not editable by the end user.
Instance Attribute Summary collapse
-
#data_type ⇒ String
The data type for this setting.
-
#default_value ⇒ Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1Value
The data in a setting value.
-
#description ⇒ String
A detailed description of what this setting does.
-
#display_name ⇒ String
The human readable name for this setting.
-
#read_only ⇒ Boolean
(also: #read_only?)
A flag indicating that values of this setting cannot be modified.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudResourcesettingsV1SettingMetadata
constructor
A new instance of GoogleCloudResourcesettingsV1SettingMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudResourcesettingsV1SettingMetadata
Returns a new instance of GoogleCloudResourcesettingsV1SettingMetadata.
128 129 130 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 128 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_type ⇒ String
The data type for this setting.
Corresponds to the JSON property dataType
104 105 106 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 104 def data_type @data_type end |
#default_value ⇒ Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1Value
The data in a setting value.
Corresponds to the JSON property defaultValue
109 110 111 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 109 def default_value @default_value end |
#description ⇒ String
A detailed description of what this setting does.
Corresponds to the JSON property description
114 115 116 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 114 def description @description end |
#display_name ⇒ String
The human readable name for this setting.
Corresponds to the JSON property displayName
119 120 121 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 119 def display_name @display_name end |
#read_only ⇒ Boolean Also known as: read_only?
A flag indicating that values of this setting cannot be modified. See
documentation for the specific setting for updates and reasons.
Corresponds to the JSON property readOnly
125 126 127 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 125 def read_only @read_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
133 134 135 136 137 138 139 |
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 133 def update!(**args) @data_type = args[:data_type] if args.key?(:data_type) @default_value = args[:default_value] if args.key?(:default_value) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @read_only = args[:read_only] if args.key?(:read_only) end |