Class: Google::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1Setting

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

The schema for settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudResourcesettingsV1Setting

Returns a new instance of GoogleCloudResourcesettingsV1Setting.



83
84
85
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 83

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#effective_valueGoogle::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1Value

The data in a setting value. Corresponds to the JSON property effectiveValue



57
58
59
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 57

def effective_value
  @effective_value
end

#etagString

A fingerprint used for optimistic concurrency. See UpdateSetting for more details. Corresponds to the JSON property etag

Returns:

  • (String)


63
64
65
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 63

def etag
  @etag
end

#local_valueGoogle::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1Value

The data in a setting value. Corresponds to the JSON property localValue



68
69
70
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 68

def local_value
  @local_value
end

#metadataGoogle::Apis::ResourcesettingsV1::GoogleCloudResourcesettingsV1SettingMetadata

Metadata about a setting which is not editable by the end user. Corresponds to the JSON property metadata



73
74
75
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 73

def 
  @metadata
end

#nameString

The resource name of the setting. Must be in one of the following forms: * projects/project_number/settings/setting_name* `folders/`folder_id`/ settings/`setting_name * organizations/organization_id/settings/ setting_name`For example, "/projects/123/settings/gcp-enableMyFeature" Corresponds to the JSON propertyname`

Returns:

  • (String)


81
82
83
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 81

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



88
89
90
91
92
93
94
# File 'lib/google/apis/resourcesettings_v1/classes.rb', line 88

def update!(**args)
  @effective_value = args[:effective_value] if args.key?(:effective_value)
  @etag = args[:etag] if args.key?(:etag)
  @local_value = args[:local_value] if args.key?(:local_value)
  @metadata = args[:metadata] if args.key?(:metadata)
  @name = args[:name] if args.key?(:name)
end