getAssociation method

Gets an association with the specified name.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<FirewallPolicyAssociation> getAssociation(
  GetAssociationNetworkFirewallPolicyRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getAssociation case final getAssociation?) {
    return getAssociation(request);
  }
  throw UnsupportedError('getAssociation');
}