google-apis-chromepolicy_v1 0.21.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25c49a5256fef4e9fb0b564116bf16a4528480924262689284ee7364c055c817
4
- data.tar.gz: 5e25b5de217c66fdb26a4bd82ec416584a748293a91b3f3177b4f65458fc21b6
3
+ metadata.gz: 47aa5116a252136182d8526a10982c3455772f5323dcc28f9f999f06bbdce63c
4
+ data.tar.gz: af9b51bde2b98d65acfb6ff1b56924896ae9fe10c32c365ed7b0277e18f62b5a
5
5
  SHA512:
6
- metadata.gz: 04d66e34bde9993f6b9bf33ecb6f4e78ad7db6f9e3ed472ed21612fcf22397e5809eadccc5b8869ed221ff8d7163e1bbdbd3a3f2a50877ed2ba57040299f99e6
7
- data.tar.gz: 22b38f426286332b3c398742fa92275537589f589b074a16105e7888da674b1b24b6e171a383f29323de9ffa80d95653d9b26dad012fefa242d66517e3fb21eb
6
+ metadata.gz: 5532371a9ea811cf264e406960fc7b864925c74126c7ff1336dbfaa7569c69610ef904c3cbf8978019478b15bea39bfa0d6b75db1d344f84ded3bc75071d821f
7
+ data.tar.gz: 6d15f1f1d19c9e597cacfc1e0cf277692fde057b0c54afbc812bbde86d9464c83bfb45e6b8fa11bd55a529e6d5a79e732de324f7726f43802bed92ff64087335
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-chromepolicy_v1
2
2
 
3
+ ### v0.24.0 (2022-08-17)
4
+
5
+ * Regenerated from discovery document revision 20220816
6
+
7
+ ### v0.23.0 (2022-08-10)
8
+
9
+ * Regenerated from discovery document revision 20220808
10
+
11
+ ### v0.22.0 (2022-07-19)
12
+
13
+ * Regenerated from discovery document revision 20220718
14
+
3
15
  ### v0.21.0 (2022-07-08)
4
16
 
5
17
  * Regenerated from discovery document revision 20220706
@@ -86,6 +86,31 @@ module Google
86
86
  end
87
87
  end
88
88
 
89
+ # Request message for specifying that multiple policy values will be deleted.
90
+ class GoogleChromePolicyV1BatchDeleteGroupPoliciesRequest
91
+ include Google::Apis::Core::Hashable
92
+
93
+ # List of policies that will be deleted as defined by the `requests`. All
94
+ # requests in the list must follow these restrictions: 1. All schemas in the
95
+ # list must have the same root namespace. 2. All `policyTargetKey.targetResource`
96
+ # values must point to a group resource. 3. All `policyTargetKey` values must
97
+ # have the same `app_id` key name in the `additionalTargetKeys`. 4. No two
98
+ # modification requests can reference the same `policySchema` + `
99
+ # policyTargetKey` pair.
100
+ # Corresponds to the JSON property `requests`
101
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DeleteGroupPolicyRequest>]
102
+ attr_accessor :requests
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ @requests = args[:requests] if args.key?(:requests)
111
+ end
112
+ end
113
+
89
114
  # Request message for specifying that multiple policy values inherit their value
90
115
  # from their parents.
91
116
  class GoogleChromePolicyV1BatchInheritOrgUnitPoliciesRequest
@@ -114,6 +139,31 @@ module Google
114
139
  end
115
140
  end
116
141
 
142
+ # Request message for modifying multiple policy values for a specific group-
143
+ # based target.
144
+ class GoogleChromePolicyV1BatchModifyGroupPoliciesRequest
145
+ include Google::Apis::Core::Hashable
146
+
147
+ # List of policies to modify as defined by the `requests`. All requests in the
148
+ # list must follow these restrictions: 1. All schemas in the list must have the
149
+ # same root namespace. 2. All `policyTargetKey.targetResource` values must point
150
+ # to a group resource. 3. All `policyTargetKey` values must have the same `
151
+ # app_id` key name in the `additionalTargetKeys`. 4. No two modification
152
+ # requests can reference the same `policySchema` + ` policyTargetKey` pair.
153
+ # Corresponds to the JSON property `requests`
154
+ # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ModifyGroupPolicyRequest>]
155
+ attr_accessor :requests
156
+
157
+ def initialize(**args)
158
+ update!(**args)
159
+ end
160
+
161
+ # Update properties of this object
162
+ def update!(**args)
163
+ @requests = args[:requests] if args.key?(:requests)
164
+ end
165
+ end
166
+
117
167
  # Request message for modifying multiple policy values for a specific target.
