google-apis-binaryauthorization_v1 0.25.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BinaryauthorizationV1
18
18
  # Version of the google-apis-binaryauthorization_v1 gem
19
- GEM_VERSION = "0.25.0"
19
+ GEM_VERSION = "0.27.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.1"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230127"
25
+ REVISION = "20230804"
26
26
  end
27
27
  end
28
28
  end
@@ -34,12 +34,24 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class AttestationAuthenticator
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class AttestationOccurrence
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 AttestationSource
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
43
55
  class Attestor
44
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
57
 
@@ -58,6 +70,18 @@ module Google
58
70
  include Google::Apis::Core::JsonObjectSupport
59
71
  end
60
72
 
73
+ class Check
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class CheckSet
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
61
85
  class Empty
62
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
87
 
@@ -70,12 +94,30 @@ module Google
70
94
  include Google::Apis::Core::JsonObjectSupport
71
95
  end
72
96
 
97
+ class GkePolicy
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
73
103
  class IamPolicy
74
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
105
 
76
106
  include Google::Apis::Core::JsonObjectSupport
77
107
  end
78
108
 
109
+ class ImageAllowlist
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ImageFreshnessCheck
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
79
121
  class Jwt
80
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
123
 
@@ -88,18 +130,42 @@ module Google
88
130
  include Google::Apis::Core::JsonObjectSupport
89
131
  end
90
132
 
133
+ class ListPlatformPoliciesResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
91
139
  class PkixPublicKey
92
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
141
 
94
142
  include Google::Apis::Core::JsonObjectSupport
95
143
  end
96
144
 
145
+ class PkixPublicKeySet
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class PlatformPolicy
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
97
157
  class Policy
98
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
159
 
100
160
  include Google::Apis::Core::JsonObjectSupport
101
161
  end
102
162
 
163
+ class Scope
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
103
169
  class SetIamPolicyRequest
104
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
171
 
@@ -112,6 +178,18 @@ module Google
112
178
  include Google::Apis::Core::JsonObjectSupport
113
179
  end
114
180
 
181
+ class SimpleSigningAttestationCheck
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class SlsaCheck
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
115
193
  class TestIamPermissionsRequest
116
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
195
 
@@ -124,6 +202,12 @@ module Google
124
202
  include Google::Apis::Core::JsonObjectSupport
125
203
  end
126
204
 
205
+ class TrustedDirectoryCheck
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
127
211
  class UserOwnedGrafeasNote
128
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
213
 
@@ -142,6 +226,18 @@ module Google
142
226
  include Google::Apis::Core::JsonObjectSupport
143
227
  end
144
228
 
229
+ class VerificationRule
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class VulnerabilityCheck
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
145
241
  class AdmissionRule
146
242
  # @private
147
243
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -158,6 +254,15 @@ module Google
158
254
  end
159
255
  end
160
256
 
257
+ class AttestationAuthenticator
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ property :display_name, as: 'displayName'
261
+ property :pkix_public_key_set, as: 'pkixPublicKeySet', class: Google::Apis::BinaryauthorizationV1::PkixPublicKeySet, decorator: Google::Apis::BinaryauthorizationV1::PkixPublicKeySet::Representation
262
+
263
+ end
264
+ end
265
+
161
266
  class AttestationOccurrence
162
267
  # @private
163
268
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -169,6 +274,13 @@ module Google
169
274
  end
170
275
  end
171
276
 
277
+ class AttestationSource
278
+ # @private
279
+ class Representation < Google::Apis::Core::JsonRepresentation
280
+ collection :container_analysis_attestation_projects, as: 'containerAnalysisAttestationProjects'
281
+ end
282
+ end
283
+
172
284
  class Attestor
173
285
  # @private
174
286
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -202,6 +314,39 @@ module Google
202
314
  end
203
315
  end
204
316
 
