google-api-client 0.45.0 → 0.45.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +56 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
- data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
- data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
- data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2135 -0
- data/generated/google/apis/apigateway_v1alpha2.rb +34 -0
- data/generated/google/apis/apigateway_v1alpha2/classes.rb +633 -0
- data/generated/google/apis/apigateway_v1alpha2/representations.rb +250 -0
- data/generated/google/apis/apigateway_v1alpha2/service.rb +623 -0
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +0 -6
- data/generated/google/apis/apigee_v1/representations.rb +0 -1
- data/generated/google/apis/apigee_v1/service.rb +1 -5
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +22 -0
- data/generated/google/apis/bigquery_v2/representations.rb +1 -0
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +187 -0
- data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
- data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +187 -0
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +2 -1
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +76 -2
- data/generated/google/apis/chat_v1/representations.rb +35 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +0 -34
- data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
- data/generated/google/apis/cloudbuild_v1/service.rb +7 -4
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +0 -34
- data/generated/google/apis/cloudidentity_v1/representations.rb +0 -17
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +185 -0
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +164 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/service.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +20 -8
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
- data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
- data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +73 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +51 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +73 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +51 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +6 -6
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +142 -0
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +83 -0
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +8 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +26 -0
- data/generated/google/apis/dlp_v2/representations.rb +16 -0
- data/generated/google/apis/dlp_v2/service.rb +328 -328
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/service.rb +1 -1
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +3 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +1014 -16
- data/generated/google/apis/healthcare_v1beta1/representations.rb +453 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +1226 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +98 -55
- data/generated/google/apis/logging_v2/representations.rb +32 -0
- data/generated/google/apis/logging_v2/service.rb +1214 -264
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/service.rb +8 -6
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/realtimebidding_v1/classes.rb +4 -4
- data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +0 -124
- data/generated/google/apis/run_v1/representations.rb +0 -61
- data/generated/google/apis/run_v1/service.rb +0 -342
- data/generated/google/apis/searchconsole_v1.rb +7 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
- data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
- data/generated/google/apis/searchconsole_v1/service.rb +287 -0
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
- data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
- data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
- data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1 -2
- data/generated/google/apis/servicecontrol_v2.rb +1 -1
- data/generated/google/apis/servicecontrol_v2/classes.rb +1 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
- data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
- data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
- data/generated/google/apis/smartdevicemanagement_v1/classes.rb +313 -0
- data/generated/google/apis/smartdevicemanagement_v1/representations.rb +174 -0
- data/generated/google/apis/smartdevicemanagement_v1/service.rb +312 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
- data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +83 -52
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +33 -17
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/sts_v1beta.rb +1 -1
- data/generated/google/apis/sts_v1beta/classes.rb +4 -1
- data/generated/google/apis/websecurityscanner_v1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
- data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +0 -134
- data/generated/google/apis/youtube_v3/representations.rb +0 -55
- data/generated/google/apis/youtube_v3/service.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -3
@@ -409,6 +409,41 @@ module Google
|
|
409
409
|
execute_or_queue_command(command, &block)
|
410
410
|
end
|
411
411
|
|
412
|
+
# Returns whether the given Attestation for the given image URI was signed by
|
413
|
+
# the given Attestor
|
414
|
+
# @param [String] attestor
|
415
|
+
# Required. The resource name of the Attestor of the occurrence, in the format `
|
416
|
+
# projects/*/attestors/*`.
|
417
|
+
# @param [Google::Apis::BinaryauthorizationV1::ValidateAttestationOccurrenceRequest] validate_attestation_occurrence_request_object
|
418
|
+
# @param [String] fields
|
419
|
+
# Selector specifying which fields to include in a partial response.
|
420
|
+
# @param [String] quota_user
|
421
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
422
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
423
|
+
# @param [Google::Apis::RequestOptions] options
|
424
|
+
# Request-specific options
|
425
|
+
#
|
426
|
+
# @yield [result, err] Result & error if block supplied
|
427
|
+
# @yieldparam result [Google::Apis::BinaryauthorizationV1::ValidateAttestationOccurrenceResponse] parsed result object
|
428
|
+
# @yieldparam err [StandardError] error object if request failed
|
429
|
+
#
|
430
|
+
# @return [Google::Apis::BinaryauthorizationV1::ValidateAttestationOccurrenceResponse]
|
431
|
+
#
|
432
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
433
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
434
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
435
|
+
def validate_attestor_attestation_occurrence(attestor, validate_attestation_occurrence_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
436
|
+
command = make_simple_command(:post, 'v1/{+attestor}:validateAttestationOccurrence', options)
|
437
|
+
command.request_representation = Google::Apis::BinaryauthorizationV1::ValidateAttestationOccurrenceRequest::Representation
|
438
|
+
command.request_object = validate_attestation_occurrence_request_object
|
439
|
+
command.response_representation = Google::Apis::BinaryauthorizationV1::ValidateAttestationOccurrenceResponse::Representation
|
440
|
+
command.response_class = Google::Apis::BinaryauthorizationV1::ValidateAttestationOccurrenceResponse
|
441
|
+
command.params['attestor'] = attestor unless attestor.nil?
|
442
|
+
command.query['fields'] = fields unless fields.nil?
|
443
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
444
|
+
execute_or_queue_command(command, &block)
|
445
|
+
end
|
446
|
+
|
412
447
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
413
448
|
# resource exists and does not have a policy set.
|
414
449
|
# @param [String] resource
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/binary-authorization/
|
27
27
|
module BinaryauthorizationV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20200918'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -83,6 +83,53 @@ module Google
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
+
# Occurrence that represents a single "attestation". The authenticity of an
|
87
|
+
# attestation can be verified using the attached signature. If the verifier
|
88
|
+
# trusts the public key of the signer, then verifying the signature is
|
89
|
+
# sufficient to establish trust. In this circumstance, the authority to which
|
90
|
+
# this attestation is attached is primarily useful for lookup (how to find this
|
91
|
+
# attestation if you already know the authority and artifact to be verified) and
|
92
|
+
# intent (for which authority this attestation was intended to sign.
|
93
|
+
class AttestationOccurrence
|
94
|
+
include Google::Apis::Core::Hashable
|
95
|
+
|
96
|
+
# One or more JWTs encoding a self-contained attestation. Each JWT encodes the
|
97
|
+
# payload that it verifies within the JWT itself. Verifier implementation SHOULD
|
98
|
+
# ignore the `serialized_payload` field when verifying these JWTs. If only JWTs
|
99
|
+
# are present on this AttestationOccurrence, then the `serialized_payload`
|
100
|
+
# SHOULD be left empty. Each JWT SHOULD encode a claim specific to the `
|
101
|
+
# resource_uri` of this Occurrence, but this is not validated by Grafeas
|
102
|
+
# metadata API implementations. The JWT itself is opaque to Grafeas.
|
103
|
+
# Corresponds to the JSON property `jwts`
|
104
|
+
# @return [Array<Google::Apis::BinaryauthorizationV1beta1::Jwt>]
|
105
|
+
attr_accessor :jwts
|
106
|
+
|
107
|
+
# Required. The serialized payload that is verified by one or more `signatures`.
|
108
|
+
# Corresponds to the JSON property `serializedPayload`
|
109
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
110
|
+
# @return [String]
|
111
|
+
attr_accessor :serialized_payload
|
112
|
+
|
113
|
+
# One or more signatures over `serialized_payload`. Verifier implementations
|
114
|
+
# should consider this attestation message verified if at least one `signature`
|
115
|
+
# verifies `serialized_payload`. See `Signature` in common.proto for more
|
116
|
+
# details on signature structure and verification.
|
117
|
+
# Corresponds to the JSON property `signatures`
|
118
|
+
# @return [Array<Google::Apis::BinaryauthorizationV1beta1::Signature>]
|
119
|
+
attr_accessor :signatures
|
120
|
+
|
121
|
+
def initialize(**args)
|
122
|
+
update!(**args)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Update properties of this object
|
126
|
+
def update!(**args)
|
127
|
+
@jwts = args[:jwts] if args.key?(:jwts)
|
128
|
+
@serialized_payload = args[:serialized_payload] if args.key?(:serialized_payload)
|
129
|
+
@signatures = args[:signatures] if args.key?(:signatures)
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
86
133
|
# An attestor that attests to container image artifacts. An existing attestor
|
87
134
|
# cannot be modified except where indicated.
|
88
135
|
class Attestor
|
@@ -406,6 +453,27 @@ module Google
|
|
406
453
|
end
|
407
454
|
end
|
408
455
|
|
456
|
+
#
|
457
|
+
class Jwt
|
458
|
+
include Google::Apis::Core::Hashable
|
459
|
+
|
460
|
+
# The compact encoding of a JWS, which is always three base64 encoded strings
|
461
|
+
# joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html#
|
462
|
+
# section-3.1
|
463
|
+
# Corresponds to the JSON property `compactJwt`
|
464
|
+
# @return [String]
|
465
|
+
attr_accessor :compact_jwt
|
466
|
+
|
467
|
+
def initialize(**args)
|
468
|
+
update!(**args)
|
469
|
+
end
|
470
|
+
|
471
|
+
# Update properties of this object
|
472
|
+
def update!(**args)
|
473
|
+
@compact_jwt = args[:compact_jwt] if args.key?(:compact_jwt)
|
474
|
+
end
|
475
|
+
end
|
476
|
+
|
409
477
|
# Response message for BinauthzManagementService.ListAttestors.
|
410
478
|
class ListAttestorsResponse
|
411
479
|
include Google::Apis::Core::Hashable
|
@@ -578,6 +646,61 @@ module Google
|
|
578
646
|
end
|
579
647
|
end
|
580
648
|
|
649
|
+
# Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to
|
650
|
+
# the trust anchors defined in policy (e.g. a Kritis policy). Typically this
|
651
|
+
# means that the verifier has been configured with a map from `public_key_id` to
|
652
|
+
# public key material (and any required parameters, e.g. signing algorithm). In
|
653
|
+
# particular, verification implementations MUST NOT treat the signature `
|
654
|
+
# public_key_id` as anything more than a key lookup hint. The `public_key_id`
|
655
|
+
# DOES NOT validate or authenticate a public key; it only provides a mechanism
|
656
|
+
# for quickly selecting a public key ALREADY CONFIGURED on the verifier through
|
657
|
+
# a trusted channel. Verification implementations MUST reject signatures in any
|
658
|
+
# of the following circumstances: * The `public_key_id` is not recognized by the
|
659
|
+
# verifier. * The public key that `public_key_id` refers to does not verify the
|
660
|
+
# signature with respect to the payload. The `signature` contents SHOULD NOT be "
|
661
|
+
# attached" (where the payload is included with the serialized `signature` bytes)
|
662
|
+
# . Verifiers MUST ignore any "attached" payload and only verify signatures with
|
663
|
+
# respect to explicitly provided payload (e.g. a `payload` field on the proto
|
664
|
+
# message that holds this Signature, or the canonical serialization of the proto
|
665
|
+
# message that holds this signature).
|
666
|
+
class Signature
|
667
|
+
include Google::Apis::Core::Hashable
|
668
|
+
|
669
|
+
# The identifier for the public key that verifies this signature. * The `
|
670
|
+
# public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986
|
671
|
+
# conformant URI. * When possible, the `public_key_id` SHOULD be an immutable
|
672
|
+
# reference, such as a cryptographic digest. Examples of valid `public_key_id`s:
|
673
|
+
# OpenPGP V4 public key fingerprint: * "openpgp4fpr:
|
674
|
+
# 74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" See https://www.iana.org/assignments/
|
675
|
+
# uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-
|
676
|
+
# named SubjectPublicKeyInfo (digest of the DER serialization): * "ni:///sha-256;
|
677
|
+
# cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256;
|
678
|
+
# 703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5"
|
679
|
+
# Corresponds to the JSON property `publicKeyId`
|
680
|
+
# @return [String]
|
681
|
+
attr_accessor :public_key_id
|
682
|
+
|
683
|
+
# The content of the signature, an opaque bytestring. The payload that this
|
684
|
+
# signature verifies MUST be unambiguously provided with the Signature during
|
685
|
+
# verification. A wrapper message might provide the payload explicitly.
|
686
|
+
# Alternatively, a message might have a canonical serialization that can always
|
687
|
+
# be unambiguously computed to derive the payload.
|
688
|
+
# Corresponds to the JSON property `signature`
|
689
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
690
|
+
# @return [String]
|
691
|
+
attr_accessor :signature
|
692
|
+
|
693
|
+
def initialize(**args)
|
694
|
+
update!(**args)
|
695
|
+
end
|
696
|
+
|
697
|
+
# Update properties of this object
|
698
|
+
def update!(**args)
|
699
|
+
@public_key_id = args[:public_key_id] if args.key?(:public_key_id)
|
700
|
+
@signature = args[:signature] if args.key?(:signature)
|
701
|
+
end
|
702
|
+
end
|
703
|
+
|
581
704
|
# Request message for `TestIamPermissions` method.
|
582
705
|
class TestIamPermissionsRequest
|
583
706
|
include Google::Apis::Core::Hashable
|
@@ -664,6 +787,70 @@ module Google
|
|
664
787
|
@public_keys = args[:public_keys] if args.key?(:public_keys)
|
665
788
|
end
|
666
789
|
end
|
790
|
+
|
791
|
+
# Request message for ValidationHelperV1.ValidateAttestationOccurrence.
|
792
|
+
class ValidateAttestationOccurrenceRequest
|
793
|
+
include Google::Apis::Core::Hashable
|
794
|
+
|
795
|
+
# Occurrence that represents a single "attestation". The authenticity of an
|
796
|
+
# attestation can be verified using the attached signature. If the verifier
|
797
|
+
# trusts the public key of the signer, then verifying the signature is
|
798
|
+
# sufficient to establish trust. In this circumstance, the authority to which
|
799
|
+
# this attestation is attached is primarily useful for lookup (how to find this
|
800
|
+
# attestation if you already know the authority and artifact to be verified) and
|
801
|
+
# intent (for which authority this attestation was intended to sign.
|
802
|
+
# Corresponds to the JSON property `attestation`
|
803
|
+
# @return [Google::Apis::BinaryauthorizationV1beta1::AttestationOccurrence]
|
804
|
+
attr_accessor :attestation
|
805
|
+
|
806
|
+
# Required. The resource name of the Note to which the containing Occurrence is
|
807
|
+
# associated.
|
808
|
+
# Corresponds to the JSON property `occurrenceNote`
|
809
|
+
# @return [String]
|
810
|
+
attr_accessor :occurrence_note
|
811
|
+
|
812
|
+
# Required. The URI of the artifact (e.g. container image) that is the subject
|
813
|
+
# of the containing Occurrence.
|
814
|
+
# Corresponds to the JSON property `occurrenceResourceUri`
|
815
|
+
# @return [String]
|
816
|
+
attr_accessor :occurrence_resource_uri
|
817
|
+
|
818
|
+
def initialize(**args)
|
819
|
+
update!(**args)
|
820
|
+
end
|
821
|
+
|
822
|
+
# Update properties of this object
|
823
|
+
def update!(**args)
|
824
|
+
@attestation = args[:attestation] if args.key?(:attestation)
|
825
|
+
@occurrence_note = args[:occurrence_note] if args.key?(:occurrence_note)
|
826
|
+
@occurrence_resource_uri = args[:occurrence_resource_uri] if args.key?(:occurrence_resource_uri)
|
827
|
+
end
|
828
|
+
end
|
829
|
+
|
830
|
+
# Response message for ValidationHelperV1.ValidateAttestationOccurrence.
|
831
|
+
class ValidateAttestationOccurrenceResponse
|
832
|
+
include Google::Apis::Core::Hashable
|
833
|
+
|
834
|
+
# The reason for denial if the Attestation couldn't be validated.
|
835
|
+
# Corresponds to the JSON property `denialReason`
|
836
|
+
# @return [String]
|
837
|
+
attr_accessor :denial_reason
|
838
|
+
|
839
|
+
# The result of the Attestation validation.
|
840
|
+
# Corresponds to the JSON property `result`
|
841
|
+
# @return [String]
|
842
|
+
attr_accessor :result
|
843
|
+
|
844
|
+
def initialize(**args)
|
845
|
+
update!(**args)
|
846
|
+
end
|
847
|
+
|
848
|
+
# Update properties of this object
|
849
|
+
def update!(**args)
|
850
|
+
@denial_reason = args[:denial_reason] if args.key?(:denial_reason)
|
851
|
+
@result = args[:result] if args.key?(:result)
|
852
|
+
end
|
853
|
+
end
|
667
854
|
end
|
668
855
|
end
|
669
856
|
end
|
@@ -34,6 +34,12 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
+
class AttestationOccurrence
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
37
43
|
class Attestor
|
38
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
45
|
|
@@ -70,6 +76,12 @@ module Google
|
|
70
76
|
include Google::Apis::Core::JsonObjectSupport
|
71
77
|
end
|
72
78
|
|
79
|
+
class Jwt
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
73
85
|
class ListAttestorsResponse
|
74
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
87
|
|
@@ -94,6 +106,12 @@ module Google
|
|
94
106
|
include Google::Apis::Core::JsonObjectSupport
|
95
107
|
end
|
96
108
|
|
109
|
+
class Signature
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
97
115
|
class TestIamPermissionsRequest
|
98
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
117
|
|
@@ -112,6 +130,18 @@ module Google
|
|
112
130
|
include Google::Apis::Core::JsonObjectSupport
|
113
131
|
end
|
114
132
|
|
133
|
+
class ValidateAttestationOccurrenceRequest
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class ValidateAttestationOccurrenceResponse
|
140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
|
+
|
142
|
+
include Google::Apis::Core::JsonObjectSupport
|
143
|
+
end
|
144
|
+
|
115
145
|
class AdmissionRule
|
116
146
|
# @private
|
117
147
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -128,6 +158,17 @@ module Google
|
|
128
158
|
end
|
129
159
|
end
|
130
160
|
|
161
|
+
class AttestationOccurrence
|
162
|
+
# @private
|
163
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
164
|
+
collection :jwts, as: 'jwts', class: Google::Apis::BinaryauthorizationV1beta1::Jwt, decorator: Google::Apis::BinaryauthorizationV1beta1::Jwt::Representation
|
165
|
+
|
166
|
+
property :serialized_payload, :base64 => true, as: 'serializedPayload'
|
167
|
+
collection :signatures, as: 'signatures', class: Google::Apis::BinaryauthorizationV1beta1::Signature, decorator: Google::Apis::BinaryauthorizationV1beta1::Signature::Representation
|
168
|
+
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
131
172
|
class Attestor
|
132
173
|
# @private
|
133
174
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -187,6 +228,13 @@ module Google
|
|
187
228
|
end
|
188
229
|
end
|
189
230
|
|
231
|
+
class Jwt
|
232
|
+
# @private
|
233
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
234
|
+
property :compact_jwt, as: 'compactJwt'
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
190
238
|
class ListAttestorsResponse
|
191
239
|
# @private
|
192
240
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -228,6 +276,14 @@ module Google
|
|
228
276
|
end
|
229
277
|
end
|
230
278
|
|
279
|
+
class Signature
|
280
|
+
# @private
|
281
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
282
|
+
property :public_key_id, as: 'publicKeyId'
|
283
|
+
property :signature, :base64 => true, as: 'signature'
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
231
287
|
class TestIamPermissionsRequest
|
232
288
|
# @private
|
233
289
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -251,6 +307,24 @@ module Google
|
|
251
307
|
|
252
308
|
end
|
253
309
|
end
|
310
|
+
|
311
|
+
class ValidateAttestationOccurrenceRequest
|
312
|
+
# @private
|
313
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
314
|
+
property :attestation, as: 'attestation', class: Google::Apis::BinaryauthorizationV1beta1::AttestationOccurrence, decorator: Google::Apis::BinaryauthorizationV1beta1::AttestationOccurrence::Representation
|
315
|
+
|
316
|
+
property :occurrence_note, as: 'occurrenceNote'
|
317
|
+
property :occurrence_resource_uri, as: 'occurrenceResourceUri'
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
class ValidateAttestationOccurrenceResponse
|
322
|
+
# @private
|
323
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
324
|
+
property :denial_reason, as: 'denialReason'
|
325
|
+
property :result, as: 'result'
|
326
|
+
end
|
327
|
+
end
|
254
328
|
end
|
255
329
|
end
|
256
330
|
end
|
@@ -409,6 +409,41 @@ module Google
|
|
409
409
|
execute_or_queue_command(command, &block)
|
410
410
|
end
|
411
411
|
|
412
|
+
# Returns whether the given Attestation for the given image URI was signed by
|
413
|
+
# the given Attestor
|
414
|
+
# @param [String] attestor
|
415
|
+
# Required. The resource name of the Attestor of the occurrence, in the format `
|
416
|
+
# projects/*/attestors/*`.
|
417
|
+
# @param [Google::Apis::BinaryauthorizationV1beta1::ValidateAttestationOccurrenceRequest] validate_attestation_occurrence_request_object
|
418
|
+
# @param [String] fields
|
419
|
+
# Selector specifying which fields to include in a partial response.
|
420
|
+
# @param [String] quota_user
|
421
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
422
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
423
|
+
# @param [Google::Apis::RequestOptions] options
|
424
|
+
# Request-specific options
|
425
|
+
#
|
426
|
+
# @yield [result, err] Result & error if block supplied
|
427
|
+
# @yieldparam result [Google::Apis::BinaryauthorizationV1beta1::ValidateAttestationOccurrenceResponse] parsed result object
|
428
|
+
# @yieldparam err [StandardError] error object if request failed
|
429
|
+
#
|
430
|
+
# @return [Google::Apis::BinaryauthorizationV1beta1::ValidateAttestationOccurrenceResponse]
|
431
|
+
#
|
432
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
433
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
434
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
435
|
+
def validate_attestor_attestation_occurrence(attestor, validate_attestation_occurrence_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
436
|
+
command = make_simple_command(:post, 'v1beta1/{+attestor}:validateAttestationOccurrence', options)
|
437
|
+
command.request_representation = Google::Apis::BinaryauthorizationV1beta1::ValidateAttestationOccurrenceRequest::Representation
|
438
|
+
command.request_object = validate_attestation_occurrence_request_object
|
439
|
+
command.response_representation = Google::Apis::BinaryauthorizationV1beta1::ValidateAttestationOccurrenceResponse::Representation
|
440
|
+
command.response_class = Google::Apis::BinaryauthorizationV1beta1::ValidateAttestationOccurrenceResponse
|
441
|
+
command.params['attestor'] = attestor unless attestor.nil?
|
442
|
+
command.query['fields'] = fields unless fields.nil?
|
443
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
444
|
+
execute_or_queue_command(command, &block)
|
445
|
+
end
|
446
|
+
|
412
447
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
413
448
|
# resource exists and does not have a policy set.
|
414
449
|
# @param [String] resource
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/google-apps/calendar/firstapp
|
26
26
|
module CalendarV3
|
27
27
|
VERSION = 'V3'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200917'
|
29
29
|
|
30
30
|
# See, edit, share, and permanently delete all the calendars you can access using Google Calendar
|
31
31
|
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
@@ -1044,7 +1044,8 @@ module Google
|
|
1044
1044
|
attr_accessor :attachments
|
1045
1045
|
|
1046
1046
|
# The attendees of the event. See the Events with attendees guide for more
|
1047
|
-
# information on scheduling events with other calendar users.
|
1047
|
+
# information on scheduling events with other calendar users. Service accounts
|
1048
|
+
# need to use domain-wide delegation of authority to populate the attendee list.
|
1048
1049
|
# Corresponds to the JSON property `attendees`
|
1049
1050
|
# @return [Array<Google::Apis::CalendarV3::EventAttendee>]
|
1050
1051
|
attr_accessor :attendees
|