118
168
  class GoogleChromePolicyV1BatchModifyOrgUnitPoliciesRequest
119
169
  include Google::Apis::Core::Hashable
@@ -140,6 +190,31 @@ module Google
140
190
  end
141
191
  end
142
192
 
193
+ # Request parameters for deleting the policy value of a specific group target.
194
+ class GoogleChromePolicyV1DeleteGroupPolicyRequest
195
+ include Google::Apis::Core::Hashable
196
+
197
+ # The fully qualified name of the policy schema that is being inherited.
198
+ # Corresponds to the JSON property `policySchema`
199
+ # @return [String]
200
+ attr_accessor :policy_schema
201
+
202
+ # The key used to identify the target on which the policy will be applied.
203
+ # Corresponds to the JSON property `policyTargetKey`
204
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey]
205
+ attr_accessor :policy_target_key
206
+
207
+ def initialize(**args)
208
+ update!(**args)
209
+ end
210
+
211
+ # Update properties of this object
212
+ def update!(**args)
213
+ @policy_schema = args[:policy_schema] if args.key?(:policy_schema)
214
+ @policy_target_key = args[:policy_target_key] if args.key?(:policy_target_key)
215
+ end
216
+ end
217
+
143
218
  # Request parameters for inheriting policy value of a specific org unit target
144
219
  # from the policy value of its parent org unit.
145
220
  class GoogleChromePolicyV1InheritOrgUnitPolicyRequest
@@ -166,6 +241,62 @@ module Google
166
241
  end
167
242
  end
168
243
 
244
+ # Request message for listing the group priority ordering of an app.
245
+ class GoogleChromePolicyV1ListGroupPriorityOrderingRequest
246
+ include Google::Apis::Core::Hashable
247
+
248
+ # Required. The namespace of the policy type for the request.
249
+ # Corresponds to the JSON property `policyNamespace`
250
+ # @return [String]
251
+ attr_accessor :policy_namespace
252
+
253
+ # The key used to identify the target on which the policy will be applied.
254
+ # Corresponds to the JSON property `policyTargetKey`
255
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey]
256
+ attr_accessor :policy_target_key
257
+
258
+ def initialize(**args)
259
+ update!(**args)
260
+ end
261
+
262
+ # Update properties of this object
263
+ def update!(**args)
264
+ @policy_namespace = args[:policy_namespace] if args.key?(:policy_namespace)
265
+ @policy_target_key = args[:policy_target_key] if args.key?(:policy_target_key)
266
+ end
267
+ end
268
+
269
+ # Response message for listing the group priority ordering of an app.
270
+ class GoogleChromePolicyV1ListGroupPriorityOrderingResponse
271
+ include Google::Apis::Core::Hashable
272
+
273
+ # Output only. The group IDs, in priority ordering.
274
+ # Corresponds to the JSON property `groupIds`
275
+ # @return [Array<String>]
276
+ attr_accessor :group_ids
277
+
278
+ # Output only. The namespace of the policy type of the group IDs.
279
+ # Corresponds to the JSON property `policyNamespace`
280
+ # @return [String]
281
+ attr_accessor :policy_namespace
282
+
283
+ # The key used to identify the target on which the policy will be applied.
284
+ # Corresponds to the JSON property `policyTargetKey`
285
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey]
286
+ attr_accessor :policy_target_key
287
+
288
+ def initialize(**args)
289
+ update!(**args)
290
+ end
291
+
292
+ # Update properties of this object
293
+ def update!(**args)
294
+ @group_ids = args[:group_ids] if args.key?(:group_ids)
295
+ @policy_namespace = args[:policy_namespace] if args.key?(:policy_namespace)
296
+ @policy_target_key = args[:policy_target_key] if args.key?(:policy_target_key)
297
+ end
298
+ end
299
+
169
300
  # Response message for listing policy schemas that match a filter.