317
+ class Check
318
+ # @private
319
+ class Representation < Google::Apis::Core::JsonRepresentation
320
+ property :always_deny, as: 'alwaysDeny'
321
+ property :display_name, as: 'displayName'
322
+ property :image_allowlist, as: 'imageAllowlist', class: Google::Apis::BinaryauthorizationV1::ImageAllowlist, decorator: Google::Apis::BinaryauthorizationV1::ImageAllowlist::Representation
323
+
324
+ property :image_freshness_check, as: 'imageFreshnessCheck', class: Google::Apis::BinaryauthorizationV1::ImageFreshnessCheck, decorator: Google::Apis::BinaryauthorizationV1::ImageFreshnessCheck::Representation
325
+
326
+ property :simple_signing_attestation_check, as: 'simpleSigningAttestationCheck', class: Google::Apis::BinaryauthorizationV1::SimpleSigningAttestationCheck, decorator: Google::Apis::BinaryauthorizationV1::SimpleSigningAttestationCheck::Representation
327
+
328
+ property :slsa_check, as: 'slsaCheck', class: Google::Apis::BinaryauthorizationV1::SlsaCheck, decorator: Google::Apis::BinaryauthorizationV1::SlsaCheck::Representation
329
+
330
+ property :trusted_directory_check, as: 'trustedDirectoryCheck', class: Google::Apis::BinaryauthorizationV1::TrustedDirectoryCheck, decorator: Google::Apis::BinaryauthorizationV1::TrustedDirectoryCheck::Representation
331
+
332
+ property :vulnerability_check, as: 'vulnerabilityCheck', class: Google::Apis::BinaryauthorizationV1::VulnerabilityCheck, decorator: Google::Apis::BinaryauthorizationV1::VulnerabilityCheck::Representation
333
+
334
+ end
335
+ end
336
+
337
+ class CheckSet
338
+ # @private
339
+ class Representation < Google::Apis::Core::JsonRepresentation
340
+ collection :checks, as: 'checks', class: Google::Apis::BinaryauthorizationV1::Check, decorator: Google::Apis::BinaryauthorizationV1::Check::Representation
341
+
342
+ property :display_name, as: 'displayName'
343
+ property :image_allowlist, as: 'imageAllowlist', class: Google::Apis::BinaryauthorizationV1::ImageAllowlist, decorator: Google::Apis::BinaryauthorizationV1::ImageAllowlist::Representation
344
+
345
+ property :scope, as: 'scope', class: Google::Apis::BinaryauthorizationV1::Scope, decorator: Google::Apis::BinaryauthorizationV1::Scope::Representation
346
+
347
+ end
348
+ end
349
+
205
350
  class Empty
206
351
  # @private
207
352
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -218,6 +363,16 @@ module Google
218
363
  end
219
364
  end
220
365
 
366
+ class GkePolicy
367
+ # @private
368
+ class Representation < Google::Apis::Core::JsonRepresentation
369
+ collection :check_sets, as: 'checkSets', class: Google::Apis::BinaryauthorizationV1::CheckSet, decorator: Google::Apis::BinaryauthorizationV1::CheckSet::Representation
370
+
371
+ property :image_allowlist, as: 'imageAllowlist', class: Google::Apis::BinaryauthorizationV1::ImageAllowlist, decorator: Google::Apis::BinaryauthorizationV1::ImageAllowlist::Representation
372
+
373
+ end
374
+ end
375
+
221
376
  class IamPolicy
222
377
  # @private
223
378
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -228,6 +383,20 @@ module Google
228
383
  end
229
384
  end
230
385
 
386
+ class ImageAllowlist
387
+ # @private
388
+ class Representation < Google::Apis::Core::JsonRepresentation
389
+ collection :allow_pattern, as: 'allowPattern'
390
+ end
391
+ end
392
+
393
+ class ImageFreshnessCheck
394
+ # @private
395
+ class Representation < Google::Apis::Core::JsonRepresentation
396
+ property :max_upload_age_days, as: 'maxUploadAgeDays'
397
+ end
398
+ end
399
+
231
400
  class Jwt
232
401
  # @private
233
402
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -244,6 +413,15 @@ module Google
244
413
  end
245
414
  end
246
415
 
416
+ class ListPlatformPoliciesResponse
417
+ # @private
418
+ class Representation < Google::Apis::Core::JsonRepresentation
419
+ property :next_page_token, as: 'nextPageToken'
420
+ collection :platform_policies, as: 'platformPolicies', class: Google::Apis::BinaryauthorizationV1::PlatformPolicy, decorator: Google::Apis::BinaryauthorizationV1::PlatformPolicy::Representation
421
+
422
+ end
423
+ end
424
+
247
425
  class PkixPublicKey
248
426
  # @private
249
427
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -252,6 +430,25 @@ module Google
252
430
  end
253
431
  end
254
432
 
