google-apis-chromepolicy_v1 0.26.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,32 +60,6 @@ module Google
60
60
  end
61
61
  end
62
62
 
63
- # Additional key names that will be used to identify the target of the policy
64
- # value.
65
- class GoogleChromePolicyV1AdditionalTargetKeyName
66
- include Google::Apis::Core::Hashable
67
-
68
- # Key name.
69
- # Corresponds to the JSON property `key`
70
- # @return [String]
71
- attr_accessor :key
72
-
73
- # Key description.
74
- # Corresponds to the JSON property `keyDescription`
75
- # @return [String]
76
- attr_accessor :key_description
77
-
78
- def initialize(**args)
79
- update!(**args)
80
- end
81
-
82
- # Update properties of this object
83
- def update!(**args)
84
- @key = args[:key] if args.key?(:key)
85
- @key_description = args[:key_description] if args.key?(:key_description)
86
- end
87
- end
88
-
89
63
  # Request message for specifying that multiple policy values will be deleted.
90
64
  class GoogleChromePolicyV1BatchDeleteGroupPoliciesRequest
91
65
  include Google::Apis::Core::Hashable
@@ -190,6 +164,143 @@ module Google
190
164
  end
191
165
  end
192
166
 
167
+ # Request object for creating a certificate.
168
+ class GoogleChromePolicyV1DefineCertificateRequest
169
+ include Google::Apis::Core::Hashable
170
+
171
+ # Optional. The optional name of the certificate. If not specified, the
172
+ # certificate issuer will be used as the name.
173
+ # Corresponds to the JSON property `ceritificateName`
174
+ # @return [String]
175
+ attr_accessor :ceritificate_name
176
+
177
+ # Required. The raw contents of the .PEM, .CRT, or .CER file.
178
+ # Corresponds to the JSON property `certificate`
179
+ # @return [String]
180
+ attr_accessor :certificate
181
+
182
+ # Optional. Certificate settings within the chrome.networks.certificates
183
+ # namespace.
184
+ # Corresponds to the JSON property `settings`
185
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1NetworkSetting>]
186
+ attr_accessor :settings
187
+
188
+ # Required. The target resource on which this certificate is applied. The
189
+ # following resources are supported: * Organizational Unit ("orgunits/`
190
+ # orgunit_id`")
191
+ # Corresponds to the JSON property `targetResource`
192
+ # @return [String]
193
+ attr_accessor :target_resource
194
+
195
+ def initialize(**args)
196
+ update!(**args)
197
+ end
198
+
199
+ # Update properties of this object
200
+ def update!(**args)
201
+ @ceritificate_name = args[:ceritificate_name] if args.key?(:ceritificate_name)
202
+ @certificate = args[:certificate] if args.key?(:certificate)
203
+ @settings = args[:settings] if args.key?(:settings)
204
+ @target_resource = args[:target_resource] if args.key?(:target_resource)
205
+ end
206
+ end
207
+
208
+ # Response object for creating a certificate.
209
+ class GoogleChromePolicyV1DefineCertificateResponse
210
+ include Google::Apis::Core::Hashable
211
+
212
+ # The guid of the certificate created by the action.
213
+ # Corresponds to the JSON property `networkId`
214
+ # @return [String]
215
+ attr_accessor :network_id
216
+
217
+ # the affiliated settings of the certificate (NOT IMPLEMENTED)
218
+ # Corresponds to the JSON property `settings`
219
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1NetworkSetting>]
220
+ attr_accessor :settings
221
+
222
+ # the resource at which the certificate is defined.
223
+ # Corresponds to the JSON property `targetResource`
224
+ # @return [String]
225
+ attr_accessor :target_resource
226
+
227
+ def initialize(**args)
228
+ update!(**args)
229
+ end
230
+
231
+ # Update properties of this object
232
+ def update!(**args)
233
+ @network_id = args[:network_id] if args.key?(:network_id)
234
+ @settings = args[:settings] if args.key?(:settings)
235
+ @target_resource = args[:target_resource] if args.key?(:target_resource)
236
+ end
237
+ end
238
+
239
+ # Request object for creating a new network.
240
+ class GoogleChromePolicyV1DefineNetworkRequest
241
+ include Google::Apis::Core::Hashable
242
+
243
+ # Required. Name of the new created network.
244
+ # Corresponds to the JSON property `name`
245
+ # @return [String]
246
+ attr_accessor :name
247
+
248
+ # Required. Detailed network settings.
249
+ # Corresponds to the JSON property `settings`
250
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1NetworkSetting>]
251
+ attr_accessor :settings
252
+
253
+ # Required. The target resource on which this new network will be defined. The
254
+ # following resources are supported: * Organizational Unit ("orgunits/`
255
+ # orgunit_id`")
256
+ # Corresponds to the JSON property `targetResource`
257
+ # @return [String]
258
+ attr_accessor :target_resource
259
+
260
+ def initialize(**args)
261
+ update!(**args)
262
+ end
263
+
264
+ # Update properties of this object
265
+ def update!(**args)
266
+ @name = args[:name] if args.key?(:name)
267
+ @settings = args[:settings] if args.key?(:settings)
268
+ @target_resource = args[:target_resource] if args.key?(:target_resource)
269
+ end
270
+ end
271
+
272
+ # Response object for creating a network.
273
+ class GoogleChromePolicyV1DefineNetworkResponse
274
+ include Google::Apis::Core::Hashable
275
+
276
+ # Network ID of the new created network.
277
+ # Corresponds to the JSON property `networkId`
278
+ # @return [String]
279
+ attr_accessor :network_id
280
+
281
+ # Detailed network settings of the new created network
282
+ # Corresponds to the JSON property `settings`
283
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1NetworkSetting>]
284
+ attr_accessor :settings
285
+
286
+ # The target resource on which this new network will be defined. The following
287
+ # resources are supported: * Organizational Unit ("orgunits/`orgunit_id`")
288
+ # Corresponds to the JSON property `targetResource`
289
+ # @return [String]
290
+ attr_accessor :target_resource
291
+
292
+ def initialize(**args)
293
+ update!(**args)
294
+ end
295
+
296
+ # Update properties of this object
297
+ def update!(**args)
298
+ @network_id = args[:network_id] if args.key?(:network_id)
299
+ @settings = args[:settings] if args.key?(:settings)
300
+ @target_resource = args[:target_resource] if args.key?(:target_resource)
301
+ end
302
+ end
303
+
193
304
  # Request parameters for deleting the policy value of a specific group target.