170
301
  class GoogleChromePolicyV1ListPolicySchemasResponse
171
302
  include Google::Apis::Core::Hashable
@@ -191,6 +322,39 @@ module Google
191
322
  end
192
323
  end
193
324
 
325
+ # Request parameters for modifying a policy value for a specific group target.
326
+ class GoogleChromePolicyV1ModifyGroupPolicyRequest
327
+ include Google::Apis::Core::Hashable
328
+
329
+ # The key used to identify the target on which the policy will be applied.
330
+ # Corresponds to the JSON property `policyTargetKey`
331
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey]
332
+ attr_accessor :policy_target_key
333
+
334
+ # A particular value for a policy managed by the service.
335
+ # Corresponds to the JSON property `policyValue`
336
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyValue]
337
+ attr_accessor :policy_value
338
+
339
+ # Required. Policy fields to update. Only fields in this mask will be updated;
340
+ # other fields in `policy_value` will be ignored (even if they have values). If
341
+ # a field is in this list it must have a value in 'policy_value'.
342
+ # Corresponds to the JSON property `updateMask`
343
+ # @return [String]
344
+ attr_accessor :update_mask
345
+
346
+ def initialize(**args)
347
+ update!(**args)
348
+ end
349
+
350
+ # Update properties of this object
351
+ def update!(**args)
352
+ @policy_target_key = args[:policy_target_key] if args.key?(:policy_target_key)
353
+ @policy_value = args[:policy_value] if args.key?(:policy_value)
354
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
355
+ end
356
+ end
357
+
194
358
  # Request parameters for modifying a policy value for a specific org unit target.
195
359
  class GoogleChromePolicyV1ModifyOrgUnitPolicyRequest
196
360
  include Google::Apis::Core::Hashable
@@ -224,7 +388,7 @@ module Google
224
388
  end
225
389
  end
226
390
 
227
- # Resource representing a policy schema. Next ID: 12
391
+ # Resource representing a policy schema. Next ID: 13
228
392
  class GoogleChromePolicyV1PolicySchema
229
393
  include Google::Apis::Core::Hashable
230
394
 
@@ -261,7 +425,12 @@ module Google
261
425
  # @return [Array<Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaNoticeDescription>]
262
426
  attr_accessor :notices
263
427
 
264
- # Output only. Current life cycle information.
428
+ # Output only. Current lifecycle information.
429
+ # Corresponds to the JSON property `policyApiLifecycle`
430
+ # @return [Google::Apis::ChromepolicyV1::ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle]
431
+ attr_accessor :policy_api_lifecycle
432
+
433
+ # Deprecated field because of typo.
265
434
  # Corresponds to the JSON property `policyApiLifeycle`
266
435
  # @return [Google::Apis::ChromepolicyV1::ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle]
267
436
  attr_accessor :policy_api_lifeycle
@@ -273,7 +442,8 @@ module Google
273
442
 
274
443
  # Output only. The fully qualified name of the policy schema. This value is used
275
444
  # to fill the field `policy_schema` in PolicyValue when calling
276
- # BatchInheritOrgUnitPolicies or BatchModifyOrgUnitPolicies
445
+ # BatchInheritOrgUnitPolicies BatchModifyOrgUnitPolicies
446
+ # BatchModifyGroupPolicies or BatchDeleteGroupPolicies.
277
447
  # Corresponds to the JSON property `schemaName`
278
448
  # @return [String]
279
449
  attr_accessor :schema_name
@@ -300,6 +470,7 @@ module Google
300
470
  @field_descriptions = args[:field_descriptions] if args.key?(:field_descriptions)
301
471
  @name = args[:name] if args.key?(:name)
302
472
  @notices = args[:notices] if args.key?(:notices)
473
+ @policy_api_lifecycle = args[:policy_api_lifecycle] if args.key?(:policy_api_lifecycle)
303
474
  @policy_api_lifeycle = args[:policy_api_lifeycle] if args.key?(:policy_api_lifeycle)
304
475
  @policy_description = args[:policy_description] if args.key?(:policy_description)
305
476
  @schema_name = args[:schema_name] if args.key?(:schema_name)
@@ -502,7 +673,8 @@ module Google
502
673
  attr_accessor :additional_target_keys
