@@ -3009,21 +3009,29 @@ class CreateDebugPasswordResponse(rpc.Shape):
3009
3009
password:
3010
3010
username:
3011
3011
password_expiration:
3012
+ certificate_sha256_hash:
3013
+ certificate_sha1_hash:
3012
3014
3013
3015
Attributes:
3014
3016
password:
3015
3017
username:
3016
3018
password_expiration:
3019
+ certificate_sha256_hash:
3020
+ certificate_sha1_hash:
3017
3021
"""
3018
3022
3019
3023
def __init__ (self , * ,
3020
3024
password : typing .Optional [str ] = None ,
3021
3025
username : typing .Optional [str ] = None ,
3022
- password_expiration : typing .Optional [datetime .datetime ] = None ):
3026
+ password_expiration : typing .Optional [datetime .datetime ] = None ,
3027
+ certificate_sha256_hash : typing .Optional [str ] = None ,
3028
+ certificate_sha1_hash : typing .Optional [str ] = None ):
3023
3029
super ().__init__ ()
3024
3030
self .password = password # type: typing.Optional[str]
3025
3031
self .username = username # type: typing.Optional[str]
3026
3032
self .password_expiration = password_expiration # type: typing.Optional[datetime.datetime]
3033
+ self .certificate_sha256_hash = certificate_sha256_hash # type: typing.Optional[str]
3034
+ self .certificate_sha1_hash = certificate_sha1_hash # type: typing.Optional[str]
3027
3035
3028
3036
def _to_payload (self ):
3029
3037
payload = {}
@@ -3033,6 +3041,10 @@ def _to_payload(self):
3033
3041
payload ['username' ] = self .username
3034
3042
if self .password_expiration is not None :
3035
3043
payload ['passwordExpiration' ] = self .password_expiration .timestamp ()
3044
+ if self .certificate_sha256_hash is not None :
3045
+ payload ['certificateSHA256Hash' ] = self .certificate_sha256_hash
3046
+ if self .certificate_sha1_hash is not None :
3047
+ payload ['certificateSHA1Hash' ] = self .certificate_sha1_hash
3036
3048
return payload
3037
3049
3038
3050
@classmethod
@@ -3044,6 +3056,10 @@ def _from_payload(cls, payload):
3044
3056
new .username = payload ['username' ]
3045
3057
if 'passwordExpiration' in payload :
3046
3058
new .password_expiration = datetime .datetime .fromtimestamp (payload ['passwordExpiration' ], datetime .timezone .utc )
3059
+ if 'certificateSHA256Hash' in payload :
3060
+ new .certificate_sha256_hash = payload ['certificateSHA256Hash' ]
3061
+ if 'certificateSHA1Hash' in payload :
3062
+ new .certificate_sha1_hash = payload ['certificateSHA1Hash' ]
3047
3063
return new
3048
3064
3049
3065
@classmethod
0 commit comments