次の方法で共有


PartnerNamespaceInner Class

public final class PartnerNamespaceInner
extends Resource

EventGrid Partner Namespace.

Constructor Summary

Constructor Description
PartnerNamespaceInner()

Creates an instance of PartnerNamespaceInner class.

Method Summary

Modifier and Type Method and Description
Boolean disableLocalAuth()

Get the disableLocalAuth property: This boolean is used to enable or disable local auth.

String endpoint()

Get the endpoint property: Endpoint for the partner namespace.

static PartnerNamespaceInner fromJson(JsonReader jsonReader)

Reads an instance of PartnerNamespaceInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

List<InboundIpRule> inboundIpRules()

Get the inboundIpRules property: This can be used to restrict traffic from specific IPs instead of all IPs.

TlsVersion minimumTlsVersionAllowed()

Get the minimumTlsVersionAllowed property: Minimum TLS version of the publisher allowed to publish to this partner namespace.

String name()

Get the name property: The name of the resource.

String partnerRegistrationFullyQualifiedId()

Get the partnerRegistrationFullyQualifiedId property: The fully qualified ARM Id of the partner registration that should be associated with this partner namespace.

PartnerTopicRoutingMode partnerTopicRoutingMode()

Get the partnerTopicRoutingMode property: This determines if events published to this partner namespace should use the source attribute in the event payload or use the channel name in the header when matching to the partner topic.

List<PrivateEndpointConnectionInner> privateEndpointConnections()

Get the privateEndpointConnections property: List of private endpoint connections.

PartnerNamespaceProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the partner namespace.

PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: This determines if traffic is allowed over public network.

SystemData systemData()

Get the systemData property: The system metadata relating to the Event Grid resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

PartnerNamespaceInner withDisableLocalAuth(Boolean disableLocalAuth)

Set the disableLocalAuth property: This boolean is used to enable or disable local auth.

PartnerNamespaceInner withInboundIpRules(List<InboundIpRule> inboundIpRules)

Set the inboundIpRules property: This can be used to restrict traffic from specific IPs instead of all IPs.

PartnerNamespaceInner withLocation(String location)
PartnerNamespaceInner withMinimumTlsVersionAllowed(TlsVersion minimumTlsVersionAllowed)

Set the minimumTlsVersionAllowed property: Minimum TLS version of the publisher allowed to publish to this partner namespace.

PartnerNamespaceInner withPartnerRegistrationFullyQualifiedId(String partnerRegistrationFullyQualifiedId)

Set the partnerRegistrationFullyQualifiedId property: The fully qualified ARM Id of the partner registration that should be associated with this partner namespace.

PartnerNamespaceInner withPartnerTopicRoutingMode(PartnerTopicRoutingMode partnerTopicRoutingMode)

Set the partnerTopicRoutingMode property: This determines if events published to this partner namespace should use the source attribute in the event payload or use the channel name in the header when matching to the partner topic.

PartnerNamespaceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: This determines if traffic is allowed over public network.

PartnerNamespaceInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

PartnerNamespaceInner

public PartnerNamespaceInner()

Creates an instance of PartnerNamespaceInner class.

Method Details

disableLocalAuth

public Boolean disableLocalAuth()

Get the disableLocalAuth property: This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only Microsoft Entra ID token will be used to authenticate if user is allowed to publish to the partner namespace.

Returns:

the disableLocalAuth value.

endpoint

public String endpoint()

Get the endpoint property: Endpoint for the partner namespace.

Returns:

the endpoint value.

fromJson

public static PartnerNamespaceInner fromJson(JsonReader jsonReader)

Reads an instance of PartnerNamespaceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

PartnerNamespaceInner.id()

Returns:

the id value.

inboundIpRules

public List<InboundIpRule> inboundIpRules()

Get the inboundIpRules property: This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.

Returns:

the inboundIpRules value.

minimumTlsVersionAllowed

public TlsVersion minimumTlsVersionAllowed()

