GitlabScopeEnvironmentData Class

public final class GitlabScopeEnvironmentData
extends EnvironmentData

The GitLab scope connector's environment data.

Constructor Summary

Constructor Description
GitlabScopeEnvironmentData()

Creates an instance of GitlabScopeEnvironmentData class.

Method Summary

Modifier and Type Method and Description
EnvironmentType environmentType()

Get the environmentType property: The type of the environment data.

static GitlabScopeEnvironmentData fromJson(JsonReader jsonReader)

Reads an instance of GitlabScopeEnvironmentData from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from EnvironmentData

Methods inherited from java.lang.Object

Constructor Details

GitlabScopeEnvironmentData

public GitlabScopeEnvironmentData()

Creates an instance of GitlabScopeEnvironmentData class.

Method Details

environmentType

public EnvironmentType environmentType()

Get the environmentType property: The type of the environment data.

Overrides:

GitlabScopeEnvironmentData.environmentType()

Returns:

the environmentType value.

fromJson

public static GitlabScopeEnvironmentData fromJson(JsonReader jsonReader)

Reads an instance of GitlabScopeEnvironmentData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GitlabScopeEnvironmentData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the GitlabScopeEnvironmentData.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GitlabScopeEnvironmentData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

GitlabScopeEnvironmentData.validate()

Applies to