433
+ class PkixPublicKeySet
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ collection :pkix_public_keys, as: 'pkixPublicKeys', class: Google::Apis::BinaryauthorizationV1::PkixPublicKey, decorator: Google::Apis::BinaryauthorizationV1::PkixPublicKey::Representation
437
+
438
+ end
439
+ end
440
+
441
+ class PlatformPolicy
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ property :description, as: 'description'
445
+ property :gke_policy, as: 'gkePolicy', class: Google::Apis::BinaryauthorizationV1::GkePolicy, decorator: Google::Apis::BinaryauthorizationV1::GkePolicy::Representation
446
+
447
+ property :name, as: 'name'
448
+ property :update_time, as: 'updateTime'
449
+ end
450
+ end
451
+
255
452
  class Policy
256
453
  # @private
257
454
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -275,6 +472,14 @@ module Google
275
472
  end
276
473
  end
277
474
 
475
+ class Scope
476
+ # @private
477
+ class Representation < Google::Apis::Core::JsonRepresentation
478
+ property :kubernetes_namespace, as: 'kubernetesNamespace'
479
+ property :kubernetes_service_account, as: 'kubernetesServiceAccount'
480
+ end
481
+ end
482
+
278
483
  class SetIamPolicyRequest
279
484
  # @private
280
485
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -291,6 +496,23 @@ module Google
291
496
  end
292
497
  end
293
498
 
499
+ class SimpleSigningAttestationCheck
500
+ # @private
501
+ class Representation < Google::Apis::Core::JsonRepresentation
502
+ collection :attestation_authenticators, as: 'attestationAuthenticators', class: Google::Apis::BinaryauthorizationV1::AttestationAuthenticator, decorator: Google::Apis::BinaryauthorizationV1::AttestationAuthenticator::Representation
503
+
504
+ collection :container_analysis_attestation_projects, as: 'containerAnalysisAttestationProjects'
505
+ end
506
+ end
507
+
508
+ class SlsaCheck
509
+ # @private
510
+ class Representation < Google::Apis::Core::JsonRepresentation
511
+ collection :rules, as: 'rules', class: Google::Apis::BinaryauthorizationV1::VerificationRule, decorator: Google::Apis::BinaryauthorizationV1::VerificationRule::Representation
512
+
513
+ end
514
+ end
515
+
294
516
  class TestIamPermissionsRequest
295
517
  # @private
296
518
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -305,6 +527,13 @@ module Google
305
527
  end
306
528
  end
307
529
 
530
+ class TrustedDirectoryCheck
531
+ # @private
532
+ class Representation < Google::Apis::Core::JsonRepresentation
533
+ collection :trusted_dir_patterns, as: 'trustedDirPatterns'
534
+ end
535
+ end
536
+
308
537
  class UserOwnedGrafeasNote
309
538
  # @private
310
539
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -332,6 +561,28 @@ module Google
332
561
  property :result, as: 'result'
333
562
  end
334
563
  end
564
+
565
+ class VerificationRule
566
+ # @private
567
+ class Representation < Google::Apis::Core::JsonRepresentation
568
+ property :attestation_source, as: 'attestationSource', class: Google::Apis::BinaryauthorizationV1::AttestationSource, decorator: Google::Apis::BinaryauthorizationV1::AttestationSource::Representation
569
+
570
+ property :config_based_build_required, as: 'configBasedBuildRequired'
571
+ property :trusted_builder, as: 'trustedBuilder'
572
+ collection :trusted_source_repo_patterns, as: 'trustedSourceRepoPatterns'
573
+ end
574
+ end
575
+
576
+ class VulnerabilityCheck
577
+ # @private
578
+ class Representation < Google::Apis::Core::JsonRepresentation
579
+ collection :allowed_cves, as: 'allowedCves'
580
+ collection :blocked_cves, as: 'blockedCves'
581
+ collection :container_analysis_vulnerability_projects, as: 'containerAnalysisVulnerabilityProjects'
582
+ property :maximum_fixable_severity, as: 'maximumFixableSeverity'
583
+ property :maximum_unfixable_severity, as: 'maximumUnfixableSeverity'
584
+ end
585
+ end
335
586
  end
336
587
  end
337
588
  end
@@ -453,6 +453,183 @@ module Google
453
453
  execute_or_queue_command(command, &block)
454
454
  end
455
455
 