503
674
 
504
675
  # The target resource on which this policy is applied. The following resources
505
- # are supported: * Organizational Unit ("orgunits/`orgunit_id`")
676
+ # are supported: * Organizational Unit ("orgunits/`orgunit_id`") * Group ("
677
+ # groups/`group_id`")
506
678
  # Corresponds to the JSON property `targetResource`
507
679
  # @return [String]
508
680
  attr_accessor :target_resource
@@ -651,6 +823,77 @@ module Google
651
823
  end
652
824
  end
653
825
 
826
+ # Request message for updating the group priority ordering of an app.
827
+ class GoogleChromePolicyV1UpdateGroupPriorityOrderingRequest
828
+ include Google::Apis::Core::Hashable
829
+
830
+ # Required. The group IDs, in desired priority ordering.
831
+ # Corresponds to the JSON property `groupIds`
832
+ # @return [Array<String>]
833
+ attr_accessor :group_ids
834
+
835
+ # Required. The namespace of the policy type for the request.
836
+ # Corresponds to the JSON property `policyNamespace`
837
+ # @return [String]
838
+ attr_accessor :policy_namespace
839
+
840
+ # The key used to identify the target on which the policy will be applied.
841
+ # Corresponds to the JSON property `policyTargetKey`
842
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey]
843
+ attr_accessor :policy_target_key
844
+
845
+ def initialize(**args)
846
+ update!(**args)
847
+ end
848
+
849
+ # Update properties of this object
850
+ def update!(**args)
851
+ @group_ids = args[:group_ids] if args.key?(:group_ids)
852
+ @policy_namespace = args[:policy_namespace] if args.key?(:policy_namespace)
853
+ @policy_target_key = args[:policy_target_key] if args.key?(:policy_target_key)
854
+ end
855
+ end
856
+
857
+ # Request message for uploading a file for a policy. Next ID: 5
858
+ class GoogleChromePolicyV1UploadPolicyFileRequest
859
+ include Google::Apis::Core::Hashable
860
+
861
+ # Required. The fully qualified policy schema and field name this file is
862
+ # uploaded for. This information will be used to validate the content type of
863
+ # the file.
864
+ # Corresponds to the JSON property `policyField`
865
+ # @return [String]
866
+ attr_accessor :policy_field
867
+
868
+ def initialize(**args)
869
+ update!(**args)
870
+ end
871
+
872
+ # Update properties of this object
873
+ def update!(**args)
874
+ @policy_field = args[:policy_field] if args.key?(:policy_field)
875
+ end
876
+ end
877
+
878
+ # Response message for downloading an uploaded file. Next ID: 2
879
+ class GoogleChromePolicyV1UploadPolicyFileResponse
880
+ include Google::Apis::Core::Hashable
881
+
882
+ # The uri for end user to download the file.
883
+ # Corresponds to the JSON property `downloadUri`
884
+ # @return [String]
885
+ attr_accessor :download_uri
886
+
887
+ def initialize(**args)
888
+ update!(**args)
889
+ end
890
+
891
+ # Update properties of this object
892
+ def update!(**args)
893
+ @download_uri = args[:download_uri] if args.key?(:download_uri)
894
+ end
895
+ end
896
+
654
897
  # A generic empty message that you can re-use to avoid defining duplicated empty
655
898
  # messages in your APIs. A typical example is to use it as the request or the
656
899
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ChromepolicyV1
18
18
  # Version of the google-apis-chromepolicy_v1 gem
19
- GEM_VERSION = "0.21.0"
19
+ GEM_VERSION = "0.24.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220706"
25
+ REVISION = "20220816"
26
26
  end
27
27
  end
28
28
  end
@@ -34,30 +34,66 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class GoogleChromePolicyV1BatchDeleteGroupPoliciesRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class GoogleChromePolicyV1BatchInheritOrgUnitPoliciesRequest
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
40
46
  include Google::Apis::Core::JsonObjectSupport
41
47
  end
42
48
 
49
+ class GoogleChromePolicyV1BatchModifyGroupPoliciesRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
43
55
  class GoogleChromePolicyV1BatchModifyOrgUnitPoliciesRequest
44
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
57
 
46
58
  include Google::Apis::Core::JsonObjectSupport
