google-cloud-cloudcontrolspartner 0.1.0__py3-none-any.whl
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.
- google/cloud/cloudcontrolspartner/__init__.py +115 -0
- google/cloud/cloudcontrolspartner/gapic_version.py +16 -0
- google/cloud/cloudcontrolspartner/py.typed +2 -0
- google/cloud/cloudcontrolspartner_v1/__init__.py +103 -0
- google/cloud/cloudcontrolspartner_v1/gapic_metadata.json +197 -0
- google/cloud/cloudcontrolspartner_v1/gapic_version.py +16 -0
- google/cloud/cloudcontrolspartner_v1/py.typed +2 -0
- google/cloud/cloudcontrolspartner_v1/services/__init__.py +15 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/__init__.py +22 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/async_client.py +1253 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/client.py +1705 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/pagers.py +429 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/__init__.py +41 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/base.py +340 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/grpc.py +466 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/grpc_asyncio.py +472 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_core/transports/rest.py +1212 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/__init__.py +22 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/async_client.py +528 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/client.py +935 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/pagers.py +155 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/__init__.py +41 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/base.py +194 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/grpc.py +300 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/grpc_asyncio.py +299 -0
- google/cloud/cloudcontrolspartner_v1/services/cloud_controls_partner_monitoring/transports/rest.py +434 -0
- google/cloud/cloudcontrolspartner_v1/types/__init__.py +82 -0
- google/cloud/cloudcontrolspartner_v1/types/access_approval_requests.py +228 -0
- google/cloud/cloudcontrolspartner_v1/types/completion_state.py +53 -0
- google/cloud/cloudcontrolspartner_v1/types/core.py +93 -0
- google/cloud/cloudcontrolspartner_v1/types/customer_workloads.py +300 -0
- google/cloud/cloudcontrolspartner_v1/types/customers.py +233 -0
- google/cloud/cloudcontrolspartner_v1/types/ekm_connections.py +141 -0
- google/cloud/cloudcontrolspartner_v1/types/monitoring.py +24 -0
- google/cloud/cloudcontrolspartner_v1/types/partner_permissions.py +94 -0
- google/cloud/cloudcontrolspartner_v1/types/partners.py +188 -0
- google/cloud/cloudcontrolspartner_v1/types/violations.py +388 -0
- google/cloud/cloudcontrolspartner_v1beta/__init__.py +103 -0
- google/cloud/cloudcontrolspartner_v1beta/gapic_metadata.json +197 -0
- google/cloud/cloudcontrolspartner_v1beta/gapic_version.py +16 -0
- google/cloud/cloudcontrolspartner_v1beta/py.typed +2 -0
- google/cloud/cloudcontrolspartner_v1beta/services/__init__.py +15 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/__init__.py +22 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/async_client.py +1262 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/client.py +1714 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/pagers.py +429 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/__init__.py +41 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/base.py +340 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/grpc.py +466 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/grpc_asyncio.py +472 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_core/transports/rest.py +1212 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/__init__.py +22 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/async_client.py +530 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/client.py +937 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/pagers.py +155 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/__init__.py +41 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/base.py +194 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/grpc.py +300 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/grpc_asyncio.py +299 -0
- google/cloud/cloudcontrolspartner_v1beta/services/cloud_controls_partner_monitoring/transports/rest.py +434 -0
- google/cloud/cloudcontrolspartner_v1beta/types/__init__.py +82 -0
- google/cloud/cloudcontrolspartner_v1beta/types/access_approval_requests.py +230 -0
- google/cloud/cloudcontrolspartner_v1beta/types/completion_state.py +53 -0
- google/cloud/cloudcontrolspartner_v1beta/types/core.py +93 -0
- google/cloud/cloudcontrolspartner_v1beta/types/customer_workloads.py +304 -0
- google/cloud/cloudcontrolspartner_v1beta/types/customers.py +236 -0
- google/cloud/cloudcontrolspartner_v1beta/types/ekm_connections.py +143 -0
- google/cloud/cloudcontrolspartner_v1beta/types/monitoring.py +24 -0
- google/cloud/cloudcontrolspartner_v1beta/types/partner_permissions.py +96 -0
- google/cloud/cloudcontrolspartner_v1beta/types/partners.py +189 -0
- google/cloud/cloudcontrolspartner_v1beta/types/violations.py +391 -0
- google_cloud_cloudcontrolspartner-0.1.0.dist-info/LICENSE +202 -0
- google_cloud_cloudcontrolspartner-0.1.0.dist-info/METADATA +137 -0
- google_cloud_cloudcontrolspartner-0.1.0.dist-info/RECORD +76 -0
- google_cloud_cloudcontrolspartner-0.1.0.dist-info/WHEEL +5 -0
- google_cloud_cloudcontrolspartner-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2023 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 __future__ import annotations
|
|
17
|
+
|
|
18
|
+
from typing import MutableMapping, MutableSequence
|
|
19
|
+
|
|
20
|
+
from google.protobuf import timestamp_pb2 # type: ignore
|
|
21
|
+
from google.type import interval_pb2 # type: ignore
|
|
22
|
+
import proto # type: ignore
|
|
23
|
+
|
|
24
|
+
__protobuf__ = proto.module(
|
|
25
|
+
package="google.cloud.cloudcontrolspartner.v1",
|
|
26
|
+
manifest={
|
|
27
|
+
"Violation",
|
|
28
|
+
"ListViolationsRequest",
|
|
29
|
+
"ListViolationsResponse",
|
|
30
|
+
"GetViolationRequest",
|
|
31
|
+
},
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class Violation(proto.Message):
|
|
36
|
+
r"""Details of resource Violation
|
|
37
|
+
|
|
38
|
+
Attributes:
|
|
39
|
+
name (str):
|
|
40
|
+
Identifier. Format:
|
|
41
|
+
``organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}``
|
|
42
|
+
description (str):
|
|
43
|
+
Output only. Description for the Violation.
|
|
44
|
+
e.g. OrgPolicy gcp.resourceLocations has non
|
|
45
|
+
compliant value.
|
|
46
|
+
begin_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
47
|
+
Output only. Time of the event which
|
|
48
|
+
triggered the Violation.
|
|
49
|
+
update_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
50
|
+
Output only. The last time when the Violation
|
|
51
|
+
record was updated.
|
|
52
|
+
resolve_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
53
|
+
Output only. Time of the event which fixed
|
|
54
|
+
the Violation. If the violation is ACTIVE this
|
|
55
|
+
will be empty.
|
|
56
|
+
category (str):
|
|
57
|
+
Output only. Category under which this
|
|
58
|
+
violation is mapped. e.g. Location, Service
|
|
59
|
+
Usage, Access, Encryption, etc.
|
|
60
|
+
state (google.cloud.cloudcontrolspartner_v1.types.Violation.State):
|
|
61
|
+
Output only. State of the violation
|
|
62
|
+
non_compliant_org_policy (str):
|
|
63
|
+
Output only. Immutable. Name of the OrgPolicy which was
|
|
64
|
+
modified with non-compliant change and resulted this
|
|
65
|
+
violation. Format:
|
|
66
|
+
``projects/{project_number}/policies/{constraint_name}``
|
|
67
|
+
``folders/{folder_id}/policies/{constraint_name}``
|
|
68
|
+
``organizations/{organization_id}/policies/{constraint_name}``
|
|
69
|
+
folder_id (int):
|
|
70
|
+
The folder_id of the violation
|
|
71
|
+
remediation (google.cloud.cloudcontrolspartner_v1.types.Violation.Remediation):
|
|
72
|
+
Output only. Compliance violation remediation
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
class State(proto.Enum):
|
|
76
|
+
r"""Violation State Values
|
|
77
|
+
|
|
78
|
+
Values:
|
|
79
|
+
STATE_UNSPECIFIED (0):
|
|
80
|
+
Unspecified state.
|
|
81
|
+
RESOLVED (1):
|
|
82
|
+
Violation is resolved.
|
|
83
|
+
UNRESOLVED (2):
|
|
84
|
+
Violation is Unresolved
|
|
85
|
+
EXCEPTION (3):
|
|
86
|
+
Violation is Exception
|
|
87
|
+
"""
|
|
88
|
+
STATE_UNSPECIFIED = 0
|
|
89
|
+
RESOLVED = 1
|
|
90
|
+
UNRESOLVED = 2
|
|
91
|
+
EXCEPTION = 3
|
|
92
|
+
|
|
93
|
+
class Remediation(proto.Message):
|
|
94
|
+
r"""Represents remediation guidance to resolve compliance
|
|
95
|
+
violation for AssuredWorkload
|
|
96
|
+
|
|
97
|
+
Attributes:
|
|
98
|
+
instructions (google.cloud.cloudcontrolspartner_v1.types.Violation.Remediation.Instructions):
|
|
99
|
+
Required. Remediation instructions to resolve
|
|
100
|
+
violations
|
|
101
|
+
compliant_values (MutableSequence[str]):
|
|
102
|
+
Values that can resolve the violation
|
|
103
|
+
For example: for list org policy violations,
|
|
104
|
+
this will either be the list of allowed or
|
|
105
|
+
denied values
|
|
106
|
+
remediation_type (google.cloud.cloudcontrolspartner_v1.types.Violation.Remediation.RemediationType):
|
|
107
|
+
Output only. Remediation type based on the
|
|
108
|
+
type of org policy values violated
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
class RemediationType(proto.Enum):
|
|
112
|
+
r"""Classifying remediation into various types based on the kind
|
|
113
|
+
of violation. For example, violations caused due to changes in
|
|
114
|
+
boolean org policy requires different remediation instructions
|
|
115
|
+
compared to violation caused due to changes in allowed values of
|
|
116
|
+
list org policy.
|
|
117
|
+
|
|
118
|
+
Values:
|
|
119
|
+
REMEDIATION_TYPE_UNSPECIFIED (0):
|
|
120
|
+
Unspecified remediation type
|
|
121
|
+
REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION (1):
|
|
122
|
+
Remediation type for boolean org policy
|
|
123
|
+
REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION (2):
|
|
124
|
+
Remediation type for list org policy which
|
|
125
|
+
have allowed values in the monitoring rule
|
|
126
|
+
REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION (3):
|
|
127
|
+
Remediation type for list org policy which
|
|
128
|
+
have denied values in the monitoring rule
|
|
129
|
+
REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION (4):
|
|
130
|
+
Remediation type for
|
|
131
|
+
gcp.restrictCmekCryptoKeyProjects
|
|
132
|
+
REMEDIATION_RESOURCE_VIOLATION (5):
|
|
133
|
+
Remediation type for resource violation.
|
|
134
|
+
"""
|
|
135
|
+
REMEDIATION_TYPE_UNSPECIFIED = 0
|
|
136
|
+
REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION = 1
|
|
137
|
+
REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION = 2
|
|
138
|
+
REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION = 3
|
|
139
|
+
REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION = 4
|
|
140
|
+
REMEDIATION_RESOURCE_VIOLATION = 5
|
|
141
|
+
|
|
142
|
+
class Instructions(proto.Message):
|
|
143
|
+
r"""Instructions to remediate violation
|
|
144
|
+
|
|
145
|
+
Attributes:
|
|
146
|
+
gcloud_instructions (google.cloud.cloudcontrolspartner_v1.types.Violation.Remediation.Instructions.Gcloud):
|
|
147
|
+
Remediation instructions to resolve violation
|
|
148
|
+
via gcloud cli
|
|
149
|
+
console_instructions (google.cloud.cloudcontrolspartner_v1.types.Violation.Remediation.Instructions.Console):
|
|
150
|
+
Remediation instructions to resolve violation
|
|
151
|
+
via cloud console
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
class Gcloud(proto.Message):
|
|
155
|
+
r"""Remediation instructions to resolve violation via gcloud cli
|
|
156
|
+
|
|
157
|
+
Attributes:
|
|
158
|
+
gcloud_commands (MutableSequence[str]):
|
|
159
|
+
Gcloud command to resolve violation
|
|
160
|
+
steps (MutableSequence[str]):
|
|
161
|
+
Steps to resolve violation via gcloud cli
|
|
162
|
+
additional_links (MutableSequence[str]):
|
|
163
|
+
Additional urls for more information about
|
|
164
|
+
steps
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
gcloud_commands: MutableSequence[str] = proto.RepeatedField(
|
|
168
|
+
proto.STRING,
|
|
169
|
+
number=1,
|
|
170
|
+
)
|
|
171
|
+
steps: MutableSequence[str] = proto.RepeatedField(
|
|
172
|
+
proto.STRING,
|
|
173
|
+
number=2,
|
|
174
|
+
)
|
|
175
|
+
additional_links: MutableSequence[str] = proto.RepeatedField(
|
|
176
|
+
proto.STRING,
|
|
177
|
+
number=3,
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
class Console(proto.Message):
|
|
181
|
+
r"""Remediation instructions to resolve violation via cloud
|
|
182
|
+
console
|
|
183
|
+
|
|
184
|
+
Attributes:
|
|
185
|
+
console_uris (MutableSequence[str]):
|
|
186
|
+
Link to console page where violations can be
|
|
187
|
+
resolved
|
|
188
|
+
steps (MutableSequence[str]):
|
|
189
|
+
Steps to resolve violation via cloud console
|
|
190
|
+
additional_links (MutableSequence[str]):
|
|
191
|
+
Additional urls for more information about
|
|
192
|
+
steps
|
|
193
|
+
"""
|
|
194
|
+
|
|
195
|
+
console_uris: MutableSequence[str] = proto.RepeatedField(
|
|
196
|
+
proto.STRING,
|
|
197
|
+
number=1,
|
|
198
|
+
)
|
|
199
|
+
steps: MutableSequence[str] = proto.RepeatedField(
|
|
200
|
+
proto.STRING,
|
|
201
|
+
number=2,
|
|
202
|
+
)
|
|
203
|
+
additional_links: MutableSequence[str] = proto.RepeatedField(
|
|
204
|
+
proto.STRING,
|
|
205
|
+
number=3,
|
|
206
|
+
)
|
|
207
|
+
|
|
208
|
+
gcloud_instructions: "Violation.Remediation.Instructions.Gcloud" = (
|
|
209
|
+
proto.Field(
|
|
210
|
+
proto.MESSAGE,
|
|
211
|
+
number=1,
|
|
212
|
+
message="Violation.Remediation.Instructions.Gcloud",
|
|
213
|
+
)
|
|
214
|
+
)
|
|
215
|
+
console_instructions: "Violation.Remediation.Instructions.Console" = (
|
|
216
|
+
proto.Field(
|
|
217
|
+
proto.MESSAGE,
|
|
218
|
+
number=2,
|
|
219
|
+
message="Violation.Remediation.Instructions.Console",
|
|
220
|
+
)
|
|
221
|
+
)
|
|
222
|
+
|
|
223
|
+
instructions: "Violation.Remediation.Instructions" = proto.Field(
|
|
224
|
+
proto.MESSAGE,
|
|
225
|
+
number=1,
|
|
226
|
+
message="Violation.Remediation.Instructions",
|
|
227
|
+
)
|
|
228
|
+
compliant_values: MutableSequence[str] = proto.RepeatedField(
|
|
229
|
+
proto.STRING,
|
|
230
|
+
number=2,
|
|
231
|
+
)
|
|
232
|
+
remediation_type: "Violation.Remediation.RemediationType" = proto.Field(
|
|
233
|
+
proto.ENUM,
|
|
234
|
+
number=3,
|
|
235
|
+
enum="Violation.Remediation.RemediationType",
|
|
236
|
+
)
|
|
237
|
+
|
|
238
|
+
name: str = proto.Field(
|
|
239
|
+
proto.STRING,
|
|
240
|
+
number=1,
|
|
241
|
+
)
|
|
242
|
+
description: str = proto.Field(
|
|
243
|
+
proto.STRING,
|
|
244
|
+
number=2,
|
|
245
|
+
)
|
|
246
|
+
begin_time: timestamp_pb2.Timestamp = proto.Field(
|
|
247
|
+
proto.MESSAGE,
|
|
248
|
+
number=3,
|
|
249
|
+
message=timestamp_pb2.Timestamp,
|
|
250
|
+
)
|
|
251
|
+
update_time: timestamp_pb2.Timestamp = proto.Field(
|
|
252
|
+
proto.MESSAGE,
|
|
253
|
+
number=4,
|
|
254
|
+
message=timestamp_pb2.Timestamp,
|
|
255
|
+
)
|
|
256
|
+
resolve_time: timestamp_pb2.Timestamp = proto.Field(
|
|
257
|
+
proto.MESSAGE,
|
|
258
|
+
number=5,
|
|
259
|
+
message=timestamp_pb2.Timestamp,
|
|
260
|
+
)
|
|
261
|
+
category: str = proto.Field(
|
|
262
|
+
proto.STRING,
|
|
263
|
+
number=6,
|
|
264
|
+
)
|
|
265
|
+
state: State = proto.Field(
|
|
266
|
+
proto.ENUM,
|
|
267
|
+
number=7,
|
|
268
|
+
enum=State,
|
|
269
|
+
)
|
|
270
|
+
non_compliant_org_policy: str = proto.Field(
|
|
271
|
+
proto.STRING,
|
|
272
|
+
number=8,
|
|
273
|
+
)
|
|
274
|
+
folder_id: int = proto.Field(
|
|
275
|
+
proto.INT64,
|
|
276
|
+
number=9,
|
|
277
|
+
)
|
|
278
|
+
remediation: Remediation = proto.Field(
|
|
279
|
+
proto.MESSAGE,
|
|
280
|
+
number=13,
|
|
281
|
+
message=Remediation,
|
|
282
|
+
)
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
class ListViolationsRequest(proto.Message):
|
|
286
|
+
r"""Message for requesting list of Violations
|
|
287
|
+
|
|
288
|
+
Attributes:
|
|
289
|
+
parent (str):
|
|
290
|
+
Required. Parent resource Format
|
|
291
|
+
``organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}``
|
|
292
|
+
page_size (int):
|
|
293
|
+
Optional. The maximum number of customers row
|
|
294
|
+
to return. The service may return fewer than
|
|
295
|
+
this value. If unspecified, at most 10 customers
|
|
296
|
+
will be returned.
|
|
297
|
+
page_token (str):
|
|
298
|
+
Optional. A page token, received from a previous
|
|
299
|
+
``ListViolations`` call. Provide this to retrieve the
|
|
300
|
+
subsequent page.
|
|
301
|
+
filter (str):
|
|
302
|
+
Optional. Filtering results
|
|
303
|
+
order_by (str):
|
|
304
|
+
Optional. Hint for how to order the results
|
|
305
|
+
interval (google.type.interval_pb2.Interval):
|
|
306
|
+
Optional. Specifies the interval for
|
|
307
|
+
retrieving violations. if unspecified, all
|
|
308
|
+
violations will be returned.
|
|
309
|
+
"""
|
|
310
|
+
|
|
311
|
+
parent: str = proto.Field(
|
|
312
|
+
proto.STRING,
|
|
313
|
+
number=1,
|
|
314
|
+
)
|
|
315
|
+
page_size: int = proto.Field(
|
|
316
|
+
proto.INT32,
|
|
317
|
+
number=2,
|
|
318
|
+
)
|
|
319
|
+
page_token: str = proto.Field(
|
|
320
|
+
proto.STRING,
|
|
321
|
+
number=3,
|
|
322
|
+
)
|
|
323
|
+
filter: str = proto.Field(
|
|
324
|
+
proto.STRING,
|
|
325
|
+
number=4,
|
|
326
|
+
)
|
|
327
|
+
order_by: str = proto.Field(
|
|
328
|
+
proto.STRING,
|
|
329
|
+
number=5,
|
|
330
|
+
)
|
|
331
|
+
interval: interval_pb2.Interval = proto.Field(
|
|
332
|
+
proto.MESSAGE,
|
|
333
|
+
number=6,
|
|
334
|
+
message=interval_pb2.Interval,
|
|
335
|
+
)
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
class ListViolationsResponse(proto.Message):
|
|
339
|
+
r"""Response message for list customer violation requests
|
|
340
|
+
|
|
341
|
+
Attributes:
|
|
342
|
+
violations (MutableSequence[google.cloud.cloudcontrolspartner_v1.types.Violation]):
|
|
343
|
+
List of violation
|
|
344
|
+
next_page_token (str):
|
|
345
|
+
A token that can be sent as ``page_token`` to retrieve the
|
|
346
|
+
next page. If this field is omitted, there are no subsequent
|
|
347
|
+
pages.
|
|
348
|
+
unreachable (MutableSequence[str]):
|
|
349
|
+
Workloads that could not be reached due to
|
|
350
|
+
permission errors or any other error. Ref:
|
|
351
|
+
https://google.aip.dev/217
|
|
352
|
+
"""
|
|
353
|
+
|
|
354
|
+
@property
|
|
355
|
+
def raw_page(self):
|
|
356
|
+
return self
|
|
357
|
+
|
|
358
|
+
violations: MutableSequence["Violation"] = proto.RepeatedField(
|
|
359
|
+
proto.MESSAGE,
|
|
360
|
+
number=1,
|
|
361
|
+
message="Violation",
|
|
362
|
+
)
|
|
363
|
+
next_page_token: str = proto.Field(
|
|
364
|
+
proto.STRING,
|
|
365
|
+
number=2,
|
|
366
|
+
)
|
|
367
|
+
unreachable: MutableSequence[str] = proto.RepeatedField(
|
|
368
|
+
proto.STRING,
|
|
369
|
+
number=3,
|
|
370
|
+
)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
class GetViolationRequest(proto.Message):
|
|
374
|
+
r"""Message for getting a Violation
|
|
375
|
+
|
|
376
|
+
Attributes:
|
|
377
|
+
name (str):
|
|
378
|
+
Required. Format:
|
|
379
|
+
``organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}``
|
|
380
|
+
"""
|
|
381
|
+
|
|
382
|
+
name: str = proto.Field(
|
|
383
|
+
proto.STRING,
|
|
384
|
+
number=1,
|
|
385
|
+
)
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
__all__ = tuple(sorted(__protobuf__.manifest))
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2023 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 google.cloud.cloudcontrolspartner_v1beta import gapic_version as package_version
|
|
17
|
+
|
|
18
|
+
__version__ = package_version.__version__
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
from .services.cloud_controls_partner_core import (
|
|
22
|
+
CloudControlsPartnerCoreAsyncClient,
|
|
23
|
+
CloudControlsPartnerCoreClient,
|
|
24
|
+
)
|
|
25
|
+
from .services.cloud_controls_partner_monitoring import (
|
|
26
|
+
CloudControlsPartnerMonitoringAsyncClient,
|
|
27
|
+
CloudControlsPartnerMonitoringClient,
|
|
28
|
+
)
|
|
29
|
+
from .types.access_approval_requests import (
|
|
30
|
+
AccessApprovalRequest,
|
|
31
|
+
AccessReason,
|
|
32
|
+
ListAccessApprovalRequestsRequest,
|
|
33
|
+
ListAccessApprovalRequestsResponse,
|
|
34
|
+
)
|
|
35
|
+
from .types.completion_state import CompletionState
|
|
36
|
+
from .types.core import OperationMetadata
|
|
37
|
+
from .types.customer_workloads import (
|
|
38
|
+
GetWorkloadRequest,
|
|
39
|
+
ListWorkloadsRequest,
|
|
40
|
+
ListWorkloadsResponse,
|
|
41
|
+
Workload,
|
|
42
|
+
WorkloadOnboardingState,
|
|
43
|
+
WorkloadOnboardingStep,
|
|
44
|
+
)
|
|
45
|
+
from .types.customers import (
|
|
46
|
+
Customer,
|
|
47
|
+
CustomerOnboardingState,
|
|
48
|
+
CustomerOnboardingStep,
|
|
49
|
+
GetCustomerRequest,
|
|
50
|
+
ListCustomersRequest,
|
|
51
|
+
ListCustomersResponse,
|
|
52
|
+
)
|
|
53
|
+
from .types.ekm_connections import (
|
|
54
|
+
EkmConnection,
|
|
55
|
+
EkmConnections,
|
|
56
|
+
GetEkmConnectionsRequest,
|
|
57
|
+
)
|
|
58
|
+
from .types.partner_permissions import GetPartnerPermissionsRequest, PartnerPermissions
|
|
59
|
+
from .types.partners import EkmMetadata, GetPartnerRequest, Partner, Sku
|
|
60
|
+
from .types.violations import (
|
|
61
|
+
GetViolationRequest,
|
|
62
|
+
ListViolationsRequest,
|
|
63
|
+
ListViolationsResponse,
|
|
64
|
+
Violation,
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
__all__ = (
|
|
68
|
+
"CloudControlsPartnerCoreAsyncClient",
|
|
69
|
+
"CloudControlsPartnerMonitoringAsyncClient",
|
|
70
|
+
"AccessApprovalRequest",
|
|
71
|
+
"AccessReason",
|
|
72
|
+
"CloudControlsPartnerCoreClient",
|
|
73
|
+
"CloudControlsPartnerMonitoringClient",
|
|
74
|
+
"CompletionState",
|
|
75
|
+
"Customer",
|
|
76
|
+
"CustomerOnboardingState",
|
|
77
|
+
"CustomerOnboardingStep",
|
|
78
|
+
"EkmConnection",
|
|
79
|
+
"EkmConnections",
|
|
80
|
+
"EkmMetadata",
|
|
81
|
+
"GetCustomerRequest",
|
|
82
|
+
"GetEkmConnectionsRequest",
|
|
83
|
+
"GetPartnerPermissionsRequest",
|
|
84
|
+
"GetPartnerRequest",
|
|
85
|
+
"GetViolationRequest",
|
|
86
|
+
"GetWorkloadRequest",
|
|
87
|
+
"ListAccessApprovalRequestsRequest",
|
|
88
|
+
"ListAccessApprovalRequestsResponse",
|
|
89
|
+
"ListCustomersRequest",
|
|
90
|
+
"ListCustomersResponse",
|
|
91
|
+
"ListViolationsRequest",
|
|
92
|
+
"ListViolationsResponse",
|
|
93
|
+
"ListWorkloadsRequest",
|
|
94
|
+
"ListWorkloadsResponse",
|
|
95
|
+
"OperationMetadata",
|
|
96
|
+
"Partner",
|
|
97
|
+
"PartnerPermissions",
|
|
98
|
+
"Sku",
|
|
99
|
+
"Violation",
|
|
100
|
+
"Workload",
|
|
101
|
+
"WorkloadOnboardingState",
|
|
102
|
+
"WorkloadOnboardingStep",
|
|
103
|
+
)
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
{
|
|
2
|
+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
|
|
3
|
+
"language": "python",
|
|
4
|
+
"libraryPackage": "google.cloud.cloudcontrolspartner_v1beta",
|
|
5
|
+
"protoPackage": "google.cloud.cloudcontrolspartner.v1beta",
|
|
6
|
+
"schema": "1.0",
|
|
7
|
+
"services": {
|
|
8
|
+
"CloudControlsPartnerCore": {
|
|
9
|
+
"clients": {
|
|
10
|
+
"grpc": {
|
|
11
|
+
"libraryClient": "CloudControlsPartnerCoreClient",
|
|
12
|
+
"rpcs": {
|
|
13
|
+
"GetCustomer": {
|
|
14
|
+
"methods": [
|
|
15
|
+
"get_customer"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"GetEkmConnections": {
|
|
19
|
+
"methods": [
|
|
20
|
+
"get_ekm_connections"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"GetPartner": {
|
|
24
|
+
"methods": [
|
|
25
|
+
"get_partner"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"GetPartnerPermissions": {
|
|
29
|
+
"methods": [
|
|
30
|
+
"get_partner_permissions"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"GetWorkload": {
|
|
34
|
+
"methods": [
|
|
35
|
+
"get_workload"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"ListAccessApprovalRequests": {
|
|
39
|
+
"methods": [
|
|
40
|
+
"list_access_approval_requests"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"ListCustomers": {
|
|
44
|
+
"methods": [
|
|
45
|
+
"list_customers"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"ListWorkloads": {
|
|
49
|
+
"methods": [
|
|
50
|
+
"list_workloads"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"grpc-async": {
|
|
56
|
+
"libraryClient": "CloudControlsPartnerCoreAsyncClient",
|
|
57
|
+
"rpcs": {
|
|
58
|
+
"GetCustomer": {
|
|
59
|
+
"methods": [
|
|
60
|
+
"get_customer"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"GetEkmConnections": {
|
|
64
|
+
"methods": [
|
|
65
|
+
"get_ekm_connections"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"GetPartner": {
|
|
69
|
+
"methods": [
|
|
70
|
+
"get_partner"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"GetPartnerPermissions": {
|
|
74
|
+
"methods": [
|
|
75
|
+
"get_partner_permissions"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"GetWorkload": {
|
|
79
|
+
"methods": [
|
|
80
|
+
"get_workload"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"ListAccessApprovalRequests": {
|
|
84
|
+
"methods": [
|
|
85
|
+
"list_access_approval_requests"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"ListCustomers": {
|
|
89
|
+
"methods": [
|
|
90
|
+
"list_customers"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"ListWorkloads": {
|
|
94
|
+
"methods": [
|
|
95
|
+
"list_workloads"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"rest": {
|
|
101
|
+
"libraryClient": "CloudControlsPartnerCoreClient",
|
|
102
|
+
"rpcs": {
|
|
103
|
+
"GetCustomer": {
|
|
104
|
+
"methods": [
|
|
105
|
+
"get_customer"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"GetEkmConnections": {
|
|
109
|
+
"methods": [
|
|
110
|
+
"get_ekm_connections"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"GetPartner": {
|
|
114
|
+
"methods": [
|
|
115
|
+
"get_partner"
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"GetPartnerPermissions": {
|
|
119
|
+
"methods": [
|
|
120
|
+
"get_partner_permissions"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"GetWorkload": {
|
|
124
|
+
"methods": [
|
|
125
|
+
"get_workload"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"ListAccessApprovalRequests": {
|
|
129
|
+
"methods": [
|
|
130
|
+
"list_access_approval_requests"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"ListCustomers": {
|
|
134
|
+
"methods": [
|
|
135
|
+
"list_customers"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"ListWorkloads": {
|
|
139
|
+
"methods": [
|
|
140
|
+
"list_workloads"
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"CloudControlsPartnerMonitoring": {
|
|
148
|
+
"clients": {
|
|
149
|
+
"grpc": {
|
|
150
|
+
"libraryClient": "CloudControlsPartnerMonitoringClient",
|
|
151
|
+
"rpcs": {
|
|
152
|
+
"GetViolation": {
|
|
153
|
+
"methods": [
|
|
154
|
+
"get_violation"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"ListViolations": {
|
|
158
|
+
"methods": [
|
|
159
|
+
"list_violations"
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"grpc-async": {
|
|
165
|
+
"libraryClient": "CloudControlsPartnerMonitoringAsyncClient",
|
|
166
|
+
"rpcs": {
|
|
167
|
+
"GetViolation": {
|
|
168
|
+
"methods": [
|
|
169
|
+
"get_violation"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
"ListViolations": {
|
|
173
|
+
"methods": [
|
|
174
|
+
"list_violations"
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"rest": {
|
|
180
|
+
"libraryClient": "CloudControlsPartnerMonitoringClient",
|
|
181
|
+
"rpcs": {
|
|
182
|
+
"GetViolation": {
|
|
183
|
+
"methods": [
|
|
184
|
+
"get_violation"
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
"ListViolations": {
|
|
188
|
+
"methods": [
|
|
189
|
+
"list_violations"
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2023 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__ = "0.1.0" # {x-release-please-version}
|