194
305
  class GoogleChromePolicyV1DeleteGroupPolicyRequest
195
306
  include Google::Apis::Core::Hashable
@@ -297,31 +408,6 @@ module Google
297
408
  end
298
409
  end
299
410
 
300
- # Response message for listing policy schemas that match a filter.
301
- class GoogleChromePolicyV1ListPolicySchemasResponse
302
- include Google::Apis::Core::Hashable
303
-
304
- # The page token used to get the next page of policy schemas.
305
- # Corresponds to the JSON property `nextPageToken`
306
- # @return [String]
307
- attr_accessor :next_page_token
308
-
309
- # The list of policy schemas that match the query.
310
- # Corresponds to the JSON property `policySchemas`
311
- # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchema>]
312
- attr_accessor :policy_schemas
313
-
314
- def initialize(**args)
315
- update!(**args)
316
- end
317
-
318
- # Update properties of this object
319
- def update!(**args)
320
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
321
- @policy_schemas = args[:policy_schemas] if args.key?(:policy_schemas)
322
- end
323
- end
324
-
325
411
  # Request parameters for modifying a policy value for a specific group target.
326
412
  class GoogleChromePolicyV1ModifyGroupPolicyRequest
327
413
  include Google::Apis::Core::Hashable
@@ -388,80 +474,45 @@ module Google
388
474
  end
389
475
  end
390
476
 
391
- # Resource representing a policy schema. Next ID: 14
392
- class GoogleChromePolicyV1PolicySchema
477
+ # A network setting contains network configurations.
478
+ class GoogleChromePolicyV1NetworkSetting
393
479
  include Google::Apis::Core::Hashable
394
480
 
395
- # Output only. Specific access restrictions related to this policy.
396
- # Corresponds to the JSON property `accessRestrictions`
397
- # @return [Array<String>]
398
- attr_accessor :access_restrictions
399
-
400
- # Output only. Additional key names that will be used to identify the target of
401
- # the policy value. When specifying a `policyTargetKey`, each of the additional
402
- # keys specified here will have to be included in the `additionalTargetKeys` map.
403
- # Corresponds to the JSON property `additionalTargetKeyNames`
404
- # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1AdditionalTargetKeyName>]
405
- attr_accessor :additional_target_key_names
406
-
407
- # Output only. Title of the category in which a setting belongs.
408
- # Corresponds to the JSON property `categoryTitle`
409
- # @return [String]
410
- attr_accessor :category_title
411
-
412
- # Describes a complete .proto file.
413
- # Corresponds to the JSON property `definition`
414
- # @return [Google::Apis::ChromepolicyV1::Proto2FileDescriptorProto]
415
- attr_accessor :definition
416
-
417
- # Output only. Detailed description of each field that is part of the schema.
418
- # Corresponds to the JSON property `fieldDescriptions`
419
- # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaFieldDescription>]
420
- attr_accessor :field_descriptions
421
-
422
- # Format: name=customers/`customer`/policySchemas/`schema_namespace`
423
- # Corresponds to the JSON property `name`
481
+ # The fully qualified name of the network setting.
482
+ # Corresponds to the JSON property `policySchema`
424
483
  # @return [String]
425
- attr_accessor :name
484
+ attr_accessor :policy_schema
426
485
 
427
- # Output only. Special notice messages related to setting certain values in
428
- # certain fields in the schema.
429
- # Corresponds to the JSON property `notices`
430
- # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaNoticeDescription>]
431
- attr_accessor :notices
486
+ # The value of the network setting.
487
+ # Corresponds to the JSON property `value`
488
+ # @return [Hash<String,Object>]
489
+ attr_accessor :value
432
490
 
433
- # Output only. Current lifecycle information.
434
- # Corresponds to the JSON property `policyApiLifecycle`
435
- # @return [Google::Apis::ChromepolicyV1::ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle]
436
- attr_accessor :policy_api_lifecycle
491
+ def initialize(**args)
492
+ update!(**args)
493
+ end
437
494
 
438
- # Deprecated field because of typo.
439
- # Corresponds to the JSON property `policyApiLifeycle`
440
- # @return [Google::Apis::ChromepolicyV1::ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle]
441
- attr_accessor :policy_api_lifeycle
495
+ # Update properties of this object
496
+ def update!(**args)
497
+ @policy_schema = args[:policy_schema] if args.key?(:policy_schema)
498
+ @value = args[:value] if args.key?(:value)
499
+ end
500
+ end
442
501
 
