Class: Google::Apis::DataformV1beta1::CompilationResult

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

Overview

Represents the result of compiling a Dataform project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CompilationResult

Returns a new instance of CompilationResult.



353
354
355
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 353

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

Instance Attribute Details

#code_compilation_configGoogle::Apis::DataformV1beta1::CodeCompilationConfig

Configures various aspects of Dataform code compilation. Corresponds to the JSON property codeCompilationConfig



310
311
312
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 310

def code_compilation_config
  @code_compilation_config
end

#compilation_errorsArray<Google::Apis::DataformV1beta1::CompilationError>

Output only. Errors encountered during project compilation. Corresponds to the JSON property compilationErrors



315
316
317
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 315

def compilation_errors
  @compilation_errors
end

#dataform_core_versionString

Output only. The version of @dataform/core that was used for compilation. Corresponds to the JSON property dataformCoreVersion

Returns:

  • (String)


320
321
322
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 320

def dataform_core_version
  @dataform_core_version
end

#git_commitishString

Immutable. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: 12ade345 - a tag: tag1 - a branch name: branch1 Corresponds to the JSON property gitCommitish

Returns:

  • (String)


327
328
329
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 327

def git_commitish
  @git_commitish
end

#nameString

Output only. The compilation result's name. Corresponds to the JSON property name

Returns:

  • (String)


332
333
334
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 332

def name
  @name
end

#release_configString

Immutable. The name of the release config to compile. The release config's ' current_compilation_result' field will be updated to this compilation result. Must be in the format projects/*/locations/*/repositories/*/releaseConfigs/*. Corresponds to the JSON property releaseConfig

Returns:

  • (String)


339
340
341
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 339

def release_config
  @release_config
end

#resolved_git_commit_shaString

Output only. The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace. Corresponds to the JSON property resolvedGitCommitSha

Returns:

  • (String)


345
346
347
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 345

def resolved_git_commit_sha
  @resolved_git_commit_sha
end

#workspaceString

Immutable. The name of the workspace to compile. Must be in the format projects/*/locations/*/repositories/*/workspaces/*. Corresponds to the JSON property workspace

Returns:

  • (String)


351
352
353
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 351

def workspace
  @workspace
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



358
359
360
361
362
363
364
365
366
367
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 358

def update!(**args)
  @code_compilation_config = args[:code_compilation_config] if args.key?(:code_compilation_config)
  @compilation_errors = args[:compilation_errors] if args.key?(:compilation_errors)
  @dataform_core_version = args[:dataform_core_version] if args.key?(:dataform_core_version)
  @git_commitish = args[:git_commitish] if args.key?(:git_commitish)
  @name = args[:name] if args.key?(:name)
  @release_config = args[:release_config] if args.key?(:release_config)
  @resolved_git_commit_sha = args[:resolved_git_commit_sha] if args.key?(:resolved_git_commit_sha)
  @workspace = args[:workspace] if args.key?(:workspace)
end