From 7f619cbef7ff7452029230f8e475f589f7ec71cb Mon Sep 17 00:00:00 2001 From: kushalshit27 <43465488+kushalshit27@users.noreply.github.com> Date: Mon, 23 Sep 2024 16:58:38 +0530 Subject: [PATCH] SDK-4929 fix build checks --- management/management.gen.go | 8 ++++++++ management/management.gen_test.go | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/management/management.gen.go b/management/management.gen.go index fd1a43b4..999246aa 100644 --- a/management/management.gen.go +++ b/management/management.gen.go @@ -6965,6 +6965,14 @@ func (f *FlowVaultConnection) GetEnvironment() string { return *f.Environment } +// GetFingerprint returns the Fingerprint field if it's non-nil, zero value otherwise. +func (f *FlowVaultConnection) GetFingerprint() string { + if f == nil || f.Fingerprint == nil { + return "" + } + return *f.Fingerprint +} + // GetID returns the ID field if it's non-nil, zero value otherwise. func (f *FlowVaultConnection) GetID() string { if f == nil || f.ID == nil { diff --git a/management/management.gen_test.go b/management/management.gen_test.go index e8ce0116..5964202a 100644 --- a/management/management.gen_test.go +++ b/management/management.gen_test.go @@ -8657,6 +8657,16 @@ func TestFlowVaultConnection_GetEnvironment(tt *testing.T) { f.GetEnvironment() } +func TestFlowVaultConnection_GetFingerprint(tt *testing.T) { + var zeroValue string + f := &FlowVaultConnection{Fingerprint: &zeroValue} + f.GetFingerprint() + f = &FlowVaultConnection{} + f.GetFingerprint() + f = nil + f.GetFingerprint() +} + func TestFlowVaultConnection_GetID(tt *testing.T) { var zeroValue string f := &FlowVaultConnection{ID: &zeroValue}