443
- # Output only. Description about the policy schema for user consumption.
444
- # Corresponds to the JSON property `policyDescription`
445
- # @return [String]
446
- attr_accessor :policy_description
502
+ # Error information for a modification request of a specific field on a specific
503
+ # policy.
504
+ class GoogleChromePolicyV1PolicyModificationFieldError
505
+ include Google::Apis::Core::Hashable
447
506
 
448
- # Output only. The fully qualified name of the policy schema. This value is used
449
- # to fill the field `policy_schema` in PolicyValue when calling
450
- # BatchInheritOrgUnitPolicies BatchModifyOrgUnitPolicies
451
- # BatchModifyGroupPolicies or BatchDeleteGroupPolicies.
452
- # Corresponds to the JSON property `schemaName`
507
+ # Output only. The error message related to the field.
508
+ # Corresponds to the JSON property `error`
453
509
  # @return [String]
454
- attr_accessor :schema_name
510
+ attr_accessor :error
455
511
 
456
- # Output only. URI to related support article for this schema.
457
- # Corresponds to the JSON property `supportUri`
512
+ # Output only. The name of the field with the error.
513
+ # Corresponds to the JSON property `field`
458
514
  # @return [String]
459
- attr_accessor :support_uri
460
-
461
- # Output only. Information about applicable target resources for the policy.
462
- # Corresponds to the JSON property `validTargetResources`
463
- # @return [Array<String>]
464
- attr_accessor :valid_target_resources
515
+ attr_accessor :field
465
516
 
466
517
  def initialize(**args)
467
518
  update!(**args)
@@ -469,36 +520,27 @@ module Google
469
520
 
470
521
  # Update properties of this object
471
522
  def update!(**args)
472
- @access_restrictions = args[:access_restrictions] if args.key?(:access_restrictions)
473
- @additional_target_key_names = args[:additional_target_key_names] if args.key?(:additional_target_key_names)
474
- @category_title = args[:category_title] if args.key?(:category_title)
475
- @definition = args[:definition] if args.key?(:definition)
476
- @field_descriptions = args[:field_descriptions] if args.key?(:field_descriptions)
477
- @name = args[:name] if args.key?(:name)
478
- @notices = args[:notices] if args.key?(:notices)
479
- @policy_api_lifecycle = args[:policy_api_lifecycle] if args.key?(:policy_api_lifecycle)
480
- @policy_api_lifeycle = args[:policy_api_lifeycle] if args.key?(:policy_api_lifeycle)
481
- @policy_description = args[:policy_description] if args.key?(:policy_description)
482
- @schema_name = args[:schema_name] if args.key?(:schema_name)
483
- @support_uri = args[:support_uri] if args.key?(:support_uri)
484
- @valid_target_resources = args[:valid_target_resources] if args.key?(:valid_target_resources)
523
+ @error = args[:error] if args.key?(:error)
524
+ @field = args[:field] if args.key?(:field)
485
525
  end
486
526
  end
487
527
 
488
- # The field and the value it must have for another field to be allowed to be set.
489
- class GoogleChromePolicyV1PolicySchemaFieldDependencies
528
+ # The key used to identify the target on which the policy will be applied.
529
+ class GoogleChromePolicyV1PolicyTargetKey
490
530
  include Google::Apis::Core::Hashable
491
531
 
492
- # The source field which this field depends on.
493
- # Corresponds to the JSON property `sourceField`
494
- # @return [String]
495
- attr_accessor :source_field
532
+ # Map containing the additional target key name and value pairs used to further
533
+ # identify the target of the policy.
534
+ # Corresponds to the JSON property `additionalTargetKeys`
535
+ # @return [Hash<String,String>]
536
+ attr_accessor :additional_target_keys
496
537
 
497
- # The value which the source field must have for this field to be allowed to be
498
- # set.
499
- # Corresponds to the JSON property `sourceFieldValue`
538
+ # The target resource on which this policy is applied. The following resources
539
+ # are supported: * Organizational Unit ("orgunits/`orgunit_id`") * Group ("
540
+ # groups/`group_id`")
541
+ # Corresponds to the JSON property `targetResource`
500
542
  # @return [String]
501
- attr_accessor :source_field_value
543
+ attr_accessor :target_resource
502
544
 
503
545
  def initialize(**args)
504
546
  update!(**args)
@@ -506,99 +548,24 @@ module Google
506
548
 
507
549
  # Update properties of this object
508
550
  def update!(**args)
509
- @source_field = args[:source_field] if args.key?(:source_field)
510
- @source_field_value = args[:source_field_value] if args.key?(:source_field_value)
551
+ @additional_target_keys = args[:additional_target_keys] if args.key?(:additional_target_keys)
552
+ @target_resource = args[:target_resource] if args.key?(:target_resource)
511
553
  end
512
554
  end
513
555
 
514
- # Provides detailed information for a particular field that is part of a
515
- # PolicySchema.
516
- class GoogleChromePolicyV1PolicySchemaFieldDescription
556
+ # A particular value for a policy managed by the service.
557
+ class GoogleChromePolicyV1PolicyValue
517
558
  include Google::Apis::Core::Hashable
518
559
 
