Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1Asset

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataplex_v1/classes.rb,
lib/google/apis/dataplex_v1/representations.rb,
lib/google/apis/dataplex_v1/representations.rb

Overview

An asset represents a cloud resource that is being managed within a lake as a member of a zone.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1Asset

Returns a new instance of GoogleCloudDataplexV1Asset.



1210
1211
1212
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1210

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

Instance Attribute Details

#create_timeString

Output only. The time when the asset was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1144
1145
1146
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1144

def create_time
  @create_time
end

#descriptionString

Optional. Description of the asset. Corresponds to the JSON property description

Returns:

  • (String)


1149
1150
1151
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1149

def description
  @description
end

#discovery_specGoogle::Apis::DataplexV1::GoogleCloudDataplexV1AssetDiscoverySpec

Settings to manage the metadata discovery and publishing for an asset. Corresponds to the JSON property discoverySpec



1154
1155
1156
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1154

def discovery_spec
  @discovery_spec
end

#discovery_statusGoogle::Apis::DataplexV1::GoogleCloudDataplexV1AssetDiscoveryStatus

Status of discovery for an asset. Corresponds to the JSON property discoveryStatus



1159
1160
1161
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1159

def discovery_status
  @discovery_status
end

#display_nameString

Optional. User friendly display name. Corresponds to the JSON property displayName

Returns:

  • (String)


1164
1165
1166
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1164

def display_name
  @display_name
end

#labelsHash<String,String>

Optional. User defined labels for the asset. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1169
1170
1171
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1169

def labels
  @labels
end

#nameString

Output only. The relative resource name of the asset, of the form: projects/ project_number/locations/location_id/lakes/lake_id/zones/zone_id/assets/ asset_id. Corresponds to the JSON property name

Returns:

  • (String)


1176
1177
1178
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1176

def name
  @name
end

#resource_specGoogle::Apis::DataplexV1::GoogleCloudDataplexV1AssetResourceSpec

Identifies the cloud resource that is referenced by this asset. Corresponds to the JSON property resourceSpec



1181
1182
1183
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1181

def resource_spec
  @resource_spec
end

#resource_statusGoogle::Apis::DataplexV1::GoogleCloudDataplexV1AssetResourceStatus

Status of the resource referenced by an asset. Corresponds to the JSON property resourceStatus



1186
1187
1188
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1186

def resource_status
  @resource_status
end

#security_statusGoogle::Apis::DataplexV1::GoogleCloudDataplexV1AssetSecurityStatus

Security policy status of the asset. Data security policy, i.e., readers, writers & owners, should be specified in the lake/zone/asset IAM policy. Corresponds to the JSON property securityStatus



1192
1193
1194
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1192

def security_status
  @security_status
end

#stateString

Output only. Current state of the asset. Corresponds to the JSON property state

Returns:

  • (String)


1197
1198
1199
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1197

def state
  @state
end

#uidString

Output only. System generated globally unique ID for the asset. This ID will be different if the asset is deleted and re-created with the same name. Corresponds to the JSON property uid

Returns:

  • (String)


1203
1204
1205
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1203

def uid
  @uid
end

#update_timeString

Output only. The time when the asset was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1208
1209
1210
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1208

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1215

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @discovery_spec = args[:discovery_spec] if args.key?(:discovery_spec)
  @discovery_status = args[:discovery_status] if args.key?(:discovery_status)
  @display_name = args[:display_name] if args.key?(:display_name)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @resource_spec = args[:resource_spec] if args.key?(:resource_spec)
  @resource_status = args[:resource_status] if args.key?(:resource_status)
  @security_status = args[:security_status] if args.key?(:security_status)
  @state = args[:state] if args.key?(:state)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end