From 9c4503d55d166b1091148126fc252b83ae2bc34d Mon Sep 17 00:00:00 2001 From: Julio Lopez <1953782+julio-lopez@users.noreply.github.com> Date: Tue, 15 Jul 2025 23:18:49 -0700 Subject: [PATCH] refactor(providers): add omitempty JSON tags in azure.Options (#4721) --- repo/blob/azure/azure_options.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/repo/blob/azure/azure_options.go b/repo/blob/azure/azure_options.go index 562ee1963..02860a2f2 100644 --- a/repo/blob/azure/azure_options.go +++ b/repo/blob/azure/azure_options.go @@ -15,21 +15,21 @@ type Options struct { Prefix string `json:"prefix,omitempty"` // Storage account name - StorageAccount string `json:"storageAccount"` + StorageAccount string `json:"storageAccount,omitempty"` // Storage account access key - StorageKey string `json:"storageKey" kopia:"sensitive"` + StorageKey string `json:"storageKey,omitempty" kopia:"sensitive"` // Alternatively provide SAS Token - SASToken string `json:"sasToken" kopia:"sensitive"` + SASToken string `json:"sasToken,omitempty" kopia:"sensitive"` // the tenant-ID/client-ID/client-Secret of the service principal - TenantID string - ClientID string - ClientSecret string `kopia:"sensitive"` + TenantID string `json:",omitempty"` + ClientID string `json:",omitempty"` + ClientSecret string `json:",omitempty" kopia:"sensitive"` // ClientCert are used for creating ClientCertificateCredentials - ClientCert string `kopia:"sensitive"` + ClientCert string `json:",omitempty" kopia:"sensitive"` StorageDomain string `json:"storageDomain,omitempty"`