519
- # Deprecated. Use name and field_description instead. The description for the
520
- # field.
521
- # Corresponds to the JSON property `description`
560
+ # The fully qualified name of the policy schema associated with this policy.
561
+ # Corresponds to the JSON property `policySchema`
522
562
  # @return [String]
523
- attr_accessor :description
563
+ attr_accessor :policy_schema
524
564
 
525
- # Output only. The name of the field for associated with this description.
526
- # Corresponds to the JSON property `field`
527
- # @return [String]
528
- attr_accessor :field
529
-
530
- # Output only. Provides a list of fields and values. At least one of the fields
531
- # must have the corresponding value in order for this field to be allowed to be
532
- # set.
533
- # Corresponds to the JSON property `fieldDependencies`
534
- # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaFieldDependencies>]
535
- attr_accessor :field_dependencies
536
-
537
- # Output only. The description of the field.
538
- # Corresponds to the JSON property `fieldDescription`
539
- # @return [String]
540
- attr_accessor :field_description
541
-
542
- # Output only. Any input constraints associated on the values for the field.
543
- # Corresponds to the JSON property `inputConstraint`
544
- # @return [String]
545
- attr_accessor :input_constraint
546
-
547
- # Output only. If the field has a set of known values, this field will provide a
548
- # description for these values.
549
- # Corresponds to the JSON property `knownValueDescriptions`
550
- # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaFieldKnownValueDescription>]
551
- attr_accessor :known_value_descriptions
552
-
553
- # Output only. The name of the field.
554
- # Corresponds to the JSON property `name`
555
- # @return [String]
556
- attr_accessor :name
557
-
558
- # Output only. Provides the description of the fields nested in this field, if
559
- # the field is a message type that defines multiple fields.
560
- # Corresponds to the JSON property `nestedFieldDescriptions`
561
- # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaFieldDescription>]
562
- attr_accessor :nested_field_descriptions
563
-
564
- # Output only. Provides a list of fields that are required to be set if this
565
- # field has a certain value.
566
- # Corresponds to the JSON property `requiredItems`
567
- # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaRequiredItems>]
568
- attr_accessor :required_items
569
-
570
- def initialize(**args)
571
- update!(**args)
572
- end
573
-
574
- # Update properties of this object
575
- def update!(**args)
576
- @description = args[:description] if args.key?(:description)
577
- @field = args[:field] if args.key?(:field)
578
- @field_dependencies = args[:field_dependencies] if args.key?(:field_dependencies)
579
- @field_description = args[:field_description] if args.key?(:field_description)
580
- @input_constraint = args[:input_constraint] if args.key?(:input_constraint)
581
- @known_value_descriptions = args[:known_value_descriptions] if args.key?(:known_value_descriptions)
582
- @name = args[:name] if args.key?(:name)
583
- @nested_field_descriptions = args[:nested_field_descriptions] if args.key?(:nested_field_descriptions)
584
- @required_items = args[:required_items] if args.key?(:required_items)
585
- end
586
- end
587
-
588
- # Provides detailed information about a known value that is allowed for a
589
- # particular field in a PolicySchema.
590
- class GoogleChromePolicyV1PolicySchemaFieldKnownValueDescription
591
- include Google::Apis::Core::Hashable
592
-
593
- # Output only. Additional description for this value.
594
- # Corresponds to the JSON property `description`
595
- # @return [String]
596
- attr_accessor :description
597
-
598
- # Output only. The string represenstation of the value that can be set for the
599
- # field.
565
+ # The value of the policy that is compatible with the schema that it is
566
+ # associated with.
600
567
  # Corresponds to the JSON property `value`
601
- # @return [String]
568
+ # @return [Hash<String,Object>]
602
569
  attr_accessor :value
603
570
 
604
571
  def initialize(**args)
@@ -607,39 +574,26 @@ module Google
607
574
 
608
575
  # Update properties of this object
609
576
  def update!(**args)
610
- @description = args[:description] if args.key?(:description)
577
+ @policy_schema = args[:policy_schema] if args.key?(:policy_schema)
611
578
  @value = args[:value] if args.key?(:value)
612
579
  end
613
580
  end
614
581
 
615
- # Provides special notice messages related to a particular value in a field that
616
- # is part of a PolicySchema.
617
- class GoogleChromePolicyV1PolicySchemaNoticeDescription
582
+ # Request object for removing a certificate.
583
+ class GoogleChromePolicyV1RemoveCertificateRequest
618
584
  include Google::Apis::Core::Hashable
619
585
 
620
- # Output only. Whether the user needs to acknowledge the notice message before
621
- # the value can be set.
622
- # Corresponds to the JSON property `acknowledgementRequired`
623
- # @return [Boolean]
624
- attr_accessor :acknowledgement_required
625
- alias_method :acknowledgement_required?, :acknowledgement_required
626
-
627
- # Output only. The field name associated with the notice.
628
- # Corresponds to the JSON property `field`
586
+ # Required. The GUID of the certificate to remove.
587
+ # Corresponds to the JSON property `networkId`
629
588
  # @return [String]
630
- attr_accessor :field
631
-
632
- # Output only. The notice message associate with the value of the field.
633
- # Corresponds to the JSON property `noticeMessage`
634
- # @return [String]
635
- attr_accessor :notice_message
589
+ attr_accessor :network_id
636
590
 
