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.



1875
1876
1877
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1875

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

Instance Attribute Details

#deploy_policyString

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

Returns:

  • (String)


1858
1859
1860
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1858

def deploy_policy
  @deploy_policy
end

#deploy_policy_uidString

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

Returns:

  • (String)


1863
1864
1865
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1863

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)


1868
1869
1870
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1868

def message
  @message
end

#typeString

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

Returns:

  • (String)


1873
1874
1875
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1873

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1880
1881
1882
1883
1884
1885
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 1880

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