Change String and url to be private
This commit is contained in:
parent
2f0134d22f
commit
59652425cd
|
|
@ -7,7 +7,6 @@ using Convert = System.Convert;
|
||||||
|
|
||||||
namespace InnovEnergy.App.GrowattCommunication.SystemConfig;
|
namespace InnovEnergy.App.GrowattCommunication.SystemConfig;
|
||||||
|
|
||||||
|
|
||||||
public record S3Config
|
public record S3Config
|
||||||
{
|
{
|
||||||
public required String Bucket { get; init; }
|
public required String Bucket { get; init; }
|
||||||
|
|
@ -15,10 +14,10 @@ public record S3Config
|
||||||
public required String Provider { get; init; }
|
public required String Provider { get; init; }
|
||||||
public required String Key { get; init; }
|
public required String Key { get; init; }
|
||||||
public required String Secret { get; init; }
|
public required String Secret { get; init; }
|
||||||
public required String ContentType { get; init; }
|
public required String ContentType { get; init; }
|
||||||
|
|
||||||
public String Host => $"{Bucket}.{Region}.{Provider}";
|
private String Host => $"{Bucket}.{Region}.{Provider}";
|
||||||
public String Url => $"https://{Host}";
|
private String Url => $"https://{Host}";
|
||||||
|
|
||||||
public IFlurlRequest CreatePutRequest(String s3Path) => CreateRequest("PUT", s3Path);
|
public IFlurlRequest CreatePutRequest(String s3Path) => CreateRequest("PUT", s3Path);
|
||||||
public IFlurlRequest CreateGetRequest(String s3Path) => CreateRequest("GET", s3Path);
|
public IFlurlRequest CreateGetRequest(String s3Path) => CreateRequest("GET", s3Path);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue