Class: Google::Apis::ClouddeployV1::CloudRunConfig

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

Overview

CloudRunConfig contains the Cloud Run runtime configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudRunConfig

Returns a new instance of CloudRunConfig.



1165
1166
1167
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1165

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

Instance Attribute Details

#automatic_traffic_controlBoolean Also known as: automatic_traffic_control?

Whether Cloud Deploy should update the traffic stanza in a Cloud Run Service on the user's behalf to facilitate traffic splitting. This is required to be true for CanaryDeployments, but optional for CustomCanaryDeployments. Corresponds to the JSON property automaticTrafficControl

Returns:

  • (Boolean)


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

def automatic_traffic_control
  @automatic_traffic_control
end

#canary_revision_tagsArray<String>

Optional. A list of tags that are added to the canary revision while the canary phase is in progress. Corresponds to the JSON property canaryRevisionTags

Returns:

  • (Array<String>)


1151
1152
1153
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1151

def canary_revision_tags
  @canary_revision_tags
end

#prior_revision_tagsArray<String>

Optional. A list of tags that are added to the prior revision while the canary phase is in progress. Corresponds to the JSON property priorRevisionTags

Returns:

  • (Array<String>)


1157
1158
1159
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1157

def prior_revision_tags
  @prior_revision_tags
end

#stable_revision_tagsArray<String>

Optional. A list of tags that are added to the final stable revision when the stable phase is applied. Corresponds to the JSON property stableRevisionTags

Returns:

  • (Array<String>)


1163
1164
1165
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1163

def stable_revision_tags
  @stable_revision_tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1170
1171
1172
1173
1174
1175
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1170

def update!(**args)
  @automatic_traffic_control = args[:automatic_traffic_control] if args.key?(:automatic_traffic_control)
  @canary_revision_tags = args[:canary_revision_tags] if args.key?(:canary_revision_tags)
  @prior_revision_tags = args[:prior_revision_tags] if args.key?(:prior_revision_tags)
  @stable_revision_tags = args[:stable_revision_tags] if args.key?(:stable_revision_tags)
end