Interface SharedAccessAuthorizationRuleResource


  • public interface SharedAccessAuthorizationRuleResource
    An immutable client-side representation of SharedAccessAuthorizationRuleResource.
    • Method Detail

      • id

        String id()
        Gets the id property: Fully qualified resource Id for the resource.
        Returns:
        the id value.
      • name

        String name()
        Gets the name property: The name of the resource.
        Returns:
        the name value.
      • type

        String type()
        Gets the type property: The type of the resource.
        Returns:
        the type value.
      • location

        String location()
        Gets the location property: The geo-location where the resource lives.
        Returns:
        the location value.
      • tags

        Map<String,​String> tags()
        Gets the tags property: Resource tags.
        Returns:
        the tags value.
      • sku

        Sku sku()
        Gets the sku property: The sku of the created namespace.
        Returns:
        the sku value.
      • rights

        List<AccessRights> rights()
        Gets the rights property: The rights associated with the rule.
        Returns:
        the rights value.
      • primaryKey

        String primaryKey()
        Gets the primaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
        Returns:
        the primaryKey value.
      • secondaryKey

        String secondaryKey()
        Gets the secondaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
        Returns:
        the secondaryKey value.
      • keyName

        String keyName()
        Gets the keyName property: A string that describes the authorization rule.
        Returns:
        the keyName value.
      • claimType

        String claimType()
        Gets the claimType property: A string that describes the claim type.
        Returns:
        the claimType value.
      • claimValue

        String claimValue()
        Gets the claimValue property: A string that describes the claim value.
        Returns:
        the claimValue value.
      • modifiedTime

        String modifiedTime()
        Gets the modifiedTime property: The last modified time for this rule.
        Returns:
        the modifiedTime value.
      • createdTime

        String createdTime()
        Gets the createdTime property: The created time for this rule.
        Returns:
        the createdTime value.
      • revision

        Integer revision()
        Gets the revision property: The revision number for the rule.
        Returns:
        the revision value.
      • region

        com.azure.core.management.Region region()
        Gets the region of the resource.
        Returns:
        the region of the resource.
      • regionName

        String regionName()
        Gets the name of the resource region.
        Returns:
        the name of the resource region.
      • innerModel

        SharedAccessAuthorizationRuleResourceInner innerModel()
        Gets the inner com.azure.resourcemanager.notificationhubs.fluent.models.SharedAccessAuthorizationRuleResourceInner object.
        Returns:
        the inner object.
      • refresh

        SharedAccessAuthorizationRuleResource refresh​(com.azure.core.util.Context context)
        Refreshes the resource to sync with Azure.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        the refreshed resource.
      • listKeys

        ResourceListKeys listKeys()
        Gets the Primary and Secondary ConnectionStrings to the namespace.
        Returns:
        the Primary and Secondary ConnectionStrings to the namespace.
        Throws:
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • listKeysWithResponse

        com.azure.core.http.rest.Response<ResourceListKeys> listKeysWithResponse​(com.azure.core.util.Context context)
        Gets the Primary and Secondary ConnectionStrings to the namespace.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        the Primary and Secondary ConnectionStrings to the namespace.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • regenerateKeys

        ResourceListKeys regenerateKeys​(PolicykeyResource parameters)
        Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule.
        Parameters:
        parameters - Parameters supplied to regenerate the Namespace Authorization Rule Key.
        Returns:
        namespace/NotificationHub Connection String.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • regenerateKeysWithResponse

        com.azure.core.http.rest.Response<ResourceListKeys> regenerateKeysWithResponse​(PolicykeyResource parameters,
                                                                                       com.azure.core.util.Context context)
        Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule.
        Parameters:
        parameters - Parameters supplied to regenerate the Namespace Authorization Rule Key.
        context - The context to associate with this operation.
        Returns:
        namespace/NotificationHub Connection String.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.