Class: Google::Apis::ClouddeployV1::DeployPolicyResourceSelector
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::DeployPolicyResourceSelector
- 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
Contains information on the resources to select for a deploy policy. Attributes provided must all match the resource in order for policy restrictions to apply. For example, if delivery pipelines attributes given are an id "prod" and labels "foo: bar", a delivery pipeline resource must match both that id and have that label in order to be subject to the policy.
Instance Attribute Summary collapse
-
#delivery_pipeline ⇒ Google::Apis::ClouddeployV1::DeliveryPipelineAttribute
Contains criteria for selecting DeliveryPipelines.
-
#target ⇒ Google::Apis::ClouddeployV1::TargetAttribute
Contains criteria for selecting Targets.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeployPolicyResourceSelector
constructor
A new instance of DeployPolicyResourceSelector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeployPolicyResourceSelector
Returns a new instance of DeployPolicyResourceSelector.
2211 2212 2213 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2211 def initialize(**args) update!(**args) end |
Instance Attribute Details
#delivery_pipeline ⇒ Google::Apis::ClouddeployV1::DeliveryPipelineAttribute
Contains criteria for selecting DeliveryPipelines.
Corresponds to the JSON property deliveryPipeline
2203 2204 2205 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2203 def delivery_pipeline @delivery_pipeline end |
#target ⇒ Google::Apis::ClouddeployV1::TargetAttribute
Contains criteria for selecting Targets. This could be used to select targets
for a Deploy Policy or for an Automation.
Corresponds to the JSON property target
2209 2210 2211 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2209 def target @target end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2216 2217 2218 2219 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2216 def update!(**args) @delivery_pipeline = args[:delivery_pipeline] if args.key?(:delivery_pipeline) @target = args[:target] if args.key?(:target) end |