Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.1.8" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.1.8" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
Type,
Union,
)
import uuid

from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
Union,
cast,
)
import uuid
import warnings

from google.api_core import client_options as client_options_lib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,11 @@ class State(proto.Enum):
ENDED (11):
System took back access as the requested
duration was over. This is a terminal state.
WITHDRAWING (12):
Access is being withdrawn.
WITHDRAWN (13):
Grant was withdrawn by the grant owner. This
is a terminal state.
"""
STATE_UNSPECIFIED = 0
APPROVAL_AWAITED = 1
Expand All @@ -979,6 +984,8 @@ class State(proto.Enum):
REVOKING = 9
REVOKED = 10
ENDED = 11
WITHDRAWING = 12
WITHDRAWN = 13

class Timeline(proto.Message):
r"""Timeline of a grant describing what happened to it and when.
Expand Down Expand Up @@ -1046,6 +1053,10 @@ class Event(proto.Message):
The policy bindings made by grant have been
modified outside of PAM.

This field is a member of `oneof`_ ``event``.
withdrawn (google.cloud.privilegedaccessmanager_v1.types.Grant.Timeline.Event.Withdrawn):
The grant was withdrawn.

This field is a member of `oneof`_ ``event``.
event_time (google.protobuf.timestamp_pb2.Timestamp):
Output only. The time (as recorded at server)
Expand Down Expand Up @@ -1131,6 +1142,9 @@ class Revoked(proto.Message):
number=2,
)

class Withdrawn(proto.Message):
r"""An event representing that the grant was withdrawn."""

class Scheduled(proto.Message):
r"""An event representing that the grant has been scheduled to be
activated later.
Expand Down Expand Up @@ -1242,6 +1256,12 @@ class ExternallyModified(proto.Message):
message="Grant.Timeline.Event.ExternallyModified",
)
)
withdrawn: "Grant.Timeline.Event.Withdrawn" = proto.Field(
proto.MESSAGE,
number=13,
oneof="event",
message="Grant.Timeline.Event.Withdrawn",
)
event_time: timestamp_pb2.Timestamp = proto.Field(
proto.MESSAGE,
number=1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-privilegedaccessmanager",
"version": "0.1.8"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# limitations under the License.
#
import os
import re

# try/except added for compatibility with python < 3.8
try:
Expand Down Expand Up @@ -11371,6 +11372,7 @@ def test_create_grant_rest_call_success(request_type):
"expired": {},
"ended": {},
"externally_modified": {},
"withdrawn": {},
"event_time": {},
}
]
Expand Down
Loading