456
+ # Creates a platform policy, and returns a copy of it. Returns NOT_FOUND if the
457
+ # project or platform doesn't exist, INVALID_ARGUMENT if the request is
458
+ # malformed, ALREADY_EXISTS if the policy already exists, and INVALID_ARGUMENT
459
+ # if the policy contains a platform-specific policy that does not match the
460
+ # platform value specified in the URL.
461
+ # @param [String] parent
462
+ # Required. The parent of this platform policy.
463
+ # @param [Google::Apis::BinaryauthorizationV1::PlatformPolicy] platform_policy_object
464
+ # @param [String] policy_id
465
+ # Required. The platform policy ID.
466
+ # @param [String] fields
467
+ # Selector specifying which fields to include in a partial response.
468
+ # @param [String] quota_user
469
+ # Available to use for quota purposes for server-side applications. Can be any
470
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
471
+ # @param [Google::Apis::RequestOptions] options
472
+ # Request-specific options
473
+ #
474
+ # @yield [result, err] Result & error if block supplied
475
+ # @yieldparam result [Google::Apis::BinaryauthorizationV1::PlatformPolicy] parsed result object
476
+ # @yieldparam err [StandardError] error object if request failed
477
+ #
478
+ # @return [Google::Apis::BinaryauthorizationV1::PlatformPolicy]
479
+ #
480
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
481
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
482
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
483
+ def create_project_platform_policy(parent, platform_policy_object = nil, policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
484
+ command = make_simple_command(:post, 'v1/{+parent}/policies', options)
485
+ command.request_representation = Google::Apis::BinaryauthorizationV1::PlatformPolicy::Representation
486
+ command.request_object = platform_policy_object
487
+ command.response_representation = Google::Apis::BinaryauthorizationV1::PlatformPolicy::Representation
488
+ command.response_class = Google::Apis::BinaryauthorizationV1::PlatformPolicy
489
+ command.params['parent'] = parent unless parent.nil?
490
+ command.query['policyId'] = policy_id unless policy_id.nil?
491
+ command.query['fields'] = fields unless fields.nil?
492
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
493
+ execute_or_queue_command(command, &block)
494
+ end
495
+
496
+ # Deletes a platform policy. Returns NOT_FOUND if the policy doesn't exist.
497
+ # @param [String] name
498
+ # Required. The name of the platform policy to delete, in the format `projects/*/
499
+ # platforms/*/policies/*`.
500
+ # @param [String] fields
501
+ # Selector specifying which fields to include in a partial response.
502
+ # @param [String] quota_user
503
+ # Available to use for quota purposes for server-side applications. Can be any
504
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
505
+ # @param [Google::Apis::RequestOptions] options
506
+ # Request-specific options
507
+ #
508
+ # @yield [result, err] Result & error if block supplied
509
+ # @yieldparam result [Google::Apis::BinaryauthorizationV1::Empty] parsed result object
510
+ # @yieldparam err [StandardError] error object if request failed
511
+ #
512
+ # @return [Google::Apis::BinaryauthorizationV1::Empty]
513
+ #
514
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
515
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
516
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
517
+ def delete_project_platform_policy(name, fields: nil, quota_user: nil, options: nil, &block)
518
+ command = make_simple_command(:delete, 'v1/{+name}', options)
519
+ command.response_representation = Google::Apis::BinaryauthorizationV1::Empty::Representation
520
+ command.response_class = Google::Apis::BinaryauthorizationV1::Empty
521
+ command.params['name'] = name unless name.nil?
522
+ command.query['fields'] = fields unless fields.nil?
523
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
524
+ execute_or_queue_command(command, &block)
525
+ end
526
+
527
+ # Gets a platform policy. Returns NOT_FOUND if the policy doesn't exist.
528
+ # @param [String] name
529
+ # Required. The name of the platform policy to retrieve in the format `projects/*
530
+ # /platforms/*/policies/*`.
531
+ # @param [String] fields
532
+ # Selector specifying which fields to include in a partial response.
533
+ # @param [String] quota_user
534
+ # Available to use for quota purposes for server-side applications. Can be any
535
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
536
+ # @param [Google::Apis::RequestOptions] options
537
+ # Request-specific options
538
+ #
539
+ # @yield [result, err] Result & error if block supplied
540
+ # @yieldparam result [Google::Apis::BinaryauthorizationV1::PlatformPolicy] parsed result object
541
+ # @yieldparam err [StandardError] error object if request failed
542
+ #
543
+ # @return [Google::Apis::BinaryauthorizationV1::PlatformPolicy]
544
+ #
545
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
546
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
547
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
548
+ def get_project_platform_policy(name, fields: nil, quota_user: nil, options: nil, &block)
549
+ command = make_simple_command(:get, 'v1/{+name}', options)
550
+ command.response_representation = Google::Apis::BinaryauthorizationV1::PlatformPolicy::Representation
551
+ command.response_class = Google::Apis::BinaryauthorizationV1::PlatformPolicy
552
+ command.params['name'] = name unless name.nil?
553
+ command.query['fields'] = fields unless fields.nil?
554
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
555
+ execute_or_queue_command(command, &block)
556
+ end
557
+
558
+ # Lists platform policies owned by a project in the specified platform. Returns
559
+ # INVALID_ARGUMENT if the project or the platform doesn't exist.
560
+ # @param [String] parent
561
+ # Required. The resource name of the platform associated with the platform
562
+ # policies using the format `projects/*/platforms/*`.
563
+ # @param [Fixnum] page_size
564
+ # Requested page size. The server may return fewer results than requested. If
565
+ # unspecified, the server picks an appropriate default.
566
+ # @param [String] page_token
567
+ # A token identifying a page of results the server should return. Typically,
568
+ # this is the value of ListPlatformPoliciesResponse.next_page_token returned
569
+ # from the previous call to the `ListPlatformPolicies` method.
570
+ # @param [String] fields
571
+ # Selector specifying which fields to include in a partial response.
572
+ # @param [String] quota_user
573
+ # Available to use for quota purposes for server-side applications. Can be any
574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
575
+ # @param [Google::Apis::RequestOptions] options
576
+ # Request-specific options
577
+ #
578
+ # @yield [result, err] Result & error if block supplied
579
+ # @yieldparam result [Google::Apis::BinaryauthorizationV1::ListPlatformPoliciesResponse] parsed result object
580
+ # @yieldparam err [StandardError] error object if request failed
581
+ #
582
+ # @return [Google::Apis::BinaryauthorizationV1::ListPlatformPoliciesResponse]
583
+ #
584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
587
+ def list_project_platform_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
588
+ command = make_simple_command(:get, 'v1/{+parent}/policies', options)
589
+ command.response_representation = Google::Apis::BinaryauthorizationV1::ListPlatformPoliciesResponse::Representation
590
+ command.response_class = Google::Apis::BinaryauthorizationV1::ListPlatformPoliciesResponse
591
+ command.params['parent'] = parent unless parent.nil?
592
+ command.query['pageSize'] = page_size unless page_size.nil?
593
+ command.query['pageToken'] = page_token unless page_token.nil?
594
+ command.query['fields'] = fields unless fields.nil?
595
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
596
+ execute_or_queue_command(command, &block)
597
+ end
598
+
599
+ # Replaces a platform policy. Returns NOT_FOUND if the policy doesn't exist.
600
+ # @param [String] name
601
+ # Output only. The relative resource name of the BinAuthz platform policy, in
602
+ # the form of `projects/*/platforms/*/policies/*`.
603
+ # @param [Google::Apis::BinaryauthorizationV1::PlatformPolicy] platform_policy_object
604
+ # @param [String] fields
605
+ # Selector specifying which fields to include in a partial response.
606
+ # @param [String] quota_user
607
+ # Available to use for quota purposes for server-side applications. Can be any
608
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
609
+ # @param [Google::Apis::RequestOptions] options
610
+ # Request-specific options
611
+ #
612
+ # @yield [result, err] Result & error if block supplied
613
+ # @yieldparam result [Google::Apis::BinaryauthorizationV1::PlatformPolicy] parsed result object
614
+ # @yieldparam err [StandardError] error object if request failed
615
+ #
616
+ # @return [Google::Apis::BinaryauthorizationV1::PlatformPolicy]
617
+ #
618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
621
+ def replace_project_platform_policy_platform_policy(name, platform_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
622
+ command = make_simple_command(:put, 'v1/{+name}', options)
623
+ command.request_representation = Google::Apis::BinaryauthorizationV1::PlatformPolicy::Representation
624
+ command.request_object = platform_policy_object
625
+ command.response_representation = Google::Apis::BinaryauthorizationV1::PlatformPolicy::Representation
626
+ command.response_class = Google::Apis::BinaryauthorizationV1::PlatformPolicy
627
+ command.params['name'] = name unless name.nil?
628
+ command.query['fields'] = fields unless fields.nil?
629
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
630
+ execute_or_queue_command(command, &block)
631
+ end
632
+
456
633
  # Gets the access control policy for a resource. Returns an empty policy if the
457
634
  # resource exists and does not have a policy set.
458
635
  # @param [String] resource
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-binaryauthorization_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.27.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: 2023-02-05 00:00:00.000000000 Z
11
+ date: 2023-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: 0.11.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.1
29
+ version: 0.11.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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-binaryauthorization_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-binaryauthorization_v1/v0.25.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-binaryauthorization_v1/v0.27.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-binaryauthorization_v1
63
63
  post_install_message:
64
64
  rdoc_options: []