47
59
  end
48
60
 
61
+ class GoogleChromePolicyV1DeleteGroupPolicyRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
49
67
  class GoogleChromePolicyV1InheritOrgUnitPolicyRequest
50
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
69
 
52
70
  include Google::Apis::Core::JsonObjectSupport
53
71
  end
54
72
 
73
+ class GoogleChromePolicyV1ListGroupPriorityOrderingRequest
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleChromePolicyV1ListGroupPriorityOrderingResponse
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
55
85
  class GoogleChromePolicyV1ListPolicySchemasResponse
56
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
87
 
58
88
  include Google::Apis::Core::JsonObjectSupport
59
89
  end
60
90
 
91
+ class GoogleChromePolicyV1ModifyGroupPolicyRequest
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
61
97
  class GoogleChromePolicyV1ModifyOrgUnitPolicyRequest
62
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
99
 
@@ -130,6 +166,24 @@ module Google
130
166
  include Google::Apis::Core::JsonObjectSupport
131
167
  end
132
168
 
169
+ class GoogleChromePolicyV1UpdateGroupPriorityOrderingRequest
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class GoogleChromePolicyV1UploadPolicyFileRequest
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class GoogleChromePolicyV1UploadPolicyFileResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
133
187
  class GoogleProtobufEmpty
134
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
189
 
@@ -196,6 +250,14 @@ module Google
196
250
  end
197
251
  end
198
252
 
253
+ class GoogleChromePolicyV1BatchDeleteGroupPoliciesRequest
254
+ # @private
255
+ class Representation < Google::Apis::Core::JsonRepresentation
256
+ collection :requests, as: 'requests', class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DeleteGroupPolicyRequest, decorator: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1DeleteGroupPolicyRequest::Representation
257
+
258
+ end
259
+ end
260
+
199
261
  class GoogleChromePolicyV1BatchInheritOrgUnitPoliciesRequest
200
262
  # @private
201
263
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -204,6 +266,14 @@ module Google
204
266
  end
205
267
  end
206
268
 
269
+ class GoogleChromePolicyV1BatchModifyGroupPoliciesRequest
270
+ # @private
271
+ class Representation < Google::Apis::Core::JsonRepresentation
272
+ collection :requests, as: 'requests', class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ModifyGroupPolicyRequest, decorator: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ModifyGroupPolicyRequest::Representation
273
+
274
+ end
275
+ end
276
+
207
277
  class GoogleChromePolicyV1BatchModifyOrgUnitPoliciesRequest
208
278
  # @private
209
279
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -212,6 +282,15 @@ module Google
212
282
  end
213
283
  end
214
284
 
285
+ class GoogleChromePolicyV1DeleteGroupPolicyRequest
286
+ # @private
287
+ class Representation < Google::Apis::Core::JsonRepresentation
288
+ property :policy_schema, as: 'policySchema'
289
+ property :policy_target_key, as: 'policyTargetKey', class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey, decorator: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey::Representation
290
+
291
+ end
292
+ end
293
+
215
294
  class GoogleChromePolicyV1InheritOrgUnitPolicyRequest
216
295
  # @private
217
296
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -221,6 +300,25 @@ module Google
221
300
  end
222
301
  end
223
302
 
303
+ class GoogleChromePolicyV1ListGroupPriorityOrderingRequest
304
+ # @private
305
+ class Representation < Google::Apis::Core::JsonRepresentation
306
+ property :policy_namespace, as: 'policyNamespace'
307
+ property :policy_target_key, as: 'policyTargetKey', class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey, decorator: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey::Representation
308
+
309
+ end
310
+ end
311
+
312
+ class GoogleChromePolicyV1ListGroupPriorityOrderingResponse
313
+ # @private
314
+ class Representation < Google::Apis::Core::JsonRepresentation
315
+ collection :group_ids, as: 'groupIds'
316
+ property :policy_namespace, as: 'policyNamespace'
317
+ property :policy_target_key, as: 'policyTargetKey', class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey, decorator: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey::Representation
318
+
319
+ end
320
+ end
321
+
224
322
  class GoogleChromePolicyV1ListPolicySchemasResponse
225
323
  # @private
226
324
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -230,6 +328,17 @@ module Google
230
328
  end
