Class: Google::Apis::CloudbuildV2::Provenance

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

Overview

Provenance configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Provenance

Returns a new instance of Provenance.



2180
2181
2182
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2180

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

Instance Attribute Details

#enabledString

Optional. Provenance push mode. Corresponds to the JSON property enabled

Returns:

  • (String)


2168
2169
2170
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2168

def enabled
  @enabled
end

#regionString

Optional. Provenance region. Corresponds to the JSON property region

Returns:

  • (String)


2173
2174
2175
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2173

def region
  @region
end

#storageString

Optional. Where provenance is stored. Corresponds to the JSON property storage

Returns:

  • (String)


2178
2179
2180
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2178

def storage
  @storage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2185
2186
2187
2188
2189
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2185

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @region = args[:region] if args.key?(:region)
  @storage = args[:storage] if args.key?(:storage)
end