637
- # Output only. The value of the field that has a notice. When setting the field
638
- # to this value, the user may be required to acknowledge the notice message in
639
- # order for the value to be set.
640
- # Corresponds to the JSON property `noticeValue`
591
+ # Required. The target resource on which this certificate will be removed. The
592
+ # following resources are supported: * Organizational Unit ("orgunits/`
593
+ # orgunit_id`")
594
+ # Corresponds to the JSON property `targetResource`
641
595
  # @return [String]
642
- attr_accessor :notice_value
596
+ attr_accessor :target_resource
643
597
 
644
598
  def initialize(**args)
645
599
  update!(**args)
@@ -647,53 +601,36 @@ module Google
647
601
 
648
602
  # Update properties of this object
649
603
  def update!(**args)
650
- @acknowledgement_required = args[:acknowledgement_required] if args.key?(:acknowledgement_required)
651
- @field = args[:field] if args.key?(:field)
652
- @notice_message = args[:notice_message] if args.key?(:notice_message)
653
- @notice_value = args[:notice_value] if args.key?(:notice_value)
604
+ @network_id = args[:network_id] if args.key?(:network_id)
605
+ @target_resource = args[:target_resource] if args.key?(:target_resource)
654
606
  end
655
607
  end
656
608
 
657
- # The fields that will become required based on the value of this field.
658
- class GoogleChromePolicyV1PolicySchemaRequiredItems
609
+ # Response object for removing a certificate.
610
+ class GoogleChromePolicyV1RemoveCertificateResponse
659
611
  include Google::Apis::Core::Hashable
660
612
 
661
- # The value(s) of the field that provoke required field enforcement. An empty
662
- # field_conditions implies that any value assigned to this field will provoke
663
- # required field enforcement.
664
- # Corresponds to the JSON property `fieldConditions`
665
- # @return [Array<String>]
666
- attr_accessor :field_conditions
667
-
668
- # The fields that are required as a consequence of the field conditions.
669
- # Corresponds to the JSON property `requiredFields`
670
- # @return [Array<String>]
671
- attr_accessor :required_fields
672
-
673
613
  def initialize(**args)
674
614
  update!(**args)
675
615
  end
676
616
 
677
617
  # Update properties of this object
678
618
  def update!(**args)
679
- @field_conditions = args[:field_conditions] if args.key?(:field_conditions)
680
- @required_fields = args[:required_fields] if args.key?(:required_fields)
681
619
  end
682
620
  end
683
621
 
684
- # The key used to identify the target on which the policy will be applied.
685
- class GoogleChromePolicyV1PolicyTargetKey
622
+ # Request object for removing a network
623
+ class GoogleChromePolicyV1RemoveNetworkRequest
686
624
  include Google::Apis::Core::Hashable
687
625
 
688
- # Map containing the additional target key name and value pairs used to further
689
- # identify the target of the policy.
690
- # Corresponds to the JSON property `additionalTargetKeys`
691
- # @return [Hash<String,String>]
692
- attr_accessor :additional_target_keys
626
+ # Required. The GUID of the network to remove.
627
+ # Corresponds to the JSON property `networkId`
628
+ # @return [String]
629
+ attr_accessor :network_id
693
630
 
694
- # The target resource on which this policy is applied. The following resources
695
- # are supported: * Organizational Unit ("orgunits/`orgunit_id`") * Group ("
696
- # groups/`group_id`")
631
+ # Required. The target resource on which this network will be removed. The
632
+ # following resources are supported: * Organizational Unit ("orgunits/`
633
+ # orgunit_id`")
697
634
  # Corresponds to the JSON property `targetResource`
698
635
  # @return [String]
699
636
  attr_accessor :target_resource
@@ -704,34 +641,21 @@ module Google
704
641
 
705
642
  # Update properties of this object
706
643
  def update!(**args)
707
- @additional_target_keys = args[:additional_target_keys] if args.key?(:additional_target_keys)
644
+ @network_id = args[:network_id] if args.key?(:network_id)
708
645
  @target_resource = args[:target_resource] if args.key?(:target_resource)
709
646
  end
710
647
  end
711
648
 
712
- # A particular value for a policy managed by the service.
713
- class GoogleChromePolicyV1PolicyValue
649
+ # Response object for removing a network.
650
+ class GoogleChromePolicyV1RemoveNetworkResponse
714
651
  include Google::Apis::Core::Hashable
715
652
 
716
- # The fully qualified name of the policy schema associated with this policy.
717
- # Corresponds to the JSON property `policySchema`
718
- # @return [String]
719
- attr_accessor :policy_schema
720
-
721
- # The value of the policy that is compatible with the schema that it is
722
- # associated with.
723
- # Corresponds to the JSON property `value`
724
- # @return [Hash<String,Object>]
725
- attr_accessor :value
726
-
727
653
  def initialize(**args)
728
654
  update!(**args)
729
655
  end
730
656
 
731
657
  # Update properties of this object
732
658
  def update!(**args)
733
- @policy_schema = args[:policy_schema] if args.key?(:policy_schema)
734
- @value = args[:value] if args.key?(:value)
735
659
  end
736
660
  end
737
661
 
@@ -754,7 +678,7 @@ module Google
754
678
  # view a particular schema, for example: chrome.users.ShowLogoutButton Wildcards
755
679
  # are supported, but only in the leaf portion of the schema name. Wildcards
756
680
  # cannot be used in namespace directly. Please read https://developers.google.
757
- # com/chrome/policy/guides/policy-schemas for details on schema namepsaces. For
681
+ # com/chrome/policy/guides/policy-schemas for details on schema namespaces. For
758
682
  # example: Valid: "chrome.users.*", "chrome.users.apps.*", "chrome.printers.*"
