Class SippyGcsSource
- Namespace
- Cloudflare.NET.Accounts.Models
- Assembly
- Cloudflare.NET.dll
Represents the source bucket configuration for Sippy migration from Google Cloud Storage.
public record SippyGcsSource : IEquatable<SippyGcsSource>
- Inheritance
-
SippyGcsSource
- Implements
- Inherited Members
Constructors
SippyGcsSource(SippyProvider, string, string?, string?)
Represents the source bucket configuration for Sippy migration from Google Cloud Storage.
public SippyGcsSource(SippyProvider Provider, string Bucket, string? ClientEmail = null, string? PrivateKey = null)
Parameters
ProviderSippyProviderThe source provider (must be Gcs).
BucketstringThe name of the source GCS bucket.
ClientEmailstringThe service account client email for GCS access.
PrivateKeystringThe service account private key for GCS access.
Properties
Bucket
The name of the source GCS bucket.
[JsonPropertyName("bucket")]
public string Bucket { get; init; }
Property Value
ClientEmail
The service account client email for GCS access.
[JsonPropertyName("clientEmail")]
public string? ClientEmail { get; init; }
Property Value
PrivateKey
The service account private key for GCS access.
[JsonPropertyName("privateKey")]
public string? PrivateKey { get; init; }
Property Value
Provider
The source provider (must be Gcs).
[JsonPropertyName("provider")]
public SippyProvider Provider { get; init; }
Property Value
Methods
Create(string, string, string)
Creates a new GCS source configuration.
public static SippyGcsSource Create(string bucket, string clientEmail, string privateKey)
Parameters
bucketstringThe name of the source GCS bucket.
clientEmailstringThe service account client email for GCS access.
privateKeystringThe service account private key for GCS access.
Returns
- SippyGcsSource
A new SippyGcsSource with provider set to GCS.