Class: Google::Apis::ClouddeployV1::DeployPolicyEvaluationEvent

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

Payload proto for "clouddeploy.googleapis.com/deploypolicy_evaluation" Platform Log event that describes the deploy policy evaluation event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeployPolicyEvaluationEvent

Returns a new instance of DeployPolicyEvaluationEvent.



2112
2113
2114
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2112

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

Instance Attribute Details

#allowedBoolean 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

Returns:

  • (Boolean)


2046
2047
2048
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2046

def allowed
  @allowed
end

#delivery_pipelineString

The name of the Delivery Pipeline. Corresponds to the JSON property deliveryPipeline

Returns:

  • (String)


2052
2053
2054
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2052

def delivery_pipeline
  @delivery_pipeline
end

#deploy_policyString

The name of the DeployPolicy. Corresponds to the JSON property deployPolicy

Returns:

  • (String)


2057
2058
2059
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2057

def deploy_policy
  @deploy_policy
end

#deploy_policy_uidString

Unique identifier of the DeployPolicy. Corresponds to the JSON property deployPolicyUid

Returns:

  • (String)


2062
2063
2064
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2062

def deploy_policy_uid
  @deploy_policy_uid
end

#invokerString

What invoked the action (e.g. a user or automation). Corresponds to the JSON property invoker

Returns:

  • (String)


2067
2068
2069
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2067

def invoker
  @invoker
end

#messageString

Debug message for when a deploy policy event occurs. Corresponds to the JSON property message

Returns:

  • (String)


2072
2073
2074
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2072

def message
  @message
end

#overridesArray<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

Returns:

  • (Array<String>)


2078
2079
2080
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2078

def overrides
  @overrides
end

#pipeline_uidString

Unique identifier of the Delivery Pipeline. Corresponds to the JSON property pipelineUid

Returns:

  • (String)


2083
2084
2085
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2083

def pipeline_uid
  @pipeline_uid
end

#ruleString

Rule id. Corresponds to the JSON property rule

Returns:

  • (String)


2088
2089
2090
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2088

def rule
  @rule
end

#rule_typeString

Rule type (e.g. Restrict Rollouts). Corresponds to the JSON property ruleType

Returns:

  • (String)


2093
2094
2095
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2093

def rule_type
  @rule_type
end

#targetString

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

Returns:

  • (String)


2099
2100
2101
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2099

def target
  @target
end

#target_uidString

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

Returns:

  • (String)


2105
2106
2107
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2105

def target_uid
  @target_uid
end

#verdictString

The policy verdict of the request. Corresponds to the JSON property verdict

Returns:

  • (String)


2110
2111
2112
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2110

def verdict
  @verdict
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2117

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