Class MasterAuthorizedNetworksConfig (2.63.0)

publicfinalclassMasterAuthorizedNetworksConfigextendsGeneratedMessageV3implementsMasterAuthorizedNetworksConfigOrBuilder

Configuration options for the master authorized networks feature. Enabled master authorized networks will disallow all external traffic to access Kubernetes master through HTTPS except traffic from the given CIDR blocks, Google Compute Engine Public IPs and Google Prod IPs.

Protobuf type google.container.v1.MasterAuthorizedNetworksConfig

Static Fields

CIDR_BLOCKS_FIELD_NUMBER

publicstaticfinalintCIDR_BLOCKS_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLED_FIELD_NUMBER

publicstaticfinalintENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

GCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER

publicstaticfinalintGCP_PUBLIC_CIDRS_ACCESS_ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

PRIVATE_ENDPOINT_ENFORCEMENT_ENABLED_FIELD_NUMBER

publicstaticfinalintPRIVATE_ENDPOINT_ENFORCEMENT_ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

publicstaticMasterAuthorizedNetworksConfiggetDefaultInstance()
Returns
TypeDescription
MasterAuthorizedNetworksConfig

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

publicstaticMasterAuthorizedNetworksConfig.BuildernewBuilder()
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

newBuilder(MasterAuthorizedNetworksConfig prototype)

publicstaticMasterAuthorizedNetworksConfig.BuildernewBuilder(MasterAuthorizedNetworksConfigprototype)
Parameter
NameDescription
prototypeMasterAuthorizedNetworksConfig
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

parseDelimitedFrom(InputStream input)

publicstaticMasterAuthorizedNetworksConfigparseDelimitedFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticMasterAuthorizedNetworksConfigparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

publicstaticMasterAuthorizedNetworksConfigparseFrom(byte[]data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticMasterAuthorizedNetworksConfigparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticMasterAuthorizedNetworksConfigparseFrom(ByteStringdata)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticMasterAuthorizedNetworksConfigparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticMasterAuthorizedNetworksConfigparseFrom(CodedInputStreaminput)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticMasterAuthorizedNetworksConfigparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

publicstaticMasterAuthorizedNetworksConfigparseFrom(InputStreaminput)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticMasterAuthorizedNetworksConfigparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

publicstaticMasterAuthorizedNetworksConfigparseFrom(ByteBufferdata)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticMasterAuthorizedNetworksConfigparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MasterAuthorizedNetworksConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

publicstaticParser<MasterAuthorizedNetworksConfig>parser()
Returns
TypeDescription
Parser<MasterAuthorizedNetworksConfig>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCidrBlocks(int index)

publicMasterAuthorizedNetworksConfig.CidrBlockgetCidrBlocks(intindex)

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
MasterAuthorizedNetworksConfig.CidrBlock

getCidrBlocksCount()

publicintgetCidrBlocksCount()

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Returns
TypeDescription
int

getCidrBlocksList()

publicList<MasterAuthorizedNetworksConfig.CidrBlock>getCidrBlocksList()

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Returns
TypeDescription
List<CidrBlock>

getCidrBlocksOrBuilder(int index)

publicMasterAuthorizedNetworksConfig.CidrBlockOrBuildergetCidrBlocksOrBuilder(intindex)

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
MasterAuthorizedNetworksConfig.CidrBlockOrBuilder

getCidrBlocksOrBuilderList()

publicList<?extendsMasterAuthorizedNetworksConfig.CidrBlockOrBuilder>getCidrBlocksOrBuilderList()

cidr_blocks define up to 50 external networks that could access Kubernetes master through HTTPS.

repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2;

Returns
TypeDescription
List<? extends com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder>

getDefaultInstanceForType()

publicMasterAuthorizedNetworksConfiggetDefaultInstanceForType()
Returns
TypeDescription
MasterAuthorizedNetworksConfig

getEnabled()

publicbooleangetEnabled()

Whether or not master authorized networks is enabled.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

getGcpPublicCidrsAccessEnabled()

publicbooleangetGcpPublicCidrsAccessEnabled()

Whether master is accessbile via Google Compute Engine Public IP addresses.

optional bool gcp_public_cidrs_access_enabled = 3;

Returns
TypeDescription
boolean

The gcpPublicCidrsAccessEnabled.

getParserForType()

publicParser<MasterAuthorizedNetworksConfig>getParserForType()
Returns
TypeDescription
Parser<MasterAuthorizedNetworksConfig>
Overrides

getPrivateEndpointEnforcementEnabled()

publicbooleangetPrivateEndpointEnforcementEnabled()

Whether master authorized networks is enforced on private endpoint or not.

optional bool private_endpoint_enforcement_enabled = 5;

Returns
TypeDescription
boolean

The privateEndpointEnforcementEnabled.

getSerializedSize()

publicintgetSerializedSize()
Returns
TypeDescription
int
Overrides

hasGcpPublicCidrsAccessEnabled()

publicbooleanhasGcpPublicCidrsAccessEnabled()

Whether master is accessbile via Google Compute Engine Public IP addresses.

optional bool gcp_public_cidrs_access_enabled = 3;

Returns
TypeDescription
boolean

Whether the gcpPublicCidrsAccessEnabled field is set.

hasPrivateEndpointEnforcementEnabled()

publicbooleanhasPrivateEndpointEnforcementEnabled()

Whether master authorized networks is enforced on private endpoint or not.

optional bool private_endpoint_enforcement_enabled = 5;

Returns
TypeDescription
boolean

Whether the privateEndpointEnforcementEnabled field is set.

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

publicMasterAuthorizedNetworksConfig.BuildernewBuilderForType()
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedMasterAuthorizedNetworksConfig.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

publicMasterAuthorizedNetworksConfig.BuildertoBuilder()
Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException