Class: Google::Apis::ClouddeployV1::DeployPolicyNotificationEvent

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_notification". Platform Log event that describes the failure to send a pub/sub notification when there is a DeployPolicy status change.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeployPolicyNotificationEvent

Returns a new instance of DeployPolicyNotificationEvent.



2179
2180
2181
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2179

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

Instance Attribute Details

#deploy_policyString

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

Returns:

  • (String)


2162
2163
2164
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2162

def deploy_policy
  @deploy_policy
end

#deploy_policy_uidString

Unique identifier of the deploy policy. Corresponds to the JSON property deployPolicyUid

Returns:

  • (String)


2167
2168
2169
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2167

def deploy_policy_uid
  @deploy_policy_uid
end

#messageString

Debug message for when a deploy policy fails to send a pub/sub notification. Corresponds to the JSON property message

Returns:

  • (String)


2172
2173
2174
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2172

def message
  @message
end

#typeString

Type of this notification, e.g. for a Pub/Sub failure. Corresponds to the JSON property type

Returns:

  • (String)


2177
2178
2179
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2177

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @deploy_policy = args[:deploy_policy] if args.key?(:deploy_policy)
  @deploy_policy_uid = args[:deploy_policy_uid] if args.key?(:deploy_policy_uid)
  @message = args[:message] if args.key?(:message)
  @type = args[:type] if args.key?(:type)
end