Secret class final
A Secret is a logical secret whose
value and versions can be accessed.
A Secret is made up of zero or more
SecretVersions that represent
the secret data.
- Inheritance
-
- Object
- ProtoMessage
- Secret
Constructors
-
Secret({String name = '', Replication? replication, Timestamp? createTime, Map<
String, String> labels = const {}, List<Topic> topics = const [], Timestamp? expireTime, Duration? ttl, String etag = '', Rotation? rotation, Map<String, int> versionAliases = const {}, Map<String, String> annotations = const {}, Duration? versionDestroyTtl, CustomerManagedEncryption? customerManagedEncryption, Map<String, String> tags = const {}}) - Secret.fromJson(Object? j)
-
factory
Properties
-
annotations
→ Map<
String, String> -
Optional. Custom metadata about the secret.
final
- createTime → Timestamp?
-
Output only. The time at which the
Secretwas created.final - customerManagedEncryption → CustomerManagedEncryption?
-
Optional. The customer-managed encryption configuration of the regionalized
secrets. If no configuration is provided, Google-managed default encryption
is used.
final
- etag → String
-
Optional. Etag of the currently stored
Secret.final - expireTime → Timestamp?
-
Optional. Timestamp in UTC when the
Secretis scheduled to expire. This is always provided on output, regardless of what was sent on input.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
labels
→ Map<
String, String> -
The labels assigned to this Secret.
final
- name → String
-
Output only. The resource name of the
Secretin the formatprojects/*/secrets/*.final - qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - replication → Replication?
-
Optional. Immutable. The replication policy of the secret data attached to
the
Secret.final - rotation → Rotation?
-
Optional. Rotation policy attached to the
Secret. May be excluded if there is no rotation policy.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Optional. Input only. Immutable. Mapping of Tag keys/values directly bound
to this resource. For example:
"123/environment": "production",
"123/costCenter": "marketing"
final
-
topics
→ List<
Topic> -
Optional. A list of up to 10 Pub/Sub topics to which messages are published
when control plane operations are called on the secret or its versions.
final
- ttl → Duration?
-
Input only. The TTL for the
Secret.final -
versionAliases
→ Map<
String, int> -
Optional. Mapping from version alias to version name.
final
- versionDestroyTtl → Duration?
-
Optional. Secret Version TTL after destruction request
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String