Class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineNetworkRequest
- Inherits:
-
Object
- Object
- Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DefineNetworkRequest
- 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
-
#name ⇒ String
Required.
-
#settings ⇒ Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1NetworkSetting>
Required.
-
#target_resource ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChromePolicyV1DefineNetworkRequest
constructor
A new instance of GoogleChromePolicyV1DefineNetworkRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
Required. Name of the new created network.
Corresponds to the JSON property name
246 247 248 |
# File 'lib/google/apis/chromepolicy_v1/classes.rb', line 246 def name @name end |
#settings ⇒ Array<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_resource ⇒ String
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
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 |