Class: Google::Apis::ClouddeployV1::DeployPolicyEvaluationEvent
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::DeployPolicyEvaluationEvent
- 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
Payload proto for "clouddeploy.googleapis.com/deploypolicy_evaluation" Platform Log event that describes the deploy policy evaluation event.
Instance Attribute Summary collapse
-
#allowed ⇒ Boolean
(also: #allowed?)
Whether the request is allowed.
-
#delivery_pipeline ⇒ String
The name of the
Delivery Pipeline. -
#deploy_policy ⇒ String
The name of the
DeployPolicy. -
#deploy_policy_uid ⇒ String
Unique identifier of the
DeployPolicy. -
#invoker ⇒ String
What invoked the action (e.g. a user or automation).
-
#message ⇒ String
Debug message for when a deploy policy event occurs.
-
#overrides ⇒ Array<String>
Things that could have overridden the policy verdict.
-
#pipeline_uid ⇒ String
Unique identifier of the
Delivery Pipeline. -
#rule ⇒ String
Rule id.
-
#rule_type ⇒ String
Rule type (e.g. Restrict Rollouts).
-
#target ⇒ String
The name of the
Target. -
#target_uid ⇒ String
Unique identifier of the
Target. -
#verdict ⇒ String
The policy verdict of the request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeployPolicyEvaluationEvent
constructor
A new instance of DeployPolicyEvaluationEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeployPolicyEvaluationEvent
Returns a new instance of DeployPolicyEvaluationEvent.
2087 2088 2089 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2087 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed ⇒ Boolean Also known as: allowed?
Whether the request is allowed. Allowed is set as true if: (1) the request
complies with the policy; or (2) the request doesn't comply with the policy
but the policy was overridden; or (3) the request doesn't comply with the
policy but the policy was suspended
Corresponds to the JSON property allowed
2021 2022 2023 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2021 def allowed @allowed end |
#delivery_pipeline ⇒ String
The name of the Delivery Pipeline.
Corresponds to the JSON property deliveryPipeline
2027 2028 2029 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2027 def delivery_pipeline @delivery_pipeline end |
#deploy_policy ⇒ String
The name of the DeployPolicy.
Corresponds to the JSON property deployPolicy
2032 2033 2034 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2032 def deploy_policy @deploy_policy end |
#deploy_policy_uid ⇒ String
Unique identifier of the DeployPolicy.
Corresponds to the JSON property deployPolicyUid
2037 2038 2039 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2037 def deploy_policy_uid @deploy_policy_uid end |
#invoker ⇒ String
What invoked the action (e.g. a user or automation).
Corresponds to the JSON property invoker
2042 2043 2044 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2042 def invoker @invoker end |
#message ⇒ String
Debug message for when a deploy policy event occurs.
Corresponds to the JSON property message
2047 2048 2049 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2047 def @message end |
#overrides ⇒ Array<String>
Things that could have overridden the policy verdict. Overrides together with
verdict decide whether the request is allowed.
Corresponds to the JSON property overrides
2053 2054 2055 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2053 def overrides @overrides end |
#pipeline_uid ⇒ String
Unique identifier of the Delivery Pipeline.
Corresponds to the JSON property pipelineUid
2058 2059 2060 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2058 def pipeline_uid @pipeline_uid end |
#rule ⇒ String
Rule id.
Corresponds to the JSON property rule
2063 2064 2065 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2063 def rule @rule end |
#rule_type ⇒ String
Rule type (e.g. Restrict Rollouts).
Corresponds to the JSON property ruleType
2068 2069 2070 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2068 def rule_type @rule_type end |
#target ⇒ String
The name of the Target. This is an optional field, as a Target may not
always be applicable to a policy.
Corresponds to the JSON property target
2074 2075 2076 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2074 def target @target end |
#target_uid ⇒ String
Unique identifier of the Target. This is an optional field, as a Target
may not always be applicable to a policy.
Corresponds to the JSON property targetUid
2080 2081 2082 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2080 def target_uid @target_uid end |
#verdict ⇒ String
The policy verdict of the request.
Corresponds to the JSON property verdict
2085 2086 2087 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2085 def verdict @verdict end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2092 def update!(**args) @allowed = args[:allowed] if args.key?(:allowed) @delivery_pipeline = args[:delivery_pipeline] if args.key?(:delivery_pipeline) @deploy_policy = args[:deploy_policy] if args.key?(:deploy_policy) @deploy_policy_uid = args[:deploy_policy_uid] if args.key?(:deploy_policy_uid) @invoker = args[:invoker] if args.key?(:invoker) @message = args[:message] if args.key?(:message) @overrides = args[:overrides] if args.key?(:overrides) @pipeline_uid = args[:pipeline_uid] if args.key?(:pipeline_uid) @rule = args[:rule] if args.key?(:rule) @rule_type = args[:rule_type] if args.key?(:rule_type) @target = args[:target] if args.key?(:target) @target_uid = args[:target_uid] if args.key?(:target_uid) @verdict = args[:verdict] if args.key?(:verdict) end |