Class: Google::Apis::BackupdrV1::NetworkConfig

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

Overview

Network configuration for ManagementServer instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkConfig

Returns a new instance of NetworkConfig.



2952
2953
2954
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2952

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

Instance Attribute Details

#networkString

Optional. The resource name of the Google Compute Engine VPC network to which the ManagementServer instance is connected. Corresponds to the JSON property network

Returns:

  • (String)


2944
2945
2946
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2944

def network
  @network
end

#peering_modeString

Optional. The network connect mode of the ManagementServer instance. For this version, only PRIVATE_SERVICE_ACCESS is supported. Corresponds to the JSON property peeringMode

Returns:

  • (String)


2950
2951
2952
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2950

def peering_mode
  @peering_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2957
2958
2959
2960
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2957

def update!(**args)
  @network = args[:network] if args.key?(:network)
  @peering_mode = args[:peering_mode] if args.key?(:peering_mode)
end