Represents a PasswordValidationPolicy.
Package
@google-cloud/sqlConstructors
(constructor)(properties)
constructor(properties?: google.cloud.sql.v1beta4.IPasswordValidationPolicy);
Constructs a new PasswordValidationPolicy.
Parameter | |
---|---|
Name | Description |
properties |
IPasswordValidationPolicy
Properties to set |
Properties
complexity
public complexity: (google.cloud.sql.v1beta4.PasswordValidationPolicy.Complexity|keyof typeof google.cloud.sql.v1beta4.PasswordValidationPolicy.Complexity);
PasswordValidationPolicy complexity.
disallowCompromisedCredentials
public disallowCompromisedCredentials?: (google.protobuf.IBoolValue|null);
PasswordValidationPolicy disallowCompromisedCredentials.
disallowUsernameSubstring
public disallowUsernameSubstring?: (google.protobuf.IBoolValue|null);
PasswordValidationPolicy disallowUsernameSubstring.
enablePasswordPolicy
public enablePasswordPolicy?: (google.protobuf.IBoolValue|null);
PasswordValidationPolicy enablePasswordPolicy.
minLength
public minLength?: (google.protobuf.IInt32Value|null);
PasswordValidationPolicy minLength.
passwordChangeInterval
public passwordChangeInterval?: (google.protobuf.IDuration|null);
PasswordValidationPolicy passwordChangeInterval.
reuseInterval
public reuseInterval?: (google.protobuf.IInt32Value|null);
PasswordValidationPolicy reuseInterval.
Methods
create(properties)
public static create(properties?: google.cloud.sql.v1beta4.IPasswordValidationPolicy): google.cloud.sql.v1beta4.PasswordValidationPolicy;
Creates a new PasswordValidationPolicy instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IPasswordValidationPolicy
Properties to set |
Returns | |
---|---|
Type | Description |
PasswordValidationPolicy |
PasswordValidationPolicy instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.sql.v1beta4.PasswordValidationPolicy;
Decodes a PasswordValidationPolicy message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
PasswordValidationPolicy |
PasswordValidationPolicy |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.sql.v1beta4.PasswordValidationPolicy;
Decodes a PasswordValidationPolicy message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
PasswordValidationPolicy |
PasswordValidationPolicy |
encode(message, writer)
public static encode(message: google.cloud.sql.v1beta4.IPasswordValidationPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified PasswordValidationPolicy message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IPasswordValidationPolicy
PasswordValidationPolicy message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.sql.v1beta4.IPasswordValidationPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified PasswordValidationPolicy message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IPasswordValidationPolicy
PasswordValidationPolicy message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.sql.v1beta4.PasswordValidationPolicy;
Creates a PasswordValidationPolicy message from a plain object. Also converts values to their respective internal types.
Parameter | |
---|---|
Name | Description |
object |
{ [k: string]: any }
Plain object |
Returns | |
---|---|
Type | Description |
PasswordValidationPolicy |
PasswordValidationPolicy |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for PasswordValidationPolicy
Parameter | |
---|---|
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns | |
---|---|
Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this PasswordValidationPolicy to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.sql.v1beta4.PasswordValidationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a PasswordValidationPolicy message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
PasswordValidationPolicy
PasswordValidationPolicy |
options |
$protobuf.IConversionOptions
Conversion options |
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a PasswordValidationPolicy message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|