231
329
  end
232
330
 
331
+ class GoogleChromePolicyV1ModifyGroupPolicyRequest
332
+ # @private
333
+ class Representation < Google::Apis::Core::JsonRepresentation
334
+ property :policy_target_key, as: 'policyTargetKey', class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey, decorator: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey::Representation
335
+
336
+ property :policy_value, as: 'policyValue', class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyValue, decorator: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyValue::Representation
337
+
338
+ property :update_mask, as: 'updateMask'
339
+ end
340
+ end
341
+
233
342
  class GoogleChromePolicyV1ModifyOrgUnitPolicyRequest
234
343
  # @private
235
344
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -254,6 +363,8 @@ module Google
254
363
  property :name, as: 'name'
255
364
  collection :notices, as: 'notices', class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaNoticeDescription, decorator: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicySchemaNoticeDescription::Representation
256
365
 
366
+ property :policy_api_lifecycle, as: 'policyApiLifecycle', class: Google::Apis::ChromepolicyV1::ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle, decorator: Google::Apis::ChromepolicyV1::ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle::Representation
367
+
257
368
  property :policy_api_lifeycle, as: 'policyApiLifeycle', class: Google::Apis::ChromepolicyV1::ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle, decorator: Google::Apis::ChromepolicyV1::ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle::Representation
258
369
 
259
370
  property :policy_description, as: 'policyDescription'
@@ -364,6 +475,30 @@ module Google
364
475
  end
365
476
  end
366
477
 
478
+ class GoogleChromePolicyV1UpdateGroupPriorityOrderingRequest
479
+ # @private
480
+ class Representation < Google::Apis::Core::JsonRepresentation
481
+ collection :group_ids, as: 'groupIds'
482
+ property :policy_namespace, as: 'policyNamespace'
483
+ property :policy_target_key, as: 'policyTargetKey', class: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey, decorator: Google::Apis::ChromepolicyV1::GoogleChromePolicyV1PolicyTargetKey::Representation
484
+
485
+ end
486
+ end
487
+
488
+ class GoogleChromePolicyV1UploadPolicyFileRequest
489
+ # @private
490
+ class Representation < Google::Apis::Core::JsonRepresentation
491
+ property :policy_field, as: 'policyField'
492
+ end
493
+ end
494
+
495
+ class GoogleChromePolicyV1UploadPolicyFileResponse
496
+ # @private
497
+ class Representation < Google::Apis::Core::JsonRepresentation
498
+ property :download_uri, as: 'downloadUri'
499
+ end
500
+ end
501
+
367
502
  class GoogleProtobufEmpty
368
503
  # @private
369
504
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -86,6 +86,156 @@ module Google
86
86
  execute_or_queue_command(command, &block)
87
87
  end
88
88
 
