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,230 @@
|
|
|
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
|
+
import proto # type: ignore
|
|
22
|
+
|
|
23
|
+
__protobuf__ = proto.module(
|
|
24
|
+
package="google.cloud.cloudcontrolspartner.v1beta",
|
|
25
|
+
manifest={
|
|
26
|
+
"AccessApprovalRequest",
|
|
27
|
+
"ListAccessApprovalRequestsRequest",
|
|
28
|
+
"ListAccessApprovalRequestsResponse",
|
|
29
|
+
"AccessReason",
|
|
30
|
+
},
|
|
31
|
+
)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class AccessApprovalRequest(proto.Message):
|
|
35
|
+
r"""Details about the Access request.
|
|
36
|
+
|
|
37
|
+
Attributes:
|
|
38
|
+
name (str):
|
|
39
|
+
Identifier. Format:
|
|
40
|
+
organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}.
|
|
41
|
+
request_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
42
|
+
The time at which approval was requested.
|
|
43
|
+
requested_reason (google.cloud.cloudcontrolspartner_v1beta.types.AccessReason):
|
|
44
|
+
The justification for which approval is being
|
|
45
|
+
requested.
|
|
46
|
+
requested_expiration_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
47
|
+
The requested expiration for the approval. If
|
|
48
|
+
the request is approved, access will be granted
|
|
49
|
+
from the time of approval until the expiration
|
|
50
|
+
time.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
name: str = proto.Field(
|
|
54
|
+
proto.STRING,
|
|
55
|
+
number=1,
|
|
56
|
+
)
|
|
57
|
+
request_time: timestamp_pb2.Timestamp = proto.Field(
|
|
58
|
+
proto.MESSAGE,
|
|
59
|
+
number=2,
|
|
60
|
+
message=timestamp_pb2.Timestamp,
|
|
61
|
+
)
|
|
62
|
+
requested_reason: "AccessReason" = proto.Field(
|
|
63
|
+
proto.MESSAGE,
|
|
64
|
+
number=3,
|
|
65
|
+
message="AccessReason",
|
|
66
|
+
)
|
|
67
|
+
requested_expiration_time: timestamp_pb2.Timestamp = proto.Field(
|
|
68
|
+
proto.MESSAGE,
|
|
69
|
+
number=4,
|
|
70
|
+
message=timestamp_pb2.Timestamp,
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class ListAccessApprovalRequestsRequest(proto.Message):
|
|
75
|
+
r"""Request for getting the access requests associated with a
|
|
76
|
+
workload.
|
|
77
|
+
|
|
78
|
+
Attributes:
|
|
79
|
+
parent (str):
|
|
80
|
+
Required. Parent resource
|
|
81
|
+
Format:
|
|
82
|
+
|
|
83
|
+
organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
|
|
84
|
+
page_size (int):
|
|
85
|
+
Optional. The maximum number of access
|
|
86
|
+
requests to return. The service may return fewer
|
|
87
|
+
than this value. If unspecified, at most 500
|
|
88
|
+
access requests will be returned.
|
|
89
|
+
page_token (str):
|
|
90
|
+
Optional. A page token, received from a previous
|
|
91
|
+
``ListAccessApprovalRequests`` call. Provide this to
|
|
92
|
+
retrieve the subsequent page.
|
|
93
|
+
filter (str):
|
|
94
|
+
Optional. Filtering results.
|
|
95
|
+
order_by (str):
|
|
96
|
+
Optional. Hint for how to order the results.
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
parent: str = proto.Field(
|
|
100
|
+
proto.STRING,
|
|
101
|
+
number=1,
|
|
102
|
+
)
|
|
103
|
+
page_size: int = proto.Field(
|
|
104
|
+
proto.INT32,
|
|
105
|
+
number=2,
|
|
106
|
+
)
|
|
107
|
+
page_token: str = proto.Field(
|
|
108
|
+
proto.STRING,
|
|
109
|
+
number=3,
|
|
110
|
+
)
|
|
111
|
+
filter: str = proto.Field(
|
|
112
|
+
proto.STRING,
|
|
113
|
+
number=4,
|
|
114
|
+
)
|
|
115
|
+
order_by: str = proto.Field(
|
|
116
|
+
proto.STRING,
|
|
117
|
+
number=5,
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class ListAccessApprovalRequestsResponse(proto.Message):
|
|
122
|
+
r"""Response message for list access requests.
|
|
123
|
+
|
|
124
|
+
Attributes:
|
|
125
|
+
access_approval_requests (MutableSequence[google.cloud.cloudcontrolspartner_v1beta.types.AccessApprovalRequest]):
|
|
126
|
+
List of access approval requests
|
|
127
|
+
next_page_token (str):
|
|
128
|
+
A token that can be sent as ``page_token`` to retrieve the
|
|
129
|
+
next page. If this field is omitted, there are no subsequent
|
|
130
|
+
pages.
|
|
131
|
+
unreachable (MutableSequence[str]):
|
|
132
|
+
Locations that could not be reached.
|
|
133
|
+
"""
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def raw_page(self):
|
|
137
|
+
return self
|
|
138
|
+
|
|
139
|
+
access_approval_requests: MutableSequence[
|
|
140
|
+
"AccessApprovalRequest"
|
|
141
|
+
] = proto.RepeatedField(
|
|
142
|
+
proto.MESSAGE,
|
|
143
|
+
number=1,
|
|
144
|
+
message="AccessApprovalRequest",
|
|
145
|
+
)
|
|
146
|
+
next_page_token: str = proto.Field(
|
|
147
|
+
proto.STRING,
|
|
148
|
+
number=2,
|
|
149
|
+
)
|
|
150
|
+
unreachable: MutableSequence[str] = proto.RepeatedField(
|
|
151
|
+
proto.STRING,
|
|
152
|
+
number=3,
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
class AccessReason(proto.Message):
|
|
157
|
+
r"""Reason for the access.
|
|
158
|
+
|
|
159
|
+
Attributes:
|
|
160
|
+
type_ (google.cloud.cloudcontrolspartner_v1beta.types.AccessReason.Type):
|
|
161
|
+
Type of access justification.
|
|
162
|
+
detail (str):
|
|
163
|
+
More detail about certain reason types. See
|
|
164
|
+
comments for each type above.
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
class Type(proto.Enum):
|
|
168
|
+
r"""Type of access justification.
|
|
169
|
+
|
|
170
|
+
Values:
|
|
171
|
+
TYPE_UNSPECIFIED (0):
|
|
172
|
+
Default value for proto, shouldn't be used.
|
|
173
|
+
CUSTOMER_INITIATED_SUPPORT (1):
|
|
174
|
+
Customer made a request or raised an issue that required the
|
|
175
|
+
principal to access customer data. ``detail`` is of the form
|
|
176
|
+
("#####" is the issue ID):
|
|
177
|
+
|
|
178
|
+
- "Feedback Report: #####"
|
|
179
|
+
- "Case Number: #####"
|
|
180
|
+
- "Case ID: #####"
|
|
181
|
+
- "E-PIN Reference: #####"
|
|
182
|
+
- "Google-#####"
|
|
183
|
+
- "T-#####".
|
|
184
|
+
GOOGLE_INITIATED_SERVICE (2):
|
|
185
|
+
The principal accessed customer data in order
|
|
186
|
+
to diagnose or resolve a suspected issue in
|
|
187
|
+
services. Often this access is used to confirm
|
|
188
|
+
that customers are not affected by a suspected
|
|
189
|
+
service issue or to remediate a reversible
|
|
190
|
+
system issue.
|
|
191
|
+
GOOGLE_INITIATED_REVIEW (3):
|
|
192
|
+
Google initiated service for security, fraud,
|
|
193
|
+
abuse, or compliance purposes.
|
|
194
|
+
THIRD_PARTY_DATA_REQUEST (4):
|
|
195
|
+
The principal was compelled to access
|
|
196
|
+
customer data in order to respond to a legal
|
|
197
|
+
third party data request or process, including
|
|
198
|
+
legal processes from customers themselves.
|
|
199
|
+
GOOGLE_RESPONSE_TO_PRODUCTION_ALERT (5):
|
|
200
|
+
The principal accessed customer data in order
|
|
201
|
+
to diagnose or resolve a suspected issue in
|
|
202
|
+
services or a known outage.
|
|
203
|
+
CLOUD_INITIATED_ACCESS (6):
|
|
204
|
+
Similar to 'GOOGLE_INITIATED_SERVICE' or
|
|
205
|
+
'GOOGLE_INITIATED_REVIEW', but with universe agnostic
|
|
206
|
+
naming. The principal accessed customer data in order to
|
|
207
|
+
diagnose or resolve a suspected issue in services or a known
|
|
208
|
+
outage, or for security, fraud, abuse, or compliance review
|
|
209
|
+
purposes.
|
|
210
|
+
"""
|
|
211
|
+
TYPE_UNSPECIFIED = 0
|
|
212
|
+
CUSTOMER_INITIATED_SUPPORT = 1
|
|
213
|
+
GOOGLE_INITIATED_SERVICE = 2
|
|
214
|
+
GOOGLE_INITIATED_REVIEW = 3
|
|
215
|
+
THIRD_PARTY_DATA_REQUEST = 4
|
|
216
|
+
GOOGLE_RESPONSE_TO_PRODUCTION_ALERT = 5
|
|
217
|
+
CLOUD_INITIATED_ACCESS = 6
|
|
218
|
+
|
|
219
|
+
type_: Type = proto.Field(
|
|
220
|
+
proto.ENUM,
|
|
221
|
+
number=1,
|
|
222
|
+
enum=Type,
|
|
223
|
+
)
|
|
224
|
+
detail: str = proto.Field(
|
|
225
|
+
proto.STRING,
|
|
226
|
+
number=2,
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
__all__ = tuple(sorted(__protobuf__.manifest))
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
import proto # type: ignore
|
|
21
|
+
|
|
22
|
+
__protobuf__ = proto.module(
|
|
23
|
+
package="google.cloud.cloudcontrolspartner.v1beta",
|
|
24
|
+
manifest={
|
|
25
|
+
"CompletionState",
|
|
26
|
+
},
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class CompletionState(proto.Enum):
|
|
31
|
+
r"""Enum for possible completion states.
|
|
32
|
+
|
|
33
|
+
Values:
|
|
34
|
+
COMPLETION_STATE_UNSPECIFIED (0):
|
|
35
|
+
Unspecified completion state.
|
|
36
|
+
PENDING (1):
|
|
37
|
+
Task started (has start date) but not yet
|
|
38
|
+
completed.
|
|
39
|
+
SUCCEEDED (2):
|
|
40
|
+
Succeeded state.
|
|
41
|
+
FAILED (3):
|
|
42
|
+
Failed state.
|
|
43
|
+
NOT_APPLICABLE (4):
|
|
44
|
+
Not applicable state.
|
|
45
|
+
"""
|
|
46
|
+
COMPLETION_STATE_UNSPECIFIED = 0
|
|
47
|
+
PENDING = 1
|
|
48
|
+
SUCCEEDED = 2
|
|
49
|
+
FAILED = 3
|
|
50
|
+
NOT_APPLICABLE = 4
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
__all__ = tuple(sorted(__protobuf__.manifest))
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
import proto # type: ignore
|
|
22
|
+
|
|
23
|
+
__protobuf__ = proto.module(
|
|
24
|
+
package="google.cloud.cloudcontrolspartner.v1beta",
|
|
25
|
+
manifest={
|
|
26
|
+
"OperationMetadata",
|
|
27
|
+
},
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class OperationMetadata(proto.Message):
|
|
32
|
+
r"""Represents the metadata of the long-running operation.
|
|
33
|
+
|
|
34
|
+
Attributes:
|
|
35
|
+
create_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
36
|
+
Output only. The time the operation was
|
|
37
|
+
created.
|
|
38
|
+
end_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
39
|
+
Output only. The time the operation finished
|
|
40
|
+
running.
|
|
41
|
+
target (str):
|
|
42
|
+
Output only. Server-defined resource path for
|
|
43
|
+
the target of the operation.
|
|
44
|
+
verb (str):
|
|
45
|
+
Output only. Name of the verb executed by the
|
|
46
|
+
operation.
|
|
47
|
+
status_message (str):
|
|
48
|
+
Output only. Human-readable status of the
|
|
49
|
+
operation, if any.
|
|
50
|
+
requested_cancellation (bool):
|
|
51
|
+
Output only. Identifies whether the user has requested
|
|
52
|
+
cancellation of the operation. Operations that have been
|
|
53
|
+
cancelled successfully have [Operation.error][] value with a
|
|
54
|
+
[google.rpc.Status.code][google.rpc.Status.code] of 1,
|
|
55
|
+
corresponding to ``Code.CANCELLED``.
|
|
56
|
+
api_version (str):
|
|
57
|
+
Output only. API version used to start the
|
|
58
|
+
operation.
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
create_time: timestamp_pb2.Timestamp = proto.Field(
|
|
62
|
+
proto.MESSAGE,
|
|
63
|
+
number=1,
|
|
64
|
+
message=timestamp_pb2.Timestamp,
|
|
65
|
+
)
|
|
66
|
+
end_time: timestamp_pb2.Timestamp = proto.Field(
|
|
67
|
+
proto.MESSAGE,
|
|
68
|
+
number=2,
|
|
69
|
+
message=timestamp_pb2.Timestamp,
|
|
70
|
+
)
|
|
71
|
+
target: str = proto.Field(
|
|
72
|
+
proto.STRING,
|
|
73
|
+
number=3,
|
|
74
|
+
)
|
|
75
|
+
verb: str = proto.Field(
|
|
76
|
+
proto.STRING,
|
|
77
|
+
number=4,
|
|
78
|
+
)
|
|
79
|
+
status_message: str = proto.Field(
|
|
80
|
+
proto.STRING,
|
|
81
|
+
number=5,
|
|
82
|
+
)
|
|
83
|
+
requested_cancellation: bool = proto.Field(
|
|
84
|
+
proto.BOOL,
|
|
85
|
+
number=6,
|
|
86
|
+
)
|
|
87
|
+
api_version: str = proto.Field(
|
|
88
|
+
proto.STRING,
|
|
89
|
+
number=7,
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
__all__ = tuple(sorted(__protobuf__.manifest))
|
|
@@ -0,0 +1,304 @@
|
|
|
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
|
+
import proto # type: ignore
|
|
22
|
+
|
|
23
|
+
from google.cloud.cloudcontrolspartner_v1beta.types import (
|
|
24
|
+
completion_state as gcc_completion_state,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
__protobuf__ = proto.module(
|
|
28
|
+
package="google.cloud.cloudcontrolspartner.v1beta",
|
|
29
|
+
manifest={
|
|
30
|
+
"Workload",
|
|
31
|
+
"ListWorkloadsRequest",
|
|
32
|
+
"ListWorkloadsResponse",
|
|
33
|
+
"GetWorkloadRequest",
|
|
34
|
+
"WorkloadOnboardingState",
|
|
35
|
+
"WorkloadOnboardingStep",
|
|
36
|
+
},
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class Workload(proto.Message):
|
|
41
|
+
r"""Contains metadata around the `Workload
|
|
42
|
+
resource <https://cloud.google.com/assured-workloads/docs/reference/rest/Shared.Types/Workload>`__
|
|
43
|
+
in the Assured Workloads API.
|
|
44
|
+
|
|
45
|
+
Attributes:
|
|
46
|
+
name (str):
|
|
47
|
+
Identifier. Format:
|
|
48
|
+
|
|
49
|
+
organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
|
|
50
|
+
folder_id (int):
|
|
51
|
+
Output only. Folder id this workload is
|
|
52
|
+
associated with
|
|
53
|
+
create_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
54
|
+
Output only. Time the resource was created.
|
|
55
|
+
folder (str):
|
|
56
|
+
Output only. The name of container folder of
|
|
57
|
+
the assured workload
|
|
58
|
+
workload_onboarding_state (google.cloud.cloudcontrolspartner_v1beta.types.WorkloadOnboardingState):
|
|
59
|
+
Container for workload onboarding steps.
|
|
60
|
+
is_onboarded (bool):
|
|
61
|
+
Indicates whether a workload is fully
|
|
62
|
+
onboarded.
|
|
63
|
+
key_management_project_id (str):
|
|
64
|
+
The project id of the key management project
|
|
65
|
+
for the workload
|
|
66
|
+
location (str):
|
|
67
|
+
The Google Cloud location of the workload
|
|
68
|
+
partner (google.cloud.cloudcontrolspartner_v1beta.types.Workload.Partner):
|
|
69
|
+
Partner associated with this workload.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
class Partner(proto.Enum):
|
|
73
|
+
r"""Supported Assured Workloads Partners.
|
|
74
|
+
|
|
75
|
+
Values:
|
|
76
|
+
PARTNER_UNSPECIFIED (0):
|
|
77
|
+
Unknown Partner.
|
|
78
|
+
PARTNER_LOCAL_CONTROLS_BY_S3NS (1):
|
|
79
|
+
Enum representing S3NS (Thales) partner.
|
|
80
|
+
PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS (2):
|
|
81
|
+
Enum representing T_SYSTEM (TSI) partner.
|
|
82
|
+
PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT (3):
|
|
83
|
+
Enum representing SIA_MINSAIT (Indra) partner.
|
|
84
|
+
PARTNER_SOVEREIGN_CONTROLS_BY_PSN (4):
|
|
85
|
+
Enum representing PSN (TIM) partner.
|
|
86
|
+
PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT (6):
|
|
87
|
+
Enum representing CNTXT (Kingdom of Saudi
|
|
88
|
+
Arabia) partner.
|
|
89
|
+
PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM (7):
|
|
90
|
+
Enum representing CNXT (Kingdom of Saudi
|
|
91
|
+
Arabia) partner offering without EKM
|
|
92
|
+
provisioning.
|
|
93
|
+
"""
|
|
94
|
+
PARTNER_UNSPECIFIED = 0
|
|
95
|
+
PARTNER_LOCAL_CONTROLS_BY_S3NS = 1
|
|
96
|
+
PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS = 2
|
|
97
|
+
PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT = 3
|
|
98
|
+
PARTNER_SOVEREIGN_CONTROLS_BY_PSN = 4
|
|
99
|
+
PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT = 6
|
|
100
|
+
PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM = 7
|
|
101
|
+
|
|
102
|
+
name: str = proto.Field(
|
|
103
|
+
proto.STRING,
|
|
104
|
+
number=1,
|
|
105
|
+
)
|
|
106
|
+
folder_id: int = proto.Field(
|
|
107
|
+
proto.INT64,
|
|
108
|
+
number=2,
|
|
109
|
+
)
|
|
110
|
+
create_time: timestamp_pb2.Timestamp = proto.Field(
|
|
111
|
+
proto.MESSAGE,
|
|
112
|
+
number=3,
|
|
113
|
+
message=timestamp_pb2.Timestamp,
|
|
114
|
+
)
|
|
115
|
+
folder: str = proto.Field(
|
|
116
|
+
proto.STRING,
|
|
117
|
+
number=4,
|
|
118
|
+
)
|
|
119
|
+
workload_onboarding_state: "WorkloadOnboardingState" = proto.Field(
|
|
120
|
+
proto.MESSAGE,
|
|
121
|
+
number=5,
|
|
122
|
+
message="WorkloadOnboardingState",
|
|
123
|
+
)
|
|
124
|
+
is_onboarded: bool = proto.Field(
|
|
125
|
+
proto.BOOL,
|
|
126
|
+
number=6,
|
|
127
|
+
)
|
|
128
|
+
key_management_project_id: str = proto.Field(
|
|
129
|
+
proto.STRING,
|
|
130
|
+
number=7,
|
|
131
|
+
)
|
|
132
|
+
location: str = proto.Field(
|
|
133
|
+
proto.STRING,
|
|
134
|
+
number=8,
|
|
135
|
+
)
|
|
136
|
+
partner: Partner = proto.Field(
|
|
137
|
+
proto.ENUM,
|
|
138
|
+
number=9,
|
|
139
|
+
enum=Partner,
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
class ListWorkloadsRequest(proto.Message):
|
|
144
|
+
r"""Request to list customer workloads.
|
|
145
|
+
|
|
146
|
+
Attributes:
|
|
147
|
+
parent (str):
|
|
148
|
+
Required. Parent resource
|
|
149
|
+
Format:
|
|
150
|
+
|
|
151
|
+
organizations/{organization}/locations/{location}/customers/{customer}
|
|
152
|
+
page_size (int):
|
|
153
|
+
The maximum number of workloads to return.
|
|
154
|
+
The service may return fewer than this value. If
|
|
155
|
+
unspecified, at most 500 workloads will be
|
|
156
|
+
returned.
|
|
157
|
+
page_token (str):
|
|
158
|
+
A page token, received from a previous ``ListWorkloads``
|
|
159
|
+
call. Provide this to retrieve the subsequent page.
|
|
160
|
+
filter (str):
|
|
161
|
+
Optional. Filtering results.
|
|
162
|
+
order_by (str):
|
|
163
|
+
Optional. Hint for how to order the results.
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
parent: str = proto.Field(
|
|
167
|
+
proto.STRING,
|
|
168
|
+
number=1,
|
|
169
|
+
)
|
|
170
|
+
page_size: int = proto.Field(
|
|
171
|
+
proto.INT32,
|
|
172
|
+
number=2,
|
|
173
|
+
)
|
|
174
|
+
page_token: str = proto.Field(
|
|
175
|
+
proto.STRING,
|
|
176
|
+
number=3,
|
|
177
|
+
)
|
|
178
|
+
filter: str = proto.Field(
|
|
179
|
+
proto.STRING,
|
|
180
|
+
number=4,
|
|
181
|
+
)
|
|
182
|
+
order_by: str = proto.Field(
|
|
183
|
+
proto.STRING,
|
|
184
|
+
number=5,
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
class ListWorkloadsResponse(proto.Message):
|
|
189
|
+
r"""Response message for list customer workloads requests.
|
|
190
|
+
|
|
191
|
+
Attributes:
|
|
192
|
+
workloads (MutableSequence[google.cloud.cloudcontrolspartner_v1beta.types.Workload]):
|
|
193
|
+
List of customer workloads
|
|
194
|
+
next_page_token (str):
|
|
195
|
+
A token that can be sent as ``page_token`` to retrieve the
|
|
196
|
+
next page. If this field is omitted, there are no subsequent
|
|
197
|
+
pages.
|
|
198
|
+
unreachable (MutableSequence[str]):
|
|
199
|
+
Locations that could not be reached.
|
|
200
|
+
"""
|
|
201
|
+
|
|
202
|
+
@property
|
|
203
|
+
def raw_page(self):
|
|
204
|
+
return self
|
|
205
|
+
|
|
206
|
+
workloads: MutableSequence["Workload"] = proto.RepeatedField(
|
|
207
|
+
proto.MESSAGE,
|
|
208
|
+
number=1,
|
|
209
|
+
message="Workload",
|
|
210
|
+
)
|
|
211
|
+
next_page_token: str = proto.Field(
|
|
212
|
+
proto.STRING,
|
|
213
|
+
number=2,
|
|
214
|
+
)
|
|
215
|
+
unreachable: MutableSequence[str] = proto.RepeatedField(
|
|
216
|
+
proto.STRING,
|
|
217
|
+
number=3,
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
class GetWorkloadRequest(proto.Message):
|
|
222
|
+
r"""Message for getting a customer workload.
|
|
223
|
+
|
|
224
|
+
Attributes:
|
|
225
|
+
name (str):
|
|
226
|
+
Required. Format:
|
|
227
|
+
|
|
228
|
+
organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
|
|
229
|
+
"""
|
|
230
|
+
|
|
231
|
+
name: str = proto.Field(
|
|
232
|
+
proto.STRING,
|
|
233
|
+
number=1,
|
|
234
|
+
)
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
class WorkloadOnboardingState(proto.Message):
|
|
238
|
+
r"""Container for workload onboarding steps.
|
|
239
|
+
|
|
240
|
+
Attributes:
|
|
241
|
+
onboarding_steps (MutableSequence[google.cloud.cloudcontrolspartner_v1beta.types.WorkloadOnboardingStep]):
|
|
242
|
+
List of workload onboarding steps.
|
|
243
|
+
"""
|
|
244
|
+
|
|
245
|
+
onboarding_steps: MutableSequence["WorkloadOnboardingStep"] = proto.RepeatedField(
|
|
246
|
+
proto.MESSAGE,
|
|
247
|
+
number=1,
|
|
248
|
+
message="WorkloadOnboardingStep",
|
|
249
|
+
)
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
class WorkloadOnboardingStep(proto.Message):
|
|
253
|
+
r"""Container for workload onboarding information.
|
|
254
|
+
|
|
255
|
+
Attributes:
|
|
256
|
+
step (google.cloud.cloudcontrolspartner_v1beta.types.WorkloadOnboardingStep.Step):
|
|
257
|
+
The onboarding step.
|
|
258
|
+
start_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
259
|
+
The starting time of the onboarding step.
|
|
260
|
+
completion_time (google.protobuf.timestamp_pb2.Timestamp):
|
|
261
|
+
The completion time of the onboarding step.
|
|
262
|
+
completion_state (google.cloud.cloudcontrolspartner_v1beta.types.CompletionState):
|
|
263
|
+
Output only. The completion state of the
|
|
264
|
+
onboarding step.
|
|
265
|
+
"""
|
|
266
|
+
|
|
267
|
+
class Step(proto.Enum):
|
|
268
|
+
r"""Enum for possible onboarding steps.
|
|
269
|
+
|
|
270
|
+
Values:
|
|
271
|
+
STEP_UNSPECIFIED (0):
|
|
272
|
+
Unspecified step.
|
|
273
|
+
EKM_PROVISIONED (1):
|
|
274
|
+
EKM Provisioned step.
|
|
275
|
+
SIGNED_ACCESS_APPROVAL_CONFIGURED (2):
|
|
276
|
+
Signed Access Approval step.
|
|
277
|
+
"""
|
|
278
|
+
STEP_UNSPECIFIED = 0
|
|
279
|
+
EKM_PROVISIONED = 1
|
|
280
|
+
SIGNED_ACCESS_APPROVAL_CONFIGURED = 2
|
|
281
|
+
|
|
282
|
+
step: Step = proto.Field(
|
|
283
|
+
proto.ENUM,
|
|
284
|
+
number=1,
|
|
285
|
+
enum=Step,
|
|
286
|
+
)
|
|
287
|
+
start_time: timestamp_pb2.Timestamp = proto.Field(
|
|
288
|
+
proto.MESSAGE,
|
|
289
|
+
number=2,
|
|
290
|
+
message=timestamp_pb2.Timestamp,
|
|
291
|
+
)
|
|
292
|
+
completion_time: timestamp_pb2.Timestamp = proto.Field(
|
|
293
|
+
proto.MESSAGE,
|
|
294
|
+
number=3,
|
|
295
|
+
message=timestamp_pb2.Timestamp,
|
|
296
|
+
)
|
|
297
|
+
completion_state: gcc_completion_state.CompletionState = proto.Field(
|
|
298
|
+
proto.ENUM,
|
|
299
|
+
number=4,
|
|
300
|
+
enum=gcc_completion_state.CompletionState,
|
|
301
|
+
)
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
__all__ = tuple(sorted(__protobuf__.manifest))
|