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.



274
275
276
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 274

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)


260
261
262
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 260

def name
  @name
end

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

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



265
266
267
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 265

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)


272
273
274
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 272

def target_resource
  @target_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



279
280
281
282
283
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 279

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