Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Greengrass IPC #732

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3458,6 +3458,14 @@ namespace Aws
* operation defaults to the version with the AWSCURRENT label.
*/
Aws::Crt::Optional<Aws::Crt::String> GetVersionStage() noexcept { return m_versionStage; }
/**
* (Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false.
*/
void SetRefresh(const bool &refresh) noexcept { m_refresh = refresh; }
/**
* (Optional) Whether to fetch the latest secret from cloud when the request is handled. Defaults to false.
*/
Aws::Crt::Optional<bool> GetRefresh() noexcept { return m_refresh; }
void SerializeToJsonObject(Aws::Crt::JsonObject &payloadObject) const noexcept override;
static void s_loadFromJsonView(GetSecretValueRequest &, const Aws::Crt::JsonView &) noexcept;
static Aws::Crt::ScopedResource<AbstractShapeBase> s_allocateFromPayload(
Expand All @@ -3475,6 +3483,7 @@ namespace Aws
Aws::Crt::Optional<Aws::Crt::String> m_secretId;
Aws::Crt::Optional<Aws::Crt::String> m_versionId;
Aws::Crt::Optional<Aws::Crt::String> m_versionStage;
Aws::Crt::Optional<bool> m_refresh;
};

class AWS_GREENGRASSCOREIPC_API GetLocalDeploymentStatusResponse : public AbstractShapeBase
Expand Down
8 changes: 8 additions & 0 deletions greengrass_ipc/source/GreengrassCoreIpcModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5420,6 +5420,10 @@ namespace Aws
{
payloadObject.WithString("versionStage", m_versionStage.value());
}
if (m_refresh.has_value())
{
payloadObject.WithBool("refresh", m_refresh.value());
}
}

void GetSecretValueRequest::s_loadFromJsonView(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not happy that we're deserializing requests, but not much can be done about it at this point.

Expand All @@ -5440,6 +5444,10 @@ namespace Aws
getSecretValueRequest.m_versionStage =
Aws::Crt::Optional<Aws::Crt::String>(jsonView.GetString("versionStage"));
}
if (jsonView.ValueExists("refresh"))
{
getSecretValueRequest.m_refresh = Aws::Crt::Optional<bool>(jsonView.GetBool("refresh"));
}
}

const char *GetSecretValueRequest::MODEL_NAME = "aws.greengrass#GetSecretValueRequest";
Expand Down
Loading