Class: Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1SettingMetadata

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_typeString

The data type for this setting. Corresponds to the JSON property dataType

Returns:

  • (String)


104
105
106
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 104

def data_type
  @data_type
end

#default_valueGoogle::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

#descriptionString

A detailed description of what this setting does. Corresponds to the JSON property description

Returns:

  • (String)


114
115
116
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 114

def description
  @description
end

#display_nameString

The human readable name for this setting. Corresponds to the JSON property displayName

Returns:

  • (String)


119
120
121
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 119

def display_name
  @display_name
end

#read_onlyBoolean 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

Returns:

  • (Boolean)


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