Skip to content

Commit 07990da

Browse files
committed
restore files for grafeas
1 parent 873435d commit 07990da

File tree

86 files changed

+35775
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+35775
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
__version__ = "1.16.0" # {x-release-please-version}
Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from grafeas.grafeas_v1 import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
20+
21+
from .services.grafeas import GrafeasAsyncClient, GrafeasClient
22+
from .types.attestation import AttestationNote, AttestationOccurrence, Jwt
23+
from .types.build import BuildNote, BuildOccurrence
24+
from .types.common import (
25+
BaseImage,
26+
Digest,
27+
Envelope,
28+
EnvelopeSignature,
29+
FileLocation,
30+
LayerDetails,
31+
License,
32+
NoteKind,
33+
RelatedUrl,
34+
Signature,
35+
)
36+
from .types.compliance import (
37+
ComplianceNote,
38+
ComplianceOccurrence,
39+
ComplianceVersion,
40+
NonCompliantFile,
41+
)
42+
from .types.cvss import CVSS, CVSSv3, CVSSVersion
43+
from .types.deployment import DeploymentNote, DeploymentOccurrence
44+
from .types.discovery import DiscoveryNote, DiscoveryOccurrence
45+
from .types.dsse_attestation import DSSEAttestationNote, DSSEAttestationOccurrence
46+
from .types.grafeas import (
47+
BatchCreateNotesRequest,
48+
BatchCreateNotesResponse,
49+
BatchCreateOccurrencesRequest,
50+
BatchCreateOccurrencesResponse,
51+
CreateNoteRequest,
52+
CreateOccurrenceRequest,
53+
DeleteNoteRequest,
54+
DeleteOccurrenceRequest,
55+
GetNoteRequest,
56+
GetOccurrenceNoteRequest,
57+
GetOccurrenceRequest,
58+
ListNoteOccurrencesRequest,
59+
ListNoteOccurrencesResponse,
60+
ListNotesRequest,
61+
ListNotesResponse,
62+
ListOccurrencesRequest,
63+
ListOccurrencesResponse,
64+
Note,
65+
Occurrence,
66+
UpdateNoteRequest,
67+
UpdateOccurrenceRequest,
68+
)
69+
from .types.image import Fingerprint, ImageNote, ImageOccurrence, Layer
70+
from .types.intoto_provenance import (
71+
BuilderConfig,
72+
Completeness,
73+
InTotoProvenance,
74+
Metadata,
75+
Recipe,
76+
)
77+
from .types.intoto_statement import InTotoSlsaProvenanceV1, InTotoStatement, Subject
78+
from .types.package import (
79+
Architecture,
80+
Distribution,
81+
Location,
82+
PackageNote,
83+
PackageOccurrence,
84+
Version,
85+
)
86+
from .types.provenance import (
87+
AliasContext,
88+
Artifact,
89+
BuildProvenance,
90+
CloudRepoSourceContext,
91+
Command,
92+
FileHashes,
93+
GerritSourceContext,
94+
GitSourceContext,
95+
Hash,
96+
ProjectRepoId,
97+
RepoId,
98+
Source,
99+
SourceContext,
100+
)
101+
from .types.sbom import (
102+
SbomReferenceIntotoPayload,
103+
SbomReferenceIntotoPredicate,
104+
SBOMReferenceNote,
105+
SBOMReferenceOccurrence,
106+
)
107+
from .types.secret import (
108+
SecretKind,
109+
SecretLocation,
110+
SecretNote,
111+
SecretOccurrence,
112+
SecretStatus,
113+
)
114+
from .types.severity import Severity
115+
from .types.slsa_provenance import SlsaProvenance
116+
from .types.slsa_provenance_zero_two import SlsaProvenanceZeroTwo
117+
from .types.upgrade import (
118+
UpgradeDistribution,
119+
UpgradeNote,
120+
UpgradeOccurrence,
121+
WindowsUpdate,
122+
)
123+
from .types.vex import VulnerabilityAssessmentNote
124+
from .types.vulnerability import VulnerabilityNote, VulnerabilityOccurrence
125+
126+
__all__ = (
127+
"GrafeasAsyncClient",
128+
"AliasContext",
129+
"Architecture",
130+
"Artifact",
131+
"AttestationNote",
132+
"AttestationOccurrence",
133+
"BaseImage",
134+
"BatchCreateNotesRequest",
135+
"BatchCreateNotesResponse",
136+
"BatchCreateOccurrencesRequest",
137+
"BatchCreateOccurrencesResponse",
138+
"BuildNote",
139+
"BuildOccurrence",
140+
"BuildProvenance",
141+
"BuilderConfig",
142+
"CVSS",
143+
"CVSSVersion",
144+
"CVSSv3",
145+
"CloudRepoSourceContext",
146+
"Command",
147+
"Completeness",
148+
"ComplianceNote",
149+
"ComplianceOccurrence",
150+
"ComplianceVersion",
151+
"CreateNoteRequest",
152+
"CreateOccurrenceRequest",
153+
"DSSEAttestationNote",
154+
"DSSEAttestationOccurrence",
155+
"DeleteNoteRequest",
156+
"DeleteOccurrenceRequest",
157+
"DeploymentNote",
158+
"DeploymentOccurrence",
159+
"Digest",
160+
"DiscoveryNote",
161+
"DiscoveryOccurrence",
162+
"Distribution",
163+
"Envelope",
164+
"EnvelopeSignature",
165+
"FileHashes",
166+
"FileLocation",
167+
"Fingerprint",
168+
"GerritSourceContext",
169+
"GetNoteRequest",
170+
"GetOccurrenceNoteRequest",
171+
"GetOccurrenceRequest",
172+
"GitSourceContext",
173+
"GrafeasClient",
174+
"Hash",
175+
"ImageNote",
176+
"ImageOccurrence",
177+
"InTotoProvenance",
178+
"InTotoSlsaProvenanceV1",
179+
"InTotoStatement",
180+
"Jwt",
181+
"Layer",
182+
"LayerDetails",
183+
"License",
184+
"ListNoteOccurrencesRequest",
185+
"ListNoteOccurrencesResponse",
186+
"ListNotesRequest",
187+
"ListNotesResponse",
188+
"ListOccurrencesRequest",
189+
"ListOccurrencesResponse",
190+
"Location",
191+
"Metadata",
192+
"NonCompliantFile",
193+
"Note",
194+
"NoteKind",
195+
"Occurrence",
196+
"PackageNote",
197+
"PackageOccurrence",
198+
"ProjectRepoId",
199+
"Recipe",
200+
"RelatedUrl",
201+
"RepoId",
202+
"SBOMReferenceNote",
203+
"SBOMReferenceOccurrence",
204+
"SbomReferenceIntotoPayload",
205+
"SbomReferenceIntotoPredicate",
206+
"SecretKind",
207+
"SecretLocation",
208+
"SecretNote",
209+
"SecretOccurrence",
210+
"SecretStatus",
211+
"Severity",
212+
"Signature",
213+
"SlsaProvenance",
214+
"SlsaProvenanceZeroTwo",
215+
"Source",
216+
"SourceContext",
217+
"Subject",
218+
"UpdateNoteRequest",
219+
"UpdateOccurrenceRequest",
220+
"UpgradeDistribution",
221+
"UpgradeNote",
222+
"UpgradeOccurrence",
223+
"Version",
224+
"VulnerabilityAssessmentNote",
225+
"VulnerabilityNote",
226+
"VulnerabilityOccurrence",
227+
"WindowsUpdate",
228+
)

0 commit comments

Comments
 (0)