Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1DefineNetworkResponse

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

Overview

Response object for creating a network.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyVersionsV1DefineNetworkResponse

Returns a new instance of GoogleChromePolicyVersionsV1DefineNetworkResponse.



318
319
320
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 318

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

Instance Attribute Details

#network_idString

Network ID of the new created network. Corresponds to the JSON property networkId

Returns:

  • (String)


305
306
307
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 305

def network_id
  @network_id
end

#settingsArray<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1NetworkSetting>

Detailed network settings of the new created network Corresponds to the JSON property settings



310
311
312
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 310

def settings
  @settings
end

#target_resourceString

The target resource on which this new network will be defined. The following resources are supported: * Organizational Unit ("orgunits/orgunit_id") Corresponds to the JSON property targetResource

Returns:

  • (String)


316
317
318
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 316

def target_resource
  @target_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



323
324
325
326
327
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 323

def update!(**args)
  @network_id = args[:network_id] if args.key?(:network_id)
  @settings = args[:settings] if args.key?(:settings)
  @target_resource = args[:target_resource] if args.key?(:target_resource)
end