Represents a GitConfig.
Package
@google-cloud/gke-hub!Constructors
(constructor)(properties)
constructor(properties?: google.cloud.gkehub.configmanagement.v1.IGitConfig);
Constructs a new GitConfig.
Name | Description |
properties |
IGitConfig
Properties to set |
Properties
gcpServiceAccountEmail
public gcpServiceAccountEmail: string;
GitConfig gcpServiceAccountEmail.
Type | Description |
string |
httpsProxy
public httpsProxy: string;
GitConfig httpsProxy.
Type | Description |
string |
policyDir
public policyDir: string;
GitConfig policyDir.
Type | Description |
string |
secretType
public secretType: string;
GitConfig secretType.
Type | Description |
string |
syncBranch
public syncBranch: string;
GitConfig syncBranch.
Type | Description |
string |
syncRepo
public syncRepo: string;
GitConfig syncRepo.
Type | Description |
string |
syncRev
public syncRev: string;
GitConfig syncRev.
Type | Description |
string |
syncWaitSecs
public syncWaitSecs: (number|Long|string);
GitConfig syncWaitSecs.
Type | Description |
(number|Long|string) |
Methods
create(properties)
public static create(properties?: google.cloud.gkehub.configmanagement.v1.IGitConfig): google.cloud.gkehub.configmanagement.v1.GitConfig;
Creates a new GitConfig instance using the specified properties.
Name | Description |
properties |
IGitConfig
Properties to set |
Type | Description |
google.cloud.gkehub.configmanagement.v1.GitConfig | GitConfig instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.gkehub.configmanagement.v1.GitConfig;
Decodes a GitConfig message from the specified reader or buffer.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Type | Description |
google.cloud.gkehub.configmanagement.v1.GitConfig | GitConfig |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.gkehub.configmanagement.v1.GitConfig;
Decodes a GitConfig message from the specified reader or buffer, length delimited.
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Type | Description |
google.cloud.gkehub.configmanagement.v1.GitConfig | GitConfig |
encode(message, writer)
public static encode(message: google.cloud.gkehub.configmanagement.v1.IGitConfig, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified GitConfig message. Does not implicitly messages.
Name | Description |
message |
IGitConfig
GitConfig message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.gkehub.configmanagement.v1.IGitConfig, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified GitConfig message, length delimited. Does not implicitly messages.
Name | Description |
message |
IGitConfig
GitConfig message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Type | Description |
$protobuf.Writer | Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.gkehub.configmanagement.v1.GitConfig;
Creates a GitConfig message from a plain object. Also converts values to their respective internal types.
Name | Description |
object |
{ [k: string]: any }
Plain object |
Type | Description |
google.cloud.gkehub.configmanagement.v1.GitConfig | GitConfig |
toJSON()
public toJSON(): { [k: string]: any };
Converts this GitConfig to JSON.
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.gkehub.configmanagement.v1.GitConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a GitConfig message. Also converts values to other types if specified.
Name | Description |
message |
google.cloud.gkehub.configmanagement.v1.GitConfig
GitConfig |
options |
$protobuf.IConversionOptions
Conversion options |
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a GitConfig message.
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Type | Description |
(string|null) |
|