Class: Google::Apis::NetworkmanagementV1beta1::ConnectivityTest

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

Overview

A Connectivity Test for a network reachability analysis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ConnectivityTest

Returns a new instance of ConnectivityTest.



324
325
326
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 324

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

Instance Attribute Details

#create_timeString

Output only. The time the test was created. Corresponds to the JSON property createTime

Returns:

  • (String)


269
270
271
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 269

def create_time
  @create_time
end

#descriptionString

The user-supplied description of the Connectivity Test. Maximum of 512 characters. Corresponds to the JSON property description

Returns:

  • (String)


275
276
277
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 275

def description
  @description
end

#destinationGoogle::Apis::NetworkmanagementV1beta1::Endpoint

Source or destination of the Connectivity Test. Corresponds to the JSON property destination



280
281
282
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 280

def destination
  @destination
end

#display_nameString

Output only. The display name of a Connectivity Test. Corresponds to the JSON property displayName

Returns:

  • (String)


285
286
287
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 285

def display_name
  @display_name
end

#labelsHash<String,String>

Resource labels to represent user-provided metadata. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


290
291
292
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 290

def labels
  @labels
end

#nameString

Required. Unique name of the resource using the form: projects/project_id/locations/global/connectivityTests/test` Corresponds to the JSON propertyname`

Returns:

  • (String)


296
297
298
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 296

def name
  @name
end

#protocolString

IP Protocol of the test. When not provided, "TCP" is assumed. Corresponds to the JSON property protocol

Returns:

  • (String)


301
302
303
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 301

def protocol
  @protocol
end

#reachability_detailsGoogle::Apis::NetworkmanagementV1beta1::ReachabilityDetails

The details of reachability state from the latest run. Corresponds to the JSON property reachabilityDetails



306
307
308
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 306

def reachability_details
  @reachability_details
end

Other projects that may be relevant for reachability analysis. This is applicable to scenarios where a test can cross project boundaries. Corresponds to the JSON property relatedProjects

Returns:

  • (Array<String>)


312
313
314
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 312

def related_projects
  @related_projects
end

#sourceGoogle::Apis::NetworkmanagementV1beta1::Endpoint

Source or destination of the Connectivity Test. Corresponds to the JSON property source



317
318
319
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 317

def source
  @source
end

#update_timeString

Output only. The time the test's configuration was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


322
323
324
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 322

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



329
330
331
332
333
334
335
336
337
338
339
340
341
# File 'generated/google/apis/networkmanagement_v1beta1/classes.rb', line 329

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @destination = args[:destination] if args.key?(:destination)
  @display_name = args[:display_name] if args.key?(:display_name)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @protocol = args[:protocol] if args.key?(:protocol)
  @reachability_details = args[:reachability_details] if args.key?(:reachability_details)
  @related_projects = args[:related_projects] if args.key?(:related_projects)
  @source = args[:source] if args.key?(:source)
  @update_time = args[:update_time] if args.key?(:update_time)
end