Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1DefineNetworkRequest

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

Request object for creating a new network.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromePolicyVersionsV1DefineNetworkRequest

Returns a new instance of GoogleChromePolicyVersionsV1DefineNetworkRequest.



312
313
314
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 312

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

Instance Attribute Details

#nameString

Required. Name of the new created network. Corresponds to the JSON property name

Returns:

  • (String)


298
299
300
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 298

def name
  @name
end

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

Required. Detailed network settings. Corresponds to the JSON property settings



303
304
305
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 303

def settings
  @settings
end

#target_resourceString

Required. 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)


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

def target_resource
  @target_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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