Class: Google::Apis::DataformV1beta1::ReleaseConfig

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 a Dataform release configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReleaseConfig

Returns a new instance of ReleaseConfig.



2005
2006
2007
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2005

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



1961
1962
1963
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1961

def code_compilation_config
  @code_compilation_config
end

#cron_scheduleString

Optional. Optional schedule (in cron format) for automatic creation of compilation results. Corresponds to the JSON property cronSchedule

Returns:

  • (String)


1967
1968
1969
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1967

def cron_schedule
  @cron_schedule
end

#git_commitishString

Required. 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)


1974
1975
1976
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1974

def git_commitish
  @git_commitish
end

#nameString

Output only. The release config's name. Corresponds to the JSON property name

Returns:

  • (String)


1979
1980
1981
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1979

def name
  @name
end

#recent_scheduled_release_recordsArray<Google::Apis::DataformV1beta1::ScheduledReleaseRecord>

Output only. Records of the 10 most recent scheduled release attempts. Updated whenever automatic creation of a compilation result is triggered by cron_schedule. Corresponds to the JSON property recentScheduledReleaseRecords



1986
1987
1988
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1986

def recent_scheduled_release_records
  @recent_scheduled_release_records
end

#release_compilation_resultString

Optional. The name of the currently released compilation result for this release config. This value is updated when a compilation result is created from this release config, or when this resource is updated by API call ( perhaps to roll back to an earlier release). The compilation result must have been created using this release config. Must be in the format projects/*/ locations/*/repositories/*/compilationResults/*. Corresponds to the JSON property releaseCompilationResult

Returns:

  • (String)


1996
1997
1998
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1996

def release_compilation_result
  @release_compilation_result
end

#time_zoneString

Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/ wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC. Corresponds to the JSON property timeZone

Returns:

  • (String)


2003
2004
2005
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2003

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2010
2011
2012
2013
2014
2015
2016
2017
2018
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2010

def update!(**args)
  @code_compilation_config = args[:code_compilation_config] if args.key?(:code_compilation_config)
  @cron_schedule = args[:cron_schedule] if args.key?(:cron_schedule)
  @git_commitish = args[:git_commitish] if args.key?(:git_commitish)
  @name = args[:name] if args.key?(:name)
  @recent_scheduled_release_records = args[:recent_scheduled_release_records] if args.key?(:recent_scheduled_release_records)
  @release_compilation_result = args[:release_compilation_result] if args.key?(:release_compilation_result)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end