Get the minimumTlsVersionAllowed property: Minimum TLS version of the publisher allowed to publish to this partner namespace.

Returns:

the minimumTlsVersionAllowed value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PartnerNamespaceInner.name()

Returns:

the name value.

partnerRegistrationFullyQualifiedId

public String partnerRegistrationFullyQualifiedId()

Get the partnerRegistrationFullyQualifiedId property: The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. This takes the following format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.

Returns:

the partnerRegistrationFullyQualifiedId value.

partnerTopicRoutingMode

public PartnerTopicRoutingMode partnerTopicRoutingMode()

Get the partnerTopicRoutingMode property: This determines if events published to this partner namespace should use the source attribute in the event payload or use the channel name in the header when matching to the partner topic. If none is specified, source attribute routing will be used to match the partner topic.

Returns:

the partnerTopicRoutingMode value.

privateEndpointConnections

public List<PrivateEndpointConnectionInner> privateEndpointConnections()

Get the privateEndpointConnections property: List of private endpoint connections.

Returns:

the privateEndpointConnections value.

provisioningState

public PartnerNamespaceProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the partner namespace.

Returns:

the provisioningState value.

publicNetworkAccess

public PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceProperties.InboundIpRules" />.

Returns:

the publicNetworkAccess value.

systemData

public SystemData systemData()

Get the systemData property: The system metadata relating to the Event Grid resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PartnerNamespaceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PartnerNamespaceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDisableLocalAuth

public PartnerNamespaceInner withDisableLocalAuth(Boolean disableLocalAuth)

Set the disableLocalAuth property: This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only Microsoft Entra ID token will be used to authenticate if user is allowed to publish to the partner namespace.

Parameters:

disableLocalAuth - the disableLocalAuth value to set.

Returns:

the PartnerNamespaceInner object itself.

withInboundIpRules

public PartnerNamespaceInner withInboundIpRules(List<InboundIpRule> inboundIpRules)

Set the inboundIpRules property: This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled.

Parameters:

inboundIpRules - the inboundIpRules value to set.

Returns:

the PartnerNamespaceInner object itself.

withLocation

public PartnerNamespaceInner withLocation(String location)

Overrides:

PartnerNamespaceInner.withLocation(String location)

Parameters:

location

withMinimumTlsVersionAllowed

public PartnerNamespaceInner withMinimumTlsVersionAllowed(TlsVersion minimumTlsVersionAllowed)

Set the minimumTlsVersionAllowed property: Minimum TLS version of the publisher allowed to publish to this partner namespace.

Parameters:

minimumTlsVersionAllowed - the minimumTlsVersionAllowed value to set.

Returns:

the PartnerNamespaceInner object itself.

withPartnerRegistrationFullyQualifiedId

public PartnerNamespaceInner withPartnerRegistrationFullyQualifiedId(String partnerRegistrationFullyQualifiedId)

Set the partnerRegistrationFullyQualifiedId property: The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. This takes the following format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.

Parameters:

partnerRegistrationFullyQualifiedId - the partnerRegistrationFullyQualifiedId value to set.

Returns:

the PartnerNamespaceInner object itself.

withPartnerTopicRoutingMode

public PartnerNamespaceInner withPartnerTopicRoutingMode(PartnerTopicRoutingMode partnerTopicRoutingMode)

Set the partnerTopicRoutingMode property: This determines if events published to this partner namespace should use the source attribute in the event payload or use the channel name in the header when matching to the partner topic. If none is specified, source attribute routing will be used to match the partner topic.

Parameters:

partnerTopicRoutingMode - the partnerTopicRoutingMode value to set.

Returns:

the PartnerNamespaceInner object itself.

withPublicNetworkAccess

public PartnerNamespaceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: This determines if traffic is allowed over public network. By default it is enabled. You can further restrict to specific IPs by configuring <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceProperties.InboundIpRules" />.

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the PartnerNamespaceInner object itself.

withTags

public PartnerNamespaceInner withTags(Map<String,String> tags)

Overrides:

PartnerNamespaceInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to