Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineNetworkRequest

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) ⇒ GoogleChromePolicyV1DefineNetworkRequest

Returns a new instance of GoogleChromePolicyV1DefineNetworkRequest.



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

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)


246
247
248
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 246

def name
  @name
end

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

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



251
252
253
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 251

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)


258
259
260
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 258

def target_resource
  @target_resource
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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