Class: Google::Apis::NetworkmanagementV1beta1::AbortInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkmanagement_v1beta1/classes.rb,
lib/google/apis/networkmanagement_v1beta1/representations.rb,
lib/google/apis/networkmanagement_v1beta1/representations.rb

Overview

Details of the final state "abort" and associated resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AbortInfo

Returns a new instance of AbortInfo.



50
51
52
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 50

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

Instance Attribute Details

#causeString

Causes that the analysis is aborted. Corresponds to the JSON property cause

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 32

def cause
  @cause
end

#ip_addressString

IP address that caused the abort. Corresponds to the JSON property ipAddress

Returns:

  • (String)


37
38
39
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 37

def ip_address
  @ip_address
end

#projects_missing_permissionArray<String>

List of project IDs the user specified in the request but lacks access to. In this case, analysis is aborted with the PERMISSION_DENIED cause. Corresponds to the JSON property projectsMissingPermission

Returns:

  • (Array<String>)


43
44
45
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 43

def projects_missing_permission
  @projects_missing_permission
end

#resource_uriString

URI of the resource that caused the abort. Corresponds to the JSON property resourceUri

Returns:

  • (String)


48
49
50
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 48

def resource_uri
  @resource_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



55
56
57
58
59
60
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 55

def update!(**args)
  @cause = args[:cause] if args.key?(:cause)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @projects_missing_permission = args[:projects_missing_permission] if args.key?(:projects_missing_permission)
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
end