Class: Google::Apis::IamV1::KeyData
- Inherits:
-
Object
- Object
- Google::Apis::IamV1::KeyData
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/iam_v1/classes.rb,
lib/google/apis/iam_v1/representations.rb,
lib/google/apis/iam_v1/representations.rb
Overview
Represents a public key data along with its format.
Instance Attribute Summary collapse
-
#format ⇒ String
Output only.
-
#key ⇒ String
Output only.
-
#key_spec ⇒ String
Required.
-
#not_after_time ⇒ String
Output only.
-
#not_before_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KeyData
constructor
A new instance of KeyData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ KeyData
Returns a new instance of KeyData.
932 933 934 |
# File 'lib/google/apis/iam_v1/classes.rb', line 932 def initialize(**args) update!(**args) end |
Instance Attribute Details
#format ⇒ String
Output only. The format of the key.
Corresponds to the JSON property format
905 906 907 |
# File 'lib/google/apis/iam_v1/classes.rb', line 905 def format @format end |
#key ⇒ String
Output only. The key data. The format of the key is represented by the format
field.
Corresponds to the JSON property key
911 912 913 |
# File 'lib/google/apis/iam_v1/classes.rb', line 911 def key @key end |
#key_spec ⇒ String
Required. The specifications for the key.
Corresponds to the JSON property keySpec
916 917 918 |
# File 'lib/google/apis/iam_v1/classes.rb', line 916 def key_spec @key_spec end |
#not_after_time ⇒ String
Output only. Latest timestamp when this key is valid. Attempts to use this key
after this time will fail. Only present if the key data represents a X.509
certificate.
Corresponds to the JSON property notAfterTime
923 924 925 |
# File 'lib/google/apis/iam_v1/classes.rb', line 923 def not_after_time @not_after_time end |
#not_before_time ⇒ String
Output only. Earliest timestamp when this key is valid. Attempts to use this
key before this time will fail. Only present if the key data represents a X.
509 certificate.
Corresponds to the JSON property notBeforeTime
930 931 932 |
# File 'lib/google/apis/iam_v1/classes.rb', line 930 def not_before_time @not_before_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
937 938 939 940 941 942 943 |
# File 'lib/google/apis/iam_v1/classes.rb', line 937 def update!(**args) @format = args[:format] if args.key?(:format) @key = args[:key] if args.key?(:key) @key_spec = args[:key_spec] if args.key?(:key_spec) @not_after_time = args[:not_after_time] if args.key?(:not_after_time) @not_before_time = args[:not_before_time] if args.key?(:not_before_time) end |