759
683
  # Invalid: "*", "*.users", "chrome.*", "chrome.*.apps.*"
760
684
  # Corresponds to the JSON property `policySchemaFilter`
@@ -873,8 +797,358 @@ module Google
873
797
  end
874
798
  end
875
799
 
876
- # Request message for uploading a file for a policy. Next ID: 5
877
- class GoogleChromePolicyV1UploadPolicyFileRequest
800
+ # Additional key names that will be used to identify the target of the policy
801
+ # value.
802
+ class GoogleChromePolicyVersionsV1AdditionalTargetKeyName
803
+ include Google::Apis::Core::Hashable
804
+
805
+ # Key name.
806
+ # Corresponds to the JSON property `key`
807
+ # @return [String]
808
+ attr_accessor :key
809
+
810
+ # Key description.
811
+ # Corresponds to the JSON property `keyDescription`
812
+ # @return [String]
813
+ attr_accessor :key_description
814
+
815
+ def initialize(**args)
816
+ update!(**args)
817
+ end
818
+
819
+ # Update properties of this object
820
+ def update!(**args)
821
+ @key = args[:key] if args.key?(:key)
822
+ @key_description = args[:key_description] if args.key?(:key_description)
823
+ end
824
+ end
825
+
826
+ # Response message for listing policy schemas that match a filter.
827
+ class GoogleChromePolicyVersionsV1ListPolicySchemasResponse
828
+ include Google::Apis::Core::Hashable
829
+
830
+ # The page token used to get the next page of policy schemas.
831
+ # Corresponds to the JSON property `nextPageToken`
832
+ # @return [String]
833
+ attr_accessor :next_page_token
834
+
835
+ # The list of policy schemas that match the query.
836
+ # Corresponds to the JSON property `policySchemas`
837
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchema>]
838
+ attr_accessor :policy_schemas
839
+
840
+ def initialize(**args)
841
+ update!(**args)
842
+ end
843
+
844
+ # Update properties of this object
845
+ def update!(**args)
846
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
847
+ @policy_schemas = args[:policy_schemas] if args.key?(:policy_schemas)
848
+ end
849
+ end
850
+
851
+ # Resource representing a policy schema.
852
+ class GoogleChromePolicyVersionsV1PolicySchema
853
+ include Google::Apis::Core::Hashable
854
+
855
+ # Output only. Specific access restrictions related to this policy.
856
+ # Corresponds to the JSON property `accessRestrictions`
857
+ # @return [Array<String>]
858
+ attr_accessor :access_restrictions
859
+
860
+ # Output only. Additional key names that will be used to identify the target of
861
+ # the policy value. When specifying a `policyTargetKey`, each of the additional
862
+ # keys specified here will have to be included in the `additionalTargetKeys` map.
863
+ # Corresponds to the JSON property `additionalTargetKeyNames`
864
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1AdditionalTargetKeyName>]
865
+ attr_accessor :additional_target_key_names
866
+
867
+ # Title of the category in which a setting belongs.
868
+ # Corresponds to the JSON property `categoryTitle`
869
+ # @return [String]
870
+ attr_accessor :category_title
871
+
872
+ # Describes a complete .proto file.
873
+ # Corresponds to the JSON property `definition`
874
+ # @return [Google::Apis::ChromepolicyV1::Proto2FileDescriptorProto]
875
+ attr_accessor :definition
876
+
877
+ # Output only. Detailed description of each field that is part of the schema.
878
+ # Corresponds to the JSON property `fieldDescriptions`
879
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldDescription>]
880
+ attr_accessor :field_descriptions
881
+
882
+ # Format: name=customers/`customer`/policySchemas/`schema_namespace`
883
+ # Corresponds to the JSON property `name`
884
+ # @return [String]
885
+ attr_accessor :name
886
+
887
+ # Output only. Special notice messages related to setting certain values in
888
+ # certain fields in the schema.
889
+ # Corresponds to the JSON property `notices`
890
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription>]
891
+ attr_accessor :notices
892
+
893
+ # Output only. Current lifecycle information.
894
+ # Corresponds to the JSON property `policyApiLifecycle`
895
+ # @return [Google::Apis::ChromepolicyV1::ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle]
896
+ attr_accessor :policy_api_lifecycle
897
+
898
+ # Deprecated field because of typo.
899
+ # Corresponds to the JSON property `policyApiLifeycle`
900
+ # @return [Google::Apis::ChromepolicyV1::ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle]
901
+ attr_accessor :policy_api_lifeycle
902
+
903
+ # Output only. Description about the policy schema for user consumption.
904
+ # Corresponds to the JSON property `policyDescription`
905
+ # @return [String]
906
+ attr_accessor :policy_description
907
+
908
+ # Output only. The fully qualified name of the policy schema. This value is used
909
+ # to fill the field `policy_schema` in PolicyValue when calling
910
+ # BatchInheritOrgUnitPolicies BatchModifyOrgUnitPolicies
911
+ # BatchModifyGroupPolicies or BatchDeleteGroupPolicies.
912
+ # Corresponds to the JSON property `schemaName`
913
+ # @return [String]
914
+ attr_accessor :schema_name
915
+
916
+ # Output only. URI to related support article for this schema.
917
+ # Corresponds to the JSON property `supportUri`
918
+ # @return [String]
919
+ attr_accessor :support_uri
920
+
921
+ # Output only. Information about applicable target resources for the policy.
922
+ # Corresponds to the JSON property `validTargetResources`
923
+ # @return [Array<String>]
924
+ attr_accessor :valid_target_resources
925
+
926
+ def initialize(**args)
927
+ update!(**args)
928
+ end
929
+
930
+ # Update properties of this object
931
+ def update!(**args)
932
+ @access_restrictions = args[:access_restrictions] if args.key?(:access_restrictions)
933
+ @additional_target_key_names = args[:additional_target_key_names] if args.key?(:additional_target_key_names)
934
+ @category_title = args[:category_title] if args.key?(:category_title)
935
+ @definition = args[:definition] if args.key?(:definition)
936
+ @field_descriptions = args[:field_descriptions] if args.key?(:field_descriptions)
937
+ @name = args[:name] if args.key?(:name)
938
+ @notices = args[:notices] if args.key?(:notices)
939
+ @policy_api_lifecycle = args[:policy_api_lifecycle] if args.key?(:policy_api_lifecycle)
940
+ @policy_api_lifeycle = args[:policy_api_lifeycle] if args.key?(:policy_api_lifeycle)
941
+ @policy_description = args[:policy_description] if args.key?(:policy_description)
942
+ @schema_name = args[:schema_name] if args.key?(:schema_name)
943
+ @support_uri = args[:support_uri] if args.key?(:support_uri)
944
+ @valid_target_resources = args[:valid_target_resources] if args.key?(:valid_target_resources)
945
+ end
946
+ end
947
+
948
+ # The field and the value it must have for another field to be allowed to be set.
949
+ class GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies
950
+ include Google::Apis::Core::Hashable
951
+
952
+ # The source field which this field depends on.
953
+ # Corresponds to the JSON property `sourceField`
954
+ # @return [String]
955
+ attr_accessor :source_field
956
+
957
+ # The value which the source field must have for this field to be allowed to be
958
+ # set.
959
+ # Corresponds to the JSON property `sourceFieldValue`
960
+ # @return [String]
961
+ attr_accessor :source_field_value
962
+
963
+ def initialize(**args)
964
+ update!(**args)
965
+ end
966
+
967
+ # Update properties of this object
968
+ def update!(**args)
969
+ @source_field = args[:source_field] if args.key?(:source_field)
970
+ @source_field_value = args[:source_field_value] if args.key?(:source_field_value)
971
+ end
972
+ end
973
+
974
+ # Provides detailed information for a particular field that is part of a
975
+ # PolicySchema.
976
+ class GoogleChromePolicyVersionsV1PolicySchemaFieldDescription
977
+ include Google::Apis::Core::Hashable
978
+
979
+ # Output only. Client default if the policy is unset.
980
+ # Corresponds to the JSON property `defaultValue`
981
+ # @return [Object]
982
+ attr_accessor :default_value
983
+
984
+ # Deprecated. Use name and field_description instead. The description for the
985
+ # field.
986
+ # Corresponds to the JSON property `description`
987
+ # @return [String]
988
+ attr_accessor :description
989
+
990
+ # Output only. The name of the field for associated with this description.
991
+ # Corresponds to the JSON property `field`
992
+ # @return [String]
993
+ attr_accessor :field
994
+
995
+ # Output only. Provides a list of fields and values. At least one of the fields
996
+ # must have the corresponding value in order for this field to be allowed to be
997
+ # set.
998
+ # Corresponds to the JSON property `fieldDependencies`
999
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldDependencies>]
1000
+ attr_accessor :field_dependencies
1001
+
1002
+ # Output only. The description of the field.
1003
+ # Corresponds to the JSON property `fieldDescription`
1004
+ # @return [String]
1005
+ attr_accessor :field_description
1006
+
1007
+ # Output only. Any input constraints associated on the values for the field.
1008
+ # Corresponds to the JSON property `inputConstraint`
1009
+ # @return [String]
1010
+ attr_accessor :input_constraint
1011
+
1012
+ # Output only. If the field has a set of known values, this field will provide a
1013
+ # description for these values.
1014
+ # Corresponds to the JSON property `knownValueDescriptions`
1015
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldKnownValueDescription>]
1016
+ attr_accessor :known_value_descriptions
1017
+
1018
+ # Output only. The name of the field.
1019
+ # Corresponds to the JSON property `name`
1020
+ # @return [String]
1021
+ attr_accessor :name
1022
+
1023
+ # Output only. Provides the description of the fields nested in this field, if
1024
+ # the field is a message type that defines multiple fields.
1025
+ # Corresponds to the JSON property `nestedFieldDescriptions`
1026
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaFieldDescription>]
1027
+ attr_accessor :nested_field_descriptions
1028
+
1029
+ # Output only. Provides a list of fields that are required to be set if this
1030
+ # field has a certain value.
1031
+ # Corresponds to the JSON property `requiredItems`
1032
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyVersionsV1PolicySchemaRequiredItems>]
1033
+ attr_accessor :required_items
1034
+
1035
+ def initialize(**args)
1036
+ update!(**args)
1037
+ end
1038
+
1039
+ # Update properties of this object
1040
+ def update!(**args)
1041
+ @default_value = args[:default_value] if args.key?(:default_value)
1042
+ @description = args[:description] if args.key?(:description)
1043
+ @field = args[:field] if args.key?(:field)
1044
+ @field_dependencies = args[:field_dependencies] if args.key?(:field_dependencies)
1045
+ @field_description = args[:field_description] if args.key?(:field_description)
1046
+ @input_constraint = args[:input_constraint] if args.key?(:input_constraint)
1047
+ @known_value_descriptions = args[:known_value_descriptions] if args.key?(:known_value_descriptions)
1048
+ @name = args[:name] if args.key?(:name)
1049
+ @nested_field_descriptions = args[:nested_field_descriptions] if args.key?(:nested_field_descriptions)
1050
+ @required_items = args[:required_items] if args.key?(:required_items)
1051
+ end
1052
+ end
1053
+
1054
+ # Provides detailed information about a known value that is allowed for a
1055
+ # particular field in a PolicySchema.
1056
+ class GoogleChromePolicyVersionsV1PolicySchemaFieldKnownValueDescription
1057
+ include Google::Apis::Core::Hashable
1058
+
1059
+ # Output only. Additional description for this value.
1060
+ # Corresponds to the JSON property `description`
1061
+ # @return [String]
1062
+ attr_accessor :description
1063
+
1064
+ # Output only. The string represenstation of the value that can be set for the
1065
+ # field.
1066
+ # Corresponds to the JSON property `value`
1067
+ # @return [String]
1068
+ attr_accessor :value
1069
+
1070
+ def initialize(**args)
1071
+ update!(**args)
1072
+ end
1073
+
1074
+ # Update properties of this object
1075
+ def update!(**args)
1076
+ @description = args[:description] if args.key?(:description)
1077
+ @value = args[:value] if args.key?(:value)
1078
+ end
1079
+ end
1080
+
1081
+ # Provides special notice messages related to a particular value in a field that
1082
+ # is part of a PolicySchema.
1083
+ class GoogleChromePolicyVersionsV1PolicySchemaNoticeDescription
1084
+ include Google::Apis::Core::Hashable
1085
+
1086
+ # Output only. Whether the user needs to acknowledge the notice message before
1087
+ # the value can be set.
1088
+ # Corresponds to the JSON property `acknowledgementRequired`
1089
+ # @return [Boolean]
1090
+ attr_accessor :acknowledgement_required
1091
+ alias_method :acknowledgement_required?, :acknowledgement_required
1092
+
1093
+ # Output only. The field name associated with the notice.
1094
+ # Corresponds to the JSON property `field`
1095
+ # @return [String]
1096
+ attr_accessor :field
1097
+
1098
+ # Output only. The notice message associate with the value of the field.
1099
+ # Corresponds to the JSON property `noticeMessage`
1100
+ # @return [String]
1101
+ attr_accessor :notice_message
1102
+
1103
+ # Output only. The value of the field that has a notice. When setting the field
1104
+ # to this value, the user may be required to acknowledge the notice message in
1105
+ # order for the value to be set.
1106
+ # Corresponds to the JSON property `noticeValue`
1107
+ # @return [String]
1108
+ attr_accessor :notice_value
1109
+
1110
+ def initialize(**args)
1111
+ update!(**args)
1112
+ end
1113
+
1114
+ # Update properties of this object
1115
+ def update!(**args)
1116
+ @acknowledgement_required = args[:acknowledgement_required] if args.key?(:acknowledgement_required)
1117
+ @field = args[:field] if args.key?(:field)
1118
+ @notice_message = args[:notice_message] if args.key?(:notice_message)
1119
+ @notice_value = args[:notice_value] if args.key?(:notice_value)
1120
+ end
1121
+ end
1122
+
1123
+ # The fields that will become required based on the value of this field.
1124
+ class GoogleChromePolicyVersionsV1PolicySchemaRequiredItems
1125
+ include Google::Apis::Core::Hashable
1126
+
1127
+ # The value(s) of the field that provoke required field enforcement. An empty
1128
+ # field_conditions implies that any value assigned to this field will provoke
1129
+ # required field enforcement.
1130
+ # Corresponds to the JSON property `fieldConditions`
1131
+ # @return [Array<String>]
1132
+ attr_accessor :field_conditions
1133
+
1134
+ # The fields that are required as a consequence of the field conditions.
1135
+ # Corresponds to the JSON property `requiredFields`
1136
+ # @return [Array<String>]
1137
+ attr_accessor :required_fields
1138
+
1139
+ def initialize(**args)
1140
+ update!(**args)
1141
+ end
1142
+
1143
+ # Update properties of this object
1144
+ def update!(**args)
1145
+ @field_conditions = args[:field_conditions] if args.key?(:field_conditions)
1146
+ @required_fields = args[:required_fields] if args.key?(:required_fields)
1147
+ end
1148
+ end
1149
+
1150
+ # Request message for uploading a file for a policy.
1151
+ class GoogleChromePolicyVersionsV1UploadPolicyFileRequest
878
1152
  include Google::Apis::Core::Hashable
879
1153
 
880
1154
  # Required. The fully qualified policy schema and field name this file is
@@ -894,8 +1168,8 @@ module Google
894
1168
  end
895
1169
  end
896
1170
 
897
- # Response message for downloading an uploaded file. Next ID: 2
898
- class GoogleChromePolicyV1UploadPolicyFileResponse
1171
+ # Response message for downloading an uploaded file.
1172
+ class GoogleChromePolicyVersionsV1UploadPolicyFileResponse
899
1173
  include Google::Apis::Core::Hashable
900
1174
 
901
1175
  # The uri for end user to download the file.