89
+ # Delete multiple policy values that are applied to a specific group. All
90
+ # targets must have the same target format. That is to say that they must point
91
+ # to the same target resource and must have the same keys specified in `
92
+ # additionalTargetKeyNames`, though the values for those keys may be different.
93
+ # On failure the request will return the error details as part of the google.rpc.
94
+ # Status.
95
+ # @param [String] customer
96
+ # ID of the Google Workspace account or literal "my_customer" for the customer
97
+ # associated to the request.
98
+ # @param [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1BatchDeleteGroupPoliciesRequest] google_chrome_policy_v1_batch_delete_group_policies_request_object
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [Google::Apis::RequestOptions] options
105
+ # Request-specific options
106
+ #
107
+ # @yield [result, err] Result & error if block supplied
108
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleProtobufEmpty] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::ChromepolicyV1::GoogleProtobufEmpty]
112
+ #
113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
116
+ def batch_customer_policy_group_delete(customer, google_chrome_policy_v1_batch_delete_group_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:post, 'v1/{+customer}/policies/groups:batchDelete', options)
118
+ command.request_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1BatchDeleteGroupPoliciesRequest::Representation
119
+ command.request_object = google_chrome_policy_v1_batch_delete_group_policies_request_object
120
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleProtobufEmpty::Representation
121
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleProtobufEmpty
122
+ command.params['customer'] = customer unless customer.nil?
123
+ command.query['fields'] = fields unless fields.nil?
124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
125
+ execute_or_queue_command(command, &block)
126
+ end
127
+
128
+ # Modify multiple policy values that are applied to a specific group. All
129
+ # targets must have the same target format. That is to say that they must point
130
+ # to the same target resource and must have the same keys specified in `
131
+ # additionalTargetKeyNames`, though the values for those keys may be different.
132
+ # On failure the request will return the error details as part of the google.rpc.
133
+ # Status.
134
+ # @param [String] customer
135
+ # ID of the Google Workspace account or literal "my_customer" for the customer
136
+ # associated to the request.
137
+ # @param [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1BatchModifyGroupPoliciesRequest] google_chrome_policy_v1_batch_modify_group_policies_request_object
138
+ # @param [String] fields
139
+ # Selector specifying which fields to include in a partial response.
140
+ # @param [String] quota_user
141
+ # Available to use for quota purposes for server-side applications. Can be any
142
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
143
+ # @param [Google::Apis::RequestOptions] options
144
+ # Request-specific options
145
+ #
146
+ # @yield [result, err] Result & error if block supplied
147
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleProtobufEmpty] parsed result object
148
+ # @yieldparam err [StandardError] error object if request failed
149
+ #
150
+ # @return [Google::Apis::ChromepolicyV1::GoogleProtobufEmpty]
151
+ #
152
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
153
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
154
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
155
+ def batch_customer_policy_group_modify(customer, google_chrome_policy_v1_batch_modify_group_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
156
+ command = make_simple_command(:post, 'v1/{+customer}/policies/groups:batchModify', options)
157
+ command.request_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1BatchModifyGroupPoliciesRequest::Representation
158
+ command.request_object = google_chrome_policy_v1_batch_modify_group_policies_request_object
159
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleProtobufEmpty::Representation
160
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleProtobufEmpty
161
+ command.params['customer'] = customer unless customer.nil?
162
+ command.query['fields'] = fields unless fields.nil?
163
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
164
+ execute_or_queue_command(command, &block)
165
+ end
166
+
167
+ # Retrieve a group priority ordering for an app. The target app must be supplied
168
+ # in `additionalTargetKeyNames` in the PolicyTargetKey. On failure the request
169
+ # will return the error details as part of the google.rpc.Status.
170
+ # @param [String] customer
171
+ # Required. ID of the Google Workspace account or literal "my_customer" for the
172
+ # customer associated to the request.
173
+ # @param [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ListGroupPriorityOrderingRequest] google_chrome_policy_v1_list_group_priority_ordering_request_object
174
+ # @param [String] fields
175
+ # Selector specifying which fields to include in a partial response.
176
+ # @param [String] quota_user
177
+ # Available to use for quota purposes for server-side applications. Can be any
178
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
179
+ # @param [Google::Apis::RequestOptions] options
180
+ # Request-specific options
181
+ #
182
+ # @yield [result, err] Result & error if block supplied
183
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ListGroupPriorityOrderingResponse] parsed result object
184
+ # @yieldparam err [StandardError] error object if request failed
185
+ #
186
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ListGroupPriorityOrderingResponse]
187
+ #
188
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
189
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
190
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
191
+ def list_customer_policy_group_group_priority_ordering(customer, google_chrome_policy_v1_list_group_priority_ordering_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
192
+ command = make_simple_command(:post, 'v1/{+customer}/policies/groups:listGroupPriorityOrdering', options)
193
+ command.request_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ListGroupPriorityOrderingRequest::Representation
194
+ command.request_object = google_chrome_policy_v1_list_group_priority_ordering_request_object
195
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ListGroupPriorityOrderingResponse::Representation
196
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1ListGroupPriorityOrderingResponse
197
+ command.params['customer'] = customer unless customer.nil?
198
+ command.query['fields'] = fields unless fields.nil?
199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
200
+ execute_or_queue_command(command, &block)
201
+ end
202
+
203
+ # Update a group priority ordering for an app. The target app must be supplied
204
+ # in `additionalTargetKeyNames` in the PolicyTargetKey. On failure the request
205
+ # will return the error details as part of the google.rpc.Status.
206
+ # @param [String] customer
207
+ # Required. ID of the Google Workspace account or literal "my_customer" for the
208
+ # customer associated to the request.
209
+ # @param [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UpdateGroupPriorityOrderingRequest] google_chrome_policy_v1_update_group_priority_ordering_request_object
210
+ # @param [String] fields
211
+ # Selector specifying which fields to include in a partial response.
212
+ # @param [String] quota_user
213
+ # Available to use for quota purposes for server-side applications. Can be any
214
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
215
+ # @param [Google::Apis::RequestOptions] options
216
+ # Request-specific options
217
+ #
218
+ # @yield [result, err] Result & error if block supplied
219
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleProtobufEmpty] parsed result object
220
+ # @yieldparam err [StandardError] error object if request failed
221
+ #
222
+ # @return [Google::Apis::ChromepolicyV1::GoogleProtobufEmpty]
223
+ #
224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
227
+ def update_customer_policy_group_group_priority_ordering(customer, google_chrome_policy_v1_update_group_priority_ordering_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
228
+ command = make_simple_command(:post, 'v1/{+customer}/policies/groups:updateGroupPriorityOrdering', options)
229
+ command.request_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UpdateGroupPriorityOrderingRequest::Representation
230
+ command.request_object = google_chrome_policy_v1_update_group_priority_ordering_request_object
231
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleProtobufEmpty::Representation
232
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleProtobufEmpty
233
+ command.params['customer'] = customer unless customer.nil?
234
+ command.query['fields'] = fields unless fields.nil?
235
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
236
+ execute_or_queue_command(command, &block)
237
+ end
238
+
89
239
  # Modify multiple policy values that are applied to a specific org unit so that
90
240
  # they now inherit the value from a parent (if applicable). All targets must
91
241
  # have the same target format. That is to say that they must point to the same
@@ -235,6 +385,50 @@ module Google
235
385
  command.query['quotaUser'] = quota_user unless quota_user.nil?
236
386
  execute_or_queue_command(command, &block)
237
387
  end
388
+
389
+ # Creates an enterprise file from the content provided by user. Returns a public
390
+ # download url for end user.
391
+ # @param [String] customer
392
+ # Required. The customer for which the file upload will apply.
393
+ # @param [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileRequest] google_chrome_policy_v1_upload_policy_file_request_object
394
+ # @param [String] fields
395
+ # Selector specifying which fields to include in a partial response.
396
+ # @param [String] quota_user
397
+ # Available to use for quota purposes for server-side applications. Can be any
398
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
399
+ # @param [IO, String] upload_source
400
+ # IO stream or filename containing content to upload
401
+ # @param [String] content_type
402
+ # Content type of the uploaded content.
403
+ # @param [Google::Apis::RequestOptions] options
404
+ # Request-specific options
405
+ #
406
+ # @yield [result, err] Result & error if block supplied
407
+ # @yieldparam result [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileResponse] parsed result object
408
+ # @yieldparam err [StandardError] error object if request failed
409
+ #
410
+ # @return [Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileResponse]
411
+ #
412
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
413
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
414
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
415
+ def upload_medium(customer, google_chrome_policy_v1_upload_policy_file_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
416
+ if upload_source.nil?
417
+ command = make_simple_command(:post, 'v1/{+customer}/policies/files:uploadPolicyFile', options)
418
+ else
419
+ command = make_upload_command(:post, 'v1/{+customer}/policies/files:uploadPolicyFile', options)
420
+ command.upload_source = upload_source
421
+ command.upload_content_type = content_type
422
+ end
423
+ command.request_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileRequest::Representation
424
+ command.request_object = google_chrome_policy_v1_upload_policy_file_request_object
425
+ command.response_representation = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileResponse::Representation
426
+ command.response_class = Google::Apis::ChromepolicyV1::GoogleChromePolicyV1UploadPolicyFileResponse
427
+ command.params['customer'] = customer unless customer.nil?
428
+ command.query['fields'] = fields unless fields.nil?
429
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
430
+ execute_or_queue_command(command, &block)
431
+ end
238
432
 
239
433
  protected
240
434
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-chromepolicy_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-11 00:00:00.000000000 Z
11
+ date: 2022-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chromepolicy_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-chromepolicy_v1/v0.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-chromepolicy_v1/v0.24.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-chromepolicy_v1
63
63
  post_install_message:
64
64
  rdoc_options: []