Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1Content

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

Content represents a user-visible notebook or a sql script

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1Content

Returns a new instance of GoogleCloudDataplexV1Content.



1248
1249
1250
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1248

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

Instance Attribute Details

#create_timeString

Output only. Content creation time. Corresponds to the JSON property createTime

Returns:

  • (String)


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

def create_time
  @create_time
end

#data_textString

Required. Content data in string format. Corresponds to the JSON property dataText

Returns:

  • (String)


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

def data_text
  @data_text
end

#descriptionString

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

Returns:

  • (String)


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

def description
  @description
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1212
1213
1214
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1212

def labels
  @labels
end

#nameString

Output only. The relative resource name of the content, of the form: projects/ project_id/locations/location_id/lakes/lake_id/content/content_id Corresponds to the JSON property name

Returns:

  • (String)


1218
1219
1220
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1218

def name
  @name
end

#notebookGoogle::Apis::DataplexV1::GoogleCloudDataplexV1ContentNotebook

Configuration for Notebook content. Corresponds to the JSON property notebook



1223
1224
1225
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1223

def notebook
  @notebook
end

#pathString

Required. The path for the Content file, represented as directory structure. Unique within a lake. Limited to alphanumerics, hyphens, underscores, dots and slashes. Corresponds to the JSON property path

Returns:

  • (String)


1230
1231
1232
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1230

def path
  @path
end

#sql_scriptGoogle::Apis::DataplexV1::GoogleCloudDataplexV1ContentSqlScript

Configuration for the Sql Script content. Corresponds to the JSON property sqlScript



1235
1236
1237
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1235

def sql_script
  @sql_script
end

#uidString

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

Returns:

  • (String)


1241
1242
1243
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1241

def uid
  @uid
end

#update_timeString

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

Returns:

  • (String)


1246
1247
1248
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1246

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1253

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @data_text = args[:data_text] if args.key?(:data_text)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @notebook = args[:notebook] if args.key?(:notebook)
  @path = args[:path] if args.key?(:path)
  @sql_script = args[:sql_script] if args.key?(:sql_script)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end