Class: Cadenya::Types::UpdateWorkspaceSecretRequest
- Inherits:
-
Object
- Object
- Cadenya::Types::UpdateWorkspaceSecretRequest
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#spec ⇒ Object
readonly
Returns the value of attribute spec.
-
#update_mask ⇒ Object
readonly
Returns the value of attribute update_mask.
-
#workspace_id ⇒ Object
readonly
Returns the value of attribute workspace_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workspace_id: nil, id: nil, metadata: nil, spec: nil, update_mask: nil) ⇒ UpdateWorkspaceSecretRequest
constructor
A new instance of UpdateWorkspaceSecretRequest.
- #to_h ⇒ Object
Constructor Details
#initialize(workspace_id: nil, id: nil, metadata: nil, spec: nil, update_mask: nil) ⇒ UpdateWorkspaceSecretRequest
Returns a new instance of UpdateWorkspaceSecretRequest.
7018 7019 7020 7021 7022 7023 7024 |
# File 'lib/cadenya/types.rb', line 7018 def initialize(workspace_id: nil, id: nil, metadata: nil, spec: nil, update_mask: nil) @workspace_id = workspace_id @id = id @metadata = @spec = spec @update_mask = update_mask end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
7016 7017 7018 |
# File 'lib/cadenya/types.rb', line 7016 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
7016 7017 7018 |
# File 'lib/cadenya/types.rb', line 7016 def @metadata end |
#spec ⇒ Object (readonly)
Returns the value of attribute spec.
7016 7017 7018 |
# File 'lib/cadenya/types.rb', line 7016 def spec @spec end |
#update_mask ⇒ Object (readonly)
Returns the value of attribute update_mask.
7016 7017 7018 |
# File 'lib/cadenya/types.rb', line 7016 def update_mask @update_mask end |
#workspace_id ⇒ Object (readonly)
Returns the value of attribute workspace_id.
7016 7017 7018 |
# File 'lib/cadenya/types.rb', line 7016 def workspace_id @workspace_id end |
Class Method Details
.from_json(data) ⇒ Object
7026 7027 7028 7029 7030 7031 7032 7033 7034 |
# File 'lib/cadenya/types.rb', line 7026 def self.from_json(data) new( workspace_id: data["workspaceId"], id: data["id"], metadata: data["metadata"].nil? ? nil : Types::UpdateResourceMetadata.from_json(data["metadata"]), spec: data["spec"].nil? ? nil : Types::WorkspaceSecretSpec.from_json(data["spec"]), update_mask: data["updateMask"], ) end |
Instance Method Details
#to_h ⇒ Object
7036 7037 7038 7039 7040 7041 7042 7043 7044 |
# File 'lib/cadenya/types.rb', line 7036 def to_h { workspace_id: Util.plain(@workspace_id), id: Util.plain(@id), metadata: Util.plain(@metadata), spec: Util.plain(@spec), update_mask: Util.plain(@update_mask), }.reject { |_k, v| v.nil? } end |